@smals-belgium-shared/vidis-delivered-medication-list 3.1.1-snapshot.1 → 3.1.1-snapshot.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -26,7 +26,7 @@ ${t.map((a,n)=>`${n+1}) ${a.toString()}`).join(`
|
|
|
26
26
|
`,BJ=`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}
|
|
27
27
|
`,fs=(()=>{const t=class t extends O1{};s(t,"ɵfac",(()=>{let n;return function(r){return(n||(n=et(t)))(r||t)}})()),s(t,"ɵcmp",Oe({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,r){n&2&&($t("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Tu(r.color?"mat-"+r.color:""),jt("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[We],ngContentSelectors:A1,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(jn(M1),lt(0,"span",0),pt(1),j(2,"span",1),pt(3,1),z(),pt(4,2),lt(5,"span",2)(6,"span",3)),n&2&&jt("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}
|
|
28
28
|
`,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}
|
|
29
|
-
`],encapsulation:2,changeDetection:0}));let e=t;return e})(),P1=(()=>{const t=class t extends zJ{};s(t,"ɵfac",(()=>{let n;return function(r){return(n||(n=et(t)))(r||t)}})()),s(t,"ɵcmp",Oe({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(n,r){n&2&&($t("disabled",r._getDisabledAttribute())("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-disabled",r._getAriaDisabled()),Tu(r.color?"mat-"+r.color:""),jt("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[We],ngContentSelectors:A1,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(jn(M1),lt(0,"span",0),pt(1),j(2,"span",1),pt(3,1),z(),pt(4,2),lt(5,"span",2)(6,"span",3)),n&2&&jt("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[VJ,BJ],encapsulation:2,changeDetection:0}));let e=t;return e})(),nm=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵmod",Bt({type:t})),s(t,"ɵinj",Vt({imports:[pa,XX,pa]}));let e=t;return e})(),L1=(()=>{const t=class t{constructor(){s(this,"changes",new ge);s(this,"itemsPerPageLabel","Items per page:");s(this,"nextPageLabel","Next page");s(this,"previousPageLabel","Previous page");s(this,"firstPageLabel","First page");s(this,"lastPageLabel","Last page");s(this,"getRangeLabel",(n,r,i)=>{if(i==0||r==0)return`0 of ${i}`;i=Math.max(i,0);let o=n*r,l=o<i?Math.min(o+r,i):o+r;return`${o+1} – ${l} of ${i}`})}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵprov",V({token:t,factory:t.ɵfac,providedIn:"root"}));let e=t;return e})(),Ne=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(Ne||{}),Pa="*";function HJ(e,t=null){return{type:Ne.Sequence,steps:e,options:t}}function Rg(e){return{type:Ne.Style,styles:e,offset:null}}var Ho=class{constructor(e=0,t=0){s(this,"_onDoneFns",[]);s(this,"_onStartFns",[]);s(this,"_onDestroyFns",[]);s(this,"_originalOnDoneFns",[]);s(this,"_originalOnStartFns",[]);s(this,"_started",!1);s(this,"_destroyed",!1);s(this,"_finished",!1);s(this,"_position",0);s(this,"parentPlayer",null);s(this,"totalTime");this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(a=>a()),t.length=0}},F1=class{constructor(e){s(this,"_onDoneFns",[]);s(this,"_onStartFns",[]);s(this,"_finished",!1);s(this,"_started",!1);s(this,"_destroyed",!1);s(this,"_onDestroyFns",[]);s(this,"parentPlayer",null);s(this,"totalTime",0);s(this,"players");this.players=e;let t=0,a=0,n=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(i=>{i.onDone(()=>{++t==r&&this._onFinish()}),i.onDestroy(()=>{++a==r&&this._onDestroy()}),i.onStart(()=>{++n==r&&this._onStart()})}),this.totalTime=this.players.reduce((i,o)=>Math.max(i,o.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(a=>{let n=a.totalTime?Math.min(1,t/a.totalTime):1;a.setPosition(n)})}getPosition(){let e=this.players.reduce((t,a)=>t===null||a.totalTime>t.totalTime?a:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(a=>a()),t.length=0}},am="!";function Ng(e){return new U(3e3,!1)}function qJ(){return new U(3100,!1)}function $J(){return new U(3101,!1)}function UJ(e){return new U(3001,!1)}function GJ(e){return new U(3003,!1)}function ZJ(e){return new U(3004,!1)}function YJ(e,t){return new U(3005,!1)}function WJ(){return new U(3006,!1)}function KJ(){return new U(3007,!1)}function QJ(e,t){return new U(3008,!1)}function XJ(e){return new U(3002,!1)}function JJ(e,t,a,n,r){return new U(3010,!1)}function eee(){return new U(3011,!1)}function tee(){return new U(3012,!1)}function nee(){return new U(3200,!1)}function aee(){return new U(3202,!1)}function ree(){return new U(3013,!1)}function iee(e){return new U(3014,!1)}function oee(e){return new U(3015,!1)}function see(e){return new U(3016,!1)}function lee(e,t){return new U(3404,!1)}function uee(e){return new U(3502,!1)}function cee(e){return new U(3503,!1)}function dee(){return new U(3300,!1)}function hee(e){return new U(3504,!1)}function pee(e){return new U(3301,!1)}function mee(e,t){return new U(3302,!1)}function fee(e){return new U(3303,!1)}function gee(e,t){return new U(3400,!1)}function vee(e){return new U(3401,!1)}function bee(e){return new U(3402,!1)}function yee(e,t){return new U(3505,!1)}function Xa(e){switch(e.length){case 0:return new Ho;case 1:return e[0];default:return new F1(e)}}function j1(e,t,a=new Map,n=new Map){let r=[],i=[],o=-1,l=null;if(t.forEach(u=>{let c=u.get("offset"),d=c==o,m=d&&l||new Map;u.forEach((v,g)=>{let w=g,x=v;if(g!=="offset")switch(w=e.normalizePropertyName(w,r),x){case am:x=a.get(g);break;case Pa:x=n.get(g);break;default:x=e.normalizeStyleValue(g,w,x,r);break}m.set(w,x)}),d||i.push(m),l=m,o=c}),r.length)throw uee();return i}function rm(e,t,a,n){switch(t){case"start":e.onStart(()=>n(a&&Mc(a,"start",e)));break;case"done":e.onDone(()=>n(a&&Mc(a,"done",e)));break;case"destroy":e.onDestroy(()=>n(a&&Mc(a,"destroy",e)));break}}function Mc(e,t,a){let n=a.totalTime,r=!!a.disabled,i=im(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,n??e.totalTime,r),o=e._data;return o!=null&&(i._data=o),i}function im(e,t,a,n,r="",i=0,o){return{element:e,triggerName:t,fromState:a,toState:n,phaseName:r,totalTime:i,disabled:!!o}}function Sn(e,t,a){let n=e.get(t);return n||e.set(t,n=a),n}function Og(e){let t=e.indexOf(":"),a=e.substring(1,t),n=e.slice(t+1);return[a,n]}var _ee=typeof document>"u"?null:document.documentElement;function om(e){let t=e.parentNode||e.host||null;return t===_ee?null:t}function wee(e){return e.substring(1,6)=="ebkit"}var Sr=null,Mg=!1;function xee(e){Sr||(Sr=Eee()||{},Mg=Sr.style?"WebkitAppearance"in Sr.style:!1);let t=!0;return Sr.style&&!wee(e)&&(t=e in Sr.style,!t&&Mg&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in Sr.style)),t}function Eee(){return typeof document<"u"?document.body:null}function z1(e,t){for(;t;){if(t===e)return!0;t=om(t)}return!1}function V1(e,t,a){if(a)return Array.from(e.querySelectorAll(t));let n=e.querySelector(t);return n?[n]:[]}var See=1e3,B1="{{",kee="}}",H1="ng-enter",Yd="ng-leave",qs="ng-trigger",ql=".ng-trigger",Ag="ng-animating",Wd=".ng-animating";function Na(e){if(typeof e=="number")return e;let t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Kd(parseFloat(t[1]),t[2])}function Kd(e,t){switch(t){case"s":return e*See;default:return e}}function $l(e,t,a){return e.hasOwnProperty("duration")?e:Cee(e,t,a)}function Cee(e,t,a){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,i=0,o="";if(typeof e=="string"){let l=e.match(n);if(l===null)return t.push(Ng()),{duration:0,delay:0,easing:""};r=Kd(parseFloat(l[1]),l[2]);let u=l[3];u!=null&&(i=Kd(parseFloat(u),l[4]));let c=l[5];c&&(o=c)}else r=e;if(!a){let l=!1,u=t.length;r<0&&(t.push(qJ()),l=!0),i<0&&(t.push($J()),l=!0),l&&t.splice(u,0,Ng())}return{duration:r,delay:i,easing:o}}function Dee(e){return e.length?e[0]instanceof Map?e:e.map(t=>new Map(Object.entries(t))):[]}function ra(e,t,a){t.forEach((n,r)=>{let i=sm(r);a&&!a.has(r)&&a.set(r,e.style[i]),e.style[i]=n})}function Or(e,t){t.forEach((a,n)=>{let r=sm(n);e.style[r]=""})}function so(e){return Array.isArray(e)?e.length==1?e[0]:HJ(e):e}function Iee(e,t,a){let n=t.params||{},r=q1(e);r.length&&r.forEach(i=>{n.hasOwnProperty(i)||a.push(UJ())})}var Qd=new RegExp(`${B1}\\s*(.+?)\\s*${kee}`,"g");function q1(e){let t=[];if(typeof e=="string"){let a;for(;a=Qd.exec(e);)t.push(a[1]);Qd.lastIndex=0}return t}function qo(e,t,a){let n=`${e}`,r=n.replace(Qd,(i,o)=>{let l=t[o];return l==null&&(a.push(GJ()),l=""),l.toString()});return r==n?e:r}var Tee=/-+([a-z0-9])/g;function sm(e){return e.replace(Tee,(...t)=>t[1].toUpperCase())}function Ree(e,t){return e===0||t===0}function Nee(e,t,a){if(a.size&&t.length){let n=t[0],r=[];if(a.forEach((i,o)=>{n.has(o)||r.push(o),n.set(o,i)}),r.length)for(let i=1;i<t.length;i++){let o=t[i];r.forEach(l=>o.set(l,lm(e,l)))}}return t}function xn(e,t,a){switch(t.type){case Ne.Trigger:return e.visitTrigger(t,a);case Ne.State:return e.visitState(t,a);case Ne.Transition:return e.visitTransition(t,a);case Ne.Sequence:return e.visitSequence(t,a);case Ne.Group:return e.visitGroup(t,a);case Ne.Animate:return e.visitAnimate(t,a);case Ne.Keyframes:return e.visitKeyframes(t,a);case Ne.Style:return e.visitStyle(t,a);case Ne.Reference:return e.visitReference(t,a);case Ne.AnimateChild:return e.visitAnimateChild(t,a);case Ne.AnimateRef:return e.visitAnimateRef(t,a);case Ne.Query:return e.visitQuery(t,a);case Ne.Stagger:return e.visitStagger(t,a);default:throw ZJ(t.type)}}function lm(e,t){return window.getComputedStyle(e)[t]}var Oee=(()=>{const t=class t{validateStyleProperty(n){return xee(n)}containsElement(n,r){return z1(n,r)}getParentElement(n){return om(n)}query(n,r,i){return V1(n,r,i)}computeStyle(n,r,i){return i||""}animate(n,r,i,o,l,u=[],c){return new Ho(i,o)}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵprov",V({token:t,factory:t.ɵfac}));let e=t;return e})(),Wc,$1=(Wc=class{},s(Wc,"NOOP",new Oee),Wc),um=class{},Mee=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Aee=class extends um{normalizePropertyName(e,t){return sm(e)}normalizeStyleValue(e,t,a,n){let r="",i=a.toString().trim();if(Mee.has(t)&&a!==0&&a!=="0")if(typeof a=="number")r="px";else{let o=a.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&n.push(YJ())}return i+r}},Ul="*";function Pee(e,t){let a=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(n=>Lee(n,a,t)):a.push(e),a}function Lee(e,t,a){if(e[0]==":"){let u=Fee(e,a);if(typeof u=="function"){t.push(u);return}e=u}let n=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return a.push(oee()),t;let r=n[1],i=n[2],o=n[3];t.push(Pg(r,o));let l=r==Ul&&o==Ul;i[0]=="<"&&!l&&t.push(Pg(o,r))}function Fee(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(a,n)=>parseFloat(n)>parseFloat(a);case":decrement":return(a,n)=>parseFloat(n)<parseFloat(a);default:return t.push(see()),"* => *"}}var $s=new Set(["true","1"]),Us=new Set(["false","0"]);function Pg(e,t){let a=$s.has(e)||Us.has(e),n=$s.has(t)||Us.has(t);return(r,i)=>{let o=e==Ul||e==r,l=t==Ul||t==i;return!o&&a&&typeof r=="boolean"&&(o=r?$s.has(e):Us.has(e)),!l&&n&&typeof i=="boolean"&&(l=i?$s.has(t):Us.has(t)),o&&l}}var U1=":self",jee=new RegExp(`s*${U1}s*,?`,"g");function G1(e,t,a,n){return new zee(e).build(t,a,n)}var Lg="",zee=class{constructor(e){s(this,"_driver");this._driver=e}build(e,t,a){let n=new Hee(t);return this._resetContextStyleTimingState(n),xn(this,so(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Lg,e.collectedStyles=new Map,e.collectedStyles.set(Lg,new Map),e.currentTime=0}visitTrigger(e,t){let a=t.queryCount=0,n=t.depCount=0,r=[],i=[];return e.name.charAt(0)=="@"&&t.errors.push(WJ()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==Ne.State){let l=o,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=u}else if(o.type==Ne.Transition){let l=this.visitTransition(o,t);a+=l.queryCount,n+=l.depCount,i.push(l)}else t.errors.push(KJ())}),{type:Ne.Trigger,name:e.name,states:r,transitions:i,queryCount:a,depCount:n,options:null}}visitState(e,t){let a=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(a.containsDynamicStyles){let r=new Set,i=n||{};a.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{q1(l).forEach(u=>{i.hasOwnProperty(u)||r.add(u)})})}),r.size&&t.errors.push(QJ(e.name,[...r.values()]))}return{type:Ne.State,name:e.name,style:a,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let a=xn(this,so(e.animation),t),n=Pee(e.expr,t.errors);return{type:Ne.Transition,matchers:n,animation:a,queryCount:t.queryCount,depCount:t.depCount,options:kr(e.options)}}visitSequence(e,t){return{type:Ne.Sequence,steps:e.steps.map(a=>xn(this,a,t)),options:kr(e.options)}}visitGroup(e,t){let a=t.currentTime,n=0,r=e.steps.map(i=>{t.currentTime=a;let o=xn(this,i,t);return n=Math.max(n,t.currentTime),o});return t.currentTime=n,{type:Ne.Group,steps:r,options:kr(e.options)}}visitAnimate(e,t){let a=$ee(e.timings,t.errors);t.currentAnimateTimings=a;let n,r=e.styles?e.styles:Rg({});if(r.type==Ne.Keyframes)n=this.visitKeyframes(r,t);else{let i=e.styles,o=!1;if(!i){o=!0;let u={};a.easing&&(u.easing=a.easing),i=Rg(u)}t.currentTime+=a.duration+a.delay;let l=this.visitStyle(i,t);l.isEmptyStep=o,n=l}return t.currentAnimateTimings=null,{type:Ne.Animate,timings:a,style:n,options:null}}visitStyle(e,t){let a=this._makeStyleAst(e,t);return this._validateStyleAst(a,t),a}_makeStyleAst(e,t){let a=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of n)typeof o=="string"?o===Pa?a.push(o):t.errors.push(XJ()):a.push(new Map(Object.entries(o)));let r=!1,i=null;return a.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(i=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(B1)>=0){r=!0;break}}}),{type:Ne.Style,styles:a,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let a=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;a&&r>0&&(r-=a.duration+a.delay),e.styles.forEach(i=>{typeof i!="string"&&i.forEach((o,l)=>{let u=t.collectedStyles.get(t.currentQuerySelector),c=u.get(l),d=!0;c&&(r!=n&&r>=c.startTime&&n<=c.endTime&&(t.errors.push(JJ(l,c.startTime,c.endTime)),d=!1),r=c.startTime),d&&u.set(l,{startTime:r,endTime:n}),t.options&&Iee(o,t.options,t.errors)})})}visitKeyframes(e,t){let a={type:Ne.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(eee()),a;let n=1,r=0,i=[],o=!1,l=!1,u=0,c=e.steps.map(k=>{let D=this._makeStyleAst(k,t),N=D.offset!=null?D.offset:qee(D.styles),O=0;return N!=null&&(r++,O=D.offset=N),l=l||O<0||O>1,o=o||O<u,u=O,i.push(O),D});l&&t.errors.push(tee()),o&&t.errors.push(nee());let d=e.steps.length,m=0;r>0&&r<d?t.errors.push(aee()):r==0&&(m=n/(d-1));let v=d-1,g=t.currentTime,w=t.currentAnimateTimings,x=w.duration;return c.forEach((k,D)=>{let N=m>0?D==v?1:m*D:i[D],O=N*x;t.currentTime=g+w.delay+O,w.duration=O,this._validateStyleAst(k,t),k.offset=N,a.styles.push(k)}),a}visitReference(e,t){return{type:Ne.Reference,animation:xn(this,so(e.animation),t),options:kr(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:Ne.AnimateChild,options:kr(e.options)}}visitAnimateRef(e,t){return{type:Ne.AnimateRef,animation:this.visitReference(e.animation,t),options:kr(e.options)}}visitQuery(e,t){let a=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,i]=Vee(e.selector);t.currentQuerySelector=a.length?a+" "+r:r,Sn(t.collectedStyles,t.currentQuerySelector,new Map);let o=xn(this,so(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=a,{type:Ne.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:i,animation:o,originalSelector:e.selector,options:kr(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(ree());let a=e.timings==="full"?{duration:0,delay:0,easing:"full"}:$l(e.timings,t.errors,!0);return{type:Ne.Stagger,animation:xn(this,so(e.animation),t),timings:a,options:null}}};function Vee(e){let t=!!e.split(/\s*,\s*/).find(a=>a==U1);return t&&(e=e.replace(jee,"")),e=e.replace(/@\*/g,ql).replace(/@\w+/g,a=>ql+"-"+a.slice(1)).replace(/:animating/g,Wd),[e,t]}function Bee(e){return e?ue({},e):null}var Hee=class{constructor(e){s(this,"errors");s(this,"queryCount",0);s(this,"depCount",0);s(this,"currentTransition",null);s(this,"currentQuery",null);s(this,"currentQuerySelector",null);s(this,"currentAnimateTimings",null);s(this,"currentTime",0);s(this,"collectedStyles",new Map);s(this,"options",null);s(this,"unsupportedCSSPropertiesFound",new Set);this.errors=e}};function qee(e){if(typeof e=="string")return null;let t=null;if(Array.isArray(e))e.forEach(a=>{if(a instanceof Map&&a.has("offset")){let n=a;t=parseFloat(n.get("offset")),n.delete("offset")}});else if(e instanceof Map&&e.has("offset")){let a=e;t=parseFloat(a.get("offset")),a.delete("offset")}return t}function $ee(e,t){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let r=$l(e,t).duration;return Ac(r,0,"")}let a=e;if(a.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Ac(0,0,"");return r.dynamic=!0,r.strValue=a,r}let n=$l(a,t);return Ac(n.duration,n.delay,n.easing)}function kr(e){return e?(e=ue({},e),e.params&&(e.params=Bee(e.params))):e={},e}function Ac(e,t,a){return{duration:e,delay:t,easing:a}}function cm(e,t,a,n,r,i,o=null,l=!1){return{type:1,element:e,keyframes:t,preStyleProps:a,postStyleProps:n,duration:r,delay:i,totalTime:r+i,easing:o,subTimeline:l}}var dm=class{constructor(){s(this,"_map",new Map)}get(e){return this._map.get(e)||[]}append(e,t){let a=this._map.get(e);a||this._map.set(e,a=[]),a.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Uee=1,Gee=":enter",Zee=new RegExp(Gee,"g"),Yee=":leave",Wee=new RegExp(Yee,"g");function Z1(e,t,a,n,r,i=new Map,o=new Map,l,u,c=[]){return new Kee().buildKeyframes(e,t,a,n,r,i,o,l,u,c)}var Kee=class{buildKeyframes(e,t,a,n,r,i,o,l,u,c=[]){u=u||new dm;let d=new Qee(e,t,u,n,r,c,[]);d.options=l;let m=l.delay?Na(l.delay):0;d.currentTimeline.delayNextStep(m),d.currentTimeline.setStyles([i],null,d.errors,l),xn(this,a,d);let v=d.timelines.filter(g=>g.containsAnimation());if(v.length&&o.size){let g;for(let w=v.length-1;w>=0;w--){let x=v[w];if(x.element===t){g=x;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([o],null,d.errors,l)}return v.length?v.map(g=>g.buildKeyframes()):[cm(t,[],[],[],0,m,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let a=t.subInstructions.get(t.element);if(a){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,i=this._visitSubInstructions(a,n,n.options);r!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e}visitAnimateRef(e,t){let a=t.createSubContext(e.options);a.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,a),this.visitReference(e.animation,a),t.transformIntoNewTimeline(a.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,a){for(let n of e){let r=n==null?void 0:n.delay;if(r){let i=typeof r=="number"?r:Na(qo(r,(n==null?void 0:n.params)??{},t.errors));a.delayNextStep(i)}}}_visitSubInstructions(e,t,a){let n=t.currentTimeline.currentTime,r=a.duration!=null?Na(a.duration):null,i=a.delay!=null?Na(a.delay):null;return r!==0&&e.forEach(o=>{let l=t.appendInstructionToTimeline(o,r,i);n=Math.max(n,l.duration+l.delay)}),n}visitReference(e,t){t.updateOptions(e.options,!0),xn(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let a=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==Ne.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Gl);let i=Na(r.delay);n.delayNextStep(i)}e.steps.length&&(e.steps.forEach(i=>xn(this,i,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>a&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let a=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?Na(e.options.delay):0;e.steps.forEach(i=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),xn(this,i,o),n=Math.max(n,o.currentTimeline.currentTime),a.push(o.currentTimeline)}),a.forEach(i=>t.currentTimeline.mergeTimelineCollectedStyles(i)),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let a=e.strValue,n=t.params?qo(a,t.params,t.errors):a;return $l(n,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let a=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;a.delay&&(t.incrementTime(a.delay),n.snapshotCurrentStyles());let r=e.style;r.type==Ne.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(a.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let a=t.currentTimeline,n=t.currentAnimateTimings;!n&&a.hasCurrentStyleProperties()&&a.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?a.applyEmptyStep(r):a.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let a=t.currentAnimateTimings,n=t.currentTimeline.duration,r=a.duration,i=t.createSubContext().currentTimeline;i.easing=a.easing,e.styles.forEach(o=>{let l=o.offset||0;i.forwardTime(l*r),i.setStyles(o.styles,o.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(n+r),t.previousNode=e}visitQuery(e,t){let a=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?Na(n.delay):0;r&&(t.previousNode.type===Ne.Style||a==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Gl);let i=a,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((u,c)=>{t.currentQueryIndex=c;let d=t.createSubContext(e.options,u);r&&d.delayNextStep(r),u===t.element&&(l=d.currentTimeline),xn(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let m=d.currentTimeline.currentTime;i=Math.max(i,m)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(i),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let a=t.parentContext,n=t.currentTimeline,r=e.timings,i=Math.abs(r.duration),o=i*(t.currentQueryTotal-1),l=i*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=a.currentStaggerTime;break}let u=t.currentTimeline;l&&u.delayNextStep(l);let c=u.currentTime;xn(this,e.animation,t),t.previousNode=e,a.currentStaggerTime=n.currentTime-c+(n.startTime-a.currentTimeline.startTime)}},Gl={},Qee=class Y1{constructor(t,a,n,r,i,o,l,u){s(this,"_driver");s(this,"element");s(this,"subInstructions");s(this,"_enterClassName");s(this,"_leaveClassName");s(this,"errors");s(this,"timelines");s(this,"parentContext",null);s(this,"currentTimeline");s(this,"currentAnimateTimings",null);s(this,"previousNode",Gl);s(this,"subContextCount",0);s(this,"options",{});s(this,"currentQueryIndex",0);s(this,"currentQueryTotal",0);s(this,"currentStaggerTime",0);this._driver=t,this.element=a,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=l,this.currentTimeline=u||new W1(this._driver,a,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,a){if(!t)return;let n=t,r=this.options;n.duration!=null&&(r.duration=Na(n.duration)),n.delay!=null&&(r.delay=Na(n.delay));let i=n.params;if(i){let o=r.params;o||(o=this.options.params={}),Object.keys(i).forEach(l=>{(!a||!o.hasOwnProperty(l))&&(o[l]=qo(i[l],o,this.errors))})}}_copyOptions(){let t={};if(this.options){let a=this.options.params;if(a){let n=t.params={};Object.keys(a).forEach(r=>{n[r]=a[r]})}}return t}createSubContext(t=null,a,n){let r=a||this.element,i=new Y1(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=Gl,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,a,n){let r={duration:a??t.duration,delay:this.currentTimeline.currentTime+(n??0)+t.delay,easing:""},i=new Xee(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,a,n,r,i,o){let l=[];if(r&&l.push(this.element),t.length>0){t=t.replace(Zee,"."+this._enterClassName),t=t.replace(Wee,"."+this._leaveClassName);let u=n!=1,c=this._driver.query(this.element,t,u);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),l.push(...c)}return!i&&l.length==0&&o.push(iee()),l}},W1=class K1{constructor(t,a,n,r){s(this,"_driver");s(this,"element");s(this,"startTime");s(this,"_elementTimelineStylesLookup");s(this,"duration",0);s(this,"easing",null);s(this,"_previousKeyframe",new Map);s(this,"_currentKeyframe",new Map);s(this,"_keyframes",new Map);s(this,"_styleSummary",new Map);s(this,"_localTimelineStyles",new Map);s(this,"_globalTimelineStyles");s(this,"_pendingStyles",new Map);s(this,"_backFill",new Map);s(this,"_currentEmptyStepKeyframe",null);this._driver=t,this.element=a,this.startTime=n,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(a),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(a,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let a=this._keyframes.size===1&&this._pendingStyles.size;this.duration||a?(this.forwardTime(this.currentTime+t),a&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,a){return this.applyStylesToKeyframe(),new K1(this._driver,t,a||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Uee,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,a){this._localTimelineStyles.set(t,a),this._globalTimelineStyles.set(t,a),this._styleSummary.set(t,{time:this.currentTime,value:a})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[a,n]of this._globalTimelineStyles)this._backFill.set(a,n||Pa),this._currentKeyframe.set(a,Pa);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,a,n,r){a&&this._previousKeyframe.set("easing",a);let i=r&&r.params||{},o=Jee(t,this._globalTimelineStyles);for(let[l,u]of o){let c=qo(u,i,n);this._pendingStyles.set(l,c),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??Pa),this._updateStyle(l,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,a)=>{this._currentKeyframe.set(a,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,a)=>{this._currentKeyframe.has(a)||this._currentKeyframe.set(a,t)}))}snapshotCurrentStyles(){for(let[t,a]of this._localTimelineStyles)this._pendingStyles.set(t,a),this._updateStyle(t,a)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let a in this._currentKeyframe)t.push(a);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((a,n)=>{let r=this._styleSummary.get(n);(!r||a.time>r.time)&&this._updateStyle(n,a.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,a=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((l,u)=>{let c=new Map([...this._backFill,...l]);c.forEach((d,m)=>{d===am?t.add(m):d===Pa&&a.add(m)}),n||c.set("offset",u/this.duration),r.push(c)});let i=[...t.values()],o=[...a.values()];if(n){let l=r[0],u=new Map(l);l.set("offset",0),u.set("offset",1),r=[l,u]}return cm(this.element,r,i,o,this.duration,this.startTime,this.easing,!1)}},Xee=class extends W1{constructor(t,a,n,r,i,o,l=!1){super(t,a,o.delay);s(this,"keyframes");s(this,"preStyleProps");s(this,"postStyleProps");s(this,"_stretchStartingKeyframe");s(this,"timings");this.keyframes=n,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=l,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:a,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&a){let i=[],o=n+a,l=a/o,u=new Map(t[0]);u.set("offset",0),i.push(u);let c=new Map(t[0]);c.set("offset",Fg(l)),i.push(c);let d=t.length-1;for(let m=1;m<=d;m++){let v=new Map(t[m]),g=v.get("offset"),w=a+g*n;v.set("offset",Fg(w/o)),i.push(v)}n=o,a=0,r="",t=i}return cm(this.element,t,this.preStyleProps,this.postStyleProps,n,a,r,!0)}};function Fg(e,t=3){let a=Math.pow(10,t-1);return Math.round(e*a)/a}function Jee(e,t){let a=new Map,n;return e.forEach(r=>{if(r==="*"){n??(n=t.keys());for(let i of n)a.set(i,Pa)}else for(let[i,o]of r)a.set(i,o)}),a}function jg(e,t,a,n,r,i,o,l,u,c,d,m,v){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:a,fromStyles:i,toState:n,toStyles:o,timelines:l,queriedElements:u,preStyleProps:c,postStyleProps:d,totalTime:m,errors:v}}var Pc={},Q1=class{constructor(e,t,a){s(this,"_triggerName");s(this,"ast");s(this,"_stateStyles");this._triggerName=e,this.ast=t,this._stateStyles=a}match(e,t,a,n){return ete(this.ast.matchers,e,t,a,n)}buildStyles(e,t,a){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e==null?void 0:e.toString())||n),n?n.buildStyles(t,a):new Map}build(e,t,a,n,r,i,o,l,u,c){var Nt;let d=[],m=this.ast.options&&this.ast.options.params||Pc,v=o&&o.params||Pc,g=this.buildStyles(a,v,d),w=l&&l.params||Pc,x=this.buildStyles(n,w,d),k=new Set,D=new Map,N=new Map,O=n==="void",J={params:X1(w,m),delay:(Nt=this.ast.options)==null?void 0:Nt.delay},le=c?[]:Z1(e,t,this.ast.animation,r,i,g,x,J,u,d),ye=0;return le.forEach(_t=>{ye=Math.max(_t.duration+_t.delay,ye)}),d.length?jg(t,this._triggerName,a,n,O,g,x,[],[],D,N,ye,d):(le.forEach(_t=>{let tt=_t.element,Ct=Sn(D,tt,new Set);_t.preStyleProps.forEach(G=>Ct.add(G));let X=Sn(N,tt,new Set);_t.postStyleProps.forEach(G=>X.add(G)),tt!==t&&k.add(tt)}),jg(t,this._triggerName,a,n,O,g,x,le,[...k.values()],D,N,ye))}};function ete(e,t,a,n,r){return e.some(i=>i(t,a,n,r))}function X1(e,t){let a=ue({},t);return Object.entries(e).forEach(([n,r])=>{r!=null&&(a[n]=r)}),a}var tte=class{constructor(e,t,a){s(this,"styles");s(this,"defaultParams");s(this,"normalizer");this.styles=e,this.defaultParams=t,this.normalizer=a}buildStyles(e,t){let a=new Map,n=X1(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((i,o)=>{i&&(i=qo(i,n,t));let l=this.normalizer.normalizePropertyName(o,t);i=this.normalizer.normalizeStyleValue(o,l,i,t),a.set(o,i)})}),a}};function nte(e,t,a){return new ate(e,t,a)}var ate=class{constructor(e,t,a){s(this,"name");s(this,"ast");s(this,"_normalizer");s(this,"transitionFactories",[]);s(this,"fallbackTransition");s(this,"states",new Map);this.name=e,this.ast=t,this._normalizer=a,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new tte(n.style,r,a))}),zg(this.states,"true","1"),zg(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new Q1(e,n,this.states))}),this.fallbackTransition=rte(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,a,n){return this.transitionFactories.find(r=>r.match(e,t,a,n))||null}matchStyles(e,t,a){return this.fallbackTransition.buildStyles(e,t,a)}};function rte(e,t,a){let n=[(o,l)=>!0],r={type:Ne.Sequence,steps:[],options:null},i={type:Ne.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new Q1(e,i,t)}function zg(e,t,a){e.has(t)?e.has(a)||e.set(a,e.get(t)):e.has(a)&&e.set(t,e.get(a))}var ite=new dm,ote=class{constructor(e,t,a){s(this,"bodyNode");s(this,"_driver");s(this,"_normalizer");s(this,"_animations",new Map);s(this,"_playersById",new Map);s(this,"players",[]);this.bodyNode=e,this._driver=t,this._normalizer=a}register(e,t){let a=[],n=[],r=G1(this._driver,t,a,n);if(a.length)throw cee();this._animations.set(e,r)}_buildPlayer(e,t,a){let n=e.element,r=j1(this._normalizer,e.keyframes,t,a);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,a={}){let n=[],r=this._animations.get(e),i,o=new Map;if(r?(i=Z1(this._driver,t,r,H1,Yd,new Map,new Map,a,ite,n),i.forEach(c=>{let d=Sn(o,c.element,new Map);c.postStyleProps.forEach(m=>d.set(m,null))})):(n.push(dee()),i=[]),n.length)throw hee();o.forEach((c,d)=>{c.forEach((m,v)=>{c.set(v,this._driver.computeStyle(d,v,Pa))})});let l=i.map(c=>{let d=o.get(c.element);return this._buildPlayer(c,new Map,d)}),u=Xa(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let a=this.players.indexOf(t);a>=0&&this.players.splice(a,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw pee();return t}listen(e,t,a,n){let r=im(t,"","","");return rm(this._getPlayer(e),a,r,n),()=>{}}command(e,t,a,n){if(a=="register"){this.register(e,n[0]);return}if(a=="create"){let i=n[0]||{};this.create(e,t,i);return}let r=this._getPlayer(e);switch(a){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(e);break}}},Vg="ng-animate-queued",ste=".ng-animate-queued",Lc="ng-animate-disabled",lte=".ng-animate-disabled",ute="ng-star-inserted",cte=".ng-star-inserted",dte=[],J1={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},hte={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qn="__ng_removed",Xd=class{constructor(e,t=""){s(this,"namespaceId");s(this,"value");s(this,"options");this.namespaceId=t;let a=e&&e.hasOwnProperty("value"),n=a?e.value:e;if(this.value=gte(n),a){let r=e,{value:i}=r,o=uq(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){let t=e.params;if(t){let a=this.options.params;Object.keys(t).forEach(n=>{a[n]==null&&(a[n]=t[n])})}}},xo="void",Fc=new Xd(xo),pte=class{constructor(e,t,a){s(this,"id");s(this,"hostElement");s(this,"_engine");s(this,"players",[]);s(this,"_triggers",new Map);s(this,"_queue",[]);s(this,"_elementListeners",new Map);s(this,"_hostClassName");this.id=e,this.hostElement=t,this._engine=a,this._hostClassName="ng-tns-"+e,Mn(t,this._hostClassName)}listen(e,t,a,n){if(!this._triggers.has(t))throw mee();if(a==null||a.length==0)throw fee();if(!vte(a))throw gee();let r=Sn(this._elementListeners,e,[]),i={name:t,phase:a,callback:n};r.push(i);let o=Sn(this._engine.statesByElement,e,new Map);return o.has(t)||(Mn(e,qs),Mn(e,qs+"-"+t),o.set(t,Fc)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(i);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw vee();return t}trigger(e,t,a,n=!0){let r=this._getTrigger(t),i=new Jd(this.id,t,e),o=this._engine.statesByElement.get(e);o||(Mn(e,qs),Mn(e,qs+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),u=new Xd(a,this.id);if(!(a&&a.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),o.set(t,u),l||(l=Fc),u.value!==xo&&l.value===u.value){if(!_te(l.params,u.params)){let v=[],g=r.matchStyles(l.value,l.params,v),w=r.matchStyles(u.value,u.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{Or(e,g),ra(e,w)})}return}let c=Sn(this._engine.playersByElement,e,[]);c.forEach(v=>{v.namespaceId==this.id&&v.triggerName==t&&v.queued&&v.destroy()});let d=r.matchTransition(l.value,u.value,e,u.params),m=!1;if(!d){if(!n)return;d=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:l,toState:u,player:i,isFallbackTransition:m}),m||(Mn(e,Vg),i.onStart(()=>{oi(e,Vg)})),i.onDone(()=>{let v=this.players.indexOf(i);v>=0&&this.players.splice(v,1);let g=this._engine.playersByElement.get(e);if(g){let w=g.indexOf(i);w>=0&&g.splice(w,1)}}),this.players.push(i),c.push(i),i}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,a)=>{this._elementListeners.set(a,t.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(a=>a.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let a=this._engine.driver.query(e,ql,!0);a.forEach(n=>{if(n[qn])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(i=>i.triggerLeaveAnimation(n,t,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>a.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,t,a,n){let r=this._engine.statesByElement.get(e),i=new Map;if(r){let o=[];if(r.forEach((l,u)=>{if(i.set(u,l.value),this._triggers.has(u)){let c=this.trigger(e,u,xo,n);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,i),a&&Xa(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),a=this._engine.statesByElement.get(e);if(t&&a){let n=new Set;t.forEach(r=>{let i=r.name;if(n.has(i))return;n.add(i);let o=this._triggers.get(i).fallbackTransition,l=a.get(i)||Fc,u=new Xd(xo),c=new Jd(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:o,fromState:l,toState:u,player:c,isFallbackTransition:!0})})}}removeNode(e,t){let a=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(a.totalAnimations){let r=a.players.length?a.playersByQueriedElement.get(e):[];if(r&&r.length)n=!0;else{let i=e;for(;i=i.parentNode;)if(a.statesByElement.get(i)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)a.markElementAsRemoved(this.id,e,!1,t);else{let r=e[qn];(!r||r===J1)&&(a.afterFlush(()=>this.clearElementCache(e)),a.destroyInnerAnimations(e),a._onRemovalComplete(e,t))}}insertNode(e,t){Mn(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(a=>{let n=a.player;if(n.destroyed)return;let r=a.element,i=this._elementListeners.get(r);i&&i.forEach(o=>{if(o.name==a.triggerName){let l=im(r,a.triggerName,a.fromState.value,a.toState.value);l._data=e,rm(a.player,o.phase,l,o.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):t.push(a)}),this._queue=[],t.sort((a,n)=>{let r=a.transition.ast.depCount,i=n.transition.ast.depCount;return r==0||i==0?r-i:this._engine.driver.containsElement(a.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},mte=class{constructor(e,t,a){s(this,"bodyNode");s(this,"driver");s(this,"_normalizer");s(this,"players",[]);s(this,"newHostElements",new Map);s(this,"playersByElement",new Map);s(this,"playersByQueriedElement",new Map);s(this,"statesByElement",new Map);s(this,"disabledNodes",new Set);s(this,"totalAnimations",0);s(this,"totalQueuedPlayers",0);s(this,"_namespaceLookup",{});s(this,"_namespaceList",[]);s(this,"_flushFns",[]);s(this,"_whenQuietFns",[]);s(this,"namespacesByHostElement",new Map);s(this,"collectedEnterElements",[]);s(this,"collectedLeaveElements",[]);s(this,"onRemovalComplete",(e,t)=>{});this.bodyNode=e,this.driver=t,this._normalizer=a}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(a=>{a.queued&&e.push(a)})}),e}createNamespace(e,t){let a=new pte(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(a,t):(this.newHostElements.set(t,a),this.collectEnterElement(t)),this._namespaceLookup[e]=a}_balanceNamespaceList(e,t){let a=this._namespaceList,n=this.namespacesByHostElement;if(a.length-1>=0){let r=!1,i=this.driver.getParentElement(t);for(;i;){let o=n.get(i);if(o){let l=a.indexOf(o);a.splice(l+1,0,e),r=!0;break}i=this.driver.getParentElement(i)}r||a.unshift(e)}else a.push(e);return n.set(t,e),e}register(e,t){let a=this._namespaceLookup[e];return a||(a=this.createNamespace(e,t)),a}registerTrigger(e,t,a){let n=this._namespaceLookup[e];n&&n.register(t,a)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let a=this._fetchNamespace(e);this.namespacesByHostElement.delete(a.hostElement);let n=this._namespaceList.indexOf(a);n>=0&&this._namespaceList.splice(n,1),a.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,a=this.statesByElement.get(e);if(a){for(let n of a.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r)}}return t}trigger(e,t,a,n){if(Gs(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,a,n),!0}return!1}insertNode(e,t,a,n){if(!Gs(t))return;let r=t[qn];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let i=this.collectedLeaveElements.indexOf(t);i>=0&&this.collectedLeaveElements.splice(i,1)}if(e){let i=this._fetchNamespace(e);i&&i.insertNode(t,a)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Mn(e,Lc)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),oi(e,Lc))}removeNode(e,t,a){if(Gs(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,a):this.markElementAsRemoved(e,t,!1,a);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,a)}else this._onRemovalComplete(t,a)}markElementAsRemoved(e,t,a,n,r){this.collectedLeaveElements.push(t),t[qn]={namespaceId:e,setForRemoval:n,hasAnimation:a,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,a,n,r){return Gs(t)?this._fetchNamespace(e).listen(t,a,n,r):()=>{}}_buildInstruction(e,t,a,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,a,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ql,!0);t.forEach(a=>this.destroyActiveAnimationsForElement(a)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Wd,!0),t.forEach(a=>this.finishActiveQueriedAnimationOnElement(a)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(a=>{a.queued?a.markedForDestroy=!0:a.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(a=>a.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Xa(this.players).onDone(()=>e());e()})}processLeaveNode(e){var a;let t=e[qn];if(t&&t.setForRemoval){if(e[qn]=J1,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}(a=e.classList)!=null&&a.contains(Lc)&&this.markElementAsDisabled(e,!1),this.driver.query(e,lte,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((a,n)=>this._balanceNamespaceList(a,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let a=0;a<this.collectedEnterElements.length;a++){let n=this.collectedEnterElements[a];Mn(n,ute)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let a=[];try{t=this._flushAnimations(a,e)}finally{for(let n=0;n<a.length;n++)a[n]()}}else for(let a=0;a<this.collectedLeaveElements.length;a++){let n=this.collectedLeaveElements[a];this.processLeaveNode(n)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(a=>a()),this._flushFns=[],this._whenQuietFns.length){let a=this._whenQuietFns;this._whenQuietFns=[],t.length?Xa(t).onDone(()=>{a.forEach(n=>n())}):a.forEach(n=>n())}}reportError(e){throw bee()}_flushAnimations(e,t){let a=new dm,n=[],r=new Map,i=[],o=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(F=>{c.add(F);let H=this.driver.query(F,ste,!0);for(let W=0;W<H.length;W++)c.add(H[W])});let d=this.bodyNode,m=Array.from(this.statesByElement.keys()),v=qg(m,this.collectedEnterElements),g=new Map,w=0;v.forEach((F,H)=>{let W=H1+w++;g.set(H,W),F.forEach(Ie=>Mn(Ie,W))});let x=[],k=new Set,D=new Set;for(let F=0;F<this.collectedLeaveElements.length;F++){let H=this.collectedLeaveElements[F],W=H[qn];W&&W.setForRemoval&&(x.push(H),k.add(H),W.hasAnimation?this.driver.query(H,cte,!0).forEach(Ie=>k.add(Ie)):D.add(H))}let N=new Map,O=qg(m,Array.from(k));O.forEach((F,H)=>{let W=Yd+w++;N.set(H,W),F.forEach(Ie=>Mn(Ie,W))}),e.push(()=>{v.forEach((F,H)=>{let W=g.get(H);F.forEach(Ie=>oi(Ie,W))}),O.forEach((F,H)=>{let W=N.get(H);F.forEach(Ie=>oi(Ie,W))}),x.forEach(F=>{this.processLeaveNode(F)})});let J=[],le=[];for(let F=this._namespaceList.length-1;F>=0;F--)this._namespaceList[F].drainQueuedTransitions(t).forEach(H=>{let W=H.player,Ie=H.element;if(J.push(W),this.collectedEnterElements.length){let nt=Ie[qn];if(nt&&nt.setForMove){if(nt.previousTriggersValues&&nt.previousTriggersValues.has(H.triggerName)){let Xt=nt.previousTriggersValues.get(H.triggerName),Ot=this.statesByElement.get(H.element);if(Ot&&Ot.has(H.triggerName)){let Xn=Ot.get(H.triggerName);Xn.value=Xt,Ot.set(H.triggerName,Xn)}}W.destroy();return}}let Xe=!d||!this.driver.containsElement(d,Ie),Qt=N.get(Ie),Me=g.get(Ie),ze=this._buildInstruction(H,a,Me,Qt,Xe);if(ze.errors&&ze.errors.length){le.push(ze);return}if(Xe){W.onStart(()=>Or(Ie,ze.fromStyles)),W.onDestroy(()=>ra(Ie,ze.toStyles)),n.push(W);return}if(H.isFallbackTransition){W.onStart(()=>Or(Ie,ze.fromStyles)),W.onDestroy(()=>ra(Ie,ze.toStyles)),n.push(W);return}let ft=[];ze.timelines.forEach(nt=>{nt.stretchStartingKeyframe=!0,this.disabledNodes.has(nt.element)||ft.push(nt)}),ze.timelines=ft,a.append(Ie,ze.timelines);let zn={instruction:ze,player:W,element:Ie};i.push(zn),ze.queriedElements.forEach(nt=>Sn(o,nt,[]).push(W)),ze.preStyleProps.forEach((nt,Xt)=>{if(nt.size){let Ot=l.get(Xt);Ot||l.set(Xt,Ot=new Set),nt.forEach((Xn,$a)=>Ot.add($a))}}),ze.postStyleProps.forEach((nt,Xt)=>{let Ot=u.get(Xt);Ot||u.set(Xt,Ot=new Set),nt.forEach((Xn,$a)=>Ot.add($a))})});if(le.length){let F=[];le.forEach(H=>{F.push(yee(H.triggerName,H.errors))}),J.forEach(H=>H.destroy()),this.reportError(F)}let ye=new Map,Nt=new Map;i.forEach(F=>{let H=F.element;a.has(H)&&(Nt.set(H,H),this._beforeAnimationBuild(F.player.namespaceId,F.instruction,ye))}),n.forEach(F=>{let H=F.element;this._getPreviousPlayers(H,!1,F.namespaceId,F.triggerName,null).forEach(W=>{Sn(ye,H,[]).push(W),W.destroy()})});let _t=x.filter(F=>$g(F,l,u)),tt=new Map;Hg(tt,this.driver,D,u,Pa).forEach(F=>{$g(F,l,u)&&_t.push(F)});let Ct=new Map;v.forEach((F,H)=>{Hg(Ct,this.driver,new Set(F),l,am)}),_t.forEach(F=>{let H=tt.get(F),W=Ct.get(F);tt.set(F,new Map([...(H==null?void 0:H.entries())??[],...(W==null?void 0:W.entries())??[]]))});let X=[],G=[],xe={};i.forEach(F=>{let{element:H,player:W,instruction:Ie}=F;if(a.has(H)){if(c.has(H)){W.onDestroy(()=>ra(H,Ie.toStyles)),W.disabled=!0,W.overrideTotalTime(Ie.totalTime),n.push(W);return}let Xe=xe;if(Nt.size>1){let Me=H,ze=[];for(;Me=Me.parentNode;){let ft=Nt.get(Me);if(ft){Xe=ft;break}ze.push(Me)}ze.forEach(ft=>Nt.set(ft,Xe))}let Qt=this._buildAnimation(W.namespaceId,Ie,ye,r,Ct,tt);if(W.setRealPlayer(Qt),Xe===xe)X.push(W);else{let Me=this.playersByElement.get(Xe);Me&&Me.length&&(W.parentPlayer=Xa(Me)),n.push(W)}}else Or(H,Ie.fromStyles),W.onDestroy(()=>ra(H,Ie.toStyles)),G.push(W),c.has(H)&&n.push(W)}),G.forEach(F=>{let H=r.get(F.element);if(H&&H.length){let W=Xa(H);F.setRealPlayer(W)}}),n.forEach(F=>{F.parentPlayer?F.syncPlayerEvents(F.parentPlayer):F.destroy()});for(let F=0;F<x.length;F++){let H=x[F],W=H[qn];if(oi(H,Yd),W&&W.hasAnimation)continue;let Ie=[];if(o.size){let Qt=o.get(H);Qt&&Qt.length&&Ie.push(...Qt);let Me=this.driver.query(H,Wd,!0);for(let ze=0;ze<Me.length;ze++){let ft=o.get(Me[ze]);ft&&ft.length&&Ie.push(...ft)}}let Xe=Ie.filter(Qt=>!Qt.destroyed);Xe.length?bte(this,H,Xe):this.processLeaveNode(H)}return x.length=0,X.forEach(F=>{this.players.push(F),F.onDone(()=>{F.destroy();let H=this.players.indexOf(F);this.players.splice(H,1)}),F.play()}),X}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,a,n,r){let i=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(i=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==xo;o.forEach(u=>{u.queued||!l&&u.triggerName!=n||i.push(u)})}}return(a||n)&&(i=i.filter(o=>!(a&&a!=o.namespaceId||n&&n!=o.triggerName))),i}_beforeAnimationBuild(e,t,a){let n=t.triggerName,r=t.element,i=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let u=l.element,c=u!==r,d=Sn(a,u,[]);this._getPreviousPlayers(u,c,i,o,t.toState).forEach(m=>{let v=m.getRealPlayer();v.beforeDestroy&&v.beforeDestroy(),m.destroy(),d.push(m)})}Or(r,t.fromStyles)}_buildAnimation(e,t,a,n,r,i){let o=t.triggerName,l=t.element,u=[],c=new Set,d=new Set,m=t.timelines.map(g=>{let w=g.element;c.add(w);let x=w[qn];if(x&&x.removedBeforeQueried)return new Ho(g.duration,g.delay);let k=w!==l,D=yte((a.get(w)||dte).map(ye=>ye.getRealPlayer())).filter(ye=>{let Nt=ye;return Nt.element?Nt.element===w:!1}),N=r.get(w),O=i.get(w),J=j1(this._normalizer,g.keyframes,N,O),le=this._buildPlayer(g,J,D);if(g.subTimeline&&n&&d.add(w),k){let ye=new Jd(e,o,w);ye.setRealPlayer(le),u.push(ye)}return le});u.forEach(g=>{Sn(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>fte(this.playersByQueriedElement,g.element,g))}),c.forEach(g=>Mn(g,Ag));let v=Xa(m);return v.onDestroy(()=>{c.forEach(g=>oi(g,Ag)),ra(l,t.toStyles)}),d.forEach(g=>{Sn(n,g,[]).push(v)}),v}_buildPlayer(e,t,a){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,a):new Ho(e.duration,e.delay)}},Jd=class{constructor(e,t,a){s(this,"namespaceId");s(this,"triggerName");s(this,"element");s(this,"_player",new Ho);s(this,"_containsRealPlayer",!1);s(this,"_queuedCallbacks",new Map);s(this,"destroyed",!1);s(this,"parentPlayer",null);s(this,"markedForDestroy",!1);s(this,"disabled",!1);s(this,"queued",!0);s(this,"totalTime",0);this.namespaceId=e,this.triggerName=t,this.element=a}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,a)=>{t.forEach(n=>rm(e,a,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Sn(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function fte(e,t,a){let n=e.get(t);if(n){if(n.length){let r=n.indexOf(a);n.splice(r,1)}n.length==0&&e.delete(t)}return n}function gte(e){return e??null}function Gs(e){return e&&e.nodeType===1}function vte(e){return e=="start"||e=="done"}function Bg(e,t){let a=e.style.display;return e.style.display=t??"none",a}function Hg(e,t,a,n,r){let i=[];a.forEach(u=>i.push(Bg(u)));let o=[];n.forEach((u,c)=>{let d=new Map;u.forEach(m=>{let v=t.computeStyle(c,m,r);d.set(m,v),(!v||v.length==0)&&(c[qn]=hte,o.push(c))}),e.set(c,d)});let l=0;return a.forEach(u=>Bg(u,i[l++])),o}function qg(e,t){let a=new Map;if(e.forEach(l=>a.set(l,[])),t.length==0)return a;let n=1,r=new Set(t),i=new Map;function o(l){if(!l)return n;let u=i.get(l);if(u)return u;let c=l.parentNode;return a.has(c)?u=c:r.has(c)?u=n:u=o(c),i.set(l,u),u}return t.forEach(l=>{let u=o(l);u!==n&&a.get(u).push(l)}),a}function Mn(e,t){var a;(a=e.classList)==null||a.add(t)}function oi(e,t){var a;(a=e.classList)==null||a.remove(t)}function bte(e,t,a){Xa(a).onDone(()=>e.processLeaveNode(t))}function yte(e){let t=[];return ew(e,t),t}function ew(e,t){for(let a=0;a<e.length;a++){let n=e[a];n instanceof F1?ew(n.players,t):t.push(n)}}function _te(e,t){let a=Object.keys(e),n=Object.keys(t);if(a.length!=n.length)return!1;for(let r=0;r<a.length;r++){let i=a[r];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}function $g(e,t,a){let n=a.get(e);if(!n)return!1;let r=t.get(e);return r?n.forEach(i=>r.add(i)):t.set(e,n),a.delete(e),!0}var eh=class{constructor(e,t,a){s(this,"_driver");s(this,"_normalizer");s(this,"_transitionEngine");s(this,"_timelineEngine");s(this,"_triggerCache",{});s(this,"onRemovalComplete",(e,t)=>{});this._driver=t,this._normalizer=a,this._transitionEngine=new mte(e.body,t,a),this._timelineEngine=new ote(e.body,t,a),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r)}registerTrigger(e,t,a,n,r){let i=e+"-"+n,o=this._triggerCache[i];if(!o){let l=[],u=[],c=G1(this._driver,r,l,u);if(l.length)throw lee();o=nte(n,c,this._normalizer),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(t,n,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,a,n){this._transitionEngine.insertNode(e,t,a,n)}onRemove(e,t,a){this._transitionEngine.removeNode(e,t,a)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,a,n){if(a.charAt(0)=="@"){let[r,i]=Og(a),o=n;this._timelineEngine.command(r,t,i,o)}else this._transitionEngine.trigger(e,t,a,n)}listen(e,t,a,n,r){if(a.charAt(0)=="@"){let[i,o]=Og(a);return this._timelineEngine.listen(i,t,o,r)}return this._transitionEngine.listen(e,t,a,n,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function wte(e,t){let a=null,n=null;return Array.isArray(t)&&t.length?(a=jc(t[0]),t.length>1&&(n=jc(t[t.length-1]))):t instanceof Map&&(a=jc(t)),a||n?new xte(e,a,n):null}var xte=(()=>{const t=class t{constructor(n,r,i){s(this,"_element");s(this,"_startStyles");s(this,"_endStyles");s(this,"_state",0);s(this,"_initialStyles");this._element=n,this._startStyles=r,this._endStyles=i;let o=t.initialStylesByElement.get(n);o||t.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&ra(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ra(this._element,this._initialStyles),this._endStyles&&(ra(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Or(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Or(this._element,this._endStyles),this._endStyles=null),ra(this._element,this._initialStyles),this._state=3)}};s(t,"initialStylesByElement",new WeakMap);let e=t;return e})();function jc(e){let t=null;return e.forEach((a,n)=>{Ete(n)&&(t=t||new Map,t.set(n,a))}),t}function Ete(e){return e==="display"||e==="position"}var Ug=class{constructor(e,t,a,n){s(this,"element");s(this,"keyframes");s(this,"options");s(this,"_specialStyles");s(this,"_onDoneFns",[]);s(this,"_onStartFns",[]);s(this,"_onDestroyFns",[]);s(this,"_duration");s(this,"_delay");s(this,"_initialized",!1);s(this,"_finished",!1);s(this,"_started",!1);s(this,"_destroyed",!1);s(this,"_finalKeyframe");s(this,"_originalOnDoneFns",[]);s(this,"_originalOnStartFns",[]);s(this,"domPlayer");s(this,"time",0);s(this,"parentPlayer",null);s(this,"currentSnapshot",new Map);this.element=e,this.keyframes=t,this.options=a,this._specialStyles=n,this._duration=a.duration,this._delay=a.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(a=>{t.push(Object.fromEntries(a))}),t}_triggerWebAnimation(e,t,a){return e.animate(this._convertKeyframesToObject(t),a)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,a)=>{a!=="offset"&&e.set(a,this._finished?t:lm(this.element,a))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(a=>a()),t.length=0}},Ste=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return z1(e,t)}getParentElement(e){return om(e)}query(e,t,a){return V1(e,t,a)}computeStyle(e,t,a){return lm(e,t)}animate(e,t,a,n,r,i=[]){let o=n==0?"both":"forwards",l={duration:a,delay:n,fill:o};r&&(l.easing=r);let u=new Map,c=i.filter(v=>v instanceof Ug);Ree(a,n)&&c.forEach(v=>{v.currentSnapshot.forEach((g,w)=>u.set(w,g))});let d=Dee(t).map(v=>new Map(v));d=Nee(e,d,u);let m=wte(e,d);return new Ug(e,d,l,m)}},ml="@",tw="@.disabled",nw=class{constructor(e,t,a,n){s(this,"namespaceId");s(this,"delegate");s(this,"engine");s(this,"_onDestroy");s(this,"ɵtype",0);this.namespaceId=e,this.delegate=t,this.engine=a,this._onDestroy=n}get data(){return this.delegate.data}destroyNode(e){var t,a;(a=(t=this.delegate).destroyNode)==null||a.call(t,e)}destroy(){var e;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),(e=this._onDestroy)==null||e.call(this)}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,a,n=!0){this.delegate.insertBefore(e,t,a),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,a){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,a,n){this.delegate.setAttribute(e,t,a,n)}removeAttribute(e,t,a){this.delegate.removeAttribute(e,t,a)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,a,n){this.delegate.setStyle(e,t,a,n)}removeStyle(e,t,a){this.delegate.removeStyle(e,t,a)}setProperty(e,t,a){t.charAt(0)==ml&&t==tw?this.disableAnimations(e,!!a):this.delegate.setProperty(e,t,a)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,a,n){return this.delegate.listen(e,t,a,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},kte=class extends nw{constructor(t,a,n,r,i){super(a,n,r,i);s(this,"factory");this.factory=t,this.namespaceId=a}setProperty(t,a,n){a.charAt(0)==ml?a.charAt(1)=="."&&a==tw?(n=n===void 0?!0:!!n,this.disableAnimations(t,n)):this.engine.process(this.namespaceId,t,a.slice(1),n):this.delegate.setProperty(t,a,n)}listen(t,a,n,r){if(a.charAt(0)==ml){let i=Cte(t),o=a.slice(1),l="";return o.charAt(0)!=ml&&([o,l]=Dte(o)),this.engine.listen(this.namespaceId,i,o,l,u=>{let c=u._data||-1;this.factory.scheduleListenerCallback(c,n,u)})}return this.delegate.listen(t,a,n,r)}};function Cte(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function Dte(e){let t=e.indexOf("."),a=e.substring(0,t),n=e.slice(t+1);return[a,n]}var Ite=class{constructor(e,t,a){s(this,"delegate");s(this,"engine");s(this,"_zone");s(this,"_currentId",0);s(this,"_microtaskId",1);s(this,"_animationCallbacksBuffer",[]);s(this,"_rendererCache",new Map);s(this,"_cdRecurDepth",0);this.delegate=e,this.engine=t,this._zone=a,t.onRemovalComplete=(n,r)=>{r==null||r.removeChild(null,n)}}createRenderer(e,t){var l;let a="",n=this.delegate.createRenderer(e,t);if(!e||!((l=t==null?void 0:t.data)!=null&&l.animation)){let u=this._rendererCache,c=u.get(n);if(!c){let d=()=>u.delete(n);c=new nw(a,n,this.engine,d),u.set(n,c)}return c}let r=t.id,i=t.id+"-"+this._currentId;this._currentId++,this.engine.register(i,e);let o=u=>{Array.isArray(u)?u.forEach(o):this.engine.registerTrigger(r,i,e,u.name,u)};return t.data.animation.forEach(o),new kte(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,a){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(a));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[i,o]=r;i(o)}),this._animationCallbacksBuffer=[]})}),n.push([t,a])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){var t,a;this.engine.flush(),(a=(t=this.delegate).componentReplaced)==null||a.call(t,e)}},Tte=(()=>{const t=class t extends eh{constructor(n,r,i){super(n,r,i)}ngOnDestroy(){this.flush()}};s(t,"ɵfac",function(n){return new(n||t)(oe(Fe),oe($1),oe(um))}),s(t,"ɵprov",V({token:t,factory:t.ɵfac}));let e=t;return e})();function Rte(){return new Aee}function Nte(e,t,a){return new Ite(e,t,a)}var Ote=[{provide:um,useFactory:Rte},{provide:eh,useClass:Tte},{provide:Wn,useFactory:Nte,deps:[Fd,eh,Ve]}],Mte=[{provide:$1,useFactory:()=>new Ste},{provide:mr,useFactory:()=>"BrowserAnimations"},...Ote];function Ate(){return Yr("NgEagerAnimations"),[...Mte]}var Pte=(()=>{const t=class t extends L1{constructor(n){super(),this.translate=n,this.getRangeLabel=(r,i,o)=>{if(o===0||i===0)return`0 / ${o}`;o=Math.max(o,0);let l=r*i,u=l<o?Math.min(l+i,o):l+i;return`${l+1} - ${u} / ${o}`},this.getAndInitTranslations=()=>{this.nextPageLabel=this.translate.instant("commons.matPaginator.nextPage"),this.previousPageLabel=this.translate.instant("commons.matPaginator.prevPage"),this.firstPageLabel=this.translate.instant("commons.matPaginator.firstPage"),this.lastPageLabel=this.translate.instant("commons.matPaginator.lastPage"),this.itemsPerPageLabel=this.translate.instant("commons.matPaginator.itemsPerPage"),this.getRangeLabel=this.getRangeLabel.bind(this),this.changes.next()},this.translate.onLangChange.subscribe(()=>{this.getAndInitTranslations()}),this.getAndInitTranslations()}};t.ɵfac=function(n){return new(n||t)(oe(Qn))},t.ɵprov=V({token:t,factory:t.ɵfac});let e=t;return e})(),aw=6048e5,Lte=864e5,Fte=6e4,jte=36e5,zte=1e3,Gg=Symbol.for("constructDateFrom");function Ut(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Gg in e?e[Gg](t):e instanceof Date?new e.constructor(t):new Date(t)}function zt(e,t){return Ut(t||e,e)}function rw(e,t,a){let n=zt(e,a==null?void 0:a.in);return isNaN(t)?Ut((a==null?void 0:a.in)||e,NaN):(t&&n.setDate(n.getDate()+t),n)}var Vte={};function Xi(){return Vte}function dr(e,t){var l,u,c,d;let a=Xi(),n=(t==null?void 0:t.weekStartsOn)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??a.weekStartsOn??((d=(c=a.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,r=zt(e,t==null?void 0:t.in),i=r.getDay(),o=(i<n?7:0)+i-n;return r.setDate(r.getDate()-o),r.setHours(0,0,0,0),r}function Li(e,t){return dr(e,Wt(ue({},t),{weekStartsOn:1}))}function iw(e,t){let a=zt(e,t==null?void 0:t.in),n=a.getFullYear(),r=Ut(a,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);let i=Li(r),o=Ut(a,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);let l=Li(o);return a.getTime()>=i.getTime()?n+1:a.getTime()>=l.getTime()?n:n-1}function Zl(e){let t=zt(e),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),+e-+a}function Bte(e,...t){let a=Ut.bind(null,t.find(n=>typeof n=="object"));return t.map(a)}function Zg(e,t){let a=zt(e,t==null?void 0:t.in);return a.setHours(0,0,0,0),a}function Hte(e,t,a){let[n,r]=Bte(a==null?void 0:a.in,e,t),i=Zg(n),o=Zg(r),l=+i-Zl(i),u=+o-Zl(o);return Math.round((l-u)/Lte)}function qte(e,t){let a=iw(e,t),n=Ut(e,0);return n.setFullYear(a,0,4),n.setHours(0,0,0,0),Li(n)}function $te(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ute(e){return!(!$te(e)&&typeof e!="number"||isNaN(+zt(e)))}function Gte(e,t){let a=zt(e,t==null?void 0:t.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}var Zte={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Yte=(e,t,a)=>{let n,r=Zte[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n};function zc(e){return(t={})=>{let a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}var Wte={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Kte={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Qte={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Xte={date:zc({formats:Wte,defaultWidth:"full"}),time:zc({formats:Kte,defaultWidth:"full"}),dateTime:zc({formats:Qte,defaultWidth:"full"})},Jte={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ene=(e,t,a,n)=>Jte[e];function lo(e){return(t,a)=>{let n=a!=null&&a.context?String(a.context):"standalone",r;if(n==="formatting"&&e.formattingValues){let o=e.defaultFormattingWidth||e.defaultWidth,l=a!=null&&a.width?String(a.width):o;r=e.formattingValues[l]||e.formattingValues[o]}else{let o=e.defaultWidth,l=a!=null&&a.width?String(a.width):e.defaultWidth;r=e.values[l]||e.values[o]}let i=e.argumentCallback?e.argumentCallback(t):t;return r[i]}}var tne={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nne={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ane={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},rne={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ine={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},one={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},sne=(e,t)=>{let a=Number(e),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},lne={ordinalNumber:sne,era:lo({values:tne,defaultWidth:"wide"}),quarter:lo({values:nne,defaultWidth:"wide",argumentCallback:e=>e-1}),month:lo({values:ane,defaultWidth:"wide"}),day:lo({values:rne,defaultWidth:"wide"}),dayPeriod:lo({values:ine,defaultWidth:"wide",formattingValues:one,defaultFormattingWidth:"wide"})};function uo(e){return(t,a={})=>{let n=a.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;let o=i[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?cne(l,m=>m.test(o)):une(l,m=>m.test(o)),c;c=e.valueCallback?e.valueCallback(u):u,c=a.valueCallback?a.valueCallback(c):c;let d=t.slice(o.length);return{value:c,rest:d}}}function une(e,t){for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return a}function cne(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return a}function dne(e){return(t,a={})=>{let n=t.match(e.matchPattern);if(!n)return null;let r=n[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=a.valueCallback?a.valueCallback(o):o;let l=t.slice(r.length);return{value:o,rest:l}}}var hne=/^(\d+)(th|st|nd|rd)?/i,pne=/\d+/i,mne={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},fne={any:[/^b/i,/^(a|c)/i]},gne={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},vne={any:[/1/i,/2/i,/3/i,/4/i]},bne={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},yne={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},_ne={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},wne={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xne={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ene={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Sne={ordinalNumber:dne({matchPattern:hne,parsePattern:pne,valueCallback:e=>parseInt(e,10)}),era:uo({matchPatterns:mne,defaultMatchWidth:"wide",parsePatterns:fne,defaultParseWidth:"any"}),quarter:uo({matchPatterns:gne,defaultMatchWidth:"wide",parsePatterns:vne,defaultParseWidth:"any",valueCallback:e=>e+1}),month:uo({matchPatterns:bne,defaultMatchWidth:"wide",parsePatterns:yne,defaultParseWidth:"any"}),day:uo({matchPatterns:_ne,defaultMatchWidth:"wide",parsePatterns:wne,defaultParseWidth:"any"}),dayPeriod:uo({matchPatterns:xne,defaultMatchWidth:"any",parsePatterns:Ene,defaultParseWidth:"any"})},ow={code:"en-US",formatDistance:Yte,formatLong:Xte,formatRelative:ene,localize:lne,match:Sne,options:{weekStartsOn:0,firstWeekContainsDate:1}};function kne(e,t){let a=zt(e,t==null?void 0:t.in);return Hte(a,Gte(a))+1}function sw(e,t){let a=zt(e,t==null?void 0:t.in),n=+Li(a)-+qte(a);return Math.round(n/aw)+1}function hm(e,t){var d,m,v,g;let a=zt(e,t==null?void 0:t.in),n=a.getFullYear(),r=Xi(),i=(t==null?void 0:t.firstWeekContainsDate)??((m=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(v=r.locale)==null?void 0:v.options)==null?void 0:g.firstWeekContainsDate)??1,o=Ut((t==null?void 0:t.in)||e,0);o.setFullYear(n+1,0,i),o.setHours(0,0,0,0);let l=dr(o,t),u=Ut((t==null?void 0:t.in)||e,0);u.setFullYear(n,0,i),u.setHours(0,0,0,0);let c=dr(u,t);return+a>=+l?n+1:+a>=+c?n:n-1}function Cne(e,t){var o,l,u,c;let a=Xi(),n=(t==null?void 0:t.firstWeekContainsDate)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??a.firstWeekContainsDate??((c=(u=a.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,r=hm(e,t),i=Ut((t==null?void 0:t.in)||e,0);return i.setFullYear(r,0,n),i.setHours(0,0,0,0),dr(i,t)}function lw(e,t){let a=zt(e,t==null?void 0:t.in),n=+dr(a,t)-+Cne(a,t);return Math.round(n/aw)+1}function Ye(e,t){let a=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return a+n}var Za={y(e,t){let a=e.getFullYear(),n=a>0?a:1-a;return Ye(t==="yy"?n%100:n,t.length)},M(e,t){let a=e.getMonth();return t==="M"?String(a+1):Ye(a+1,2)},d(e,t){return Ye(e.getDate(),t.length)},a(e,t){let a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(e,t){return Ye(e.getHours()%12||12,t.length)},H(e,t){return Ye(e.getHours(),t.length)},m(e,t){return Ye(e.getMinutes(),t.length)},s(e,t){return Ye(e.getSeconds(),t.length)},S(e,t){let a=t.length,n=e.getMilliseconds(),r=Math.trunc(n*Math.pow(10,a-3));return Ye(r,t.length)}},ri={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Yg={G:function(e,t,a){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){let n=e.getFullYear(),r=n>0?n:1-n;return a.ordinalNumber(r,{unit:"year"})}return Za.y(e,t)},Y:function(e,t,a,n){let r=hm(e,n),i=r>0?r:1-r;if(t==="YY"){let o=i%100;return Ye(o,2)}return t==="Yo"?a.ordinalNumber(i,{unit:"year"}):Ye(i,t.length)},R:function(e,t){let a=iw(e);return Ye(a,t.length)},u:function(e,t){let a=e.getFullYear();return Ye(a,t.length)},Q:function(e,t,a){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Ye(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,a){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Ye(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,a){let n=e.getMonth();switch(t){case"M":case"MM":return Za.M(e,t);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,a){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Ye(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,a,n){let r=lw(e,n);return t==="wo"?a.ordinalNumber(r,{unit:"week"}):Ye(r,t.length)},I:function(e,t,a){let n=sw(e);return t==="Io"?a.ordinalNumber(n,{unit:"week"}):Ye(n,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getDate(),{unit:"date"}):Za.d(e,t)},D:function(e,t,a){let n=kne(e);return t==="Do"?a.ordinalNumber(n,{unit:"dayOfYear"}):Ye(n,t.length)},E:function(e,t,a){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,a,n){let r=e.getDay(),i=(r-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Ye(i,2);case"eo":return a.ordinalNumber(i,{unit:"day"});case"eee":return a.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(r,{width:"short",context:"formatting"});case"eeee":default:return a.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,a,n){let r=e.getDay(),i=(r-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Ye(i,t.length);case"co":return a.ordinalNumber(i,{unit:"day"});case"ccc":return a.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(r,{width:"narrow",context:"standalone"});case"cccccc":return a.day(r,{width:"short",context:"standalone"});case"cccc":default:return a.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,a){let n=e.getDay(),r=n===0?7:n;switch(t){case"i":return String(r);case"ii":return Ye(r,t.length);case"io":return a.ordinalNumber(r,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});case"iiii":default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,a){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,a){let n=e.getHours(),r;switch(n===12?r=ri.noon:n===0?r=ri.midnight:r=n/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,a){let n=e.getHours(),r;switch(n>=17?r=ri.evening:n>=12?r=ri.afternoon:n>=4?r=ri.morning:r=ri.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),a.ordinalNumber(n,{unit:"hour"})}return Za.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getHours(),{unit:"hour"}):Za.H(e,t)},K:function(e,t,a){let n=e.getHours()%12;return t==="Ko"?a.ordinalNumber(n,{unit:"hour"}):Ye(n,t.length)},k:function(e,t,a){let n=e.getHours();return n===0&&(n=24),t==="ko"?a.ordinalNumber(n,{unit:"hour"}):Ye(n,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getMinutes(),{unit:"minute"}):Za.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getSeconds(),{unit:"second"}):Za.s(e,t)},S:function(e,t){return Za.S(e,t)},X:function(e,t,a){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Kg(n);case"XXXX":case"XX":return Ir(n);case"XXXXX":case"XXX":default:return Ir(n,":")}},x:function(e,t,a){let n=e.getTimezoneOffset();switch(t){case"x":return Kg(n);case"xxxx":case"xx":return Ir(n);case"xxxxx":case"xxx":default:return Ir(n,":")}},O:function(e,t,a){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Wg(n,":");case"OOOO":default:return"GMT"+Ir(n,":")}},z:function(e,t,a){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Wg(n,":");case"zzzz":default:return"GMT"+Ir(n,":")}},t:function(e,t,a){let n=Math.trunc(+e/1e3);return Ye(n,t.length)},T:function(e,t,a){return Ye(+e,t.length)}};function Wg(e,t=""){let a=e>0?"-":"+",n=Math.abs(e),r=Math.trunc(n/60),i=n%60;return i===0?a+String(r):a+String(r)+t+Ye(i,2)}function Kg(e,t){return e%60===0?(e>0?"-":"+")+Ye(Math.abs(e)/60,2):Ir(e,t)}function Ir(e,t=""){let a=e>0?"-":"+",n=Math.abs(e),r=Ye(Math.trunc(n/60),2),i=Ye(n%60,2);return a+r+t+i}var Qg=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},uw=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Dne=(e,t)=>{let a=e.match(/(P+)(p+)?/)||[],n=a[1],r=a[2];if(!r)return Qg(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Qg(n,t)).replace("{{time}}",uw(r,t))},th={p:uw,P:Dne},Ine=/^D+$/,Tne=/^Y+$/,Rne=["D","DD","YY","YYYY"];function cw(e){return Ine.test(e)}function dw(e){return Tne.test(e)}function nh(e,t,a){let n=Nne(e,t,a);if(console.warn(n),Rne.includes(e))throw new RangeError(n)}function Nne(e,t,a){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var One=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mne=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ane=/^'([^]*?)'?$/,Pne=/''/g,Lne=/[a-zA-Z]/;function hw(e,t,a){var d,m,v,g,w,x,k,D;let n=Xi(),r=(a==null?void 0:a.locale)??n.locale??ow,i=(a==null?void 0:a.firstWeekContainsDate)??((m=(d=a==null?void 0:a.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??n.firstWeekContainsDate??((g=(v=n.locale)==null?void 0:v.options)==null?void 0:g.firstWeekContainsDate)??1,o=(a==null?void 0:a.weekStartsOn)??((x=(w=a==null?void 0:a.locale)==null?void 0:w.options)==null?void 0:x.weekStartsOn)??n.weekStartsOn??((D=(k=n.locale)==null?void 0:k.options)==null?void 0:D.weekStartsOn)??0,l=zt(e,a==null?void 0:a.in);if(!Ute(l))throw new RangeError("Invalid time value");let u=t.match(Mne).map(N=>{let O=N[0];if(O==="p"||O==="P"){let J=th[O];return J(N,r.formatLong)}return N}).join("").match(One).map(N=>{if(N==="''")return{isToken:!1,value:"'"};let O=N[0];if(O==="'")return{isToken:!1,value:Fne(N)};if(Yg[O])return{isToken:!0,value:N};if(O.match(Lne))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");return{isToken:!1,value:N}});r.localize.preprocessor&&(u=r.localize.preprocessor(l,u));let c={firstWeekContainsDate:i,weekStartsOn:o,locale:r};return u.map(N=>{if(!N.isToken)return N.value;let O=N.value;(!(a!=null&&a.useAdditionalWeekYearTokens)&&dw(O)||!(a!=null&&a.useAdditionalDayOfYearTokens)&&cw(O))&&nh(O,t,String(e));let J=Yg[O[0]];return J(l,O,r.localize,c)}).join("")}function Fne(e){let t=e.match(Ane);return t?t[1].replace(Pne,"'"):e}function pw(){return Object.assign({},Xi())}function jne(e,t){let a=zt(e,t==null?void 0:t.in).getDay();return a===0?7:a}function zne(e,t){let a=Vne(t)?new t(0):Ut(t,0);return a.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),a.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),a}function Vne(e){var t;return typeof e=="function"&&((t=e.prototype)==null?void 0:t.constructor)===e}var Bne=10,mw=class{constructor(){s(this,"subPriority",0)}validate(e,t){return!0}},Hne=class extends mw{constructor(e,t,a,n,r){super(),this.value=e,this.validateValue=t,this.setValue=a,this.priority=n,r&&(this.subPriority=r)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,a){return this.setValue(e,t,this.value,a)}},qne=class extends mw{constructor(t,a){super();s(this,"priority",Bne);s(this,"subPriority",-1);this.context=t||(n=>Ut(a,n))}set(t,a){return a.timestampIsSet?t:Ut(t,zne(t,this.context))}},Ge=class{run(e,t,a,n){let r=this.parse(e,t,a,n);return r?{setter:new Hne(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(e,t,a){return!0}},$ne=class extends Ge{constructor(){super(...arguments);s(this,"priority",140);s(this,"incompatibleTokens",["R","u","t","T"])}parse(t,a,n){switch(a){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,a,n){return a.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}},Et={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},ia={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function St(e,t){return e&&{value:t(e.value),rest:e.rest}}function gt(e,t){let a=t.match(e);return a?{value:parseInt(a[0],10),rest:t.slice(a[0].length)}:null}function oa(e,t){let a=t.match(e);if(!a)return null;if(a[0]==="Z")return{value:0,rest:t.slice(1)};let n=a[1]==="+"?1:-1,r=a[2]?parseInt(a[2],10):0,i=a[3]?parseInt(a[3],10):0,o=a[5]?parseInt(a[5],10):0;return{value:n*(r*jte+i*Fte+o*zte),rest:t.slice(a[0].length)}}function fw(e){return gt(Et.anyDigitsSigned,e)}function yt(e,t){switch(e){case 1:return gt(Et.singleDigit,t);case 2:return gt(Et.twoDigits,t);case 3:return gt(Et.threeDigits,t);case 4:return gt(Et.fourDigits,t);default:return gt(new RegExp("^\\d{1,"+e+"}"),t)}}function Yl(e,t){switch(e){case 1:return gt(Et.singleDigitSigned,t);case 2:return gt(Et.twoDigitsSigned,t);case 3:return gt(Et.threeDigitsSigned,t);case 4:return gt(Et.fourDigitsSigned,t);default:return gt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function pm(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function gw(e,t){let a=t>0,n=a?t:1-t,r;if(n<=50)r=e||100;else{let i=n+50,o=Math.trunc(i/100)*100,l=e>=i%100;r=e+o-(l?100:0)}return a?r:1-r}function vw(e){return e%400===0||e%4===0&&e%100!==0}var Une=class extends Ge{constructor(){super(...arguments);s(this,"priority",130);s(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,a,n){let r=i=>({year:i,isTwoDigitYear:a==="yy"});switch(a){case"y":return St(yt(4,t),r);case"yo":return St(n.ordinalNumber(t,{unit:"year"}),r);default:return St(yt(a.length,t),r)}}validate(t,a){return a.isTwoDigitYear||a.year>0}set(t,a,n){let r=t.getFullYear();if(n.isTwoDigitYear){let o=gw(n.year,r);return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}let i=!("era"in a)||a.era===1?n.year:1-n.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}},Gne=class extends Ge{constructor(){super(...arguments);s(this,"priority",130);s(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,a,n){let r=i=>({year:i,isTwoDigitYear:a==="YY"});switch(a){case"Y":return St(yt(4,t),r);case"Yo":return St(n.ordinalNumber(t,{unit:"year"}),r);default:return St(yt(a.length,t),r)}}validate(t,a){return a.isTwoDigitYear||a.year>0}set(t,a,n,r){let i=hm(t,r);if(n.isTwoDigitYear){let l=gw(n.year,i);return t.setFullYear(l,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),dr(t,r)}let o=!("era"in a)||a.era===1?n.year:1-n.year;return t.setFullYear(o,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),dr(t,r)}},Zne=class extends Ge{constructor(){super(...arguments);s(this,"priority",130);s(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,a){return Yl(a==="R"?4:a.length,t)}set(t,a,n){let r=Ut(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Li(r)}},Yne=class extends Ge{constructor(){super(...arguments);s(this,"priority",130);s(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,a){return Yl(a==="u"?4:a.length,t)}set(t,a,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}},Wne=class extends Ge{constructor(){super(...arguments);s(this,"priority",120);s(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,a,n){switch(a){case"Q":case"QQ":return yt(a.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,a){return a>=1&&a<=4}set(t,a,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}},Kne=class extends Ge{constructor(){super(...arguments);s(this,"priority",120);s(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,a,n){switch(a){case"q":case"qq":return yt(a.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,a){return a>=1&&a<=4}set(t,a,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}},Qne=class extends Ge{constructor(){super(...arguments);s(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);s(this,"priority",110)}parse(t,a,n){let r=i=>i-1;switch(a){case"M":return St(gt(Et.month,t),r);case"MM":return St(yt(2,t),r);case"Mo":return St(n.ordinalNumber(t,{unit:"month"}),r);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,a){return a>=0&&a<=11}set(t,a,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}},Xne=class extends Ge{constructor(){super(...arguments);s(this,"priority",110);s(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,a,n){let r=i=>i-1;switch(a){case"L":return St(gt(Et.month,t),r);case"LL":return St(yt(2,t),r);case"Lo":return St(n.ordinalNumber(t,{unit:"month"}),r);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,a){return a>=0&&a<=11}set(t,a,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}};function Jne(e,t,a){let n=zt(e,a==null?void 0:a.in),r=lw(n,a)-t;return n.setDate(n.getDate()-r*7),zt(n,a==null?void 0:a.in)}var eae=class extends Ge{constructor(){super(...arguments);s(this,"priority",100);s(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,a,n){switch(a){case"w":return gt(Et.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return yt(a.length,t)}}validate(t,a){return a>=1&&a<=53}set(t,a,n,r){return dr(Jne(t,n,r),r)}};function tae(e,t,a){let n=zt(e,a==null?void 0:a.in),r=sw(n,a)-t;return n.setDate(n.getDate()-r*7),n}var nae=class extends Ge{constructor(){super(...arguments);s(this,"priority",100);s(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,a,n){switch(a){case"I":return gt(Et.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return yt(a.length,t)}}validate(t,a){return a>=1&&a<=53}set(t,a,n){return Li(tae(t,n))}},aae=[31,28,31,30,31,30,31,31,30,31,30,31],rae=[31,29,31,30,31,30,31,31,30,31,30,31],iae=class extends Ge{constructor(){super(...arguments);s(this,"priority",90);s(this,"subPriority",1);s(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,a,n){switch(a){case"d":return gt(Et.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return yt(a.length,t)}}validate(t,a){let n=t.getFullYear(),r=vw(n),i=t.getMonth();return r?a>=1&&a<=rae[i]:a>=1&&a<=aae[i]}set(t,a,n){return t.setDate(n),t.setHours(0,0,0,0),t}},oae=class extends Ge{constructor(){super(...arguments);s(this,"priority",90);s(this,"subpriority",1);s(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,a,n){switch(a){case"D":case"DD":return gt(Et.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return yt(a.length,t)}}validate(t,a){let n=t.getFullYear();return vw(n)?a>=1&&a<=366:a>=1&&a<=365}set(t,a,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}};function mm(e,t,a){var d,m,v,g;let n=Xi(),r=(a==null?void 0:a.weekStartsOn)??((m=(d=a==null?void 0:a.locale)==null?void 0:d.options)==null?void 0:m.weekStartsOn)??n.weekStartsOn??((g=(v=n.locale)==null?void 0:v.options)==null?void 0:g.weekStartsOn)??0,i=zt(e,a==null?void 0:a.in),o=i.getDay(),l=(t%7+7)%7,u=7-r,c=t<0||t>6?t-(o+u)%7:(l+u)%7-(o+u)%7;return rw(i,c,a)}var sae=class extends Ge{constructor(){super(...arguments);s(this,"priority",90);s(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,a,n){switch(a){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,a){return a>=0&&a<=6}set(t,a,n,r){return t=mm(t,n,r),t.setHours(0,0,0,0),t}},lae=class extends Ge{constructor(){super(...arguments);s(this,"priority",90);s(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,a,n,r){let i=o=>{let l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(a){case"e":case"ee":return St(yt(a.length,t),i);case"eo":return St(n.ordinalNumber(t,{unit:"day"}),i);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,a){return a>=0&&a<=6}set(t,a,n,r){return t=mm(t,n,r),t.setHours(0,0,0,0),t}},uae=class extends Ge{constructor(){super(...arguments);s(this,"priority",90);s(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,a,n,r){let i=o=>{let l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(a){case"c":case"cc":return St(yt(a.length,t),i);case"co":return St(n.ordinalNumber(t,{unit:"day"}),i);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,a){return a>=0&&a<=6}set(t,a,n,r){return t=mm(t,n,r),t.setHours(0,0,0,0),t}};function cae(e,t,a){let n=zt(e,a==null?void 0:a.in),r=jne(n,a),i=t-r;return rw(n,i,a)}var dae=class extends Ge{constructor(){super(...arguments);s(this,"priority",90);s(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,a,n){let r=i=>i===0?7:i;switch(a){case"i":case"ii":return yt(a.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return St(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return St(n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return St(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiii":default:return St(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r)}}validate(t,a){return a>=1&&a<=7}set(t,a,n){return t=cae(t,n),t.setHours(0,0,0,0),t}},hae=class extends Ge{constructor(){super(...arguments);s(this,"priority",80);s(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,a,n){switch(a){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,a,n){return t.setHours(pm(n),0,0,0),t}},pae=class extends Ge{constructor(){super(...arguments);s(this,"priority",80);s(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,a,n){switch(a){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,a,n){return t.setHours(pm(n),0,0,0),t}},mae=class extends Ge{constructor(){super(...arguments);s(this,"priority",80);s(this,"incompatibleTokens",["a","b","t","T"])}parse(t,a,n){switch(a){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,a,n){return t.setHours(pm(n),0,0,0),t}},fae=class extends Ge{constructor(){super(...arguments);s(this,"priority",70);s(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,a,n){switch(a){case"h":return gt(Et.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return yt(a.length,t)}}validate(t,a){return a>=1&&a<=12}set(t,a,n){let r=t.getHours()>=12;return r&&n<12?t.setHours(n+12,0,0,0):!r&&n===12?t.setHours(0,0,0,0):t.setHours(n,0,0,0),t}},gae=class extends Ge{constructor(){super(...arguments);s(this,"priority",70);s(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,a,n){switch(a){case"H":return gt(Et.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return yt(a.length,t)}}validate(t,a){return a>=0&&a<=23}set(t,a,n){return t.setHours(n,0,0,0),t}},vae=class extends Ge{constructor(){super(...arguments);s(this,"priority",70);s(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,a,n){switch(a){case"K":return gt(Et.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return yt(a.length,t)}}validate(t,a){return a>=0&&a<=11}set(t,a,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}},bae=class extends Ge{constructor(){super(...arguments);s(this,"priority",70);s(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,a,n){switch(a){case"k":return gt(Et.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return yt(a.length,t)}}validate(t,a){return a>=1&&a<=24}set(t,a,n){let r=n<=24?n%24:n;return t.setHours(r,0,0,0),t}},yae=class extends Ge{constructor(){super(...arguments);s(this,"priority",60);s(this,"incompatibleTokens",["t","T"])}parse(t,a,n){switch(a){case"m":return gt(Et.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return yt(a.length,t)}}validate(t,a){return a>=0&&a<=59}set(t,a,n){return t.setMinutes(n,0,0),t}},_ae=class extends Ge{constructor(){super(...arguments);s(this,"priority",50);s(this,"incompatibleTokens",["t","T"])}parse(t,a,n){switch(a){case"s":return gt(Et.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return yt(a.length,t)}}validate(t,a){return a>=0&&a<=59}set(t,a,n){return t.setSeconds(n,0),t}},wae=class extends Ge{constructor(){super(...arguments);s(this,"priority",30);s(this,"incompatibleTokens",["t","T"])}parse(t,a){let n=r=>Math.trunc(r*Math.pow(10,-a.length+3));return St(yt(a.length,t),n)}set(t,a,n){return t.setMilliseconds(n),t}},xae=class extends Ge{constructor(){super(...arguments);s(this,"priority",10);s(this,"incompatibleTokens",["t","T","x"])}parse(t,a){switch(a){case"X":return oa(ia.basicOptionalMinutes,t);case"XX":return oa(ia.basic,t);case"XXXX":return oa(ia.basicOptionalSeconds,t);case"XXXXX":return oa(ia.extendedOptionalSeconds,t);case"XXX":default:return oa(ia.extended,t)}}set(t,a,n){return a.timestampIsSet?t:Ut(t,t.getTime()-Zl(t)-n)}},Eae=class extends Ge{constructor(){super(...arguments);s(this,"priority",10);s(this,"incompatibleTokens",["t","T","X"])}parse(t,a){switch(a){case"x":return oa(ia.basicOptionalMinutes,t);case"xx":return oa(ia.basic,t);case"xxxx":return oa(ia.basicOptionalSeconds,t);case"xxxxx":return oa(ia.extendedOptionalSeconds,t);case"xxx":default:return oa(ia.extended,t)}}set(t,a,n){return a.timestampIsSet?t:Ut(t,t.getTime()-Zl(t)-n)}},Sae=class extends Ge{constructor(){super(...arguments);s(this,"priority",40);s(this,"incompatibleTokens","*")}parse(t){return fw(t)}set(t,a,n){return[Ut(t,n*1e3),{timestampIsSet:!0}]}},kae=class extends Ge{constructor(){super(...arguments);s(this,"priority",20);s(this,"incompatibleTokens","*")}parse(t){return fw(t)}set(t,a,n){return[Ut(t,n),{timestampIsSet:!0}]}},Cae={G:new $ne,y:new Une,Y:new Gne,R:new Zne,u:new Yne,Q:new Wne,q:new Kne,M:new Qne,L:new Xne,w:new eae,I:new nae,d:new iae,D:new oae,E:new sae,e:new lae,c:new uae,i:new dae,a:new hae,b:new pae,B:new mae,h:new fae,H:new gae,K:new vae,k:new bae,m:new yae,s:new _ae,S:new wae,X:new xae,x:new Eae,t:new Sae,T:new kae},Dae=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Iae=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tae=/^'([^]*?)'?$/,Rae=/''/g,Nae=/\S/,Oae=/[a-zA-Z]/;function Mae(e,t,a,n){var k,D,N,O;let r=()=>Ut(a,NaN),i=pw(),o=i.locale??ow,l=i.firstWeekContainsDate??((D=(k=i.locale)==null?void 0:k.options)==null?void 0:D.firstWeekContainsDate)??1,u=i.weekStartsOn??((O=(N=i.locale)==null?void 0:N.options)==null?void 0:O.weekStartsOn)??0,c={firstWeekContainsDate:l,weekStartsOn:u,locale:o},d=[new qne(n==null?void 0:n.in,a)],m=t.match(Iae).map(J=>{let le=J[0];if(le in th){let ye=th[le];return ye(J,o.formatLong)}return J}).join("").match(Dae),v=[];for(let J of m){dw(J)&&nh(J,t,e),cw(J)&&nh(J,t,e);let le=J[0],ye=Cae[le];if(ye){let{incompatibleTokens:Nt}=ye;if(Array.isArray(Nt)){let tt=v.find(Ct=>Nt.includes(Ct.token)||Ct.token===le);if(tt)throw new RangeError(`The format string mustn't contain \`${tt.fullToken}\` and \`${J}\` at the same time`)}else if(ye.incompatibleTokens==="*"&&v.length>0)throw new RangeError(`The format string mustn't contain \`${J}\` and any other token at the same time`);v.push({token:le,fullToken:J});let _t=ye.run(e,J,o.match,c);if(!_t)return r();d.push(_t.setter),e=_t.rest}else{if(le.match(Oae))throw new RangeError("Format string contains an unescaped latin alphabet character `"+le+"`");if(J==="''"?J="'":le==="'"&&(J=Aae(J)),e.indexOf(J)===0)e=e.slice(J.length);else return r()}}if(e.length>0&&Nae.test(e))return r();let g=d.map(J=>J.priority).sort((J,le)=>le-J).filter((J,le,ye)=>ye.indexOf(J)===le).map(J=>d.filter(le=>le.priority===J).sort((le,ye)=>ye.subPriority-le.subPriority)).map(J=>J[0]),w=zt(a,n==null?void 0:n.in);if(isNaN(+w))return r();let x={};for(let J of g){if(!J.validate(w,c))return r();let le=J.set(w,x,c);Array.isArray(le)?(w=le[0],Object.assign(x,le[1])):w=le}return w}function Aae(e){return e.match(Tae)[1].replace(Rae,"'")}var T=function(e){return e.SEPARATOR="separator",e.PERCENT="percent",e.IP="IP",e.CPF_CNPJ="CPF_CNPJ",e.MONTH="M",e.MONTHS="M0",e.MINUTE="m",e.HOUR="h",e.HOURS="H",e.MINUTES="m0",e.HOURS_HOUR="Hh",e.SECONDS="s0",e.HOURS_MINUTES_SECONDS="Hh:m0:s0",e.EMAIL_MASK="A*@A*.A*",e.HOURS_MINUTES="Hh:m0",e.MINUTES_SECONDS="m0:s0",e.DAYS_MONTHS_YEARS="d0/M0/0000",e.DAYS_MONTHS="d0/M0",e.DAYS="d0",e.DAY="d",e.SECOND="s",e.LETTER_S="S",e.DOT=".",e.COMMA=",",e.CURLY_BRACKETS_LEFT="{",e.CURLY_BRACKETS_RIGHT="}",e.MINUS="-",e.OR="||",e.HASH="#",e.EMPTY_STRING="",e.SYMBOL_STAR="*",e.SYMBOL_QUESTION="?",e.SLASH="/",e.WHITE_SPACE=" ",e.NUMBER_ZERO="0",e.NUMBER_NINE="9",e.BACKSPACE="Backspace",e.DELETE="Delete",e.ARROW_LEFT="ArrowLeft",e.ARROW_UP="ArrowUp",e.DOUBLE_ZERO="00",e}(T||{}),fm=new K("ngx-mask config"),bw=new K("new ngx-mask config"),yw=new K("initial ngx-mask config"),Pae={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:null,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,apm:!1,leadZero:!1,keepCharacterPositions:!1,triggerOnMaskChange:!1,inputTransformFn:e=>e,outputTransformFn:e=>e,maskFilled:new it,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}};T.HOURS_MINUTES_SECONDS,T.HOURS_MINUTES,T.MINUTES_SECONDS;T.PERCENT,T.HOURS_HOUR,T.SECONDS,T.MINUTES,T.SEPARATOR,T.DAYS_MONTHS_YEARS,T.DAYS_MONTHS,T.DAYS,T.MONTHS;var Lae=(()=>{const t=class t{constructor(){s(this,"_config",S(fm));s(this,"dropSpecialCharacters",this._config.dropSpecialCharacters);s(this,"hiddenInput",this._config.hiddenInput);s(this,"showTemplate");s(this,"clearIfNotMatch",this._config.clearIfNotMatch);s(this,"specialCharacters",this._config.specialCharacters);s(this,"patterns",this._config.patterns);s(this,"prefix",this._config.prefix);s(this,"suffix",this._config.suffix);s(this,"thousandSeparator",this._config.thousandSeparator);s(this,"decimalMarker",this._config.decimalMarker);s(this,"customPattern");s(this,"showMaskTyped",this._config.showMaskTyped);s(this,"placeHolderCharacter",this._config.placeHolderCharacter);s(this,"validation",this._config.validation);s(this,"separatorLimit",this._config.separatorLimit);s(this,"allowNegativeNumbers",this._config.allowNegativeNumbers);s(this,"leadZeroDateTime",this._config.leadZeroDateTime);s(this,"leadZero",this._config.leadZero);s(this,"apm",this._config.apm);s(this,"inputTransformFn",this._config.inputTransformFn);s(this,"outputTransformFn",this._config.outputTransformFn);s(this,"keepCharacterPositions",this._config.keepCharacterPositions);s(this,"_shift",new Set);s(this,"plusOnePosition",!1);s(this,"maskExpression","");s(this,"actualValue","");s(this,"showKeepCharacterExp","");s(this,"shownMaskExpression","");s(this,"deletedSpecialCharacter",!1);s(this,"ipError");s(this,"cpfCnpjError");s(this,"_formatWithSeparators",(n,r,i,o)=>{var g;let l=[],u="";if(Array.isArray(i)){let w=new RegExp(i.map(x=>"[\\^$.|?*+()".indexOf(x)>=0?`\\${x}`:x).join("|"));l=n.split(w),u=((g=n.match(w))==null?void 0:g[0])??T.EMPTY_STRING}else l=n.split(i),u=i;let c=l.length>1?`${u}${l[1]}`:T.EMPTY_STRING,d=l[0]??T.EMPTY_STRING,m=this.separatorLimit.replace(/\s/g,T.EMPTY_STRING);m&&+m&&(d[0]===T.MINUS?d=`-${d.slice(1,d.length).slice(0,m.length)}`:d=d.slice(0,m.length));let v=/(\d+)(\d{3})/;for(;r&&v.test(d);)d=d.replace(v,"$1"+r+"$2");return typeof o>"u"?d+c:o===0?d:d+c.substring(0,o+1)});s(this,"percentage",n=>{let r=n.replace(",","."),i=Number(this.allowNegativeNumbers&&n.includes(T.MINUS)?r.slice(1,n.length):r);return!isNaN(i)&&i>=0&&i<=100});s(this,"getPrecision",n=>{let r=n.split(T.DOT);return r.length>1?Number(r[r.length-1]):1/0});s(this,"checkAndRemoveSuffix",n=>{var r,i,o,l;for(let u=((r=this.suffix)==null?void 0:r.length)-1;u>=0;u--){let c=this.suffix.substring(u,(i=this.suffix)==null?void 0:i.length);if(n.includes(c)&&u!==((o=this.suffix)==null?void 0:o.length)-1&&(u-1<0||!n.includes(this.suffix.substring(u-1,(l=this.suffix)==null?void 0:l.length))))return n.replace(c,T.EMPTY_STRING)}return n});s(this,"checkInputPrecision",(n,r,i)=>{var u;let o=n,l=i;if(r<1/0){Array.isArray(l)&&(l=l.find(g=>g!==this.thousandSeparator)||l[0]);let c=new RegExp(this._charToRegExpExpression(l)+`\\d{${r}}.*$`),d=o.match(c),m=(d&&((u=d[0])==null?void 0:u.length))??0;if(m-1>r){let v=m-1-r;o=o.substring(0,o.length-v)}r===0&&this._compareOrIncludes(o[o.length-1],l,this.thousandSeparator)&&(o=o.substring(0,o.length-1))}return o})}applyMaskWithPattern(n,r){let[i,o]=r;return this.customPattern=o,this.applyMask(n,i)}applyMask(n,r,i=0,o=!1,l=!1,u=()=>{}){var _t,tt,Ct;if(!r||typeof n!="string")return T.EMPTY_STRING;let c=0,d="",m=!1,v=!1,g=1,w=!1,x=n,k=i;x.slice(0,this.prefix.length)===this.prefix&&(x=x.slice(this.prefix.length,x.length)),this.suffix&&x.length>0&&(x=this.checkAndRemoveSuffix(x)),x==="("&&this.prefix&&(x="");let D=x.toString().split(T.EMPTY_STRING);if(this.allowNegativeNumbers&&x.slice(c,c+1)===T.MINUS&&(d+=x.slice(c,c+1)),r===T.IP){let X=x.split(T.DOT);this.ipError=this._validIP(X),r="099.099.099.099"}let N=[];for(let X=0;X<x.length;X++)(_t=x[X])!=null&&_t.match("\\d")&&N.push(x[X]??T.EMPTY_STRING);if(r===T.CPF_CNPJ&&(this.cpfCnpjError=N.length!==11&&N.length!==14,N.length>11?r="00.000.000/0000-00":r="000.000.000-00"),r.startsWith(T.PERCENT)){if(x.match("[a-z]|[A-Z]")||x.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!l){x=this._stripToDecimal(x);let xe=this.getPrecision(r);x=this.checkInputPrecision(x,xe,this.decimalMarker)}let X=typeof this.decimalMarker=="string"?this.decimalMarker:T.DOT;if(x.indexOf(X)>0&&!this.percentage(x.substring(0,x.indexOf(X)))){let xe=x.substring(0,x.indexOf(X)-1);this.allowNegativeNumbers&&x.slice(c,c+1)===T.MINUS&&!l&&(xe=x.substring(0,x.indexOf(X))),x=`${xe}${x.substring(x.indexOf(X),x.length)}`}let G="";this.allowNegativeNumbers&&x.slice(c,c+1)===T.MINUS?G=`${T.MINUS}${x.slice(c+1,c+x.length)}`:G=x,this.percentage(G)?d=this._splitPercentZero(x):d=this._splitPercentZero(x.substring(0,x.length-1))}else if(r.startsWith(T.SEPARATOR)){(x.match("[wа-яА-Я]")||x.match("[ЁёА-я]")||x.match("[a-z]|[A-Z]")||x.match(/[-@#!$%\\^&*()_£¬'+|~=`{}\]:";<>.?/]/)||x.match("[^A-Za-z0-9,]"))&&(x=this._stripToDecimal(x));let X=this.getPrecision(r),G=Array.isArray(this.decimalMarker)?this.thousandSeparator===T.DOT?T.COMMA:T.DOT:this.decimalMarker;if(X===0?x=this.allowNegativeNumbers?x.length>2&&x[0]===T.MINUS&&x[1]===T.NUMBER_ZERO&&x[2]!==this.thousandSeparator&&x[2]!==T.COMMA&&x[2]!==T.DOT?"-"+x.slice(2,x.length):x[0]===T.NUMBER_ZERO&&x.length>1&&x[1]!==this.thousandSeparator&&x[1]!==T.COMMA&&x[1]!==T.DOT?x.slice(1,x.length):x:x.length>1&&x[0]===T.NUMBER_ZERO&&x[1]!==this.thousandSeparator&&x[1]!==T.COMMA&&x[1]!==T.DOT?x.slice(1,x.length):x:(x[0]===G&&x.length>1&&(x=T.NUMBER_ZERO+x.slice(0,x.length+1),this.plusOnePosition=!0),x[0]===T.NUMBER_ZERO&&x[1]!==G&&x[1]!==this.thousandSeparator&&(x=x.length>1?x.slice(0,1)+G+x.slice(1,x.length+1):x,this.plusOnePosition=!0),this.allowNegativeNumbers&&x[0]===T.MINUS&&(x[1]===G||x[1]===T.NUMBER_ZERO)&&(x=x[1]===G&&x.length>2?x.slice(0,1)+T.NUMBER_ZERO+x.slice(1,x.length):x[1]===T.NUMBER_ZERO&&x.length>2&&x[2]!==G?x.slice(0,2)+G+x.slice(2,x.length):x,this.plusOnePosition=!0)),l){let Me=x.slice(this._findFirstNonZeroDigitIndex(x),x.length),ze=x[k]===T.NUMBER_ZERO||x[k]===G,ft=x[0]===T.NUMBER_ZERO,zn=x[0]===T.MINUS,nt=x[0]===this.thousandSeparator,Xt=x[1]===G,Ot=x[1]===T.NUMBER_ZERO,Xn=x[2]===G;ft&&Xt&&ze&&k<2&&(x=Me),zn&&Ot&&Xn&&ze&&k<3&&(x=T.MINUS+Me),Me!==T.MINUS&&(k===0&&(ft||nt)||this.allowNegativeNumbers&&k===1&&zn&&!Ot)&&(x=zn?T.MINUS+Me:Me)}let xe=this._charToRegExpExpression(this.thousandSeparator),F='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(xe,"");if(Array.isArray(this.decimalMarker))for(let Me of this.decimalMarker)F=F.replace(this._charToRegExpExpression(Me),T.EMPTY_STRING);else F=F.replace(this._charToRegExpExpression(this.decimalMarker),"");let H=new RegExp("["+F+"]");x.match(H)&&(x=x.substring(0,x.length-1)),x=this.checkInputPrecision(x,X,this.decimalMarker);let W=x.replace(new RegExp(xe,"g"),"");d=this._formatWithSeparators(W,this.thousandSeparator,this.decimalMarker,X);let Ie=d.indexOf(T.COMMA)-x.indexOf(T.COMMA),Xe=d.length-x.length,Qt=l&&d.length<n.length&&this.separatorLimit;if((d[k-1]===this.thousandSeparator||d[k-this.prefix.length])&&this.prefix&&l)k=k-1;else if(Xe>0&&d[k]!==this.thousandSeparator||Qt){v=!0;let Me=0;do this._shift.add(k+Me),Me++;while(Me<Xe)}else d[k-1]===this.thousandSeparator||Xe===-4||Xe===-3||d[k]===this.thousandSeparator?(this._shift.clear(),this._shift.add(k-1)):Ie!==0&&k>0&&!(d.indexOf(T.COMMA)>=k&&k>3)||!(d.indexOf(T.DOT)>=k&&k>3)&&Xe<=0?(this._shift.clear(),v=!0,g=Xe,k+=Xe,this._shift.add(k)):this._shift.clear()}else for(let X=0,G=D[0];X<D.length&&c!==r.length;X++,G=D[X]??T.EMPTY_STRING){let xe=T.SYMBOL_STAR in this.patterns;if(this._checkSymbolMask(G,r[c]??T.EMPTY_STRING)&&r[c+1]===T.SYMBOL_QUESTION)d+=G,c+=2;else if(r[c+1]===T.SYMBOL_STAR&&m&&this._checkSymbolMask(G,r[c+2]??T.EMPTY_STRING))d+=G,c+=3,m=!1;else if(this._checkSymbolMask(G,r[c]??T.EMPTY_STRING)&&r[c+1]===T.SYMBOL_STAR&&!xe)d+=G,m=!0;else if(r[c+1]===T.SYMBOL_QUESTION&&this._checkSymbolMask(G,r[c+2]??T.EMPTY_STRING))d+=G,c+=3;else if(this._checkSymbolMask(G,r[c]??T.EMPTY_STRING)){if(r[c]===T.HOURS&&(this.apm?Number(G)>9:Number(G)>2)){k=this.leadZeroDateTime?k:k+1,c+=1,this._shiftStep(r,c,D.length),X--,this.leadZeroDateTime&&(d+="0");continue}if(r[c]===T.HOUR&&(this.apm?d.length===1&&Number(d)>1||d==="1"&&Number(G)>2||x.slice(c-1,c).length===1&&Number(x.slice(c-1,c))>2||x.slice(c-1,c)==="1"&&Number(G)>2:d==="2"&&Number(G)>3||(d.slice(c-2,c)==="2"||d.slice(c-3,c)==="2"||d.slice(c-4,c)==="2"||d.slice(c-1,c)==="2")&&Number(G)>3&&c>10)){k=k+1,c+=1,X--;continue}if((r[c]===T.MINUTE||r[c]===T.SECOND)&&Number(G)>5){k=this.leadZeroDateTime?k:k+1,c+=1,this._shiftStep(r,c,D.length),X--,this.leadZeroDateTime&&(d+="0");continue}let F=31,H=x[c],W=x[c+1],Ie=x[c+2],Xe=x[c-1],Qt=x[c-2],Me=x.slice(c-3,c-1),ze=x.slice(c-1,c+1),ft=x.slice(c,c+2),zn=x.slice(c-2,c);if(r[c]===T.DAY){let nt=r.slice(0,2)===T.MONTHS,Xt=r.slice(0,2)===T.MONTHS&&this.specialCharacters.includes(Qt);if(Number(G)>3&&this.leadZeroDateTime||!nt&&(Number(ft)>F||Number(ze)>F||this.specialCharacters.includes(W))||(Xt?Number(ze)>F||!this.specialCharacters.includes(H)&&this.specialCharacters.includes(Ie)||this.specialCharacters.includes(H):Number(ft)>F||this.specialCharacters.includes(W)&&!l)){k=this.leadZeroDateTime?k:k+1,c+=1,this._shiftStep(r,c,D.length),X--,this.leadZeroDateTime&&(d+="0");continue}}if(r[c]===T.MONTH){let nt=c===0&&(Number(G)>2||Number(ft)>12||this.specialCharacters.includes(W)&&!l),Xt=r.slice(c+2,c+3),Ot=Me.includes(Xt)&&r.includes("d0")&&(this.specialCharacters.includes(Qt)&&Number(ze)>12&&!this.specialCharacters.includes(H)||this.specialCharacters.includes(H)),Xn=Number(Me)<=F&&!this.specialCharacters.includes(Me)&&this.specialCharacters.includes(Xe)&&(Number(ft)>12||this.specialCharacters.includes(W)),$a=Number(ft)>12&&c===5||this.specialCharacters.includes(W)&&c===5,vs=Number(Me)>F&&!this.specialCharacters.includes(Me)&&!this.specialCharacters.includes(zn)&&Number(zn)>12&&r.includes("d0"),bs=Number(Me)<=F&&!this.specialCharacters.includes(Me)&&!this.specialCharacters.includes(Xe)&&Number(ze)>12;if(Number(G)>1&&this.leadZeroDateTime||nt||Ot||bs||vs||Xn||$a&&!this.leadZeroDateTime){k=this.leadZeroDateTime?k:k+1,c+=1,this._shiftStep(r,c,D.length),X--,this.leadZeroDateTime&&(d+="0");continue}}d+=G,c++}else this.specialCharacters.includes(G)&&r[c]===G?(d+=G,c++):this.specialCharacters.indexOf(r[c]??T.EMPTY_STRING)!==-1?(d+=r[c],c++,this._shiftStep(r,c,D.length),X--):r[c]===T.NUMBER_NINE&&this.showMaskTyped?this._shiftStep(r,c,D.length):this.patterns[r[c]??T.EMPTY_STRING]&&((tt=this.patterns[r[c]??T.EMPTY_STRING])!=null&&tt.optional)?(D[c]&&r!=="099.099.099.099"&&r!=="000.000.000-00"&&r!=="00.000.000/0000-00"&&!r.match(/^9+\.0+$/)&&!((Ct=this.patterns[r[c]??T.EMPTY_STRING])!=null&&Ct.optional)&&(d+=D[c]),r.includes(T.NUMBER_NINE+T.SYMBOL_STAR)&&r.includes(T.NUMBER_ZERO+T.SYMBOL_STAR)&&c++,c++,X--):this.maskExpression[c+1]===T.SYMBOL_STAR&&this._findSpecialChar(this.maskExpression[c+2]??T.EMPTY_STRING)&&this._findSpecialChar(G)===this.maskExpression[c+2]&&m||this.maskExpression[c+1]===T.SYMBOL_QUESTION&&this._findSpecialChar(this.maskExpression[c+2]??T.EMPTY_STRING)&&this._findSpecialChar(G)===this.maskExpression[c+2]&&m?(c+=3,d+=G):this.showMaskTyped&&this.specialCharacters.indexOf(G)<0&&G!==this.placeHolderCharacter&&this.placeHolderCharacter.length===1&&(w=!0)}d.length+1===r.length&&this.specialCharacters.indexOf(r[r.length-1]??T.EMPTY_STRING)!==-1&&(d+=r[r.length-1]);let O=k+1;for(;this._shift.has(O);)g++,O++;let J=o&&!r.startsWith(T.SEPARATOR)?c:this._shift.has(k)?g:0;w&&J--,u(J,v),g<0&&this._shift.clear();let le=!1;l&&(le=D.every(X=>this.specialCharacters.includes(X)));let ye=`${this.prefix}${le?T.EMPTY_STRING:d}${this.showMaskTyped?"":this.suffix}`;d.length===0&&(ye=this.dropSpecialCharacters?`${d}`:`${this.prefix}${d}`);let Nt=x.length===1&&this.specialCharacters.includes(r[0])&&x!==r[0];if(!this._checkSymbolMask(x,r[1])&&Nt)return"";if(d.includes(T.MINUS)&&this.prefix&&this.allowNegativeNumbers){if(l&&d===T.MINUS)return"";ye=`${T.MINUS}${this.prefix}${d.split(T.MINUS).join(T.EMPTY_STRING)}${this.suffix}`}return ye}_findDropSpecialChar(n){return Array.isArray(this.dropSpecialCharacters)?this.dropSpecialCharacters.find(r=>r===n):this._findSpecialChar(n)}_findSpecialChar(n){return this.specialCharacters.find(r=>r===n)}_checkSymbolMask(n,r){var i,o;return this.patterns=this.customPattern?this.customPattern:this.patterns,(((i=this.patterns[r])==null?void 0:i.pattern)&&((o=this.patterns[r])==null?void 0:o.pattern.test(n)))??!1}_stripToDecimal(n){return n.split(T.EMPTY_STRING).filter((r,i)=>{let o=typeof this.decimalMarker=="string"?r===this.decimalMarker:this.decimalMarker.includes(r);return r.match("^-?\\d")||r===this.thousandSeparator||o||r===T.MINUS&&i===0&&this.allowNegativeNumbers}).join(T.EMPTY_STRING)}_charToRegExpExpression(n){return n&&(n===" "?"\\s":"[\\^$.|?*+()".indexOf(n)>=0?`\\${n}`:n)}_shiftStep(n,r,i){let o=/[*?]/g.test(n.slice(0,r))?i:r;this._shift.add(o+this.prefix.length||0)}_compareOrIncludes(n,r,i){return Array.isArray(r)?r.filter(o=>o!==i).includes(n):n===r}_validIP(n){return!(n.length===4&&!n.some((r,i)=>n.length!==i+1?r===T.EMPTY_STRING||Number(r)>255:r===T.EMPTY_STRING||Number(r.substring(0,3))>255))}_splitPercentZero(n){if(n===T.MINUS&&this.allowNegativeNumbers)return n;let r=typeof this.decimalMarker=="string"?n.indexOf(this.decimalMarker):n.indexOf(T.DOT),i=this.allowNegativeNumbers&&n.includes(T.MINUS)?"-":"";if(r===-1){let o=parseInt(i?n.slice(1,n.length):n,10);return isNaN(o)?T.EMPTY_STRING:`${i}${o}`}else{let o=parseInt(n.replace("-","").substring(0,r),10),l=n.substring(r+1),u=isNaN(o)?"":o.toString(),c=typeof this.decimalMarker=="string"?this.decimalMarker:T.DOT;return u===T.EMPTY_STRING?T.EMPTY_STRING:`${i}${u}${c}${l}`}}_findFirstNonZeroDigitIndex(n){for(let r=0;r<n.length;r++){let i=n[r];if(i&&i>="1"&&i<="9")return r}return-1}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵprov",V({token:t,factory:t.ɵfac}));let e=t;return e})(),Fae=(()=>{const t=class t extends Lae{constructor(){super(...arguments);s(this,"isNumberValue",!1);s(this,"maskIsShown","");s(this,"selStart",null);s(this,"selEnd",null);s(this,"writingValue",!1);s(this,"maskChanged",!1);s(this,"_maskExpressionArray",[]);s(this,"triggerOnMaskChange",!1);s(this,"_previousValue","");s(this,"_currentValue","");s(this,"_emitValue",!1);s(this,"_start");s(this,"_end");s(this,"onChange",r=>{});s(this,"_elementRef",S(Qe,{optional:!0}));s(this,"document",S(Fe));s(this,"_config",S(fm));s(this,"_renderer",S(Kr,{optional:!0}))}applyMask(r,i,o=0,l=!1,u=!1,c=()=>{}){if(!i)return r!==this.actualValue?this.actualValue:r;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():T.EMPTY_STRING,this.maskExpression===T.IP&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(r||T.HASH)),this.maskExpression===T.CPF_CNPJ&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(r||T.HASH)),!r&&this.showMaskTyped)return this.formControlResult(this.prefix),`${this.prefix}${this.maskIsShown}${this.suffix}`;let d=r&&typeof this.selStart=="number"?r[this.selStart]??T.EMPTY_STRING:T.EMPTY_STRING,m="",v=o;if(this.hiddenInput!==null&&!this.writingValue){let k=r&&r.length===1?r.split(T.EMPTY_STRING):this.actualValue.split(T.EMPTY_STRING);typeof this.selStart=="object"&&typeof this.selEnd=="object"?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):r!==T.EMPTY_STRING&&k.length?typeof this.selStart=="number"&&typeof this.selEnd=="number"&&(r.length>k.length?k.splice(this.selStart,0,d):r.length<k.length&&(k.length-r.length===1?u?k.splice(this.selStart-1,1):k.splice(r.length-1,1):k.splice(this.selStart,this.selEnd-this.selStart))):k=[],this.showMaskTyped&&!this.hiddenInput&&(m=this.removeMask(r)),m=this.actualValue.length&&k.length<=r.length?this.shiftTypedSymbols(k.join(T.EMPTY_STRING)):r}if(l&&(this.hiddenInput||!this.hiddenInput)&&(m=r),u&&this.specialCharacters.indexOf(this.maskExpression[v]??T.EMPTY_STRING)!==-1&&this.showMaskTyped&&!this.prefix&&(m=this._currentValue),this.deletedSpecialCharacter&&v&&(this.specialCharacters.includes(this.actualValue.slice(v,v+1))?v=v+1:i.slice(v-1,v+1)!==T.MONTHS&&(v=v-2),this.deletedSpecialCharacter=!1),this.showMaskTyped&&this.placeHolderCharacter.length===1&&!this.leadZeroDateTime&&(m=this.removeMask(r)),this.maskChanged?m=r:m=m&&m.length?m:r,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!l&&!this.writingValue){let k=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(k),this.actualValue?this.actualValue:`${this.prefix}${this.maskIsShown}${this.suffix}`}let g=super.applyMask(m,i,v,l,u,c);if(this.actualValue=this.getActualValue(g),this.thousandSeparator===T.DOT&&this.decimalMarker===T.DOT&&(this.decimalMarker=T.COMMA),this.maskExpression.startsWith(T.SEPARATOR)&&this.dropSpecialCharacters===!0&&(this.specialCharacters=this.specialCharacters.filter(k=>!this._compareOrIncludes(k,this.decimalMarker,this.thousandSeparator))),(g||g==="")&&(this._previousValue=this._currentValue,this._currentValue=g,this._emitValue=this._previousValue!==this._currentValue||this.maskChanged||this.writingValue||this._previousValue===this._currentValue&&l),this._emitValue&&(this.writingValue&&this.triggerOnMaskChange?requestAnimationFrame(()=>this.formControlResult(g)):this.formControlResult(g)),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?u?this.hideInput(g,this.maskExpression):`${this.hideInput(g,this.maskExpression)}${this.maskIsShown.slice(g.length)}`:g;let w=g.length,x=`${this.prefix}${this.maskIsShown}${this.suffix}`;if(this.maskExpression.includes(T.HOURS)){let k=this._numberSkipedSymbols(g);return`${g}${x.slice(w+k)}`}else if(this.maskExpression===T.IP||this.maskExpression===T.CPF_CNPJ)return`${g}${x}`;return`${g}${x.slice(w)}`}_numberSkipedSymbols(r){let i=/(^|\D)(\d\D)/g,o=i.exec(r),l=0;for(;o!=null;)l+=1,o=i.exec(r);return l}applyValueChanges(r,i,o,l=()=>{}){var c;let u=(c=this._elementRef)==null?void 0:c.nativeElement;u&&(u.value=this.applyMask(u.value,this.maskExpression,r,i,o,l),u!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(r,i){return r.split(T.EMPTY_STRING).map((o,l)=>{var u,c;return this.patterns&&this.patterns[i[l]??T.EMPTY_STRING]&&((u=this.patterns[i[l]??T.EMPTY_STRING])!=null&&u.symbol)?(c=this.patterns[i[l]??T.EMPTY_STRING])==null?void 0:c.symbol:o}).join(T.EMPTY_STRING)}getActualValue(r){let i=r.split(T.EMPTY_STRING).filter((o,l)=>{let u=this.maskExpression[l]??T.EMPTY_STRING;return this._checkSymbolMask(o,u)||this.specialCharacters.includes(u)&&o===u});return i.join(T.EMPTY_STRING)===r?i.join(T.EMPTY_STRING):r}shiftTypedSymbols(r){let i="";return(r&&r.split(T.EMPTY_STRING).map((o,l)=>{if(this.specialCharacters.includes(r[l+1]??T.EMPTY_STRING)&&r[l+1]!==this.maskExpression[l+1])return i=o,r[l+1];if(i.length){let u=i;return i=T.EMPTY_STRING,u}return o})||[]).join(T.EMPTY_STRING)}numberToString(r){return!r&&r!==0||this.maskExpression.startsWith(T.SEPARATOR)&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith(T.SEPARATOR)&&this.separatorLimit.length>14&&String(r).length>14?String(r):Number(r).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace(`/${T.MINUS}/`,T.MINUS)}showMaskInInput(r){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}else if(this.showMaskTyped){if(r){if(this.maskExpression===T.IP)return this._checkForIp(r);if(this.maskExpression===T.CPF_CNPJ)return this._checkForCpfCnpj(r)}return this.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){var i;let r=(i=this._elementRef)==null?void 0:i.nativeElement;r&&this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==r.value.replace(this.placeHolderCharacter,T.EMPTY_STRING).length&&(this.formElementProperty=["value",T.EMPTY_STRING],this.applyMask("",this.maskExpression))}set formElementProperty([r,i]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>{var o,l;return(l=this._renderer)==null?void 0:l.setProperty((o=this._elementRef)==null?void 0:o.nativeElement,r,i)})}checkDropSpecialCharAmount(r){return r.split(T.EMPTY_STRING).filter(i=>this._findDropSpecialChar(i)).length}removeMask(r){return this._removeMask(this._removeSuffix(this._removePrefix(r)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(r){if(r===T.HASH)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;let i=[];for(let o=0;o<r.length;o++){let l=r[o]??T.EMPTY_STRING;l&&l.match("\\d")&&i.push(l)}return i.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>3&&i.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>6&&i.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(r){let i=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,o=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if(r===T.HASH)return i;let l=[];for(let u=0;u<r.length;u++){let c=r[u]??T.EMPTY_STRING;c&&c.match("\\d")&&l.push(c)}return l.length<=3?i.slice(l.length,i.length):l.length>3&&l.length<=6?i.slice(l.length+1,i.length):l.length>6&&l.length<=9?i.slice(l.length+2,i.length):l.length>9&&l.length<11?i.slice(l.length+3,i.length):l.length===11?"":l.length===12?r.length===17?o.slice(16,o.length):o.slice(15,o.length):l.length>12&&l.length<=14?o.slice(l.length+4,o.length):""}_getActiveElement(r=this.document){var o;let i=(o=r==null?void 0:r.activeElement)==null?void 0:o.shadowRoot;return i!=null&&i.activeElement?this._getActiveElement(i):r.activeElement}formControlResult(r){if(this.writingValue&&!r){this.onChange("");return}if(this.writingValue||!this.triggerOnMaskChange&&this.maskChanged){this.triggerOnMaskChange&&this.maskChanged&&this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(r)))))),this.maskChanged=!1;return}Array.isArray(this.dropSpecialCharacters)?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeMask(this._removeSuffix(this._removePrefix(r)),this.dropSpecialCharacters))))):this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===r?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(r)))))):this.onChange(this.outputTransformFn(this._toNumber(r)))}_toNumber(r){if(!this.isNumberValue||r===T.EMPTY_STRING||this.maskExpression.startsWith(T.SEPARATOR)&&(this.leadZero||!this.dropSpecialCharacters))return r;if(String(r).length>14&&this.maskExpression.startsWith(T.SEPARATOR))return String(r);let i=Number(r);if(this.maskExpression.startsWith(T.SEPARATOR)&&Number.isNaN(i)){let o=String(r).replace(",",".");return Number(o)}return Number.isNaN(i)?r:i}_removeMask(r,i){return this.maskExpression.startsWith(T.PERCENT)&&r.includes(T.DOT)?r:r&&r.replace(this._regExpForRemove(i),T.EMPTY_STRING)}_removePrefix(r){return this.prefix?r&&r.replace(this.prefix,T.EMPTY_STRING):r}_removeSuffix(r){return this.suffix?r&&r.replace(this.suffix,T.EMPTY_STRING):r}_retrieveSeparatorValue(r){let i=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(o=>this.dropSpecialCharacters.includes(o)):this.specialCharacters;return!this.deletedSpecialCharacter&&this._checkPatternForSpace()&&r.includes(T.WHITE_SPACE)&&this.maskExpression.includes(T.SYMBOL_STAR)&&(i=i.filter(o=>o!==T.WHITE_SPACE)),this._removeMask(r,i)}_regExpForRemove(r){return new RegExp(r.map(i=>`\\${i}`).join("|"),"gi")}_replaceDecimalMarkerToDot(r){let i=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return r.replace(this._regExpForRemove(i),T.DOT)}_checkSymbols(r){let i=r;if(i===T.EMPTY_STRING)return i;this.maskExpression.startsWith(T.PERCENT)&&this.decimalMarker===T.COMMA&&(i=i.replace(T.COMMA,T.DOT));let o=this._retrieveSeparatorPrecision(this.maskExpression),l=this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(i));return this.isNumberValue&&o?i===this.decimalMarker?null:l.length>14?String(l):this._checkPrecision(this.maskExpression,l):l}_checkPatternForSpace(){var r,i,o;for(let l in this.patterns)if(this.patterns[l]&&((r=this.patterns[l])!=null&&r.hasOwnProperty("pattern"))){let u=(i=this.patterns[l])==null?void 0:i.pattern.toString(),c=(o=this.patterns[l])==null?void 0:o.pattern;if(u!=null&&u.includes(T.WHITE_SPACE)&&(c!=null&&c.test(this.maskExpression)))return!0}return!1}_retrieveSeparatorPrecision(r){let i=r.match(new RegExp("^separator\\.([^d]*)"));return i?Number(i[1]):null}_checkPrecision(r,i){let o=this.getPrecision(r),l=i;return r.indexOf("2")>0||this.leadZero&&Number(o)>0?(this.decimalMarker===T.COMMA&&this.leadZero&&(l=l.replace(",",".")),this.leadZero?Number(l).toFixed(Number(o)):Number(l).toFixed(2)):this.numberToString(l)}_repeatPatternSymbols(r){return r.match(/{[0-9]+}/)&&r.split(T.EMPTY_STRING).reduce((i,o,l)=>{if(this._start=o===T.CURLY_BRACKETS_LEFT?l:this._start,o!==T.CURLY_BRACKETS_RIGHT)return this._findSpecialChar(o)?i+o:i;this._end=l;let u=Number(r.slice(this._start+1,this._end)),c=new Array(u+1).join(r[this._start-1]);if(r.slice(0,this._start).length>1&&r.includes(T.LETTER_S)){let d=r.slice(0,this._start-1);return d.includes(T.CURLY_BRACKETS_LEFT)?i+c:d+i+c}else return i+c},"")||r}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}};s(t,"ɵfac",(()=>{let r;return function(i){return(r||(r=et(t)))(i||t)}})()),s(t,"ɵprov",V({token:t,factory:t.ɵfac}));let e=t;return e})();function jae(){let e=S(yw),t=S(bw);return t instanceof Function?ue(ue({},e),t()):ue(ue({},e),t)}function zae(e){return[{provide:bw,useValue:e},{provide:yw,useValue:Pae},{provide:fm,useFactory:jae},Fae]}function Vae(e){return Oh(zae(e))}function Bae(e){var t,a,n,r;return((a=(t=e.userProfile)==null?void 0:t.children)==null?void 0:a.length)>0?e.userProfile.children[0].ssin:((r=(n=e.userProfile)==null?void 0:n.mandators)==null?void 0:r.length)>0?e.userProfile.mandators[0].ssin:e.userProfile.ssin}var _w=(()=>{const t=class t{get isProfessional(){return this._isProfessional}set isProfessional(n){this._isProfessional=n}get patientSsin(){return this._patientSsin}set patientSsin(n){this._patientSsin=n}get isOfflineDataStorageEnabled(){return this._offlineDataStorageEnabled}set isOfflineDataStorageEnabled(n){this._offlineDataStorageEnabled=n}get isOfflineAuthenticated(){return this._isOfflineAuthenticated}set isOfflineAuthenticated(n){this._isOfflineAuthenticated=n}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Hae="4.0",ah=Hae,Ja=(e=>(e.DEV="dev",e.DEMO="demo",e.INT="int",e.ACC="acc",e.PROD="prod",e))(Ja||{}),qae=(()=>{const t=class t{constructor(){s(this,"version");s(this,"language");s(this,"configName");s(this,"services");s(this,"onPrint",new it);s(this,"_ngInitDone",!1);s(this,"correctlySetup",!1);s(this,"extraRequiredFields",[])}validateVersion(){let n=ah.split(".").map(i=>parseInt(i)),r=(this.version||"").split(".").map(i=>parseInt(i));return r.length!==2?(console.error(`[BaseWebComponent] The given version (${this.version}) has the wrong format <major>.<minor>!`),!1):r[0]!==n[0]?(console.error(`[BaseWebComponent] The given version (${this.version})'s major is not compatible with this component's major version (${ah})!`),!1):!0}validateInputs(){let n=this,r=["language","configName","services","version",...this.extraRequiredFields],{missingFields:i,presentFields:o}=r.reduce((l,u)=>(n[u]===void 0?l.missingFields.push(u):l.presentFields.push(u),l),{missingFields:[],presentFields:[]});return i.length?(console.log(`[BaseWebComponent] Waiting for missing inputs: ${i.join(", ")}; Present inputs: ${o.join(", ")}`),!1):(console.log("[BaseWebComponent] All required inputs are present"),this.validateVersion()?this.services.cacheDataStorage==null?(console.error("[BaseWebComponent] The given services input does not contain a cache service!"),!1):this.services.getAccessToken==null?(console.error("[BaseWebComponent] The given services input does not contain a getAccessToken() function!"),!1):this.services.registerRefreshCallback==null?(console.error("[BaseWebComponent] The given services input does not contain a registerRefreshCallback() function!"),!1):!0:!1)}ngOnChanges(n){this.correctlySetup=this.validateInputs(),this.correctlySetup&&(this._ngInitDone?this.onPropsChanged(n):(this.onInitialized(),this._ngInitDone=!0))}isCorrectlySetup(){return this.correctlySetup}onInitialized(){}onPropsChanged(n){}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵcmp",Oe({type:t,selectors:[["ng-component"]],inputs:{version:"version",language:"language",configName:"configName",services:"services"},outputs:{onPrint:"onPrint"},features:[Ur],decls:0,vars:0,template:function(n,r){},encapsulation:2}));let e=t;return e})(),ww=class{constructor(e,t,a,n,r){s(this,"logId");s(this,"services");s(this,"key");s(this,"cacheFetchingKey");s(this,"offlineDataStorageEnabled");s(this,"isOfflineAuthenticated");this.logId=r,this.services=e,this.key=t,this.cacheFetchingKey=`fetching-${this.key}`,this.offlineDataStorageEnabled=n,this.isOfflineAuthenticated=a}fetchBackendData(){return At(this,null,function*(){let e=yield this.getDataFromBackend();return e&&(yield this.updateStoredData(e)),e})}fetchOfflineData(){return At(this,null,function*(){if(this.services.offlineDataStorage==null)return null;let e=yield this.services.offlineDataStorage.get(this.key);return e==null&&this.logId&&console.log("[%s] Offline data not found for key [%s]",this.logId,this.key),this.logId&&console.log("[%s] Found valid data in offline store for key [%s]: [%s]",this.logId,this.key,e),this.storeDataInCache(e),e})}storeDataOffline(e){return At(this,null,function*(){this.offlineDataStorageEnabled&&this.services.offlineDataStorage&&e&&(yield this.services.offlineDataStorage.set(this.key,e),this.logId&&console.log("[%s] Updated data in the offline store",this.logId))})}storeDataInCache(e){e&&(this.logId&&console.log("[%s] updating data in cache at [%s]",this.logId,this.key),this.services.cacheDataStorage.set(this.key,e))}getDataFromCache(){return At(this,null,function*(){let e=t=>{this.services.cacheDataStorage.get(this.cacheFetchingKey)?(this.logId&&console.log("[%s] Another WC is fetching data... Waiting a bit.",this.logId),setTimeout(()=>{e(t)},500)):t(this.services.cacheDataStorage.get(this.key))};return this.logId&&console.log("[%s] Trying to get data from cache...",this.logId),new Promise(t=>{e(t)})})}getData(e=!1){return At(this,null,function*(){let t=null;if(this.isOfflineAuthenticated){if(this.offlineDataStorageEnabled&&this.services.offlineDataStorage)return yield this.fetchOfflineData();throw new Error(`[${this.logId}] Trying to access offline store while it is not present or not enabled`)}if(!e){if(t=yield this.getDataFromCache(),t)return this.logId&&console.log("[%s] Data pulled from cache: ",this.logId,t),t;this.logId&&console.log("[%s] No data in cache",this.logId)}try{return this.services.cacheDataStorage.set(this.cacheFetchingKey,!0),yield this.fetchBackendData()}finally{this.services.cacheDataStorage.remove(this.cacheFetchingKey)}})}updateStoredData(e){return At(this,null,function*(){this.storeDataInCache(e),yield this.storeDataOffline(e)})}},$ae=()=>{let e=["WebView","(iPhone|iPod|iPad)(?!.*Safari)","Android.*(;\\s+wv|Version/\\d.\\d\\s+Chrome/\\d+(\\.0){3})","Linux; U; Android"],t=new RegExp("("+e.join("|")+")","ig");return!!navigator.userAgent.match(t)},$o=function(e){return e.DIARY_NOTES="diarynotes",e.PRESCRIPTIONS="prescriptions",e.MEDICATION_SCHEME="medicationScheme",e.MEDICATION_SCHEME_PAGE_STATE="medicationSchemePageState",e.DELIVERED_MEDICATIONS="deliveredMedications",e.USER_INFOS="userInfos",e.MANDATE_TYPE="mandateType",e}($o||{}),er=function(e){return e.CNK="cnk",e.INN="inn",e.VMP="vmp",e.EAN="ean",e.COMPOUND="compound",e}(er||{}),h=function(e){return e.NL="nl",e.FR="fr",e.DE="de",e.EN="en",e}(h||{});h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE;var Zs={getAuthorizationHeader:e=>`Bearer ${e}`,getUserType:e=>e.isProfessional?"professional":"patient",clientType:{webApp:"webapp",mobileApp:"mobapp"}},Vc={authorization:"Authorization",userType:"user-type",clientType:"client-type"},fo=class extends Error{};fo.prototype.name="InvalidTokenError";function Uae(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,a)=>{let n=a.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function Gae(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Uae(t)}catch{return atob(t)}}function Zae(e,t){if(typeof e!="string")throw new fo("Invalid token specified: must be a string");t||(t={});let a=t.header===!0?0:1,n=e.split(".")[a];if(typeof n!="string")throw new fo(`Invalid token specified: missing part #${a+1}`);let r;try{r=Gae(n)}catch(i){throw new fo(`Invalid token specified: invalid base64 for part #${a+1} (${i.message})`)}try{return JSON.parse(r)}catch(i){throw new fo(`Invalid token specified: invalid json for part #${a+1} (${i.message})`)}}var Yae=class extends ww{constructor(e,t,a){super(e,$o.USER_INFOS,t,a,$o.USER_INFOS),this.getLocalAccessToken=e.getAccessToken}getDataFromBackend(){return At(this,null,function*(){return Zae(yield this.getLocalAccessToken(""))})}},ju=(()=>{const t=class t{setServices(n){this.services=n}getServices(){if(!this.services)throw new Error("ComponentServices has not been set yet.");return this.services}hasServices(){return!!this.services}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Wae=(()=>{const t=class t extends _w{constructor(){super(...arguments),this.servicesStore=S(ju)}resolveSsin(){return At(this,null,function*(){if(this.isProfessional===!0)return this.patientSsin;let n=yield this.fetchUserToken();return Bae(n)})}resolvePatientInfo(){return At(this,null,function*(){return(yield this.fetchUserToken()).userProfile})}resolveUserInfo(){return At(this,null,function*(){var d,m,v,g;let n=(yield this.fetchUserToken()).userProfile,r=n.lastName,i=n.firstName,o=this.extractProfessionalRole(n),l=((d=n==null?void 0:n.organizations)==null?void 0:d.length)>0&&((m=n==null?void 0:n.organizations[0])!=null&&m.pharmacy)?"pharmacist":void 0,u=(v=n==null?void 0:n.organizations)!=null&&v.length&&l!==void 0?n==null?void 0:n.organizations[0]:void 0,c=this.resolveProfessional(n,o)?n[o]:void 0;return{firstName:i,ssin:n.ssin,lastName:r,role:l||o,organization:u&&l?u:void 0,professional:c,mandator:((g=n==null?void 0:n.mandators)==null?void 0:g.length)>0}})}isMandator(){return At(this,null,function*(){var n,r;return((r=(n=(yield this.fetchUserToken()).userProfile)==null?void 0:n.mandators)==null?void 0:r.length)>0})}resolveProfessional(n,r){return r?n[r]:void 0}extractProfessionalRole(n){let r=["physician","nurse","midwife","dentist"],i="patient";return r.forEach(o=>{n[o]&&(i=o)}),i}fetchUserToken(){return this.accessTokenService.getData(!0)}registerAccessTokenService(n,r){this.accessTokenService||(this.accessTokenService=new Yae(this.servicesStore.getServices(),this.isOfflineAuthenticated,this.isOfflineDataStorageEnabled),this.isOfflineAuthenticated=n,this.isOfflineDataStorageEnabled=r)}};t.ɵfac=(()=>{let n;return function(r){return(n||(n=et(t)))(r||t)}})(),t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Kae=(()=>{const t=class t extends _w{resolveSsin(){return At(this,null,function*(){return Promise.resolve("00000000097")})}resolvePatientInfo(){return Promise.resolve({firstName:"John",lastName:"Doe",ssin:"00000000097"})}resolveUserInfo(){return Promise.resolve({firstName:"John",lastName:"Doe",ssin:"00000000097",role:"patient",organization:void 0,professional:void 0,mandator:!1})}isMandator(){return At(this,null,function*(){return Promise.resolve(!1)})}registerAccessTokenService(n,r){this.isOfflineAuthenticated=n,this.isOfflineDataStorageEnabled=r}};t.ɵfac=(()=>{let n;return function(r){return(n||(n=et(t)))(r||t)}})(),t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Qae=(()=>{const t=class t{constructor(){this.http=S(Qi)}get(n,r,i){return Ys()?this.http.get(n,{headers:i}):rt(r)}patch(n,r,i){return Ys()?this.http.patch(n,{},{headers:i}):rt(r)}post(n,r,i){return Ys()?this.http.post(n,{},{headers:i}):rt(r)}delete(n,r,i){return Ys()?this.http.delete(n,{headers:i}):rt(r)}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Ys=()=>window.Cypress;function xw(e){return e.firstName&&e.lastName?e.firstName+" "+e.lastName:e.name}var Xae={fr:["fr","nl","de","en"],nl:["nl","fr","de","en"],de:["de","fr","nl","en"],en:["en","nl","fr","de"]};function Wl(e,t){if(e){t=t==null?void 0:t.substring(0,2);for(let a of Xae[t]){let n=e.find(r=>r.lang===a);if(n)return n.value}return e.length>0?e[0].value:"Missing translation"}}var xi=function(e){return e.INITIAL="INITIAL",e.LOADING="LOADING",e.SUCCESS="SUCCESS",e.UPDATING="UPDATING",e.ERROR="ERROR",e}(xi||{}),La=function(e){return e.NO_DATA="NO_DATA",e.TEMP_UNAVAILABLE="TEMP_UNAVAILABLE",e.NOT_AUTHORIZED="NOT_AUTHORIZED",e.OTHER="OTHER",e}(La||{});function Jae(e,t){return At(this,null,function*(){t.next({status:xi.LOADING});try{let a=yield e,n={status:xi.SUCCESS,data:a};return t.next(n),n}catch(a){let n={status:xi.ERROR,error:nre(a)};return t.next(n),n}})}var Xg={[La.NO_DATA]:["VIDIS_0140"],[La.TEMP_UNAVAILABLE]:["VIDIS_0121","VIDIS_0122","VIDIS_0123","VIDIS_0124","VIDIS_0125","VIDIS_0126","VIDIS_0131","VIDIS_0132","VIDIS_0133","VIDIS_0134","VIDIS_0135","VIDIS_0136"],[La.NOT_AUTHORIZED]:["VIDIS_3150","VIDIS_3090","VIDIS_3140","VIDIS_3100","VIDIS_3120","VIDIS_0400","VIDIS_3030","VIDIS_0100","VIDIS_0120","VIDIS_0110","VIDIS_0200","VIDIS_0340","VIDIS_0341"],[La.OTHER]:[]};function ere(e){for(let t of Object.keys(Xg))if(Xg[t].includes(e))return t;return La.OTHER}function tre(e,t,a){let n=e||"UNKNOWN",r=ere(n);return{code:n,message:a??"An unexpected error occurred",group:r,traceId:t}}function nre(e){var r,i,o;let t=((r=e.error)==null?void 0:r.code)??void 0,a=((i=e.error)==null?void 0:i.message)??e.message,n=(o=e.headers)==null?void 0:o.get("trace-id");return tre(t,n,a)}var are=(()=>{const t=class t{constructor(){this.translate=S(Qn)}transform(n){return this.findTranslation(n.name)+" "+(n.prefix?n.prefix+" ":"")+(n.value?n.value+" ":"")+(n.unit?this.translate.instant("commons.units."+n.unit,{count:n.value||1}):"")}findTranslation(n){return Wl(n,this.translate.currentLang)}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Ew=(()=>{const t=class t{constructor(){this.http=S(Qi),this.snackbarService=S(kw)}getLeaflet(n,r){this.http.get(`/v2/leaflet/${n}/${r}`,{responseType:"text"}).pipe(pn(1),kh(i=>(this.snackbarService.showError(i.status===404?"error.no-leaflet":"error.fetch-leaflet"),d0(()=>i)))).subscribe(i=>{window.open(i,"_blank")})}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Kl=(()=>{const t=class t{constructor(){this.config=S(gs),this.injector=S(ht),this._instance=null}getInstance(){if(!this._instance){let n=this.config.getEnvironmentVariable("env")==="demo";this._instance=n?this.injector.get(Kae):this.injector.get(Wae)}return this._instance}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),rre={HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)"};function ire(e,t){if(e&1){let a=ba();j(0,"div",1)(1,"button",2),an("click",function(){gn(a);let n=pe();return vn(n.action())}),ee(2),z()()}if(e&2){let a=pe();P(2),Ue(" ",a.data.action," ")}}var ore=["label"];function sre(e,t){}var lre=Math.pow(2,31)-1,rh=class{constructor(e,t){s(this,"_overlayRef");s(this,"instance");s(this,"containerInstance");s(this,"_afterDismissed",new ge);s(this,"_afterOpened",new ge);s(this,"_onAction",new ge);s(this,"_durationTimeoutId");s(this,"_dismissedByAction",!1);this._overlayRef=t,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,lre))}_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}},Sw=new K("MatSnackBarData"),Ql=class{constructor(){s(this,"politeness","assertive");s(this,"announcementMessage","");s(this,"viewContainerRef");s(this,"duration",0);s(this,"panelClass");s(this,"direction");s(this,"data",null);s(this,"horizontalPosition","center");s(this,"verticalPosition","bottom")}},ure=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",we({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}));let e=t;return e})(),cre=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",we({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}));let e=t;return e})(),dre=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",we({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}));let e=t;return e})(),hre=(()=>{const t=class t{constructor(){s(this,"snackBarRef",S(rh));s(this,"data",S(Sw))}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵcmp",Oe({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,r){n&1&&(j(0,"div",0),ee(1),z(),ke(2,ire,3,1,"div",1)),n&2&&(P(),Ue(" ",r.data.message,`
|
|
29
|
+
`],encapsulation:2,changeDetection:0}));let e=t;return e})(),P1=(()=>{const t=class t extends zJ{};s(t,"ɵfac",(()=>{let n;return function(r){return(n||(n=et(t)))(r||t)}})()),s(t,"ɵcmp",Oe({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(n,r){n&2&&($t("disabled",r._getDisabledAttribute())("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-disabled",r._getAriaDisabled()),Tu(r.color?"mat-"+r.color:""),jt("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[We],ngContentSelectors:A1,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(jn(M1),lt(0,"span",0),pt(1),j(2,"span",1),pt(3,1),z(),pt(4,2),lt(5,"span",2)(6,"span",3)),n&2&&jt("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[VJ,BJ],encapsulation:2,changeDetection:0}));let e=t;return e})(),nm=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵmod",Bt({type:t})),s(t,"ɵinj",Vt({imports:[pa,XX,pa]}));let e=t;return e})(),L1=(()=>{const t=class t{constructor(){s(this,"changes",new ge);s(this,"itemsPerPageLabel","Items per page:");s(this,"nextPageLabel","Next page");s(this,"previousPageLabel","Previous page");s(this,"firstPageLabel","First page");s(this,"lastPageLabel","Last page");s(this,"getRangeLabel",(n,r,i)=>{if(i==0||r==0)return`0 of ${i}`;i=Math.max(i,0);let o=n*r,l=o<i?Math.min(o+r,i):o+r;return`${o+1} – ${l} of ${i}`})}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵprov",V({token:t,factory:t.ɵfac,providedIn:"root"}));let e=t;return e})(),Ne=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(Ne||{}),Pa="*";function HJ(e,t=null){return{type:Ne.Sequence,steps:e,options:t}}function Rg(e){return{type:Ne.Style,styles:e,offset:null}}var Ho=class{constructor(e=0,t=0){s(this,"_onDoneFns",[]);s(this,"_onStartFns",[]);s(this,"_onDestroyFns",[]);s(this,"_originalOnDoneFns",[]);s(this,"_originalOnStartFns",[]);s(this,"_started",!1);s(this,"_destroyed",!1);s(this,"_finished",!1);s(this,"_position",0);s(this,"parentPlayer",null);s(this,"totalTime");this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(a=>a()),t.length=0}},F1=class{constructor(e){s(this,"_onDoneFns",[]);s(this,"_onStartFns",[]);s(this,"_finished",!1);s(this,"_started",!1);s(this,"_destroyed",!1);s(this,"_onDestroyFns",[]);s(this,"parentPlayer",null);s(this,"totalTime",0);s(this,"players");this.players=e;let t=0,a=0,n=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(i=>{i.onDone(()=>{++t==r&&this._onFinish()}),i.onDestroy(()=>{++a==r&&this._onDestroy()}),i.onStart(()=>{++n==r&&this._onStart()})}),this.totalTime=this.players.reduce((i,o)=>Math.max(i,o.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(a=>{let n=a.totalTime?Math.min(1,t/a.totalTime):1;a.setPosition(n)})}getPosition(){let e=this.players.reduce((t,a)=>t===null||a.totalTime>t.totalTime?a:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(a=>a()),t.length=0}},am="!";function Ng(e){return new U(3e3,!1)}function qJ(){return new U(3100,!1)}function $J(){return new U(3101,!1)}function UJ(e){return new U(3001,!1)}function GJ(e){return new U(3003,!1)}function ZJ(e){return new U(3004,!1)}function YJ(e,t){return new U(3005,!1)}function WJ(){return new U(3006,!1)}function KJ(){return new U(3007,!1)}function QJ(e,t){return new U(3008,!1)}function XJ(e){return new U(3002,!1)}function JJ(e,t,a,n,r){return new U(3010,!1)}function eee(){return new U(3011,!1)}function tee(){return new U(3012,!1)}function nee(){return new U(3200,!1)}function aee(){return new U(3202,!1)}function ree(){return new U(3013,!1)}function iee(e){return new U(3014,!1)}function oee(e){return new U(3015,!1)}function see(e){return new U(3016,!1)}function lee(e,t){return new U(3404,!1)}function uee(e){return new U(3502,!1)}function cee(e){return new U(3503,!1)}function dee(){return new U(3300,!1)}function hee(e){return new U(3504,!1)}function pee(e){return new U(3301,!1)}function mee(e,t){return new U(3302,!1)}function fee(e){return new U(3303,!1)}function gee(e,t){return new U(3400,!1)}function vee(e){return new U(3401,!1)}function bee(e){return new U(3402,!1)}function yee(e,t){return new U(3505,!1)}function Xa(e){switch(e.length){case 0:return new Ho;case 1:return e[0];default:return new F1(e)}}function j1(e,t,a=new Map,n=new Map){let r=[],i=[],o=-1,l=null;if(t.forEach(u=>{let c=u.get("offset"),d=c==o,m=d&&l||new Map;u.forEach((v,g)=>{let w=g,x=v;if(g!=="offset")switch(w=e.normalizePropertyName(w,r),x){case am:x=a.get(g);break;case Pa:x=n.get(g);break;default:x=e.normalizeStyleValue(g,w,x,r);break}m.set(w,x)}),d||i.push(m),l=m,o=c}),r.length)throw uee();return i}function rm(e,t,a,n){switch(t){case"start":e.onStart(()=>n(a&&Mc(a,"start",e)));break;case"done":e.onDone(()=>n(a&&Mc(a,"done",e)));break;case"destroy":e.onDestroy(()=>n(a&&Mc(a,"destroy",e)));break}}function Mc(e,t,a){let n=a.totalTime,r=!!a.disabled,i=im(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,n??e.totalTime,r),o=e._data;return o!=null&&(i._data=o),i}function im(e,t,a,n,r="",i=0,o){return{element:e,triggerName:t,fromState:a,toState:n,phaseName:r,totalTime:i,disabled:!!o}}function Sn(e,t,a){let n=e.get(t);return n||e.set(t,n=a),n}function Og(e){let t=e.indexOf(":"),a=e.substring(1,t),n=e.slice(t+1);return[a,n]}var _ee=typeof document>"u"?null:document.documentElement;function om(e){let t=e.parentNode||e.host||null;return t===_ee?null:t}function wee(e){return e.substring(1,6)=="ebkit"}var Sr=null,Mg=!1;function xee(e){Sr||(Sr=Eee()||{},Mg=Sr.style?"WebkitAppearance"in Sr.style:!1);let t=!0;return Sr.style&&!wee(e)&&(t=e in Sr.style,!t&&Mg&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in Sr.style)),t}function Eee(){return typeof document<"u"?document.body:null}function z1(e,t){for(;t;){if(t===e)return!0;t=om(t)}return!1}function V1(e,t,a){if(a)return Array.from(e.querySelectorAll(t));let n=e.querySelector(t);return n?[n]:[]}var See=1e3,B1="{{",kee="}}",H1="ng-enter",Yd="ng-leave",qs="ng-trigger",ql=".ng-trigger",Ag="ng-animating",Wd=".ng-animating";function Na(e){if(typeof e=="number")return e;let t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Kd(parseFloat(t[1]),t[2])}function Kd(e,t){switch(t){case"s":return e*See;default:return e}}function $l(e,t,a){return e.hasOwnProperty("duration")?e:Cee(e,t,a)}function Cee(e,t,a){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,i=0,o="";if(typeof e=="string"){let l=e.match(n);if(l===null)return t.push(Ng()),{duration:0,delay:0,easing:""};r=Kd(parseFloat(l[1]),l[2]);let u=l[3];u!=null&&(i=Kd(parseFloat(u),l[4]));let c=l[5];c&&(o=c)}else r=e;if(!a){let l=!1,u=t.length;r<0&&(t.push(qJ()),l=!0),i<0&&(t.push($J()),l=!0),l&&t.splice(u,0,Ng())}return{duration:r,delay:i,easing:o}}function Dee(e){return e.length?e[0]instanceof Map?e:e.map(t=>new Map(Object.entries(t))):[]}function ra(e,t,a){t.forEach((n,r)=>{let i=sm(r);a&&!a.has(r)&&a.set(r,e.style[i]),e.style[i]=n})}function Or(e,t){t.forEach((a,n)=>{let r=sm(n);e.style[r]=""})}function so(e){return Array.isArray(e)?e.length==1?e[0]:HJ(e):e}function Iee(e,t,a){let n=t.params||{},r=q1(e);r.length&&r.forEach(i=>{n.hasOwnProperty(i)||a.push(UJ())})}var Qd=new RegExp(`${B1}\\s*(.+?)\\s*${kee}`,"g");function q1(e){let t=[];if(typeof e=="string"){let a;for(;a=Qd.exec(e);)t.push(a[1]);Qd.lastIndex=0}return t}function qo(e,t,a){let n=`${e}`,r=n.replace(Qd,(i,o)=>{let l=t[o];return l==null&&(a.push(GJ()),l=""),l.toString()});return r==n?e:r}var Tee=/-+([a-z0-9])/g;function sm(e){return e.replace(Tee,(...t)=>t[1].toUpperCase())}function Ree(e,t){return e===0||t===0}function Nee(e,t,a){if(a.size&&t.length){let n=t[0],r=[];if(a.forEach((i,o)=>{n.has(o)||r.push(o),n.set(o,i)}),r.length)for(let i=1;i<t.length;i++){let o=t[i];r.forEach(l=>o.set(l,lm(e,l)))}}return t}function xn(e,t,a){switch(t.type){case Ne.Trigger:return e.visitTrigger(t,a);case Ne.State:return e.visitState(t,a);case Ne.Transition:return e.visitTransition(t,a);case Ne.Sequence:return e.visitSequence(t,a);case Ne.Group:return e.visitGroup(t,a);case Ne.Animate:return e.visitAnimate(t,a);case Ne.Keyframes:return e.visitKeyframes(t,a);case Ne.Style:return e.visitStyle(t,a);case Ne.Reference:return e.visitReference(t,a);case Ne.AnimateChild:return e.visitAnimateChild(t,a);case Ne.AnimateRef:return e.visitAnimateRef(t,a);case Ne.Query:return e.visitQuery(t,a);case Ne.Stagger:return e.visitStagger(t,a);default:throw ZJ(t.type)}}function lm(e,t){return window.getComputedStyle(e)[t]}var Oee=(()=>{const t=class t{validateStyleProperty(n){return xee(n)}containsElement(n,r){return z1(n,r)}getParentElement(n){return om(n)}query(n,r,i){return V1(n,r,i)}computeStyle(n,r,i){return i||""}animate(n,r,i,o,l,u=[],c){return new Ho(i,o)}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵprov",V({token:t,factory:t.ɵfac}));let e=t;return e})(),Wc,$1=(Wc=class{},s(Wc,"NOOP",new Oee),Wc),um=class{},Mee=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Aee=class extends um{normalizePropertyName(e,t){return sm(e)}normalizeStyleValue(e,t,a,n){let r="",i=a.toString().trim();if(Mee.has(t)&&a!==0&&a!=="0")if(typeof a=="number")r="px";else{let o=a.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&n.push(YJ())}return i+r}},Ul="*";function Pee(e,t){let a=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(n=>Lee(n,a,t)):a.push(e),a}function Lee(e,t,a){if(e[0]==":"){let u=Fee(e,a);if(typeof u=="function"){t.push(u);return}e=u}let n=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return a.push(oee()),t;let r=n[1],i=n[2],o=n[3];t.push(Pg(r,o));let l=r==Ul&&o==Ul;i[0]=="<"&&!l&&t.push(Pg(o,r))}function Fee(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(a,n)=>parseFloat(n)>parseFloat(a);case":decrement":return(a,n)=>parseFloat(n)<parseFloat(a);default:return t.push(see()),"* => *"}}var $s=new Set(["true","1"]),Us=new Set(["false","0"]);function Pg(e,t){let a=$s.has(e)||Us.has(e),n=$s.has(t)||Us.has(t);return(r,i)=>{let o=e==Ul||e==r,l=t==Ul||t==i;return!o&&a&&typeof r=="boolean"&&(o=r?$s.has(e):Us.has(e)),!l&&n&&typeof i=="boolean"&&(l=i?$s.has(t):Us.has(t)),o&&l}}var U1=":self",jee=new RegExp(`s*${U1}s*,?`,"g");function G1(e,t,a,n){return new zee(e).build(t,a,n)}var Lg="",zee=class{constructor(e){s(this,"_driver");this._driver=e}build(e,t,a){let n=new Hee(t);return this._resetContextStyleTimingState(n),xn(this,so(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Lg,e.collectedStyles=new Map,e.collectedStyles.set(Lg,new Map),e.currentTime=0}visitTrigger(e,t){let a=t.queryCount=0,n=t.depCount=0,r=[],i=[];return e.name.charAt(0)=="@"&&t.errors.push(WJ()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==Ne.State){let l=o,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=u}else if(o.type==Ne.Transition){let l=this.visitTransition(o,t);a+=l.queryCount,n+=l.depCount,i.push(l)}else t.errors.push(KJ())}),{type:Ne.Trigger,name:e.name,states:r,transitions:i,queryCount:a,depCount:n,options:null}}visitState(e,t){let a=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(a.containsDynamicStyles){let r=new Set,i=n||{};a.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{q1(l).forEach(u=>{i.hasOwnProperty(u)||r.add(u)})})}),r.size&&t.errors.push(QJ(e.name,[...r.values()]))}return{type:Ne.State,name:e.name,style:a,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let a=xn(this,so(e.animation),t),n=Pee(e.expr,t.errors);return{type:Ne.Transition,matchers:n,animation:a,queryCount:t.queryCount,depCount:t.depCount,options:kr(e.options)}}visitSequence(e,t){return{type:Ne.Sequence,steps:e.steps.map(a=>xn(this,a,t)),options:kr(e.options)}}visitGroup(e,t){let a=t.currentTime,n=0,r=e.steps.map(i=>{t.currentTime=a;let o=xn(this,i,t);return n=Math.max(n,t.currentTime),o});return t.currentTime=n,{type:Ne.Group,steps:r,options:kr(e.options)}}visitAnimate(e,t){let a=$ee(e.timings,t.errors);t.currentAnimateTimings=a;let n,r=e.styles?e.styles:Rg({});if(r.type==Ne.Keyframes)n=this.visitKeyframes(r,t);else{let i=e.styles,o=!1;if(!i){o=!0;let u={};a.easing&&(u.easing=a.easing),i=Rg(u)}t.currentTime+=a.duration+a.delay;let l=this.visitStyle(i,t);l.isEmptyStep=o,n=l}return t.currentAnimateTimings=null,{type:Ne.Animate,timings:a,style:n,options:null}}visitStyle(e,t){let a=this._makeStyleAst(e,t);return this._validateStyleAst(a,t),a}_makeStyleAst(e,t){let a=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of n)typeof o=="string"?o===Pa?a.push(o):t.errors.push(XJ()):a.push(new Map(Object.entries(o)));let r=!1,i=null;return a.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(i=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(B1)>=0){r=!0;break}}}),{type:Ne.Style,styles:a,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let a=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;a&&r>0&&(r-=a.duration+a.delay),e.styles.forEach(i=>{typeof i!="string"&&i.forEach((o,l)=>{let u=t.collectedStyles.get(t.currentQuerySelector),c=u.get(l),d=!0;c&&(r!=n&&r>=c.startTime&&n<=c.endTime&&(t.errors.push(JJ(l,c.startTime,c.endTime)),d=!1),r=c.startTime),d&&u.set(l,{startTime:r,endTime:n}),t.options&&Iee(o,t.options,t.errors)})})}visitKeyframes(e,t){let a={type:Ne.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(eee()),a;let n=1,r=0,i=[],o=!1,l=!1,u=0,c=e.steps.map(k=>{let D=this._makeStyleAst(k,t),N=D.offset!=null?D.offset:qee(D.styles),O=0;return N!=null&&(r++,O=D.offset=N),l=l||O<0||O>1,o=o||O<u,u=O,i.push(O),D});l&&t.errors.push(tee()),o&&t.errors.push(nee());let d=e.steps.length,m=0;r>0&&r<d?t.errors.push(aee()):r==0&&(m=n/(d-1));let v=d-1,g=t.currentTime,w=t.currentAnimateTimings,x=w.duration;return c.forEach((k,D)=>{let N=m>0?D==v?1:m*D:i[D],O=N*x;t.currentTime=g+w.delay+O,w.duration=O,this._validateStyleAst(k,t),k.offset=N,a.styles.push(k)}),a}visitReference(e,t){return{type:Ne.Reference,animation:xn(this,so(e.animation),t),options:kr(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:Ne.AnimateChild,options:kr(e.options)}}visitAnimateRef(e,t){return{type:Ne.AnimateRef,animation:this.visitReference(e.animation,t),options:kr(e.options)}}visitQuery(e,t){let a=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,i]=Vee(e.selector);t.currentQuerySelector=a.length?a+" "+r:r,Sn(t.collectedStyles,t.currentQuerySelector,new Map);let o=xn(this,so(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=a,{type:Ne.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:i,animation:o,originalSelector:e.selector,options:kr(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(ree());let a=e.timings==="full"?{duration:0,delay:0,easing:"full"}:$l(e.timings,t.errors,!0);return{type:Ne.Stagger,animation:xn(this,so(e.animation),t),timings:a,options:null}}};function Vee(e){let t=!!e.split(/\s*,\s*/).find(a=>a==U1);return t&&(e=e.replace(jee,"")),e=e.replace(/@\*/g,ql).replace(/@\w+/g,a=>ql+"-"+a.slice(1)).replace(/:animating/g,Wd),[e,t]}function Bee(e){return e?ue({},e):null}var Hee=class{constructor(e){s(this,"errors");s(this,"queryCount",0);s(this,"depCount",0);s(this,"currentTransition",null);s(this,"currentQuery",null);s(this,"currentQuerySelector",null);s(this,"currentAnimateTimings",null);s(this,"currentTime",0);s(this,"collectedStyles",new Map);s(this,"options",null);s(this,"unsupportedCSSPropertiesFound",new Set);this.errors=e}};function qee(e){if(typeof e=="string")return null;let t=null;if(Array.isArray(e))e.forEach(a=>{if(a instanceof Map&&a.has("offset")){let n=a;t=parseFloat(n.get("offset")),n.delete("offset")}});else if(e instanceof Map&&e.has("offset")){let a=e;t=parseFloat(a.get("offset")),a.delete("offset")}return t}function $ee(e,t){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let r=$l(e,t).duration;return Ac(r,0,"")}let a=e;if(a.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Ac(0,0,"");return r.dynamic=!0,r.strValue=a,r}let n=$l(a,t);return Ac(n.duration,n.delay,n.easing)}function kr(e){return e?(e=ue({},e),e.params&&(e.params=Bee(e.params))):e={},e}function Ac(e,t,a){return{duration:e,delay:t,easing:a}}function cm(e,t,a,n,r,i,o=null,l=!1){return{type:1,element:e,keyframes:t,preStyleProps:a,postStyleProps:n,duration:r,delay:i,totalTime:r+i,easing:o,subTimeline:l}}var dm=class{constructor(){s(this,"_map",new Map)}get(e){return this._map.get(e)||[]}append(e,t){let a=this._map.get(e);a||this._map.set(e,a=[]),a.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Uee=1,Gee=":enter",Zee=new RegExp(Gee,"g"),Yee=":leave",Wee=new RegExp(Yee,"g");function Z1(e,t,a,n,r,i=new Map,o=new Map,l,u,c=[]){return new Kee().buildKeyframes(e,t,a,n,r,i,o,l,u,c)}var Kee=class{buildKeyframes(e,t,a,n,r,i,o,l,u,c=[]){u=u||new dm;let d=new Qee(e,t,u,n,r,c,[]);d.options=l;let m=l.delay?Na(l.delay):0;d.currentTimeline.delayNextStep(m),d.currentTimeline.setStyles([i],null,d.errors,l),xn(this,a,d);let v=d.timelines.filter(g=>g.containsAnimation());if(v.length&&o.size){let g;for(let w=v.length-1;w>=0;w--){let x=v[w];if(x.element===t){g=x;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([o],null,d.errors,l)}return v.length?v.map(g=>g.buildKeyframes()):[cm(t,[],[],[],0,m,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let a=t.subInstructions.get(t.element);if(a){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,i=this._visitSubInstructions(a,n,n.options);r!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e}visitAnimateRef(e,t){let a=t.createSubContext(e.options);a.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,a),this.visitReference(e.animation,a),t.transformIntoNewTimeline(a.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,a){for(let n of e){let r=n==null?void 0:n.delay;if(r){let i=typeof r=="number"?r:Na(qo(r,(n==null?void 0:n.params)??{},t.errors));a.delayNextStep(i)}}}_visitSubInstructions(e,t,a){let n=t.currentTimeline.currentTime,r=a.duration!=null?Na(a.duration):null,i=a.delay!=null?Na(a.delay):null;return r!==0&&e.forEach(o=>{let l=t.appendInstructionToTimeline(o,r,i);n=Math.max(n,l.duration+l.delay)}),n}visitReference(e,t){t.updateOptions(e.options,!0),xn(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let a=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==Ne.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Gl);let i=Na(r.delay);n.delayNextStep(i)}e.steps.length&&(e.steps.forEach(i=>xn(this,i,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>a&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let a=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?Na(e.options.delay):0;e.steps.forEach(i=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),xn(this,i,o),n=Math.max(n,o.currentTimeline.currentTime),a.push(o.currentTimeline)}),a.forEach(i=>t.currentTimeline.mergeTimelineCollectedStyles(i)),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let a=e.strValue,n=t.params?qo(a,t.params,t.errors):a;return $l(n,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let a=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;a.delay&&(t.incrementTime(a.delay),n.snapshotCurrentStyles());let r=e.style;r.type==Ne.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(a.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let a=t.currentTimeline,n=t.currentAnimateTimings;!n&&a.hasCurrentStyleProperties()&&a.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?a.applyEmptyStep(r):a.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let a=t.currentAnimateTimings,n=t.currentTimeline.duration,r=a.duration,i=t.createSubContext().currentTimeline;i.easing=a.easing,e.styles.forEach(o=>{let l=o.offset||0;i.forwardTime(l*r),i.setStyles(o.styles,o.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(n+r),t.previousNode=e}visitQuery(e,t){let a=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?Na(n.delay):0;r&&(t.previousNode.type===Ne.Style||a==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Gl);let i=a,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((u,c)=>{t.currentQueryIndex=c;let d=t.createSubContext(e.options,u);r&&d.delayNextStep(r),u===t.element&&(l=d.currentTimeline),xn(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let m=d.currentTimeline.currentTime;i=Math.max(i,m)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(i),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let a=t.parentContext,n=t.currentTimeline,r=e.timings,i=Math.abs(r.duration),o=i*(t.currentQueryTotal-1),l=i*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=a.currentStaggerTime;break}let u=t.currentTimeline;l&&u.delayNextStep(l);let c=u.currentTime;xn(this,e.animation,t),t.previousNode=e,a.currentStaggerTime=n.currentTime-c+(n.startTime-a.currentTimeline.startTime)}},Gl={},Qee=class Y1{constructor(t,a,n,r,i,o,l,u){s(this,"_driver");s(this,"element");s(this,"subInstructions");s(this,"_enterClassName");s(this,"_leaveClassName");s(this,"errors");s(this,"timelines");s(this,"parentContext",null);s(this,"currentTimeline");s(this,"currentAnimateTimings",null);s(this,"previousNode",Gl);s(this,"subContextCount",0);s(this,"options",{});s(this,"currentQueryIndex",0);s(this,"currentQueryTotal",0);s(this,"currentStaggerTime",0);this._driver=t,this.element=a,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=l,this.currentTimeline=u||new W1(this._driver,a,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,a){if(!t)return;let n=t,r=this.options;n.duration!=null&&(r.duration=Na(n.duration)),n.delay!=null&&(r.delay=Na(n.delay));let i=n.params;if(i){let o=r.params;o||(o=this.options.params={}),Object.keys(i).forEach(l=>{(!a||!o.hasOwnProperty(l))&&(o[l]=qo(i[l],o,this.errors))})}}_copyOptions(){let t={};if(this.options){let a=this.options.params;if(a){let n=t.params={};Object.keys(a).forEach(r=>{n[r]=a[r]})}}return t}createSubContext(t=null,a,n){let r=a||this.element,i=new Y1(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=Gl,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,a,n){let r={duration:a??t.duration,delay:this.currentTimeline.currentTime+(n??0)+t.delay,easing:""},i=new Xee(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,a,n,r,i,o){let l=[];if(r&&l.push(this.element),t.length>0){t=t.replace(Zee,"."+this._enterClassName),t=t.replace(Wee,"."+this._leaveClassName);let u=n!=1,c=this._driver.query(this.element,t,u);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),l.push(...c)}return!i&&l.length==0&&o.push(iee()),l}},W1=class K1{constructor(t,a,n,r){s(this,"_driver");s(this,"element");s(this,"startTime");s(this,"_elementTimelineStylesLookup");s(this,"duration",0);s(this,"easing",null);s(this,"_previousKeyframe",new Map);s(this,"_currentKeyframe",new Map);s(this,"_keyframes",new Map);s(this,"_styleSummary",new Map);s(this,"_localTimelineStyles",new Map);s(this,"_globalTimelineStyles");s(this,"_pendingStyles",new Map);s(this,"_backFill",new Map);s(this,"_currentEmptyStepKeyframe",null);this._driver=t,this.element=a,this.startTime=n,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(a),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(a,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let a=this._keyframes.size===1&&this._pendingStyles.size;this.duration||a?(this.forwardTime(this.currentTime+t),a&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,a){return this.applyStylesToKeyframe(),new K1(this._driver,t,a||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Uee,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,a){this._localTimelineStyles.set(t,a),this._globalTimelineStyles.set(t,a),this._styleSummary.set(t,{time:this.currentTime,value:a})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[a,n]of this._globalTimelineStyles)this._backFill.set(a,n||Pa),this._currentKeyframe.set(a,Pa);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,a,n,r){a&&this._previousKeyframe.set("easing",a);let i=r&&r.params||{},o=Jee(t,this._globalTimelineStyles);for(let[l,u]of o){let c=qo(u,i,n);this._pendingStyles.set(l,c),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??Pa),this._updateStyle(l,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,a)=>{this._currentKeyframe.set(a,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,a)=>{this._currentKeyframe.has(a)||this._currentKeyframe.set(a,t)}))}snapshotCurrentStyles(){for(let[t,a]of this._localTimelineStyles)this._pendingStyles.set(t,a),this._updateStyle(t,a)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let a in this._currentKeyframe)t.push(a);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((a,n)=>{let r=this._styleSummary.get(n);(!r||a.time>r.time)&&this._updateStyle(n,a.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,a=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((l,u)=>{let c=new Map([...this._backFill,...l]);c.forEach((d,m)=>{d===am?t.add(m):d===Pa&&a.add(m)}),n||c.set("offset",u/this.duration),r.push(c)});let i=[...t.values()],o=[...a.values()];if(n){let l=r[0],u=new Map(l);l.set("offset",0),u.set("offset",1),r=[l,u]}return cm(this.element,r,i,o,this.duration,this.startTime,this.easing,!1)}},Xee=class extends W1{constructor(t,a,n,r,i,o,l=!1){super(t,a,o.delay);s(this,"keyframes");s(this,"preStyleProps");s(this,"postStyleProps");s(this,"_stretchStartingKeyframe");s(this,"timings");this.keyframes=n,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=l,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:a,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&a){let i=[],o=n+a,l=a/o,u=new Map(t[0]);u.set("offset",0),i.push(u);let c=new Map(t[0]);c.set("offset",Fg(l)),i.push(c);let d=t.length-1;for(let m=1;m<=d;m++){let v=new Map(t[m]),g=v.get("offset"),w=a+g*n;v.set("offset",Fg(w/o)),i.push(v)}n=o,a=0,r="",t=i}return cm(this.element,t,this.preStyleProps,this.postStyleProps,n,a,r,!0)}};function Fg(e,t=3){let a=Math.pow(10,t-1);return Math.round(e*a)/a}function Jee(e,t){let a=new Map,n;return e.forEach(r=>{if(r==="*"){n??(n=t.keys());for(let i of n)a.set(i,Pa)}else for(let[i,o]of r)a.set(i,o)}),a}function jg(e,t,a,n,r,i,o,l,u,c,d,m,v){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:a,fromStyles:i,toState:n,toStyles:o,timelines:l,queriedElements:u,preStyleProps:c,postStyleProps:d,totalTime:m,errors:v}}var Pc={},Q1=class{constructor(e,t,a){s(this,"_triggerName");s(this,"ast");s(this,"_stateStyles");this._triggerName=e,this.ast=t,this._stateStyles=a}match(e,t,a,n){return ete(this.ast.matchers,e,t,a,n)}buildStyles(e,t,a){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e==null?void 0:e.toString())||n),n?n.buildStyles(t,a):new Map}build(e,t,a,n,r,i,o,l,u,c){var Nt;let d=[],m=this.ast.options&&this.ast.options.params||Pc,v=o&&o.params||Pc,g=this.buildStyles(a,v,d),w=l&&l.params||Pc,x=this.buildStyles(n,w,d),k=new Set,D=new Map,N=new Map,O=n==="void",J={params:X1(w,m),delay:(Nt=this.ast.options)==null?void 0:Nt.delay},le=c?[]:Z1(e,t,this.ast.animation,r,i,g,x,J,u,d),ye=0;return le.forEach(_t=>{ye=Math.max(_t.duration+_t.delay,ye)}),d.length?jg(t,this._triggerName,a,n,O,g,x,[],[],D,N,ye,d):(le.forEach(_t=>{let tt=_t.element,Ct=Sn(D,tt,new Set);_t.preStyleProps.forEach(G=>Ct.add(G));let X=Sn(N,tt,new Set);_t.postStyleProps.forEach(G=>X.add(G)),tt!==t&&k.add(tt)}),jg(t,this._triggerName,a,n,O,g,x,le,[...k.values()],D,N,ye))}};function ete(e,t,a,n,r){return e.some(i=>i(t,a,n,r))}function X1(e,t){let a=ue({},t);return Object.entries(e).forEach(([n,r])=>{r!=null&&(a[n]=r)}),a}var tte=class{constructor(e,t,a){s(this,"styles");s(this,"defaultParams");s(this,"normalizer");this.styles=e,this.defaultParams=t,this.normalizer=a}buildStyles(e,t){let a=new Map,n=X1(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((i,o)=>{i&&(i=qo(i,n,t));let l=this.normalizer.normalizePropertyName(o,t);i=this.normalizer.normalizeStyleValue(o,l,i,t),a.set(o,i)})}),a}};function nte(e,t,a){return new ate(e,t,a)}var ate=class{constructor(e,t,a){s(this,"name");s(this,"ast");s(this,"_normalizer");s(this,"transitionFactories",[]);s(this,"fallbackTransition");s(this,"states",new Map);this.name=e,this.ast=t,this._normalizer=a,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new tte(n.style,r,a))}),zg(this.states,"true","1"),zg(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new Q1(e,n,this.states))}),this.fallbackTransition=rte(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,a,n){return this.transitionFactories.find(r=>r.match(e,t,a,n))||null}matchStyles(e,t,a){return this.fallbackTransition.buildStyles(e,t,a)}};function rte(e,t,a){let n=[(o,l)=>!0],r={type:Ne.Sequence,steps:[],options:null},i={type:Ne.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new Q1(e,i,t)}function zg(e,t,a){e.has(t)?e.has(a)||e.set(a,e.get(t)):e.has(a)&&e.set(t,e.get(a))}var ite=new dm,ote=class{constructor(e,t,a){s(this,"bodyNode");s(this,"_driver");s(this,"_normalizer");s(this,"_animations",new Map);s(this,"_playersById",new Map);s(this,"players",[]);this.bodyNode=e,this._driver=t,this._normalizer=a}register(e,t){let a=[],n=[],r=G1(this._driver,t,a,n);if(a.length)throw cee();this._animations.set(e,r)}_buildPlayer(e,t,a){let n=e.element,r=j1(this._normalizer,e.keyframes,t,a);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,a={}){let n=[],r=this._animations.get(e),i,o=new Map;if(r?(i=Z1(this._driver,t,r,H1,Yd,new Map,new Map,a,ite,n),i.forEach(c=>{let d=Sn(o,c.element,new Map);c.postStyleProps.forEach(m=>d.set(m,null))})):(n.push(dee()),i=[]),n.length)throw hee();o.forEach((c,d)=>{c.forEach((m,v)=>{c.set(v,this._driver.computeStyle(d,v,Pa))})});let l=i.map(c=>{let d=o.get(c.element);return this._buildPlayer(c,new Map,d)}),u=Xa(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let a=this.players.indexOf(t);a>=0&&this.players.splice(a,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw pee();return t}listen(e,t,a,n){let r=im(t,"","","");return rm(this._getPlayer(e),a,r,n),()=>{}}command(e,t,a,n){if(a=="register"){this.register(e,n[0]);return}if(a=="create"){let i=n[0]||{};this.create(e,t,i);return}let r=this._getPlayer(e);switch(a){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(e);break}}},Vg="ng-animate-queued",ste=".ng-animate-queued",Lc="ng-animate-disabled",lte=".ng-animate-disabled",ute="ng-star-inserted",cte=".ng-star-inserted",dte=[],J1={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},hte={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qn="__ng_removed",Xd=class{constructor(e,t=""){s(this,"namespaceId");s(this,"value");s(this,"options");this.namespaceId=t;let a=e&&e.hasOwnProperty("value"),n=a?e.value:e;if(this.value=gte(n),a){let r=e,{value:i}=r,o=uq(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){let t=e.params;if(t){let a=this.options.params;Object.keys(t).forEach(n=>{a[n]==null&&(a[n]=t[n])})}}},xo="void",Fc=new Xd(xo),pte=class{constructor(e,t,a){s(this,"id");s(this,"hostElement");s(this,"_engine");s(this,"players",[]);s(this,"_triggers",new Map);s(this,"_queue",[]);s(this,"_elementListeners",new Map);s(this,"_hostClassName");this.id=e,this.hostElement=t,this._engine=a,this._hostClassName="ng-tns-"+e,Mn(t,this._hostClassName)}listen(e,t,a,n){if(!this._triggers.has(t))throw mee();if(a==null||a.length==0)throw fee();if(!vte(a))throw gee();let r=Sn(this._elementListeners,e,[]),i={name:t,phase:a,callback:n};r.push(i);let o=Sn(this._engine.statesByElement,e,new Map);return o.has(t)||(Mn(e,qs),Mn(e,qs+"-"+t),o.set(t,Fc)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(i);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw vee();return t}trigger(e,t,a,n=!0){let r=this._getTrigger(t),i=new Jd(this.id,t,e),o=this._engine.statesByElement.get(e);o||(Mn(e,qs),Mn(e,qs+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),u=new Xd(a,this.id);if(!(a&&a.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),o.set(t,u),l||(l=Fc),u.value!==xo&&l.value===u.value){if(!_te(l.params,u.params)){let v=[],g=r.matchStyles(l.value,l.params,v),w=r.matchStyles(u.value,u.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{Or(e,g),ra(e,w)})}return}let c=Sn(this._engine.playersByElement,e,[]);c.forEach(v=>{v.namespaceId==this.id&&v.triggerName==t&&v.queued&&v.destroy()});let d=r.matchTransition(l.value,u.value,e,u.params),m=!1;if(!d){if(!n)return;d=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:l,toState:u,player:i,isFallbackTransition:m}),m||(Mn(e,Vg),i.onStart(()=>{oi(e,Vg)})),i.onDone(()=>{let v=this.players.indexOf(i);v>=0&&this.players.splice(v,1);let g=this._engine.playersByElement.get(e);if(g){let w=g.indexOf(i);w>=0&&g.splice(w,1)}}),this.players.push(i),c.push(i),i}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,a)=>{this._elementListeners.set(a,t.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(a=>a.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let a=this._engine.driver.query(e,ql,!0);a.forEach(n=>{if(n[qn])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(i=>i.triggerLeaveAnimation(n,t,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>a.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,t,a,n){let r=this._engine.statesByElement.get(e),i=new Map;if(r){let o=[];if(r.forEach((l,u)=>{if(i.set(u,l.value),this._triggers.has(u)){let c=this.trigger(e,u,xo,n);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,i),a&&Xa(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),a=this._engine.statesByElement.get(e);if(t&&a){let n=new Set;t.forEach(r=>{let i=r.name;if(n.has(i))return;n.add(i);let o=this._triggers.get(i).fallbackTransition,l=a.get(i)||Fc,u=new Xd(xo),c=new Jd(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:o,fromState:l,toState:u,player:c,isFallbackTransition:!0})})}}removeNode(e,t){let a=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(a.totalAnimations){let r=a.players.length?a.playersByQueriedElement.get(e):[];if(r&&r.length)n=!0;else{let i=e;for(;i=i.parentNode;)if(a.statesByElement.get(i)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)a.markElementAsRemoved(this.id,e,!1,t);else{let r=e[qn];(!r||r===J1)&&(a.afterFlush(()=>this.clearElementCache(e)),a.destroyInnerAnimations(e),a._onRemovalComplete(e,t))}}insertNode(e,t){Mn(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(a=>{let n=a.player;if(n.destroyed)return;let r=a.element,i=this._elementListeners.get(r);i&&i.forEach(o=>{if(o.name==a.triggerName){let l=im(r,a.triggerName,a.fromState.value,a.toState.value);l._data=e,rm(a.player,o.phase,l,o.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):t.push(a)}),this._queue=[],t.sort((a,n)=>{let r=a.transition.ast.depCount,i=n.transition.ast.depCount;return r==0||i==0?r-i:this._engine.driver.containsElement(a.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},mte=class{constructor(e,t,a){s(this,"bodyNode");s(this,"driver");s(this,"_normalizer");s(this,"players",[]);s(this,"newHostElements",new Map);s(this,"playersByElement",new Map);s(this,"playersByQueriedElement",new Map);s(this,"statesByElement",new Map);s(this,"disabledNodes",new Set);s(this,"totalAnimations",0);s(this,"totalQueuedPlayers",0);s(this,"_namespaceLookup",{});s(this,"_namespaceList",[]);s(this,"_flushFns",[]);s(this,"_whenQuietFns",[]);s(this,"namespacesByHostElement",new Map);s(this,"collectedEnterElements",[]);s(this,"collectedLeaveElements",[]);s(this,"onRemovalComplete",(e,t)=>{});this.bodyNode=e,this.driver=t,this._normalizer=a}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(a=>{a.queued&&e.push(a)})}),e}createNamespace(e,t){let a=new pte(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(a,t):(this.newHostElements.set(t,a),this.collectEnterElement(t)),this._namespaceLookup[e]=a}_balanceNamespaceList(e,t){let a=this._namespaceList,n=this.namespacesByHostElement;if(a.length-1>=0){let r=!1,i=this.driver.getParentElement(t);for(;i;){let o=n.get(i);if(o){let l=a.indexOf(o);a.splice(l+1,0,e),r=!0;break}i=this.driver.getParentElement(i)}r||a.unshift(e)}else a.push(e);return n.set(t,e),e}register(e,t){let a=this._namespaceLookup[e];return a||(a=this.createNamespace(e,t)),a}registerTrigger(e,t,a){let n=this._namespaceLookup[e];n&&n.register(t,a)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let a=this._fetchNamespace(e);this.namespacesByHostElement.delete(a.hostElement);let n=this._namespaceList.indexOf(a);n>=0&&this._namespaceList.splice(n,1),a.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,a=this.statesByElement.get(e);if(a){for(let n of a.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r)}}return t}trigger(e,t,a,n){if(Gs(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,a,n),!0}return!1}insertNode(e,t,a,n){if(!Gs(t))return;let r=t[qn];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let i=this.collectedLeaveElements.indexOf(t);i>=0&&this.collectedLeaveElements.splice(i,1)}if(e){let i=this._fetchNamespace(e);i&&i.insertNode(t,a)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Mn(e,Lc)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),oi(e,Lc))}removeNode(e,t,a){if(Gs(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,a):this.markElementAsRemoved(e,t,!1,a);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,a)}else this._onRemovalComplete(t,a)}markElementAsRemoved(e,t,a,n,r){this.collectedLeaveElements.push(t),t[qn]={namespaceId:e,setForRemoval:n,hasAnimation:a,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,a,n,r){return Gs(t)?this._fetchNamespace(e).listen(t,a,n,r):()=>{}}_buildInstruction(e,t,a,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,a,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ql,!0);t.forEach(a=>this.destroyActiveAnimationsForElement(a)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Wd,!0),t.forEach(a=>this.finishActiveQueriedAnimationOnElement(a)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(a=>{a.queued?a.markedForDestroy=!0:a.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(a=>a.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Xa(this.players).onDone(()=>e());e()})}processLeaveNode(e){var a;let t=e[qn];if(t&&t.setForRemoval){if(e[qn]=J1,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}(a=e.classList)!=null&&a.contains(Lc)&&this.markElementAsDisabled(e,!1),this.driver.query(e,lte,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((a,n)=>this._balanceNamespaceList(a,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let a=0;a<this.collectedEnterElements.length;a++){let n=this.collectedEnterElements[a];Mn(n,ute)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let a=[];try{t=this._flushAnimations(a,e)}finally{for(let n=0;n<a.length;n++)a[n]()}}else for(let a=0;a<this.collectedLeaveElements.length;a++){let n=this.collectedLeaveElements[a];this.processLeaveNode(n)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(a=>a()),this._flushFns=[],this._whenQuietFns.length){let a=this._whenQuietFns;this._whenQuietFns=[],t.length?Xa(t).onDone(()=>{a.forEach(n=>n())}):a.forEach(n=>n())}}reportError(e){throw bee()}_flushAnimations(e,t){let a=new dm,n=[],r=new Map,i=[],o=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(F=>{c.add(F);let H=this.driver.query(F,ste,!0);for(let W=0;W<H.length;W++)c.add(H[W])});let d=this.bodyNode,m=Array.from(this.statesByElement.keys()),v=qg(m,this.collectedEnterElements),g=new Map,w=0;v.forEach((F,H)=>{let W=H1+w++;g.set(H,W),F.forEach(Ie=>Mn(Ie,W))});let x=[],k=new Set,D=new Set;for(let F=0;F<this.collectedLeaveElements.length;F++){let H=this.collectedLeaveElements[F],W=H[qn];W&&W.setForRemoval&&(x.push(H),k.add(H),W.hasAnimation?this.driver.query(H,cte,!0).forEach(Ie=>k.add(Ie)):D.add(H))}let N=new Map,O=qg(m,Array.from(k));O.forEach((F,H)=>{let W=Yd+w++;N.set(H,W),F.forEach(Ie=>Mn(Ie,W))}),e.push(()=>{v.forEach((F,H)=>{let W=g.get(H);F.forEach(Ie=>oi(Ie,W))}),O.forEach((F,H)=>{let W=N.get(H);F.forEach(Ie=>oi(Ie,W))}),x.forEach(F=>{this.processLeaveNode(F)})});let J=[],le=[];for(let F=this._namespaceList.length-1;F>=0;F--)this._namespaceList[F].drainQueuedTransitions(t).forEach(H=>{let W=H.player,Ie=H.element;if(J.push(W),this.collectedEnterElements.length){let nt=Ie[qn];if(nt&&nt.setForMove){if(nt.previousTriggersValues&&nt.previousTriggersValues.has(H.triggerName)){let Xt=nt.previousTriggersValues.get(H.triggerName),Ot=this.statesByElement.get(H.element);if(Ot&&Ot.has(H.triggerName)){let Xn=Ot.get(H.triggerName);Xn.value=Xt,Ot.set(H.triggerName,Xn)}}W.destroy();return}}let Xe=!d||!this.driver.containsElement(d,Ie),Qt=N.get(Ie),Me=g.get(Ie),ze=this._buildInstruction(H,a,Me,Qt,Xe);if(ze.errors&&ze.errors.length){le.push(ze);return}if(Xe){W.onStart(()=>Or(Ie,ze.fromStyles)),W.onDestroy(()=>ra(Ie,ze.toStyles)),n.push(W);return}if(H.isFallbackTransition){W.onStart(()=>Or(Ie,ze.fromStyles)),W.onDestroy(()=>ra(Ie,ze.toStyles)),n.push(W);return}let ft=[];ze.timelines.forEach(nt=>{nt.stretchStartingKeyframe=!0,this.disabledNodes.has(nt.element)||ft.push(nt)}),ze.timelines=ft,a.append(Ie,ze.timelines);let zn={instruction:ze,player:W,element:Ie};i.push(zn),ze.queriedElements.forEach(nt=>Sn(o,nt,[]).push(W)),ze.preStyleProps.forEach((nt,Xt)=>{if(nt.size){let Ot=l.get(Xt);Ot||l.set(Xt,Ot=new Set),nt.forEach((Xn,$a)=>Ot.add($a))}}),ze.postStyleProps.forEach((nt,Xt)=>{let Ot=u.get(Xt);Ot||u.set(Xt,Ot=new Set),nt.forEach((Xn,$a)=>Ot.add($a))})});if(le.length){let F=[];le.forEach(H=>{F.push(yee(H.triggerName,H.errors))}),J.forEach(H=>H.destroy()),this.reportError(F)}let ye=new Map,Nt=new Map;i.forEach(F=>{let H=F.element;a.has(H)&&(Nt.set(H,H),this._beforeAnimationBuild(F.player.namespaceId,F.instruction,ye))}),n.forEach(F=>{let H=F.element;this._getPreviousPlayers(H,!1,F.namespaceId,F.triggerName,null).forEach(W=>{Sn(ye,H,[]).push(W),W.destroy()})});let _t=x.filter(F=>$g(F,l,u)),tt=new Map;Hg(tt,this.driver,D,u,Pa).forEach(F=>{$g(F,l,u)&&_t.push(F)});let Ct=new Map;v.forEach((F,H)=>{Hg(Ct,this.driver,new Set(F),l,am)}),_t.forEach(F=>{let H=tt.get(F),W=Ct.get(F);tt.set(F,new Map([...(H==null?void 0:H.entries())??[],...(W==null?void 0:W.entries())??[]]))});let X=[],G=[],xe={};i.forEach(F=>{let{element:H,player:W,instruction:Ie}=F;if(a.has(H)){if(c.has(H)){W.onDestroy(()=>ra(H,Ie.toStyles)),W.disabled=!0,W.overrideTotalTime(Ie.totalTime),n.push(W);return}let Xe=xe;if(Nt.size>1){let Me=H,ze=[];for(;Me=Me.parentNode;){let ft=Nt.get(Me);if(ft){Xe=ft;break}ze.push(Me)}ze.forEach(ft=>Nt.set(ft,Xe))}let Qt=this._buildAnimation(W.namespaceId,Ie,ye,r,Ct,tt);if(W.setRealPlayer(Qt),Xe===xe)X.push(W);else{let Me=this.playersByElement.get(Xe);Me&&Me.length&&(W.parentPlayer=Xa(Me)),n.push(W)}}else Or(H,Ie.fromStyles),W.onDestroy(()=>ra(H,Ie.toStyles)),G.push(W),c.has(H)&&n.push(W)}),G.forEach(F=>{let H=r.get(F.element);if(H&&H.length){let W=Xa(H);F.setRealPlayer(W)}}),n.forEach(F=>{F.parentPlayer?F.syncPlayerEvents(F.parentPlayer):F.destroy()});for(let F=0;F<x.length;F++){let H=x[F],W=H[qn];if(oi(H,Yd),W&&W.hasAnimation)continue;let Ie=[];if(o.size){let Qt=o.get(H);Qt&&Qt.length&&Ie.push(...Qt);let Me=this.driver.query(H,Wd,!0);for(let ze=0;ze<Me.length;ze++){let ft=o.get(Me[ze]);ft&&ft.length&&Ie.push(...ft)}}let Xe=Ie.filter(Qt=>!Qt.destroyed);Xe.length?bte(this,H,Xe):this.processLeaveNode(H)}return x.length=0,X.forEach(F=>{this.players.push(F),F.onDone(()=>{F.destroy();let H=this.players.indexOf(F);this.players.splice(H,1)}),F.play()}),X}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,a,n,r){let i=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(i=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==xo;o.forEach(u=>{u.queued||!l&&u.triggerName!=n||i.push(u)})}}return(a||n)&&(i=i.filter(o=>!(a&&a!=o.namespaceId||n&&n!=o.triggerName))),i}_beforeAnimationBuild(e,t,a){let n=t.triggerName,r=t.element,i=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let u=l.element,c=u!==r,d=Sn(a,u,[]);this._getPreviousPlayers(u,c,i,o,t.toState).forEach(m=>{let v=m.getRealPlayer();v.beforeDestroy&&v.beforeDestroy(),m.destroy(),d.push(m)})}Or(r,t.fromStyles)}_buildAnimation(e,t,a,n,r,i){let o=t.triggerName,l=t.element,u=[],c=new Set,d=new Set,m=t.timelines.map(g=>{let w=g.element;c.add(w);let x=w[qn];if(x&&x.removedBeforeQueried)return new Ho(g.duration,g.delay);let k=w!==l,D=yte((a.get(w)||dte).map(ye=>ye.getRealPlayer())).filter(ye=>{let Nt=ye;return Nt.element?Nt.element===w:!1}),N=r.get(w),O=i.get(w),J=j1(this._normalizer,g.keyframes,N,O),le=this._buildPlayer(g,J,D);if(g.subTimeline&&n&&d.add(w),k){let ye=new Jd(e,o,w);ye.setRealPlayer(le),u.push(ye)}return le});u.forEach(g=>{Sn(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>fte(this.playersByQueriedElement,g.element,g))}),c.forEach(g=>Mn(g,Ag));let v=Xa(m);return v.onDestroy(()=>{c.forEach(g=>oi(g,Ag)),ra(l,t.toStyles)}),d.forEach(g=>{Sn(n,g,[]).push(v)}),v}_buildPlayer(e,t,a){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,a):new Ho(e.duration,e.delay)}},Jd=class{constructor(e,t,a){s(this,"namespaceId");s(this,"triggerName");s(this,"element");s(this,"_player",new Ho);s(this,"_containsRealPlayer",!1);s(this,"_queuedCallbacks",new Map);s(this,"destroyed",!1);s(this,"parentPlayer",null);s(this,"markedForDestroy",!1);s(this,"disabled",!1);s(this,"queued",!0);s(this,"totalTime",0);this.namespaceId=e,this.triggerName=t,this.element=a}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,a)=>{t.forEach(n=>rm(e,a,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Sn(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function fte(e,t,a){let n=e.get(t);if(n){if(n.length){let r=n.indexOf(a);n.splice(r,1)}n.length==0&&e.delete(t)}return n}function gte(e){return e??null}function Gs(e){return e&&e.nodeType===1}function vte(e){return e=="start"||e=="done"}function Bg(e,t){let a=e.style.display;return e.style.display=t??"none",a}function Hg(e,t,a,n,r){let i=[];a.forEach(u=>i.push(Bg(u)));let o=[];n.forEach((u,c)=>{let d=new Map;u.forEach(m=>{let v=t.computeStyle(c,m,r);d.set(m,v),(!v||v.length==0)&&(c[qn]=hte,o.push(c))}),e.set(c,d)});let l=0;return a.forEach(u=>Bg(u,i[l++])),o}function qg(e,t){let a=new Map;if(e.forEach(l=>a.set(l,[])),t.length==0)return a;let n=1,r=new Set(t),i=new Map;function o(l){if(!l)return n;let u=i.get(l);if(u)return u;let c=l.parentNode;return a.has(c)?u=c:r.has(c)?u=n:u=o(c),i.set(l,u),u}return t.forEach(l=>{let u=o(l);u!==n&&a.get(u).push(l)}),a}function Mn(e,t){var a;(a=e.classList)==null||a.add(t)}function oi(e,t){var a;(a=e.classList)==null||a.remove(t)}function bte(e,t,a){Xa(a).onDone(()=>e.processLeaveNode(t))}function yte(e){let t=[];return ew(e,t),t}function ew(e,t){for(let a=0;a<e.length;a++){let n=e[a];n instanceof F1?ew(n.players,t):t.push(n)}}function _te(e,t){let a=Object.keys(e),n=Object.keys(t);if(a.length!=n.length)return!1;for(let r=0;r<a.length;r++){let i=a[r];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}function $g(e,t,a){let n=a.get(e);if(!n)return!1;let r=t.get(e);return r?n.forEach(i=>r.add(i)):t.set(e,n),a.delete(e),!0}var eh=class{constructor(e,t,a){s(this,"_driver");s(this,"_normalizer");s(this,"_transitionEngine");s(this,"_timelineEngine");s(this,"_triggerCache",{});s(this,"onRemovalComplete",(e,t)=>{});this._driver=t,this._normalizer=a,this._transitionEngine=new mte(e.body,t,a),this._timelineEngine=new ote(e.body,t,a),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r)}registerTrigger(e,t,a,n,r){let i=e+"-"+n,o=this._triggerCache[i];if(!o){let l=[],u=[],c=G1(this._driver,r,l,u);if(l.length)throw lee();o=nte(n,c,this._normalizer),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(t,n,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,a,n){this._transitionEngine.insertNode(e,t,a,n)}onRemove(e,t,a){this._transitionEngine.removeNode(e,t,a)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,a,n){if(a.charAt(0)=="@"){let[r,i]=Og(a),o=n;this._timelineEngine.command(r,t,i,o)}else this._transitionEngine.trigger(e,t,a,n)}listen(e,t,a,n,r){if(a.charAt(0)=="@"){let[i,o]=Og(a);return this._timelineEngine.listen(i,t,o,r)}return this._transitionEngine.listen(e,t,a,n,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function wte(e,t){let a=null,n=null;return Array.isArray(t)&&t.length?(a=jc(t[0]),t.length>1&&(n=jc(t[t.length-1]))):t instanceof Map&&(a=jc(t)),a||n?new xte(e,a,n):null}var xte=(()=>{const t=class t{constructor(n,r,i){s(this,"_element");s(this,"_startStyles");s(this,"_endStyles");s(this,"_state",0);s(this,"_initialStyles");this._element=n,this._startStyles=r,this._endStyles=i;let o=t.initialStylesByElement.get(n);o||t.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&ra(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ra(this._element,this._initialStyles),this._endStyles&&(ra(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Or(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Or(this._element,this._endStyles),this._endStyles=null),ra(this._element,this._initialStyles),this._state=3)}};s(t,"initialStylesByElement",new WeakMap);let e=t;return e})();function jc(e){let t=null;return e.forEach((a,n)=>{Ete(n)&&(t=t||new Map,t.set(n,a))}),t}function Ete(e){return e==="display"||e==="position"}var Ug=class{constructor(e,t,a,n){s(this,"element");s(this,"keyframes");s(this,"options");s(this,"_specialStyles");s(this,"_onDoneFns",[]);s(this,"_onStartFns",[]);s(this,"_onDestroyFns",[]);s(this,"_duration");s(this,"_delay");s(this,"_initialized",!1);s(this,"_finished",!1);s(this,"_started",!1);s(this,"_destroyed",!1);s(this,"_finalKeyframe");s(this,"_originalOnDoneFns",[]);s(this,"_originalOnStartFns",[]);s(this,"domPlayer");s(this,"time",0);s(this,"parentPlayer",null);s(this,"currentSnapshot",new Map);this.element=e,this.keyframes=t,this.options=a,this._specialStyles=n,this._duration=a.duration,this._delay=a.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(a=>{t.push(Object.fromEntries(a))}),t}_triggerWebAnimation(e,t,a){return e.animate(this._convertKeyframesToObject(t),a)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,a)=>{a!=="offset"&&e.set(a,this._finished?t:lm(this.element,a))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(a=>a()),t.length=0}},Ste=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return z1(e,t)}getParentElement(e){return om(e)}query(e,t,a){return V1(e,t,a)}computeStyle(e,t,a){return lm(e,t)}animate(e,t,a,n,r,i=[]){let o=n==0?"both":"forwards",l={duration:a,delay:n,fill:o};r&&(l.easing=r);let u=new Map,c=i.filter(v=>v instanceof Ug);Ree(a,n)&&c.forEach(v=>{v.currentSnapshot.forEach((g,w)=>u.set(w,g))});let d=Dee(t).map(v=>new Map(v));d=Nee(e,d,u);let m=wte(e,d);return new Ug(e,d,l,m)}},ml="@",tw="@.disabled",nw=class{constructor(e,t,a,n){s(this,"namespaceId");s(this,"delegate");s(this,"engine");s(this,"_onDestroy");s(this,"ɵtype",0);this.namespaceId=e,this.delegate=t,this.engine=a,this._onDestroy=n}get data(){return this.delegate.data}destroyNode(e){var t,a;(a=(t=this.delegate).destroyNode)==null||a.call(t,e)}destroy(){var e;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),(e=this._onDestroy)==null||e.call(this)}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,a,n=!0){this.delegate.insertBefore(e,t,a),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,a){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,a,n){this.delegate.setAttribute(e,t,a,n)}removeAttribute(e,t,a){this.delegate.removeAttribute(e,t,a)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,a,n){this.delegate.setStyle(e,t,a,n)}removeStyle(e,t,a){this.delegate.removeStyle(e,t,a)}setProperty(e,t,a){t.charAt(0)==ml&&t==tw?this.disableAnimations(e,!!a):this.delegate.setProperty(e,t,a)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,a,n){return this.delegate.listen(e,t,a,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},kte=class extends nw{constructor(t,a,n,r,i){super(a,n,r,i);s(this,"factory");this.factory=t,this.namespaceId=a}setProperty(t,a,n){a.charAt(0)==ml?a.charAt(1)=="."&&a==tw?(n=n===void 0?!0:!!n,this.disableAnimations(t,n)):this.engine.process(this.namespaceId,t,a.slice(1),n):this.delegate.setProperty(t,a,n)}listen(t,a,n,r){if(a.charAt(0)==ml){let i=Cte(t),o=a.slice(1),l="";return o.charAt(0)!=ml&&([o,l]=Dte(o)),this.engine.listen(this.namespaceId,i,o,l,u=>{let c=u._data||-1;this.factory.scheduleListenerCallback(c,n,u)})}return this.delegate.listen(t,a,n,r)}};function Cte(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function Dte(e){let t=e.indexOf("."),a=e.substring(0,t),n=e.slice(t+1);return[a,n]}var Ite=class{constructor(e,t,a){s(this,"delegate");s(this,"engine");s(this,"_zone");s(this,"_currentId",0);s(this,"_microtaskId",1);s(this,"_animationCallbacksBuffer",[]);s(this,"_rendererCache",new Map);s(this,"_cdRecurDepth",0);this.delegate=e,this.engine=t,this._zone=a,t.onRemovalComplete=(n,r)=>{r==null||r.removeChild(null,n)}}createRenderer(e,t){var l;let a="",n=this.delegate.createRenderer(e,t);if(!e||!((l=t==null?void 0:t.data)!=null&&l.animation)){let u=this._rendererCache,c=u.get(n);if(!c){let d=()=>u.delete(n);c=new nw(a,n,this.engine,d),u.set(n,c)}return c}let r=t.id,i=t.id+"-"+this._currentId;this._currentId++,this.engine.register(i,e);let o=u=>{Array.isArray(u)?u.forEach(o):this.engine.registerTrigger(r,i,e,u.name,u)};return t.data.animation.forEach(o),new kte(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,a){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(a));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[i,o]=r;i(o)}),this._animationCallbacksBuffer=[]})}),n.push([t,a])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){var t,a;this.engine.flush(),(a=(t=this.delegate).componentReplaced)==null||a.call(t,e)}},Tte=(()=>{const t=class t extends eh{constructor(n,r,i){super(n,r,i)}ngOnDestroy(){this.flush()}};s(t,"ɵfac",function(n){return new(n||t)(oe(Fe),oe($1),oe(um))}),s(t,"ɵprov",V({token:t,factory:t.ɵfac}));let e=t;return e})();function Rte(){return new Aee}function Nte(e,t,a){return new Ite(e,t,a)}var Ote=[{provide:um,useFactory:Rte},{provide:eh,useClass:Tte},{provide:Wn,useFactory:Nte,deps:[Fd,eh,Ve]}],Mte=[{provide:$1,useFactory:()=>new Ste},{provide:mr,useFactory:()=>"BrowserAnimations"},...Ote];function Ate(){return Yr("NgEagerAnimations"),[...Mte]}var Pte=(()=>{const t=class t extends L1{constructor(n){super(),this.translate=n,this.getRangeLabel=(r,i,o)=>{if(o===0||i===0)return`0 / ${o}`;o=Math.max(o,0);let l=r*i,u=l<o?Math.min(l+i,o):l+i;return`${l+1} - ${u} / ${o}`},this.getAndInitTranslations=()=>{this.nextPageLabel=this.translate.instant("commons.matPaginator.nextPage"),this.previousPageLabel=this.translate.instant("commons.matPaginator.prevPage"),this.firstPageLabel=this.translate.instant("commons.matPaginator.firstPage"),this.lastPageLabel=this.translate.instant("commons.matPaginator.lastPage"),this.itemsPerPageLabel=this.translate.instant("commons.matPaginator.itemsPerPage"),this.getRangeLabel=this.getRangeLabel.bind(this),this.changes.next()},this.translate.onLangChange.subscribe(()=>{this.getAndInitTranslations()}),this.getAndInitTranslations()}};t.ɵfac=function(n){return new(n||t)(oe(Qn))},t.ɵprov=V({token:t,factory:t.ɵfac});let e=t;return e})(),aw=6048e5,Lte=864e5,Fte=6e4,jte=36e5,zte=1e3,Gg=Symbol.for("constructDateFrom");function Ut(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Gg in e?e[Gg](t):e instanceof Date?new e.constructor(t):new Date(t)}function zt(e,t){return Ut(t||e,e)}function rw(e,t,a){let n=zt(e,a==null?void 0:a.in);return isNaN(t)?Ut((a==null?void 0:a.in)||e,NaN):(t&&n.setDate(n.getDate()+t),n)}var Vte={};function Xi(){return Vte}function dr(e,t){var l,u,c,d;let a=Xi(),n=(t==null?void 0:t.weekStartsOn)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??a.weekStartsOn??((d=(c=a.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,r=zt(e,t==null?void 0:t.in),i=r.getDay(),o=(i<n?7:0)+i-n;return r.setDate(r.getDate()-o),r.setHours(0,0,0,0),r}function Li(e,t){return dr(e,Wt(ue({},t),{weekStartsOn:1}))}function iw(e,t){let a=zt(e,t==null?void 0:t.in),n=a.getFullYear(),r=Ut(a,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);let i=Li(r),o=Ut(a,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);let l=Li(o);return a.getTime()>=i.getTime()?n+1:a.getTime()>=l.getTime()?n:n-1}function Zl(e){let t=zt(e),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),+e-+a}function Bte(e,...t){let a=Ut.bind(null,t.find(n=>typeof n=="object"));return t.map(a)}function Zg(e,t){let a=zt(e,t==null?void 0:t.in);return a.setHours(0,0,0,0),a}function Hte(e,t,a){let[n,r]=Bte(a==null?void 0:a.in,e,t),i=Zg(n),o=Zg(r),l=+i-Zl(i),u=+o-Zl(o);return Math.round((l-u)/Lte)}function qte(e,t){let a=iw(e,t),n=Ut(e,0);return n.setFullYear(a,0,4),n.setHours(0,0,0,0),Li(n)}function $te(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ute(e){return!(!$te(e)&&typeof e!="number"||isNaN(+zt(e)))}function Gte(e,t){let a=zt(e,t==null?void 0:t.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}var Zte={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Yte=(e,t,a)=>{let n,r=Zte[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n};function zc(e){return(t={})=>{let a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}var Wte={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Kte={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Qte={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Xte={date:zc({formats:Wte,defaultWidth:"full"}),time:zc({formats:Kte,defaultWidth:"full"}),dateTime:zc({formats:Qte,defaultWidth:"full"})},Jte={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ene=(e,t,a,n)=>Jte[e];function lo(e){return(t,a)=>{let n=a!=null&&a.context?String(a.context):"standalone",r;if(n==="formatting"&&e.formattingValues){let o=e.defaultFormattingWidth||e.defaultWidth,l=a!=null&&a.width?String(a.width):o;r=e.formattingValues[l]||e.formattingValues[o]}else{let o=e.defaultWidth,l=a!=null&&a.width?String(a.width):e.defaultWidth;r=e.values[l]||e.values[o]}let i=e.argumentCallback?e.argumentCallback(t):t;return r[i]}}var tne={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nne={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ane={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},rne={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ine={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},one={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},sne=(e,t)=>{let a=Number(e),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},lne={ordinalNumber:sne,era:lo({values:tne,defaultWidth:"wide"}),quarter:lo({values:nne,defaultWidth:"wide",argumentCallback:e=>e-1}),month:lo({values:ane,defaultWidth:"wide"}),day:lo({values:rne,defaultWidth:"wide"}),dayPeriod:lo({values:ine,defaultWidth:"wide",formattingValues:one,defaultFormattingWidth:"wide"})};function uo(e){return(t,a={})=>{let n=a.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;let o=i[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?cne(l,m=>m.test(o)):une(l,m=>m.test(o)),c;c=e.valueCallback?e.valueCallback(u):u,c=a.valueCallback?a.valueCallback(c):c;let d=t.slice(o.length);return{value:c,rest:d}}}function une(e,t){for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return a}function cne(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return a}function dne(e){return(t,a={})=>{let n=t.match(e.matchPattern);if(!n)return null;let r=n[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=a.valueCallback?a.valueCallback(o):o;let l=t.slice(r.length);return{value:o,rest:l}}}var hne=/^(\d+)(th|st|nd|rd)?/i,pne=/\d+/i,mne={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},fne={any:[/^b/i,/^(a|c)/i]},gne={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},vne={any:[/1/i,/2/i,/3/i,/4/i]},bne={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},yne={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},_ne={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},wne={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xne={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ene={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Sne={ordinalNumber:dne({matchPattern:hne,parsePattern:pne,valueCallback:e=>parseInt(e,10)}),era:uo({matchPatterns:mne,defaultMatchWidth:"wide",parsePatterns:fne,defaultParseWidth:"any"}),quarter:uo({matchPatterns:gne,defaultMatchWidth:"wide",parsePatterns:vne,defaultParseWidth:"any",valueCallback:e=>e+1}),month:uo({matchPatterns:bne,defaultMatchWidth:"wide",parsePatterns:yne,defaultParseWidth:"any"}),day:uo({matchPatterns:_ne,defaultMatchWidth:"wide",parsePatterns:wne,defaultParseWidth:"any"}),dayPeriod:uo({matchPatterns:xne,defaultMatchWidth:"any",parsePatterns:Ene,defaultParseWidth:"any"})},ow={code:"en-US",formatDistance:Yte,formatLong:Xte,formatRelative:ene,localize:lne,match:Sne,options:{weekStartsOn:0,firstWeekContainsDate:1}};function kne(e,t){let a=zt(e,t==null?void 0:t.in);return Hte(a,Gte(a))+1}function sw(e,t){let a=zt(e,t==null?void 0:t.in),n=+Li(a)-+qte(a);return Math.round(n/aw)+1}function hm(e,t){var d,m,v,g;let a=zt(e,t==null?void 0:t.in),n=a.getFullYear(),r=Xi(),i=(t==null?void 0:t.firstWeekContainsDate)??((m=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(v=r.locale)==null?void 0:v.options)==null?void 0:g.firstWeekContainsDate)??1,o=Ut((t==null?void 0:t.in)||e,0);o.setFullYear(n+1,0,i),o.setHours(0,0,0,0);let l=dr(o,t),u=Ut((t==null?void 0:t.in)||e,0);u.setFullYear(n,0,i),u.setHours(0,0,0,0);let c=dr(u,t);return+a>=+l?n+1:+a>=+c?n:n-1}function Cne(e,t){var o,l,u,c;let a=Xi(),n=(t==null?void 0:t.firstWeekContainsDate)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??a.firstWeekContainsDate??((c=(u=a.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,r=hm(e,t),i=Ut((t==null?void 0:t.in)||e,0);return i.setFullYear(r,0,n),i.setHours(0,0,0,0),dr(i,t)}function lw(e,t){let a=zt(e,t==null?void 0:t.in),n=+dr(a,t)-+Cne(a,t);return Math.round(n/aw)+1}function Ye(e,t){let a=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return a+n}var Za={y(e,t){let a=e.getFullYear(),n=a>0?a:1-a;return Ye(t==="yy"?n%100:n,t.length)},M(e,t){let a=e.getMonth();return t==="M"?String(a+1):Ye(a+1,2)},d(e,t){return Ye(e.getDate(),t.length)},a(e,t){let a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(e,t){return Ye(e.getHours()%12||12,t.length)},H(e,t){return Ye(e.getHours(),t.length)},m(e,t){return Ye(e.getMinutes(),t.length)},s(e,t){return Ye(e.getSeconds(),t.length)},S(e,t){let a=t.length,n=e.getMilliseconds(),r=Math.trunc(n*Math.pow(10,a-3));return Ye(r,t.length)}},ri={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Yg={G:function(e,t,a){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){let n=e.getFullYear(),r=n>0?n:1-n;return a.ordinalNumber(r,{unit:"year"})}return Za.y(e,t)},Y:function(e,t,a,n){let r=hm(e,n),i=r>0?r:1-r;if(t==="YY"){let o=i%100;return Ye(o,2)}return t==="Yo"?a.ordinalNumber(i,{unit:"year"}):Ye(i,t.length)},R:function(e,t){let a=iw(e);return Ye(a,t.length)},u:function(e,t){let a=e.getFullYear();return Ye(a,t.length)},Q:function(e,t,a){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Ye(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,a){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Ye(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,a){let n=e.getMonth();switch(t){case"M":case"MM":return Za.M(e,t);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,a){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Ye(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,a,n){let r=lw(e,n);return t==="wo"?a.ordinalNumber(r,{unit:"week"}):Ye(r,t.length)},I:function(e,t,a){let n=sw(e);return t==="Io"?a.ordinalNumber(n,{unit:"week"}):Ye(n,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getDate(),{unit:"date"}):Za.d(e,t)},D:function(e,t,a){let n=kne(e);return t==="Do"?a.ordinalNumber(n,{unit:"dayOfYear"}):Ye(n,t.length)},E:function(e,t,a){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,a,n){let r=e.getDay(),i=(r-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Ye(i,2);case"eo":return a.ordinalNumber(i,{unit:"day"});case"eee":return a.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(r,{width:"short",context:"formatting"});case"eeee":default:return a.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,a,n){let r=e.getDay(),i=(r-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Ye(i,t.length);case"co":return a.ordinalNumber(i,{unit:"day"});case"ccc":return a.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(r,{width:"narrow",context:"standalone"});case"cccccc":return a.day(r,{width:"short",context:"standalone"});case"cccc":default:return a.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,a){let n=e.getDay(),r=n===0?7:n;switch(t){case"i":return String(r);case"ii":return Ye(r,t.length);case"io":return a.ordinalNumber(r,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});case"iiii":default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,a){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,a){let n=e.getHours(),r;switch(n===12?r=ri.noon:n===0?r=ri.midnight:r=n/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,a){let n=e.getHours(),r;switch(n>=17?r=ri.evening:n>=12?r=ri.afternoon:n>=4?r=ri.morning:r=ri.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),a.ordinalNumber(n,{unit:"hour"})}return Za.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getHours(),{unit:"hour"}):Za.H(e,t)},K:function(e,t,a){let n=e.getHours()%12;return t==="Ko"?a.ordinalNumber(n,{unit:"hour"}):Ye(n,t.length)},k:function(e,t,a){let n=e.getHours();return n===0&&(n=24),t==="ko"?a.ordinalNumber(n,{unit:"hour"}):Ye(n,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getMinutes(),{unit:"minute"}):Za.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getSeconds(),{unit:"second"}):Za.s(e,t)},S:function(e,t){return Za.S(e,t)},X:function(e,t,a){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Kg(n);case"XXXX":case"XX":return Ir(n);case"XXXXX":case"XXX":default:return Ir(n,":")}},x:function(e,t,a){let n=e.getTimezoneOffset();switch(t){case"x":return Kg(n);case"xxxx":case"xx":return Ir(n);case"xxxxx":case"xxx":default:return Ir(n,":")}},O:function(e,t,a){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Wg(n,":");case"OOOO":default:return"GMT"+Ir(n,":")}},z:function(e,t,a){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Wg(n,":");case"zzzz":default:return"GMT"+Ir(n,":")}},t:function(e,t,a){let n=Math.trunc(+e/1e3);return Ye(n,t.length)},T:function(e,t,a){return Ye(+e,t.length)}};function Wg(e,t=""){let a=e>0?"-":"+",n=Math.abs(e),r=Math.trunc(n/60),i=n%60;return i===0?a+String(r):a+String(r)+t+Ye(i,2)}function Kg(e,t){return e%60===0?(e>0?"-":"+")+Ye(Math.abs(e)/60,2):Ir(e,t)}function Ir(e,t=""){let a=e>0?"-":"+",n=Math.abs(e),r=Ye(Math.trunc(n/60),2),i=Ye(n%60,2);return a+r+t+i}var Qg=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},uw=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Dne=(e,t)=>{let a=e.match(/(P+)(p+)?/)||[],n=a[1],r=a[2];if(!r)return Qg(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Qg(n,t)).replace("{{time}}",uw(r,t))},th={p:uw,P:Dne},Ine=/^D+$/,Tne=/^Y+$/,Rne=["D","DD","YY","YYYY"];function cw(e){return Ine.test(e)}function dw(e){return Tne.test(e)}function nh(e,t,a){let n=Nne(e,t,a);if(console.warn(n),Rne.includes(e))throw new RangeError(n)}function Nne(e,t,a){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var One=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mne=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ane=/^'([^]*?)'?$/,Pne=/''/g,Lne=/[a-zA-Z]/;function hw(e,t,a){var d,m,v,g,w,x,k,D;let n=Xi(),r=(a==null?void 0:a.locale)??n.locale??ow,i=(a==null?void 0:a.firstWeekContainsDate)??((m=(d=a==null?void 0:a.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??n.firstWeekContainsDate??((g=(v=n.locale)==null?void 0:v.options)==null?void 0:g.firstWeekContainsDate)??1,o=(a==null?void 0:a.weekStartsOn)??((x=(w=a==null?void 0:a.locale)==null?void 0:w.options)==null?void 0:x.weekStartsOn)??n.weekStartsOn??((D=(k=n.locale)==null?void 0:k.options)==null?void 0:D.weekStartsOn)??0,l=zt(e,a==null?void 0:a.in);if(!Ute(l))throw new RangeError("Invalid time value");let u=t.match(Mne).map(N=>{let O=N[0];if(O==="p"||O==="P"){let J=th[O];return J(N,r.formatLong)}return N}).join("").match(One).map(N=>{if(N==="''")return{isToken:!1,value:"'"};let O=N[0];if(O==="'")return{isToken:!1,value:Fne(N)};if(Yg[O])return{isToken:!0,value:N};if(O.match(Lne))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");return{isToken:!1,value:N}});r.localize.preprocessor&&(u=r.localize.preprocessor(l,u));let c={firstWeekContainsDate:i,weekStartsOn:o,locale:r};return u.map(N=>{if(!N.isToken)return N.value;let O=N.value;(!(a!=null&&a.useAdditionalWeekYearTokens)&&dw(O)||!(a!=null&&a.useAdditionalDayOfYearTokens)&&cw(O))&&nh(O,t,String(e));let J=Yg[O[0]];return J(l,O,r.localize,c)}).join("")}function Fne(e){let t=e.match(Ane);return t?t[1].replace(Pne,"'"):e}function pw(){return Object.assign({},Xi())}function jne(e,t){let a=zt(e,t==null?void 0:t.in).getDay();return a===0?7:a}function zne(e,t){let a=Vne(t)?new t(0):Ut(t,0);return a.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),a.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),a}function Vne(e){var t;return typeof e=="function"&&((t=e.prototype)==null?void 0:t.constructor)===e}var Bne=10,mw=class{constructor(){s(this,"subPriority",0)}validate(e,t){return!0}},Hne=class extends mw{constructor(e,t,a,n,r){super(),this.value=e,this.validateValue=t,this.setValue=a,this.priority=n,r&&(this.subPriority=r)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,a){return this.setValue(e,t,this.value,a)}},qne=class extends mw{constructor(t,a){super();s(this,"priority",Bne);s(this,"subPriority",-1);this.context=t||(n=>Ut(a,n))}set(t,a){return a.timestampIsSet?t:Ut(t,zne(t,this.context))}},Ge=class{run(e,t,a,n){let r=this.parse(e,t,a,n);return r?{setter:new Hne(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(e,t,a){return!0}},$ne=class extends Ge{constructor(){super(...arguments);s(this,"priority",140);s(this,"incompatibleTokens",["R","u","t","T"])}parse(t,a,n){switch(a){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,a,n){return a.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}},Et={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},ia={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function St(e,t){return e&&{value:t(e.value),rest:e.rest}}function gt(e,t){let a=t.match(e);return a?{value:parseInt(a[0],10),rest:t.slice(a[0].length)}:null}function oa(e,t){let a=t.match(e);if(!a)return null;if(a[0]==="Z")return{value:0,rest:t.slice(1)};let n=a[1]==="+"?1:-1,r=a[2]?parseInt(a[2],10):0,i=a[3]?parseInt(a[3],10):0,o=a[5]?parseInt(a[5],10):0;return{value:n*(r*jte+i*Fte+o*zte),rest:t.slice(a[0].length)}}function fw(e){return gt(Et.anyDigitsSigned,e)}function yt(e,t){switch(e){case 1:return gt(Et.singleDigit,t);case 2:return gt(Et.twoDigits,t);case 3:return gt(Et.threeDigits,t);case 4:return gt(Et.fourDigits,t);default:return gt(new RegExp("^\\d{1,"+e+"}"),t)}}function Yl(e,t){switch(e){case 1:return gt(Et.singleDigitSigned,t);case 2:return gt(Et.twoDigitsSigned,t);case 3:return gt(Et.threeDigitsSigned,t);case 4:return gt(Et.fourDigitsSigned,t);default:return gt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function pm(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function gw(e,t){let a=t>0,n=a?t:1-t,r;if(n<=50)r=e||100;else{let i=n+50,o=Math.trunc(i/100)*100,l=e>=i%100;r=e+o-(l?100:0)}return a?r:1-r}function vw(e){return e%400===0||e%4===0&&e%100!==0}var Une=class extends Ge{constructor(){super(...arguments);s(this,"priority",130);s(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,a,n){let r=i=>({year:i,isTwoDigitYear:a==="yy"});switch(a){case"y":return St(yt(4,t),r);case"yo":return St(n.ordinalNumber(t,{unit:"year"}),r);default:return St(yt(a.length,t),r)}}validate(t,a){return a.isTwoDigitYear||a.year>0}set(t,a,n){let r=t.getFullYear();if(n.isTwoDigitYear){let o=gw(n.year,r);return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}let i=!("era"in a)||a.era===1?n.year:1-n.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}},Gne=class extends Ge{constructor(){super(...arguments);s(this,"priority",130);s(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,a,n){let r=i=>({year:i,isTwoDigitYear:a==="YY"});switch(a){case"Y":return St(yt(4,t),r);case"Yo":return St(n.ordinalNumber(t,{unit:"year"}),r);default:return St(yt(a.length,t),r)}}validate(t,a){return a.isTwoDigitYear||a.year>0}set(t,a,n,r){let i=hm(t,r);if(n.isTwoDigitYear){let l=gw(n.year,i);return t.setFullYear(l,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),dr(t,r)}let o=!("era"in a)||a.era===1?n.year:1-n.year;return t.setFullYear(o,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),dr(t,r)}},Zne=class extends Ge{constructor(){super(...arguments);s(this,"priority",130);s(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,a){return Yl(a==="R"?4:a.length,t)}set(t,a,n){let r=Ut(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Li(r)}},Yne=class extends Ge{constructor(){super(...arguments);s(this,"priority",130);s(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,a){return Yl(a==="u"?4:a.length,t)}set(t,a,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}},Wne=class extends Ge{constructor(){super(...arguments);s(this,"priority",120);s(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,a,n){switch(a){case"Q":case"QQ":return yt(a.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,a){return a>=1&&a<=4}set(t,a,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}},Kne=class extends Ge{constructor(){super(...arguments);s(this,"priority",120);s(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,a,n){switch(a){case"q":case"qq":return yt(a.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,a){return a>=1&&a<=4}set(t,a,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}},Qne=class extends Ge{constructor(){super(...arguments);s(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);s(this,"priority",110)}parse(t,a,n){let r=i=>i-1;switch(a){case"M":return St(gt(Et.month,t),r);case"MM":return St(yt(2,t),r);case"Mo":return St(n.ordinalNumber(t,{unit:"month"}),r);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,a){return a>=0&&a<=11}set(t,a,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}},Xne=class extends Ge{constructor(){super(...arguments);s(this,"priority",110);s(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,a,n){let r=i=>i-1;switch(a){case"L":return St(gt(Et.month,t),r);case"LL":return St(yt(2,t),r);case"Lo":return St(n.ordinalNumber(t,{unit:"month"}),r);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,a){return a>=0&&a<=11}set(t,a,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}};function Jne(e,t,a){let n=zt(e,a==null?void 0:a.in),r=lw(n,a)-t;return n.setDate(n.getDate()-r*7),zt(n,a==null?void 0:a.in)}var eae=class extends Ge{constructor(){super(...arguments);s(this,"priority",100);s(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,a,n){switch(a){case"w":return gt(Et.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return yt(a.length,t)}}validate(t,a){return a>=1&&a<=53}set(t,a,n,r){return dr(Jne(t,n,r),r)}};function tae(e,t,a){let n=zt(e,a==null?void 0:a.in),r=sw(n,a)-t;return n.setDate(n.getDate()-r*7),n}var nae=class extends Ge{constructor(){super(...arguments);s(this,"priority",100);s(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,a,n){switch(a){case"I":return gt(Et.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return yt(a.length,t)}}validate(t,a){return a>=1&&a<=53}set(t,a,n){return Li(tae(t,n))}},aae=[31,28,31,30,31,30,31,31,30,31,30,31],rae=[31,29,31,30,31,30,31,31,30,31,30,31],iae=class extends Ge{constructor(){super(...arguments);s(this,"priority",90);s(this,"subPriority",1);s(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,a,n){switch(a){case"d":return gt(Et.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return yt(a.length,t)}}validate(t,a){let n=t.getFullYear(),r=vw(n),i=t.getMonth();return r?a>=1&&a<=rae[i]:a>=1&&a<=aae[i]}set(t,a,n){return t.setDate(n),t.setHours(0,0,0,0),t}},oae=class extends Ge{constructor(){super(...arguments);s(this,"priority",90);s(this,"subpriority",1);s(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,a,n){switch(a){case"D":case"DD":return gt(Et.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return yt(a.length,t)}}validate(t,a){let n=t.getFullYear();return vw(n)?a>=1&&a<=366:a>=1&&a<=365}set(t,a,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}};function mm(e,t,a){var d,m,v,g;let n=Xi(),r=(a==null?void 0:a.weekStartsOn)??((m=(d=a==null?void 0:a.locale)==null?void 0:d.options)==null?void 0:m.weekStartsOn)??n.weekStartsOn??((g=(v=n.locale)==null?void 0:v.options)==null?void 0:g.weekStartsOn)??0,i=zt(e,a==null?void 0:a.in),o=i.getDay(),l=(t%7+7)%7,u=7-r,c=t<0||t>6?t-(o+u)%7:(l+u)%7-(o+u)%7;return rw(i,c,a)}var sae=class extends Ge{constructor(){super(...arguments);s(this,"priority",90);s(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,a,n){switch(a){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,a){return a>=0&&a<=6}set(t,a,n,r){return t=mm(t,n,r),t.setHours(0,0,0,0),t}},lae=class extends Ge{constructor(){super(...arguments);s(this,"priority",90);s(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,a,n,r){let i=o=>{let l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(a){case"e":case"ee":return St(yt(a.length,t),i);case"eo":return St(n.ordinalNumber(t,{unit:"day"}),i);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,a){return a>=0&&a<=6}set(t,a,n,r){return t=mm(t,n,r),t.setHours(0,0,0,0),t}},uae=class extends Ge{constructor(){super(...arguments);s(this,"priority",90);s(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,a,n,r){let i=o=>{let l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(a){case"c":case"cc":return St(yt(a.length,t),i);case"co":return St(n.ordinalNumber(t,{unit:"day"}),i);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,a){return a>=0&&a<=6}set(t,a,n,r){return t=mm(t,n,r),t.setHours(0,0,0,0),t}};function cae(e,t,a){let n=zt(e,a==null?void 0:a.in),r=jne(n,a),i=t-r;return rw(n,i,a)}var dae=class extends Ge{constructor(){super(...arguments);s(this,"priority",90);s(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,a,n){let r=i=>i===0?7:i;switch(a){case"i":case"ii":return yt(a.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return St(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return St(n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return St(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiii":default:return St(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r)}}validate(t,a){return a>=1&&a<=7}set(t,a,n){return t=cae(t,n),t.setHours(0,0,0,0),t}},hae=class extends Ge{constructor(){super(...arguments);s(this,"priority",80);s(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,a,n){switch(a){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,a,n){return t.setHours(pm(n),0,0,0),t}},pae=class extends Ge{constructor(){super(...arguments);s(this,"priority",80);s(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,a,n){switch(a){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,a,n){return t.setHours(pm(n),0,0,0),t}},mae=class extends Ge{constructor(){super(...arguments);s(this,"priority",80);s(this,"incompatibleTokens",["a","b","t","T"])}parse(t,a,n){switch(a){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,a,n){return t.setHours(pm(n),0,0,0),t}},fae=class extends Ge{constructor(){super(...arguments);s(this,"priority",70);s(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,a,n){switch(a){case"h":return gt(Et.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return yt(a.length,t)}}validate(t,a){return a>=1&&a<=12}set(t,a,n){let r=t.getHours()>=12;return r&&n<12?t.setHours(n+12,0,0,0):!r&&n===12?t.setHours(0,0,0,0):t.setHours(n,0,0,0),t}},gae=class extends Ge{constructor(){super(...arguments);s(this,"priority",70);s(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,a,n){switch(a){case"H":return gt(Et.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return yt(a.length,t)}}validate(t,a){return a>=0&&a<=23}set(t,a,n){return t.setHours(n,0,0,0),t}},vae=class extends Ge{constructor(){super(...arguments);s(this,"priority",70);s(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,a,n){switch(a){case"K":return gt(Et.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return yt(a.length,t)}}validate(t,a){return a>=0&&a<=11}set(t,a,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}},bae=class extends Ge{constructor(){super(...arguments);s(this,"priority",70);s(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,a,n){switch(a){case"k":return gt(Et.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return yt(a.length,t)}}validate(t,a){return a>=1&&a<=24}set(t,a,n){let r=n<=24?n%24:n;return t.setHours(r,0,0,0),t}},yae=class extends Ge{constructor(){super(...arguments);s(this,"priority",60);s(this,"incompatibleTokens",["t","T"])}parse(t,a,n){switch(a){case"m":return gt(Et.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return yt(a.length,t)}}validate(t,a){return a>=0&&a<=59}set(t,a,n){return t.setMinutes(n,0,0),t}},_ae=class extends Ge{constructor(){super(...arguments);s(this,"priority",50);s(this,"incompatibleTokens",["t","T"])}parse(t,a,n){switch(a){case"s":return gt(Et.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return yt(a.length,t)}}validate(t,a){return a>=0&&a<=59}set(t,a,n){return t.setSeconds(n,0),t}},wae=class extends Ge{constructor(){super(...arguments);s(this,"priority",30);s(this,"incompatibleTokens",["t","T"])}parse(t,a){let n=r=>Math.trunc(r*Math.pow(10,-a.length+3));return St(yt(a.length,t),n)}set(t,a,n){return t.setMilliseconds(n),t}},xae=class extends Ge{constructor(){super(...arguments);s(this,"priority",10);s(this,"incompatibleTokens",["t","T","x"])}parse(t,a){switch(a){case"X":return oa(ia.basicOptionalMinutes,t);case"XX":return oa(ia.basic,t);case"XXXX":return oa(ia.basicOptionalSeconds,t);case"XXXXX":return oa(ia.extendedOptionalSeconds,t);case"XXX":default:return oa(ia.extended,t)}}set(t,a,n){return a.timestampIsSet?t:Ut(t,t.getTime()-Zl(t)-n)}},Eae=class extends Ge{constructor(){super(...arguments);s(this,"priority",10);s(this,"incompatibleTokens",["t","T","X"])}parse(t,a){switch(a){case"x":return oa(ia.basicOptionalMinutes,t);case"xx":return oa(ia.basic,t);case"xxxx":return oa(ia.basicOptionalSeconds,t);case"xxxxx":return oa(ia.extendedOptionalSeconds,t);case"xxx":default:return oa(ia.extended,t)}}set(t,a,n){return a.timestampIsSet?t:Ut(t,t.getTime()-Zl(t)-n)}},Sae=class extends Ge{constructor(){super(...arguments);s(this,"priority",40);s(this,"incompatibleTokens","*")}parse(t){return fw(t)}set(t,a,n){return[Ut(t,n*1e3),{timestampIsSet:!0}]}},kae=class extends Ge{constructor(){super(...arguments);s(this,"priority",20);s(this,"incompatibleTokens","*")}parse(t){return fw(t)}set(t,a,n){return[Ut(t,n),{timestampIsSet:!0}]}},Cae={G:new $ne,y:new Une,Y:new Gne,R:new Zne,u:new Yne,Q:new Wne,q:new Kne,M:new Qne,L:new Xne,w:new eae,I:new nae,d:new iae,D:new oae,E:new sae,e:new lae,c:new uae,i:new dae,a:new hae,b:new pae,B:new mae,h:new fae,H:new gae,K:new vae,k:new bae,m:new yae,s:new _ae,S:new wae,X:new xae,x:new Eae,t:new Sae,T:new kae},Dae=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Iae=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tae=/^'([^]*?)'?$/,Rae=/''/g,Nae=/\S/,Oae=/[a-zA-Z]/;function Mae(e,t,a,n){var k,D,N,O;let r=()=>Ut(a,NaN),i=pw(),o=i.locale??ow,l=i.firstWeekContainsDate??((D=(k=i.locale)==null?void 0:k.options)==null?void 0:D.firstWeekContainsDate)??1,u=i.weekStartsOn??((O=(N=i.locale)==null?void 0:N.options)==null?void 0:O.weekStartsOn)??0,c={firstWeekContainsDate:l,weekStartsOn:u,locale:o},d=[new qne(n==null?void 0:n.in,a)],m=t.match(Iae).map(J=>{let le=J[0];if(le in th){let ye=th[le];return ye(J,o.formatLong)}return J}).join("").match(Dae),v=[];for(let J of m){dw(J)&&nh(J,t,e),cw(J)&&nh(J,t,e);let le=J[0],ye=Cae[le];if(ye){let{incompatibleTokens:Nt}=ye;if(Array.isArray(Nt)){let tt=v.find(Ct=>Nt.includes(Ct.token)||Ct.token===le);if(tt)throw new RangeError(`The format string mustn't contain \`${tt.fullToken}\` and \`${J}\` at the same time`)}else if(ye.incompatibleTokens==="*"&&v.length>0)throw new RangeError(`The format string mustn't contain \`${J}\` and any other token at the same time`);v.push({token:le,fullToken:J});let _t=ye.run(e,J,o.match,c);if(!_t)return r();d.push(_t.setter),e=_t.rest}else{if(le.match(Oae))throw new RangeError("Format string contains an unescaped latin alphabet character `"+le+"`");if(J==="''"?J="'":le==="'"&&(J=Aae(J)),e.indexOf(J)===0)e=e.slice(J.length);else return r()}}if(e.length>0&&Nae.test(e))return r();let g=d.map(J=>J.priority).sort((J,le)=>le-J).filter((J,le,ye)=>ye.indexOf(J)===le).map(J=>d.filter(le=>le.priority===J).sort((le,ye)=>ye.subPriority-le.subPriority)).map(J=>J[0]),w=zt(a,n==null?void 0:n.in);if(isNaN(+w))return r();let x={};for(let J of g){if(!J.validate(w,c))return r();let le=J.set(w,x,c);Array.isArray(le)?(w=le[0],Object.assign(x,le[1])):w=le}return w}function Aae(e){return e.match(Tae)[1].replace(Rae,"'")}var T=function(e){return e.SEPARATOR="separator",e.PERCENT="percent",e.IP="IP",e.CPF_CNPJ="CPF_CNPJ",e.MONTH="M",e.MONTHS="M0",e.MINUTE="m",e.HOUR="h",e.HOURS="H",e.MINUTES="m0",e.HOURS_HOUR="Hh",e.SECONDS="s0",e.HOURS_MINUTES_SECONDS="Hh:m0:s0",e.EMAIL_MASK="A*@A*.A*",e.HOURS_MINUTES="Hh:m0",e.MINUTES_SECONDS="m0:s0",e.DAYS_MONTHS_YEARS="d0/M0/0000",e.DAYS_MONTHS="d0/M0",e.DAYS="d0",e.DAY="d",e.SECOND="s",e.LETTER_S="S",e.DOT=".",e.COMMA=",",e.CURLY_BRACKETS_LEFT="{",e.CURLY_BRACKETS_RIGHT="}",e.MINUS="-",e.OR="||",e.HASH="#",e.EMPTY_STRING="",e.SYMBOL_STAR="*",e.SYMBOL_QUESTION="?",e.SLASH="/",e.WHITE_SPACE=" ",e.NUMBER_ZERO="0",e.NUMBER_NINE="9",e.BACKSPACE="Backspace",e.DELETE="Delete",e.ARROW_LEFT="ArrowLeft",e.ARROW_UP="ArrowUp",e.DOUBLE_ZERO="00",e}(T||{}),fm=new K("ngx-mask config"),bw=new K("new ngx-mask config"),yw=new K("initial ngx-mask config"),Pae={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:null,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,apm:!1,leadZero:!1,keepCharacterPositions:!1,triggerOnMaskChange:!1,inputTransformFn:e=>e,outputTransformFn:e=>e,maskFilled:new it,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}};T.HOURS_MINUTES_SECONDS,T.HOURS_MINUTES,T.MINUTES_SECONDS;T.PERCENT,T.HOURS_HOUR,T.SECONDS,T.MINUTES,T.SEPARATOR,T.DAYS_MONTHS_YEARS,T.DAYS_MONTHS,T.DAYS,T.MONTHS;var Lae=(()=>{const t=class t{constructor(){s(this,"_config",S(fm));s(this,"dropSpecialCharacters",this._config.dropSpecialCharacters);s(this,"hiddenInput",this._config.hiddenInput);s(this,"showTemplate");s(this,"clearIfNotMatch",this._config.clearIfNotMatch);s(this,"specialCharacters",this._config.specialCharacters);s(this,"patterns",this._config.patterns);s(this,"prefix",this._config.prefix);s(this,"suffix",this._config.suffix);s(this,"thousandSeparator",this._config.thousandSeparator);s(this,"decimalMarker",this._config.decimalMarker);s(this,"customPattern");s(this,"showMaskTyped",this._config.showMaskTyped);s(this,"placeHolderCharacter",this._config.placeHolderCharacter);s(this,"validation",this._config.validation);s(this,"separatorLimit",this._config.separatorLimit);s(this,"allowNegativeNumbers",this._config.allowNegativeNumbers);s(this,"leadZeroDateTime",this._config.leadZeroDateTime);s(this,"leadZero",this._config.leadZero);s(this,"apm",this._config.apm);s(this,"inputTransformFn",this._config.inputTransformFn);s(this,"outputTransformFn",this._config.outputTransformFn);s(this,"keepCharacterPositions",this._config.keepCharacterPositions);s(this,"_shift",new Set);s(this,"plusOnePosition",!1);s(this,"maskExpression","");s(this,"actualValue","");s(this,"showKeepCharacterExp","");s(this,"shownMaskExpression","");s(this,"deletedSpecialCharacter",!1);s(this,"ipError");s(this,"cpfCnpjError");s(this,"_formatWithSeparators",(n,r,i,o)=>{var g;let l=[],u="";if(Array.isArray(i)){let w=new RegExp(i.map(x=>"[\\^$.|?*+()".indexOf(x)>=0?`\\${x}`:x).join("|"));l=n.split(w),u=((g=n.match(w))==null?void 0:g[0])??T.EMPTY_STRING}else l=n.split(i),u=i;let c=l.length>1?`${u}${l[1]}`:T.EMPTY_STRING,d=l[0]??T.EMPTY_STRING,m=this.separatorLimit.replace(/\s/g,T.EMPTY_STRING);m&&+m&&(d[0]===T.MINUS?d=`-${d.slice(1,d.length).slice(0,m.length)}`:d=d.slice(0,m.length));let v=/(\d+)(\d{3})/;for(;r&&v.test(d);)d=d.replace(v,"$1"+r+"$2");return typeof o>"u"?d+c:o===0?d:d+c.substring(0,o+1)});s(this,"percentage",n=>{let r=n.replace(",","."),i=Number(this.allowNegativeNumbers&&n.includes(T.MINUS)?r.slice(1,n.length):r);return!isNaN(i)&&i>=0&&i<=100});s(this,"getPrecision",n=>{let r=n.split(T.DOT);return r.length>1?Number(r[r.length-1]):1/0});s(this,"checkAndRemoveSuffix",n=>{var r,i,o,l;for(let u=((r=this.suffix)==null?void 0:r.length)-1;u>=0;u--){let c=this.suffix.substring(u,(i=this.suffix)==null?void 0:i.length);if(n.includes(c)&&u!==((o=this.suffix)==null?void 0:o.length)-1&&(u-1<0||!n.includes(this.suffix.substring(u-1,(l=this.suffix)==null?void 0:l.length))))return n.replace(c,T.EMPTY_STRING)}return n});s(this,"checkInputPrecision",(n,r,i)=>{var u;let o=n,l=i;if(r<1/0){Array.isArray(l)&&(l=l.find(g=>g!==this.thousandSeparator)||l[0]);let c=new RegExp(this._charToRegExpExpression(l)+`\\d{${r}}.*$`),d=o.match(c),m=(d&&((u=d[0])==null?void 0:u.length))??0;if(m-1>r){let v=m-1-r;o=o.substring(0,o.length-v)}r===0&&this._compareOrIncludes(o[o.length-1],l,this.thousandSeparator)&&(o=o.substring(0,o.length-1))}return o})}applyMaskWithPattern(n,r){let[i,o]=r;return this.customPattern=o,this.applyMask(n,i)}applyMask(n,r,i=0,o=!1,l=!1,u=()=>{}){var _t,tt,Ct;if(!r||typeof n!="string")return T.EMPTY_STRING;let c=0,d="",m=!1,v=!1,g=1,w=!1,x=n,k=i;x.slice(0,this.prefix.length)===this.prefix&&(x=x.slice(this.prefix.length,x.length)),this.suffix&&x.length>0&&(x=this.checkAndRemoveSuffix(x)),x==="("&&this.prefix&&(x="");let D=x.toString().split(T.EMPTY_STRING);if(this.allowNegativeNumbers&&x.slice(c,c+1)===T.MINUS&&(d+=x.slice(c,c+1)),r===T.IP){let X=x.split(T.DOT);this.ipError=this._validIP(X),r="099.099.099.099"}let N=[];for(let X=0;X<x.length;X++)(_t=x[X])!=null&&_t.match("\\d")&&N.push(x[X]??T.EMPTY_STRING);if(r===T.CPF_CNPJ&&(this.cpfCnpjError=N.length!==11&&N.length!==14,N.length>11?r="00.000.000/0000-00":r="000.000.000-00"),r.startsWith(T.PERCENT)){if(x.match("[a-z]|[A-Z]")||x.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!l){x=this._stripToDecimal(x);let xe=this.getPrecision(r);x=this.checkInputPrecision(x,xe,this.decimalMarker)}let X=typeof this.decimalMarker=="string"?this.decimalMarker:T.DOT;if(x.indexOf(X)>0&&!this.percentage(x.substring(0,x.indexOf(X)))){let xe=x.substring(0,x.indexOf(X)-1);this.allowNegativeNumbers&&x.slice(c,c+1)===T.MINUS&&!l&&(xe=x.substring(0,x.indexOf(X))),x=`${xe}${x.substring(x.indexOf(X),x.length)}`}let G="";this.allowNegativeNumbers&&x.slice(c,c+1)===T.MINUS?G=`${T.MINUS}${x.slice(c+1,c+x.length)}`:G=x,this.percentage(G)?d=this._splitPercentZero(x):d=this._splitPercentZero(x.substring(0,x.length-1))}else if(r.startsWith(T.SEPARATOR)){(x.match("[wа-яА-Я]")||x.match("[ЁёА-я]")||x.match("[a-z]|[A-Z]")||x.match(/[-@#!$%\\^&*()_£¬'+|~=`{}\]:";<>.?/]/)||x.match("[^A-Za-z0-9,]"))&&(x=this._stripToDecimal(x));let X=this.getPrecision(r),G=Array.isArray(this.decimalMarker)?this.thousandSeparator===T.DOT?T.COMMA:T.DOT:this.decimalMarker;if(X===0?x=this.allowNegativeNumbers?x.length>2&&x[0]===T.MINUS&&x[1]===T.NUMBER_ZERO&&x[2]!==this.thousandSeparator&&x[2]!==T.COMMA&&x[2]!==T.DOT?"-"+x.slice(2,x.length):x[0]===T.NUMBER_ZERO&&x.length>1&&x[1]!==this.thousandSeparator&&x[1]!==T.COMMA&&x[1]!==T.DOT?x.slice(1,x.length):x:x.length>1&&x[0]===T.NUMBER_ZERO&&x[1]!==this.thousandSeparator&&x[1]!==T.COMMA&&x[1]!==T.DOT?x.slice(1,x.length):x:(x[0]===G&&x.length>1&&(x=T.NUMBER_ZERO+x.slice(0,x.length+1),this.plusOnePosition=!0),x[0]===T.NUMBER_ZERO&&x[1]!==G&&x[1]!==this.thousandSeparator&&(x=x.length>1?x.slice(0,1)+G+x.slice(1,x.length+1):x,this.plusOnePosition=!0),this.allowNegativeNumbers&&x[0]===T.MINUS&&(x[1]===G||x[1]===T.NUMBER_ZERO)&&(x=x[1]===G&&x.length>2?x.slice(0,1)+T.NUMBER_ZERO+x.slice(1,x.length):x[1]===T.NUMBER_ZERO&&x.length>2&&x[2]!==G?x.slice(0,2)+G+x.slice(2,x.length):x,this.plusOnePosition=!0)),l){let Me=x.slice(this._findFirstNonZeroDigitIndex(x),x.length),ze=x[k]===T.NUMBER_ZERO||x[k]===G,ft=x[0]===T.NUMBER_ZERO,zn=x[0]===T.MINUS,nt=x[0]===this.thousandSeparator,Xt=x[1]===G,Ot=x[1]===T.NUMBER_ZERO,Xn=x[2]===G;ft&&Xt&&ze&&k<2&&(x=Me),zn&&Ot&&Xn&&ze&&k<3&&(x=T.MINUS+Me),Me!==T.MINUS&&(k===0&&(ft||nt)||this.allowNegativeNumbers&&k===1&&zn&&!Ot)&&(x=zn?T.MINUS+Me:Me)}let xe=this._charToRegExpExpression(this.thousandSeparator),F='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(xe,"");if(Array.isArray(this.decimalMarker))for(let Me of this.decimalMarker)F=F.replace(this._charToRegExpExpression(Me),T.EMPTY_STRING);else F=F.replace(this._charToRegExpExpression(this.decimalMarker),"");let H=new RegExp("["+F+"]");x.match(H)&&(x=x.substring(0,x.length-1)),x=this.checkInputPrecision(x,X,this.decimalMarker);let W=x.replace(new RegExp(xe,"g"),"");d=this._formatWithSeparators(W,this.thousandSeparator,this.decimalMarker,X);let Ie=d.indexOf(T.COMMA)-x.indexOf(T.COMMA),Xe=d.length-x.length,Qt=l&&d.length<n.length&&this.separatorLimit;if((d[k-1]===this.thousandSeparator||d[k-this.prefix.length])&&this.prefix&&l)k=k-1;else if(Xe>0&&d[k]!==this.thousandSeparator||Qt){v=!0;let Me=0;do this._shift.add(k+Me),Me++;while(Me<Xe)}else d[k-1]===this.thousandSeparator||Xe===-4||Xe===-3||d[k]===this.thousandSeparator?(this._shift.clear(),this._shift.add(k-1)):Ie!==0&&k>0&&!(d.indexOf(T.COMMA)>=k&&k>3)||!(d.indexOf(T.DOT)>=k&&k>3)&&Xe<=0?(this._shift.clear(),v=!0,g=Xe,k+=Xe,this._shift.add(k)):this._shift.clear()}else for(let X=0,G=D[0];X<D.length&&c!==r.length;X++,G=D[X]??T.EMPTY_STRING){let xe=T.SYMBOL_STAR in this.patterns;if(this._checkSymbolMask(G,r[c]??T.EMPTY_STRING)&&r[c+1]===T.SYMBOL_QUESTION)d+=G,c+=2;else if(r[c+1]===T.SYMBOL_STAR&&m&&this._checkSymbolMask(G,r[c+2]??T.EMPTY_STRING))d+=G,c+=3,m=!1;else if(this._checkSymbolMask(G,r[c]??T.EMPTY_STRING)&&r[c+1]===T.SYMBOL_STAR&&!xe)d+=G,m=!0;else if(r[c+1]===T.SYMBOL_QUESTION&&this._checkSymbolMask(G,r[c+2]??T.EMPTY_STRING))d+=G,c+=3;else if(this._checkSymbolMask(G,r[c]??T.EMPTY_STRING)){if(r[c]===T.HOURS&&(this.apm?Number(G)>9:Number(G)>2)){k=this.leadZeroDateTime?k:k+1,c+=1,this._shiftStep(r,c,D.length),X--,this.leadZeroDateTime&&(d+="0");continue}if(r[c]===T.HOUR&&(this.apm?d.length===1&&Number(d)>1||d==="1"&&Number(G)>2||x.slice(c-1,c).length===1&&Number(x.slice(c-1,c))>2||x.slice(c-1,c)==="1"&&Number(G)>2:d==="2"&&Number(G)>3||(d.slice(c-2,c)==="2"||d.slice(c-3,c)==="2"||d.slice(c-4,c)==="2"||d.slice(c-1,c)==="2")&&Number(G)>3&&c>10)){k=k+1,c+=1,X--;continue}if((r[c]===T.MINUTE||r[c]===T.SECOND)&&Number(G)>5){k=this.leadZeroDateTime?k:k+1,c+=1,this._shiftStep(r,c,D.length),X--,this.leadZeroDateTime&&(d+="0");continue}let F=31,H=x[c],W=x[c+1],Ie=x[c+2],Xe=x[c-1],Qt=x[c-2],Me=x.slice(c-3,c-1),ze=x.slice(c-1,c+1),ft=x.slice(c,c+2),zn=x.slice(c-2,c);if(r[c]===T.DAY){let nt=r.slice(0,2)===T.MONTHS,Xt=r.slice(0,2)===T.MONTHS&&this.specialCharacters.includes(Qt);if(Number(G)>3&&this.leadZeroDateTime||!nt&&(Number(ft)>F||Number(ze)>F||this.specialCharacters.includes(W))||(Xt?Number(ze)>F||!this.specialCharacters.includes(H)&&this.specialCharacters.includes(Ie)||this.specialCharacters.includes(H):Number(ft)>F||this.specialCharacters.includes(W)&&!l)){k=this.leadZeroDateTime?k:k+1,c+=1,this._shiftStep(r,c,D.length),X--,this.leadZeroDateTime&&(d+="0");continue}}if(r[c]===T.MONTH){let nt=c===0&&(Number(G)>2||Number(ft)>12||this.specialCharacters.includes(W)&&!l),Xt=r.slice(c+2,c+3),Ot=Me.includes(Xt)&&r.includes("d0")&&(this.specialCharacters.includes(Qt)&&Number(ze)>12&&!this.specialCharacters.includes(H)||this.specialCharacters.includes(H)),Xn=Number(Me)<=F&&!this.specialCharacters.includes(Me)&&this.specialCharacters.includes(Xe)&&(Number(ft)>12||this.specialCharacters.includes(W)),$a=Number(ft)>12&&c===5||this.specialCharacters.includes(W)&&c===5,vs=Number(Me)>F&&!this.specialCharacters.includes(Me)&&!this.specialCharacters.includes(zn)&&Number(zn)>12&&r.includes("d0"),bs=Number(Me)<=F&&!this.specialCharacters.includes(Me)&&!this.specialCharacters.includes(Xe)&&Number(ze)>12;if(Number(G)>1&&this.leadZeroDateTime||nt||Ot||bs||vs||Xn||$a&&!this.leadZeroDateTime){k=this.leadZeroDateTime?k:k+1,c+=1,this._shiftStep(r,c,D.length),X--,this.leadZeroDateTime&&(d+="0");continue}}d+=G,c++}else this.specialCharacters.includes(G)&&r[c]===G?(d+=G,c++):this.specialCharacters.indexOf(r[c]??T.EMPTY_STRING)!==-1?(d+=r[c],c++,this._shiftStep(r,c,D.length),X--):r[c]===T.NUMBER_NINE&&this.showMaskTyped?this._shiftStep(r,c,D.length):this.patterns[r[c]??T.EMPTY_STRING]&&((tt=this.patterns[r[c]??T.EMPTY_STRING])!=null&&tt.optional)?(D[c]&&r!=="099.099.099.099"&&r!=="000.000.000-00"&&r!=="00.000.000/0000-00"&&!r.match(/^9+\.0+$/)&&!((Ct=this.patterns[r[c]??T.EMPTY_STRING])!=null&&Ct.optional)&&(d+=D[c]),r.includes(T.NUMBER_NINE+T.SYMBOL_STAR)&&r.includes(T.NUMBER_ZERO+T.SYMBOL_STAR)&&c++,c++,X--):this.maskExpression[c+1]===T.SYMBOL_STAR&&this._findSpecialChar(this.maskExpression[c+2]??T.EMPTY_STRING)&&this._findSpecialChar(G)===this.maskExpression[c+2]&&m||this.maskExpression[c+1]===T.SYMBOL_QUESTION&&this._findSpecialChar(this.maskExpression[c+2]??T.EMPTY_STRING)&&this._findSpecialChar(G)===this.maskExpression[c+2]&&m?(c+=3,d+=G):this.showMaskTyped&&this.specialCharacters.indexOf(G)<0&&G!==this.placeHolderCharacter&&this.placeHolderCharacter.length===1&&(w=!0)}d.length+1===r.length&&this.specialCharacters.indexOf(r[r.length-1]??T.EMPTY_STRING)!==-1&&(d+=r[r.length-1]);let O=k+1;for(;this._shift.has(O);)g++,O++;let J=o&&!r.startsWith(T.SEPARATOR)?c:this._shift.has(k)?g:0;w&&J--,u(J,v),g<0&&this._shift.clear();let le=!1;l&&(le=D.every(X=>this.specialCharacters.includes(X)));let ye=`${this.prefix}${le?T.EMPTY_STRING:d}${this.showMaskTyped?"":this.suffix}`;d.length===0&&(ye=this.dropSpecialCharacters?`${d}`:`${this.prefix}${d}`);let Nt=x.length===1&&this.specialCharacters.includes(r[0])&&x!==r[0];if(!this._checkSymbolMask(x,r[1])&&Nt)return"";if(d.includes(T.MINUS)&&this.prefix&&this.allowNegativeNumbers){if(l&&d===T.MINUS)return"";ye=`${T.MINUS}${this.prefix}${d.split(T.MINUS).join(T.EMPTY_STRING)}${this.suffix}`}return ye}_findDropSpecialChar(n){return Array.isArray(this.dropSpecialCharacters)?this.dropSpecialCharacters.find(r=>r===n):this._findSpecialChar(n)}_findSpecialChar(n){return this.specialCharacters.find(r=>r===n)}_checkSymbolMask(n,r){var i,o;return this.patterns=this.customPattern?this.customPattern:this.patterns,(((i=this.patterns[r])==null?void 0:i.pattern)&&((o=this.patterns[r])==null?void 0:o.pattern.test(n)))??!1}_stripToDecimal(n){return n.split(T.EMPTY_STRING).filter((r,i)=>{let o=typeof this.decimalMarker=="string"?r===this.decimalMarker:this.decimalMarker.includes(r);return r.match("^-?\\d")||r===this.thousandSeparator||o||r===T.MINUS&&i===0&&this.allowNegativeNumbers}).join(T.EMPTY_STRING)}_charToRegExpExpression(n){return n&&(n===" "?"\\s":"[\\^$.|?*+()".indexOf(n)>=0?`\\${n}`:n)}_shiftStep(n,r,i){let o=/[*?]/g.test(n.slice(0,r))?i:r;this._shift.add(o+this.prefix.length||0)}_compareOrIncludes(n,r,i){return Array.isArray(r)?r.filter(o=>o!==i).includes(n):n===r}_validIP(n){return!(n.length===4&&!n.some((r,i)=>n.length!==i+1?r===T.EMPTY_STRING||Number(r)>255:r===T.EMPTY_STRING||Number(r.substring(0,3))>255))}_splitPercentZero(n){if(n===T.MINUS&&this.allowNegativeNumbers)return n;let r=typeof this.decimalMarker=="string"?n.indexOf(this.decimalMarker):n.indexOf(T.DOT),i=this.allowNegativeNumbers&&n.includes(T.MINUS)?"-":"";if(r===-1){let o=parseInt(i?n.slice(1,n.length):n,10);return isNaN(o)?T.EMPTY_STRING:`${i}${o}`}else{let o=parseInt(n.replace("-","").substring(0,r),10),l=n.substring(r+1),u=isNaN(o)?"":o.toString(),c=typeof this.decimalMarker=="string"?this.decimalMarker:T.DOT;return u===T.EMPTY_STRING?T.EMPTY_STRING:`${i}${u}${c}${l}`}}_findFirstNonZeroDigitIndex(n){for(let r=0;r<n.length;r++){let i=n[r];if(i&&i>="1"&&i<="9")return r}return-1}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵprov",V({token:t,factory:t.ɵfac}));let e=t;return e})(),Fae=(()=>{const t=class t extends Lae{constructor(){super(...arguments);s(this,"isNumberValue",!1);s(this,"maskIsShown","");s(this,"selStart",null);s(this,"selEnd",null);s(this,"writingValue",!1);s(this,"maskChanged",!1);s(this,"_maskExpressionArray",[]);s(this,"triggerOnMaskChange",!1);s(this,"_previousValue","");s(this,"_currentValue","");s(this,"_emitValue",!1);s(this,"_start");s(this,"_end");s(this,"onChange",r=>{});s(this,"_elementRef",S(Qe,{optional:!0}));s(this,"document",S(Fe));s(this,"_config",S(fm));s(this,"_renderer",S(Kr,{optional:!0}))}applyMask(r,i,o=0,l=!1,u=!1,c=()=>{}){if(!i)return r!==this.actualValue?this.actualValue:r;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():T.EMPTY_STRING,this.maskExpression===T.IP&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(r||T.HASH)),this.maskExpression===T.CPF_CNPJ&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(r||T.HASH)),!r&&this.showMaskTyped)return this.formControlResult(this.prefix),`${this.prefix}${this.maskIsShown}${this.suffix}`;let d=r&&typeof this.selStart=="number"?r[this.selStart]??T.EMPTY_STRING:T.EMPTY_STRING,m="",v=o;if(this.hiddenInput!==null&&!this.writingValue){let k=r&&r.length===1?r.split(T.EMPTY_STRING):this.actualValue.split(T.EMPTY_STRING);typeof this.selStart=="object"&&typeof this.selEnd=="object"?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):r!==T.EMPTY_STRING&&k.length?typeof this.selStart=="number"&&typeof this.selEnd=="number"&&(r.length>k.length?k.splice(this.selStart,0,d):r.length<k.length&&(k.length-r.length===1?u?k.splice(this.selStart-1,1):k.splice(r.length-1,1):k.splice(this.selStart,this.selEnd-this.selStart))):k=[],this.showMaskTyped&&!this.hiddenInput&&(m=this.removeMask(r)),m=this.actualValue.length&&k.length<=r.length?this.shiftTypedSymbols(k.join(T.EMPTY_STRING)):r}if(l&&(this.hiddenInput||!this.hiddenInput)&&(m=r),u&&this.specialCharacters.indexOf(this.maskExpression[v]??T.EMPTY_STRING)!==-1&&this.showMaskTyped&&!this.prefix&&(m=this._currentValue),this.deletedSpecialCharacter&&v&&(this.specialCharacters.includes(this.actualValue.slice(v,v+1))?v=v+1:i.slice(v-1,v+1)!==T.MONTHS&&(v=v-2),this.deletedSpecialCharacter=!1),this.showMaskTyped&&this.placeHolderCharacter.length===1&&!this.leadZeroDateTime&&(m=this.removeMask(r)),this.maskChanged?m=r:m=m&&m.length?m:r,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!l&&!this.writingValue){let k=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(k),this.actualValue?this.actualValue:`${this.prefix}${this.maskIsShown}${this.suffix}`}let g=super.applyMask(m,i,v,l,u,c);if(this.actualValue=this.getActualValue(g),this.thousandSeparator===T.DOT&&this.decimalMarker===T.DOT&&(this.decimalMarker=T.COMMA),this.maskExpression.startsWith(T.SEPARATOR)&&this.dropSpecialCharacters===!0&&(this.specialCharacters=this.specialCharacters.filter(k=>!this._compareOrIncludes(k,this.decimalMarker,this.thousandSeparator))),(g||g==="")&&(this._previousValue=this._currentValue,this._currentValue=g,this._emitValue=this._previousValue!==this._currentValue||this.maskChanged||this.writingValue||this._previousValue===this._currentValue&&l),this._emitValue&&(this.writingValue&&this.triggerOnMaskChange?requestAnimationFrame(()=>this.formControlResult(g)):this.formControlResult(g)),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?u?this.hideInput(g,this.maskExpression):`${this.hideInput(g,this.maskExpression)}${this.maskIsShown.slice(g.length)}`:g;let w=g.length,x=`${this.prefix}${this.maskIsShown}${this.suffix}`;if(this.maskExpression.includes(T.HOURS)){let k=this._numberSkipedSymbols(g);return`${g}${x.slice(w+k)}`}else if(this.maskExpression===T.IP||this.maskExpression===T.CPF_CNPJ)return`${g}${x}`;return`${g}${x.slice(w)}`}_numberSkipedSymbols(r){let i=/(^|\D)(\d\D)/g,o=i.exec(r),l=0;for(;o!=null;)l+=1,o=i.exec(r);return l}applyValueChanges(r,i,o,l=()=>{}){var c;let u=(c=this._elementRef)==null?void 0:c.nativeElement;u&&(u.value=this.applyMask(u.value,this.maskExpression,r,i,o,l),u!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(r,i){return r.split(T.EMPTY_STRING).map((o,l)=>{var u,c;return this.patterns&&this.patterns[i[l]??T.EMPTY_STRING]&&((u=this.patterns[i[l]??T.EMPTY_STRING])!=null&&u.symbol)?(c=this.patterns[i[l]??T.EMPTY_STRING])==null?void 0:c.symbol:o}).join(T.EMPTY_STRING)}getActualValue(r){let i=r.split(T.EMPTY_STRING).filter((o,l)=>{let u=this.maskExpression[l]??T.EMPTY_STRING;return this._checkSymbolMask(o,u)||this.specialCharacters.includes(u)&&o===u});return i.join(T.EMPTY_STRING)===r?i.join(T.EMPTY_STRING):r}shiftTypedSymbols(r){let i="";return(r&&r.split(T.EMPTY_STRING).map((o,l)=>{if(this.specialCharacters.includes(r[l+1]??T.EMPTY_STRING)&&r[l+1]!==this.maskExpression[l+1])return i=o,r[l+1];if(i.length){let u=i;return i=T.EMPTY_STRING,u}return o})||[]).join(T.EMPTY_STRING)}numberToString(r){return!r&&r!==0||this.maskExpression.startsWith(T.SEPARATOR)&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith(T.SEPARATOR)&&this.separatorLimit.length>14&&String(r).length>14?String(r):Number(r).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace(`/${T.MINUS}/`,T.MINUS)}showMaskInInput(r){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}else if(this.showMaskTyped){if(r){if(this.maskExpression===T.IP)return this._checkForIp(r);if(this.maskExpression===T.CPF_CNPJ)return this._checkForCpfCnpj(r)}return this.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){var i;let r=(i=this._elementRef)==null?void 0:i.nativeElement;r&&this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==r.value.replace(this.placeHolderCharacter,T.EMPTY_STRING).length&&(this.formElementProperty=["value",T.EMPTY_STRING],this.applyMask("",this.maskExpression))}set formElementProperty([r,i]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>{var o,l;return(l=this._renderer)==null?void 0:l.setProperty((o=this._elementRef)==null?void 0:o.nativeElement,r,i)})}checkDropSpecialCharAmount(r){return r.split(T.EMPTY_STRING).filter(i=>this._findDropSpecialChar(i)).length}removeMask(r){return this._removeMask(this._removeSuffix(this._removePrefix(r)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(r){if(r===T.HASH)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;let i=[];for(let o=0;o<r.length;o++){let l=r[o]??T.EMPTY_STRING;l&&l.match("\\d")&&i.push(l)}return i.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>3&&i.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>6&&i.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(r){let i=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,o=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if(r===T.HASH)return i;let l=[];for(let u=0;u<r.length;u++){let c=r[u]??T.EMPTY_STRING;c&&c.match("\\d")&&l.push(c)}return l.length<=3?i.slice(l.length,i.length):l.length>3&&l.length<=6?i.slice(l.length+1,i.length):l.length>6&&l.length<=9?i.slice(l.length+2,i.length):l.length>9&&l.length<11?i.slice(l.length+3,i.length):l.length===11?"":l.length===12?r.length===17?o.slice(16,o.length):o.slice(15,o.length):l.length>12&&l.length<=14?o.slice(l.length+4,o.length):""}_getActiveElement(r=this.document){var o;let i=(o=r==null?void 0:r.activeElement)==null?void 0:o.shadowRoot;return i!=null&&i.activeElement?this._getActiveElement(i):r.activeElement}formControlResult(r){if(this.writingValue&&!r){this.onChange("");return}if(this.writingValue||!this.triggerOnMaskChange&&this.maskChanged){this.triggerOnMaskChange&&this.maskChanged&&this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(r)))))),this.maskChanged=!1;return}Array.isArray(this.dropSpecialCharacters)?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeMask(this._removeSuffix(this._removePrefix(r)),this.dropSpecialCharacters))))):this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===r?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(r)))))):this.onChange(this.outputTransformFn(this._toNumber(r)))}_toNumber(r){if(!this.isNumberValue||r===T.EMPTY_STRING||this.maskExpression.startsWith(T.SEPARATOR)&&(this.leadZero||!this.dropSpecialCharacters))return r;if(String(r).length>14&&this.maskExpression.startsWith(T.SEPARATOR))return String(r);let i=Number(r);if(this.maskExpression.startsWith(T.SEPARATOR)&&Number.isNaN(i)){let o=String(r).replace(",",".");return Number(o)}return Number.isNaN(i)?r:i}_removeMask(r,i){return this.maskExpression.startsWith(T.PERCENT)&&r.includes(T.DOT)?r:r&&r.replace(this._regExpForRemove(i),T.EMPTY_STRING)}_removePrefix(r){return this.prefix?r&&r.replace(this.prefix,T.EMPTY_STRING):r}_removeSuffix(r){return this.suffix?r&&r.replace(this.suffix,T.EMPTY_STRING):r}_retrieveSeparatorValue(r){let i=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(o=>this.dropSpecialCharacters.includes(o)):this.specialCharacters;return!this.deletedSpecialCharacter&&this._checkPatternForSpace()&&r.includes(T.WHITE_SPACE)&&this.maskExpression.includes(T.SYMBOL_STAR)&&(i=i.filter(o=>o!==T.WHITE_SPACE)),this._removeMask(r,i)}_regExpForRemove(r){return new RegExp(r.map(i=>`\\${i}`).join("|"),"gi")}_replaceDecimalMarkerToDot(r){let i=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return r.replace(this._regExpForRemove(i),T.DOT)}_checkSymbols(r){let i=r;if(i===T.EMPTY_STRING)return i;this.maskExpression.startsWith(T.PERCENT)&&this.decimalMarker===T.COMMA&&(i=i.replace(T.COMMA,T.DOT));let o=this._retrieveSeparatorPrecision(this.maskExpression),l=this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(i));return this.isNumberValue&&o?i===this.decimalMarker?null:l.length>14?String(l):this._checkPrecision(this.maskExpression,l):l}_checkPatternForSpace(){var r,i,o;for(let l in this.patterns)if(this.patterns[l]&&((r=this.patterns[l])!=null&&r.hasOwnProperty("pattern"))){let u=(i=this.patterns[l])==null?void 0:i.pattern.toString(),c=(o=this.patterns[l])==null?void 0:o.pattern;if(u!=null&&u.includes(T.WHITE_SPACE)&&(c!=null&&c.test(this.maskExpression)))return!0}return!1}_retrieveSeparatorPrecision(r){let i=r.match(new RegExp("^separator\\.([^d]*)"));return i?Number(i[1]):null}_checkPrecision(r,i){let o=this.getPrecision(r),l=i;return r.indexOf("2")>0||this.leadZero&&Number(o)>0?(this.decimalMarker===T.COMMA&&this.leadZero&&(l=l.replace(",",".")),this.leadZero?Number(l).toFixed(Number(o)):Number(l).toFixed(2)):this.numberToString(l)}_repeatPatternSymbols(r){return r.match(/{[0-9]+}/)&&r.split(T.EMPTY_STRING).reduce((i,o,l)=>{if(this._start=o===T.CURLY_BRACKETS_LEFT?l:this._start,o!==T.CURLY_BRACKETS_RIGHT)return this._findSpecialChar(o)?i+o:i;this._end=l;let u=Number(r.slice(this._start+1,this._end)),c=new Array(u+1).join(r[this._start-1]);if(r.slice(0,this._start).length>1&&r.includes(T.LETTER_S)){let d=r.slice(0,this._start-1);return d.includes(T.CURLY_BRACKETS_LEFT)?i+c:d+i+c}else return i+c},"")||r}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}};s(t,"ɵfac",(()=>{let r;return function(i){return(r||(r=et(t)))(i||t)}})()),s(t,"ɵprov",V({token:t,factory:t.ɵfac}));let e=t;return e})();function jae(){let e=S(yw),t=S(bw);return t instanceof Function?ue(ue({},e),t()):ue(ue({},e),t)}function zae(e){return[{provide:bw,useValue:e},{provide:yw,useValue:Pae},{provide:fm,useFactory:jae},Fae]}function Vae(e){return Oh(zae(e))}function Bae(e){var t,a;return((t=e==null?void 0:e.children)==null?void 0:t.length)>0?e.children[0].ssin:((a=e==null?void 0:e.mandators)==null?void 0:a.length)>0?e.mandators[0].ssin:e.ssin}var _w=(()=>{const t=class t{get isProfessional(){return this._isProfessional}set isProfessional(n){this._isProfessional=n}get patientSsin(){return this._patientSsin}set patientSsin(n){this._patientSsin=n}get isOfflineDataStorageEnabled(){return this._offlineDataStorageEnabled}set isOfflineDataStorageEnabled(n){this._offlineDataStorageEnabled=n}get isOfflineAuthenticated(){return this._isOfflineAuthenticated}set isOfflineAuthenticated(n){this._isOfflineAuthenticated=n}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Hae="4.0",ah=Hae,Ja=(e=>(e.DEV="dev",e.DEMO="demo",e.INT="int",e.ACC="acc",e.PROD="prod",e))(Ja||{}),qae=(()=>{const t=class t{constructor(){s(this,"version");s(this,"language");s(this,"configName");s(this,"services");s(this,"onPrint",new it);s(this,"_ngInitDone",!1);s(this,"correctlySetup",!1);s(this,"extraRequiredFields",[])}validateVersion(){let n=ah.split(".").map(i=>parseInt(i)),r=(this.version||"").split(".").map(i=>parseInt(i));return r.length!==2?(console.error(`[BaseWebComponent] The given version (${this.version}) has the wrong format <major>.<minor>!`),!1):r[0]!==n[0]?(console.error(`[BaseWebComponent] The given version (${this.version})'s major is not compatible with this component's major version (${ah})!`),!1):!0}validateInputs(){let n=this,r=["language","configName","services","version",...this.extraRequiredFields],{missingFields:i,presentFields:o}=r.reduce((l,u)=>(n[u]===void 0?l.missingFields.push(u):l.presentFields.push(u),l),{missingFields:[],presentFields:[]});return i.length?(console.log(`[BaseWebComponent] Waiting for missing inputs: ${i.join(", ")}; Present inputs: ${o.join(", ")}`),!1):(console.log("[BaseWebComponent] All required inputs are present"),this.validateVersion()?this.services.cacheDataStorage==null?(console.error("[BaseWebComponent] The given services input does not contain a cache service!"),!1):this.services.getAccessToken==null?(console.error("[BaseWebComponent] The given services input does not contain a getAccessToken() function!"),!1):this.services.registerRefreshCallback==null?(console.error("[BaseWebComponent] The given services input does not contain a registerRefreshCallback() function!"),!1):!0:!1)}ngOnChanges(n){this.correctlySetup=this.validateInputs(),this.correctlySetup&&(this._ngInitDone?this.onPropsChanged(n):(this.onInitialized(),this._ngInitDone=!0))}isCorrectlySetup(){return this.correctlySetup}onInitialized(){}onPropsChanged(n){}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵcmp",Oe({type:t,selectors:[["ng-component"]],inputs:{version:"version",language:"language",configName:"configName",services:"services"},outputs:{onPrint:"onPrint"},features:[Ur],decls:0,vars:0,template:function(n,r){},encapsulation:2}));let e=t;return e})(),ww=class{constructor(e,t,a,n,r){s(this,"logId");s(this,"services");s(this,"key");s(this,"cacheFetchingKey");s(this,"offlineDataStorageEnabled");s(this,"isOfflineAuthenticated");this.logId=r,this.services=e,this.key=t,this.cacheFetchingKey=`fetching-${this.key}`,this.offlineDataStorageEnabled=n,this.isOfflineAuthenticated=a}fetchBackendData(){return At(this,null,function*(){let e=yield this.getDataFromBackend();return e&&(yield this.updateStoredData(e)),e})}fetchOfflineData(){return At(this,null,function*(){if(this.services.offlineDataStorage==null)return null;let e=yield this.services.offlineDataStorage.get(this.key);return e==null&&this.logId&&console.log("[%s] Offline data not found for key [%s]",this.logId,this.key),this.logId&&console.log("[%s] Found valid data in offline store for key [%s]: [%s]",this.logId,this.key,e),this.storeDataInCache(e),e})}storeDataOffline(e){return At(this,null,function*(){this.offlineDataStorageEnabled&&this.services.offlineDataStorage&&e&&(yield this.services.offlineDataStorage.set(this.key,e),this.logId&&console.log("[%s] Updated data in the offline store",this.logId))})}storeDataInCache(e){e&&(this.logId&&console.log("[%s] updating data in cache at [%s]",this.logId,this.key),this.services.cacheDataStorage.set(this.key,e))}getDataFromCache(){return At(this,null,function*(){let e=t=>{this.services.cacheDataStorage.get(this.cacheFetchingKey)?(this.logId&&console.log("[%s] Another WC is fetching data... Waiting a bit.",this.logId),setTimeout(()=>{e(t)},500)):t(this.services.cacheDataStorage.get(this.key))};return this.logId&&console.log("[%s] Trying to get data from cache...",this.logId),new Promise(t=>{e(t)})})}getData(e=!1){return At(this,null,function*(){let t=null;if(this.isOfflineAuthenticated){if(this.offlineDataStorageEnabled&&this.services.offlineDataStorage)return yield this.fetchOfflineData();throw new Error(`[${this.logId}] Trying to access offline store while it is not present or not enabled`)}if(!e){if(t=yield this.getDataFromCache(),t)return this.logId&&console.log("[%s] Data pulled from cache: ",this.logId,t),t;this.logId&&console.log("[%s] No data in cache",this.logId)}try{return this.services.cacheDataStorage.set(this.cacheFetchingKey,!0),yield this.fetchBackendData()}finally{this.services.cacheDataStorage.remove(this.cacheFetchingKey)}})}updateStoredData(e){return At(this,null,function*(){this.storeDataInCache(e),yield this.storeDataOffline(e)})}},$ae=()=>{let e=["WebView","(iPhone|iPod|iPad)(?!.*Safari)","Android.*(;\\s+wv|Version/\\d.\\d\\s+Chrome/\\d+(\\.0){3})","Linux; U; Android"],t=new RegExp("("+e.join("|")+")","ig");return!!navigator.userAgent.match(t)},$o=function(e){return e.DIARY_NOTES="diarynotes",e.PRESCRIPTIONS="prescriptions",e.MEDICATION_SCHEME="medicationScheme",e.MEDICATION_SCHEME_PAGE_STATE="medicationSchemePageState",e.DELIVERED_MEDICATIONS="deliveredMedications",e.USER_INFOS="userInfos",e.MANDATE_TYPE="mandateType",e}($o||{}),er=function(e){return e.CNK="cnk",e.INN="inn",e.VMP="vmp",e.EAN="ean",e.COMPOUND="compound",e}(er||{}),h=function(e){return e.NL="nl",e.FR="fr",e.DE="de",e.EN="en",e}(h||{});h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE;var Zs={getAuthorizationHeader:e=>`Bearer ${e}`,getUserType:e=>e.isProfessional?"professional":"patient",clientType:{webApp:"webapp",mobileApp:"mobapp"}},Vc={authorization:"Authorization",userType:"user-type",clientType:"client-type"},fo=class extends Error{};fo.prototype.name="InvalidTokenError";function Uae(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,a)=>{let n=a.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function Gae(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Uae(t)}catch{return atob(t)}}function Zae(e,t){if(typeof e!="string")throw new fo("Invalid token specified: must be a string");t||(t={});let a=t.header===!0?0:1,n=e.split(".")[a];if(typeof n!="string")throw new fo(`Invalid token specified: missing part #${a+1}`);let r;try{r=Gae(n)}catch(i){throw new fo(`Invalid token specified: invalid base64 for part #${a+1} (${i.message})`)}try{return JSON.parse(r)}catch(i){throw new fo(`Invalid token specified: invalid json for part #${a+1} (${i.message})`)}}var Yae=class extends ww{constructor(e,t,a){super(e,$o.USER_INFOS,t,a,$o.USER_INFOS),this.getLocalAccessToken=e.getAccessToken}getDataFromBackend(){return At(this,null,function*(){return Zae(yield this.getLocalAccessToken("")).userProfile})}},ju=(()=>{const t=class t{setServices(n){this.services=n}getServices(){if(!this.services)throw new Error("ComponentServices has not been set yet.");return this.services}hasServices(){return!!this.services}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Wae=(()=>{const t=class t extends _w{constructor(){super(...arguments),this.servicesStore=S(ju)}resolveSsin(){return At(this,null,function*(){if(this.isProfessional===!0)return this.patientSsin;let n=yield this.fetchUserProfileToken();return Bae(n)})}resolvePatientInfo(){return At(this,null,function*(){return yield this.fetchUserProfileToken()})}resolveUserInfo(){return At(this,null,function*(){var d,m,v,g;let n=yield this.fetchUserProfileToken(),r=n.lastName,i=n.firstName,o=this.extractProfessionalRole(n),l=((d=n==null?void 0:n.organizations)==null?void 0:d.length)>0&&((m=n==null?void 0:n.organizations[0])!=null&&m.pharmacy)?"pharmacist":void 0,u=(v=n==null?void 0:n.organizations)!=null&&v.length&&l!==void 0?n==null?void 0:n.organizations[0]:void 0,c=this.resolveProfessional(n,o)?n[o]:void 0;return{firstName:i,ssin:n.ssin,lastName:r,role:l||o,organization:u&&l?u:void 0,professional:c,mandator:((g=n==null?void 0:n.mandators)==null?void 0:g.length)>0}})}isMandator(){return At(this,null,function*(){var n,r;return((r=(n=yield this.fetchUserProfileToken())==null?void 0:n.mandators)==null?void 0:r.length)>0})}resolveProfessional(n,r){return r?n[r]:void 0}extractProfessionalRole(n){let r=["physician","nurse","midwife","dentist"],i="patient";return r.forEach(o=>{n[o]&&(i=o)}),i}fetchUserProfileToken(){return this.accessTokenService.getData(!0)}registerAccessTokenService(n,r){this.accessTokenService||(this.isOfflineAuthenticated=n,this.isOfflineDataStorageEnabled=r,this.accessTokenService=new Yae(this.servicesStore.getServices(),n,r))}};t.ɵfac=(()=>{let n;return function(r){return(n||(n=et(t)))(r||t)}})(),t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Kae=(()=>{const t=class t extends _w{resolveSsin(){return At(this,null,function*(){return Promise.resolve("00000000097")})}resolvePatientInfo(){return Promise.resolve({firstName:"John",lastName:"Doe",ssin:"00000000097"})}resolveUserInfo(){return Promise.resolve({firstName:"John",lastName:"Doe",ssin:"00000000097",role:"patient",organization:void 0,professional:void 0,mandator:!1})}isMandator(){return At(this,null,function*(){return Promise.resolve(!1)})}registerAccessTokenService(n,r){this.isOfflineAuthenticated=n,this.isOfflineDataStorageEnabled=r}};t.ɵfac=(()=>{let n;return function(r){return(n||(n=et(t)))(r||t)}})(),t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Qae=(()=>{const t=class t{constructor(){this.http=S(Qi)}get(n,r,i){return Ys()?this.http.get(n,{headers:i}):rt(r)}patch(n,r,i){return Ys()?this.http.patch(n,{},{headers:i}):rt(r)}post(n,r,i){return Ys()?this.http.post(n,{},{headers:i}):rt(r)}delete(n,r,i){return Ys()?this.http.delete(n,{headers:i}):rt(r)}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Ys=()=>window.Cypress;function xw(e){return e.firstName&&e.lastName?e.firstName+" "+e.lastName:e.name}var Xae={fr:["fr","nl","de","en"],nl:["nl","fr","de","en"],de:["de","fr","nl","en"],en:["en","nl","fr","de"]};function Wl(e,t){if(e){t=t==null?void 0:t.substring(0,2);for(let a of Xae[t]){let n=e.find(r=>r.lang===a);if(n)return n.value}return e.length>0?e[0].value:"Missing translation"}}var xi=function(e){return e.INITIAL="INITIAL",e.LOADING="LOADING",e.SUCCESS="SUCCESS",e.UPDATING="UPDATING",e.ERROR="ERROR",e}(xi||{}),La=function(e){return e.NO_DATA="NO_DATA",e.TEMP_UNAVAILABLE="TEMP_UNAVAILABLE",e.NOT_AUTHORIZED="NOT_AUTHORIZED",e.OTHER="OTHER",e}(La||{});function Jae(e,t){return At(this,null,function*(){t.next({status:xi.LOADING});try{let a=yield e,n={status:xi.SUCCESS,data:a};return t.next(n),n}catch(a){let n={status:xi.ERROR,error:nre(a)};return t.next(n),n}})}var Xg={[La.NO_DATA]:["VIDIS_0140"],[La.TEMP_UNAVAILABLE]:["VIDIS_0121","VIDIS_0122","VIDIS_0123","VIDIS_0124","VIDIS_0125","VIDIS_0126","VIDIS_0131","VIDIS_0132","VIDIS_0133","VIDIS_0134","VIDIS_0135","VIDIS_0136"],[La.NOT_AUTHORIZED]:["VIDIS_3150","VIDIS_3090","VIDIS_3140","VIDIS_3100","VIDIS_3120","VIDIS_0400","VIDIS_3030","VIDIS_0100","VIDIS_0120","VIDIS_0110","VIDIS_0200","VIDIS_0340","VIDIS_0341"],[La.OTHER]:[]};function ere(e){for(let t of Object.keys(Xg))if(Xg[t].includes(e))return t;return La.OTHER}function tre(e,t,a){let n=e||"UNKNOWN",r=ere(n);return{code:n,message:a??"An unexpected error occurred",group:r,traceId:t}}function nre(e){var r,i,o;let t=((r=e.error)==null?void 0:r.code)??void 0,a=((i=e.error)==null?void 0:i.message)??e.message,n=(o=e.headers)==null?void 0:o.get("trace-id");return tre(t,n,a)}var are=(()=>{const t=class t{constructor(){this.translate=S(Qn)}transform(n){return this.findTranslation(n.name)+" "+(n.prefix?n.prefix+" ":"")+(n.value?n.value+" ":"")+(n.unit?this.translate.instant("commons.units."+n.unit,{count:n.value||1}):"")}findTranslation(n){return Wl(n,this.translate.currentLang)}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Ew=(()=>{const t=class t{constructor(){this.http=S(Qi),this.snackbarService=S(kw)}getLeaflet(n,r){this.http.get(`/v2/leaflet/${n}/${r}`,{responseType:"text"}).pipe(pn(1),kh(i=>(this.snackbarService.showError(i.status===404?"error.no-leaflet":"error.fetch-leaflet"),d0(()=>i)))).subscribe(i=>{window.open(i,"_blank")})}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Kl=(()=>{const t=class t{constructor(){this.config=S(gs),this.injector=S(ht),this._instance=null}getInstance(){if(!this._instance){let n=this.config.getEnvironmentVariable("env")==="demo";this._instance=n?this.injector.get(Kae):this.injector.get(Wae)}return this._instance}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),rre={HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)"};function ire(e,t){if(e&1){let a=ba();j(0,"div",1)(1,"button",2),an("click",function(){gn(a);let n=pe();return vn(n.action())}),ee(2),z()()}if(e&2){let a=pe();P(2),Ue(" ",a.data.action," ")}}var ore=["label"];function sre(e,t){}var lre=Math.pow(2,31)-1,rh=class{constructor(e,t){s(this,"_overlayRef");s(this,"instance");s(this,"containerInstance");s(this,"_afterDismissed",new ge);s(this,"_afterOpened",new ge);s(this,"_onAction",new ge);s(this,"_durationTimeoutId");s(this,"_dismissedByAction",!1);this._overlayRef=t,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,lre))}_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}},Sw=new K("MatSnackBarData"),Ql=class{constructor(){s(this,"politeness","assertive");s(this,"announcementMessage","");s(this,"viewContainerRef");s(this,"duration",0);s(this,"panelClass");s(this,"direction");s(this,"data",null);s(this,"horizontalPosition","center");s(this,"verticalPosition","bottom")}},ure=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",we({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}));let e=t;return e})(),cre=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",we({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}));let e=t;return e})(),dre=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",we({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}));let e=t;return e})(),hre=(()=>{const t=class t{constructor(){s(this,"snackBarRef",S(rh));s(this,"data",S(Sw))}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵcmp",Oe({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,r){n&1&&(j(0,"div",0),ee(1),z(),ke(2,ire,3,1,"div",1)),n&2&&(P(),Ue(" ",r.data.message,`
|
|
30
30
|
`),P(),$e(r.hasAction?2:-1))},dependencies:[fs,ure,cre,dre],styles:[`.mat-mdc-simple-snack-bar{display:flex}
|
|
31
31
|
`],encapsulation:2,changeDetection:0}));let e=t;return e})(),Bc="_mat-snack-bar-enter",Hc="_mat-snack-bar-exit",pre=(()=>{const t=class t extends Lu{constructor(){super();s(this,"_ngZone",S(Ve));s(this,"_elementRef",S(Qe));s(this,"_changeDetectorRef",S(qa));s(this,"_platform",S(dn));s(this,"_rendersRef");s(this,"_animationsDisabled",S(mr,{optional:!0})==="NoopAnimations");s(this,"snackBarConfig",S(Ql));s(this,"_document",S(Fe));s(this,"_trackedModals",new Set);s(this,"_enterFallback");s(this,"_exitFallback");s(this,"_renders",new ge);s(this,"_announceDelay",150);s(this,"_announceTimeoutId");s(this,"_destroyed",!1);s(this,"_portalOutlet");s(this,"_onAnnounce",new ge);s(this,"_onExit",new ge);s(this,"_onEnter",new ge);s(this,"_animationState","void");s(this,"_live");s(this,"_label");s(this,"_role");s(this,"_liveElementId",S(Qr).getId("mat-snack-bar-container-live-"));s(this,"attachDomPortal",r=>{this._assertNotAttached();let i=this._portalOutlet.attachDomPortal(r);return this._afterPortalAttached(),i});let r=this.snackBarConfig;r.politeness==="assertive"&&!r.announcementMessage?this._live="assertive":r.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert")),this._rendersRef=qb(()=>this._renders.next(),{manualCleanup:!0})}attachComponentPortal(r){this._assertNotAttached();let i=this._portalOutlet.attachComponentPortal(r);return this._afterPortalAttached(),i}attachTemplatePortal(r){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(r);return this._afterPortalAttached(),i}onAnimationEnd(r){r===Hc?this._completeExit():r===Bc&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?this._renders.pipe(pn(1)).subscribe(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(Bc)))}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(Bc)},200)))}exit(){return this._destroyed?rt(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?this._renders.pipe(pn(1)).subscribe(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(Hc)))}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(Hc),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit(),this._renders.complete(),this._rendersRef.destroy()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let r=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(u=>r.classList.add(u)):r.classList.add(i)),this._exposeToModals();let o=this._label.nativeElement,l="mdc-snackbar__label";o.classList.toggle(l,!o.querySelector(`.${l}`))}_exposeToModals(){let r=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<i.length;o++){let l=i[o],u=l.getAttribute("aria-owns");this._trackedModals.add(l),u?u.indexOf(r)===-1&&l.setAttribute("aria-owns",u+" "+r):l.setAttribute("aria-owns",r)}}_clearFromModals(){this._trackedModals.forEach(r=>{let i=r.getAttribute("aria-owns");if(i){let o=i.replace(this._liveElementId,"").trim();o.length>0?r.setAttribute("aria-owns",o):r.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let r=this._elementRef.nativeElement,i=r.querySelector("[aria-hidden]"),o=r.querySelector("[aria-live]");if(i&&o){let l=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(l=document.activeElement),i.removeAttribute("aria-hidden"),o.appendChild(i),l==null||l.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};s(t,"ɵfac",function(r){return new(r||t)}),s(t,"ɵcmp",Oe({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(r,i){if(r&1&&(Mi(Pi,7),Mi(ore,7)),r&2){let o;sn(o=ln())&&(i._portalOutlet=o.first),sn(o=ln())&&(i._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(r,i){r&1&&an("animationend",function(o){return i.onAnimationEnd(o.animationName)})("animationcancel",function(o){return i.onAnimationEnd(o.animationName)}),r&2&&jt("mat-snack-bar-container-enter",i._animationState==="visible")("mat-snack-bar-container-exit",i._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!i._animationsDisabled)},features:[We],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(r,i){r&1&&(j(0,"div",1)(1,"div",2,0)(3,"div",3),ke(4,sre,0,0,"ng-template",4),z(),lt(5,"div"),z()()),r&2&&(P(5),$t("aria-live",i._live)("role",i._role)("id",i._liveElementId))},dependencies:[Pi],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}
|
|
32
32
|
`],encapsulation:2}));let e=t;return e})();function mre(){return new Ql}var fre=new K("mat-snack-bar-default-options",{providedIn:"root",factory:mre}),gre=(()=>{const t=class t{constructor(){s(this,"_overlay",S(vr));s(this,"_live",S(AX));s(this,"_injector",S(ht));s(this,"_breakpointObserver",S(i1));s(this,"_parentSnackBar",S(t,{optional:!0,skipSelf:!0}));s(this,"_defaultConfig",S(fre));s(this,"_snackBarRefAtThisLevel",null);s(this,"simpleSnackBarComponent",hre);s(this,"snackBarContainerComponent",pre);s(this,"handsetCssClass","mat-mdc-snack-bar-handset")}get _openedSnackBarRef(){let n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}openFromComponent(n,r){return this._attach(n,r)}openFromTemplate(n,r){return this._attach(n,r)}open(n,r="",i){let o=ue(ue({},this._defaultConfig),i);return o.data={message:n,action:r},o.announcementMessage===n&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(n,r){let i=r&&r.viewContainerRef&&r.viewContainerRef.injector,o=ht.create({parent:i||this._injector,providers:[{provide:Ql,useValue:r}]}),l=new zo(this.snackBarContainerComponent,r.viewContainerRef,o),u=n.attach(l);return u.instance.snackBarConfig=r,u.instance}_attach(n,r){let i=ue(ue(ue({},new Ql),this._defaultConfig),r),o=this._createOverlay(i),l=this._attachSnackBarContainer(o,i),u=new rh(l,o);if(n instanceof cn){let c=new Pu(n,null,{$implicit:i.data,snackBarRef:u});u.instance=l.attachTemplatePortal(c)}else{let c=this._createInjector(i,u),d=new zo(n,void 0,c),m=l.attachComponentPortal(d);u.instance=m.instance}return this._breakpointObserver.observe(rre.HandsetPortrait).pipe(or(o.detachments())).subscribe(c=>{o.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),i.announcementMessage&&l._onAnnounce.subscribe(()=>{this._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(u,i),this._openedSnackBarRef=u,this._openedSnackBarRef}_animateSnackBar(n,r){n.afterDismissed().subscribe(()=>{this._openedSnackBarRef==n&&(this._openedSnackBarRef=null),r.announcementMessage&&this._live.clear()}),r.duration&&r.duration>0&&n.afterOpened().subscribe(()=>n._dismissAfter(r.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter()}_createOverlay(n){let r=new Xp;r.direction=n.direction;let i=this._overlay.position().global(),o=n.direction==="rtl",l=n.horizontalPosition==="left"||n.horizontalPosition==="start"&&!o||n.horizontalPosition==="end"&&o,u=!l&&n.horizontalPosition!=="center";return l?i.left("0"):u?i.right("0"):i.centerHorizontally(),n.verticalPosition==="top"?i.top("0"):i.bottom("0"),r.positionStrategy=i,this._overlay.create(r)}_createInjector(n,r){let i=n&&n.viewContainerRef&&n.viewContainerRef.injector;return ht.create({parent:i||this._injector,providers:[{provide:rh,useValue:r},{provide:Sw,useValue:n.data}]})}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵprov",V({token:t,factory:t.ɵfac,providedIn:"root"}));let e=t;return e})(),kw=(()=>{const t=class t{constructor(){this.snackbar=S(gre),this.translate=S(Qn)}showSuccess(n,r="commons.close",i=5e3){return this.snackbar.open(this.translate.instant(n),this.translate.instant(r),{duration:i,panelClass:"mh-snackbar--success"})}showError(n,r="commons.close",i=5e3){return this.snackbar.open(this.translate.instant(n),this.translate.instant(r),{duration:i,panelClass:"mh-snackbar--error"})}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),vre={demo:{env:Ja.DEMO},dev:{apiUrl:"http://vidis-fake-api.test.paas.vasdc.be",env:Ja.DEV},int:{apiUrl:"https://vidis-api.int.pub.vascloud.be/REST/vidis",env:Ja.INT},acc:{apiUrl:"https://vidis-api.acc.vasha.be/REST/vidis",env:Ja.ACC},prod:{apiUrl:"https://vidis-api.vasha.be/REST/vidis",env:Ja.PROD}},gs=(()=>{const t=class t{setEnvironment(n){this.configVariables=vre[Ja[n.toUpperCase()]]||{}}getEnvironmentVariable(n){return this.configVariables[n]}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),bre=(e,t)=>{let a=S(Kl),n=S(ju),r=S(gs).getEnvironmentVariable("apiUrl");if(e.url.includes("assets/")||e.url.startsWith("http")||!r||a.getInstance().isOfflineAuthenticated)return t(e);let i=e.headers||new Ai,o=a.getInstance().isProfessional;return $r(n.getServices().getAccessToken("")).pipe(Co(l=>t(e.clone({url:`${r}${e.url}`,headers:i.set(Vc.authorization,Zs.getAuthorizationHeader(l)).set(Vc.userType,Zs.getUserType({isProfessional:o})).set(Vc.clientType,$ae()?Zs.clientType.mobileApp:Zs.clientType.webApp)}))))};function yre(e){let t=Math.floor(Math.abs(e)),a=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&a===0?1:5}var _re=["de",[["AM","PM"],void 0,void 0],void 0,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],void 0,void 0],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",void 0,"{1} 'um' {0}",void 0],[",",".",";","%","+","-","E","·","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","Euro",{ATS:["öS"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[void 0,"р."],CUC:[void 0,"Cub$"],DEM:["DM"],FKP:[void 0,"Fl£"],GHS:[void 0,"₵"],GNF:[void 0,"F.G."],KMF:[void 0,"FC"],PHP:[void 0,"₱"],RON:[void 0,"L"],RUR:[void 0,"р."],RWF:[void 0,"F.Rw"],SYP:[],THB:["฿"],TWD:["NT$"],XXX:[],ZMW:[void 0,"K"]},"ltr",yre];function wre(e){let t=Math.floor(Math.abs(e)),a=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&a===0?1:5}var xre=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],[["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"]],void 0,[["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"]],void 0,[["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}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",wre];function Ere(e){let t=Math.floor(Math.abs(e)),a=e.toString().replace(/^[^.]*\.?/,"").length,n=parseInt(e.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return t===0||t===1?1:n===0&&t!==0&&t%1e6===0&&a===0||!(n>=0&&n<=5)?4:5}var Sre=["fr",[["AM","PM"],void 0,void 0],void 0,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]],void 0,[["av. J.-C.","ap. J.-C."],void 0,["avant Jésus-Christ","après Jésus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1}, {0}","{1} 'à' {0}",void 0],[","," ",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BYN:[void 0,"р."],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[void 0,"¥"],COP:["$CO","$"],CYP:["£CY"],EGP:[void 0,"£E"],FJD:["$FJ","$"],FKP:["£FK","£"],FRF:["F"],GBP:["£GB","£"],GIP:["£GI","£"],HKD:[void 0,"$"],IEP:["£IE"],ILP:["£IL"],ITL:["₤IT"],JPY:[void 0,"¥"],KMF:[void 0,"FC"],LBP:["£LB","£L"],MTP:["£MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[void 0,"$C"],NZD:["$NZ","$"],PHP:[void 0,"₱"],RHD:["$RH"],RON:[void 0,"L"],RWF:[void 0,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[void 0,"$T"],TTD:["$TT","$"],TWD:[void 0,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[void 0,"$"],XPF:["FCFP"],ZMW:[void 0,"Kw"]},"ltr",Ere];function kre(e){let t=Math.floor(Math.abs(e)),a=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&a===0?1:5}var Cre=["nl",[["a.m.","p.m."],void 0,void 0],void 0,[["Z","M","D","W","D","V","Z"],["zo","ma","di","wo","do","vr","za"],["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],["zo","ma","di","wo","do","vr","za"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]],void 0,[["v.C.","n.C."],["v.Chr.","n.Chr."],["voor Christus","na Christus"]],1,[6,0],["dd-MM-y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",void 0,"{1} 'om' {0}",void 0],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤ #,##0.00;¤ -#,##0.00","#E0"],"EUR","€","Euro",{AUD:["AU$","$"],BYN:[void 0,"р."],CAD:["C$","$"],FJD:["FJ$","$"],JPY:["JP¥","¥"],PHP:[void 0,"₱"],RUR:[void 0,"р."],SBD:["SI$","$"],THB:["฿"],TWD:["NT$"],USD:["US$","$"],XPF:[],XXX:[]},"ltr",kre];Mu(_re,"de");Mu(Cre,"nl");Mu(Sre,"fr");Mu(xre,"en");var Dre=class{handleError(e){throw new Error(e)}},Ire=class extends rJ{getFirstDayOfWeek(){return 1}format(e){return hw(e,"dd/MM/yyyy")}parse(e){return Mae(e,"dd/MM/yyyy",new Date)}},Tre={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:{year:"numeric",month:"long"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},Rre=[Ate(),KQ(QQ([bre])),Vae(),{provide:Yn,useClass:Dre},{provide:d1,useClass:Ire,deps:[$d]},{provide:$X,useValue:Tre},{provide:L1,useClass:Pte},{provide:x1,useValue:{panelClass:"mh-dialog-container"}}],Nre=Cv(dq(),1),Ore=new K("MESSAGE_FORMAT_CONFIG"),Mre={biDiSupport:!1,formatters:{},strictNumberSign:!1,currency:"USD",strictPluralKeys:!0,throwOnError:!1,fallbackPrefix:void 0},Are=(()=>{const t=class t extends ms{constructor(n){super(),this.mfCache=new Map;let{formatters:r,biDiSupport:i,strictNumberSign:o,currency:l,strictPluralKeys:u,throwOnError:c,fallbackPrefix:d}=ue(ue({},Mre),n);this.messageFormatOptions={customFormatters:r,biDiSupport:i,strict:o,currency:l,strictPluralKeys:u},this.throwOnError=!!c,this.fallbackPrefix=d}compile(n,r){if(this.fallbackPrefix&&n.startsWith(this.fallbackPrefix))return n.slice(this.fallbackPrefix.length);let i;try{i=this.getMessageFormatInstance(r).compile(n)}catch(o){if(this.throwOnError)throw o;console.error(o),console.error(`[ngx-translate-messageformat-compiler] Could not compile message for lang '${r}': '${n}'`),i=Lre(n,r)}return this.throwOnError||(i=Pre(i,n)),i}compileTranslations(n,r){return typeof n=="string"?this.compile(n,r):Object.keys(n).reduce((i,o)=>{let l=n[o];return i[o]=this.compileTranslations(l,r),i},{})}getMessageFormatInstance(n){return this.mfCache.has(n)||this.mfCache.set(n,new Nre.default(n,this.messageFormatOptions)),this.mfCache.get(n)}};t.ɵfac=function(n){return new(n||t)(oe(Ore,8))},t.ɵprov=V({token:t,factory:t.ɵfac});let e=t;return e})();function Pre(e,t){return a=>{let n=t;try{n=e(a)}catch(r){console.error(r),console.error(`[ngx-translate-messageformat-compiler] Could not interpolate '${t}' with params '${a}'`)}return n}}function Lre(e,t){return()=>(console.warn(`[ngx-translate-messageformat-compiler] Falling back to original invalid message: '${e}' ('${t}')`),String(e))}var Cw={};de(Cw,{"00001":()=>Dw,"00002":()=>Iw,"00003":()=>Tw,"00004":()=>Rw,"00005":()=>Nw,"00006":()=>Ow,"00007":()=>Mw,"00008":()=>Aw,"00009":()=>Pw,"00010":()=>Lw,"00011":()=>Fw,"00012":()=>jw,"00013":()=>zw,"00014":()=>Vw,"00015":()=>Bw,"00016":()=>Hw,"00017":()=>qw,"00018":()=>$w,"00019":()=>Uw,"00020":()=>Gw,"00021":()=>Zw,"00022":()=>Yw,"00023":()=>Ww,"00024":()=>Kw,"00025":()=>Qw,"00026":()=>Xw,"00027":()=>Jw,"00028":()=>ex,"00029":()=>tx,"00030":()=>nx,ampoule:()=>Ix,bandage:()=>Ex,bottle:()=>Tx,box:()=>kx,cm:()=>ax,default:()=>Fre,dropsperminute:()=>rx,"effervescent-tablet":()=>wx,gm:()=>ix,internationalunits:()=>ox,iu:()=>yx,liter:()=>Cx,"mck/h":()=>sx,"mck/kg/minute":()=>lx,measure:()=>ux,meq:()=>vx,mg:()=>fx,"mg/h":()=>cx,"mg/ml":()=>gx,micrograms:()=>xx,miu:()=>bx,"ml/h":()=>dx,mmol:()=>_x,piece:()=>Sx,syringe:()=>Dx,"syringe-ampoule":()=>Rx,tbl:()=>hx,tsp:()=>px,"unt/h":()=>mx});var Dw="{count, plural, one{kaffeelöffel (5 ml)} other{kaffeelöffellen (5 ml)}}",Iw="{count, plural, one{Ampulle} other{Ampullen}}",Tw="anwenden",Rw="{count, plural, one{Kapsel} other{Kapseln}}",Nw="{count, plural, one{Tablette} other{Tabletten}}",Ow="Dosis",Mw="{count, plural, one{Tropf} other{Tropfen}}",Aw="{count, plural, one{Fläsche} other{Fläschchen}}",Pw="{count, plural, one{Implantat} other{Implantate}}",Lw="{count, plural, one{Infusion} other{Infusionen}}",Fw="{count, plural, one{Inhalation} other{Inhalationen}}",jw="Einstechen",zw="Kaugummi",Vw="{count, plural, one{Kompresse} other{Kompressen}}",Bw="{count, plural, one{Einlauf} other{Einläufe}}",Hw="ml",qw="Ov.",$w="{count, plural, one{Perle} other{Perlen}}",Uw="{count, plural, one{Pastille} other{Pastillen}}",Gw="Pflaster",Zw="cart",Yw="Pen",Ww="{count, plural, one{Puff} other{Puffs}}",Kw="{count, plural, one{Schwamm} other{Schwämme}}",Qw="{count, plural, one{Stift} other{Stifte}}",Xw="Suppo",Jw="Tube",ex="{count, plural, one{Docht} other{Dochte}}",tx="Beutel",nx="Beutel",ax="Zentimeter",rx="{count, plural, one{Tropf pro Minute} other{Tropfen pro Minute}}",ix="Gramm",ox="{count, plural, one{Internationale Einheit} other{Internationale Einheiten}}",sx="Mikrogramm pro Stunde",lx="Mikrogramm pro Kilogramm pro Minute",ux="Maß",cx="Miligramm pro Stunde",dx="Milliliter pro Stunde",hx="Esslöffel",px="Kaffeelöffel",mx="{count, plural, one{Einheit pro Stunde} other{Einheiten pro Stunde}}",fx="Milligramm",gx="Milligramm pro Millimeter",vx="meq",bx="miu",yx="iu",_x="mmol",wx="effervescent-tablet",xx="micrograms",Ex="{count, plural, one{bandage} other{bandagen}}",Sx="{count, plural, one{stück} other{stücke}}",kx="schachteln",Cx="liter",Dx="{count, plural, one{spritze} other{spritzen}}",Ix="{count, plural, one{glühbirn} other{glühbirnen}}",Tx="{count, plural, one{Fläsche} other{Fläschchen}}",Rx="{count, plural, one{spritze-ampulle} other{spritzen-ampulle}}",Fre={"00001":Dw,"00002":Iw,"00003":Tw,"00004":Rw,"00005":Nw,"00006":Ow,"00007":Mw,"00008":Aw,"00009":Pw,"00010":Lw,"00011":Fw,"00012":jw,"00013":zw,"00014":Vw,"00015":Bw,"00016":Hw,"00017":qw,"00018":$w,"00019":Uw,"00020":Gw,"00021":Zw,"00022":Yw,"00023":Ww,"00024":Kw,"00025":Qw,"00026":Xw,"00027":Jw,"00028":ex,"00029":tx,"00030":nx,cm:ax,dropsperminute:rx,gm:ix,internationalunits:ox,"mck/h":sx,"mck/kg/minute":lx,measure:ux,"mg/h":cx,"ml/h":dx,tbl:hx,tsp:px,"unt/h":mx,mg:fx,"mg/ml":gx,meq:vx,miu:bx,iu:yx,mmol:_x,"effervescent-tablet":wx,micrograms:xx,bandage:Ex,piece:Sx,box:kx,liter:Cx,syringe:Dx,ampoule:Ix,bottle:Tx,"syringe-ampoule":Rx},Nx={};de(Nx,{"00001":()=>Ox,"00002":()=>Mx,"00003":()=>Ax,"00004":()=>Px,"00005":()=>Lx,"00006":()=>Fx,"00007":()=>jx,"00008":()=>zx,"00009":()=>Vx,"00010":()=>Bx,"00011":()=>Hx,"00012":()=>qx,"00013":()=>$x,"00014":()=>Ux,"00015":()=>Gx,"00016":()=>Zx,"00017":()=>Yx,"00018":()=>Wx,"00019":()=>Kx,"00020":()=>Qx,"00021":()=>Xx,"00022":()=>Jx,"00023":()=>eE,"00024":()=>tE,"00025":()=>nE,"00026":()=>aE,"00027":()=>rE,"00028":()=>iE,"00029":()=>oE,"00030":()=>sE,ampoule:()=>ME,bandage:()=>IE,bottle:()=>AE,box:()=>RE,cm:()=>lE,default:()=>jre,dropsperminute:()=>uE,"effervescent-tablet":()=>CE,gm:()=>cE,internationalunits:()=>dE,iu:()=>SE,liter:()=>NE,"mck/h":()=>hE,"mck/kg/minute":()=>pE,measure:()=>mE,meq:()=>xE,mg:()=>_E,"mg/h":()=>fE,"mg/ml":()=>wE,micrograms:()=>DE,miu:()=>EE,"ml/h":()=>gE,mmol:()=>kE,piece:()=>TE,syringe:()=>OE,"syringe-ampoule":()=>PE,tbl:()=>vE,tsp:()=>bE,"unt/h":()=>yE});var Ox="{count, plural, one{Teaspoon (5 ml)} other{Teaspoons (5 ml)}}",Mx="{count, plural, one{ampoule} other{ampoules}}",Ax="applic.",Px="{count, plural, one{capsule} other{capsules}}",Lx="{count, plural, one{tablet} other{tablets}}",Fx="{count, plural, one{dose} other{doses}}",jx="{count, plural, one{drop} other{drops}}",zx="{count, plural, one{bottle} other{bottles}}",Vx="{count, plural, one{implant} other{implants}}",Bx="{count, plural, one{perfusion} other{perfusions}}",Hx="{count, plural, one{inhalation} other{inhalations}}",qx="insert",$x="{count, plural, one{chewing gum} other{chewing gums}}",Ux="{count, plural, one{compress} other{compresses}}",Gx="enema",Zx="ml",Yx="{count, plural, one{ovule} other{ovules}}",Wx="{count, plural, one{pearl} other{pearls}}",Kx="{count, plural, one{pastille} other{pastilles}}",Qx="{count, plural, one{patch} other{patches}}",Xx="{count, plural, one{cartridge} other{cartridges}}",Jx="{count, plural, one{pen} other{pens}}",eE="{count, plural, one{puff} other{puffs}}",tE="{count, plural, one{sponge} other{sponges}}",nE="{count, plural, one{stylo} other{stylos}}",aE="{count, plural, one{supository} other{supositories}}",rE="{count, plural, one{tube} other{tubes}}",iE="{count, plural, one{wick} other{wicks}}",oE="{count, plural, one{bag} other{bags}}",sE="{count, plural, one{small bag} other{small bags}}",lE="centimeter",uE="{count, plural, one{drop per minute} other{drops per minute}}",cE="gram",dE="international units",hE="microgram per hour",pE="microgram per kilogram per minute",mE="{count, plural, one{measure} other{measures}}",fE="milligram per hour",gE="milliliter per hour",vE="{count, plural, one{tablespoon} other{tablespoons}}",bE="{count, plural, one{teaspoon} other{teaspoons}}",yE="{count, plural, one{unit per hour} other{units per hour}}",_E="milligram",wE="milligram per milliliter",xE="milli-equivalent",EE="miu",SE="international units",kE="millimole",CE="{count, plural, one{effervescent tablet} other{effervescent tablets}}",DE="microgram",IE="{count, plural, one{bandage} other{bandages}}",TE="{count, plural, one{piece} other{pieces}}",RE="{count, plural, one{spray} other{sprays}}",NE="liter",OE="{count, plural, one{syringe} other{syringes}}",ME="{count, plural, one{ampoule} other{ampoules}}",AE="{count, plural, one{bottle} other{bottles}}",PE="{count, plural, one{syringe ampoule} other{syringe ampoules}}",jre={"00001":Ox,"00002":Mx,"00003":Ax,"00004":Px,"00005":Lx,"00006":Fx,"00007":jx,"00008":zx,"00009":Vx,"00010":Bx,"00011":Hx,"00012":qx,"00013":$x,"00014":Ux,"00015":Gx,"00016":Zx,"00017":Yx,"00018":Wx,"00019":Kx,"00020":Qx,"00021":Xx,"00022":Jx,"00023":eE,"00024":tE,"00025":nE,"00026":aE,"00027":rE,"00028":iE,"00029":oE,"00030":sE,cm:lE,dropsperminute:uE,gm:cE,internationalunits:dE,"mck/h":hE,"mck/kg/minute":pE,measure:mE,"mg/h":fE,"ml/h":gE,tbl:vE,tsp:bE,"unt/h":yE,mg:_E,"mg/ml":wE,meq:xE,miu:EE,iu:SE,mmol:kE,"effervescent-tablet":CE,micrograms:DE,bandage:IE,piece:TE,box:RE,liter:NE,syringe:OE,ampoule:ME,bottle:AE,"syringe-ampoule":PE},LE={};de(LE,{"00001":()=>FE,"00002":()=>jE,"00003":()=>zE,"00004":()=>VE,"00005":()=>BE,"00006":()=>HE,"00007":()=>qE,"00008":()=>$E,"00009":()=>UE,"00010":()=>GE,"00011":()=>ZE,"00012":()=>YE,"00013":()=>WE,"00014":()=>KE,"00015":()=>QE,"00016":()=>XE,"00017":()=>JE,"00018":()=>eS,"00019":()=>tS,"00020":()=>nS,"00021":()=>aS,"00022":()=>rS,"00023":()=>iS,"00024":()=>oS,"00025":()=>sS,"00026":()=>lS,"00027":()=>uS,"00028":()=>cS,"00029":()=>dS,"00030":()=>hS,ampoule:()=>jS,bandage:()=>MS,bottle:()=>zS,box:()=>PS,cm:()=>pS,default:()=>zre,dropsperminute:()=>mS,"effervescent-tablet":()=>NS,gm:()=>fS,internationalunits:()=>gS,iu:()=>TS,liter:()=>LS,"mck/h":()=>vS,"mck/kg/minute":()=>bS,measure:()=>yS,meq:()=>DS,mg:()=>kS,"mg/h":()=>_S,"mg/ml":()=>CS,micrograms:()=>OS,miu:()=>IS,"ml/h":()=>wS,mmol:()=>RS,piece:()=>AS,syringe:()=>FS,"syringe-ampoule":()=>VS,tbl:()=>xS,tsp:()=>ES,"unt/h":()=>SS});var FE="{count, plural, one{cuillère à café (5 ml)} other{cuillères à café (5 ml)}}",jE="amp.",zE="applic.",VE="caps.",BE="compr.",HE="{count, plural, one{dose} other{doses}}",qE="{count, plural, one{goutte} other{gouttes}}",$E="flac.",UE="{count, plural, one{implant} other{implants}}",GE="{count, plural, one{perfusion} other{perfusions}}",ZE="{count, plural, one{inhalation} other{inhalations}}",YE="insert",WE="{count, plural, one{gomme à mâcher} other{gommes à mâcher}}",KE="{count, plural, one{compres(se)} other{compres(ses)}}",QE="{count, plural, one{lavement} other{lavements}}",XE="ml",JE="ov.",eS="{count, plural, one{perle} other{perles}}",tS="{count, plural, one{pastille} other{pastilles}}",nS="{count, plural, one{patch} other{patchs}}",aS="patr.",rS="{count, plural, one{stylo} other{stylos}}",iS="{count, plural, one{puff} other{puffs}}",oS="{count, plural, one{éponge} other{éponges}}",sS="{count, plural, one{stylo} other{stylos}}",lS="suppo",uS="{count, plural, one{tube} other{tubes}}",cS="{count, plural, one{mèche} other{mèches}}",dS="{count, plural, one{sac} other{sacs}}",hS="{count, plural, one{sachet} other{sachets}}",pS="{count, plural, one{centimètre} other{centimètres}}",mS="{count, plural, one{goute par minute} other{goutes par minute}}",fS="{count, plural, one{gramme} other{grammes}}",gS="{count, plural, one{unité internationales} other{unités internationales}}",vS="{count, plural, one{microgramme par heure} other{microgrammes par heure}}",bS="{count, plural, one{microgramme par kilogramme par minute} other{microgrammes par kilogramme par minute}}",yS="{count, plural, one{mesure} other{mesures}}",_S="{count, plural, one{milligramme par heure} other{milligrammes par heure}}",wS="{count, plural, one{millilitre par heure} other{millilitres par heure}}",xS="{count, plural, one{cuillère à soupe} other{cuillères à soupe}}",ES="{count, plural, one{cuillère à café} other{cuillères à café}}",SS="{count, plural, one{unité par heure} other{unités par heure}}",kS="{count, plural, one{miligramme} other{miligrammes}}",CS="{count, plural, one{milligramme par millimètre} other{milligrammes par millimètre}}",DS="milli-équivalent",IS="miu",TS="{count, plural, one{unité internationales} other{unités internationales}}",RS="millimol",NS="{count, plural, one{comprimé effervescent} other{comprimés effervescents}}",OS="{count, plural, one{microgramme} other{microgrammes}}",MS="{count, plural, one{bandage} other{bandages}}",AS="{count, plural, one{pièce} other{pièces}}",PS="{count, plural, one{vaporisateur} other{vaporisateurs}}",LS="{count, plural, one{litre} other{litres}}",FS="{count, plural, one{seringue} other{seringues}}",jS="{count, plural, one{ampoule} other{ampoules}}",zS="{count, plural, one{fiole} other{fioles}}",VS="{count, plural, one{ampoule de seringue} other{ampoules de seringue}}",zre={"00001":FE,"00002":jE,"00003":zE,"00004":VE,"00005":BE,"00006":HE,"00007":qE,"00008":$E,"00009":UE,"00010":GE,"00011":ZE,"00012":YE,"00013":WE,"00014":KE,"00015":QE,"00016":XE,"00017":JE,"00018":eS,"00019":tS,"00020":nS,"00021":aS,"00022":rS,"00023":iS,"00024":oS,"00025":sS,"00026":lS,"00027":uS,"00028":cS,"00029":dS,"00030":hS,cm:pS,dropsperminute:mS,gm:fS,internationalunits:gS,"mck/h":vS,"mck/kg/minute":bS,measure:yS,"mg/h":_S,"ml/h":wS,tbl:xS,tsp:ES,"unt/h":SS,mg:kS,"mg/ml":CS,meq:DS,miu:IS,iu:TS,mmol:RS,"effervescent-tablet":NS,micrograms:OS,bandage:MS,piece:AS,box:PS,liter:LS,syringe:FS,ampoule:jS,bottle:zS,"syringe-ampoule":VS},BS={};de(BS,{"00001":()=>HS,"00002":()=>qS,"00003":()=>$S,"00004":()=>US,"00005":()=>GS,"00006":()=>ZS,"00007":()=>YS,"00008":()=>WS,"00009":()=>KS,"00010":()=>QS,"00011":()=>XS,"00012":()=>JS,"00013":()=>ek,"00014":()=>tk,"00015":()=>nk,"00016":()=>ak,"00017":()=>rk,"00018":()=>ik,"00019":()=>ok,"00020":()=>sk,"00021":()=>lk,"00022":()=>uk,"00023":()=>ck,"00024":()=>dk,"00025":()=>hk,"00026":()=>pk,"00027":()=>mk,"00028":()=>fk,"00029":()=>gk,"00030":()=>vk,ampoule:()=>qk,bandage:()=>jk,bottle:()=>$k,box:()=>Vk,cm:()=>bk,default:()=>Vre,dropsperminute:()=>yk,"effervescent-tablet":()=>Lk,gm:()=>_k,internationalunits:()=>wk,iu:()=>Ak,liter:()=>Bk,"mck/h":()=>xk,"mck/kg/minute":()=>Ek,measure:()=>Sk,meq:()=>Ok,mg:()=>Rk,"mg/h":()=>kk,"mg/ml":()=>Nk,micrograms:()=>Fk,miu:()=>Mk,"ml/h":()=>Ck,mmol:()=>Pk,piece:()=>zk,syringe:()=>Hk,"syringe-ampoule":()=>Uk,tbl:()=>Dk,tsp:()=>Ik,"unt/h":()=>Tk});var HS="{count, plural, one{Koffielepel (5 ml)} other{Koffielepels (5 ml)}}",qS="{count, plural, one{ampule} other{ampullen}}",$S="aanbrengen",US="{count, plural, one{capsule} other{capsules}}",GS="{count, plural, one{tablet} other{tabletten}}",ZS="{count, plural, one{dose} other{dosissen}}",YS="{count, plural, one{druppel} other{druppels}}",WS="{count, plural, one{flesje} other{flesjes}}",KS="{count, plural, one{implantaat} other{implantaten}}",QS="{count, plural, one{infuus} other{infusen}}",XS="{count, plural, one{inhalatie} other{inhalaties}}",JS="inbrengen",ek="{count, plural, one{kauwgom} other{kauwgommen}}",tk="{count, plural, one{kompres} other{kompressen}}",nk="lavement",ak="ml",rk="{count, plural, one{ovule} other{ovules}}",ik="{count, plural, one{parel} other{parels}}",ok="{count, plural, one{pastille} other{pastilles}}",sk="{count, plural, one{pleister} other{pleisters}}",lk="{count, plural, one{patroon} other{patronen}}",uk="{count, plural, one{pen} other{pennen}}",ck="{count, plural, one{puff} other{puffs}}",dk="{count, plural, one{spons} other{sponsen}}",hk="{count, plural, one{stylo} other{stylos}}",pk="{count, plural, one{zetpil} other{zetpillen}}",mk="{count, plural, one{tube} other{tubes}}",fk="{count, plural, one{wiek} other{wieken}}",gk="{count, plural, one{zak} other{zakken}}",vk="{count, plural, one{zakje} other{zakjes}}",bk="centimeter",yk="{count, plural, one{druppel per minuut} other{druppels per minuut}}",_k="gram",wk="internationale eenheden",xk="microgram per uur",Ek="microgram per kilogram per minuut",Sk="{count, plural, one{maat} other{maten}}",kk="milligram per uur",Ck="milliliter per uur",Dk="{count, plural, one{eetlepel} other{eetlepels}}",Ik="{count, plural, one{koffielepel} other{koffielepels}}",Tk="{count, plural, one{eenheid per uur} other{eenheden per uur}}",Rk="miligram",Nk="miligram per milimeter",Ok="milli-equivalent",Mk="miu",Ak="internationale eenheden",Pk="millimol",Lk="{count, plural, one{bruistablet} other{bruistabletten}}",Fk="microgram",jk="{count, plural, one{verband} other{verbanden}}",zk="{count, plural, one{stuk} other{stuks}}",Vk="{count, plural, one{verstuiving} other{verstuivingen}}",Bk="liter",Hk="{count, plural, one{spuit} other{spuiten}}",qk="{count, plural, one{ampul} other{ampullen}}",$k="{count, plural, one{fles} other{flessen}}",Uk="{count, plural, one{spuitampul} other{spuitampullen}}",Vre={"00001":HS,"00002":qS,"00003":$S,"00004":US,"00005":GS,"00006":ZS,"00007":YS,"00008":WS,"00009":KS,"00010":QS,"00011":XS,"00012":JS,"00013":ek,"00014":tk,"00015":nk,"00016":ak,"00017":rk,"00018":ik,"00019":ok,"00020":sk,"00021":lk,"00022":uk,"00023":ck,"00024":dk,"00025":hk,"00026":pk,"00027":mk,"00028":fk,"00029":gk,"00030":vk,cm:bk,dropsperminute:yk,gm:_k,internationalunits:wk,"mck/h":xk,"mck/kg/minute":Ek,measure:Sk,"mg/h":kk,"ml/h":Ck,tbl:Dk,tsp:Ik,"unt/h":Tk,mg:Rk,"mg/ml":Nk,meq:Ok,miu:Mk,iu:Ak,mmol:Pk,"effervescent-tablet":Lk,micrograms:Fk,bandage:jk,piece:zk,box:Vk,liter:Bk,syringe:Hk,ampoule:qk,bottle:$k,"syringe-ampoule":Uk},Bre={nl:BS,fr:LE,de:Cw,en:Nx},Gk={};de(Gk,{default:()=>Hre,friday:()=>Qk,monday:()=>Zk,saturday:()=>Xk,sunday:()=>Jk,thursday:()=>Kk,tuesday:()=>Yk,wednesday:()=>Wk});var Zk="Montag",Yk="Dienstag",Wk="Mittwoch",Kk="Donnerstag",Qk="Freitag",Xk="Samstag",Jk="Sonntag",Hre={monday:Zk,tuesday:Yk,wednesday:Wk,thursday:Kk,friday:Qk,saturday:Xk,sunday:Jk},eC={};de(eC,{default:()=>qre,friday:()=>iC,monday:()=>tC,saturday:()=>oC,sunday:()=>sC,thursday:()=>rC,tuesday:()=>nC,wednesday:()=>aC});var tC="Monday",nC="Tuesday",aC="Wednesday",rC="Thursday",iC="Friday",oC="Saturday",sC="Sunday",qre={monday:tC,tuesday:nC,wednesday:aC,thursday:rC,friday:iC,saturday:oC,sunday:sC},lC={};de(lC,{default:()=>$re,friday:()=>pC,monday:()=>uC,saturday:()=>mC,sunday:()=>fC,thursday:()=>hC,tuesday:()=>cC,wednesday:()=>dC});var uC="Lundi",cC="Mardi",dC="Mercredi",hC="Jeudi",pC="Vendredi",mC="Samedi",fC="Dimanche",$re={monday:uC,tuesday:cC,wednesday:dC,thursday:hC,friday:pC,saturday:mC,sunday:fC},gC={};de(gC,{default:()=>Ure,friday:()=>wC,monday:()=>vC,saturday:()=>xC,sunday:()=>EC,thursday:()=>_C,tuesday:()=>bC,wednesday:()=>yC});var vC="Maandag",bC="Dinsdag",yC="Woensdag",_C="Donderdag",wC="Vrijdag",xC="Zaterdag",EC="Zondag",Ure={monday:vC,tuesday:bC,wednesday:yC,thursday:_C,friday:wC,saturday:xC,sunday:EC},Gre={nl:gC,fr:lC,de:Gk,en:eC},SC={};de(SC,{VIDIS_0035:()=>kC,VIDIS_0050:()=>CC,VIDIS_0090:()=>DC,VIDIS_0100:()=>aD,VIDIS_0110:()=>iD,VIDIS_0120:()=>rD,VIDIS_0121:()=>IC,VIDIS_0122:()=>TC,VIDIS_0123:()=>RC,VIDIS_0124:()=>NC,VIDIS_0125:()=>OC,VIDIS_0126:()=>MC,VIDIS_0131:()=>AC,VIDIS_0132:()=>PC,VIDIS_0133:()=>LC,VIDIS_0134:()=>FC,VIDIS_0135:()=>jC,VIDIS_0136:()=>zC,VIDIS_0190:()=>VC,VIDIS_0200:()=>oD,VIDIS_0210:()=>BC,VIDIS_0211:()=>HC,VIDIS_0230:()=>qC,VIDIS_0290:()=>$C,VIDIS_0330:()=>UC,VIDIS_0340:()=>sD,VIDIS_0341:()=>lD,VIDIS_0400:()=>tD,VIDIS_04001:()=>uD,VIDIS_0435:()=>GC,VIDIS_0440:()=>ZC,VIDIS_3030:()=>nD,VIDIS_3090:()=>QC,VIDIS_3100:()=>JC,VIDIS_3120:()=>eD,VIDIS_3140:()=>XC,VIDIS_3150:()=>KC,VIDIS_5000:()=>YC,VIDIS_7000:()=>WC,"action-not-authorized-close-button":()=>RD,"action-not-authorized-title":()=>TD,"data-not-available-title":()=>ID,default:()=>Zre,general:()=>dD,"has-hidden-prescriptions":()=>yD,invalid_date_format:()=>gD,myHealth:()=>pD,myHealthUrl:()=>mD,network_error:()=>fD,"no-access":()=>hD,prescriptionList:()=>cD,"report-message-confirm-toast":()=>DD,"report-message-content":()=>xD,"report-message-explanation":()=>wD,"report-message-ignore-button":()=>CD,"report-message-link":()=>SD,"report-message-report-button":()=>kD,"report-message-term-use":()=>ED,"report-message-title":()=>_D,"status-message-content":()=>bD,"status-message-title":()=>vD});var kC="Leider ging dies nicht gut. Versuchen Sie es bitte noch einmal? (VIDIS_0035)",CC="Die Patienten-INSS fehlt. (VIDIS_0050)",DC="Die angegebenen persönlichen Daten wurden nicht erkannt. (VIDIS_0090)",IC="Die Einsichtnahme in die Daten eines Brüsseler Patienten ist derzeit nicht erlaubt.",TC="Die Einsichtnahme in die Daten eines wallonischen Patienten ist derzeit nicht erlaubt.",RC="Die Einsichtnahme in die Daten eines Brüsseler Kinder von einem Elternteil ist derzeit nicht erlaubt.",NC="Die Einsichtnahme in die Daten eines wallonischen Kinder von einem Elternteil ist derzeit nicht erlaubt.",OC="Die Einsichtnahme in die Daten eines Brüsseler Patienten von einem Bevollmächtigter ist derzeit nicht erlaubt.",MC="Die Einsichtnahme in die Daten eines wallonischen Patienten von einem Bevollmächtigter ist derzeit nicht erlaubt.",AC="Der Zugriff auf die Daten eines Brüsseler Patienten ist derzeit nicht erlaubt.",PC="Der Zugriff auf die Daten eines wallonischen Patienten ist derzeit nicht erlaubt.",LC="Der Zugriff eines Elternteils auf die Daten eines Brüsseler Kindes ist derzeit nicht erlaubt.",FC="Der Zugriff eines Elternteils auf die Daten eines wallonischen Kindes ist derzeit nicht erlaubt.",jC="Der Zugriff eines Bevollmächtigten auf die Daten eines Brüsseler Patienten ist derzeit nicht erlaubt.",zC="Der Zugriff eines Bevollmächtigten auf die Daten eines wallonischen Patienten ist derzeit nicht erlaubt.",VC="Ungültige INSS-Patientennummer. (VIDIS_0190)",BC="Die Anmeldung war nicht erfolgreich. Versuchen Sie es erneut? (VIDIS_0210)",HC="Die Anmeldung war nicht erfolgreich. Versuchen Sie es erneut? (VIDIS_0211)",qC="Der Vorgang ist ungültig (VIDIS_0230)",$C='Die Benutzerrolle muss "Bürger" sein. (VIDIS_0290)',UC="Ihre Authentifizierungsstufe erlaubt keinen Zugriff auf diese Seite. Bitte melden Sie sich mit einem anderen Authentifizierungsmittel an (itsme, eID oder mit einem per E-Mail oder App verschickten Sicherheitscode). (VIDIS_0330)",GC="Die Speicherregion für den Medikamentenplan kann nicht bestimmt werden. (VIDIS_0435)",ZC="Leider ging dies nicht gut. Versuchen Sie es bitte noch einmal? (VIDIS_0440)",YC="Leider konnten wir Ihre Daten nicht abrufen. Versuchen Sie es bitte noch einmal? (VIDIS_5000)",WC="Leider ging dies nicht gut. Versuchen Sie es bitte noch einmal? (VIDIS_7000)",KC="Kein Mandat zwischen Patient und Bevollmächtigtem gefunden.",QC="Das Rezept ist abgelaufen.",XC="Reservierungen müssen bei derselben Apotheke erfolgen wie die, bei der das Visi-Flag gesetzt wurde. Sie können das Visi-Flag auch offen lassen.",JC="Das Visi-Flag muss auf dieselbe Apotheke gesetzt sein, bei der Sie reserviert haben.",eD="Der Patient in der Sitzung ist nicht derselbe wie der Patient in der Anfrage.",tD="Der Benutzer ist nicht berechtigt, die Anfrage zu stellen.",nD="Kein Mandat zwischen Patient und Bevollmächtigtem gefunden.",aD="Vorgang nicht erlaubt.",rD="Es besteht keine therapeutische Beziehung zwischen Anfragendem und Patient.",iD="Keine Zustimmung zur Weitergabe von Gesundheitsdaten.",oD="Der Benutzer darf die Bearbeitung nicht vornehmen, da Antragsteller und Patient sich ausschließen.",sD="Sie sind nicht berechtigt, die Daten dieses Patienten abzurufen, da Ihr Visum nicht aktiv ist. Bitte wenden Sie sich per E-Mail unter visa@health.belgium.be an den FÖD Gesundheit.",lD="Sie sind nicht berechtigt, die Daten dieses Patienten abzurufen, entweder weil Ihr Visum nicht aktiv ist, bitte wenden Sie sich in diesem Fall per E-Mail an den FÖD Gesundheit unter visa@health.belgium.be, oder weil die LIKIV-Nummer der Apotheke ungültig ist, bitte kontaktieren Sie in diesem Fall das LIKIV per E-Mail unter dossierpharma@riziv-inami.fgov.be.",uD="Ihre Anfrage ist ungültig. Bitte versuchen Sie es später erneut.",cD="Leider war es nicht möglich, die Details der Verschreibung abzurufen. Versuchen Sie es erneut?",dD="Ein interner technischer Fehler ist aufgetreten. Bitte versuchen Sie es später nochmal.",hD="Ein interner technischer Fehler ist aufgetreten. Bitte versuchen Sie es später nochmal.",pD="Zurück zum Portal Meine Gesundheit",mD="https://wwwint.meinegesundheit.belgien.be/#/",fD="Es ist leider ein Netzwerkfehler aufgetreten. Bitte wenden Sie sich an Ihren Netzwerkadministrator, wenn das Problem weiterhin besteht.",gD="Ungültiges Datumsformat.",vD="Dienst vorübergehend nicht verfügbar",bD=`Wir haben derzeit ein Problem mit der Verbindung zum Server.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./assets/main-
|
|
1
|
+
import"./assets/main-jXW3hH__.js";import"./assets/polyfills-CGYnV-49.js";/* empty css */
|
package/package.json
CHANGED