From 9b261b6ace1239965e1f5a58d50e76d4a0d5f0ea Mon Sep 17 00:00:00 2001 From: adamsaghy Date: Mon, 20 Nov 2023 09:38:14 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20f6eda?= =?UTF-8?q?b0dd503a720c769b8cd9483f59819412cb4=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 3rdpartylicenses.txt | 26 ++++++++++++++++++++++++++ main.js | 2 +- src_app_savings_savings_module_ts.js | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/3rdpartylicenses.txt b/3rdpartylicenses.txt index 9a4b60615..a75e68a11 100644 --- a/3rdpartylicenses.txt +++ b/3rdpartylicenses.txt @@ -1361,6 +1361,32 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +vkbeautify +MIT +The MIT License (MIT) + +Copyright (c) 2015 aabluedragon + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + webcola MIT The MIT License (MIT) diff --git a/main.js b/main.js index 475c7a4d8..b9b477a72 100644 --- a/main.js +++ b/main.js @@ -1 +1 @@ -(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["main"],{96170:(K,j)=>{(function(_){const l=_.en=_.en||{};l.dictionary=Object.assign(l.dictionary||{},{"%0 of %1":"%0 of %1","Block quote":"Block quote",Bold:"Bold","Bulleted List":"Bulleted List",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row",Downloadable:"Downloadable","Dropdown toolbar":"Dropdown toolbar","Edit link":"Edit link","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Full size image":"Full size image","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6","Image toolbar":"Image toolbar","image widget":"image widget","Increase indent":"Increase indent","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Inserting image failed":"Inserting image failed",Italic:"Italic","Left aligned image":"Left aligned image",Link:"Link","Link URL":"Link URL","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","Numbered List":"Numbered List","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.",Previous:"Previous",Redo:"Redo","Rich Text Editor":"Rich Text Editor","Rich Text Editor, %0":"Rich Text Editor, %0","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically","Table toolbar":"Table toolbar","Text alternative":"Text alternative","The URL must not be empty.":"The URL must not be empty.","This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.",Undo:"Undo",Unlink:"Unlink","Upload failed":"Upload failed","Upload in progress":"Upload in progress","Widget toolbar":"Widget toolbar"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),window,K.exports=function(_){var l={};function u(g){if(l[g])return l[g].exports;var h=l[g]={i:g,l:!1,exports:{}};return _[g].call(h.exports,h,h.exports,u),h.l=!0,h.exports}return u.m=_,u.c=l,u.d=function(g,h,t){u.o(g,h)||Object.defineProperty(g,h,{enumerable:!0,get:t})},u.r=function(g){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})},u.t=function(g,h){if(1&h&&(g=u(g)),8&h||4&h&&"object"==typeof g&&g&&g.__esModule)return g;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:g}),2&h&&"string"!=typeof g)for(var x in g)u.d(t,x,function(A){return g[A]}.bind(null,x));return t},u.n=function(g){var h=g&&g.__esModule?function(){return g.default}:function(){return g};return u.d(h,"a",h),h},u.o=function(g,h){return Object.prototype.hasOwnProperty.call(g,h)},u.p="",u(u.s=96)}([function(_,l,u){"use strict";u.d(l,"b",function(){return g}),u.d(l,"a",function(){return h});class g extends Error{constructor(x,A,U){x=h(x),U&&(x+=" "+JSON.stringify(U)),super(x),this.name="CKEditorError",this.context=A,this.data=U}is(x){return"CKEditorError"===x}static rethrowUnexpectedError(x,A){if(x.is&&x.is("CKEditorError"))throw x;const U=new g(x.message,A);throw U.stack=x.stack,U}}function h(t){const x=t.match(/^([^:]+):/);return x?t+` Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-${x[1]}\n`:t}},function(_,l,u){"use strict";var g,rt,t=(rt={},function(ft){if(void 0===rt[ft]){var Tt=document.querySelector(ft);if(window.HTMLIFrameElement&&Tt instanceof window.HTMLIFrameElement)try{Tt=Tt.contentDocument.head}catch{Tt=null}rt[ft]=Tt}return rt[ft]}),x=[];function A(rt){for(var ft=-1,Tt=0;Tt:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}"},function(_,l,u){var g=u(1),h=u(20);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}"},function(_,l,u){var g=u(1),h=u(22);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{z-index:var(--ck-z-modal);position:fixed;top:0}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{top:auto;position:absolute}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:var(--ck-drop-shadow),0 0;border-width:0 1px 1px;border-top-left-radius:0;border-top-right-radius:0}"},function(_,l,u){var g=u(1),h=u(24);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:var(--ck-z-modal);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{top:100%;bottom:auto}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}:root{--ck-dropdown-arrow-size:calc(0.5*var(--ck-icon-size))}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}"},function(_,l,u){var g=u(1),h=u(26);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:.8333350694em;will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}"},function(_,l,u){var g=u(1),h=u(28);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports='.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{position:absolute;pointer-events:none;-webkit-backface-visibility:hidden}.ck.ck-tooltip{visibility:hidden;opacity:0;display:none;z-index:var(--ck-z-modal)}.ck.ck-tooltip .ck-tooltip__text{display:inline-block}.ck.ck-tooltip .ck-tooltip__text:after{content:"";width:0;height:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{font-size:.9em;line-height:1.5;color:var(--ck-color-tooltip-text);padding:var(--ck-spacing-small) var(--ck-spacing-medium);background:var(--ck-color-tooltip-background);position:relative;left:-50%}.ck.ck-tooltip .ck-tooltip__text:after{transition:opacity .2s ease-in-out .2s;border-style:solid;left:50%}.ck.ck-tooltip.ck-tooltip_s{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:var(--ck-color-tooltip-background);border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:0}.ck.ck-tooltip.ck-tooltip_n{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--ck-color-tooltip-background);border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:0;border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}'},function(_,l,u){var g=u(1),h=u(30);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{position:relative;display:inline-flex;align-items:center;justify-content:left}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{visibility:visible;opacity:1}.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;border:1px solid transparent;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;-webkit-appearance:none}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(-1*var(--ck-spacing-small));margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:calc(-1*var(--ck-spacing-small));margin-left:var(--ck-spacing-small)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}"},function(_,l,u){var g=u(1),h=u(32);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{list-style-type:none;background:var(--ck-color-list-background)}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{min-height:unset;width:100%;text-align:left;border-radius:0;padding:calc(0.2*var(--ck-line-height-base)*var(--ck-font-size-base)) calc(0.4*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(1.2*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{height:1px;width:100%;background:var(--ck-color-base-border)}"},function(_,l,u){var g=u(1),h=u(34);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2*var(--ck-switch-button-toggle-spacing))}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(2*var(--ck-spacing-large))}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(2*var(--ck-spacing-large))}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{transition:background .4s ease;width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(0.5*var(--ck-border-radius))}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{margin:var(--ck-switch-button-toggle-spacing);width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s ease}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var(--ck-switch-button-translation))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(-1*var(--ck-switch-button-translation)))}"},function(_,l,u){var g=u(1),h=u(36);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-toolbar-dropdown .ck.ck-toolbar .ck.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar-dropdown .ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}"},function(_,l,u){var g=u(1),h=u(38);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}"},function(_,l,u){var g=u(1),h=u(40);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-toolbar{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-flow:row nowrap;align-items:center}.ck.ck-toolbar>.ck-toolbar__items{display:flex;flex-flow:row wrap;align-items:center;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;width:1px;min-width:1px;background:var(--ck-color-toolbar-border);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items>*{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>*,.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{width:100%;margin:0;border-radius:0;border:0}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-right:var(--ck-spacing-small)}"},function(_,l,u){var g=u(1),h=u(42);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}"},function(_,l,u){var g=u(1),h=u(44);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:5px solid #ccc}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}"},function(_,l,u){var g=u(1),h=u(46);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:var(--ck-balloon-arrow-height);border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:0}.ck.ck-balloon-panel[class*=arrow_n]:before{border-bottom-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-color:transparent;border-right-color:transparent;border-top-color:transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background);margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:0;border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-top-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.ck.ck-balloon-panel[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background);margin-bottom:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{right:25%;margin-right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{left:25%;margin-left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{right:25%;margin-right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}'},function(_,l,u){var g=u(1),h=u(48);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{height:100%;border-right:1px solid var(--ck-color-base-text);margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}"},function(_,l,u){var g=u(1),h=u(50);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports='.ck .ck-widget .ck-widget__type-around__button{display:block;position:absolute;overflow:hidden;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{position:absolute;top:50%;left:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{top:calc(-0.5*var(--ck-widget-outline-thickness));left:min(10%,30px);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(-0.5*var(--ck-widget-outline-thickness));right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;position:absolute;top:1px;left:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;position:absolute;left:0;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(-1*var(--ck-widget-outline-thickness));right:calc(-1*var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{top:calc(-1*var(--ck-widget-outline-thickness) - 1px);display:block}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(-1*var(--ck-widget-outline-thickness) - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{width:var(--ck-widget-type-around-button-size);height:var(--ck-widget-type-around-button-size);background:var(--ck-color-widget-type-around-button);border-radius:100px;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);opacity:0;pointer-events:none}.ck .ck-widget .ck-widget__type-around__button svg{width:10px;height:8px;transform:translate(-50%,-50%);transition:transform .5s ease;margin-top:1px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{width:calc(var(--ck-widget-type-around-button-size) - 2px);height:calc(var(--ck-widget-type-around-button-size) - 2px);border-radius:100px;background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3))}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{pointer-events:none;height:1px;animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;outline:1px solid hsla(0,0%,100%,.5);background:var(--ck-color-base-text)}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer{opacity:0}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}'},function(_,l,u){var g=u(1),h=u(52);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-resizer-size:10px;--ck-resizer-border-width:1px;--ck-resizer-border-radius:2px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-tooltip-offset:10px;--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);color:var(--ck-color-resizer-tooltip-text);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);font-size:var(--ck-font-size-tiny);display:block;padding:var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{top:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{top:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);outline-style:solid;outline-color:transparent;transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;background-color:var(--ck-color-widget-editable-focus-background)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{padding:4px;box-sizing:border-box;background-color:transparent;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;transform:translateY(-100%);left:calc(0px - var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}"},function(_,l,u){var g=u(1),h=u(54);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view>.ck.ck-label{width:100%;text-overflow:ellipsis;overflow:hidden}"},function(_,l,u){var g=u(1),h=u(56);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=":root{--ck-input-text-width:18em}.ck.ck-input-text{border-radius:0}.ck-rounded-corners .ck.ck-input-text,.ck.ck-input-text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-text{box-shadow:var(--ck-inner-shadow),0 0;background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-text-width);min-height:var(--ck-ui-component-min-height);transition:box-shadow .2s ease-in-out,border .2s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input-text[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-text-input-shake .3s ease both}.ck.ck-input-text.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),var(--ck-inner-shadow)}@keyframes ck-text-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}"},function(_,l,u){var g=u(1),h=u(58);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}.ck.ck-text-alternative-form{padding:var(--ck-spacing-standard)}.ck.ck-text-alternative-form:focus{outline:none}[dir=ltr] .ck.ck-text-alternative-form>:not(:first-child),[dir=rtl] .ck.ck-text-alternative-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-text-alternative-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-text-alternative-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-text-alternative-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-text-alternative-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-text-alternative-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-text-alternative-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(_,l,u){var g=u(1),h=u(60);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck .ck-balloon-rotator__navigation{display:flex;align-items:center;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}"},function(_,l,u){var g=u(1),h=u(62);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}"},function(_,l,u){var g=u(1),h=u(64);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck-content .image{display:table;clear:both;text-align:center;margin:1em auto}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:50px}"},function(_,l,u){var g=u(1),h=u(66);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-editor__editable .image{position:relative}.ck.ck-editor__editable .image .ck-progress-bar{position:absolute;top:0;left:0}.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}"},function(_,l,u){var g=u(1),h=u(68);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports='.ck-image-upload-complete-icon{display:block;position:absolute;top:10px;right:10px;border-radius:50%}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20px;--ck-image-upload-icon-width:2px}.ck-image-upload-complete-icon{width:var(--ck-image-upload-icon-size);height:var(--ck-image-upload-icon-size);opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;font-size:var(--ck-image-upload-icon-size);animation-delay:0ms,3s}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;box-sizing:border-box}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}'},function(_,l,u){var g=u(1),h=u(70);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports='.ck .ck-upload-placeholder-loader{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-upload-placeholder-loader{width:100%;height:100%}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-radius:50%;border-top:3px solid var(--ck-color-upload-placeholder-loader);border-right:2px solid transparent;animation:ck-upload-placeholder-loader 1s linear infinite}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}'},function(_,l){_.exports=".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}"},function(_,l,u){var g=u(1),h=u(73);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}"},function(_,l,u){var g=u(1),h=u(75);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=":root{--ck-image-style-spacing:1.5em}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}"},function(_,l,u){var g=u(1),h=u(77);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form{padding:var(--ck-spacing-standard)}.ck.ck-link-form:focus{outline:none}[dir=ltr] .ck.ck-link-form>:not(:first-child),[dir=rtl] .ck.ck-link-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}.ck.ck-link-form_layout-vertical{padding:0;min-width:var(--ck-input-text-width)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{padding:var(--ck-spacing-standard);margin:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border);width:50%}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin-left:0}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}"},function(_,l,u){var g=u(1),h=u(79);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions{padding:var(--ck-spacing-standard)}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);text-overflow:ellipsis;cursor:pointer;max-width:var(--ck-input-text-width);min-width:3em;text-align:center}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}.ck.ck-link-actions:focus{outline:none}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{min-width:0;max-width:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(_,l,u){var g=u(1),h=u(81);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports='.ck-media__wrapper .ck-media__placeholder{display:flex;flex-direction:column;align-items:center}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url:hover .ck-tooltip{visibility:visible;opacity:1}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{overflow:hidden;display:block}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{padding:calc(3*var(--ck-spacing-standard));background:var(--ck-color-base-foreground)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{min-width:var(--ck-media-embed-placeholder-icon-size);height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);background-position:50%;background-size:cover}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{width:100%;height:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);white-space:nowrap;text-align:center;font-style:italic;text-overflow:ellipsis}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-width:300px;max-height:380px}.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMDAzLjc4IDEuNjFoNDkuNjIxYzEuNjk0IDAgMy4xOS0uNzk4IDQuMTQ2LTIuMDM3eiIgZmlsbD0iIzVjODhjNSIvPjxwYXRoIGQ9Ik0yMjYuNzQyIDIyMi45ODhjLTkuMjY2IDAtMTYuNzc3IDcuMTctMTYuNzc3IDE2LjAxNC4wMDcgMi43NjIuNjYzIDUuNDc0IDIuMDkzIDcuODc1LjQzLjcwMy44MyAxLjQwOCAxLjE5IDIuMTA3LjMzMy41MDIuNjUgMS4wMDUuOTUgMS41MDguMzQzLjQ3Ny42NzMuOTU3Ljk4OCAxLjQ0IDEuMzEgMS43NjkgMi41IDMuNTAyIDMuNjM3IDUuMTY4Ljc5MyAxLjI3NSAxLjY4MyAyLjY0IDIuNDY2IDMuOTkgMi4zNjMgNC4wOTQgNC4wMDcgOC4wOTIgNC42IDEzLjkxNHYuMDEyYy4xODIuNDEyLjUxNi42NjYuODc5LjY2Ny40MDMtLjAwMS43NjgtLjMxNC45My0uNzk5LjYwMy01Ljc1NiAyLjIzOC05LjcyOSA0LjU4NS0xMy43OTQuNzgyLTEuMzUgMS42NzMtMi43MTUgMi40NjUtMy45OSAxLjEzNy0xLjY2NiAyLjMyOC0zLjQgMy42MzgtNS4xNjkuMzE1LS40ODIuNjQ1LS45NjIuOTg4LTEuNDM5LjMtLjUwMy42MTctMS4wMDYuOTUtMS41MDguMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0eiIgZmlsbD0iI2RkNGIzZSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48ZWxsaXBzZSByeT0iNS41NjQiIHJ4PSI1LjgyOCIgY3k9IjIzOS4wMDIiIGN4PSIyMjYuNzQyIiBmaWxsPSIjODAyZDI3IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0xOTAuMzAxIDIzNy4yODNjLTQuNjcgMC04LjQ1NyAzLjg1My04LjQ1NyA4LjYwNnMzLjc4NiA4LjYwNyA4LjQ1NyA4LjYwN2MzLjA0MyAwIDQuODA2LS45NTggNi4zMzctMi41MTYgMS41My0xLjU1NyAyLjA4Ny0zLjkxMyAyLjA4Ny02LjI5IDAtLjM2Mi0uMDIzLS43MjItLjA2NC0xLjA3OWgtOC4yNTd2My4wNDNoNC44NWMtLjE5Ny43NTktLjUzMSAxLjQ1LTEuMDU4IDEuOTg2LS45NDIuOTU4LTIuMDI4IDEuNTQ4LTMuOTAxIDEuNTQ4LTIuODc2IDAtNS4yMDgtMi4zNzItNS4yMDgtNS4yOTkgMC0yLjkyNiAyLjMzMi01LjI5OSA1LjIwOC01LjI5OSAxLjM5OSAwIDIuNjE4LjQwNyAzLjU4NCAxLjI5M2wyLjM4MS0yLjM4YzAtLjAwMi0uMDAzLS4wMDQtLjAwNC0uMDA1LTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTV6bTQuNDMgNS42NmwuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxNS4xODQgMjUxLjkyOWwtNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMjMzIDUuMjMzIDAgMDAuNDQ5LTIuMTIzdi0zMS4xNjVjLS40NjkuNjc1LS45MzQgMS4zNDktMS4zODIgMi4wMDUtLjc5MiAxLjI3NS0xLjY4MiAyLjY0LTIuNDY1IDMuOTktMi4zNDcgNC4wNjUtMy45ODIgOC4wMzgtNC41ODUgMTMuNzk0LS4xNjIuNDg1LS41MjcuNzk4LS45My43OTktLjM2My0uMDAxLS42OTctLjI1NS0uODc5LS42Njd2LS4wMTJjLS41OTMtNS44MjItMi4yMzctOS44Mi00LjYtMTMuOTE0LS43ODMtMS4zNS0xLjY3My0yLjcxNS0yLjQ2Ni0zLjk5LTEuMTM3LTEuNjY2LTIuMzI3LTMuNC0zLjYzNy01LjE2OWwtLjAwMi0uMDAzeiIgZmlsbD0iI2MzYzNjMyIvPjxwYXRoIGQ9Ik0yMTIuOTgzIDI0OC40OTVsLTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAwNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYuMjc1IDEzNi4yNzUgMCAwMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAwLS45ODktMS40NCAzNS4xMjcgMzUuMTI3IDAgMDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OXoiIGZpbGw9IiNmZGRjNGYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxMS45OTggMjYxLjA4M2wtNi4xNTIgNi4xNTEgMjQuMjY0IDI0LjI2NGguNzgxYTUuMjI3IDUuMjI3IDAgMDA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1ek00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}'},function(_,l,u){var g=u(1),h=u(83);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-media-form{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}.ck.ck-media-form{padding:var(--ck-spacing-standard)}.ck.ck-media-form:focus{outline:none}[dir=ltr] .ck.ck-media-form>:not(:first-child),[dir=rtl] .ck.ck-media-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-media-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-media-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-media-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-media-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-media-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-media-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-media-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-media-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-media-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(_,l,u){var g=u(1),h=u(85);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck-content .media{clear:both;margin:1em 0;display:block;min-width:15em}"},function(_,l,u){var g=u(1),h=u(87);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=":root{--ck-color-table-focused-cell-background:rgba(158,207,250,0.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}"},function(_,l,u){var g=u(1),h=u(89);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button .ck-tooltip{display:none}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-right-radius:unset;border-bottom-right-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-left-radius:unset;border-bottom-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-radius:0}.ck-rounded-corners [dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow,[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:unset;border-bottom-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-top-right-radius:unset;border-bottom-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-left-color:var(--ck-color-split-button-hover-border)}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-right-color:var(--ck-color-split-button-hover-border)}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}"},function(_,l,u){var g=u(1),h=u(91);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{width:var(--ck-insert-table-dropdown-box-width);height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-color-base-border);border-radius:1px}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-color-focus-border);background:var(--ck-color-focus-outer-shadow)}"},function(_,l,u){var g=u(1),h=u(93);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=':root{--ck-table-selected-cell-background:rgba(158,207,250,0.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{position:relative;caret-color:transparent;outline:unset;box-shadow:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{content:"";pointer-events:none;background-color:var(--ck-table-selected-cell-background);position:absolute;top:0;left:0;right:0;bottom:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget_selected{outline:unset}'},function(_,l,u){var g=u(1),h=u(95);"string"==typeof(h=h.__esModule?h.default:h)&&(h=[[_.i,h,""]]),g(h,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_.exports=h.locals||{}},function(_,l){_.exports=".ck-content .table{margin:1em auto;display:table}.ck-content .table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.ck-content .table table td,.ck-content .table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.ck-content .table table th{font-weight:700;background:hsla(0,0%,0%,5%)}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}"},function(_,l,u){"use strict";u.r(l),u.d(l,"default",function(){return zf});var g=u(3),h=g.a.Symbol,t=Object.prototype,x=t.hasOwnProperty,A=t.toString,U=h?h.toStringTag:void 0,k=Object.prototype.toString,q=h?h.toStringTag:void 0,Y=function(b){return null==b?void 0===b?"[object Undefined]":"[object Null]":q&&q in Object(b)?function(b){var r=x.call(b,U),c=b[U];try{b[U]=void 0;var p=!0}catch{}var v=A.call(b);return p&&(r?b[U]=c:delete b[U]),v}(b):function(b){return k.call(b)}(b)},$=function(b,r){return function(c){return b(r(c))}},X=$(Object.getPrototypeOf,Object),at=function(b){return null!=b&&"object"==typeof b},Tt=Function.prototype.toString,Et=Object.prototype.hasOwnProperty,Vt=Tt.call(Object),Bt=function(b){if(!at(b)||"[object Object]"!=Y(b))return!1;var r=X(b);if(null===r)return!0;var c=Et.call(r,"constructor")&&r.constructor;return"function"==typeof c&&c instanceof c&&Tt.call(c)==Vt},Ct=function(b,r){return b===r||b!=b&&r!=r},ht=function(b,r){for(var c=b.length;c--;)if(Ct(b[c][0],r))return c;return-1},ut=Array.prototype.splice;function It(b){var r=-1,c=null==b?0:b.length;for(this.clear();++r-1},It.prototype.set=function(b,r){var c=this.__data__,p=ht(c,b);return p<0?(++this.size,c.push([b,r])):c[p][1]=r,this};var ge,_e=It,Ht=function(b){var r=typeof b;return null!=b&&("object"==r||"function"==r)},Kt=function(b){if(!Ht(b))return!1;var r=Y(b);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},ue=g.a["__core-js_shared__"],ce=(ge=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||""))?"Symbol(src)_1."+ge:"",Te=Function.prototype.toString,ze=function(b){if(null!=b){try{return Te.call(b)}catch{}try{return b+""}catch{}}return""},fn=/^\[object .+?Constructor\]$/,_n=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kn=function(b){return!(!Ht(b)||function(b){return!!ce&&ce in b}(b))&&(Kt(b)?_n:fn).test(ze(b))},oi=function(b,r){var c=function(b,r){return b?.[r]}(b,r);return Kn(c)?c:void 0},Cn=oi(g.a,"Map"),Me=oi(Object,"create"),G=Object.prototype.hasOwnProperty,Pt=Object.prototype.hasOwnProperty;function oe(b){var r=-1,c=null==b?0:b.length;for(this.clear();++r-1&&b%1==0&&b-1&&b%1==0&&b<=9007199254740991},Be={};Be["[object Float32Array]"]=Be["[object Float64Array]"]=Be["[object Int8Array]"]=Be["[object Int16Array]"]=Be["[object Int32Array]"]=Be["[object Uint8Array]"]=Be["[object Uint8ClampedArray]"]=Be["[object Uint16Array]"]=Be["[object Uint32Array]"]=!0,Be["[object Arguments]"]=Be["[object Array]"]=Be["[object ArrayBuffer]"]=Be["[object Boolean]"]=Be["[object DataView]"]=Be["[object Date]"]=Be["[object Error]"]=Be["[object Function]"]=Be["[object Map]"]=Be["[object Number]"]=Be["[object Object]"]=Be["[object RegExp]"]=Be["[object Set]"]=Be["[object String]"]=Be["[object WeakMap]"]=!1;var Wn=function(b){return function(r){return b(r)}},ki=u(5),Hi=ki.a&&ki.a.isTypedArray,Ji=Hi?Wn(Hi):function(b){return at(b)&&an(b.length)&&!!Be[Y(b)]},Uo=Object.prototype.hasOwnProperty,qo=function(b,r){var c=yn(b),p=!c&&Oe(b),v=!c&&!p&&Object(pi.a)(b),Z=!c&&!p&&!v&&Ji(b),S=c||p||v||Z,I=S?function(b,r){for(var c=-1,p=Array(b);++c{this._setToTarget(r,v,c[v],p)})}}function Fa(b){return Ar(b,ps)}function ps(b){return Ur(b)?b:void 0}class Xo{constructor(r,c){this.source=r,this.name=c,this.path=[],this.stop=function b(){b.called=!0},this.off=function b(){b.called=!0}}}const qa=new Array(256).fill().map((b,r)=>("0"+r.toString(16)).slice(-2));function Pa(){const b=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0,c=4294967296*Math.random()>>>0,p=4294967296*Math.random()>>>0;return"e"+qa[b>>0&255]+qa[b>>8&255]+qa[b>>16&255]+qa[b>>24&255]+qa[r>>0&255]+qa[r>>8&255]+qa[r>>16&255]+qa[r>>24&255]+qa[c>>0&255]+qa[c>>8&255]+qa[c>>16&255]+qa[c>>24&255]+qa[p>>0&255]+qa[p>>8&255]+qa[p>>16&255]+qa[p>>24&255]}var ar={get(b){return"number"!=typeof b?this[b]||this.normal:b},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},En=(u(6),u(0));const Br=Symbol("listeningTo"),mr=Symbol("emitterId");var Fo={on(b,r,c={}){this.listenTo(this,b,r,c)},once(b,r,c){let p=!1;this.listenTo(this,b,function(v,...Z){p||(p=!0,v.off(),r.call(this,v,...Z))},c)},off(b,r){this.stopListening(this,b,r)},listenTo(b,r,c,p={}){let v,Z;this[Br]||(this[Br]={});const S=this[Br];Zr(b)||rr(b);const I=Zr(b);(v=S[I])||(v=S[I]={emitter:b,callbacks:{}}),(Z=v.callbacks[r])||(Z=v.callbacks[r]=[]),Z.push(c),function(xt,le){const Ie=wr(xt);if(Ie[le])return;let rn=le,vn=null;const wn=[];for(;""!==rn&&!Ie[rn];)Ie[rn]={callbacks:[],childEvents:[]},wn.push(Ie[rn]),vn&&Ie[rn].childEvents.push(vn),vn=rn,rn=rn.substr(0,rn.lastIndexOf(":"));if(""!==rn){for(const qn of wn)qn.callbacks=Ie[rn].callbacks.slice();Ie[rn].childEvents.push(vn)}}(b,r);const V=Or(b,r),it=ar.get(p.priority),dt={callback:c,priority:it};for(const xt of V){let le=!1;for(let Ie=0;Ie-1?Z(S,I.substr(0,I.lastIndexOf(":"))):null}(this,p);if(c.path.push(this),v){const Z=[c,...r];v=Array.from(v);for(let S=0;S{this._delegations||(this._delegations=new Map),b.forEach(p=>{const v=this._delegations.get(p);v?v.set(r,c):this._delegations.set(p,new Map([[r,c]]))})}}},stopDelegating(b,r){if(this._delegations)if(b)if(r){const c=this._delegations.get(b);c&&c.delete(r)}else this._delegations.delete(b);else this._delegations.clear()}};function rr(b,r){b[mr]||(b[mr]=r||Pa())}function Zr(b){return b[mr]}function wr(b){return b._events||Object.defineProperty(b,"_events",{value:{}}),b._events}function Or(b,r){const c=wr(b)[r];if(!c)return[];let p=[c.callbacks];for(let v=0;v{Object.getOwnPropertyNames(c).concat(Object.getOwnPropertySymbols(c)).forEach(p=>{if(p in b.prototype)return;const v=Object.getOwnPropertyDescriptor(c,p);v.enumerable=!1,Object.defineProperty(b.prototype,p,v)})})}class Ra{constructor(r={},c={}){const p=ta(r);if(p||(c=r),this._items=[],this._itemMap=new Map,this._idProperty=c.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],p)for(const v of r)this._items.push(v),this._itemMap.set(this._getItemIdBeforeAdding(v),v)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(r,c){return this.addMany([r],c)}addMany(r,c){if(void 0===c)c=this._items.length;else if(c>this._items.length||c<0)throw new En.b("collection-add-item-invalid-index",this);for(let p=0;p{this._setUpBindToBinding(p=>new c(p))},using:c=>{this._setUpBindToBinding("function"==typeof c?p=>c(p):p=>p[c])}}}_setUpBindToBinding(r){const c=this._bindToCollection,p=(v,Z,S)=>{const I=c._bindToCollection==this,V=c._bindToInternalToExternalMap.get(Z);if(I&&V)this._bindToExternalToInternalMap.set(Z,V),this._bindToInternalToExternalMap.set(V,Z);else{const it=r(Z);if(!it)return void this._skippedIndexesFromExternal.push(S);let dt=S;for(const xt of this._skippedIndexesFromExternal)S>xt&&dt--;for(const xt of c._skippedIndexesFromExternal)dt>=xt&&dt++;this._bindToExternalToInternalMap.set(Z,it),this._bindToInternalToExternalMap.set(it,Z),this.add(it,dt);for(let xt=0;xt{const I=this._bindToExternalToInternalMap.get(Z);I&&this.remove(I),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((V,it)=>(Sit&&V.push(it),V),[])})}_getItemIdBeforeAdding(r){const c=this._idProperty;let p;if(c in r){if(p=r[c],"string"!=typeof p)throw new En.b("collection-add-invalid-id",this);if(this.get(p))throw new En.b("collection-add-item-already-exists",this)}else r[c]=p=Pa();return p}_remove(r){let c,p,v,Z=!1;const S=this._idProperty;if("string"==typeof r?(p=r,v=this._itemMap.get(p),Z=!v,v&&(c=this._items.indexOf(v))):"number"==typeof r?(c=r,v=this._items[c],Z=!v,v&&(p=v[S])):(v=r,p=v[S],c=this._items.indexOf(v),Z=-1==c||!this._itemMap.get(p)),Z)throw new En.b("collection-remove-404: Item not found.",this);this._items.splice(c,1),this._itemMap.delete(p);const I=this._bindToInternalToExternalMap.get(v);return this._bindToInternalToExternalMap.delete(v),this._bindToExternalToInternalMap.delete(I),this.fire("remove",v,c),[v,c]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}Si(Ra,Fo);class va{constructor(r,c=[],p=[]){this._context=r,this._plugins=new Map,this._availablePlugins=new Map;for(const v of c)v.pluginName&&this._availablePlugins.set(v.pluginName,v);this._contextPlugins=new Map;for(const[v,Z]of p)this._contextPlugins.set(v,Z),this._contextPlugins.set(Z,v),v.pluginName&&this._availablePlugins.set(v.pluginName,v)}*[Symbol.iterator](){for(const r of this._plugins)"function"==typeof r[0]&&(yield r)}get(r){const c=this._plugins.get(r);if(!c){let v=r;throw"function"==typeof r&&(v=r.pluginName||r.name),new En.b("plugincollection-plugin-not-loaded: The requested plugin is not loaded.",this._context,{plugin:v})}return c}has(r){return this._plugins.has(r)}init(r,c=[]){const p=this,v=this._context,Z=new Set,S=[],I=Ie(r),V=Ie(c),it=function(rn){const vn=[];for(const wn of rn)le(wn)||vn.push(wn);return vn.length?vn:null}(r);if(it){const rn="plugincollection-plugin-not-found: Some plugins are not available and could not be loaded.";return console.error(Object(En.a)(rn),{plugins:it}),Promise.reject(new En.b(rn,v,{plugins:it}))}return Promise.all(I.map(function dt(rn){if(!V.includes(rn)&&!p._plugins.has(rn)&&!Z.has(rn))return(vn=rn,new Promise(wn=>{Z.add(vn),vn.requires&&vn.requires.forEach(mi=>{const xi=le(mi);if(vn.isContextPlugin&&!xi.isContextPlugin)throw new En.b("plugincollection-context-required: Context plugin can not require plugin which is not a context plugin",null,{plugin:xi.name,requiredBy:vn.name});if(c.includes(xi))throw new En.b("plugincollection-required: Cannot load a plugin because one of its dependencies is listed inthe `removePlugins` option.",v,{plugin:xi.name,requiredBy:vn.name});dt(xi)});const qn=p._contextPlugins.get(vn)||new vn(v);p._add(vn,qn),S.push(qn),wn()})).catch(vn=>{throw console.error(Object(En.a)("plugincollection-load: It was not possible to load the plugin."),{plugin:rn}),vn});var vn})).then(()=>xt(S,"init")).then(()=>xt(S,"afterInit")).then(()=>S);function xt(rn,vn){return rn.reduce((wn,qn)=>qn[vn]?p._contextPlugins.has(qn)?wn:wn.then(qn[vn].bind(qn)):wn,Promise.resolve())}function le(rn){return"function"==typeof rn?rn:p._availablePlugins.get(rn)}function Ie(rn){return rn.map(vn=>le(vn)).filter(vn=>!!vn)}}destroy(){const r=[];for(const[,c]of this)"function"!=typeof c.destroy||this._contextPlugins.has(c)||r.push(c.destroy());return Promise.all(r)}_add(r,c){this._plugins.set(r,c);const p=r.pluginName;if(p){if(this._plugins.has(p))throw new En.b("plugincollection-plugin-name-conflict: Two plugins with the same name were loaded.",null,{pluginName:p,plugin1:this._plugins.get(p).constructor,plugin2:r});this._plugins.set(p,c)}}}Si(va,Fo),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});const Ss=["ar","fa","he","ku","ug"];class oc{constructor(r={}){this.uiLanguage=r.uiLanguage||"en",this.contentLanguage=r.contentLanguage||this.uiLanguage,this.uiLanguageDirection=xs(this.uiLanguage),this.contentLanguageDirection=xs(this.contentLanguage),this.t=(c,p)=>this._t(c,p)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(r,c=[]){return Array.isArray(c)||(c=[c]),"string"==typeof r&&(r={string:r}),v=function Ga(b,r,c=1){if("number"!=typeof c)throw new En.b("translation-service-quantity-not-a-number: Expecting `quantity` to be a number.",null,{quantity:c});const p=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===p&&(b=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);const v=r.id||r.string;if(0===p||(V=b,!window.CKEDITOR_TRANSLATIONS[V]||!window.CKEDITOR_TRANSLATIONS[V].dictionary[v]))return 1!==c?r.plural:r.string;var V;const Z=window.CKEDITOR_TRANSLATIONS[b].dictionary,S=window.CKEDITOR_TRANSLATIONS[b].getPluralForm||(V=>1===V?0:1);if("string"==typeof Z[v])return Z[v];const I=Number(S(c));return Z[v][I]}(this.uiLanguage,r,r.plural?c[0]:1),Z=c,v.replace(/%(\d+)/g,(S,I)=>Ir.destroy())).then(()=>this.plugins.destroy())}_addEditor(r,c){if(this._contextOwner)throw new En.b("context-addEditor-private-context: Cannot add multiple editors to the context which is created by the editor.");this.editors.add(r),c&&(this._contextOwner=r)}_removeEditor(r){return this.editors.has(r)&&this.editors.remove(r),this._contextOwner===r?this.destroy():Promise.resolve()}_getEditorConfig(){const r={};for(const c of this.config.names())["plugins","removePlugins","extraPlugins"].includes(c)||(r[c]=this.config.get(c));return r}static create(r){return new Promise(c=>{const p=new this(r);c(p.initPlugins().then(()=>p))})}}function _r(b,r){const c=Math.min(b.length,r.length);for(let p=0;pr.data.length)throw new En.b("view-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(p<0||c+p>r.data.length)throw new En.b("view-textproxy-wrong-length: Given length value is incorrect.",this);this.data=r.data.substring(c,c+p),this.offsetInText=c}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(r){return"$textProxy"===r||"view:$textProxy"===r||"textProxy"===r||"view:textProxy"===r}getAncestors(r={includeSelf:!1,parentFirst:!1}){const c=[];let p=r.includeSelf?this.textNode:this.parent;for(;null!==p;)c[r.parentFirst?"push":"unshift"](p),p=p.parent;return c}}function aa(b){return ta(b)?new Map(b):function(r){const c=new Map;for(const p in r)c.set(p,r[p]);return c}(b)}class Xt{constructor(...r){this._patterns=[],this.add(...r)}add(...r){for(let c of r)("string"==typeof c||c instanceof RegExp)&&(c={name:c}),c.classes&&("string"==typeof c.classes||c.classes instanceof RegExp)&&(c.classes=[c.classes]),this._patterns.push(c)}match(...r){for(const c of r)for(const p of this._patterns){const v=Jt(c,p);if(v)return{element:c,pattern:p,match:v}}return null}matchAll(...r){const c=[];for(const p of r)for(const v of this._patterns){const Z=Jt(p,v);Z&&c.push({element:p,pattern:v,match:Z})}return c.length>0?c:null}getElementName(){if(1!==this._patterns.length)return null;const r=this._patterns[0],c=r.name;return"function"==typeof r||!c||c instanceof RegExp?null:c}}function Jt(b,r){if("function"==typeof r)return r(b);const c={};return r.name&&(c.name=(v=b.name,(p=r.name)instanceof RegExp?p.test(v):p===v),!c.name)||r.attributes&&(c.attributes=function(p,v){const Z=[];for(const S in p){const I=p[S];if(!v.hasAttribute(S))return null;{const V=v.getAttribute(S);if(!0===I)Z.push(S);else if(I instanceof RegExp){if(!I.test(V))return null;Z.push(S)}else{if(V!==I)return null;Z.push(S)}}}return Z}(r.attributes,b),!c.attributes)?null:!(r.classes&&(c.classes=function(p,v){const Z=[];for(const S of p)if(S instanceof RegExp){const I=v.getClassNames();for(const V of I)S.test(V)&&Z.push(V);if(0===Z.length)return null}else{if(!v.hasClass(S))return null;Z.push(S)}return Z}(r.classes,b),!c.classes))&&!(r.styles&&(c.styles=function(p,v){const Z=[];for(const S in p){const I=p[S];if(!v.hasStyle(S))return null;{const V=v.getStyle(S);if(I instanceof RegExp){if(!I.test(V))return null;Z.push(S)}else{if(V!==I)return null;Z.push(S)}}}return Z}(r.styles,b),!c.styles))&&c;var p,v}var kt=function(b){return"symbol"==typeof b||at(b)&&"[object Symbol]"==Y(b)},et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ai=/^\w*$/;function Eo(b,r){if("function"!=typeof b||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var c=function(){var p=arguments,v=r?r.apply(this,p):p[0],Z=c.cache;if(Z.has(v))return Z.get(v);var S=b.apply(this,p);return c.cache=Z.set(v,S)||Z,S};return c.cache=new(Eo.Cache||cn),c}Eo.Cache=cn;var b,r,c,ks=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ha=/\\(\\)?/g,Ya=(b=function(b){var r=[];return 46===b.charCodeAt(0)&&r.push(""),b.replace(ks,function(c,p,v,Z){r.push(v?Z.replace(Ha,"$1"):p||c)}),r},r=Eo(b,function(p){return 500===c.size&&c.clear(),p}),c=r.cache,r),ea=h?h.prototype:void 0,Bs=ea?ea.toString:void 0,rd=function b(r){if("string"==typeof r)return r;if(yn(r))return function(b,r){for(var c=-1,p=null==b?0:b.length,v=Array(p);++cv?0:v+r),(c=c>v?v:c)<0&&(c+=v),v=r>c?0:c-r>>>0,r>>>=0;for(var Z=Array(v);++p0){if(++r>=800)return arguments[0]}else r=0;return b.apply(void 0,arguments)}}(Ii),ui=function(b,r){return zn(function(b,r,c){return r=Ho(void 0===r?b.length-1:r,0),function(){for(var p=arguments,v=-1,Z=Ho(p.length-r,0),S=Array(Z);++v1?c[v-1]:void 0,S=v>2?c[2]:void 0;for(Z=b.length>3&&"function"==typeof Z?(v--,Z):void 0,S&&function(b,r,c){if(!Ht(c))return!1;var p=typeof r;return!!("number"==p?Q(c)&&tn(r,c.length):"string"==p&&r in c)&&Ct(c[r],b)}(c[0],c[1],S)&&(Z=v<3?void 0:Z,v=1),r=Object(r);++pp===r);return Array.isArray(c)}set(r,c){if(Ht(r))for(const[p,v]of Object.entries(r))this._styleProcessor.toNormalizedForm(p,v,this._styles);else this._styleProcessor.toNormalizedForm(r,c,this._styles)}remove(r){const c=ul(r);(function(b,r){null==b||Md(b,r)})(this._styles,c),delete this._styles[r],this._cleanEmptyObjectsOnPath(c)}getNormalized(r){return this._styleProcessor.getNormalized(r,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map(r=>r.join(":")).sort().join(";")+";"}getAsString(r){if(this.isEmpty)return;if(this._styles[r]&&!Ht(this._styles[r]))return this._styles[r];const c=this._styleProcessor.getReducedForm(r,this._styles).find(([p])=>p===r);return Array.isArray(c)?c[1]:void 0}getStyleNames(){return this.isEmpty?[]:this._getStylesEntries().map(([r])=>r)}clear(){this._styles={}}_getStylesEntries(){const r=[],c=Object.keys(this._styles);for(const p of c)r.push(...this._styleProcessor.getReducedForm(p,this._styles));return r}_cleanEmptyObjectsOnPath(r){const c=r.split(".");if(!(c.length>1))return;const p=c.splice(0,c.length-1).join("."),v=ys(this._styles,p);!v||!Array.from(Object.keys(v)).length&&this.remove(p)}}class sc{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(r,c,p){if(Ht(c))ua(p,ul(r),c);else if(this._normalizers.has(r)){const v=this._normalizers.get(r),{path:Z,value:S}=v(c);ua(p,Z,S)}else ua(p,r,c)}getNormalized(r,c){if(!r)return so({},c);if(void 0!==c[r])return c[r];if(this._extractors.has(r)){const p=this._extractors.get(r);if("string"==typeof p)return ys(c,p);const v=p(r,c);if(v)return v}return ys(c,ul(r))}getReducedForm(r,c){const p=this.getNormalized(r,c);return void 0===p?[]:this._reducers.has(r)?this._reducers.get(r)(p):[[r,p]]}getRelatedStyles(r){return this._consumables.get(r)||[]}setNormalizer(r,c){this._normalizers.set(r,c)}setExtractor(r,c){this._extractors.set(r,c)}setReducer(r,c){this._reducers.set(r,c)}setStyleRelation(r,c){this._mapStyleNames(r,c);for(const p of c)this._mapStyleNames(p,[r])}_mapStyleNames(r,c){this._consumables.has(r)||this._consumables.set(r,[]),this._consumables.get(r).push(...c)}}function ul(b){return b.replace("-",".")}function ua(b,r,c){let p=c;Ht(c)&&(p=so({},ys(b,r),c)),wa(b,r,p)}class ts extends xo{constructor(r,c,p,v){if(super(r),this.name=c,this._attrs=function(Z){Z=aa(Z);for(const[S,I]of Z)null===I?Z.delete(S):"string"!=typeof I&&Z.set(S,String(I));return Z}(p),this._children=[],v&&this._insertChild(0,v),this._classes=new Set,this._attrs.has("class")){const Z=this._attrs.get("class");dl(this._classes,Z),this._attrs.delete("class")}this._styles=new co(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}is(r,c=null){return c?c===this.name&&("element"===r||"view:element"===r):"element"===r||"view:element"===r||"node"===r||"view:node"===r}getChild(r){return this._children[r]}getChildIndex(r){return this._children.indexOf(r)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(r){if("class"==r)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==r){const c=this._styles.toString();return""==c?void 0:c}return this._attrs.get(r)}hasAttribute(r){return"class"==r?this._classes.size>0:"style"==r?!this._styles.isEmpty:this._attrs.has(r)}isSimilar(r){if(!(r instanceof ts))return!1;if(this===r)return!0;if(this.name!=r.name||this._attrs.size!==r._attrs.size||this._classes.size!==r._classes.size||this._styles.size!==r._styles.size)return!1;for(const[c,p]of this._attrs)if(!r._attrs.has(c)||r._attrs.get(c)!==p)return!1;for(const c of this._classes)if(!r._classes.has(c))return!1;for(const c of this._styles.getStyleNames())if(!r._styles.has(c)||r._styles.getAsString(c)!==this._styles.getAsString(c))return!1;return!0}hasClass(...r){for(const c of r)if(!this._classes.has(c))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(r){return this._styles.getAsString(r)}getNormalizedStyle(r){return this._styles.getNormalized(r)}getStyleNames(){return this._styles.getStyleNames()}hasStyle(...r){for(const c of r)if(!this._styles.has(c))return!1;return!0}findAncestor(...r){const c=new Xt(...r);let p=this.parent;for(;p;){if(c.match(p))return p;p=p.parent}return null}getCustomProperty(r){return this._customProperties.get(r)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const r=Array.from(this._classes).sort().join(","),c=this._styles.toString(),p=Array.from(this._attrs).map(v=>`${v[0]}="${v[1]}"`).sort().join(" ");return this.name+(""==r?"":` class="${r}"`)+(c?` style="${c}"`:"")+(""==p?"":" "+p)}_clone(r=!1){const c=[];if(r)for(const v of this.getChildren())c.push(v._clone(r));const p=new this.constructor(this.document,this.name,this._attrs,c);return p._classes=new Set(this._classes),p._styles.set(this._styles.getNormalized()),p._customProperties=new Map(this._customProperties),p.getFillerOffset=this.getFillerOffset,p}_appendChild(r){return this._insertChild(this.childCount,r)}_insertChild(r,c){this._fireChange("children",this);let p=0;const v=(Z=this.document,"string"==typeof(S=c)?[new fa(Z,S)]:(ta(S)||(S=[S]),Array.from(S).map(I=>"string"==typeof I?new fa(Z,I):I instanceof tr?new fa(Z,I.data):I)));var Z,S;for(const Z of v)null!==Z.parent&&Z._remove(),Z.parent=this,Z.document=this.document,this._children.splice(r,0,Z),r++,p++;return p}_removeChildren(r,c=1){this._fireChange("children",this);for(let p=r;p0&&(this._classes.clear(),!0):"style"==r?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(r)}_addClass(r){this._fireChange("attributes",this),(r=Array.isArray(r)?r:[r]).forEach(c=>this._classes.add(c))}_removeClass(r){this._fireChange("attributes",this),(r=Array.isArray(r)?r:[r]).forEach(c=>this._classes.delete(c))}_setStyle(r,c){this._fireChange("attributes",this),this._styles.set(r,c)}_removeStyle(r){this._fireChange("attributes",this),(r=Array.isArray(r)?r:[r]).forEach(c=>this._styles.remove(c))}_setCustomProperty(r,c){this._customProperties.set(r,c)}_removeCustomProperty(r){return this._customProperties.delete(r)}}function dl(b,r){const c=r.split(/\s+/);b.clear(),c.forEach(p=>b.add(p))}class ba extends ts{constructor(r,c,p,v){super(r,c,p,v),this.getFillerOffset=Fl}is(r,c=null){return c?c===this.name&&("containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r):"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}}function Fl(){const b=[...this.getChildren()],r=b[this.childCount-1];if(r&&r.is("element","br"))return this.childCount;for(const c of b)if(!c.is("uiElement"))return null;return this.childCount}var At=Gi(function(b,r){Xe(r,Zi(r),b)});const re=Symbol("observableProperties"),Nt=Symbol("boundObservables"),Fe=Symbol("boundProperties"),Un={set(b,r){if(Ht(b))return void Object.keys(b).forEach(p=>{this.set(p,b[p])},this);ae(this);const c=this[re];if(b in this&&!c.has(b))throw new En.b("observable-set-cannot-override: Cannot override an existing property.",this);Object.defineProperty(this,b,{enumerable:!0,configurable:!0,get:()=>c.get(b),set(p){const v=c.get(b);let Z=this.fire("set:"+b,b,p,v);void 0===Z&&(Z=p),v===Z&&c.has(b)||(c.set(b,Z),this.fire("change:"+b,b,Z,v))}}),this[b]=r},bind(...b){if(!b.length||!mn(b))throw new En.b("observable-bind-wrong-properties: All properties must be strings.",this);if(new Set(b).size!==b.length)throw new En.b("observable-bind-duplicate-properties: Properties must be unique.",this);ae(this);const r=this[Fe];b.forEach(p=>{if(r.has(p))throw new En.b("observable-bind-rebind: Cannot bind the same property more than once.",this)});const c=new Map;return b.forEach(p=>{const v={property:p,to:[]};r.set(p,v),c.set(p,v)}),{to:fe,toMany:Je,_observable:this,_bindProperties:b,_to:[],_bindings:c}},unbind(...b){if(!this[re])return;const r=this[Fe],c=this[Nt];if(b.length){if(!mn(b))throw new En.b("observable-unbind-wrong-properties: Properties must be strings.",this);b.forEach(p=>{const v=r.get(p);if(!v)return;let Z,S,I,V;v.to.forEach(it=>{Z=it[0],S=it[1],I=c.get(Z),V=I[S],V.delete(v),V.size||delete I[S],Object.keys(I).length||(c.delete(Z),this.stopListening(Z,"change"))}),r.delete(p)})}else c.forEach((p,v)=>{this.stopListening(v,"change")}),c.clear(),r.clear()},decorate(b){const r=this[b];if(!r)throw new En.b("observablemixin-cannot-decorate-undefined: Cannot decorate an undefined method.",this,{object:this,methodName:b});this.on(b,(c,p)=>{c.return=r.apply(this,p)}),this[b]=function(...c){return this.fire(b,c)}}};At(Un,Fo);var Ut=Un;function ae(b){b[re]||(Object.defineProperty(b,re,{value:new Map}),Object.defineProperty(b,Nt,{value:new Map}),Object.defineProperty(b,Fe,{value:new Map}))}function fe(...b){const r=function(...Z){if(!Z.length)throw new En.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);const S={to:[]};let I;return"function"==typeof Z[Z.length-1]&&(S.callback=Z.pop()),Z.forEach(V=>{if("string"==typeof V)I.properties.push(V);else{if("object"!=typeof V)throw new En.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);I={observable:V,properties:[]},S.to.push(I)}}),S}(...b),c=Array.from(this._bindings.keys()),p=c.length;if(!r.callback&&r.to.length>1)throw new En.b("observable-bind-to-no-callback: Binding multiple observables only possible with callback.",this);if(p>1&&r.callback)throw new En.b("observable-bind-to-extra-callback: Cannot bind multiple properties and use a callback in one binding.",this);var v;r.to.forEach(Z=>{if(Z.properties.length&&Z.properties.length!==p)throw new En.b("observable-bind-to-properties-length: The number of properties must match.",this);Z.properties.length||(Z.properties=this._bindProperties)}),this._to=r.to,r.callback&&(this._bindings.get(c[0]).callback=r.callback),v=this._observable,this._to.forEach(Z=>{const S=v[Nt];let I;S.get(Z.observable)||v.listenTo(Z.observable,"change",(V,it)=>{I=S.get(Z.observable)[it],I&&I.forEach(dt=>{Nn(v,dt.property)})})}),function(Z){let S;Z._bindings.forEach((I,V)=>{Z._to.forEach(it=>{S=it.properties[I.callback?0:Z._bindProperties.indexOf(V)],I.to.push([it.observable,S]),function(dt,xt,le,Ie){const rn=dt[Nt],vn=rn.get(le),wn=vn||{};wn[Ie]||(wn[Ie]=new Set),wn[Ie].add(xt),vn||rn.set(le,wn)}(Z._observable,I,it.observable,S)})})}(this),this._bindProperties.forEach(Z=>{Nn(this._observable,Z)})}function Je(b,r,c){if(this._bindings.size>1)throw new En.b("observable-bind-to-many-not-one-binding: Cannot bind multiple properties with toMany().",this);this.to(...function(p,v){const Z=p.map(S=>[S,v]);return Array.prototype.concat.apply([],Z)}(b,r),c)}function mn(b){return b.every(r=>"string"==typeof r)}function Nn(b,r){const c=b[Fe].get(r);let p;c.callback?p=c.callback.apply(b,c.to.map(v=>v[0][v[1]])):(p=c.to[0],p=p[0][p[1]]),Object.prototype.hasOwnProperty.call(b,r)?b[r]=p:b.set(r,p)}class Fn extends ba{constructor(r,c,p,v){super(r,c,p,v),this.set("isReadOnly",!1),this.set("isFocused",!1),this.bind("isReadOnly").to(r),this.bind("isFocused").to(r,"isFocused",Z=>Z&&r.selection.editableElement==this),this.listenTo(r.selection,"change",()=>{this.isFocused=r.isFocused&&r.selection.editableElement==this})}is(r,c=null){return c?c===this.name&&("editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r):"editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}destroy(){this.stopListening()}}Si(Fn,Ut);const ti=Symbol("rootName");class ii extends Fn{constructor(r,c){super(r,c),this.rootName="main"}is(r,c=null){return c?c===this.name&&("rootElement"===r||"view:rootElement"===r||"editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r):"rootElement"===r||"view:rootElement"===r||"editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}get rootName(){return this.getCustomProperty(ti)}set rootName(r){this._setCustomProperty(ti,r)}set _name(r){this.name=r}}class Ri{constructor(r={}){if(!r.boundaries&&!r.startPosition)throw new En.b("view-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",null);if(r.direction&&"forward"!=r.direction&&"backward"!=r.direction)throw new En.b("view-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",r.startPosition,{direction:r.direction});this.boundaries=r.boundaries||null,this.position=jn._createAt(r.startPosition?r.startPosition:r.boundaries["backward"==r.direction?"end":"start"]),this.direction=r.direction||"forward",this.singleCharacters=!!r.singleCharacters,this.shallow=!!r.shallow,this.ignoreElementEnd=!!r.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(r){let c,p,v;do{v=this.position,({done:c,value:p}=this.next())}while(!c&&r(p));c||(this.position=v)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let r=this.position.clone();const c=this.position,p=r.parent;if(null===p.parent&&r.offset===p.childCount)return{done:!0};if(p===this._boundaryEndParent&&r.offset==this.boundaries.end.offset)return{done:!0};let v;if(p instanceof fa){if(r.isAtEnd)return this.position=jn._createAfter(p),this._next();v=p.data[r.offset]}else v=p.getChild(r.offset);if(v instanceof ts)return this.shallow?r.offset++:r=new jn(v,0),this.position=r,this._formatReturnValue("elementStart",v,c,r,1);if(v instanceof fa){if(this.singleCharacters)return r=new jn(v,0),this.position=r,this._next();{let Z,S=v.data.length;return v==this._boundaryEndParent?(S=this.boundaries.end.offset,Z=new tr(v,0,S),r=jn._createAfter(Z)):(Z=new tr(v,0,v.data.length),r.offset++),this.position=r,this._formatReturnValue("text",Z,c,r,S)}}if("string"==typeof v){let Z;Z=this.singleCharacters?1:(p===this._boundaryEndParent?this.boundaries.end.offset:p.data.length)-r.offset;const S=new tr(p,r.offset,Z);return r.offset+=Z,this.position=r,this._formatReturnValue("text",S,c,r,Z)}return r=jn._createAfter(p),this.position=r,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",p,c,r)}_previous(){let r=this.position.clone();const c=this.position,p=r.parent;if(null===p.parent&&0===r.offset)return{done:!0};if(p==this._boundaryStartParent&&r.offset==this.boundaries.start.offset)return{done:!0};let v;if(p instanceof fa){if(r.isAtStart)return this.position=jn._createBefore(p),this._previous();v=p.data[r.offset-1]}else v=p.getChild(r.offset-1);if(v instanceof ts)return this.shallow?(r.offset--,this.position=r,this._formatReturnValue("elementStart",v,c,r,1)):(r=new jn(v,v.childCount),this.position=r,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",v,c,r));if(v instanceof fa){if(this.singleCharacters)return r=new jn(v,v.data.length),this.position=r,this._previous();{let Z,S=v.data.length;if(v==this._boundaryStartParent){const I=this.boundaries.start.offset;Z=new tr(v,I,v.data.length-I),S=Z.data.length,r=jn._createBefore(Z)}else Z=new tr(v,0,v.data.length),r.offset--;return this.position=r,this._formatReturnValue("text",Z,c,r,S)}}if("string"==typeof v){let Z;Z=this.singleCharacters?1:r.offset-(p===this._boundaryStartParent?this.boundaries.start.offset:0),r.offset-=Z;const S=new tr(p,r.offset,Z);return this.position=r,this._formatReturnValue("text",S,c,r,Z)}return r=jn._createBefore(p),this.position=r,this._formatReturnValue("elementStart",p,c,r,1)}_formatReturnValue(r,c,p,v,Z){return c instanceof tr&&(c.offsetInText+c.data.length==c.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?p=jn._createAfter(c.textNode):(v=jn._createAfter(c.textNode),this.position=v)),0===c.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?p=jn._createBefore(c.textNode):(v=jn._createBefore(c.textNode),this.position=v))),{done:!1,value:{type:r,item:c,previousPosition:p,nextPosition:v,length:Z}}}}class jn{constructor(r,c){this.parent=r,this.offset=c}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const r=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===r}get root(){return this.parent.root}get editableElement(){let r=this.parent;for(;!(r instanceof Fn);){if(!r.parent)return null;r=r.parent}return r}getShiftedBy(r){const c=jn._createAt(this),p=c.offset+r;return c.offset=p<0?0:p,c}getLastMatchingPosition(r,c={}){c.startPosition=this;const p=new Ri(c);return p.skip(r),p.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(r){const c=this.getAncestors(),p=r.getAncestors();let v=0;for(;c[v]==p[v]&&c[v];)v++;return 0===v?null:c[v-1]}is(r){return"position"===r||"view:position"===r}isEqual(r){return this.parent==r.parent&&this.offset==r.offset}isBefore(r){return"before"==this.compareWith(r)}isAfter(r){return"after"==this.compareWith(r)}compareWith(r){if(this.root!==r.root)return"different";if(this.isEqual(r))return"same";const c=this.parent.is("node")?this.parent.getPath():[],p=r.parent.is("node")?r.parent.getPath():[];c.push(this.offset),p.push(r.offset);const v=_r(c,p);switch(v){case"prefix":return"before";case"extension":return"after";default:return c[v]0?new this(p,v):new this(v,p)}static _createIn(r){return this._createFromParentsAndOffsets(r,0,r,r.childCount)}static _createOn(r){const c=r.is("$textProxy")?r.offsetSize:1;return this._createFromPositionAndShift(jn._createBefore(r),c)}}function yo(b){return!(!b.item.is("attributeElement")&&!b.item.is("uiElement"))}function po(b){let r=0;for(const c of b)r++;return r}class Do{constructor(r=null,c,p){this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(r,c,p)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const r=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?r.end:r.start).clone()}get focus(){if(!this._ranges.length)return null;const r=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?r.start:r.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const r of this._ranges)yield r.clone()}getFirstRange(){let r=null;for(const c of this._ranges)r&&!c.start.isBefore(r.start)||(r=c);return r?r.clone():null}getLastRange(){let r=null;for(const c of this._ranges)r&&!c.end.isAfter(r.end)||(r=c);return r?r.clone():null}getFirstPosition(){const r=this.getFirstRange();return r?r.start.clone():null}getLastPosition(){const r=this.getLastRange();return r?r.end.clone():null}isEqual(r){if(this.isFake!=r.isFake||this.isFake&&this.fakeSelectionLabel!=r.fakeSelectionLabel||this.rangeCount!=r.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(r.anchor)||!this.focus.isEqual(r.focus))return!1;for(const c of this._ranges){let p=!1;for(const v of r._ranges)if(c.isEqual(v)){p=!0;break}if(!p)return!1}return!0}isSimilar(r){if(this.isBackward!=r.isBackward)return!1;const c=po(this.getRanges());if(c!=po(r.getRanges()))return!1;if(0==c)return!0;for(let p of this.getRanges()){p=p.getTrimmed();let v=!1;for(let Z of r.getRanges())if(Z=Z.getTrimmed(),p.start.isEqual(Z.start)&&p.end.isEqual(Z.end)){v=!0;break}if(!v)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(r,c,p){if(null===r)this._setRanges([]),this._setFakeOptions(c);else if(r instanceof Do||r instanceof er)this._setRanges(r.getRanges(),r.isBackward),this._setFakeOptions({fake:r.isFake,label:r.fakeSelectionLabel});else if(r instanceof vi)this._setRanges([r],c&&c.backward),this._setFakeOptions(c);else if(r instanceof jn)this._setRanges([new vi(r)]),this._setFakeOptions(c);else if(r instanceof xo){const v=!!p&&!!p.backward;let Z;if(void 0===c)throw new En.b("view-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",this);Z="in"==c?vi._createIn(r):"on"==c?vi._createOn(r):new vi(jn._createAt(r,c)),this._setRanges([Z],v),this._setFakeOptions(p)}else{if(!ta(r))throw new En.b("view-selection-setTo-not-selectable: Cannot set selection to given place.",this);this._setRanges(r,c&&c.backward),this._setFakeOptions(c)}this.fire("change")}setFocus(r,c){if(null===this.anchor)throw new En.b("view-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",this);const p=jn._createAt(r,c);if("same"==p.compareWith(this.focus))return;const v=this.anchor;this._ranges.pop(),"before"==p.compareWith(v)?this._addRange(new vi(p,v),!0):this._addRange(new vi(v,p)),this.fire("change")}is(r){return"selection"===r||"view:selection"===r}_setRanges(r,c=!1){r=Array.from(r),this._ranges=[];for(const p of r)this._addRange(p);this._lastRangeBackward=!!c}_setFakeOptions(r={}){this._isFake=!!r.fake,this._fakeSelectionLabel=r.fake&&r.label||""}_addRange(r,c=!1){if(!(r instanceof vi))throw new En.b("view-selection-add-range-not-range: Selection range set to an object that is not an instance of view.Range",this);this._pushRange(r),this._lastRangeBackward=!!c}_pushRange(r){for(const c of this._ranges)if(r.isIntersecting(c))throw new En.b("view-selection-range-intersects: Trying to add a range that intersects with another range from selection.",this,{addedRange:r,intersectingRange:c});this._ranges.push(new vi(r.start,r.end))}}Si(Do,Fo);class er{constructor(r=null,c,p){this._selection=new Do,this._selection.delegate("change").to(this),this._selection.setTo(r,c,p)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(r){return this._selection.isEqual(r)}isSimilar(r){return this._selection.isSimilar(r)}is(r){return"selection"===r||"documentSelection"==r||"view:selection"==r||"view:documentSelection"==r}_setTo(r,c,p){this._selection.setTo(r,c,p)}_setFocus(r,c){this._selection.setFocus(r,c)}}Si(er,Fo);class br{constructor(r){this.selection=new er,this.roots=new Ra({idProperty:"rootName"}),this.stylesProcessor=r,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(r="main"){return this.roots.get(r)}registerPostFixer(r){this._postFixers.add(r)}destroy(){this.roots.map(r=>r.destroy()),this.stopListening()}_callPostFixers(r){let c=!1;do{for(const p of this._postFixers)if(c=p(r),c)break}while(c)}}Si(br,Ut);class Mr extends ts{constructor(r,c,p,v){super(r,c,p,v),this.getFillerOffset=nr,this._priority=10,this._id=null,this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new En.b("attribute-element-get-elements-with-same-id-no-id: Cannot get elements with the same id for an attribute element without id.",this);return new Set(this._clonesGroup)}is(r,c=null){return c?c===this.name&&("attributeElement"===r||"view:attributeElement"===r||"element"===r||"view:element"===r):"attributeElement"===r||"view:attributeElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}isSimilar(r){return null!==this.id||null!==r.id?this.id===r.id:super.isSimilar(r)&&this.priority==r.priority}_clone(r){const c=super._clone(r);return c._priority=this._priority,c._id=this._id,c}}function nr(){if(ja(this))return null;let b=this.parent;for(;b&&b.is("attributeElement");){if(ja(b)>1)return null;b=b.parent}return!b||ja(b)>1?null:this.childCount}function ja(b){return Array.from(b.getChildren()).filter(r=>!r.is("uiElement")).length}Mr.DEFAULT_PRIORITY=10;class sr extends ts{constructor(r,c,p,v){super(r,c,p,v),this.getFillerOffset=es}is(r,c=null){return c?c===this.name&&("emptyElement"===r||"view:emptyElement"===r||"element"===r||"view:element"===r):"emptyElement"===r||"view:emptyElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}_insertChild(r,c){if(c&&(c instanceof xo||Array.from(c).length>0))throw new En.b("view-emptyelement-cannot-add: Cannot add child nodes to EmptyElement instance.",[this,c])}}function es(){return null}const ns=navigator.userAgent.toLowerCase();var Dr_isMac=function(b){return b.indexOf("macintosh")>-1}(ns),Dr_isGecko=function(b){return!!b.match(/gecko\/\d+/)}(ns),Dr_isSafari=function(b){return b.indexOf(" applewebkit/")>-1&&-1===b.indexOf("chrome")}(ns),Dr_isAndroid=function(b){return b.indexOf("android")>-1}(ns);!function(){let b=!1;try{b=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch{}}();const Lu={"\u2318":"ctrl","\u21e7":"shift","\u2325":"alt"},ha={ctrl:"\u2318",shift:"\u21e7",alt:"\u2325"},mo=function(){const b={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,cmd:1114112,shift:2228224,alt:4456448};for(let r=65;r<=90;r++)b[String.fromCharCode(r).toLowerCase()]=r;for(let r=48;r<=57;r++)b[r-48]=r;for(let r=112;r<=123;r++)b["f"+(r-111)]=r;return b}();function na(b){let r;if("string"==typeof b){if(r=mo[b.toLowerCase()],!r)throw new En.b("keyboard-unknown-key: Unknown key name.",null,{key:b})}else r=b.keyCode+(b.altKey?mo.alt:0)+(b.ctrlKey?mo.ctrl:0)+(b.shiftKey?mo.shift:0);return r}function Dd(b){return"string"==typeof b&&(b=Pd(b)),b.map(r=>"string"==typeof r?na(r):r).reduce((r,c)=>c+r,0)}function cd(b){return Dr_isMac?Pd(b).map(r=>ha[r.toLowerCase()]||r).reduce((r,c)=>r.slice(-1)in Lu?r+c:r+"+"+c):b}function Il(b){return b==mo.arrowright||b==mo.arrowleft||b==mo.arrowup||b==mo.arrowdown}function Js(b,r){const c="ltr"===r;switch(b){case mo.arrowleft:return c?"left":"right";case mo.arrowright:return c?"right":"left";case mo.arrowup:return"up";case mo.arrowdown:return"down"}}function qu(b,r){const c=Js(b,r);return"down"===c||"right"===c}function Pd(b){return b.split(/\s*\+\s*/)}class pl extends ts{constructor(r,c,p,v){super(r,c,p,v),this.getFillerOffset=Sd}is(r,c=null){return c?c===this.name&&("uiElement"===r||"view:uiElement"===r||"element"===r||"view:element"===r):"uiElement"===r||"view:uiElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}_insertChild(r,c){if(c&&(c instanceof xo||Array.from(c).length>0))throw new En.b("view-uielement-cannot-add: Cannot add child nodes to UIElement instance.",this)}render(r){return this.toDomElement(r)}toDomElement(r){const c=r.createElement(this.name);for(const p of this.getAttributeKeys())c.setAttribute(p,this.getAttribute(p));return c}}function Sd(){return null}class _l extends ts{constructor(r,c,p,v){super(r,c,p,v),this.getFillerOffset=ms}is(r,c=null){return c?c===this.name&&("rawElement"===r||"view:rawElement"===r||"element"===r||"view:element"===r):"rawElement"===r||"view:rawElement"===r||r===this.name||r==="view:"+this.name||"element"===r||"view:element"===r||"node"===r||"view:node"===r}_insertChild(r,c){if(c&&(c instanceof xo||Array.from(c).length>0))throw new En.b("view-rawelement-cannot-add: Cannot add child nodes to a RawElement instance.",[this,c])}}function ms(){return null}class Ic{constructor(r,c){this.document=r,this._children=[],c&&this._insertChild(0,c)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(r){return"documentFragment"===r||"view:documentFragment"===r}_appendChild(r){return this._insertChild(this.childCount,r)}getChild(r){return this._children[r]}getChildIndex(r){return this._children.indexOf(r)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(r,c){this._fireChange("children",this);let p=0;const v=(Z=this.document,"string"==typeof(S=c)?[new fa(Z,S)]:(ta(S)||(S=[S]),Array.from(S).map(I=>"string"==typeof I?new fa(Z,I):I instanceof tr?new fa(Z,I.data):I)));var Z,S;for(const Z of v)null!==Z.parent&&Z._remove(),Z.parent=this,this._children.splice(r,0,Z),r++,p++;return p}_removeChildren(r,c=1){this._fireChange("children",this);for(let p=r;p{}),v}setAttribute(r,c,p){p._setAttribute(r,c)}removeAttribute(r,c){c._removeAttribute(r)}addClass(r,c){c._addClass(r)}removeClass(r,c){c._removeClass(r)}setStyle(r,c,p){Bt(r)&&void 0===p&&(p=c),p._setStyle(r,c)}removeStyle(r,c){c._removeStyle(r)}setCustomProperty(r,c,p){p._setCustomProperty(r,c)}removeCustomProperty(r,c){return c._removeCustomProperty(r)}breakAttributes(r){return r instanceof jn?this._breakAttributes(r):this._breakAttributesRange(r)}breakContainer(r){const c=r.parent;if(!c.is("containerElement"))throw new En.b("view-writer-break-non-container-element: Trying to break an element which is not a container element.",this.document);if(!c.parent)throw new En.b("view-writer-break-root: Trying to break root element.",this.document);if(r.isAtStart)return jn._createBefore(c);if(!r.isAtEnd){const p=c._clone(!1);this.insert(jn._createAfter(c),p);const v=new vi(r,jn._createAt(c,"end")),Z=new jn(p,0);this.move(v,Z)}return jn._createAfter(c)}mergeAttributes(r){const c=r.offset,p=r.parent;if(p.is("$text"))return r;if(p.is("attributeElement")&&0===p.childCount){const S=p.parent,I=p.index;return p._remove(),this._removeFromClonedElementsGroup(p),this.mergeAttributes(new jn(S,I))}const v=p.getChild(c-1),Z=p.getChild(c);if(!v||!Z)return r;if(v.is("$text")&&Z.is("$text"))return Rl(v,Z);if(v.is("attributeElement")&&Z.is("attributeElement")&&v.isSimilar(Z)){const S=v.childCount;return v._appendChild(Z.getChildren()),Z._remove(),this._removeFromClonedElementsGroup(Z),this.mergeAttributes(new jn(v,S))}return r}mergeContainers(r){const c=r.nodeBefore,p=r.nodeAfter;if(!(c&&p&&c.is("containerElement")&&p.is("containerElement")))throw new En.b("view-writer-merge-containers-invalid-position: Element before and after given position cannot be merged.",this.document);const v=c.getChild(c.childCount-1),Z=jn._createAt(v instanceof fa?v:c,"end");return this.move(vi._createIn(p),jn._createAt(c,"end")),this.remove(vi._createOn(p)),Z}insert(r,c){!function V(it,dt){for(const xt of it){if(!Di.some(le=>xt instanceof le))throw new En.b("view-writer-insert-invalid-node",dt);xt.is("$text")||V(xt.getChildren(),dt)}}(c=ta(c)?[...c]:[c],this.document);const p=q1(r);if(!p)throw new En.b("view-writer-invalid-position-container",this.document);const v=this._breakAttributes(r,!0),Z=p._insertChild(v.offset,c);for(const V of c)this._addToClonedElementsGroup(V);const S=v.getShiftedBy(Z),I=this.mergeAttributes(v);if(0===Z)return new vi(I,I);{I.isEqual(v)||S.offset--;const V=this.mergeAttributes(S);return new vi(I,V)}}remove(r){const c=r instanceof vi?r:vi._createOn(r);if(R(c,this.document),c.isCollapsed)return new Ic(this.document);const{start:p,end:v}=this._breakAttributesRange(c,!0),I=p.parent._removeChildren(p.offset,v.offset-p.offset);for(const it of I)this._removeFromClonedElementsGroup(it);const V=this.mergeAttributes(p);return c.start=V,c.end=V.clone(),new Ic(this.document,I)}clear(r,c){R(r,this.document);const p=r.getWalker({direction:"backward",ignoreElementEnd:!0});for(const v of p){const Z=v.item;let S;if(Z.is("element")&&c.isSimilar(Z))S=vi._createOn(Z);else if(!v.nextPosition.isAfter(r.start)&&Z.is("$textProxy")){const I=Z.getAncestors().find(V=>V.is("element")&&c.isSimilar(V));I&&(S=vi._createIn(I))}S&&(S.end.isAfter(r.end)&&(S.end=r.end),S.start.isBefore(r.start)&&(S.start=r.start),this.remove(S))}}move(r,c){let p;if(c.isAfter(r.end)){const v=(c=this._breakAttributes(c,!0)).parent,Z=v.childCount;r=this._breakAttributesRange(r,!0),p=this.remove(r),c.offset+=v.childCount-Z}else p=this.remove(r);return this.insert(c,p)}wrap(r,c){if(!(c instanceof Mr))throw new En.b("view-writer-wrap-invalid-attribute",this.document);if(R(r,this.document),r.isCollapsed){let v=r.start;v.parent.is("element")&&!Array.from(v.parent.getChildren()).some(S=>!S.is("uiElement"))&&(v=v.getLastMatchingPosition(S=>S.item.is("uiElement"))),v=this._wrapPosition(v,c);const Z=this.document.selection;return Z.isCollapsed&&Z.getFirstPosition().isEqual(r.start)&&this.setSelection(v),new vi(v)}return this._wrapRange(r,c)}unwrap(r,c){if(!(c instanceof Mr))throw new En.b("view-writer-unwrap-invalid-attribute",this.document);if(R(r,this.document),r.isCollapsed)return r;const{start:p,end:v}=this._breakAttributesRange(r,!0),S=this._unwrapChildren(p.parent,p.offset,v.offset,c),I=this.mergeAttributes(S.start);I.isEqual(S.start)||S.end.offset--;const V=this.mergeAttributes(S.end);return new vi(I,V)}rename(r,c){const p=new ba(this.document,r,c.getAttributes());return this.insert(jn._createAfter(c),p),this.move(vi._createIn(c),jn._createAt(p,0)),this.remove(vi._createOn(c)),p}clearClonedElementsGroup(r){this._cloneGroups.delete(r)}createPositionAt(r,c){return jn._createAt(r,c)}createPositionAfter(r){return jn._createAfter(r)}createPositionBefore(r){return jn._createBefore(r)}createRange(r,c){return new vi(r,c)}createRangeOn(r){return vi._createOn(r)}createRangeIn(r){return vi._createIn(r)}createSelection(r,c,p){return new Do(r,c,p)}_wrapChildren(r,c,p,v){let Z=c;const S=[];for(;Z!1,r.parent._insertChild(r.offset,p);const v=new vi(r,r.getShiftedBy(1));this.wrap(v,c);const Z=new jn(p.parent,p.index);p._remove();const S=Z.nodeBefore,I=Z.nodeAfter;return S instanceof fa&&I instanceof fa?Rl(S,I):yc(Z)}_wrapAttributeElement(r,c){if(!ho(r,c)||r.name!==c.name||r.priority!==c.priority)return!1;for(const p of r.getAttributeKeys())if("class"!==p&&"style"!==p&&c.hasAttribute(p)&&c.getAttribute(p)!==r.getAttribute(p))return!1;for(const p of r.getStyleNames())if(c.hasStyle(p)&&c.getStyle(p)!==r.getStyle(p))return!1;for(const p of r.getAttributeKeys())"class"!==p&&"style"!==p&&(c.hasAttribute(p)||this.setAttribute(p,r.getAttribute(p),c));for(const p of r.getStyleNames())c.hasStyle(p)||this.setStyle(p,r.getStyle(p),c);for(const p of r.getClassNames())c.hasClass(p)||this.addClass(p,c);return!0}_unwrapAttributeElement(r,c){if(!ho(r,c)||r.name!==c.name||r.priority!==c.priority)return!1;for(const p of r.getAttributeKeys())if("class"!==p&&"style"!==p&&(!c.hasAttribute(p)||c.getAttribute(p)!==r.getAttribute(p)))return!1;if(!c.hasClass(...r.getClassNames()))return!1;for(const p of r.getStyleNames())if(!c.hasStyle(p)||c.getStyle(p)!==r.getStyle(p))return!1;for(const p of r.getAttributeKeys())"class"!==p&&"style"!==p&&this.removeAttribute(p,c);return this.removeClass(Array.from(r.getClassNames()),c),this.removeStyle(Array.from(r.getStyleNames()),c),!0}_breakAttributesRange(r,c=!1){const p=r.start,v=r.end;if(R(r,this.document),r.isCollapsed){const V=this._breakAttributes(r.start,c);return new vi(V,V)}const Z=this._breakAttributes(v,c),S=Z.parent.childCount,I=this._breakAttributes(p,c);return Z.offset+=Z.parent.childCount-S,new vi(I,Z)}_breakAttributes(r,c=!1){const p=r.offset,v=r.parent;if(r.parent.is("emptyElement"))throw new En.b("view-writer-cannot-break-empty-element",this.document);if(r.parent.is("uiElement"))throw new En.b("view-writer-cannot-break-ui-element",this.document);if(r.parent.is("rawElement"))throw new En.b("view-writer-cannot-break-raw-element: Cannot break inside a RawElement instance.",this.document);if(!c&&v.is("$text")&&Ke(v.parent)||Ke(v))return r.clone();if(v.is("$text"))return this._breakAttributes(Tn(r),c);if(p==v.childCount){const Z=new jn(v.parent,v.index+1);return this._breakAttributes(Z,c)}if(0===p){const Z=new jn(v.parent,v.index);return this._breakAttributes(Z,c)}{const Z=v.index+1,S=v._clone();v.parent._insertChild(Z,S),this._addToClonedElementsGroup(S);const V=v._removeChildren(p,v.childCount-p);S._appendChild(V);const it=new jn(v.parent,Z);return this._breakAttributes(it,c)}}_addToClonedElementsGroup(r){if(!r.root.is("rootElement"))return;if(r.is("element"))for(const v of r.getChildren())this._addToClonedElementsGroup(v);const c=r.id;if(!c)return;let p=this._cloneGroups.get(c);p||(p=new Set,this._cloneGroups.set(c,p)),p.add(r),r._clonesGroup=p}_removeFromClonedElementsGroup(r){if(r.is("element"))for(const v of r.getChildren())this._removeFromClonedElementsGroup(v);const c=r.id;if(!c)return;const p=this._cloneGroups.get(c);p&&p.delete(r)}}function q1(b){let r=b.parent;for(;!Ke(r);){if(!r)return;r=r.parent}return r}function Wa(b,r){return b.priorityr.priority)&&b.getIdentity()b.createTextNode("\xa0"),Tp=b=>{const r=b.createElement("br");return r.dataset.ckeFiller=!0,r},Kd=(()=>{let b="";for(let r=0;r<7;r++)b+="\u200b";return b})();function go(b){return Va(b)&&b.data.substr(0,7)===Kd}function qr(b){return 7==b.data.length&&go(b)}function E1(b){return go(b)?b.data.slice(7):b.data}function Er(b,r){if(r.keyCode==mo.arrowleft){const c=r.domTarget.ownerDocument.defaultView.getSelection();if(1==c.rangeCount&&c.getRangeAt(0).collapsed){const p=c.getRangeAt(0).startContainer,v=c.getRangeAt(0).startOffset;go(p)&&v<=7&&c.collapse(p,0)}}}function Xd(b,r,c,p=!1){c=c||function(Z,S){return Z===S},Array.isArray(b)||(b=Array.prototype.slice.call(b)),Array.isArray(r)||(r=Array.prototype.slice.call(r));const v=function(Z,S,I){const V=ld(Z,S,I);if(-1===V)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const xt=ld(Ap(Z,V),Ap(S,V),I);return{firstIndex:V,lastIndexOld:Z.length-xt,lastIndexNew:S.length-xt}}(b,r,c);return p?function(Z,S){const{firstIndex:I,lastIndexOld:V,lastIndexNew:it}=Z;if(-1===I)return Array(S).fill("equal");let dt=[];return I>0&&(dt=dt.concat(Array(I).fill("equal"))),it-I>0&&(dt=dt.concat(Array(it-I).fill("insert"))),V-I>0&&(dt=dt.concat(Array(V-I).fill("delete"))),it0&&I.push({index:V,type:"insert",values:Z.slice(V,dt)}),it-V>0&&I.push({index:V+(dt-V),type:"delete",howMany:it-V}),I}(r,v)}function ld(b,r,c){for(let p=0;p200||v>200||p+v>300)return qs.fastDiff(b,r,c,!0);let Z,S;if(vqn?-1:1;dt[vn+mi]&&(dt[vn]=dt[vn+mi].slice(0)),dt[vn]||(dt[vn]=[]),dt[vn].push(wn>qn?Z:S);let xi=Math.max(wn,qn),Vi=xi-vn;for(;Viit;Ie--)xt[Ie]=le(Ie);xt[it]=le(it),rn++}while(xt[it]!==V);return dt[it].slice(1)}function _s(b,r,c){b.insertBefore(c,b.childNodes[r]||null)}function Ts(b){const r=b.parentNode;r&&r.removeChild(b)}function fl(b){if(b){if(b.defaultView)return b instanceof b.defaultView.Document;if(b.ownerDocument&&b.ownerDocument.defaultView)return b instanceof b.ownerDocument.defaultView.Node}return!1}qs.fastDiff=Xd;class Hl{constructor(r,c){this.domDocuments=new Set,this.domConverter=r,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=c,this.isFocused=!1,this._inlineFiller=null,this._fakeSelectionContainer=null}markToSync(r,c){if("text"===r)this.domConverter.mapViewToDom(c.parent)&&this.markedTexts.add(c);else{if(!this.domConverter.mapViewToDom(c))return;if("attributes"===r)this.markedAttributes.add(c);else{if("children"!==r)throw new En.b("view-renderer-unknown-type: Unknown type passed to Renderer.markToSync.",this);this.markedChildren.add(c)}}}render(){let r;for(const c of this.markedChildren)this._updateChildrenMappings(c);this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?r=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(r=this.selection.getFirstPosition(),this.markedChildren.add(r.parent));for(const c of this.markedAttributes)this._updateAttrs(c);for(const c of this.markedChildren)this._updateChildren(c,{inlineFillerPosition:r});for(const c of this.markedTexts)!this.markedChildren.has(c.parent)&&this.domConverter.mapViewToDom(c.parent)&&this._updateText(c,{inlineFillerPosition:r});if(r){const c=this.domConverter.viewPositionToDom(r),p=c.parent.ownerDocument;this._inlineFiller=go(c.parent)?c.parent:Yl(p,c.parent,c.offset)}else this._inlineFiller=null;this._updateSelection(),this._updateFocus(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(r){const c=this.domConverter.mapViewToDom(r);if(!c)return;const p=this.domConverter.mapViewToDom(r).childNodes,v=Array.from(this.domConverter.viewChildrenToDom(r,c.ownerDocument,{withChildren:!1})),Z=this._diffNodeLists(p,v),S=this._findReplaceActions(Z,p,v);if(-1!==S.indexOf("replace")){const I={equal:0,insert:0,delete:0};for(const V of S)if("replace"===V){const it=I.equal+I.insert,dt=I.equal+I.delete,xt=r.getChild(it);!xt||xt.is("uiElement")||xt.is("rawElement")||this._updateElementMappings(xt,p[dt]),Ts(v[it]),I.equal++}else I[V]++}}_updateElementMappings(r,c){this.domConverter.unbindDomElement(c),this.domConverter.bindElements(c,r),this.markedChildren.add(r),this.markedAttributes.add(r)}_getInlineFillerPosition(){const r=this.selection.getFirstPosition();return r.parent.is("$text")?jn._createBefore(this.selection.getFirstPosition().parent):r}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const r=this.selection.getFirstPosition(),c=this.domConverter.viewPositionToDom(r);return!!(c&&Va(c.parent)&&go(c.parent))}_removeInlineFiller(){const r=this._inlineFiller;if(!go(r))throw new En.b("view-renderer-filler-was-lost: The inline filler node was lost.",this);qr(r)?r.parentNode.removeChild(r):r.data=r.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const r=this.selection.getFirstPosition(),c=r.parent,p=r.offset;return!!(this.domConverter.mapViewToDom(c.root)&&c.is("element")&&function(S){if("false"==S.getAttribute("contenteditable"))return!1;const I=S.findAncestor(V=>V.hasAttribute("contenteditable"));return!I||"true"==I.getAttribute("contenteditable")}(c)&&p!==c.getFillerOffset())&&!(r.nodeBefore instanceof fa||r.nodeAfter instanceof fa)}_updateText(r,c){const p=this.domConverter.findCorrespondingDomText(r),v=this.domConverter.viewToDom(r,p.ownerDocument),Z=p.data;let S=v.data;const I=c.inlineFillerPosition;if(I&&I.parent==r.parent&&I.offset==r.index&&(S=Kd+S),Z!=S){const V=Xd(Z,S);for(const it of V)"insert"===it.type?p.insertData(it.index,it.values.join("")):p.deleteData(it.index,it.howMany)}}_updateAttrs(r){const c=this.domConverter.mapViewToDom(r);if(!c)return;const p=Array.from(c.attributes).map(Z=>Z.name),v=r.getAttributeKeys();for(const Z of v)c.setAttribute(Z,r.getAttribute(Z));for(const Z of p)r.hasAttribute(Z)||c.removeAttribute(Z)}_updateChildren(r,c){const p=this.domConverter.mapViewToDom(r);if(!p)return;const v=c.inlineFillerPosition,Z=this.domConverter.mapViewToDom(r).childNodes,S=Array.from(this.domConverter.viewChildrenToDom(r,p.ownerDocument,{bind:!0,inlineFillerPosition:v}));v&&v.parent===r&&Yl(p.ownerDocument,S,v.offset);const I=this._diffNodeLists(Z,S);let V=0;const it=new Set;for(const dt of I)"delete"===dt?(it.add(Z[V]),Ts(Z[V])):"equal"===dt&&V++;V=0;for(const dt of I)"insert"===dt?(_s(p,V,S[V]),V++):"equal"===dt&&(this._markDescendantTextToSync(this.domConverter.domToView(S[V])),V++);for(const dt of it)dt.parentNode||this.domConverter.unbindDomElement(dt)}_diffNodeLists(r,c){return qs(r=function(p,v){const Z=Array.from(p);return 0==Z.length||!v||Z[Z.length-1]==v&&Z.pop(),Z}(r,this._fakeSelectionContainer),c,lm.bind(null,this.domConverter))}_findReplaceActions(r,c,p){if(-1===r.indexOf("insert")||-1===r.indexOf("delete"))return r;let v=[],Z=[],S=[];const I={equal:0,insert:0,delete:0};for(const V of r)"insert"===V?S.push(p[I.equal+I.insert]):"delete"===V?Z.push(c[I.equal+I.delete]):(v=v.concat(qs(Z,S,tl).map(it=>"equal"===it?"replace":it)),v.push("equal"),Z=[],S=[]),I[V]++;return v.concat(qs(Z,S,tl).map(V=>"equal"===V?"replace":V))}_markDescendantTextToSync(r){if(r)if(r.is("$text"))this.markedTexts.add(r);else if(r.is("element"))for(const c of r.getChildren())this._markDescendantTextToSync(c)}_updateSelection(){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const r=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&r&&(this.selection.isFake?this._updateFakeSelection(r):(this._removeFakeSelection(),this._updateDomSelection(r)))}_updateFakeSelection(r){const c=r.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(S){const I=S.createElement("div");return Object.assign(I.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),I.textContent="\xa0",I}(c));const p=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(p,this.selection),!this._fakeSelectionNeedsUpdate(r))return;p.parentElement&&p.parentElement==r||r.appendChild(p),p.textContent=this.selection.fakeSelectionLabel||"\xa0";const v=c.getSelection(),Z=c.createRange();v.removeAllRanges(),Z.selectNodeContents(p),v.addRange(Z)}_updateDomSelection(r){const c=r.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(c))return;const p=this.domConverter.viewPositionToDom(this.selection.anchor),v=this.domConverter.viewPositionToDom(this.selection.focus);r.focus(),c.collapse(p.parent,p.offset),c.extend(v.parent,v.offset),Dr_isGecko&&function(Z,S){const I=Z.parent;if(I.nodeType!=Node.ELEMENT_NODE||Z.offset!=I.childNodes.length-1)return;const V=I.childNodes[Z.offset];V&&"BR"==V.tagName&&S.addRange(S.getRangeAt(0))}(v,c)}_domSelectionNeedsUpdate(r){if(!this.domConverter.isDomSelectionCorrect(r))return!0;const c=r&&this.domConverter.domSelectionToView(r);return!(c&&this.selection.isEqual(c)||!this.selection.isCollapsed&&this.selection.isSimilar(c))}_fakeSelectionNeedsUpdate(r){const c=this._fakeSelectionContainer,p=r.ownerDocument.getSelection();return!c||c.parentElement!==r||p.anchorNode!==c&&!c.contains(p.anchorNode)||c.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const r of this.domDocuments)if(r.getSelection().rangeCount){const c=r.activeElement,p=this.domConverter.mapDomToView(c);c&&p&&r.getSelection().removeAllRanges()}}_removeFakeSelection(){const r=this._fakeSelectionContainer;r&&r.remove()}_updateFocus(){if(this.isFocused){const r=this.selection.editableElement;r&&this.domConverter.focus(r)}}}function Yl(b,r,c){const p=r instanceof Array?r:r.childNodes,v=p[c];if(Va(v))return v.data=Kd+v.data,v;{const Z=b.createTextNode(Kd);return Array.isArray(r)?p.splice(c,0,Z):_s(r,c,Z),Z}}function tl(b,r){return fl(b)&&fl(r)&&!Va(b)&&!Va(r)&&b.nodeType!==Node.COMMENT_NODE&&r.nodeType!==Node.COMMENT_NODE&&b.tagName.toLowerCase()===r.tagName.toLowerCase()}function lm(b,r,c){return r===c||(Va(r)&&Va(c)?r.data===c.data:!(!b.isBlockFiller(r)||!b.isBlockFiller(c)))}Si(Hl,Ut);var pt={window,document};function mt(b){let r=0;for(;b.previousSibling;)b=b.previousSibling,r++;return r}function ot(b){const r=[];for(;b&&b.nodeType!=Node.DOCUMENT_NODE;)r.unshift(b),b=b.parentNode;return r}const Zt=Tp(document);class jt{constructor(r,c={}){this.document=r,this.blockFillerMode=c.blockFillerMode||"br",this.preElements=["pre"],this.blockElements=["p","div","h1","h2","h3","h4","h5","h6","li","dd","dt","figcaption","td","th"],this._blockFiller="br"==this.blockFillerMode?Tp:Ca,this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap}bindFakeSelection(r,c){this._fakeSelectionMapping.set(r,new Do(c))}fakeSelectionToView(r){return this._fakeSelectionMapping.get(r)}bindElements(r,c){this._domToViewMapping.set(r,c),this._viewToDomMapping.set(c,r)}unbindDomElement(r){const c=this._domToViewMapping.get(r);if(c){this._domToViewMapping.delete(r),this._viewToDomMapping.delete(c);for(const p of r.childNodes)this.unbindDomElement(p)}}bindDocumentFragments(r,c){this._domToViewMapping.set(r,c),this._viewToDomMapping.set(c,r)}viewToDom(r,c,p={}){if(r.is("$text")){const v=this._processDataFromViewText(r);return c.createTextNode(v)}{if(this.mapViewToDom(r))return this.mapViewToDom(r);let v;if(r.is("documentFragment"))v=c.createDocumentFragment(),p.bind&&this.bindDocumentFragments(v,r);else{if(r.is("uiElement"))return v=r.render(c),p.bind&&this.bindElements(v,r),v;v=r.hasAttribute("xmlns")?c.createElementNS(r.getAttribute("xmlns"),r.name):c.createElement(r.name),r.is("rawElement")&&r.render(v),p.bind&&this.bindElements(v,r);for(const Z of r.getAttributeKeys())v.setAttribute(Z,r.getAttribute(Z))}if(p.withChildren||void 0===p.withChildren)for(const Z of this.viewChildrenToDom(r,c,p))v.appendChild(Z);return v}}*viewChildrenToDom(r,c,p={}){const v=r.getFillerOffset&&r.getFillerOffset();let Z=0;for(const S of r.getChildren())v===Z&&(yield this._blockFiller(c)),yield this.viewToDom(S,c,p),Z++;v===Z&&(yield this._blockFiller(c))}viewRangeToDom(r){const c=this.viewPositionToDom(r.start),p=this.viewPositionToDom(r.end),v=document.createRange();return v.setStart(c.parent,c.offset),v.setEnd(p.parent,p.offset),v}viewPositionToDom(r){const c=r.parent;if(c.is("$text")){const p=this.findCorrespondingDomText(c);if(!p)return null;let v=r.offset;return go(p)&&(v+=7),{parent:p,offset:v}}{let p,v,Z;if(0===r.offset){if(p=this.mapViewToDom(c),!p)return null;Z=p.childNodes[0]}else{const S=r.nodeBefore;if(v=S.is("$text")?this.findCorrespondingDomText(S):this.mapViewToDom(r.nodeBefore),!v)return null;p=v.parentNode,Z=v.nextSibling}return Va(Z)&&go(Z)?{parent:Z,offset:7}:{parent:p,offset:v?mt(v)+1:0}}}domToView(r,c={}){if(this.isBlockFiller(r,this.blockFillerMode))return null;const p=this.getHostViewElement(r,this._domToViewMapping);if(p)return p;if(Va(r)){if(qr(r))return null;{const v=this._processDataFromDomText(r);return""===v?null:new fa(this.document,v)}}if(this.isComment(r))return null;{if(this.mapDomToView(r))return this.mapDomToView(r);let v;if(this.isDocumentFragment(r))v=new Ic(this.document),c.bind&&this.bindDocumentFragments(r,v);else{const Z=c.keepOriginalCase?r.tagName:r.tagName.toLowerCase();v=new ts(this.document,Z),c.bind&&this.bindElements(r,v);const S=r.attributes;for(let I=S.length-1;I>=0;I--)v._setAttribute(S[I].name,S[I].value)}if(c.withChildren||void 0===c.withChildren)for(const Z of this.domChildrenToView(r,c))v._appendChild(Z);return v}}*domChildrenToView(r,c={}){for(let p=0;p{const{scrollLeft:I,scrollTop:V}=S;Z.push([I,V])}),c.focus(),ne(c,S=>{const[I,V]=Z.shift();S.scrollLeft=I,S.scrollTop=V}),pt.window.scrollTo(p,v)}}isElement(r){return r&&r.nodeType==Node.ELEMENT_NODE}isDocumentFragment(r){return r&&r.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isComment(r){return r&&r.nodeType==Node.COMMENT_NODE}isBlockFiller(r){return"br"==this.blockFillerMode?r.isEqualNode(Zt):!("BR"!==r.tagName||!Yt(r,this.blockElements)||1!==r.parentNode.childNodes.length)||function(c,p){return Va(c)&&"\xa0"==c.data&&Yt(c,p)&&1===c.parentNode.childNodes.length}(r,this.blockElements)}isDomSelectionBackward(r){if(r.isCollapsed)return!1;const c=document.createRange();c.setStart(r.anchorNode,r.anchorOffset),c.setEnd(r.focusNode,r.focusOffset);const p=c.collapsed;return c.detach(),p}getHostViewElement(r){const c=ot(r);for(c.pop();c.length;){const p=c.pop(),v=this._domToViewMapping.get(p);if(v&&(v.is("uiElement")||v.is("rawElement")))return v}return null}isDomSelectionCorrect(r){return this._isDomSelectionPositionCorrect(r.anchorNode,r.anchorOffset)&&this._isDomSelectionPositionCorrect(r.focusNode,r.focusOffset)}_isDomSelectionPositionCorrect(r,c){if(Va(r)&&go(r)&&c<7||this.isElement(r)&&go(r.childNodes[c]))return!1;const p=this.mapDomToView(r);return!p||!p.is("uiElement")&&!p.is("rawElement")}_processDataFromViewText(r){let c=r.data;if(r.getAncestors().some(p=>this.preElements.includes(p.name)))return c;if(" "==c.charAt(0)){const p=this._getTouchingViewTextNode(r,!1);(!p||!this._nodeEndsWithSpace(p))&&p||(c="\xa0"+c.substr(1))}if(" "==c.charAt(c.length-1)){const p=this._getTouchingViewTextNode(r,!0);" "!=c.charAt(c.length-2)&&p&&" "!=p.data.charAt(0)||(c=c.substr(0,c.length-1)+"\xa0")}return c.replace(/ {2}/g," \xa0")}_nodeEndsWithSpace(r){if(r.getAncestors().some(p=>this.preElements.includes(p.name)))return!1;const c=this._processDataFromViewText(r);return" "==c.charAt(c.length-1)}_processDataFromDomText(r){let c=r.data;if(se(r,this.preElements))return E1(r);c=c.replace(/[ \n\t\r]{1,}/g," ");const p=this._getTouchingInlineDomNode(r,!1),v=this._getTouchingInlineDomNode(r,!0),Z=this._checkShouldLeftTrimDomText(p),S=this._checkShouldRightTrimDomText(r,v);return Z&&(c=c.replace(/^ /,"")),S&&(c=c.replace(/ $/,"")),c=E1(new Text(c)),c=c.replace(/ \u00A0/g," "),(/( |\u00A0)\u00A0$/.test(c)||!v||v.data&&" "==v.data.charAt(0))&&(c=c.replace(/\u00A0$/," ")),Z&&(c=c.replace(/^\u00A0/," ")),c}_checkShouldLeftTrimDomText(r){return!r||!!Ur(r)||/[^\S\u00A0]/.test(r.data.charAt(r.data.length-1))}_checkShouldRightTrimDomText(r,c){return!c&&!go(r)}_getTouchingViewTextNode(r,c){const p=new Ri({startPosition:c?jn._createAfter(r):jn._createBefore(r),direction:c?"forward":"backward"});for(const v of p){if(v.item.is("containerElement")||v.item.is("element","br"))return null;if(v.item.is("$textProxy"))return v.item}return null}_getTouchingInlineDomNode(r,c){if(!r.parentNode)return null;const p=c?"nextNode":"previousNode",v=r.ownerDocument,Z=ot(r)[0],S=v.createTreeWalker(Z,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:V=>Va(V)||"BR"==V.tagName?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});S.currentNode=r;const I=S[p]();if(null!==I){const V=function(it,dt){const xt=ot(it),le=ot(dt);let Ie=0;for(;xt[Ie]==le[Ie]&&xt[Ie];)Ie++;return 0===Ie?null:xt[Ie-1]}(r,I);if(V&&!se(r,this.blockElements,V)&&!se(I,this.blockElements,V))return I}return null}}function se(b,r,c){let p=ot(b);return c&&(p=p.slice(p.indexOf(c)+1)),p.some(v=>v.tagName&&r.includes(v.tagName.toLowerCase()))}function ne(b,r){for(;b&&b!=pt.document;)r(b),b=b.parentNode}function Yt(b,r){const c=b.parentNode;return c&&c.tagName&&r.includes(c.tagName.toLowerCase())}function pn(b){const r=Object.prototype.toString.apply(b);return"[object Window]"==r||"[object global]"==r}var gi=At({},Fo,{listenTo(b,...r){if(fl(b)||pn(b)){const c=this._getProxyEmitter(b)||new qi(b);c.attach(...r),b=c}Fo.listenTo.call(this,b,...r)},stopListening(b,r,c){if(fl(b)||pn(b)){const p=this._getProxyEmitter(b);if(!p)return;b=p}Fo.stopListening.call(this,b,r,c),b instanceof qi&&b.detach(r)},_getProxyEmitter(b){return r=this,c=ri(b),r[Br]&&r[Br][c]?r[Br][c].emitter:null;var r,c}});class qi{constructor(r){rr(this,ri(r)),this._domNode=r}}function ri(b){return b["data-ck-expando"]||(b["data-ck-expando"]=Pa())}At(qi.prototype,Fo,{attach(b,r,c={}){if(this._domListeners&&this._domListeners[b])return;const p=this._createDomListener(b,!!c.useCapture);this._domNode.addEventListener(b,p,!!c.useCapture),this._domListeners||(this._domListeners={}),this._domListeners[b]=p},detach(b){let r;!this._domListeners[b]||(r=this._events[b])&&r.callbacks.length||this._domListeners[b].removeListener()},_createDomListener(b,r){const c=p=>{this.fire(b,p)};return c.removeListener=()=>{this._domNode.removeEventListener(b,c,r),delete this._domListeners[b]},c}});class ra{constructor(r){this.view=r,this.document=r.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}}Si(ra,gi);function Gs(b){var r=-1,c=null==b?0:b.length;for(this.__data__=new cn;++rI))return!1;var it=Z.get(b);if(it&&Z.get(r))return it==r;var dt=-1,xt=!0,le=2&c?new cc:void 0;for(Z.set(b,r),Z.set(r,b);++dt{this.listenTo(r,c,(p,v)=>{this.isEnabled&&this.onDomEvent(v)},{useCapture:this.useCapture})})}fire(r,c,p){this.isEnabled&&this.document.fire(r,new ud(this.view,c,p))}}class kd extends dd{constructor(r){super(r),this.domEventType=["keydown","keyup"]}onDomEvent(r){this.fire(r.type,r,{keyCode:r.keyCode,altKey:r.altKey,ctrlKey:r.ctrlKey||r.metaKey,shiftKey:r.shiftKey,get keystroke(){return na(this)}})}}var um=function(){return g.a.Date.now()},Zp=/^\s+|\s+$/g,os=/^[-+]0x[0-9a-f]+$/i,Nu=/^0b[01]+$/i,n1=/^0o[0-7]+$/i,Vl=parseInt,Bl=function(b){if("number"==typeof b)return b;if(kt(b))return NaN;if(Ht(b)){var r="function"==typeof b.valueOf?b.valueOf():b;b=Ht(r)?r+"":r}if("string"!=typeof b)return 0===b?b:+b;b=b.replace(Zp,"");var c=Nu.test(b);return c||n1.test(b)?Vl(b.slice(2),c?2:8):os.test(b)?NaN:+b},Fu=Math.max,cu=Math.min,wp=function(b,r,c){var p,v,Z,S,I,V,it=0,dt=!1,xt=!1,le=!0;if("function"!=typeof b)throw new TypeError("Expected a function");function Ie(xi){var Vi=p,Po=v;return p=v=void 0,it=xi,S=b.apply(Po,Vi)}function rn(xi){return it=xi,I=setTimeout(wn,r),dt?Ie(xi):S}function vn(xi){var Vi=xi-V;return void 0===V||Vi>=r||Vi<0||xt&&xi-it>=Z}function wn(){var Vi,Po,xi=um();if(vn(xi))return qn(xi);I=setTimeout(wn,(Po=r-((Vi=xi)-V),xt?cu(Po,Z-(Vi-it)):Po))}function qn(xi){return I=void 0,le&&p?Ie(xi):(p=v=void 0,S)}function mi(){var xi=um(),Vi=vn(xi);if(p=arguments,v=this,V=xi,Vi){if(void 0===I)return rn(V);if(xt)return clearTimeout(I),I=setTimeout(wn,r),Ie(V)}return void 0===I&&(I=setTimeout(wn,r)),S}return r=Bl(r)||0,Ht(c)&&(dt=!!c.leading,Z=(xt="maxWait"in c)?Fu(Bl(c.maxWait)||0,r):Z,le="trailing"in c?!!c.trailing:le),mi.cancel=function(){void 0!==I&&clearTimeout(I),it=0,p=V=v=I=void 0},mi.flush=function(){return void 0===I?S:qn(um())},mi};class lc extends ra{constructor(r){super(r),this._fireSelectionChangeDoneDebounced=wp(c=>this.document.fire("selectionChangeDone",c),200)}observe(){const r=this.document;r.on("keydown",(c,p)=>{var v;r.selection.isFake&&((v=p.keyCode)==mo.arrowright||v==mo.arrowleft||v==mo.arrowup||v==mo.arrowdown)&&this.isEnabled&&(p.preventDefault(),this._handleSelectionMove(p.keyCode))},{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(r){const c=this.document.selection,p=new Do(c.getRanges(),{backward:c.isBackward,fake:!1});r!=mo.arrowleft&&r!=mo.arrowup||p.setTo(p.getFirstPosition()),r!=mo.arrowright&&r!=mo.arrowdown||p.setTo(p.getLastPosition());const v={oldSelection:c,newSelection:p,domSelection:null};this.document.fire("selectionChange",v),this._fireSelectionChangeDoneDebounced(v)}}class dm extends ra{constructor(r){super(r),this.mutationObserver=r.getObserver(zl),this.selection=this.document.selection,this.domConverter=r.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=wp(c=>this.document.fire("selectionChangeDone",c),200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._loopbackCounter=0}observe(r){const c=r.ownerDocument;this._documents.has(c)||(this.listenTo(c,"selectionchange",()=>{this._handleSelectionChange(c)}),this._documents.add(c))}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionChange(r){if(!this.isEnabled)return;this.mutationObserver.flush();const c=r.defaultView.getSelection(),p=this.domConverter.domSelectionToView(c);if(0!=p.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(p)&&this.domConverter.isDomSelectionCorrect(c)||++this._loopbackCounter>60))if(this.selection.isSimilar(p))this.view.forceRender();else{const v={oldSelection:this.selection,newSelection:p,domSelection:c};this.document.fire("selectionChange",v),this._fireSelectionChangeDoneDebounced(v)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class y extends dd{constructor(r){super(r),this.domEventType=["focus","blur"],this.useCapture=!0;const c=this.document;c.on("focus",()=>{c.isFocused=!0,this._renderTimeoutId=setTimeout(()=>r.forceRender(),50)}),c.on("blur",(p,v)=>{const Z=c.selection.editableElement;null!==Z&&Z!==v.target||(c.isFocused=!1,r.forceRender())})}onDomEvent(r){this.fire(r.type,r)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class _t extends dd{constructor(r){super(r),this.domEventType=["compositionstart","compositionupdate","compositionend"];const c=this.document;c.on("compositionstart",()=>{c.isComposing=!0}),c.on("compositionend",()=>{c.isComposing=!1})}onDomEvent(r){this.fire(r.type,r)}}class di extends dd{constructor(r){super(r),this.domEventType=["beforeinput"]}onDomEvent(r){this.fire(r.type,r)}}function el(b){return"[object Range]"==Object.prototype.toString.apply(b)}function Iu(b){const r=b.ownerDocument.defaultView.getComputedStyle(b);return{top:parseInt(r.borderTopWidth,10),right:parseInt(r.borderRightWidth,10),bottom:parseInt(r.borderBottomWidth,10),left:parseInt(r.borderLeftWidth,10)}}const lu=["top","right","bottom","left","width","height"];class cr{constructor(r){const c=el(r);if(Object.defineProperty(this,"_source",{value:r._source||r,writable:!0,enumerable:!1}),Ur(r)||c)F1(this,c?cr.getDomRangeRects(r)[0]:r.getBoundingClientRect());else if(pn(r)){const{innerWidth:p,innerHeight:v}=r;F1(this,{top:0,right:p,bottom:v,left:0,width:p,height:v})}else F1(this,r)}clone(){return new cr(this)}moveTo(r,c){return this.top=c,this.right=r+this.width,this.bottom=c+this.height,this.left=r,this}moveBy(r,c){return this.top+=c,this.right+=r,this.left+=r,this.bottom+=c,this}getIntersection(r){const c={top:Math.max(this.top,r.top),right:Math.min(this.right,r.right),bottom:Math.min(this.bottom,r.bottom),left:Math.max(this.left,r.left)};return c.width=c.right-c.left,c.height=c.bottom-c.top,c.width<0||c.height<0?null:new cr(c)}getIntersectionArea(r){const c=this.getIntersection(r);return c?c.getArea():0}getArea(){return this.width*this.height}getVisible(){const r=this._source;let c=this.clone();if(!Jr(r)){let p=r.parentNode||r.commonAncestorContainer;for(;p&&!Jr(p);){const v=new cr(p),Z=c.getIntersection(v);if(!Z)return null;Z.getArea()Pe(b,p));const S=Pe(b,p);if(Ld(p,S,r),p.parent!=p){if(v=p.frameElement,p=p.parent,!v)return}else p=null}}function Ld(b,r,c){const p=r.clone().moveBy(0,c),v=r.clone().moveBy(0,-c),Z=new cr(b).excludeScrollbarsAndBorders();if(![v,p].every(S=>Z.contains(S))){let{scrollX:S,scrollY:I}=b;xa(v,Z)?I-=Z.top-r.top+c:qd(p,Z)&&(I+=r.bottom-Z.bottom+c),F(r,Z)?S-=Z.left-r.left+c:lt(r,Z)&&(S+=r.right-Z.right+c),b.scrollTo(S,I)}}function pd(b,r){const c=Qt(b);let p,v;for(;b!=c.document.body;)v=r(),p=new cr(b).excludeScrollbarsAndBorders(),p.contains(v)||(xa(v,p)?b.scrollTop-=p.top-v.top:qd(v,p)&&(b.scrollTop+=v.bottom-p.bottom),F(v,p)?b.scrollLeft-=p.left-v.left:lt(v,p)&&(b.scrollLeft+=v.right-p.right)),b=b.parentNode}function qd(b,r){return b.bottom>r.bottom}function xa(b,r){return b.topr.right}function Qt(b){return el(b)?b.startContainer.ownerDocument.defaultView:b.ownerDocument.defaultView}function be(b){if(el(b)){let r=b.commonAncestorContainer;return Va(r)&&(r=r.parentNode),r}return b.parentNode}function Pe(b,r){const c=Qt(b),p=new cr(b);if(c===r)return p;{let v=c;for(;v!=r;){const S=new cr(v.frameElement).excludeScrollbarsAndBorders();p.moveBy(S.left,S.top),v=v.parent}}return p}Object.assign({},{scrollViewportToShowTarget:Od,scrollAncestorsToShowTarget:function(b){pd(be(b),()=>new cr(b))}});class In{constructor(r){this.document=new br(r),this.domConverter=new jt(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Hl(this.domConverter,this.document.selection),this._renderer.bind("isFocused").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new Xc(this.document),this.addObserver(zl),this.addObserver(dm),this.addObserver(y),this.addObserver(kd),this.addObserver(lc),this.addObserver(_t),Dr_isAndroid&&this.addObserver(di),this.document.on("keydown",Er),function ml(b){b.document.on("keydown",(r,c)=>function(p,v,Z){if(v.keyCode==mo.arrowright){const S=v.domTarget.ownerDocument.defaultView.getSelection(),I=1==S.rangeCount&&S.getRangeAt(0).collapsed;if(I||v.shiftKey){const dt=Z.domPositionToView(S.focusNode,S.focusOffset);if(null===dt)return;let xt=!1;const le=dt.getLastMatchingPosition(Ie=>(Ie.item.is("uiElement")&&(xt=!0),!(!Ie.item.is("uiElement")&&!Ie.item.is("attributeElement"))));if(xt){const Ie=Z.viewPositionToDom(le);I?S.collapse(Ie.parent,Ie.offset):S.extend(Ie.parent,Ie.offset)}}}}(0,c,b.domConverter))}(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0})}attachDomRoot(r,c="main"){const p=this.document.getRoot(c);p._name=r.tagName.toLowerCase();const v={};for(const{name:S,value:I}of Array.from(r.attributes))v[S]=I,"class"===S?this._writer.addClass(I.split(" "),p):this._writer.setAttribute(S,I,p);this._initialDomRootAttributes.set(r,v);const Z=()=>{this._writer.setAttribute("contenteditable",!p.isReadOnly,p),p.isReadOnly?this._writer.addClass("ck-read-only",p):this._writer.removeClass("ck-read-only",p)};Z(),this.domRoots.set(c,r),this.domConverter.bindElements(r,p),this._renderer.markToSync("children",p),this._renderer.markToSync("attributes",p),this._renderer.domDocuments.add(r.ownerDocument),p.on("change:children",(S,I)=>this._renderer.markToSync("children",I)),p.on("change:attributes",(S,I)=>this._renderer.markToSync("attributes",I)),p.on("change:text",(S,I)=>this._renderer.markToSync("text",I)),p.on("change:isReadOnly",()=>this.change(Z)),p.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const S of this._observers.values())S.observe(r,c)}detachDomRoot(r){const c=this.domRoots.get(r);Array.from(c.attributes).forEach(({name:v})=>c.removeAttribute(v));const p=this._initialDomRootAttributes.get(c);for(const v in p)c.setAttribute(v,p[v]);this.domRoots.delete(r),this.domConverter.unbindDomElement(c)}getDomRoot(r="main"){return this.domRoots.get(r)}addObserver(r){let c=this._observers.get(r);if(c)return c;c=new r(this),this._observers.set(r,c);for(const[p,v]of this.domRoots)c.observe(v,p);return c.enable(),c}getObserver(r){return this._observers.get(r)}disableObservers(){for(const r of this._observers.values())r.disable()}enableObservers(){for(const r of this._observers.values())r.enable()}scrollToTheSelection(){const r=this.document.selection.getFirstRange();r&&Od({target:this.domConverter.viewRangeToDom(r),viewportOffset:20})}focus(){if(!this.document.isFocused){const r=this.document.selection.editableElement;r&&(this.domConverter.focus(r),this.forceRender())}}change(r){if(this.isRenderingInProgress||this._postFixersInProgress)throw new En.b("cannot-change-view-tree: Attempting to make changes to the view when it is in an incorrect state: rendering or post-fixers are in progress. This may cause some unexpected behavior and inconsistency between the DOM and the view.",this);try{if(this._ongoingChange)return r(this._writer);this._ongoingChange=!0;const c=r(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),c}catch(c){En.b.rethrowUnexpectedError(c,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.change(()=>{})}destroy(){for(const r of this._observers.values())r.destroy();this.document.destroy(),this.stopListening()}createPositionAt(r,c){return jn._createAt(r,c)}createPositionAfter(r){return jn._createAfter(r)}createPositionBefore(r){return jn._createBefore(r)}createRange(r,c){return new vi(r,c)}createRangeOn(r){return vi._createOn(r)}createRangeIn(r){return vi._createIn(r)}createSelection(r,c,p){return new Do(r,c,p)}_disableRendering(r){this._renderingDisabled=r,0==r&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}Si(In,Ut);class _i{constructor(r){this.parent=null,this._attrs=aa(r)}get index(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildIndex(this)))throw new En.b("model-node-not-found-in-parent: The node's parent does not contain this node.",this);return r}get startOffset(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildStartOffset(this)))throw new En.b("model-node-not-found-in-parent: The node's parent does not contain this node.",this);return r}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const r=this.index;return null!==r&&this.parent.getChild(r+1)||null}get previousSibling(){const r=this.index;return null!==r&&this.parent.getChild(r-1)||null}get root(){let r=this;for(;r.parent;)r=r.parent;return r}isAttached(){return this.root.is("rootElement")}getPath(){const r=[];let c=this;for(;c.parent;)r.unshift(c.startOffset),c=c.parent;return r}getAncestors(r={includeSelf:!1,parentFirst:!1}){const c=[];let p=r.includeSelf?this:this.parent;for(;p;)c[r.parentFirst?"push":"unshift"](p),p=p.parent;return c}getCommonAncestor(r,c={}){const p=this.getAncestors(c),v=r.getAncestors(c);let Z=0;for(;p[Z]==v[Z]&&p[Z];)Z++;return 0===Z?null:p[Z-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const c=this.getPath(),p=r.getPath(),v=_r(c,p);switch(v){case"prefix":return!0;case"extension":return!1;default:return c[v](c[p[0]]=p[1],c),{})),r}is(r){return"node"===r||"model:node"===r}_clone(){return new _i(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(r,c){this._attrs.set(r,c)}_setAttributesTo(r){this._attrs=aa(r)}_removeAttribute(r){return this._attrs.delete(r)}_clearAttributes(){this._attrs.clear()}}class Bi extends _i{constructor(r,c){super(c),this._data=r||""}get offsetSize(){return this.data.length}get data(){return this._data}is(r){return"$text"===r||"model:$text"===r||"text"===r||"model:text"===r||"node"===r||"model:node"===r}toJSON(){const r=super.toJSON();return r.data=this.data,r}_clone(){return new Bi(this.data,this.getAttributes())}static fromJSON(r){return new Bi(r.data,r.attributes)}}class Zo{constructor(r,c,p){if(this.textNode=r,c<0||c>r.offsetSize)throw new En.b("model-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(p<0||c+p>r.offsetSize)throw new En.b("model-textproxy-wrong-length: Given length value is incorrect.",this);this.data=r.data.substring(c,c+p),this.offsetInText=c}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}is(r){return"$textProxy"===r||"model:$textProxy"===r||"textProxy"===r||"model:textProxy"===r}getPath(){const r=this.textNode.getPath();return r.length>0&&(r[r.length-1]+=this.offsetInText),r}getAncestors(r={includeSelf:!1,parentFirst:!1}){const c=[];let p=r.includeSelf?this:this.parent;for(;p;)c[r.parentFirst?"push":"unshift"](p),p=p.parent;return c}hasAttribute(r){return this.textNode.hasAttribute(r)}getAttribute(r){return this.textNode.getAttribute(r)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}class Ea{constructor(r){this._nodes=[],r&&this._insertNodes(0,r)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((r,c)=>r+c.offsetSize,0)}getNode(r){return this._nodes[r]||null}getNodeIndex(r){const c=this._nodes.indexOf(r);return-1==c?null:c}getNodeStartOffset(r){const c=this.getNodeIndex(r);return null===c?null:this._nodes.slice(0,c).reduce((p,v)=>p+v.offsetSize,0)}indexToOffset(r){if(r==this._nodes.length)return this.maxOffset;const c=this._nodes[r];if(!c)throw new En.b("model-nodelist-index-out-of-bounds: Given index cannot be found in the node list.",this);return this.getNodeStartOffset(c)}offsetToIndex(r){let c=0;for(const p of this._nodes){if(r>=c&&rr.toJSON())}}class Wo extends _i{constructor(r,c,p){super(c),this.name=r,this._children=new Ea,p&&this._insertChild(0,p)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}is(r,c=null){return c?c===this.name&&("element"===r||"model:element"===r):"element"===r||"model:element"===r||"node"===r||"model:node"===r}getChild(r){return this._children.getNode(r)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(r){return this._children.getNodeIndex(r)}getChildStartOffset(r){return this._children.getNodeStartOffset(r)}offsetToIndex(r){return this._children.offsetToIndex(r)}getNodeByPath(r){let c=this;for(const p of r)c=c.getChild(c.offsetToIndex(p));return c}findAncestor(r,c={includeSelf:!1}){let p=c.includeSelf?this:this.parent;for(;p;){if(p.name===r)return p;p=p.parent}return null}toJSON(){const r=super.toJSON();if(r.name=this.name,this._children.length>0){r.children=[];for(const c of this._children)r.children.push(c.toJSON())}return r}_clone(r=!1){const c=r?Array.from(this._children).map(p=>p._clone(!0)):null;return new Wo(this.name,this.getAttributes(),c)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,c){const p="string"==typeof(v=c)?[new Bi(v)]:(ta(v)||(v=[v]),Array.from(v).map(Z=>"string"==typeof Z?new Bi(Z):Z instanceof Zo?new Bi(Z.data,Z.getAttributes()):Z));var v;for(const v of p)null!==v.parent&&v._remove(),v.parent=this;this._children._insertNodes(r,p)}_removeChildren(r,c=1){const p=this._children._removeNodes(r,c);for(const v of p)v.parent=null;return p}static fromJSON(r){let c=null;if(r.children){c=[];for(const p of r.children)c.push(p.name?Wo.fromJSON(p):Bi.fromJSON(p))}return new Wo(r.name,r.attributes,c)}}class js{constructor(r={}){if(!r.boundaries&&!r.startPosition)throw new En.b("model-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",null);const c=r.direction||"forward";if("forward"!=c&&"backward"!=c)throw new En.b("model-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",r,{direction:c});this.direction=c,this.boundaries=r.boundaries||null,this.position=r.startPosition?r.startPosition.clone():Ei._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!r.singleCharacters,this.shallow=!!r.shallow,this.ignoreElementEnd=!!r.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(r){let c,p,v,Z;do{v=this.position,Z=this._visitedParent,({done:c,value:p}=this.next())}while(!c&&r(p));c||(this.position=v,this._visitedParent=Z)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const r=this.position,c=this.position.clone(),p=this._visitedParent;if(null===p.parent&&c.offset===p.maxOffset)return{done:!0};if(p===this._boundaryEndParent&&c.offset==this.boundaries.end.offset)return{done:!0};const v=c.parent,Z=Mp(c,v),S=Z||u_(c,v,Z);if(S instanceof Wo)return this.shallow?c.offset++:(c.path.push(0),this._visitedParent=S),this.position=c,Rc("elementStart",S,r,c,1);if(S instanceof Bi){let I;if(this.singleCharacters)I=1;else{let dt=S.endOffset;this._boundaryEndParent==p&&this.boundaries.end.offsetdt&&(dt=this.boundaries.start.offset),I=c.offset-dt}const it=new Zo(S,c.offset-S.startOffset-I,I);return c.offset-=I,this.position=c,Rc("text",it,r,c,I)}return c.path.pop(),this.position=c,this._visitedParent=p.parent,Rc("elementStart",p,r,c,1)}}function Rc(b,r,c,p,v){return{done:!1,value:{type:b,item:r,previousPosition:c,nextPosition:p,length:v}}}class Ei{constructor(r,c,p="toNone"){if(!r.is("element")&&!r.is("documentFragment"))throw new En.b("model-position-root-invalid: Position root invalid.",r);if(!(c instanceof Array)||0===c.length)throw new En.b("model-position-path-incorrect-format: Position path must be an array with at least one item.",r,{path:c});r.is("rootElement")?c=c.slice():(c=[...r.getPath(),...c],r=r.root),this.root=r,this.path=c,this.stickiness=p}get offset(){return this.path[this.path.length-1]}set offset(r){this.path[this.path.length-1]=r}get parent(){let r=this.root;for(let c=0;cp.path.length){if(c.offset!==v.maxOffset)return!1;c.path=c.path.slice(0,-1),v=v.parent,c.offset++}else{if(0!==p.offset)return!1;p.path=p.path.slice(0,-1)}}}is(r){return"position"===r||"model:position"===r}hasSameParentAs(r){return this.root===r.root&&"same"==_r(this.getParentPath(),r.getParentPath())}getTransformedByOperation(r){let c;switch(r.type){case"insert":c=this._getTransformedByInsertOperation(r);break;case"move":case"remove":case"reinsert":c=this._getTransformedByMoveOperation(r);break;case"split":c=this._getTransformedBySplitOperation(r);break;case"merge":c=this._getTransformedByMergeOperation(r);break;default:c=Ei._createAt(this)}return c}_getTransformedByInsertOperation(r){return this._getTransformedByInsertion(r.position,r.howMany)}_getTransformedByMoveOperation(r){return this._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}_getTransformedBySplitOperation(r){const c=r.movedRange;return c.containsPosition(this)||c.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(r.splitPosition,r.moveTargetPosition):r.graveyardPosition?this._getTransformedByMove(r.graveyardPosition,r.insertionPosition,1):this._getTransformedByInsertion(r.insertionPosition,1)}_getTransformedByMergeOperation(r){const c=r.movedRange;let p;return c.containsPosition(this)||c.start.isEqual(this)?(p=this._getCombined(r.sourcePosition,r.targetPosition),r.sourcePosition.isBefore(r.targetPosition)&&(p=p._getTransformedByDeletion(r.deletionPosition,1))):p=this.isEqual(r.deletionPosition)?Ei._createAt(r.deletionPosition):this._getTransformedByMove(r.deletionPosition,r.graveyardPosition,1),p}_getTransformedByDeletion(r,c){const p=Ei._createAt(this);if(this.root!=r.root)return p;if("same"==_r(r.getParentPath(),this.getParentPath())){if(r.offsetthis.offset)return null;p.offset-=c}}else if("prefix"==_r(r.getParentPath(),this.getParentPath())){const v=r.path.length-1;if(r.offset<=this.path[v]){if(r.offset+c>this.path[v])return null;p.path[v]-=c}}return p}_getTransformedByInsertion(r,c){const p=Ei._createAt(this);if(this.root!=r.root)return p;if("same"==_r(r.getParentPath(),this.getParentPath()))(r.offsetc+1;){const Z=v.maxOffset-p.offset;0!==Z&&r.push(new bi(p,p.getShiftedBy(Z))),p.path=p.path.slice(0,-1),p.offset++,v=v.parent}for(;p.path.length<=this.end.path.length;){const Z=this.end.path[p.path.length-1],S=Z-p.offset;0!==S&&r.push(new bi(p,p.getShiftedBy(S))),p.offset=Z,p.path.push(0)}return r}getWalker(r={}){return r.boundaries=this,new js(r)}*getItems(r={}){r.boundaries=this,r.ignoreElementEnd=!0;const c=new js(r);for(const p of c)yield p.item}*getPositions(r={}){r.boundaries=this;const c=new js(r);yield c.position;for(const p of c)yield p.nextPosition}getTransformedByOperation(r){switch(r.type){case"insert":return this._getTransformedByInsertOperation(r);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(r);case"split":return[this._getTransformedBySplitOperation(r)];case"merge":return[this._getTransformedByMergeOperation(r)]}return[new bi(this.start,this.end)]}getTransformedByOperations(r){const c=[new bi(this.start,this.end)];for(const p of r)for(let v=0;v0?new this(p,v):new this(v,p)}static _createIn(r){return new this(Ei._createAt(r,0),Ei._createAt(r,r.maxOffset))}static _createOn(r){return this._createFromPositionAndShift(Ei._createBefore(r),r.offsetSize)}static _createFromRanges(r){if(0===r.length)throw new En.b("range-create-from-ranges-empty-array: At least one range has to be passed.",null);if(1==r.length)return r[0].clone();const c=r[0];r.sort((Z,S)=>Z.start.isAfter(S.start)?1:-1);const p=r.indexOf(c),v=new this(c.start,c.end);if(p>0)for(let Z=p-1;r[Z].end.isEqual(v.start);Z++)v.start=Ei._createAt(r[Z].start);for(let Z=p+1;Z{if(c.viewPosition)return;const p=this._modelToViewMapping.get(c.modelPosition.parent);c.viewPosition=this.findPositionIn(p,c.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(r,c)=>{if(c.modelPosition)return;const p=this.findMappedViewAncestor(c.viewPosition),v=this._viewToModelMapping.get(p),Z=this._toModelOffset(c.viewPosition.parent,c.viewPosition.offset,p);c.modelPosition=Ei._createAt(v,Z)},{priority:"low"})}bindElements(r,c){this._modelToViewMapping.set(r,c),this._viewToModelMapping.set(c,r)}unbindViewElement(r){const c=this.toModelElement(r);if(this._viewToModelMapping.delete(r),this._elementToMarkerNames.has(r))for(const p of this._elementToMarkerNames.get(r))this._unboundMarkerNames.add(p);this._modelToViewMapping.get(c)==r&&this._modelToViewMapping.delete(c)}unbindModelElement(r){const c=this.toViewElement(r);this._modelToViewMapping.delete(r),this._viewToModelMapping.get(c)==r&&this._viewToModelMapping.delete(c)}bindElementToMarker(r,c){const p=this._markerNameToElements.get(c)||new Set;p.add(r);const v=this._elementToMarkerNames.get(r)||new Set;v.add(c),this._markerNameToElements.set(c,p),this._elementToMarkerNames.set(r,v)}unbindElementFromMarkerName(r,c){const p=this._markerNameToElements.get(c);p&&(p.delete(r),0==p.size&&this._markerNameToElements.delete(c));const v=this._elementToMarkerNames.get(r);v&&(v.delete(c),0==v.size&&this._elementToMarkerNames.delete(r))}flushUnboundMarkerNames(){const r=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),r}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set}toModelElement(r){return this._viewToModelMapping.get(r)}toViewElement(r){return this._modelToViewMapping.get(r)}toModelRange(r){return new bi(this.toModelPosition(r.start),this.toModelPosition(r.end))}toViewRange(r){return new vi(this.toViewPosition(r.start),this.toViewPosition(r.end))}toModelPosition(r){const c={viewPosition:r,mapper:this};return this.fire("viewToModelPosition",c),c.modelPosition}toViewPosition(r,c={isPhantom:!1}){const p={modelPosition:r,mapper:this,isPhantom:c.isPhantom};return this.fire("modelToViewPosition",p),p.viewPosition}markerNameToElements(r){const c=this._markerNameToElements.get(r);if(!c)return null;const p=new Set;for(const v of c)if(v.is("attributeElement"))for(const Z of v.getElementsWithSameId())p.add(Z);else p.add(v);return p}registerViewToModelLength(r,c){this._viewToModelLengthCallbacks.set(r,c)}findMappedViewAncestor(r){let c=r.parent;for(;!this._viewToModelMapping.has(c);)c=c.parent;return c}_toModelOffset(r,c,p){if(p!=r)return this._toModelOffset(r.parent,r.index,p)+this._toModelOffset(r,c,r);if(r.is("$text"))return c;let v=0;for(let Z=0;Z1?r[0]+":"+r[1]:r[0]}class mm{constructor(r){this.conversionApi=At({dispatcher:this},r)}convertChanges(r,c,p){for(const v of r.getMarkersToRemove())this.convertMarkerRemove(v.name,v.range,p);for(const v of r.getChanges())"insert"==v.type?this.convertInsert(bi._createFromPositionAndShift(v.position,v.length),p):"remove"==v.type?this.convertRemove(v.position,v.length,v.name,p):this.convertAttribute(v.range,v.attributeKey,v.attributeOldValue,v.attributeNewValue,p);for(const v of this.conversionApi.mapper.flushUnboundMarkerNames()){const Z=c.get(v).getRange();this.convertMarkerRemove(v,Z,p),this.convertMarkerAdd(v,Z,p)}for(const v of r.getMarkersToAdd())this.convertMarkerAdd(v.name,v.range,p)}convertInsert(r,c){this.conversionApi.writer=c,this.conversionApi.consumable=this._createInsertConsumable(r);for(const p of r){const v=p.item,Z={item:v,range:bi._createFromPositionAndShift(p.previousPosition,p.length)};this._testAndFire("insert",Z);for(const S of v.getAttributeKeys())Z.attributeKey=S,Z.attributeOldValue=null,Z.attributeNewValue=v.getAttribute(S),this._testAndFire("attribute:"+S,Z)}this._clearConversionApi()}convertRemove(r,c,p,v){this.conversionApi.writer=v,this.fire("remove:"+p,{position:r,length:c},this.conversionApi),this._clearConversionApi()}convertAttribute(r,c,p,v,Z){this.conversionApi.writer=Z,this.conversionApi.consumable=this._createConsumableForRange(r,"attribute:"+c);for(const S of r){const I={item:S.item,range:bi._createFromPositionAndShift(S.previousPosition,S.length),attributeKey:c,attributeOldValue:p,attributeNewValue:v};this._testAndFire("attribute:"+c,I)}this._clearConversionApi()}convertSelection(r,c,p){const v=Array.from(c.getMarkersAtPosition(r.getFirstPosition()));if(this.conversionApi.writer=p,this.conversionApi.consumable=this._createSelectionConsumable(r,v),this.fire("selection",{selection:r},this.conversionApi),r.isCollapsed){for(const Z of v){const S=Z.getRange();if(!ya(r.getFirstPosition(),Z,this.conversionApi.mapper))continue;const I={item:r,markerName:Z.name,markerRange:S};this.conversionApi.consumable.test(r,"addMarker:"+Z.name)&&this.fire("addMarker:"+Z.name,I,this.conversionApi)}for(const Z of r.getAttributeKeys()){const S={item:r,range:r.getFirstRange(),attributeKey:Z,attributeOldValue:null,attributeNewValue:r.getAttribute(Z)};this.conversionApi.consumable.test(r,"attribute:"+S.attributeKey)&&this.fire("attribute:"+S.attributeKey+":$text",S,this.conversionApi)}this._clearConversionApi()}}convertMarkerAdd(r,c,p){if(!c.root.document||"$graveyard"==c.root.rootName)return;this.conversionApi.writer=p;const v="addMarker:"+r,Z=new I1;if(Z.add(c,v),this.conversionApi.consumable=Z,this.fire(v,{markerName:r,markerRange:c},this.conversionApi),Z.test(c,v)){this.conversionApi.consumable=this._createConsumableForRange(c,v);for(const S of c.getItems()){if(!this.conversionApi.consumable.test(S,v))continue;const I={item:S,range:bi._createOn(S),markerName:r,markerRange:c};this.fire(v,I,this.conversionApi)}this._clearConversionApi()}}convertMarkerRemove(r,c,p){c.root.document&&"$graveyard"!=c.root.rootName&&(this.conversionApi.writer=p,this.fire("removeMarker:"+r,{markerName:r,markerRange:c},this.conversionApi),this._clearConversionApi())}_createInsertConsumable(r){const c=new I1;for(const p of r){const v=p.item;c.add(v,"insert");for(const Z of v.getAttributeKeys())c.add(v,"attribute:"+Z)}return c}_createConsumableForRange(r,c){const p=new I1;for(const v of r.getItems())p.add(v,c);return p}_createSelectionConsumable(r,c){const p=new I1;p.add(r,"selection");for(const v of c)p.add(r,"addMarker:"+v.name);for(const v of r.getAttributeKeys())p.add(r,"attribute:"+v);return p}_testAndFire(r,c){this.conversionApi.consumable.test(c.item,r)&&this.fire(r+":"+(c.item.name||"$text"),c,this.conversionApi)}_clearConversionApi(){delete this.conversionApi.writer,delete this.conversionApi.consumable}}function ya(b,r,c){const p=r.getRange(),v=Array.from(b.getAncestors());return v.shift(),v.reverse(),!v.some(Z=>{if(p.containsItem(Z))return!!c.toViewElement(Z).getCustomProperty("addHighlight")})}Si(mm,Fo);class md{constructor(r,c,p){this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,r&&this.setTo(r,c,p)}get anchor(){if(this._ranges.length>0){const r=this._ranges[this._ranges.length-1];return this._lastRangeBackward?r.end:r.start}return null}get focus(){if(this._ranges.length>0){const r=this._ranges[this._ranges.length-1];return this._lastRangeBackward?r.start:r.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(r){if(this.rangeCount!=r.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(r.anchor)||!this.focus.isEqual(r.focus))return!1;for(const c of this._ranges){let p=!1;for(const v of r._ranges)if(c.isEqual(v)){p=!0;break}if(!p)return!1}return!0}*getRanges(){for(const r of this._ranges)yield new bi(r.start,r.end)}getFirstRange(){let r=null;for(const c of this._ranges)r&&!c.start.isBefore(r.start)||(r=c);return r?new bi(r.start,r.end):null}getLastRange(){let r=null;for(const c of this._ranges)r&&!c.end.isAfter(r.end)||(r=c);return r?new bi(r.start,r.end):null}getFirstPosition(){const r=this.getFirstRange();return r?r.start.clone():null}getLastPosition(){const r=this.getLastRange();return r?r.end.clone():null}setTo(r,c,p){if(null===r)this._setRanges([]);else if(r instanceof md)this._setRanges(r.getRanges(),r.isBackward);else if(r&&"function"==typeof r.getRanges)this._setRanges(r.getRanges(),r.isBackward);else if(r instanceof bi)this._setRanges([r],!!c&&!!c.backward);else if(r instanceof Ei)this._setRanges([new bi(r)]);else if(r instanceof _i){const v=!!p&&!!p.backward;let Z;if("in"==c)Z=bi._createIn(r);else if("on"==c)Z=bi._createOn(r);else{if(void 0===c)throw new En.b("model-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",[this,r]);Z=new bi(Ei._createAt(r,c))}this._setRanges([Z],v)}else{if(!ta(r))throw new En.b("model-selection-setTo-not-selectable: Cannot set the selection to the given place.",[this,r]);this._setRanges(r,c&&!!c.backward)}}_setRanges(r,c=!1){const p=(r=Array.from(r)).some(v=>{if(!(v instanceof bi))throw new En.b("model-selection-set-ranges-not-range: Selection range set to an object that is not an instance of model.Range.",[this,r]);return this._ranges.every(Z=>!Z.isEqual(v))});if(r.length!==this._ranges.length||p){this._removeAllRanges();for(const v of r)this._pushRange(v);this._lastRangeBackward=!!c,this.fire("change:range",{directChange:!0})}}setFocus(r,c){if(null===this.anchor)throw new En.b("model-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",[this,r]);const p=Ei._createAt(r,c);if("same"==p.compareWith(this.focus))return;const v=this.anchor;this._ranges.length&&this._popRange(),"before"==p.compareWith(v)?(this._pushRange(new bi(p,v)),this._lastRangeBackward=!0):(this._pushRange(new bi(v,p)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(r){return this._attrs.get(r)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(r){return this._attrs.has(r)}removeAttribute(r){this.hasAttribute(r)&&(this._attrs.delete(r),this.fire("change:attribute",{attributeKeys:[r],directChange:!0}))}setAttribute(r,c){this.getAttribute(r)!==c&&(this._attrs.set(r,c),this.fire("change:attribute",{attributeKeys:[r],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}is(r){return"selection"===r||"model:selection"===r}*getSelectedBlocks(){const r=new WeakSet;for(const c of this.getRanges()){const p=p_(c.start,r);p&&E2(p,c)&&(yield p);for(const Z of c.getWalker()){const S=Z.item;"elementEnd"==Z.type&&i1(S,r,c)&&(yield S)}const v=p_(c.end,r);v&&!c.end.isTouching(Ei._createAt(v,0))&&E2(v,c)&&(yield v)}}containsEntireContent(r=this.anchor.root){const c=Ei._createAt(r,0),p=Ei._createAt(r,"end");return c.isTouching(this.getFirstPosition())&&p.isTouching(this.getLastPosition())}_pushRange(r){this._checkRange(r),this._ranges.push(new bi(r.start,r.end))}_checkRange(r){for(let c=0;c0;)this._popRange()}_popRange(){this._ranges.pop()}}function q2(b,r){return!r.has(b)&&(r.add(b),b.root.document.model.schema.isBlock(b)&&b.parent)}function i1(b,r,c){return q2(b,r)&&E2(b,c)}function p_(b,r){const c=b.parent.root.document.model.schema,p=b.parent.getAncestors({parentFirst:!0,includeSelf:!0});let v=!1;const Z=p.find(S=>!v&&(v=c.isLimit(S),!v&&q2(S,r)));return p.forEach(S=>r.add(S)),Z}function E2(b,r){const c=function(p){const v=p.root.document.model.schema;let Z=p.parent;for(;Z;){if(v.isBlock(Z))return Z;Z=Z.parent}}(b);return!c||!r.containsRange(bi._createOn(c),!0)}Si(md,Fo);class o1 extends bi{constructor(r,c){super(r,c),Jl.call(this)}detach(){this.stopListening()}is(r){return"liveRange"===r||"model:liveRange"===r||"range"==r||"model:range"===r}toRange(){return new bi(this.start,this.end)}static fromRange(r){return new o1(r.start,r.end)}}function Jl(){this.listenTo(this.root.document.model,"applyOperation",(b,r)=>{const c=r[0];c.isDocumentOperation&&pg.call(this,c)},{priority:"low"})}function pg(b){const r=this.getTransformedByOperation(b),c=bi._createFromRanges(r),p=!c.isEqual(this),v=function(S,I){switch(I.type){case"insert":return S.containsPosition(I.position);case"move":case"remove":case"reinsert":case"merge":return S.containsPosition(I.sourcePosition)||S.start.isEqual(I.sourcePosition)||S.containsPosition(I.targetPosition);case"split":return S.containsPosition(I.splitPosition)||S.containsPosition(I.insertionPosition)}return!1}(this,b);let Z=null;if(p){"$graveyard"==c.root.rootName&&(Z="remove"==b.type?b.sourcePosition:b.deletionPosition);const S=this.toRange();this.start=c.start,this.end=c.end,this.fire("change:range",S,{deletionPosition:Z})}else v&&this.fire("change:content",this.toRange(),{deletionPosition:Z})}Si(o1,Fo);class xl{constructor(r){this._selection=new uc(r),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(r){return this._selection.containsEntireContent(r)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(r){return this._selection.getAttribute(r)}hasAttribute(r){return this._selection.hasAttribute(r)}refresh(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}is(r){return"selection"===r||"model:selection"==r||"documentSelection"==r||"model:documentSelection"==r}_setFocus(r,c){this._selection.setFocus(r,c)}_setTo(r,c,p){this._selection.setTo(r,c,p)}_setAttribute(r,c){this._selection.setAttribute(r,c)}_removeAttribute(r){this._selection.removeAttribute(r)}_getStoredAttributes(){return this._selection._getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(r){this._selection.restoreGravity(r)}static _getStoreAttributeKey(r){return"selection:"+r}static _isStoreAttributeKey(r){return r.startsWith("selection:")}}Si(xl,Fo);class uc extends md{constructor(r){super(),this.markers=new Ra({idProperty:"name"}),this._model=r.model,this._document=r,this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this.listenTo(this._model,"applyOperation",(c,p)=>{const v=p[0];v.isDocumentOperation&&"marker"!=v.type&&"rename"!=v.type&&"noop"!=v.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{for(const c of this.getRanges())if(!this._document._validateSelectionRange(c))throw new En.b("document-selection-wrong-position: Range from document selection starts or ends at incorrect position.",this,{range:c})}),this.listenTo(this._model.markers,"update",()=>this._updateMarkers()),this.listenTo(this._document,"change",(c,p)=>{!function(v,Z){const S=v.document.differ;for(const I of S.getChanges()){if("insert"!=I.type)continue;const V=I.position.parent;I.length===V.maxOffset&&v.enqueueChange(Z,it=>{const dt=Array.from(V.getAttributeKeys()).filter(xt=>xt.startsWith("selection:"));for(const xt of dt)it.removeAttribute(xt,V)})}}(this._model,p)})}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let r=0;r{if(this._hasChangedRange=!0,c.root==this._document.graveyard){this._selectionRestorePosition=Z.deletionPosition;const S=this._ranges.indexOf(c);this._ranges.splice(S,1),c.detach()}}),c}_updateMarkers(){const r=[];let c=!1;for(const v of this._model.markers){const Z=v.getRange();for(const S of this.getRanges())Z.containsRange(S,!S.isCollapsed)&&r.push(v)}const p=Array.from(this.markers);for(const v of r)this.markers.has(v)||(this.markers.add(v),c=!0);for(const v of Array.from(this.markers))r.includes(v)||(this.markers.remove(v),c=!0);c&&this.fire("change:marker",{oldMarkers:p,directChange:!1})}_updateAttributes(r){const c=aa(this._getSurroundingAttributes()),p=aa(this.getAttributes());if(r)this._attributePriority=new Map,this._attrs=new Map;else for(const[Z,S]of this._attributePriority)"low"==S&&(this._attrs.delete(Z),this._attributePriority.delete(Z));this._setAttributesTo(c);const v=[];for(const[Z,S]of this.getAttributes())p.has(Z)&&p.get(Z)===S||v.push(Z);for(const[Z]of p)this.hasAttribute(Z)||v.push(Z);v.length>0&&this.fire("change:attribute",{attributeKeys:v,directChange:!1})}_setAttribute(r,c,p=!0){const v=p?"normal":"low";return("low"!=v||"normal"!=this._attributePriority.get(r))&&super.getAttribute(r)!==c&&(this._attrs.set(r,c),this._attributePriority.set(r,v),!0)}_removeAttribute(r,c=!0){const p=c?"normal":"low";return!("low"==p&&"normal"==this._attributePriority.get(r)||(this._attributePriority.set(r,p),!super.hasAttribute(r)||(this._attrs.delete(r),0)))}_setAttributesTo(r){const c=new Set;for(const[p,v]of this.getAttributes())r.get(p)!==v&&this._removeAttribute(p,!1);for(const[p,v]of r)this._setAttribute(p,v,!1)&&c.add(p);return c}*_getStoredAttributes(){const r=this.getFirstPosition().parent;if(this.isCollapsed&&r.isEmpty)for(const c of r.getAttributeKeys())c.startsWith("selection:")&&(yield[c.substr(10),r.getAttribute(c)])}_getSurroundingAttributes(){const r=this.getFirstPosition(),c=this._model.schema;let p=null;if(this.isCollapsed){const v=r.textNode?r.textNode:r.nodeBefore,Z=r.textNode?r.textNode:r.nodeAfter;if(this.isGravityOverridden||(p=R1(v)),p||(p=R1(Z)),!this.isGravityOverridden&&!p){let S=v;for(;S&&!p;)S=S.previousSibling,p=R1(S)}if(!p){let S=Z;for(;S&&!p;)S=S.nextSibling,p=R1(S)}p||(p=this._getStoredAttributes())}else{const v=this.getFirstRange();for(const Z of v){if(Z.item.is("element")&&c.isObject(Z.item))break;if("text"==Z.type){p=Z.item.getAttributes();break}}}return p}_fixGraveyardSelection(r){const c=this._model.schema.getNearestSelectionRange(r);c&&this._pushRange(c)}}function R1(b){return b instanceof Zo||b instanceof Bi?b.getAttributes():null}class m_{constructor(r){this._dispatchers=r}add(r){for(const c of this._dispatchers)r(c);return this}}var Qr=function(b){return Wc(b,5)};class Fr extends m_{elementToElement(r){return this.add(function(c){return(c=Qr(c)).view=r1(c.view,"container"),p=>{var v;p.on("insert:"+c.model,(v=c.view,(Z,S,I)=>{const V=v(S.item,I.writer);if(!V||!I.consumable.consume(S.item,"insert"))return;const it=I.mapper.toViewPosition(S.range.start);I.mapper.bindElements(S.item,V),I.writer.insert(it,V)}),{priority:c.converterPriority||"normal"})}}(r))}attributeToElement(r){return this.add(function(c){let p="attribute:"+((c=Qr(c)).model.key?c.model.key:c.model);if(c.model.name&&(p+=":"+c.model.name),c.model.values)for(const Z of c.model.values)c.view[Z]=r1(c.view[Z],"attribute");else c.view=r1(c.view,"attribute");const v=N2(c);return Z=>{var S;Z.on(p,(S=v,(I,V,it)=>{const dt=S(V.attributeOldValue,it.writer),xt=S(V.attributeNewValue,it.writer);if(!dt&&!xt||!it.consumable.consume(V.item,I.name))return;const le=it.writer;if(V.item instanceof md||V.item instanceof xl)le.wrap(le.document.selection.getFirstRange(),xt);else{let rn=it.mapper.toViewRange(V.range);null!==V.attributeOldValue&&dt&&(rn=le.unwrap(rn,dt)),null!==V.attributeNewValue&&xt&&le.wrap(rn,xt)}}),{priority:c.converterPriority||"normal"})}}(r))}attributeToAttribute(r){return this.add(function(c){let p="attribute:"+((c=Qr(c)).model.key?c.model.key:c.model);if(c.model.name&&(p+=":"+c.model.name),c.model.values)for(const Z of c.model.values)c.view[Z]=_m(c.view[Z]);else c.view=_m(c.view);const v=N2(c);return Z=>{var S;Z.on(p,(S=v,(I,V,it)=>{const dt=S(V.attributeOldValue,V),xt=S(V.attributeNewValue,V);if(!dt&&!xt||!it.consumable.consume(V.item,I.name))return;const le=it.mapper.toViewElement(V.item),Ie=it.writer;if(!le)throw new En.b("conversion-attribute-to-attribute-on-text: Trying to convert text node's attribute with attribute-to-attribute converter.",[V,it]);if(null!==V.attributeOldValue&&dt)if("class"==dt.key){const rn=Array.isArray(dt.value)?dt.value:[dt.value];for(const vn of rn)Ie.removeClass(vn,le)}else if("style"==dt.key){const rn=Object.keys(dt.value);for(const vn of rn)Ie.removeStyle(vn,le)}else Ie.removeAttribute(dt.key,le);if(null!==V.attributeNewValue&&xt)if("class"==xt.key){const rn=Array.isArray(xt.value)?xt.value:[xt.value];for(const vn of rn)Ie.addClass(vn,le)}else if("style"==xt.key){const rn=Object.keys(xt.value);for(const vn of rn)Ie.setStyle(vn,xt.value[vn],le)}else Ie.setAttribute(xt.key,xt.value,le)}),{priority:c.converterPriority||"normal"})}}(r))}markerToElement(r){return this.add(function(c){return(c=Qr(c)).view=r1(c.view,"ui"),p=>{var v;p.on("addMarker:"+c.model,(v=c.view,(Z,S,I)=>{S.isOpening=!0;const V=v(S,I.writer);S.isOpening=!1;const it=v(S,I.writer);if(!V||!it)return;const dt=S.markerRange;if(dt.isCollapsed&&!I.consumable.consume(dt,Z.name))return;for(const Ie of dt)if(!I.consumable.consume(Ie.item,Z.name))return;const xt=I.mapper,le=I.writer;le.insert(xt.toViewPosition(dt.start),V),I.mapper.bindElementToMarker(V,S.markerName),dt.isCollapsed||(le.insert(xt.toViewPosition(dt.end),it),I.mapper.bindElementToMarker(it,S.markerName)),Z.stop()}),{priority:c.converterPriority||"normal"}),p.on("removeMarker:"+c.model,(Z,S,I)=>{const V=I.mapper.markerNameToElements(S.markerName);if(V){for(const it of V)I.mapper.unbindElementFromMarkerName(it,S.markerName),I.writer.clear(I.writer.createRangeOn(it),it);I.writer.clearClonedElementsGroup(S.markerName),Z.stop()}},{priority:c.converterPriority||"normal"})}}(r))}markerToHighlight(r){return this.add(function(c){return p=>{var v,Z;p.on("addMarker:"+c.model,(v=c.view,(Z,S,I)=>{if(!S.item||!(S.item instanceof md||S.item instanceof xl||S.item.is("$textProxy")))return;const V=f_(v,S,I);if(!V||!I.consumable.consume(S.item,Z.name))return;const it=I.writer,dt=a1(it,V),xt=it.document.selection;if(S.item instanceof md||S.item instanceof xl)it.wrap(xt.getFirstRange(),dt,xt);else{const le=I.mapper.toViewRange(S.range),Ie=it.wrap(le,dt);for(const rn of Ie.getItems())if(rn.is("attributeElement")&&rn.isSimilar(dt)){I.mapper.bindElementToMarker(rn,S.markerName);break}}}),{priority:c.converterPriority||"normal"}),p.on("addMarker:"+c.model,(Z=c.view,(S,I,V)=>{if(!(I.item&&I.item instanceof Wo))return;const it=f_(Z,I,V);if(!it||!V.consumable.test(I.item,S.name))return;const dt=V.mapper.toViewElement(I.item);if(dt&&dt.getCustomProperty("addHighlight")){V.consumable.consume(I.item,S.name);for(const xt of bi._createIn(I.item))V.consumable.consume(xt.item,S.name);dt.getCustomProperty("addHighlight")(dt,it,V.writer),V.mapper.bindElementToMarker(dt,I.markerName)}}),{priority:c.converterPriority||"normal"}),p.on("removeMarker:"+c.model,function(Z){return(S,I,V)=>{if(I.markerRange.isCollapsed)return;const it=f_(Z,I,V);if(!it)return;const dt=a1(V.writer,it),xt=V.mapper.markerNameToElements(I.markerName);if(xt){for(const le of xt)V.mapper.unbindElementFromMarkerName(le,I.markerName),le.is("attributeElement")?V.writer.unwrap(V.writer.createRangeOn(le),dt):le.getCustomProperty("removeHighlight")(le,it.id,V.writer);V.writer.clearClonedElementsGroup(I.markerName),S.stop()}}}(c.view),{priority:c.converterPriority||"normal"})}}(r))}markerToData(r){return this.add(function(c){const p=(c=Qr(c)).model;return c.view||(c.view=v=>({group:p,name:v.substr(c.model.length+1)})),v=>{var Z,S;v.on("addMarker:"+p,(Z=c.view,(S,I,V)=>{const it=Z(I.markerName);if(!it)return;const dt=I.markerRange;V.consumable.consume(dt,S.name)&&(__(dt,!1,V,I,it),__(dt,!0,V,I,it),S.stop())}),{priority:c.converterPriority||"normal"}),v.on("removeMarker:"+p,(S=c.view,(I,V,it)=>{const dt=S(V.markerName);if(!dt)return;const xt=it.mapper.markerNameToElements(V.markerName);if(xt){for(const Ie of xt)it.mapper.unbindElementFromMarkerName(Ie,V.markerName),Ie.is("containerElement")?(le(`data-${dt.group}-start-before`,Ie),le(`data-${dt.group}-start-after`,Ie),le(`data-${dt.group}-end-before`,Ie),le(`data-${dt.group}-end-after`,Ie)):it.writer.clear(it.writer.createRangeOn(Ie),Ie);it.writer.clearClonedElementsGroup(V.markerName),I.stop()}function le(Ie,rn){if(rn.hasAttribute(Ie)){const vn=new Set(rn.getAttribute(Ie).split(","));vn.delete(dt.name),0==vn.size?it.writer.removeAttribute(Ie,rn):it.writer.setAttribute(Ie,Array.from(vn).join(","),rn)}}}),{priority:c.converterPriority||"normal"})}}(r))}}function a1(b,r){const c=b.createAttributeElement("span",r.attributes);return r.classes&&c._addClass(r.classes),r.priority&&(c._priority=r.priority),c._id=r.id,c}function __(b,r,c,p,v){const Z=r?b.start:b.end;if(c.schema.checkChild(Z,"$text"))!function(S,I,V,it,dt){const Ie=V.writer.createUIElement(`${dt.group}-${I?"start":"end"}`,dt.name?{name:dt.name}:null);V.writer.insert(S,Ie),V.mapper.bindElementToMarker(Ie,it.markerName)}(c.mapper.toViewPosition(Z),r,c,p,v);else{let S,I;r&&Z.nodeAfter||!r&&!Z.nodeBefore?(S=Z.nodeAfter,I=!0):(S=Z.nodeBefore,I=!1),function(V,it,dt,xt,le,Ie){const rn=`data-${Ie.group}-${it?"start":"end"}-${dt?"before":"after"}`,vn=V.hasAttribute(rn)?V.getAttribute(rn).split(","):[];vn.unshift(Ie.name),xt.writer.setAttribute(rn,vn.join(","),V),xt.mapper.bindElementToMarker(V,le.markerName)}(c.mapper.toViewElement(S),r,I,c,p,v)}}function r1(b,r){return"function"==typeof b?b:(c,p)=>function(v,Z,S){let I;"string"==typeof v&&(v={name:v});const V=Object.assign({},v.attributes);if(I="container"==S?Z.createContainerElement(v.name,V):"attribute"==S?Z.createAttributeElement(v.name,V,{priority:v.priority||Mr.DEFAULT_PRIORITY}):Z.createUIElement(v.name,V),v.styles){const it=Object.keys(v.styles);for(const dt of it)Z.setStyle(dt,v.styles[dt],I)}if(v.classes){const it=v.classes;if("string"==typeof it)Z.addClass(it,I);else for(const dt of it)Z.addClass(dt,I)}return I}(b,p,r)}function N2(b){return b.model.values?(r,c)=>{const p=b.view[r];return p?p(r,c):null}:b.view}function _m(b){return"string"==typeof b?r=>({key:b,value:r}):"object"==typeof b?b.value?()=>b:r=>({key:b.key,value:r}):b}function f_(b,r,c){const p="function"==typeof b?b(r,c):b;return p?(p.priority||(p.priority=10),p.id||(p.id=r.markerName),p):null}class h_ extends m_{elementToElement(r){return this.add(g_(r))}elementToAttribute(r){return this.add(function(c){Ed(c=Qr(c));const p=Dp(c,!1),v=Ru(c.view),Z=v?"element:"+v:"element";return S=>{S.on(Z,p,{priority:c.converterPriority||"low"})}}(r))}attributeToAttribute(r){return this.add(function(c){let p=null;("string"==typeof(c=Qr(c)).view||c.view.key)&&(p=function(Z){"string"==typeof Z.view&&(Z.view={key:Z.view});const S=Z.view.key;let I;return I="class"==S||"style"==S?{["class"==S?"classes":"styles"]:Z.view.value}:{attributes:{[S]:void 0===Z.view.value?/[\s\S]*/:Z.view.value}},Z.view.name&&(I.name=Z.view.name),Z.view=I,S}(c)),Ed(c,p);const v=Dp(c,!0);return Z=>{Z.on("element",v,{priority:c.converterPriority||"low"})}}(r))}elementToMarker(r){return console.warn(Object(En.a)("upcast-helpers-element-to-marker-deprecated: The UpcastHelpers#elementToMarker() method has been deprecated and will be removed in the near future. Please use UpcastHelpers#dataToMarker() instead.")),this.add(function(c){return function(p){const v=p.model;p.model=(Z,S)=>{const I="string"==typeof v?v:v(Z);return S.createElement("$marker",{"data-name":I})}}(c=Qr(c)),g_(c)}(r))}dataToMarker(r){return this.add(function(c){(c=Qr(c)).model||(c.model=Z=>Z?c.view+":"+Z:c.view);const p=v_(fm(c,"start")),v=v_(fm(c,"end"));return Z=>{Z.on("element:"+c.view+"-start",p,{priority:c.converterPriority||"normal"}),Z.on("element:"+c.view+"-end",v,{priority:c.converterPriority||"normal"});const S=ar.get("low"),I=ar.get("highest"),V=ar.get(c.converterPriority)/I;var it;Z.on("element",(it=c,(dt,xt,le)=>{const Ie="data-"+it.view;function rn(vn,wn){for(const qn of wn){const mi=it.model(qn),xi=le.writer.createElement("$marker",{"data-name":mi});le.writer.insert(xi,vn),xt.modelCursor=xt.modelCursor.isEqual(vn)?xt.modelCursor.getShiftedBy(1):xt.modelCursor._getTransformedByInsertion(vn,1),xt.modelRange=xt.modelRange._getTransformedByInsertion(vn,1)[0]}}xt.modelRange||(xt=Object.assign(xt,le.convertChildren(xt.viewItem,xt.modelCursor))),le.consumable.consume(xt.viewItem,{attributes:Ie+"-end-after"})&&rn(xt.modelRange.end,xt.viewItem.getAttribute(Ie+"-end-after").split(",")),le.consumable.consume(xt.viewItem,{attributes:Ie+"-start-after"})&&rn(xt.modelRange.end,xt.viewItem.getAttribute(Ie+"-start-after").split(",")),le.consumable.consume(xt.viewItem,{attributes:Ie+"-end-before"})&&rn(xt.modelRange.start,xt.viewItem.getAttribute(Ie+"-end-before").split(",")),le.consumable.consume(xt.viewItem,{attributes:Ie+"-start-before"})&&rn(xt.modelRange.start,xt.viewItem.getAttribute(Ie+"-start-before").split(","))}),{priority:S+V})}}(r))}}function g_(b){const r=v_(b=Qr(b)),c=Ru(b.view),p=c?"element:"+c:"element";return v=>{v.on(p,r,{priority:b.converterPriority||"normal"})}}function Ru(b){return"string"==typeof b?b:"object"==typeof b&&"string"==typeof b.name?b.name:null}function v_(b){const r=b.view?new Xt(b.view):null;return(c,p,v)=>{let Z={};if(r){const le=r.match(p.viewItem);if(!le)return;Z=le.match}Z.name=!0;const S=(it=v.writer,(I=b.model)instanceof Function?I(p.viewItem,it):it.createElement(I));var I,it;if(!S||!v.consumable.test(p.viewItem,Z))return;const dt=v.splitToAllowedParent(S,p.modelCursor);if(!dt)return;v.writer.insert(S,dt.position),v.convertChildren(p.viewItem,v.writer.createPositionAt(S,0)),v.consumable.consume(p.viewItem,Z);const xt=v.getSplitParts(S);p.modelRange=new bi(v.writer.createPositionBefore(S),v.writer.createPositionAfter(xt[xt.length-1])),p.modelCursor=dt.cursorParent?v.writer.createPositionAt(dt.cursorParent,0):p.modelRange.end}}function Ed(b,r=null){b.model={key:"object"!=typeof b.model?b.model:b.model.key,value:"object"!=typeof b.model||void 0===b.model.value?null===r||(Z=>Z.getAttribute(r)):b.model.value}}function Dp(b,r){const c=new Xt(b.view);return(p,v,Z)=>{const S=c.match(v.viewItem);if(!S)return;const I=b.model.key,V="function"==typeof b.model.value?b.model.value(v.viewItem):b.model.value;null!==V&&(function(it,dt){const xt="function"==typeof it?it(dt):it;return!("object"==typeof xt&&!Ru(xt)||xt.classes||xt.attributes||xt.styles)}(b.view,v.viewItem)?S.match.name=!0:delete S.match.name,Z.consumable.test(v.viewItem,S.match)&&(v.modelRange||(v=Object.assign(v,Z.convertChildren(v.viewItem,v.modelCursor))),function(it,dt,xt,le){let Ie=!1;for(const rn of Array.from(it.getItems({shallow:xt})))le.schema.checkAttribute(rn,dt.key)&&(le.writer.setAttribute(dt.key,dt.value,rn),Ie=!0);return Ie}(v.modelRange,{key:I,value:V},r,Z)&&Z.consumable.consume(v.viewItem,S.match)))}}function fm(b,r){const c={};return c.view=b.view+"-"+r,c.model=(p,v)=>{const Z=p.getAttribute("name"),S=b.model(Z);return v.createElement("$marker",{"data-name":S})},c}class b_{constructor(r,c){this.model=r,this.view=new In(c),this.mapper=new pm,this.downcastDispatcher=new mm({mapper:this.mapper,schema:r.schema});const p=this.model.document,v=p.selection,Z=this.model.markers;var S,I;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(p,"change",()=>{this.view.change(S=>{this.downcastDispatcher.convertChanges(p.differ,Z,S),this.downcastDispatcher.convertSelection(v,Z,S)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",(S=this.model,I=this.mapper,(V,it)=>{const dt=it.newSelection,xt=new md,le=[];for(const Ie of dt.getRanges())le.push(I.toModelRange(Ie));xt.setTo(le,{backward:dt.isBackward}),xt.isEqual(S.document.selection)||S.change(Ie=>{Ie.setSelection(xt)})})),this.downcastDispatcher.on("insert:$text",(S,I,V)=>{if(!V.consumable.consume(I.item,"insert"))return;const it=V.writer,dt=V.mapper.toViewPosition(I.range.start),xt=it.createText(I.item.data);it.insert(dt,xt)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(S,I,V)=>{const it=V.mapper.toViewPosition(I.position),dt=I.position.getShiftedBy(I.length),xt=V.mapper.toViewPosition(dt,{isPhantom:!0}),le=V.writer.createRange(it,xt),Ie=V.writer.remove(le.getTrimmed());for(const rn of V.writer.createRangeIn(Ie).getItems())V.mapper.unbindViewElement(rn)},{priority:"low"}),this.downcastDispatcher.on("selection",(S,I,V)=>{const it=V.writer,dt=it.document.selection;for(const xt of dt.getRanges())xt.isCollapsed&&xt.end.parent.isAttached()&&V.writer.mergeAttributes(xt.start);it.setSelection(null)},{priority:"low"}),this.downcastDispatcher.on("selection",(S,I,V)=>{const it=I.selection;if(it.isCollapsed||!V.consumable.consume(it,"selection"))return;const dt=[];for(const xt of it.getRanges()){const le=V.mapper.toViewRange(xt);dt.push(le)}V.writer.setSelection(dt,{backward:it.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(S,I,V)=>{const it=I.selection;if(!it.isCollapsed||!V.consumable.consume(it,"selection"))return;const dt=V.writer,xt=it.getFirstPosition(),le=V.mapper.toViewPosition(xt),Ie=dt.breakAttributes(le);dt.setSelection(Ie)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(S=>{if("$graveyard"==S.rootName)return null;const I=new ii(this.view.document,S.name);return I.rootName=S.rootName,this.mapper.bindElements(S,I),I})}destroy(){this.view.destroy(),this.stopListening()}}Si(b_,Ut);class C_{constructor(){this._commands=new Map}add(r,c){this._commands.set(r,c)}get(r){return this._commands.get(r)}execute(r,...c){const p=this.get(r);if(!p)throw new En.b("commandcollection-command-not-found: Command does not exist.",this,{commandName:r});return p.execute(...c)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const r of this.commands())r.destroy()}}class H1{constructor(){this._consumables=new Map}add(r,c){let p;r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):(this._consumables.has(r)?p=this._consumables.get(r):(p=new s1(r),this._consumables.set(r,p)),p.add(c))}test(r,c){const p=this._consumables.get(r);return void 0===p?null:r.is("$text")||r.is("documentFragment")?p:p.test(c)}consume(r,c){return!!this.test(r,c)&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!1):this._consumables.get(r).consume(c),!0)}revert(r,c){const p=this._consumables.get(r);void 0!==p&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):p.revert(c))}static consumablesFromElement(r){const c={element:r,name:!0,attributes:[],classes:[],styles:[]},p=r.getAttributeKeys();for(const S of p)"style"!=S&&"class"!=S&&c.attributes.push(S);const v=r.getClassNames();for(const S of v)c.classes.push(S);const Z=r.getStyleNames();for(const S of Z)c.styles.push(S);return c}static createFrom(r,c){if(c||(c=new H1(r)),r.is("$text"))return c.add(r),c;r.is("element")&&c.add(r,H1.consumablesFromElement(r)),r.is("documentFragment")&&c.add(r);for(const p of r.getChildren())c=H1.createFrom(p,c);return c}}class s1{constructor(r){this.element=r,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(r){r.name&&(this._canConsumeName=!0);for(const c in this._consumables)c in r&&this._add(c,r[c])}test(r){if(r.name&&!this._canConsumeName)return this._canConsumeName;for(const c in this._consumables)if(c in r){const p=this._test(c,r[c]);if(!0!==p)return p}return!0}consume(r){r.name&&(this._canConsumeName=!1);for(const c in this._consumables)c in r&&this._consume(c,r[c])}revert(r){r.name&&(this._canConsumeName=!0);for(const c in this._consumables)c in r&&this._revert(c,r[c])}_add(r,c){const p=yn(c)?c:[c],v=this._consumables[r];for(const Z of p){if("attributes"===r&&("class"===Z||"style"===Z))throw new En.b("viewconsumable-invalid-attribute: Classes and styles should be handled separately.",this);if(v.set(Z,!0),"styles"===r)for(const S of this.element.document.stylesProcessor.getRelatedStyles(Z))v.set(S,!0)}}_test(r,c){const p=yn(c)?c:[c],v=this._consumables[r];for(const Z of p)if("attributes"!==r||"class"!==Z&&"style"!==Z){const S=v.get(Z);if(void 0===S)return null;if(!S)return!1}else{const S="class"==Z?"classes":"styles",I=this._test(S,[...this._consumables[S].keys()]);if(!0!==I)return I}return!0}_consume(r,c){const p=yn(c)?c:[c],v=this._consumables[r];for(const Z of p)if("attributes"!==r||"class"!==Z&&"style"!==Z){if(v.set(Z,!1),"styles"==r)for(const S of this.element.document.stylesProcessor.getRelatedStyles(Z))v.set(S,!1)}else{const S="class"==Z?"classes":"styles";this._consume(S,[...this._consumables[S].keys()])}}_revert(r,c){const p=yn(c)?c:[c],v=this._consumables[r];for(const Z of p)if("attributes"!==r||"class"!==Z&&"style"!==Z)!1===v.get(Z)&&v.set(Z,!0);else{const S="class"==Z?"classes":"styles";this._revert(S,[...this._consumables[S].keys()])}}}class hm{constructor(){this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(r,c)=>{c[0]=new Nd(c[0])},{priority:"highest"}),this.on("checkChild",(r,c)=>{c[0]=new Nd(c[0]),c[1]=this.getDefinition(c[1])},{priority:"highest"})}register(r,c){if(this._sourceDefinitions[r])throw new En.b("schema-cannot-register-item-twice: A single item cannot be registered twice in the schema.",this,{itemName:r});this._sourceDefinitions[r]=[Object.assign({},c)],this._clearCache()}extend(r,c){if(!this._sourceDefinitions[r])throw new En.b("schema-cannot-extend-missing-item: Cannot extend an item which was not registered yet.",this,{itemName:r});this._sourceDefinitions[r].push(Object.assign({},c)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(r){let c;return c="string"==typeof r?r:r.is&&(r.is("$text")||r.is("$textProxy"))?"$text":r.name,this.getDefinitions()[c]}isRegistered(r){return!!this.getDefinition(r)}isBlock(r){const c=this.getDefinition(r);return!(!c||!c.isBlock)}isLimit(r){const c=this.getDefinition(r);return!(!c||!c.isLimit&&!c.isObject)}isObject(r){const c=this.getDefinition(r);return!(!c||!c.isObject)}isInline(r){const c=this.getDefinition(r);return!(!c||!c.isInline)}checkChild(r,c){return!!c&&this._checkContextMatch(c,r)}checkAttribute(r,c){const p=this.getDefinition(r.last);return!!p&&p.allowAttributes.includes(c)}checkMerge(r,c=null){if(r instanceof Ei){const p=r.nodeBefore,v=r.nodeAfter;if(!(p instanceof Wo))throw new En.b("schema-check-merge-no-element-before: The node before the merge position must be an element.",this);if(!(v instanceof Wo))throw new En.b("schema-check-merge-no-element-after: The node after the merge position must be an element.",this);return this.checkMerge(p,v)}for(const p of c.getChildren())if(!this.checkChild(r,p))return!1;return!0}addChildCheck(r){this.on("checkChild",(c,[p,v])=>{if(!v)return;const Z=r(p,v);"boolean"==typeof Z&&(c.stop(),c.return=Z)},{priority:"high"})}addAttributeCheck(r){this.on("checkAttribute",(c,[p,v])=>{const Z=r(p,v);"boolean"==typeof Z&&(c.stop(),c.return=Z)},{priority:"high"})}setAttributeProperties(r,c){this._attributeProperties[r]=Object.assign(this.getAttributeProperties(r),c)}getAttributeProperties(r){return this._attributeProperties[r]||{}}getLimitElement(r){let c;for(c=r instanceof Ei?r.parent:(r instanceof bi?[r]:Array.from(r.getRanges())).reduce((p,v)=>{const Z=v.getCommonAncestor();return p?p.getCommonAncestor(Z,{includeSelf:!0}):Z},null);!this.isLimit(c)&&c.parent;)c=c.parent;return c}checkAttributeInSelection(r,c){if(r.isCollapsed){const p=[...r.getFirstPosition().getAncestors(),new Bi("",r.getAttributes())];return this.checkAttribute(p,c)}{const p=r.getRanges();for(const v of p)for(const Z of v)if(this.checkAttribute(Z.item,c))return!0}return!1}*getValidRanges(r,c){r=function*(p){for(const v of p)yield*v.getMinimalFlatRanges()}(r);for(const p of r)yield*this._getValidRangesForRange(p,c)}getNearestSelectionRange(r,c="both"){if(this.checkChild(r,"$text"))return new bi(r);let p,v;const Z=r.getAncestors().reverse().find(S=>this.isLimit(S))||r.root;"both"!=c&&"backward"!=c||(p=new js({boundaries:bi._createIn(Z),startPosition:r,direction:"backward"})),"both"!=c&&"forward"!=c||(v=new js({boundaries:bi._createIn(Z),startPosition:r}));for(const S of function*(I,V){let it=!1;for(;!it;){if(it=!0,I){const dt=I.next();dt.done||(it=!1,yield{walker:I,value:dt.value})}if(V){const dt=V.next();dt.done||(it=!1,yield{walker:V,value:dt.value})}}}(p,v)){const V=S.value;if(V.type==(S.walker==p?"elementEnd":"elementStart")&&this.isObject(V.item))return bi._createOn(V.item);if(this.checkChild(V.nextPosition,"$text"))return new bi(V.nextPosition)}return null}findAllowedParent(r,c){let p=r.parent;for(;p;){if(this.checkChild(p,c))return p;if(this.isLimit(p))return null;p=p.parent}return null}removeDisallowedAttributes(r,c){for(const p of r)if(p.is("$text"))Gt(this,p,c);else{const v=bi._createIn(p).getPositions();for(const Z of v)Gt(this,Z.nodeBefore||Z.parent,c)}}createContext(r){return new Nd(r)}_clearCache(){this._compiledDefinitions=null}_compile(){const r={},c=this._sourceDefinitions,p=Object.keys(c);for(const v of p)r[v]=F2(c[v],v);for(const v of p)x_(r,v);for(const v of p)I2(r,v);for(const v of p)$a(r,v),nl(r,v);for(const v of p)R2(r,v),nh(r,v);this._compiledDefinitions=r}_checkContextMatch(r,c,p=c.length-1){const v=c.getItem(p);if(r.allowIn.includes(v.name)){if(0==p)return!0;{const Z=this.getDefinition(v);return this._checkContextMatch(Z,c,p-1)}}return!1}*_getValidRangesForRange(r,c){let p=r.start,v=r.start;for(const Z of r.getItems({shallow:!0}))Z.is("element")&&(yield*this._getValidRangesForRange(bi._createIn(Z),c)),this.checkAttribute(Z,c)||(p.isEqual(v)||(yield new bi(p,v)),p=Ei._createAfter(Z)),v=Ei._createAfter(Z);p.isEqual(v)||(yield new bi(p,v))}}Si(hm,Ut);class Nd{constructor(r){if(r instanceof Nd)return r;"string"==typeof r?r=[r]:Array.isArray(r)||(r=r.getAncestors({includeSelf:!0})),r[0]&&"string"!=typeof r[0]&&r[0].is("documentFragment")&&r.shift(),this._items=r.map(Us)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(r){const c=new Nd([r]);return c._items=[...this._items,...c._items],c}getItem(r){return this._items[r]}*getNames(){yield*this._items.map(r=>r.name)}endsWith(r){return Array.from(this.getNames()).join(" ").endsWith(r)}startsWith(r){return Array.from(this.getNames()).join(" ").startsWith(r)}}function F2(b,r){const c={name:r,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],inheritTypesFrom:[]};return function(p,v){for(const Z of p){const S=Object.keys(Z).filter(I=>I.startsWith("is"));for(const I of S)v[I]=Z[I]}}(b,c),Fd(b,c,"allowIn"),Fd(b,c,"allowContentOf"),Fd(b,c,"allowWhere"),Fd(b,c,"allowAttributes"),Fd(b,c,"allowAttributesOf"),Fd(b,c,"inheritTypesFrom"),function(p,v){for(const Z of p){const S=Z.inheritAllFrom;S&&(v.allowContentOf.push(S),v.allowWhere.push(S),v.allowAttributesOf.push(S),v.inheritTypesFrom.push(S))}}(b,c),c}function x_(b,r){for(const c of b[r].allowContentOf)b[c]&&uu(b,c).forEach(p=>{p.allowIn.push(r)});delete b[r].allowContentOf}function I2(b,r){for(const c of b[r].allowWhere){const p=b[c];p&&b[r].allowIn.push(...p.allowIn)}delete b[r].allowWhere}function $a(b,r){for(const c of b[r].allowAttributesOf){const p=b[c];p&&b[r].allowAttributes.push(...p.allowAttributes)}delete b[r].allowAttributesOf}function nl(b,r){const c=b[r];for(const p of c.inheritTypesFrom){const v=b[p];if(v){const Z=Object.keys(v).filter(S=>S.startsWith("is"));for(const S of Z)S in c||(c[S]=v[S])}}delete c.inheritTypesFrom}function R2(b,r){const c=b[r],p=c.allowIn.filter(v=>b[v]);c.allowIn=Array.from(new Set(p))}function nh(b,r){const c=b[r];c.allowAttributes=Array.from(new Set(c.allowAttributes))}function Fd(b,r,c){for(const p of b)"string"==typeof p[c]?r[c].push(p[c]):Array.isArray(p[c])&&r[c].push(...p[c])}function uu(b,r){const c=b[r];return(p=b,Object.keys(p).map(v=>p[v])).filter(v=>v.allowIn.includes(c.name));var p}function Us(b){return"string"==typeof b?{name:b,*getAttributeKeys(){},getAttribute(){}}:{name:b.is("element")?b.name:"$text",*getAttributeKeys(){yield*b.getAttributeKeys()},getAttribute:r=>b.getAttribute(r)}}function Gt(b,r,c){for(const p of r.getAttributeKeys())b.checkAttribute(r,p)||c.removeAttribute(p,r)}class ih{constructor(r={}){this._splitParts=new Map,this._modelCursor=null,this.conversionApi=Object.assign({},r),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}convert(r,c,p=["$root"]){this.fire("viewCleanup",r),this._modelCursor=function(S,I){let V;for(const it of new Nd(S)){const dt={};for(const le of it.getAttributeKeys())dt[le]=it.getAttribute(le);const xt=I.createElement(it.name,dt);V&&I.append(xt,V),V=Ei._createAt(xt,0)}return V}(p,c),this.conversionApi.writer=c,this.conversionApi.consumable=H1.createFrom(r),this.conversionApi.store={};const{modelRange:v}=this._convertItem(r,this._modelCursor),Z=c.createDocumentFragment();if(v){this._removeEmptyElements();for(const S of Array.from(this._modelCursor.parent.getChildren()))c.append(S,Z);Z.markers=function(S,I){const V=new Set,it=new Map,dt=bi._createIn(S).getItems();for(const xt of dt)"$marker"==xt.name&&V.add(xt);for(const xt of V){const le=xt.getAttribute("data-name"),Ie=I.createPositionBefore(xt);it.has(le)?it.get(le).end=Ie.clone():it.set(le,new bi(Ie.clone())),I.remove(xt)}return it}(Z,c)}return this._modelCursor=null,this._splitParts.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,Z}_convertItem(r,c){const p=Object.assign({viewItem:r,modelCursor:c,modelRange:null});if(r.is("element")?this.fire("element:"+r.name,p,this.conversionApi):r.is("$text")?this.fire("text",p,this.conversionApi):this.fire("documentFragment",p,this.conversionApi),p.modelRange&&!(p.modelRange instanceof bi))throw new En.b("view-conversion-dispatcher-incorrect-result: Incorrect conversion result was dropped.",this);return{modelRange:p.modelRange,modelCursor:p.modelCursor}}_convertChildren(r,c){const p=new bi(c);let v=c;for(const Z of Array.from(r.getChildren())){const S=this._convertItem(Z,v);S.modelRange instanceof bi&&(p.end=S.modelRange.end,v=S.modelCursor)}return{modelRange:p,modelCursor:v}}_splitToAllowedParent(r,c){const p=this.conversionApi.schema.findAllowedParent(c,r);if(!p)return null;if(p===c.parent)return{position:c};if(this._modelCursor.parent.getAncestors().includes(p))return null;const v=this.conversionApi.writer.split(c,p),Z=[];for(const S of v.range.getWalker())if("elementEnd"==S.type)Z.push(S.item);else{const I=Z.pop();this._registerSplitPair(I,S.item)}return{position:v.position,cursorParent:v.range.end.parent}}_registerSplitPair(r,c){this._splitParts.has(r)||this._splitParts.set(r,[r]);const p=this._splitParts.get(r);this._splitParts.set(c,p),p.push(c)}_getSplitParts(r){let c;return c=this._splitParts.has(r)?this._splitParts.get(r):[r],c}_removeEmptyElements(){let r=!1;for(const c of this._splitParts.keys())c.isEmpty&&(this.conversionApi.writer.remove(c),this._splitParts.delete(c),r=!0);r&&this._removeEmptyElements()}}Si(ih,Fo);class y_{constructor(r,c){this.model=r,this.stylesProcessor=c,this.mapper=new pm,this.downcastDispatcher=new mm({mapper:this.mapper,schema:r.schema}),this.downcastDispatcher.on("insert:$text",(p,v,Z)=>{if(!Z.consumable.consume(v.item,"insert"))return;const S=Z.writer,I=Z.mapper.toViewPosition(v.range.start),V=S.createText(v.item.data);S.insert(I,V)},{priority:"lowest"}),this.upcastDispatcher=new ih({schema:r.schema}),this.viewDocument=new br(c),this._viewWriter=new Xc(this.viewDocument),this.upcastDispatcher.on("text",(p,v,Z)=>{if(Z.schema.checkChild(v.modelCursor,"$text")&&Z.consumable.consume(v.viewItem)){const S=Z.writer.createText(v.viewItem.data);Z.writer.insert(S,v.modelCursor),v.modelRange=bi._createFromPositionAndShift(v.modelCursor,S.offsetSize),v.modelCursor=v.modelRange.end}},{priority:"lowest"}),this.upcastDispatcher.on("element",(p,v,Z)=>{if(!v.modelRange&&Z.consumable.consume(v.viewItem,{name:!0})){const{modelRange:S,modelCursor:I}=Z.convertChildren(v.viewItem,v.modelCursor);v.modelRange=S,v.modelCursor=I}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(p,v,Z)=>{if(!v.modelRange&&Z.consumable.consume(v.viewItem,{name:!0})){const{modelRange:S,modelCursor:I}=Z.convertChildren(v.viewItem,v.modelCursor);v.modelRange=S,v.modelCursor=I}},{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"})}get(r){const{rootName:c="main",trim:p="empty"}=r||{};if(!this._checkIfRootsExists([c]))throw new En.b("datacontroller-get-non-existent-root: Attempting to get data from a non-existing root.",this);const v=this.model.document.getRoot(c);return"empty"!==p||this.model.hasContent(v,{ignoreWhitespaces:!0})?this.stringify(v):""}stringify(r){const c=this.toView(r);return this.processor.toData(c)}toView(r){const c=this.viewDocument,p=this._viewWriter;this.mapper.clearBindings();const v=bi._createIn(r),Z=new Ic(c);if(this.mapper.bindElements(r,Z),this.downcastDispatcher.convertInsert(v,p),!r.is("documentFragment")){const S=function(I){const V=[],it=I.root.document;if(!it)return[];const dt=bi._createIn(I);for(const xt of it.model.markers){const le=dt.getIntersection(xt.getRange());le&&V.push([xt.name,le])}return V}(r);for(const[I,V]of S)this.downcastDispatcher.convertMarkerAdd(I,V,p)}return Z}init(r){if(this.model.document.version)throw new En.b("datacontroller-init-document-not-empty: Trying to set initial data to not empty document.",this);let c={};if("string"==typeof r?c.main=r:c=r,!this._checkIfRootsExists(Object.keys(c)))throw new En.b("datacontroller-init-non-existent-root: Attempting to init data on a non-existing root.",this);return this.model.enqueueChange("transparent",p=>{for(const v of Object.keys(c)){const Z=this.model.document.getRoot(v);p.insert(this.parse(c[v],Z),Z,0)}}),Promise.resolve()}set(r){let c={};if("string"==typeof r?c.main=r:c=r,!this._checkIfRootsExists(Object.keys(c)))throw new En.b("datacontroller-set-non-existent-root: Attempting to set data on a non-existing root.",this);this.model.enqueueChange("transparent",p=>{p.setSelection(null),p.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const v of Object.keys(c)){const Z=this.model.document.getRoot(v);p.remove(p.createRangeIn(Z)),p.insert(this.parse(c[v],Z),Z,0)}})}parse(r,c="$root"){const p=this.processor.toView(r);return this.toModel(p,c)}toModel(r,c="$root"){return this.model.change(p=>this.upcastDispatcher.convert(r,p,c))}addStyleProcessorRules(r){r(this.stylesProcessor)}destroy(){this.stopListening()}_checkIfRootsExists(r){for(const c of r)if(!this.model.document.getRootNames().includes(c))return!1;return!0}}Si(y_,Ut);class Pp{constructor(r,c){this._helpers=new Map,this._downcast=Array.isArray(r)?r:[r],this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Array.isArray(c)?c:[c],this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(r,c){const p=this._downcast.includes(c);if(!this._upcast.includes(c)&&!p)throw new En.b("conversion-add-alias-dispatcher-not-registered: Trying to register and alias for a dispatcher that nas not been registered.",this);this._createConversionHelpers({name:r,dispatchers:[c],isDowncast:p})}for(r){if(!this._helpers.has(r))throw new En.b("conversion-for-unknown-group: Trying to add a converter to an unknown dispatchers group.",this);return this._helpers.get(r)}elementToElement(r){this.for("downcast").elementToElement(r);for(const{model:c,view:p}of c1(r))this.for("upcast").elementToElement({model:c,view:p,converterPriority:r.converterPriority})}attributeToElement(r){this.for("downcast").attributeToElement(r);for(const{model:c,view:p}of c1(r))this.for("upcast").elementToAttribute({view:p,model:c,converterPriority:r.converterPriority})}attributeToAttribute(r){this.for("downcast").attributeToAttribute(r);for(const{model:c,view:p}of c1(r))this.for("upcast").attributeToAttribute({view:p,model:c})}_createConversionHelpers({name:r,dispatchers:c,isDowncast:p}){if(this._helpers.has(r))throw new En.b("conversion-group-exists: Trying to register a group name that has already been registered.",this);const v=p?new Fr(c):new h_(c);this._helpers.set(r,v)}}function*c1(b){if(b.model.values)for(const r of b.model.values){const c={key:b.model.key,value:r},p=b.view[r],v=b.upcastAlso?b.upcastAlso[r]:void 0;yield*H2(c,p,v)}else yield*H2(b.model,b.view,b.upcastAlso)}function*H2(b,r,c){if(yield{model:b,view:r},c){c=Array.isArray(c)?c:[c];for(const p of c)yield{model:b,view:p}}}class Y1{constructor(r="default"){this.operations=[],this.type=r}get baseVersion(){for(const r of this.operations)if(null!==r.baseVersion)return r.baseVersion;return null}addOperation(r){return r.batch=this,this.operations.push(r),r}}class yl{constructor(r){this.baseVersion=r,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const r=Object.assign({},this);return r.__className=this.constructor.className,delete r.batch,delete r.isDocumentOperation,r}static get className(){return"Operation"}static fromJSON(r){return new this(r.baseVersion)}}class Tl{constructor(r){this.markers=new Map,this._children=new Ea,r&&this._insertChild(0,r)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(r){return"documentFragment"===r||"model:documentFragment"===r}getChild(r){return this._children.getNode(r)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(r){return this._children.getNodeIndex(r)}getChildStartOffset(r){return this._children.getNodeStartOffset(r)}getPath(){return[]}getNodeByPath(r){let c=this;for(const p of r)c=c.getChild(c.offsetToIndex(p));return c}offsetToIndex(r){return this._children.offsetToIndex(r)}toJSON(){const r=[];for(const c of this._children)r.push(c.toJSON());return r}static fromJSON(r){const c=[];for(const p of r)c.push(p.name?Wo.fromJSON(p):Bi.fromJSON(p));return new Tl(c)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,c){const p="string"==typeof(v=c)?[new Bi(v)]:(ta(v)||(v=[v]),Array.from(v).map(Z=>"string"==typeof Z?new Bi(Z):Z instanceof Zo?new Bi(Z.data,Z.getAttributes()):Z));var v;for(const v of p)null!==v.parent&&v._remove(),v.parent=this;this._children._insertNodes(r,p)}_removeChildren(r,c=1){const p=this._children._removeNodes(r,c);for(const v of p)v.parent=null;return p}}function gm(b,r){const c=(r=z1(r)).reduce((Z,S)=>Z+S.offsetSize,0),p=b.parent;_d(b);const v=b.index;return p._insertChild(v,r),Hu(p,v+r.length),Hu(p,v),new bi(b,b.getShiftedBy(c))}function as(b){if(!b.isFlat)throw new En.b("operation-utils-remove-range-not-flat: Trying to remove a range which starts and ends in different element.",this);const r=b.start.parent;_d(b.start),_d(b.end);const c=r._removeChildren(b.start.index,b.end.index-b.start.index);return Hu(r,b.start.index),c}function Sa(b,r){if(!b.isFlat)throw new En.b("operation-utils-move-range-not-flat: Trying to move a range which starts and ends in different element.",this);const c=as(b);return gm(r=r._getTransformedByDeletion(b.start,b.end.offset-b.start.offset),c)}function z1(b){const r=[];b instanceof Array||(b=[b]);for(let c=0;cr.maxOffset)throw new En.b("move-operation-nodes-do-not-exist: The nodes which should be moved do not exist.",this);if(r===c&&p=p&&this.targetPosition.path[Z]p._clone(!0))),c=new fo(this.position,r,this.baseVersion);return c.shouldReceiveAttributes=this.shouldReceiveAttributes,c}getReversed(){const c=new Ei(this.position.root.document.graveyard,[0]);return new Jo(this.position,this.nodes.maxOffset,c,this.baseVersion+1)}_validate(){const r=this.position.parent;if(!r||r.maxOffsetc._clone(!0))),gm(this.position,r)}toJSON(){const r=super.toJSON();return r.position=this.position.toJSON(),r.nodes=this.nodes.toJSON(),r}static get className(){return"InsertOperation"}static fromJSON(r,c){const p=[];for(const Z of r.nodes)p.push(Z.name?Wo.fromJSON(Z):Bi.fromJSON(Z));const v=new fo(Ei.fromJSON(r.position,c),p,r.baseVersion);return v.shouldReceiveAttributes=r.shouldReceiveAttributes,v}}class Hc extends yl{constructor(r,c,p,v,Z,S){super(S),this.name=r,this.oldRange=c?c.clone():null,this.newRange=p?p.clone():null,this.affectsData=Z,this._markers=v}get type(){return"marker"}clone(){return new Hc(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Hc(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){this._markers[this.newRange?"_set":"_remove"](this.name,this.newRange,!0,this.affectsData)}toJSON(){const r=super.toJSON();return this.oldRange&&(r.oldRange=this.oldRange.toJSON()),this.newRange&&(r.newRange=this.newRange.toJSON()),delete r._markers,r}static get className(){return"MarkerOperation"}static fromJSON(r,c){return new Hc(r.name,r.oldRange?bi.fromJSON(r.oldRange,c):null,r.newRange?bi.fromJSON(r.newRange,c):null,c.model.markers,r.affectsData,r.baseVersion)}}class Qa extends yl{constructor(r,c,p,v){super(v),this.position=r,this.position.stickiness="toNext",this.oldName=c,this.newName=p}get type(){return"rename"}clone(){return new Qa(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Qa(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const r=this.position.nodeAfter;if(!(r instanceof Wo))throw new En.b("rename-operation-wrong-position: Given position is invalid or node after it is not an instance of Element.",this);if(r.name!==this.oldName)throw new En.b("rename-operation-wrong-name: Element to change has different name than operation's old name.",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const r=super.toJSON();return r.position=this.position.toJSON(),r}static get className(){return"RenameOperation"}static fromJSON(r,c){return new Qa(Ei.fromJSON(r.position,c),r.oldName,r.newName,r.baseVersion)}}class Al extends yl{constructor(r,c,p,v,Z){super(Z),this.root=r,this.key=c,this.oldValue=p,this.newValue=v}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new Al(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Al(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new En.b("rootattribute-operation-not-a-root: The element to change is not a root element.",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new En.b("rootattribute-operation-wrong-old-value: Changed node has different attribute value than operation's old attribute value.",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new En.b("rootattribute-operation-attribute-exists: The attribute with given key already exists.",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const r=super.toJSON();return r.root=this.root.toJSON(),r}static get className(){return"RootAttributeOperation"}static fromJSON(r,c){if(!c.getRoot(r.root))throw new En.b("rootattribute-operation-fromjson-no-root: Cannot create RootAttributeOperation. Root with specified name does not exist.",this,{rootName:r.root});return new Al(c.getRoot(r.root),r.key,r.oldValue,r.newValue,r.baseVersion)}}class rs extends yl{constructor(r,c,p,v,Z){super(Z),this.sourcePosition=r.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=c,this.targetPosition=p.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=v.clone()}get type(){return"merge"}get deletionPosition(){return new Ei(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const r=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new bi(this.sourcePosition,r)}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const r=this.targetPosition._getTransformedByMergeOperation(this),c=this.sourcePosition.path.slice(0,-1),p=new Ei(this.sourcePosition.root,c)._getTransformedByMergeOperation(this),v=new Ka(r,this.howMany,this.graveyardPosition,this.baseVersion+1);return v.insertionPosition=p,v}_validate(){const r=this.sourcePosition.parent,c=this.targetPosition.parent;if(!r.parent)throw new En.b("merge-operation-source-position-invalid: Merge source position is invalid.",this);if(!c.parent)throw new En.b("merge-operation-target-position-invalid: Merge target position is invalid.",this);if(this.howMany!=r.maxOffset)throw new En.b("merge-operation-how-many-invalid: Merge operation specifies wrong number of nodes to move.",this)}_execute(){const r=this.sourcePosition.parent;Sa(bi._createIn(r),this.targetPosition),Sa(bi._createOn(r),this.graveyardPosition)}toJSON(){const r=super.toJSON();return r.sourcePosition=r.sourcePosition.toJSON(),r.targetPosition=r.targetPosition.toJSON(),r.graveyardPosition=r.graveyardPosition.toJSON(),r}static get className(){return"MergeOperation"}static fromJSON(r,c){const p=Ei.fromJSON(r.sourcePosition,c),v=Ei.fromJSON(r.targetPosition,c),Z=Ei.fromJSON(r.graveyardPosition,c);return new this(p,r.howMany,v,Z,r.baseVersion)}}class Ka extends yl{constructor(r,c,p,v){super(v),this.splitPosition=r.clone(),this.splitPosition.stickiness="toNext",this.howMany=c,this.insertionPosition=Ka.getInsertionPosition(r),this.insertionPosition.stickiness="toNone",this.graveyardPosition=p?p.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const r=this.insertionPosition.path.slice();return r.push(0),new Ei(this.insertionPosition.root,r)}get movedRange(){const r=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new bi(this.splitPosition,r)}clone(){const r=new this.constructor(this.splitPosition,this.howMany,this.graveyardPosition,this.baseVersion);return r.insertionPosition=this.insertionPosition,r}getReversed(){const c=new Ei(this.splitPosition.root.document.graveyard,[0]);return new rs(this.moveTargetPosition,this.howMany,this.splitPosition,c,this.baseVersion+1)}_validate(){const r=this.splitPosition.parent;if(!r||r.maxOffset{for(const v of p.getAttributeKeys())this.removeAttribute(v,p)};if(r instanceof bi)for(const p of r.getItems())c(p);else c(r)}move(r,c,p){if(this._assertWriterUsedCorrectly(),!(r instanceof bi))throw new En.b("writer-move-invalid-range: Invalid range to move.",this);if(!r.isFlat)throw new En.b("writer-move-range-not-flat: Range to move is not flat.",this);const v=Ei._createAt(c,p);if(v.isEqual(r.start))return;if(this._addOperationForAffectedMarkers("move",r),!l1(r.root,v.root))throw new En.b("writer-move-different-document: Range is going to be moved between different documents.",this);const S=new Jo(r.start,r.end.offset-r.start.offset,v,r.root.document?r.root.document.version:null);this.batch.addOperation(S),this.model.applyOperation(S)}remove(r){this._assertWriterUsedCorrectly();const c=(r instanceof bi?r:bi._createOn(r)).getMinimalFlatRanges().reverse();for(const p of c)this._addOperationForAffectedMarkers("move",p),fd(p.start,p.end.offset-p.start.offset,this.batch,this.model)}merge(r){this._assertWriterUsedCorrectly();const c=r.nodeBefore,p=r.nodeAfter;if(this._addOperationForAffectedMarkers("merge",r),!(c instanceof Wo))throw new En.b("writer-merge-no-element-before: Node before merge position must be an element.",this);if(!(p instanceof Wo))throw new En.b("writer-merge-no-element-after: Node after merge position must be an element.",this);r.root.document?this._merge(r):this._mergeDetached(r)}createPositionFromPath(r,c,p){return this.model.createPositionFromPath(r,c,p)}createPositionAt(r,c){return this.model.createPositionAt(r,c)}createPositionAfter(r){return this.model.createPositionAfter(r)}createPositionBefore(r){return this.model.createPositionBefore(r)}createRange(r,c){return this.model.createRange(r,c)}createRangeIn(r){return this.model.createRangeIn(r)}createRangeOn(r){return this.model.createRangeOn(r)}createSelection(r,c,p){return this.model.createSelection(r,c,p)}_mergeDetached(r){const c=r.nodeBefore,p=r.nodeAfter;this.move(bi._createIn(p),Ei._createAt(c,"end")),this.remove(p)}_merge(r){const c=Ei._createAt(r.nodeBefore,"end"),p=Ei._createAt(r.nodeAfter,0),Z=new Ei(r.root.document.graveyard,[0]),I=new rs(p,r.nodeAfter.maxOffset,c,Z,r.root.document.version);this.batch.addOperation(I),this.model.applyOperation(I)}rename(r,c){if(this._assertWriterUsedCorrectly(),!(r instanceof Wo))throw new En.b("writer-rename-not-element-instance: Trying to rename an object which is not an instance of Element.",this);const p=r.root.document?r.root.document.version:null,v=new Qa(Ei._createBefore(r),r.name,c,p);this.batch.addOperation(v),this.model.applyOperation(v)}split(r,c){this._assertWriterUsedCorrectly();let p,v,Z=r.parent;if(!Z.parent)throw new En.b("writer-split-element-no-parent: Element with no parent can not be split.",this);if(c||(c=Z.parent),!r.parent.getAncestors({includeSelf:!0}).includes(c))throw new En.b("writer-split-invalid-limit-element: Limit element is not a position ancestor.",this);do{const V=new Ka(r,Z.maxOffset-r.offset,null,Z.root.document?Z.root.document.version:null);this.batch.addOperation(V),this.model.applyOperation(V),p||v||(p=Z,v=r.parent.nextSibling),Z=(r=this.createPositionAfter(r.parent)).parent}while(Z!==c);return{position:r,range:new bi(Ei._createAt(p,"end"),Ei._createAt(v,0))}}wrap(r,c){if(this._assertWriterUsedCorrectly(),!r.isFlat)throw new En.b("writer-wrap-range-not-flat: Range to wrap is not flat.",this);const p=c instanceof Wo?c:new Wo(c);if(p.childCount>0)throw new En.b("writer-wrap-element-not-empty: Element to wrap with is not empty.",this);if(null!==p.parent)throw new En.b("writer-wrap-element-attached: Element to wrap with is already attached to tree model.",this);this.insert(p,r.start);const v=new bi(r.start.getShiftedBy(1),r.end.getShiftedBy(1));this.move(v,Ei._createAt(p,0))}unwrap(r){if(this._assertWriterUsedCorrectly(),null===r.parent)throw new En.b("writer-unwrap-element-no-parent: Trying to unwrap an element which has no parent.",this);this.move(bi._createIn(r),this.createPositionAfter(r)),this.remove(r)}addMarker(r,c){if(this._assertWriterUsedCorrectly(),!c||"boolean"!=typeof c.usingOperation)throw new En.b("writer-addMarker-no-usingOperation: The options.usingOperation parameter is required when adding a new marker.",this);const p=c.usingOperation,v=c.range,Z=void 0!==c.affectsData&&c.affectsData;if(this.model.markers.has(r))throw new En.b("writer-addMarker-marker-exists: Marker with provided name already exists.",this);if(!v)throw new En.b("writer-addMarker-no-range: Range parameter is required when adding a new marker.",this);return p?(Vu(this,r,null,v,Z),this.model.markers.get(r)):this.model.markers._set(r,v,p,Z)}updateMarker(r,c){this._assertWriterUsedCorrectly();const p="string"==typeof r?r:r.name,v=this.model.markers.get(p);if(!v)throw new En.b("writer-updateMarker-marker-not-exists: Marker with provided name does not exists.",this);if(!c)return void this.model.markers._refresh(v);const Z="boolean"==typeof c.usingOperation,S="boolean"==typeof c.affectsData,I=S?c.affectsData:v.affectsData;if(!Z&&!c.range&&!S)throw new En.b("writer-updateMarker-wrong-options: One of the options is required - provide range, usingOperations or affectsData.",this);const V=v.getRange(),it=c.range?c.range:V;Z&&c.usingOperation!==v.managedUsingOperations?c.usingOperation?Vu(this,p,null,it,I):(Vu(this,p,V,null,I),this.model.markers._set(p,it,void 0,I)):v.managedUsingOperations?Vu(this,p,V,it,I):this.model.markers._set(p,it,void 0,I)}removeMarker(r){this._assertWriterUsedCorrectly();const c="string"==typeof r?r:r.name;if(!this.model.markers.has(c))throw new En.b("writer-removeMarker-no-marker: Trying to remove marker which does not exist.",this);const p=this.model.markers.get(c);p.managedUsingOperations?Vu(this,c,p.getRange(),null,p.affectsData):this.model.markers._remove(c)}setSelection(r,c,p){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(r,c,p)}setSelectionFocus(r,c){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(r,c)}setSelectionAttribute(r,c){if(this._assertWriterUsedCorrectly(),"string"==typeof r)this._setSelectionAttribute(r,c);else for(const[p,v]of aa(r))this._setSelectionAttribute(p,v)}removeSelectionAttribute(r){if(this._assertWriterUsedCorrectly(),"string"==typeof r)this._removeSelectionAttribute(r);else for(const c of r)this._removeSelectionAttribute(c)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(r){this.model.document.selection._restoreGravity(r)}_setSelectionAttribute(r,c){const p=this.model.document.selection;if(p.isCollapsed&&p.anchor.parent.isEmpty){const v=xl._getStoreAttributeKey(r);this.setAttribute(v,c,p.anchor.parent)}p._setAttribute(r,c)}_removeSelectionAttribute(r){const c=this.model.document.selection;if(c.isCollapsed&&c.anchor.parent.isEmpty){const p=xl._getStoreAttributeKey(r);this.removeAttribute(p,c.anchor.parent)}c._removeAttribute(r)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new En.b("writer-incorrect-use: Trying to use a writer outside the change() block.",this)}_addOperationForAffectedMarkers(r,c){for(const p of this.model.markers){if(!p.managedUsingOperations)continue;const v=p.getRange();let Z=!1;if("move"===r)Z=c.containsPosition(v.start)||c.start.isEqual(v.start)||c.containsPosition(v.end)||c.end.isEqual(v.end);else{const I=c.nodeAfter,it=v.end.parent==I&&0==v.end.offset,dt=v.end.nodeAfter==I,xt=v.start.nodeAfter==I;Z=v.start.parent==c.nodeBefore&&v.start.isAtEnd||it||dt||xt}Z&&this.updateMarker(p.name,{range:v})}}}function zu(b,r,c,p){const v=b.model,Z=v.document;let S,I,V,it=p.start;for(const xt of p.getWalker({shallow:!0}))V=xt.item.getAttribute(r),S&&I!=V&&(I!=c&&dt(),it=S),S=xt.nextPosition,I=V;function dt(){const xt=new bi(it,S),Ie=new ga(xt,r,I,c,xt.root.document?Z.version:null);b.batch.addOperation(Ie),v.applyOperation(Ie)}S instanceof Ei&&S!=it&&I!=c&&dt()}function Id(b,r,c,p){const v=b.model,Z=v.document,S=p.getAttribute(r);let I,V;S!=c&&(p.root===p?V=new Al(p,r,S,c,p.document?Z.version:null):(I=new bi(Ei._createBefore(p),b.createPositionAfter(p)),V=new ga(I,r,S,c,I.root.document?Z.version:null)),b.batch.addOperation(V),v.applyOperation(V))}function Vu(b,r,c,p,v){const Z=b.model,I=new Hc(r,c,p,Z.markers,v,Z.document.version);b.batch.addOperation(I),Z.applyOperation(I)}function fd(b,r,c,p){let v;if(b.root.document){const Z=p.document,S=new Ei(Z.graveyard,[0]);v=new Jo(b,r,S,Z.version)}else v=new hs(b,r);c.addOperation(v),p.applyOperation(v)}function l1(b,r){return b===r||b instanceof Ql&&r instanceof Ql}class ko{constructor(r){this._markerCollection=r,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}refreshItem(r){if(this._isInInsertedElement(r.parent))return;this._markRemove(r.parent,r.startOffset,r.offsetSize),this._markInsert(r.parent,r.startOffset,r.offsetSize);const c=bi._createOn(r);for(const p of this._markerCollection.getMarkersIntersectingRange(c)){const v=p.getRange();this.bufferMarkerChange(p.name,v,v,p.affectsData)}this._cachedChanges=null}bufferOperation(r){switch(r.type){case"insert":if(this._isInInsertedElement(r.position.parent))return;this._markInsert(r.position.parent,r.position.offset,r.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const c of r.range.getItems({shallow:!0}))this._isInInsertedElement(c.parent)||this._markAttribute(c);break;case"remove":case"move":case"reinsert":{if(r.sourcePosition.isEqual(r.targetPosition)||r.sourcePosition.getShiftedBy(r.howMany).isEqual(r.targetPosition))return;const c=this._isInInsertedElement(r.sourcePosition.parent),p=this._isInInsertedElement(r.targetPosition.parent);c||this._markRemove(r.sourcePosition.parent,r.sourcePosition.offset,r.howMany),p||this._markInsert(r.targetPosition.parent,r.getMovedRangeStart().offset,r.howMany);break}case"rename":{if(this._isInInsertedElement(r.position.parent))return;this._markRemove(r.position.parent,r.position.offset,1),this._markInsert(r.position.parent,r.position.offset,1);const c=bi._createFromPositionAndShift(r.position,1);for(const p of this._markerCollection.getMarkersIntersectingRange(c)){const v=p.getRange();this.bufferMarkerChange(p.name,v,v,p.affectsData)}break}case"split":{const c=r.splitPosition.parent;this._isInInsertedElement(c)||this._markRemove(c,r.splitPosition.offset,r.howMany),this._isInInsertedElement(r.insertionPosition.parent)||this._markInsert(r.insertionPosition.parent,r.insertionPosition.offset,1),r.graveyardPosition&&this._markRemove(r.graveyardPosition.parent,r.graveyardPosition.offset,1);break}case"merge":{const c=r.sourcePosition.parent;this._isInInsertedElement(c.parent)||this._markRemove(c.parent,c.startOffset,1),this._markInsert(r.graveyardPosition.parent,r.graveyardPosition.offset,1);const v=r.targetPosition.parent;this._isInInsertedElement(v)||this._markInsert(v,r.targetPosition.offset,c.maxOffset);break}}this._cachedChanges=null}bufferMarkerChange(r,c,p,v){const Z=this._changedMarkers.get(r);Z?(Z.newRange=p,Z.affectsData=v,null==Z.oldRange&&null==Z.newRange&&this._changedMarkers.delete(r)):this._changedMarkers.set(r,{oldRange:c,newRange:p,affectsData:v})}getMarkersToRemove(){const r=[];for(const[c,p]of this._changedMarkers)null!=p.oldRange&&r.push({name:c,range:p.oldRange});return r}getMarkersToAdd(){const r=[];for(const[c,p]of this._changedMarkers)null!=p.newRange&&r.push({name:c,range:p.newRange});return r}getChangedMarkers(){return Array.from(this._changedMarkers).map(r=>({name:r[0],data:{oldRange:r[1].oldRange,newRange:r[1].newRange}}))}hasDataChanges(){for(const[,r]of this._changedMarkers)if(r.affectsData)return!0;return this._changesInElement.size>0}getChanges(r={includeChangesInGraveyard:!1}){if(this._cachedChanges)return r.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();const c=[];for(const p of this._changesInElement.keys()){const v=this._changesInElement.get(p).sort((dt,xt)=>dt.offset===xt.offset?dt.type!=xt.type?"remove"==dt.type?-1:1:0:dt.offsetp.position.root!=v.position.root?p.position.root.rootNamep.offset){if(v>Z){const S={type:"attribute",offset:Z,howMany:v-Z,count:this._changeCount++};this._handleChange(S,c),c.push(S)}r.nodesToHandle=p.offset-r.offset,r.howMany=r.nodesToHandle}else r.offset>=p.offset&&r.offsetZ?(r.nodesToHandle=v-Z,r.offset=Z):r.nodesToHandle=0);if("remove"==p.type&&r.offsetp.offset){const S={type:"attribute",offset:p.offset,howMany:v-p.offset,count:this._changeCount++};this._handleChange(S,c),c.push(S),r.nodesToHandle=p.offset-r.offset,r.howMany=r.nodesToHandle}"attribute"==p.type&&(r.offset>=p.offset&&v<=Z?(r.nodesToHandle=0,r.howMany=0,r.offset=0):r.offset<=p.offset&&v>=Z&&(p.howMany=0))}}r.howMany=r.nodesToHandle,delete r.nodesToHandle}_getInsertDiff(r,c,p){return{type:"insert",position:Ei._createAt(r,c),name:p,length:1,changeCount:this._changeCount++}}_getRemoveDiff(r,c,p){return{type:"remove",position:Ei._createAt(r,c),name:p,length:1,changeCount:this._changeCount++}}_getAttributesDiff(r,c,p){const v=[];p=new Map(p);for(const[Z,S]of c){const I=p.has(Z)?p.get(Z):null;I!==S&&v.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:Z,attributeOldValue:S,attributeNewValue:I,changeCount:this._changeCount++}),p.delete(Z)}for(const[Z,S]of p)v.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:Z,attributeOldValue:null,attributeNewValue:S,changeCount:this._changeCount++});return v}_isInInsertedElement(r){const c=r.parent;if(!c)return!1;const p=this._changesInElement.get(c),v=r.startOffset;if(p)for(const Z of p)if("insert"==Z.type&&v>=Z.offset&&vp){for(let S=0;S{const v=p[0];if(v.isDocumentOperation&&v.baseVersion!==this.version)throw new En.b("model-document-applyOperation-wrong-version: Only operations with matching versions can be applied.",this,{operation:v})},{priority:"highest"}),this.listenTo(r,"applyOperation",(c,p)=>{const v=p[0];v.isDocumentOperation&&this.differ.bufferOperation(v)},{priority:"high"}),this.listenTo(r,"applyOperation",(c,p)=>{const v=p[0];v.isDocumentOperation&&(this.version++,this.history.addOperation(v))},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(r.markers,"update",(c,p,v,Z)=>{this.differ.bufferMarkerChange(p.name,v,Z,p.affectsData),null===v&&p.on("change",(S,I)=>{this.differ.bufferMarkerChange(p.name,I,p.getRange(),p.affectsData)})})}get graveyard(){return this.getRoot("$graveyard")}createRoot(r="$root",c="main"){if(this.roots.get(c))throw new En.b("model-document-createRoot-name-exists: Root with specified name already exists.",this,{name:c});const p=new Ql(this,r,c);return this.roots.add(p),p}destroy(){this.selection.destroy(),this.stopListening()}getRoot(r="main"){return this.roots.get(r)}getRootNames(){return Array.from(this.roots,r=>r.rootName).filter(r=>"$graveyard"!=r)}registerPostFixer(r){this._postFixers.add(r)}toJSON(){const r=Ti(this);return r.selection="[engine.model.DocumentSelection]",r.model="[engine.model.Model]",r}_handleChangeBlock(r){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(r),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",r.batch):this.fire("change",r.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){for(const r of this.roots)if(r!==this.graveyard)return r;return this.graveyard}_getDefaultRange(){const r=this._getDefaultRoot(),c=this.model,p=c.schema,v=c.createPositionFromPath(r,[0]);return p.getNearestSelectionRange(v)||c.createRange(v)}_validateSelectionRange(r){return A_(r.start)&&A_(r.end)}_callPostFixers(r){let c=!1;do{for(const p of this._postFixers)if(this.selection.refresh(),c=p(r),c)break}while(c)}}function A_(b){const r=b.textNode;if(r){const c=r.data,p=b.offset-r.startOffset;return!du(c,p)&&!Op(c,p)}return!0}Si(Cr,Fo);class d1{constructor(){this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(r){return this._markers.has(r)}get(r){return this._markers.get(r)||null}_set(r,c,p=!1,v=!1){const Z=r instanceof vm?r.name:r;if(Z.includes(","))throw new En.b('markercollection-incorrect-marker-name: Marker name cannot contain "," character.',this);const S=this._markers.get(Z);if(S){const it=S.getRange();let dt=!1;return it.isEqual(c)||(S._attachLiveRange(o1.fromRange(c)),dt=!0),p!=S.managedUsingOperations&&(S._managedUsingOperations=p,dt=!0),"boolean"==typeof v&&v!=S.affectsData&&(S._affectsData=v,dt=!0),dt&&this.fire("update:"+Z,S,it,c),S}const I=o1.fromRange(c),V=new vm(Z,I,p,v);return this._markers.set(Z,V),this.fire("update:"+Z,V,null,c),V}_remove(r){const c=r instanceof vm?r.name:r,p=this._markers.get(c);return!!p&&(this._markers.delete(c),this.fire("update:"+c,p,p.getRange(),null),this._destroyMarker(p),!0)}_refresh(r){const c=r instanceof vm?r.name:r,p=this._markers.get(c);if(!p)throw new En.b("markercollection-refresh-marker-not-exists: Marker with provided name does not exists.",this);const v=p.getRange();this.fire("update:"+c,p,v,v,p.managedUsingOperations,p.affectsData)}*getMarkersAtPosition(r){for(const c of this)c.getRange().containsPosition(r)&&(yield c)}*getMarkersIntersectingRange(r){for(const c of this)null!==c.getRange().getIntersection(r)&&(yield c)}destroy(){for(const r of this._markers.values())this._destroyMarker(r);this._markers=null,this.stopListening()}*getMarkersGroup(r){for(const c of this._markers.values())c.name.startsWith(r+":")&&(yield c)}_destroyMarker(r){r.stopListening(),r._detachLiveRange()}}Si(d1,Fo);class vm{constructor(r,c,p,v){this.name=r,this._liveRange=this._attachLiveRange(c),this._managedUsingOperations=p,this._affectsData=v}get managedUsingOperations(){if(!this._liveRange)throw new En.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new En.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._affectsData}getStart(){if(!this._liveRange)throw new En.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new En.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new En.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.toRange()}is(r){return"marker"===r||"model:marker"===r}_attachLiveRange(r){return this._liveRange&&this._detachLiveRange(),r.delegate("change:range").to(this),r.delegate("change:content").to(this),this._liveRange=r,r}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}Si(vm,Fo);class Es extends yl{get type(){return"noop"}clone(){return new Es(this.baseVersion)}getReversed(){return new Es(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}const Zs={};Zs[ga.className]=ga,Zs[fo.className]=fo,Zs[Hc.className]=Hc,Zs[Jo.className]=Jo,Zs[Es.className]=Es,Zs[yl.className]=yl,Zs[Qa.className]=Qa,Zs[Al.className]=Al,Zs[Ka.className]=Ka,Zs[rs.className]=rs;class Ws extends Ei{constructor(r,c,p="toNone"){if(super(r,c,p),!this.root.is("rootElement"))throw new En.b("model-liveposition-root-not-rootelement: LivePosition's root has to be an instance of RootElement.",r);bm.call(this)}detach(){this.stopListening()}is(r){return"livePosition"===r||"model:livePosition"===r||"position"==r||"model:position"===r}toPosition(){return new Ei(this.root,this.path.slice(),this.stickiness)}static fromPosition(r,c){return new this(r.root,r.path.slice(),c||r.stickiness)}}function bm(){this.listenTo(this.root.document.model,"applyOperation",(b,r)=>{const c=r[0];c.isDocumentOperation&&Cm.call(this,c)},{priority:"low"})}function Cm(b){const r=this.getTransformedByOperation(b);if(!this.isEqual(r)){const c=this.toPosition();this.path=r.path,this.root=r.root,this.fire("change",c)}}Si(Ws,Fo);class Gl{constructor(r,c,p){this.model=r,this.writer=c,this.position=p,this.canMergeWith=new Set([this.position.parent]),this.schema=r.schema,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}handleNodes(r,c){r=Array.from(r);for(let p=0;p!0);if(b.schema.checkChild(r.nextPosition,"$text"))return r.nextPosition}}function Tc(b,r){const p=Ei._createAt(b.root,r?"end":0);return r?new bi(b,p):new bi(p,b)}function Rd(b,r,c){return' ,.?!:;"-()'.includes(b.charAt(r+(c?0:-1)))}function U_(b,r,c){return r===(c?b.endOffset:0)}function Z_(b,r){const c=[];Array.from(b.getItems({direction:"backward"})).map(p=>r.createRangeOn(p)).filter(p=>(p.start.isAfter(b.start)||p.start.isEqual(b.start))&&(p.end.isBefore(b.end)||p.end.isEqual(b.end))).forEach(p=>{c.push(p.start.parent),r.remove(p)}),c.forEach(p=>{let v=p;for(;v.parent&&v.isEmpty;){const Z=r.createRangeOn(v);v=v.parent,r.remove(Z)}})}function mu(b,r){return b.isCollapsed?function(c,p){const v=c.start,Z=p.getNearestSelectionRange(v);if(!Z)return null;if(!Z.isCollapsed)return Z;const S=Z.start;return v.isEqual(S)?null:new bi(S)}(b,r):function(c,p){const v=c.start,Z=c.end,S=p.checkChild(v,"$text"),I=p.checkChild(Z,"$text"),V=p.getLimitElement(v),it=p.getLimitElement(Z);if(V===it){if(S&&I)return null;if(function(le,Ie,rn){const vn=le.nodeAfter&&!rn.isLimit(le.nodeAfter)||rn.checkChild(le,"$text"),wn=Ie.nodeBefore&&!rn.isLimit(Ie.nodeBefore)||rn.checkChild(Ie,"$text");return vn||wn}(v,Z,p)){const le=v.nodeAfter&&p.isObject(v.nodeAfter)?null:p.getNearestSelectionRange(v,"forward"),Ie=Z.nodeBefore&&p.isObject(Z.nodeBefore)?null:p.getNearestSelectionRange(Z,"backward");return new bi(le?le.start:v,Ie?Ie.start:Z)}}const dt=V&&!V.is("rootElement"),xt=it&&!it.is("rootElement");if(dt||xt){const le=v.nodeAfter&&Z.nodeBefore&&v.nodeAfter.parent===Z.nodeBefore.parent,Ie=dt&&(!le||!xm(v.nodeAfter,p)),rn=xt&&(!le||!xm(Z.nodeBefore,p));let vn=v,wn=Z;return Ie&&(vn=Ei._createBefore(m1(V,p))),rn&&(wn=Ei._createAfter(m1(it,p))),new bi(vn,wn)}return null}(b,r)}function m1(b,r){let c=b,p=c;for(;r.isLimit(p)&&p.parent;)c=p,p=p.parent;return c}function xm(b,r){return b&&r.isObject(b)}class w_{constructor(){this.markers=new d1,this.document=new Cr(this),this.schema=new hm,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(r=>this.decorate(r)),this.on("applyOperation",(r,c)=>{c[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$block",{allowIn:"$root",isBlock:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",isLimit:!0}),this.schema.extend("$text",{allowIn:"$clipboardHolder"}),this.schema.register("$marker"),this.schema.addChildCheck((r,c)=>{if("$marker"===c.name)return!0}),function Ju(b){b.document.registerPostFixer(r=>function(c,p){const v=p.document.selection,Z=p.schema,S=[];let I=!1;for(const V of v.getRanges()){const it=mu(V,Z);it&&!it.isEqual(V)?(S.push(it),I=!0):S.push(V)}I&&c.setSelection(function(V){const it=[];it.push(V.shift());for(const dt of V){const xt=it.pop();if(dt.isIntersecting(xt)){const le=xt.start.isAfter(dt.start)?dt.start:xt.start,Ie=xt.end.isAfter(dt.end)?xt.end:dt.end,rn=new bi(le,Ie);it.push(rn)}else it.push(xt),it.push(dt)}return it}(S),{backward:v.isBackward})}(r,b))}(this)}change(r){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Y1,callback:r}),this._runPendingChanges()[0]):r(this._currentWriter)}catch(c){En.b.rethrowUnexpectedError(c,this)}}enqueueChange(r,c){try{"string"==typeof r?r=new Y1(r):"function"==typeof r&&(c=r,r=new Y1),this._pendingChanges.push({batch:r,callback:c}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(p){En.b.rethrowUnexpectedError(p,this)}}applyOperation(r){r._execute()}insertContent(r,c,p){return Z=r,S=c,I=p,(v=this).change(V=>{let it;it=S?S instanceof md||S instanceof xl?S:V.createSelection(S,I):v.document.selection,it.isCollapsed||v.deleteContent(it,{doNotAutoparagraph:!0});const dt=new Gl(v,V,it.anchor);let xt;xt=Z.is("documentFragment")?Z.getChildren():[Z],dt.handleNodes(xt,{isFirst:!0,isLast:!0});const le=dt.getSelectionRange();le&&(it instanceof xl?V.setSelection(le):it.setTo(le));const Ie=dt.getAffectedRange()||v.createRange(it.anchor);return dt.destroy(),Ie});var v,Z,S,I}deleteContent(r,c){!function Yc(b,r,c={}){if(r.isCollapsed)return;const p=r.getFirstRange();if("$graveyard"==p.root.rootName)return;const v=b.schema;b.change(Z=>{if(!c.doNotResetEntireContent&&function(V,it){const dt=V.getLimitElement(it);if(!it.containsEntireContent(dt))return!1;const xt=it.getFirstRange();return xt.start.parent!=xt.end.parent&&V.checkChild(dt,"paragraph")}(v,r))return void function(V,it){const dt=V.model.schema.getLimitElement(it);V.remove(V.createRangeIn(dt)),p1(V,V.createPositionAt(dt,0),it)}(Z,r);const[S,I]=function(V){const it=V.root.document.model,dt=V.start;let xt=V.end;if(it.hasContent(V,{ignoreMarkers:!0})){const le=function(Ie){const rn=Ie.parent,vn=rn.root.document.model.schema,wn=rn.getAncestors({parentFirst:!0,includeSelf:!0});for(const qn of wn){if(vn.isLimit(qn))return null;if(vn.isBlock(qn))return qn}}(xt);if(le&&xt.isTouching(it.createPositionAt(le,0))){const Ie=it.createSelection(V);it.modifySelection(Ie,{direction:"backward"}),xt=Ie.getLastPosition()}}return[Ws.fromPosition(dt,"toPrevious"),Ws.fromPosition(xt,"toNext")]}(p);p.start.isTouching(p.end)||Z.remove(p),c.leaveUnmerged||(function(V,it,dt){const xt=V.model;if(!pu(V.model.schema,it,dt))return;const[le,Ie]=function(rn,vn){const wn=rn.getAncestors(),qn=vn.getAncestors();let mi=0;for(;wn[mi]&&wn[mi]==qn[mi];)mi++;return[wn[mi],qn[mi]]}(it,dt);!xt.hasContent(le,{ignoreMarkers:!0})&&xt.hasContent(Ie,{ignoreMarkers:!0})?function rn(vn,wn,qn,mi){const xi=wn.parent,Vi=qn.parent;if(xi!=mi&&Vi!=mi){for(wn=vn.createPositionAfter(xi),(qn=vn.createPositionBefore(Vi)).isEqual(wn)||vn.insert(xi,qn);wn.parent.isEmpty;){const Po=wn.parent;wn=vn.createPositionBefore(Po),vn.remove(Po)}qn=vn.createPositionBefore(Vi),function(Po,Yr){const Ba=Yr.nodeBefore,$s=Yr.nodeAfter;Ba.name!=$s.name&&Po.rename(Ba,$s.name),Po.clearAttributes(Ba),Po.setAttributes(Object.fromEntries($s.getAttributes()),Ba),Po.merge(Yr)}(vn,qn),pu(vn.model.schema,wn,qn)&&rn(vn,wn,qn,mi)}}(V,it,dt,le.parent):function rn(vn,wn,qn,mi){const xi=wn.parent,Vi=qn.parent;if(xi!=mi&&Vi!=mi){for(wn=vn.createPositionAfter(xi),(qn=vn.createPositionBefore(Vi)).isEqual(wn)||vn.insert(Vi,wn),vn.merge(wn);qn.parent.isEmpty;){const Po=qn.parent;qn=vn.createPositionBefore(Po),vn.remove(Po)}!pu(vn.model.schema,wn,qn)||rn(vn,wn,qn,mi)}}(V,it,dt,le.parent)}(Z,S,I),v.removeDisallowedAttributes(S.parent.getChildren(),Z)),hd(Z,r,S),!c.doNotAutoparagraph&&function(V,it){const dt=V.checkChild(it,"$text"),xt=V.checkChild(it,"paragraph");return!dt&&xt}(v,S)&&p1(Z,S,r),S.detach(),I.detach()})}(this,r,c)}modifySelection(r,c){!function(p,v,Z={}){const S=p.schema,I="backward"!=Z.direction,V=Z.unit?Z.unit:"character",dt=new js({boundaries:Tc(v.focus,I),singleCharacters:!0,direction:I?"forward":"backward"}),xt={walker:dt,schema:S,isForward:I,unit:V};let le;for(;le=dt.next();){if(le.done)return;const Ie=oh(xt,le.value);if(Ie)return void(v instanceof xl?p.change(rn=>{rn.setSelectionFocus(Ie)}):v.setFocus(Ie))}}(this,r,c)}getSelectedContent(r){return function(c,p){return c.change(v=>{const Z=v.createDocumentFragment(),S=p.getFirstRange();if(!S||S.isCollapsed)return Z;const I=S.start.root,V=S.start.getCommonPath(S.end),it=I.getNodeByPath(V);let dt;dt=S.start.parent==S.end.parent?S:v.createRange(v.createPositionAt(it,S.start.path[V.length]),v.createPositionAt(it,S.end.path[V.length]+1));const xt=dt.end.offset-dt.start.offset;for(const le of dt.getItems({shallow:!0}))le.is("$textProxy")?v.appendText(le.data,le.getAttributes(),Z):v.append(v.cloneElement(le,!0),Z);if(dt!=S){const le=S._getTransformedByMove(dt.start,v.createPositionAt(Z,0),xt)[0],Ie=v.createRange(v.createPositionAt(Z,0),le.start);Z_(v.createRange(le.end,v.createPositionAt(Z,"end")),v),Z_(Ie,v)}return Z})}(this,r)}hasContent(r,c={}){const p=r instanceof Wo?bi._createIn(r):r;if(p.isCollapsed)return!1;const{ignoreWhitespaces:v=!1,ignoreMarkers:Z=!1}=c;if(!Z)for(const S of this.markers.getMarkersIntersectingRange(p))if(S.affectsData)return!0;for(const S of p.getItems())if(S.is("$textProxy")){if(!v||-1!==S.data.search(/\S/))return!0}else if(this.schema.isObject(S))return!0;return!1}createPositionFromPath(r,c,p){return new Ei(r,c,p)}createPositionAt(r,c){return Ei._createAt(r,c)}createPositionAfter(r){return Ei._createAfter(r)}createPositionBefore(r){return Ei._createBefore(r)}createRange(r,c){return new bi(r,c)}createRangeIn(r){return bi._createIn(r)}createRangeOn(r){return bi._createOn(r)}createSelection(r,c,p){return new md(r,c,p)}createBatch(r){return new Y1(r)}createOperationFromJSON(r){return class{static fromJSON(c,p){return Zs[c.__className].fromJSON(c,p)}}.fromJSON(r,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const r=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){this._currentWriter=new Yu(this,this._pendingChanges[0].batch);const p=this._pendingChanges[0].callback(this._currentWriter);r.push(p),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),r}}Si(w_,Ut);class _u{constructor(){this._listener=Object.create(gi)}listenTo(r){this._listener.listenTo(r,"keydown",(c,p)=>{this._listener.fire("_keydown:"+na(p),p)})}set(r,c,p={}){const v=Dd(r);this._listener.listenTo(this._listener,"_keydown:"+v,(S,I)=>{c(I,()=>{I.preventDefault(),I.stopPropagation(),S.stop()}),S.return=!0},{priority:p.priority})}press(r){return!!this._listener.fire("_keydown:"+na(r),r)}destroy(){this._listener.stopListening()}}class mg extends _u{constructor(r){super(),this.editor=r}set(r,c,p={}){if("string"==typeof c){const v=c;c=(Z,S)=>{this.editor.execute(v),S()}}super.set(r,c,p)}}class Lp{constructor(r={}){this._context=r.context||new ru({language:r.language}),this._context._addEditor(this,!r.context);const c=Array.from(this.constructor.builtinPlugins||[]);this.config=new Nc(r,this.constructor.defaultConfig),this.config.define("plugins",c),this.config.define(this._context._getEditorConfig()),this.plugins=new va(this,c,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new C_,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.set("isReadOnly",!1),this.model=new w_;const p=new sc;this.data=new y_(this.model,p),this.editing=new b_(this.model,p),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new Pp([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new mg(this),this.keystrokes.listenTo(this.editing.view.document)}initPlugins(){const r=this.config,c=r.get("plugins"),p=r.get("removePlugins")||[],v=r.get("extraPlugins")||[];return this.plugins.init(c.concat(v),p)}destroy(){let r=Promise.resolve();return"initializing"==this.state&&(r=new Promise(c=>this.once("ready",c))),r.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(...r){try{return this.commands.execute(...r)}catch(c){En.b.rethrowUnexpectedError(c,this)}}}Si(Lp,Ut);var Ul={setData(b){this.data.set(b)},getData(b){return this.data.get(b)}},V1={updateSourceElement(){if(!this.sourceElement)throw new En.b("editor-missing-sourceelement: Cannot update the source element of a detached editor.",this);var b,r;b=this.sourceElement,r=this.data.get(),b instanceof HTMLTextAreaElement&&(b.value=r),b.innerHTML=r}};class M_{getHtml(r){const c=document.implementation.createHTMLDocument("").createElement("div");return c.appendChild(r),c.innerHTML}}class D_{constructor(r){this._domParser=new DOMParser,this._domConverter=new jt(r,{blockFillerMode:"nbsp"}),this._htmlWriter=new M_}toData(r){const c=this._domConverter.viewToDom(r,document);return this._htmlWriter.getHtml(c)}toView(r){const c=this._toDom(r);return this._domConverter.domToView(c)}_toDom(r){const c=this._domParser.parseFromString(r,"text/html"),p=c.createDocumentFragment(),v=c.body.childNodes;for(;v.length>0;)p.appendChild(v[0]);return p}}class Y2{constructor(r){this.editor=r,this._components=new Map}*names(){for(const r of this._components.values())yield r.originalName}add(r,c){if(this.has(r))throw new En.b("componentfactory-item-exists: The item already exists in the component factory.",this,{name:r});this._components.set(fu(r),{callback:c,originalName:r})}create(r){if(!this.has(r))throw new En.b("componentfactory-item-missing: The required component is not registered in the factory.",this,{name:r});return this._components.get(fu(r)).callback(this.editor.locale)}has(r){return this._components.has(fu(r))}}function fu(b){return String(b).toLowerCase()}class ws{constructor(){this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}add(r){if(this._elements.has(r))throw new En.b("focusTracker-add-element-already-exist",this);this.listenTo(r,"focus",()=>this._focus(r),{useCapture:!0}),this.listenTo(r,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(r)}remove(r){r===this.focusedElement&&this._blur(r),this._elements.has(r)&&(this.stopListening(r),this._elements.delete(r))}destroy(){this.stopListening()}_focus(r){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=r,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}Si(ws,gi),Si(ws,Ut);class dc{constructor(r){this.editor=r,this.componentFactory=new Y2(r),this.focusTracker=new ws,this._editableElementsMap=new Map,this.listenTo(r.editing.view.document,"layoutChanged",()=>this.update())}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy();for(const r of this._editableElementsMap.values())r.ckeditorInstance=null;this._editableElementsMap=new Map}setEditableElement(r,c){this._editableElementsMap.set(r,c),c.ckeditorInstance||(c.ckeditorInstance=this.editor)}getEditableElement(r="main"){return this._editableElementsMap.get(r)}getEditableElementsNames(){return this._editableElementsMap.keys()}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}}Si(dc,Fo),u(13);const hu=new WeakMap;function P_(b){const{view:r,element:c,text:p,isDirectHost:v=!0}=b,Z=r.document;hu.has(Z)||(hu.set(Z,new Map),Z.registerPostFixer(S=>V2(Z,S))),hu.get(Z).set(c,{text:p,isDirectHost:v}),r.change(S=>V2(Z,S))}function V2(b,r){const c=hu.get(b);let p=!1;for(const[v,Z]of c)B1(r,v,Z)&&(p=!0);return p}function B1(b,r,c){const{text:p,isDirectHost:v}=c,Z=v?r:function(I){if(1===I.childCount){const V=I.getChild(0);if(V.is("element")&&!V.is("uiElement"))return V}return null}(r);let S=!1;return!!Z&&(c.hostElement=Z,Z.getAttribute("data-placeholder")!==p&&(b.setAttribute("data-placeholder",p,Z),S=!0),function(I){if(!I.isAttached())return!1;const V=!Array.from(I.getChildren()).some(xt=>!xt.is("uiElement")),it=I.document;if(!it.isFocused&&V)return!0;const dt=it.selection.anchor;return!(!V||!dt||dt.parent===I)}(Z)?(I=b,!(V=Z).hasClass("ck-placeholder")&&(I.addClass("ck-placeholder",V),!0)&&(S=!0)):function z2(b,r){return!!r.hasClass("ck-placeholder")&&(b.removeClass("ck-placeholder",r),!0)}(b,Z)&&(S=!0),S);var I,V}class _g{constructor(){this._replacedElements=[]}replace(r,c){this._replacedElements.push({element:r,newElement:c}),r.style.display="none",c&&r.parentNode.insertBefore(c,r.nextSibling)}restore(){this._replacedElements.forEach(({element:r,newElement:c})=>{r.style.display="",c&&c.remove()}),this._replacedElements=[]}}class S_ extends dc{constructor(r,c){var p;super(r),this.view=c,this._toolbarConfig=(p=r.config.get("toolbar"),Array.isArray(p)?{items:p}:p?Object.assign({items:[]},p):{items:[]}),this._elementReplacer=new _g}get element(){return this.view.element}init(r){const p=this.view,v=this.editor.editing.view,Z=p.editable,S=v.document.getRoot();Z.name=S.rootName,p.render();const I=Z.element;this.setEditableElement(Z.name,I),this.focusTracker.add(I),p.editable.bind("isFocused").to(this.focusTracker),v.attachDomRoot(I),r&&this._elementReplacer.replace(r,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){const r=this.view,c=this.editor.editing.view;this._elementReplacer.restore(),c.detachDomRoot(r.editable.name),r.destroy(),super.destroy()}_initToolbar(){const r=this.editor,c=this.view,p=r.editing.view;c.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),c.stickyPanel.limiterElement=c.element,this._toolbarConfig.viewportTopOffset&&(c.stickyPanel.viewportTopOffset=this._toolbarConfig.viewportTopOffset),c.toolbar.fillFromConfig(this._toolbarConfig.items,this.componentFactory),function({origin:v,originKeystrokeHandler:Z,originFocusTracker:S,toolbar:I,beforeFocus:V,afterBlur:it}){S.add(I.element),Z.set("Alt+F10",(dt,xt)=>{S.isFocused&&!I.focusTracker.isFocused&&(V&&V(),I.focus(),xt())}),I.keystrokes.set("Esc",(dt,xt)=>{I.focusTracker.isFocused&&(v.focus(),it&&it(),xt())})}({origin:p,originFocusTracker:this.focusTracker,originKeystrokeHandler:r.keystrokes,toolbar:c.toolbar})}_initPlaceholder(){const r=this.editor,c=r.editing.view,p=c.document.getRoot(),v=r.sourceElement,Z=r.config.get("placeholder")||v&&"textarea"===v.tagName.toLowerCase()&&v.getAttribute("placeholder");Z&&P_({view:c,element:p,text:Z,isDirectHost:!1})}}class Zl extends Ra{constructor(r=[]){super(r,{idProperty:"viewUid"}),this.on("add",(c,p,v)=>{this._renderViewIntoCollectionParent(p,v)}),this.on("remove",(c,p)=>{p.element&&this._parentElement&&p.element.remove()}),this._parentElement=null}destroy(){this.map(r=>r.destroy())}setParent(r){this._parentElement=r;for(const c of this)this._renderViewIntoCollectionParent(c)}delegate(...r){if(!r.length||!r.every(c=>"string"==typeof c))throw new En.b("ui-viewcollection-delegate-wrong-events: All event names must be strings.",this);return{to:c=>{for(const p of this)for(const v of r)p.delegate(v).to(c);this.on("add",(p,v)=>{for(const Z of r)v.delegate(Z).to(c)}),this.on("remove",(p,v)=>{for(const Z of r)v.stopDelegating(Z,c)})}}}_renderViewIntoCollectionParent(r,c){r.isRendered||r.render(),r.element&&this._parentElement&&this._parentElement.insertBefore(r.element,this._parentElement.children[c])}}class Qu{constructor(r){Object.assign(this,ro(O_(r))),this._isRendered=!1,this._revertData=null}render(){const r=this._renderNode({intoFragment:!0});return this._isRendered=!0,r}apply(r){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:r,isApplying:!0,revertData:this._revertData}),r}revert(r){if(!this._revertData)throw new En.b("ui-template-revert-not-applied: Attempting to revert a template which has not been applied yet.",[this,r]);this._revertTemplateFromNode(r,this._revertData)}*getViews(){yield*function*r(c){if(c.children)for(const p of c.children)Rr(p)?yield p:Tm(p)&&(yield*r(p))}(this)}static bind(r,c){return{to:(p,v)=>new ym({eventNameOrFunction:p,attribute:p,observable:r,emitter:c,callback:v}),if:(p,v,Z)=>new ah({observable:r,emitter:c,attribute:p,valueIfTrue:v,callback:Z})}}static extend(r,c){if(r._isRendered)throw new En.b("template-extend-render: Attempting to extend a template which has already been rendered.",[this,r]);!function p(v,Z){if(Z.attributes&&(v.attributes||(v.attributes={}),_1(v.attributes,Z.attributes)),Z.eventListeners&&(v.eventListeners||(v.eventListeners={}),_1(v.eventListeners,Z.eventListeners)),Z.text&&v.text.push(...Z.text),Z.children&&Z.children.length){if(v.children.length!=Z.children.length)throw new En.b("ui-template-extend-children-mismatch: The number of children in extended definition does not match.",v);let S=0;for(const I of Z.children)p(v.children[S++],I)}}(r,ro(O_(c)))}_renderNode(r){let c;if(c=r.node?this.tag&&this.text:this.tag?this.text:!this.text,c)throw new En.b('ui-template-wrong-syntax: Node definition must have either "tag" or "text" when rendering a new Node.',this);return this.text?this._renderText(r):this._renderElement(r)}_renderElement(r){let c=r.node;return c||(c=r.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(r),this._renderElementChildren(r),this._setUpListeners(r),c}_renderText(r){let c=r.node;return c?r.revertData.text=c.textContent:c=r.node=document.createTextNode(""),qp(this.text)?this._bindToObservable({schema:this.text,updater:J2(c),data:r}):c.textContent=this.text.join(""),c}_renderAttributes(r){let c,p,v,Z;if(!this.attributes)return;const S=r.node,I=r.revertData;for(c in this.attributes)if(v=S.getAttribute(c),p=this.attributes[c],I&&(I.attributes[c]=v),Z=Ht(p[0])&&p[0].ns?p[0].ns:null,qp(p)){const V=Z?p[0].value:p;I&&sh(c)&&V.unshift(v),this._bindToObservable({schema:V,updater:Q2(S,c,Z),data:r})}else"style"==c&&"string"!=typeof p[0]?this._renderStyleAttribute(p[0],r):(I&&v&&sh(c)&&p.unshift(v),p=p.map(V=>V&&V.value||V).reduce((V,it)=>V.concat(it),[]).reduce(Ir,""),wl(p)||S.setAttributeNS(Z,c,p))}_renderStyleAttribute(r,c){const p=c.node;for(const v in r){const Z=r[v];qp(Z)?this._bindToObservable({schema:[Z],updater:Hd(p,v),data:c}):p.style[v]=Z}}_renderElementChildren(r){const c=r.node,p=r.intoFragment?document.createDocumentFragment():c,v=r.isApplying;let Z=0;for(const S of this.children)if(G2(S)){if(!v){S.setParent(c);for(const I of S)p.appendChild(I.element)}}else if(Rr(S))v||(S.isRendered||S.render(),p.appendChild(S.element));else if(fl(S))p.appendChild(S);else if(v){const I={children:[],bindings:[],attributes:{}};r.revertData.children.push(I),S._renderNode({node:p.childNodes[Z++],isApplying:!0,revertData:I})}else p.appendChild(S.render());r.intoFragment&&c.appendChild(p)}_setUpListeners(r){if(this.eventListeners)for(const c in this.eventListeners){const p=this.eventListeners[c].map(v=>{const[Z,S]=c.split("@");return v.activateDomEventListener(Z,S,r)});r.revertData&&r.revertData.bindings.push(p)}}_bindToObservable({schema:r,updater:c,data:p}){const v=p.revertData;B2(r,c,p);const Z=r.filter(S=>!wl(S)).filter(S=>S.observable).map(S=>S.activateAttributeListener(r,c,p));v&&v.bindings.push(Z)}_revertTemplateFromNode(r,c){for(const p of c.bindings)for(const v of p)v();if(c.text)r.textContent=c.text;else{for(const p in c.attributes){const v=c.attributes[p];null===v?r.removeAttribute(p):r.setAttribute(p,v)}for(let p=0;pB2(r,c,p);return this.emitter.listenTo(this.observable,"change:"+this.attribute,v),()=>{this.emitter.stopListening(this.observable,"change:"+this.attribute,v)}}}class ym extends k_{activateDomEventListener(r,c,p){const v=(Z,S)=>{c&&!S.target.matches(c)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(S):this.observable.fire(this.eventNameOrFunction,S))};return this.emitter.listenTo(p.node,r,v),()=>{this.emitter.stopListening(p.node,r,v)}}}class ah extends k_{getValue(r){return!wl(super.getValue(r))&&(this.valueIfTrue||!0)}}function qp(b){return!!b&&(b.value&&(b=b.value),Array.isArray(b)?b.some(qp):b instanceof k_)}function B2(b,r,{node:c}){let p=(Z=c,b.map(S=>S instanceof k_?S.getValue(Z):S));var Z;p=1==b.length&&b[0]instanceof ah?p[0]:p.reduce(Ir,""),wl(p)?r.remove():r.set(p)}function J2(b){return{set(r){b.textContent=r},remove(){b.textContent=""}}}function Q2(b,r,c){return{set(p){b.setAttributeNS(c,r,p)},remove(){b.removeAttributeNS(c,r)}}}function Hd(b,r){return{set(c){b.style[r]=c},remove(){b.style[r]=null}}}function O_(b){return Ar(b,r=>{if(r&&(r instanceof k_||Tm(r)||Rr(r)||G2(r)))return r})}function ro(b){if("string"==typeof b?b=function(r){return{text:[r]}}(b):b.text&&function(r){Array.isArray(r.text)||(r.text=[r.text])}(b),b.on&&(b.eventListeners=function(r){for(const c in r)rh(r,c);return r}(b.on),delete b.on),!b.text){b.attributes&&function(c){for(const p in c)c[p].value&&(c[p].value=[].concat(c[p].value)),rh(c,p)}(b.attributes);const r=[];if(b.children)if(G2(b.children))r.push(b.children);else for(const c of b.children)Tm(c)||Rr(c)||fl(c)?r.push(c):r.push(new Qu(c));b.children=r}return b}function rh(b,r){Array.isArray(b[r])||(b[r]=[b[r]])}function Ir(b,r){return wl(r)?b:wl(b)?r:`${b} ${r}`}function _1(b,r){for(const c in r)b[c]?b[c].push(...r[c]):b[c]=r[c]}function wl(b){return!b&&0!==b}function Rr(b){return b instanceof Oo}function Tm(b){return b instanceof Qu}function G2(b){return b instanceof Zl}function sh(b){return"class"==b||"style"==b}u(15);class Oo{constructor(r){this.element=null,this.isRendered=!1,this.locale=r,this.t=r&&r.t,this._viewCollections=new Ra,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(c,p)=>{p.locale=r}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Qu.bind(this,this)}createCollection(r){const c=new Zl(r);return this._viewCollections.add(c),c}registerChild(r){ta(r)||(r=[r]);for(const c of r)this._unboundChildren.add(c)}deregisterChild(r){ta(r)||(r=[r]);for(const c of r)this._unboundChildren.remove(c)}setTemplate(r){this.template=new Qu(r)}extendTemplate(r){Qu.extend(this.template,r)}render(){if(this.isRendered)throw new En.b("ui-view-render-already-rendered: This View has already been rendered.",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(r=>r.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}Si(Oo,gi),Si(Oo,Ut);var j2=function(b){return"string"==typeof b||!yn(b)&&at(b)&&"[object String]"==Y(b)};class W2 extends Zl{constructor(r,c=[]){super(c),this.locale=r}attachToDom(){this._bodyCollectionContainer=new Qu({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let r=document.querySelector(".ck-body-wrapper");r||(r=function(c,p,v={},Z=[]){const S=v&&v.xmlns,I=S?c.createElementNS(S,p):c.createElement(p);for(const V in v)I.setAttribute(V,v[V]);!j2(Z)&&ta(Z)||(Z=[Z]);for(let V of Z)j2(V)&&(V=c.createTextNode(V)),I.appendChild(V);return I}(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(r)),r.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const r=document.querySelector(".ck-body-wrapper");r&&0==r.childElementCount&&r.remove()}}u(17);class U3 extends Oo{constructor(r){super(r),this.body=new W2(r)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}u(19);class Ml extends Oo{constructor(r){super(r),this.set("text"),this.set("for"),this.id="ck-editor__label_"+Pa();const c=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:c.to("for")},children:[{text:c.to("text")}]})}}class J1 extends U3{constructor(r){super(r),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:r.uiLanguageDirection,lang:r.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const r=this.t,c=new Ml;return c.text=r("Rich Text Editor"),c.extendTemplate({attributes:{class:"ck-voice-label"}}),c}}class L_ extends Oo{constructor(r,c,p){super(r),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:r.contentLanguage,dir:r.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=p,this._hasExternalElement=!!this._editableElement,this._editingView=c}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){const r=this._editingView;function c(p){r.change(v=>{const Z=r.document.getRoot(p.name);v.addClass(p.isFocused?"ck-focused":"ck-blurred",Z),v.removeClass(p.isFocused?"ck-blurred":"ck-focused",Z)})}r.isRenderingInProgress?function p(v){r.once("change:isRenderingInProgress",(Z,S,I)=>{I?p(v):c(v)})}(this):c(this)}}class ch extends L_{constructor(r,c,p){super(r,c,p),this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const r=this._editingView,c=this.t;r.change(p=>{const v=r.document.getRoot(this.name);p.setAttribute("aria-label",c("Rich Text Editor, %0",[this.name]),v)})}}function Q1(b){return r=>r+b}u(21);const gd=Q1("px");class fg extends Oo{constructor(r){super(r);const c=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheLimiter",!1),this.set("_hasViewportTopOffset",!1),this.content=this.createCollection(),this._contentPanelPlaceholder=new Qu({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:c.to("isSticky",p=>p?"block":"none"),height:c.to("isSticky",p=>p?gd(this._panelRect.height):null)}}}).render(),this._contentPanel=new Qu({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",c.if("isSticky","ck-sticky-panel__content_sticky"),c.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:c.to("isSticky",p=>p?gd(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:c.to("_hasViewportTopOffset",p=>p?gd(this.viewportTopOffset):null),bottom:c.to("_isStickyToTheLimiter",p=>p?gd(this.limiterBottomOffset):null),marginLeft:c.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this._checkIfShouldBeSticky(),this.listenTo(pt.window,"scroll",()=>{this._checkIfShouldBeSticky()}),this.listenTo(this,"change:isActive",()=>{this._checkIfShouldBeSticky()})}_checkIfShouldBeSticky(){const r=this._panelRect=this._contentPanel.getBoundingClientRect();let c;this.limiterElement?(c=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&c.top{this[c](),S()})}}get first(){return this.focusables.find(h1)||null}get last(){return this.focusables.filter(h1).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let r=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((c,p)=>{const v=c.element===this.focusTracker.focusedElement;return v&&(r=p),v}),r)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(r){r&&r.focus()}_getFocusableItem(r){const c=this.current,p=this.focusables.length;if(!p)return null;if(null===c)return this[1===r?"first":"last"];let v=(c+p+r)%p;do{const Z=this.focusables.get(v);if(h1(Z))return Z;v=(v+p+r)%p}while(v!==c);return null}}function h1(b){return!(!b.focus||"none"==pt.window.getComputedStyle(b.element).display)}class G1 extends Oo{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class xr{constructor(r,c){xr._observerInstance||xr._createObserver(),this._element=r,this._callback=c,xr._addElementCallback(r,c),xr._observerInstance.observe(r)}destroy(){xr._deleteElementCallback(this._element,this._callback)}static _addElementCallback(r,c){xr._elementCallbacks||(xr._elementCallbacks=new Map);let p=xr._elementCallbacks.get(r);p||(p=new Set,xr._elementCallbacks.set(r,p)),p.add(c)}static _deleteElementCallback(r,c){const p=xr._getElementCallbacks(r);p&&(p.delete(c),p.size||(xr._elementCallbacks.delete(r),xr._observerInstance.unobserve(r))),xr._elementCallbacks&&!xr._elementCallbacks.size&&(xr._observerInstance=null,xr._elementCallbacks=null)}static _getElementCallbacks(r){return xr._elementCallbacks?xr._elementCallbacks.get(r):null}static _createObserver(){let r;r="function"==typeof pt.window.ResizeObserver?pt.window.ResizeObserver:j1,xr._observerInstance=new r(c=>{for(const p of c){if(!p.target.offsetParent)continue;const v=xr._getElementCallbacks(p.target);if(v)for(const Z of v)Z(p)}})}}xr._observerInstance=null,xr._elementCallbacks=null;class j1{constructor(r){this._callback=r,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}observe(r){this._elements.add(r),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}unobserve(r){this._elements.delete(r),this._previousRects.delete(r),this._elements.size||this._stopPeriodicCheck()}_startPeriodicCheck(){const r=()=>{this._checkElementRectsAndExecuteCallback(),this._periodicCheckTimeout=setTimeout(r,100)};this.listenTo(pt.window,"resize",()=>{this._checkElementRectsAndExecuteCallback()}),this._periodicCheckTimeout=setTimeout(r,100)}_stopPeriodicCheck(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}_checkElementRectsAndExecuteCallback(){const r=[];for(const c of this._elements)this._hasRectChanged(c)&&r.push({target:c,contentRect:this._previousRects.get(c)});r.length&&this._callback(r)}_hasRectChanged(r){if(!r.ownerDocument.body.contains(r))return!1;const c=new cr(r),p=this._previousRects.get(r),v=!p||!p.isEqual(c);return this._previousRects.set(r,c),v}}Si(j1,gi);class Am extends Oo{constructor(r){super(r);const c=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",c.to("position",p=>"ck-dropdown__panel_"+p),c.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:c.to(p=>p.preventDefault())}})}focus(){this.children.length&&this.children.first.focus()}focusLast(){if(this.children.length){const r=this.children.last;"function"==typeof r.focusLast?r.focusLast():r.focus()}}}function q_({element:b,target:r,positions:c,limiter:p,fitInViewport:v}){Kt(r)&&(r=r()),Kt(p)&&(p=p());const Z=(xt=b)&&xt.parentNode?xt.offsetParent===pt.document.body?null:xt.offsetParent:null,S=new cr(b),I=new cr(r);var xt;let V,it;[it,V]=(p||v)&&function(le,Ie){const{elementRect:rn,viewportRect:vn}=Ie,wn=rn.getArea(),qn=function(mi,{targetRect:xi,elementRect:Vi,limiterRect:Po,viewportRect:Yr}){const Ba=[],$s=Vi.getArea();for(const Za of mi){const Gc=E_(Za,xi,Vi);if(!Gc)continue;const[kl,Ks]=Gc;let id=0,Zd=0;if(Po)if(Yr){const iu=Po.getIntersection(Yr);iu&&(id=iu.getIntersectionArea(Ks))}else id=Po.getIntersectionArea(Ks);Yr&&(Zd=Yr.getIntersectionArea(Ks));const nu={positionName:kl,positionRect:Ks,limiterIntersectArea:id,viewportIntersectArea:Zd};if(id===$s)return[nu];Ba.push(nu)}return Ba}(le,Ie);if(vn){const mi=g1(qn.filter(({viewportIntersectArea:xi})=>xi===wn),wn);if(mi)return mi}return g1(qn,wn)}(c,{targetRect:I,elementRect:S,limiterRect:p&&new cr(p).getVisible(),viewportRect:v&&new cr(pt.window)})||E_(c[0],I,S);let dt=$2(V);return Z&&(dt=function({left:xt,top:le},Ie){const rn=$2(new cr(Ie)),vn=Iu(Ie);return xt-=rn.left,le-=rn.top,xt+=Ie.scrollLeft,le+=Ie.scrollTop,{left:xt-=vn.left,top:le-=vn.top}}(dt,Z)),{left:dt.left,top:dt.top,name:it}}function E_(b,r,c){const p=b(r,c);if(!p)return null;const{left:v,top:Z,name:S}=p;return[S,c.clone().moveTo(v,Z)]}function g1(b,r){let c,p,v=0;for(const{positionName:Z,positionRect:S,limiterIntersectArea:I,viewportIntersectArea:V}of b){if(I===r)return[Z,S];const it=V**2+I**2;it>v&&(v=it,c=S,p=Z)}return c?[p,c]:null}function $2({left:b,top:r}){const{scrollX:c,scrollY:p}=pt.window;return{left:b+c,top:r+p}}u(23);class v1 extends Oo{constructor(r,c,p){super(r);const v=this.bindTemplate;this.buttonView=c,this.panelView=p,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class"),this.set("id"),this.set("panelPosition","auto"),this.keystrokes=new _u,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",v.to("class"),v.if("isEnabled","ck-disabled",Z=>!Z)],id:v.to("id"),"aria-describedby":v.to("ariaDescribedById")},children:[c,p]}),c.extendTemplate({attributes:{class:["ck-dropdown__button"]}})}render(){super.render(),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",()=>{this.isOpen&&(this.panelView.position="auto"===this.panelPosition?v1._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions}).name:this.panelPosition)}),this.keystrokes.listenTo(this.element);const r=(c,p)=>{this.isOpen&&(this.buttonView.focus(),this.isOpen=!1,p())};this.keystrokes.set("arrowdown",(c,p)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,p())}),this.keystrokes.set("arrowright",(c,p)=>{this.isOpen&&p()}),this.keystrokes.set("arrowleft",r),this.keystrokes.set("esc",r)}focus(){this.buttonView.focus()}get _panelPositions(){const{southEast:r,southWest:c,northEast:p,northWest:v}=v1.defaultPanelPositions;return"ltr"===this.locale.uiLanguageDirection?[r,c,p,v]:[c,r,v,p]}}v1.defaultPanelPositions={southEast:b=>({top:b.bottom,left:b.left,name:"se"}),southWest:(b,r)=>({top:b.bottom,left:b.left-r.width+b.width,name:"sw"}),northEast:(b,r)=>({top:b.top-r.height,left:b.left,name:"ne"}),northWest:(b,r)=>({top:b.bottom-r.height,left:b.left-r.width+b.width,name:"nw"})},v1._getOptimalPosition=q_,u(25);class b1 extends Oo{constructor(){super();const r=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:r.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const r=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),c=r.getAttribute("viewBox");for(c&&(this.viewBox=c),this.element.innerHTML="";r.childNodes.length>0;)this.element.appendChild(r.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(r=>{r.style.fill=this.fillColor})}}u(27);class lh extends Oo{constructor(r){super(r),this.set("text",""),this.set("position","s");const c=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",c.to("position",p=>"ck-tooltip_"+p),c.if("text","ck-hidden",p=>!p.trim())]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:c.to("text")}]}]})}}u(29);class Hr extends Oo{constructor(r){super(r);const c=this.bindTemplate,p=Pa();this.set("class"),this.set("labelStyle"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.tooltipView=this._createTooltipView(),this.labelView=this._createLabelView(p),this.iconView=new b1,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this)),this.setTemplate({tag:"button",attributes:{class:["ck","ck-button",c.to("class"),c.if("isEnabled","ck-disabled",v=>!v),c.if("isVisible","ck-hidden",v=>!v),c.to("isOn",v=>v?"ck-on":"ck-off"),c.if("withText","ck-button_with-text"),c.if("withKeystroke","ck-button_with-keystroke")],type:c.to("type",v=>v||"button"),tabindex:c.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_"+p,"aria-disabled":c.if("isEnabled",!0,v=>!v),"aria-pressed":c.to("isOn",v=>!!this.isToggleable&&String(v))},children:this.children,on:{mousedown:c.to(v=>{v.preventDefault()}),click:c.to(v=>{this.isEnabled?this.fire("execute"):v.preventDefault()})}})}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}_createTooltipView(){const r=new lh;return r.bind("text").to(this,"_tooltipString"),r.bind("position").to(this,"tooltipPosition"),r}_createLabelView(r){const c=new Oo;return c.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:this.bindTemplate.to("labelStyle"),id:"ck-editor__aria-label_"+r},children:[{text:this.bindTemplate.to("label")}]}),c}_createKeystrokeView(){const r=new Oo;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",c=>cd(c))}]}),r}_getTooltipString(r,c,p){return r?"string"==typeof r?r:(p&&(p=cd(p)),r instanceof Function?r(c,p):`${c}${p?` (${p})`:""}`):""}}var W1='';class vd extends Hr{constructor(r){super(r),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const r=new b1;return r.content=W1,r.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),r}}u(31);class N_ extends Oo{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new ws,this.keystrokes=new _u,this._focusCycler=new f1({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:this.items})}render(){super.render();for(const r of this.items)this.focusTracker.add(r.element);this.items.on("add",(r,c)=>{this.focusTracker.add(c.element)}),this.items.on("remove",(r,c)=>{this.focusTracker.remove(c.element)}),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}class K2 extends Oo{constructor(r){super(r),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:this.children})}focus(){this.children.first.focus()}}class hg extends Oo{constructor(r){super(r),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}u(33);class Ep extends Hr{constructor(r){super(r),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const r=new Oo;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),r}}function Um({emitter:b,activator:r,callback:c,contextElements:p}){b.listenTo(document,"mousedown",(v,{target:Z})=>{if(r()){for(const S of p)if(S.contains(Z))return;c()}})}function Gu(b,r=vd){const c=new r(b),p=new Am(b),v=new v1(b,c,p);return c.bind("isEnabled").to(v),c instanceof vd?c.bind("isOn").to(v,"isOpen"):c.arrowView.bind("isOn").to(v,"isOpen"),(S=Z=v).on("render",()=>{Um({emitter:S,activator:()=>S.isOpen,callback:()=>{S.isOpen=!1},contextElements:[S.element]})}),function(S){S.on("execute",I=>{I.source instanceof Ep||(S.isOpen=!1)})}(Z),function(S){S.keystrokes.set("arrowdown",(I,V)=>{S.isOpen&&(S.panelView.focus(),V())}),S.keystrokes.set("arrowup",(I,V)=>{S.isOpen&&(S.panelView.focusLast(),V())})}(Z),v;var Z,S}function uh(b,r){const c=b.locale,p=b.listView=new N_(c);p.items.bindTo(r).using(({type:v,model:Z})=>{if("separator"===v)return new hg(c);if("button"===v||"switchbutton"===v){const S=new K2(c);let I;return I="button"===v?new Hr(c):new Ep(c),I.bind(...Object.keys(Z)).to(Z),I.delegate("execute").to(S),S.children.add(I),S}}),b.panelView.children.add(p),p.items.delegate("execute").to(b)}u(35),u(37),u(39);class Zm extends Oo{constructor(r,c){super(r);const p=this.bindTemplate,v=this.t;var Z;this.options=c||{},this.set("ariaLabel",v("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new ws,this.keystrokes=new _u,this.set("class"),this.set("isCompact",!1),this.itemsView=new gg(r),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection(),this._focusCycler=new f1({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:["arrowleft","arrowup"],focusNext:["arrowright","arrowdown"]}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar",p.to("class"),p.if("isCompact","ck-toolbar_compact")],role:"toolbar","aria-label":p.to("ariaLabel"),style:{maxWidth:p.to("maxWidth")}},children:this.children,on:{mousedown:(Z=this,Z.bindTemplate.to(S=>{S.target===Z.element&&S.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new X2(this):new wm(this)}render(){super.render();for(const r of this.items)this.focusTracker.add(r.element);this.items.on("add",(r,c)=>{this.focusTracker.add(c.element)}),this.items.on("remove",(r,c)=>{this.focusTracker.remove(c.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(r,c){this.items.addMany(r.map(p=>"|"==p?new G1:c.has(p)?c.create(p):void console.warn(Object(En.a)("toolbarview-item-unavailable: The requested toolbar item is unavailable."),{name:p})).filter(p=>void 0!==p))}}class gg extends Oo{constructor(r){super(r),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class wm{constructor(r){const c=r.bindTemplate;r.set("isVertical",!1),r.itemsView.children.bindTo(r.items).using(p=>p),r.focusables.bindTo(r.items).using(p=>p),r.extendTemplate({attributes:{class:[c.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class X2{constructor(r){this.viewChildren=r.children,this.viewFocusables=r.focusables,this.viewItemsView=r.itemsView,this.viewFocusTracker=r.focusTracker,this.viewLocale=r.locale,this.ungroupedItems=r.createCollection(),this.groupedItems=r.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,r.itemsView.children.bindTo(this.ungroupedItems).using(c=>c),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),r.children.on("add",this._updateFocusCycleableItems.bind(this)),r.children.on("remove",this._updateFocusCycleableItems.bind(this)),r.items.on("change",(c,p)=>{const v=p.index;for(const Z of p.removed)v>=this.ungroupedItems.length?this.groupedItems.remove(Z):this.ungroupedItems.remove(Z);for(let Z=v;Zthis.ungroupedItems.length?this.groupedItems.add(S,Z-this.ungroupedItems.length):this.ungroupedItems.add(S,Z)}this._updateGrouping()}),r.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(r){this.viewElement=r.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(r)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!this.viewElement.offsetParent)return void(this.shouldUpdateGroupingOnNextResize=!0);let r;for(;this._areItemsOverflowing;)this._groupLastItem(),r=!0;if(!r&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const r=this.viewElement,c=this.viewLocale.uiLanguageDirection,p=new cr(r.lastChild),v=new cr(r);if(!this.cachedPadding){const Z=pt.window.getComputedStyle(r);this.cachedPadding=Number.parseInt(Z["ltr"===c?"paddingRight":"paddingLeft"])}return"ltr"===c?p.right>v.right-this.cachedPadding:p.left{r&&r===c.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),r=c.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(r){r.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new G1),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const r=this.viewLocale,c=r.t,p=Gu(r);return p.class="ck-toolbar__grouped-dropdown",p.panelPosition="ltr"===r.uiLanguageDirection?"sw":"se",function(v,Z){const S=v.locale,I=S.t,V=v.toolbarView=new Zm(S);V.set("ariaLabel",I("Dropdown toolbar")),v.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),[].map(it=>V.items.add(it)),v.panelView.children.add(V),V.items.delegate("execute").to(v)}(p),p.buttonView.set({label:c("Show more items"),tooltip:!0,icon:''}),p.toolbarView.items.bindTo(this.groupedItems).using(v=>v),p}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(r=>{this.viewFocusables.add(r)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}u(41);class F_ extends J1{constructor(r,c,p={}){super(r),this.stickyPanel=new fg(r),this.toolbar=new Zm(r,{shouldGroupWhenFull:p.shouldToolbarGroupWhenFull}),this.editable=new ch(r,c)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class Mm extends Lp{constructor(r,c){super(c),Ur(r)&&(this.sourceElement=r),this.data.processor=new D_(this.data.viewDocument),this.model.document.createRoot();const p=!this.config.get("toolbar.shouldNotGroupWhenFull"),v=new F_(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:p});this.ui=new S_(this,v),function(Z){if(!Kt(Z.updateSourceElement))throw new En.b("attachtoform-missing-elementapi-interface: Editor passed to attachToForm() must implement ElementApi.",Z);const S=Z.sourceElement;if(S&&"textarea"===S.tagName.toLowerCase()&&S.form){let I;const V=S.form,it=()=>Z.updateSourceElement();Kt(V.submit)&&(I=V.submit,V.submit=()=>{it(),I.apply(V)}),V.addEventListener("submit",it),Z.on("destroy",()=>{V.removeEventListener("submit",it),I&&(V.submit=I)})}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(r,c={}){return new Promise(p=>{const v=new this(r,c);p(v.initPlugins().then(()=>v.ui.init(Ur(r)?r:null)).then(()=>{if(!Ur(r)&&c.initialData)throw new En.b("editor-create-initial-data: The config.initialData option cannot be used together with initial data passed in Editor.create().",null);const Z=c.initialData||(Ur(S=r)?(I=S)instanceof HTMLTextAreaElement?I.value:I.innerHTML:S);var S,I;return v.data.init(Z)}).then(()=>v.fire("ready")).then(()=>v))})}}Si(Mm,Ul),Si(Mm,V1);class Qi{constructor(r){this.editor=r,this.set("isEnabled",!0),this._disableStack=new Set}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",tf,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",tf),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function tf(b){b.return=!1,b.stop()}Si(Qi,Ut);class Np{constructor(r){this.files=function(c){const p=c.files?Array.from(c.files):[],v=c.items?Array.from(c.items):[];return p.length?p:v.filter(Z=>"file"===Z.kind).map(Z=>Z.getAsFile())}(r),this._native=r}get types(){return this._native.types}getData(r){return this._native.getData(r)}setData(r,c){this._native.setData(r,c)}}class dh extends dd{constructor(r){super(r);const c=this.document;function p(v,Z){Z.preventDefault();const S=Z.dropRange?[Z.dropRange]:Array.from(c.selection.getRanges()),I=new Xo(c,"clipboardInput");c.fire(I,{dataTransfer:Z.dataTransfer,targetRanges:S}),I.stop.called&&Z.stopPropagation()}this.domEventType=["paste","copy","cut","drop","dragover"],this.listenTo(c,"paste",p,{priority:"low"}),this.listenTo(c,"drop",p,{priority:"low"})}onDomEvent(r){const c={dataTransfer:new Np(r.clipboardData?r.clipboardData:r.dataTransfer)};"drop"==r.type&&(c.dropRange=function(p,v){const Z=v.target.ownerDocument,S=v.clientX,I=v.clientY;let V;return Z.caretRangeFromPoint&&Z.caretRangeFromPoint(S,I)?V=Z.caretRangeFromPoint(S,I):v.rangeParent&&(V=Z.createRange(),V.setStart(v.rangeParent,v.rangeOffset),V.collapse(!0)),V?p.domConverter.domRangeToView(V):p.document.selection.getFirstRange()}(this.view,r)),this.fire(r.type,r,c)}}const $1=["figcaption","li"];class K1 extends Qi{static get pluginName(){return"Clipboard"}init(){const r=this.editor,c=r.model.document,p=r.editing.view,v=p.document;function Z(S,I){const V=I.dataTransfer;I.preventDefault();const it=r.data.toView(r.model.getSelectedContent(c.selection));v.fire("clipboardOutput",{dataTransfer:V,content:it,method:S.name})}this._htmlDataProcessor=new D_(v),p.addObserver(dh),this.listenTo(v,"clipboardInput",S=>{r.isReadOnly&&S.stop()},{priority:"highest"}),this.listenTo(v,"clipboardInput",(S,I)=>{const V=I.dataTransfer;let it="";var dt;V.getData("text/html")?it=V.getData("text/html").replace(/(\s+)<\/span>/g,(Ie,rn)=>1==rn.length?" ":rn):V.getData("text/plain")&&((dt=(dt=V.getData("text/plain")).replace(//g,">").replace(/\n/g,"

").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).indexOf("

")>-1&&(dt=`

${dt}

`),it=dt),it=this._htmlDataProcessor.toView(it);const xt=new Xo(this,"inputTransformation");this.fire(xt,{content:it,dataTransfer:V}),xt.stop.called&&S.stop(),p.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(S,I)=>{if(!I.content.isEmpty){const it=this.editor.model,dt=this.editor.data.toModel(I.content,"$clipboardHolder");if(0==dt.childCount)return;it.insertContent(dt),S.stop()}},{priority:"low"}),this.listenTo(v,"copy",Z,{priority:"low"}),this.listenTo(v,"cut",(S,I)=>{r.isReadOnly?I.preventDefault():Z(S,I)},{priority:"low"}),this.listenTo(v,"clipboardOutput",(S,I)=>{I.content.isEmpty||(I.dataTransfer.setData("text/html",this._htmlDataProcessor.toData(I.content)),I.dataTransfer.setData("text/plain",function V(it){let dt="";if(it.is("$text")||it.is("$textProxy"))dt=it.data;else if(it.is("element","img")&&it.hasAttribute("alt"))dt=it.getAttribute("alt");else{let xt=null;for(const le of it.getChildren()){const Ie=V(le);xt&&(xt.is("containerElement")||le.is("containerElement"))&&($1.includes(xt.name)||$1.includes(le.name)?dt+="\n":dt+="\n\n"),dt+=Ie,xt=le}}return dt}(I.content))),"cut"==I.method&&r.model.deleteContent(c.selection)},{priority:"low"})}}class da{constructor(r){this.editor=r,this.set("value",void 0),this.set("isEnabled",!1),this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.on("execute",c=>{this.isEnabled||c.stop()},{priority:"high"}),this.listenTo(r,"change:isReadOnly",(c,p,v)=>{v?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})}refresh(){this.isEnabled=!0}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",Pi,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",Pi),this.refresh())}execute(){}destroy(){this.stopListening()}}function Pi(b){b.return=!1,b.stop()}function*ph(b,r){for(const c of r)c&&b.getAttributeProperties(c[0]).copyOnEnter&&(yield c)}Si(da,Ut);class vg extends da{execute(){const r=this.editor.model,c=r.document;r.change(p=>{(function(v,Z,S,I){const V=S.isCollapsed,it=S.getFirstRange(),dt=it.start.parent,xt=it.end.parent;if(I.isLimit(dt)||I.isLimit(xt))V||dt!=xt||v.deleteContent(S);else if(V){const le=ph(Z.model.schema,S.getAttributes());ju(Z,it.start),Z.setSelectionAttribute(le)}else{const le=!(it.start.isAtStart&&it.end.isAtEnd),Ie=dt==xt;v.deleteContent(S,{leaveUnmerged:le}),le&&(Ie?ju(Z,S.focus):Z.setSelection(xt,0))}})(this.editor.model,p,c.selection,r.schema),this.fire("afterExecute",{writer:p})})}}function ju(b,r){b.split(r),b.setSelection(r.parent.nextSibling,0)}class ef extends ra{constructor(r){super(r);const c=this.document;c.on("keydown",(p,v)=>{if(this.isEnabled&&v.keyCode==mo.enter){let Z;c.once("enter",S=>Z=S,{priority:"highest"}),c.fire("enter",new ud(c,v.domEvent,{isSoft:v.shiftKey})),Z&&Z.stop.called&&p.stop()}})}observe(){}}class bg extends Qi{static get pluginName(){return"Enter"}init(){const r=this.editor,c=r.editing.view,p=c.document;c.addObserver(ef),r.commands.add("enter",new vg(r)),this.listenTo(p,"enter",(v,Z)=>{Z.preventDefault(),Z.isSoft||(r.execute("enter"),c.scrollToTheSelection())},{priority:"low"})}}class nf extends da{execute(){const r=this.editor.model,c=r.document;r.change(p=>{(function(v,Z,S){const I=S.isCollapsed,V=S.getFirstRange(),dt=V.end.parent,xt=V.start.parent==dt;if(I){const le=ph(v.schema,S.getAttributes());af(v,Z,V.end),Z.removeSelectionAttribute(S.getAttributeKeys()),Z.setSelectionAttribute(le)}else{const le=!(V.start.isAtStart&&V.end.isAtEnd);v.deleteContent(S,{leaveUnmerged:le}),xt?af(v,Z,S.focus):le&&Z.setSelection(dt,0)}})(r,p,c.selection),this.fire("afterExecute",{writer:p})})}refresh(){const r=this.editor.model;this.isEnabled=function(p,v){if(v.rangeCount>1)return!1;const Z=v.anchor;if(!Z||!p.checkChild(Z,"softBreak"))return!1;const S=v.getFirstRange(),I=S.start.parent,V=S.end.parent;return!((Dm(I,p)||Dm(V,p))&&I!==V)}(r.schema,r.document.selection)}}function af(b,r,c){const p=r.createElement("softBreak");b.insertContent(p,c),r.setSelection(p,"after")}function Dm(b,r){return!b.is("rootElement")&&(r.isLimit(b)||Dm(b.parent,r))}class I_ extends Qi{static get pluginName(){return"ShiftEnter"}init(){const r=this.editor,p=r.conversion,v=r.editing.view,Z=v.document;r.model.schema.register("softBreak",{allowWhere:"$text",isInline:!0}),p.for("upcast").elementToElement({model:"softBreak",view:"br"}),p.for("downcast").elementToElement({model:"softBreak",view:(S,I)=>I.createEmptyElement("br")}),v.addObserver(ef),r.commands.add("shiftEnter",new nf(r)),this.listenTo(Z,"enter",(S,I)=>{I.preventDefault(),I.isSoft&&(r.execute("shiftEnter"),v.scrollToTheSelection())},{priority:"low"})}}class rf extends da{execute(){const r=this.editor.model,c=r.document.selection;let p=r.schema.getLimitElement(c);if(c.containsEntireContent(p)||!R_(r.schema,p))do{if(p=p.parent,!p)return}while(!R_(r.schema,p));r.change(v=>{v.setSelection(p,"in")})}}function R_(b,r){return b.isLimit(r)&&(b.checkChild(r,"$text")||b.checkChild(r,"paragraph"))}const Yd=Dd("Ctrl+A");class zd extends Qi{static get pluginName(){return"SelectAllEditing"}init(){const r=this.editor,c=r.editing.view.document;r.commands.add("selectAll",new rf(r)),this.listenTo(c,"keydown",(p,v)=>{na(v)===Yd&&(r.execute("selectAll"),v.preventDefault())})}}class Cg extends Qi{static get pluginName(){return"SelectAllUI"}init(){const r=this.editor;r.ui.componentFactory.add("selectAll",c=>{const p=r.commands.get("selectAll"),v=new Hr(c);return v.set({label:(0,c.t)("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),v.bind("isOn","isEnabled").to(p,"value","isEnabled"),this.listenTo(v,"execute",()=>{r.execute("selectAll"),r.editing.view.focus()}),v})}}class mh extends Qi{static get requires(){return[zd,Cg]}static get pluginName(){return"SelectAll"}}class _h{constructor(r,c=20){this.model=r,this.size=0,this.limit=c,this.isLocked=!1,this._changeCallback=(p,v)=>{"transparent"!=v.type&&v!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch()),this._batch}input(r){this.size+=r,this.size>=this.limit&&this._reset(!0)}lock(){this.isLocked=!0}unlock(){this.isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(r){this.isLocked&&!r||(this._batch=null,this.size=0)}}class fh extends da{constructor(r,c){super(r),this._buffer=new _h(r.model,c),this._batches=new WeakSet}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(r={}){const c=this.editor.model,p=c.document,v=r.text||"",Z=v.length,S=r.range?c.createSelection(r.range):p.selection,I=r.resultRange;c.enqueueChange(this._buffer.batch,V=>{this._buffer.lock(),this._batches.add(this._buffer.batch),c.deleteContent(S),v&&c.insertContent(V.createText(v,p.selection.getAttributes()),S),I?V.setSelection(I):S.is("documentSelection")||V.setSelection(S),this._buffer.unlock(),this._buffer.input(Z)})}}const C1=[na("arrowUp"),na("arrowRight"),na("arrowDown"),na("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255];for(let b=112;b<=135;b++)C1.push(b);function Pm(b){return!!b.ctrlKey||C1.includes(b.keyCode)}function sf(b){if(b.newChildren.length-b.oldChildren.length!=1)return;const r=function(p,v){const Z=[];let S,I=0;return p.forEach(dt=>{"equal"==dt?(V(),I++):"insert"==dt?(it("insert")?S.values.push(v[I]):(V(),S={type:"insert",index:I,values:[v[I]]}),I++):it("delete")?S.howMany++:(V(),S={type:"delete",index:I,howMany:1})}),V(),Z;function V(){S&&(Z.push(S),S=null)}function it(dt){return S&&S.type==dt}}(qs(b.oldChildren,b.newChildren,X1),b.newChildren);if(r.length>1)return;const c=r[0];return c.values[0]&&c.values[0].is("$text")?c:void 0}function X1(b,r){return b&&b.is("$text")&&r&&r.is("$text")?b.data===r.data:b===r}class bd{constructor(r){this.editor=r,this.editing=this.editor.editing}handle(r,c){if(function(p){if(0==p.length)return!1;for(const v of p)if("children"===v.type&&!sf(v))return!0;return!1}(r))this._handleContainerChildrenMutations(r,c);else for(const p of r)this._handleTextMutation(p,c),this._handleTextNodeInsertion(p)}_handleContainerChildrenMutations(r,c){const p=function($s){const Za=$s.map(Gc=>Gc.node).reduce((Gc,kl)=>Gc.getCommonAncestor(kl,{includeSelf:!0}));if(Za)return Za.getAncestors({includeSelf:!0,parentFirst:!0}).find(Gc=>Gc.is("containerElement")||Gc.is("rootElement"))}(r);if(!p)return;const v=this.editor.editing.view.domConverter.mapViewToDom(p),Z=new jt(this.editor.editing.view.document),S=this.editor.data.toModel(Z.domToView(v)).getChild(0),I=this.editor.editing.mapper.toModelElement(p);if(!I)return;const V=Array.from(S.getChildren()),it=Array.from(I.getChildren()),dt=V[V.length-1],xt=it[it.length-1],le=dt&&dt.is("element","softBreak"),Ie=xt&&!xt.is("element","softBreak");le&&Ie&&V.pop();const rn=this.editor.model.schema;if(!hh(V,rn)||!hh(it,rn))return;const vn=V.map($s=>$s.is("$text")?$s.data:"@").join("").replace(/\u00A0/g," "),wn=it.map($s=>$s.is("$text")?$s.data:"@").join("").replace(/\u00A0/g," ");if(wn===vn)return;const qn=qs(wn,vn),{firstChangeAt:mi,insertions:xi,deletions:Vi}=gh(qn);let Po=null;c&&(Po=this.editing.mapper.toModelRange(c.getFirstRange()));const Yr=vn.substr(mi,xi),Ba=this.editor.model.createRange(this.editor.model.createPositionAt(I,mi),this.editor.model.createPositionAt(I,mi+Vi));this.editor.execute("input",{text:Yr,range:Ba,resultRange:Po})}_handleTextMutation(r,c){if("text"!=r.type)return;const p=r.newText.replace(/\u00A0/g," "),v=r.oldText.replace(/\u00A0/g," ");if(v===p)return;const Z=qs(v,p),{firstChangeAt:S,insertions:I,deletions:V}=gh(Z);let it=null;c&&(it=this.editing.mapper.toModelRange(c.getFirstRange()));const dt=this.editing.view.createPositionAt(r.node,S),xt=this.editing.mapper.toModelPosition(dt),le=this.editor.model.createRange(xt,xt.getShiftedBy(V)),Ie=p.substr(S,I);this.editor.execute("input",{text:Ie,range:le,resultRange:it})}_handleTextNodeInsertion(r){if("children"!=r.type)return;const c=sf(r),p=this.editing.view.createPositionAt(r.node,c.index),v=this.editing.mapper.toModelPosition(p);this.editor.execute("input",{text:c.values[0].data.replace(/\u00A0/g," "),range:this.editor.model.createRange(v)})}}function hh(b,r){return b.every(c=>r.isInline(c))}function gh(b){let r=null,c=null;for(let Z=0;Z{Z.deleteContent(Z.document.selection)}),dt.unlock()}S.document.on(Dr_isAndroid?"beforeinput":"keydown",(dt,xt)=>function V(dt){const xt=Z.document,le=S.document.isComposing,Ie=v&&v.isEqual(xt.selection);v=null,I.isEnabled&&(Pm(dt)||xt.selection.isCollapsed||le&&229===dt.keyCode||!le&&229===dt.keyCode&&Ie||it())}(xt),{priority:"lowest"}),S.document.on("compositionstart",function(){const dt=Z.document,xt=1!==dt.selection.rangeCount||dt.selection.getFirstRange().isFlat;dt.selection.isCollapsed||xt||it()},{priority:"lowest"}),S.document.on("compositionend",()=>{v=Z.createSelection(Z.document.selection)},{priority:"lowest"})}(r),(p=r).editing.view.document.on("mutations",(v,Z,S)=>{new bd(p).handle(Z,S)})}isInput(r){return this.editor.commands.get("input")._batches.has(r)}}class vh extends da{constructor(r,c){super(r),this.direction=c,this._buffer=new _h(r.model,r.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(r={}){const c=this.editor.model,p=c.document;c.enqueueChange(this._buffer.batch,v=>{this._buffer.lock();const Z=v.createSelection(r.selection||p.selection),S=Z.isCollapsed;if(Z.isCollapsed&&c.modifySelection(Z,{direction:this.direction,unit:r.unit}),this._shouldEntireContentBeReplacedWithParagraph(r.sequence||1))return void this._replaceEntireContentWithParagraph(v);if(Z.isCollapsed)return;let I=0;Z.getFirstRange().getMinimalFlatRanges().forEach(V=>{I+=po(V.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),c.deleteContent(Z,{doNotResetEntireContent:S,direction:this.direction}),this._buffer.input(I),v.setSelection(Z),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(r){if(r>1)return!1;const c=this.editor.model,p=c.document.selection,v=c.schema.getLimitElement(p);if(!p.isCollapsed||!p.containsEntireContent(v)||!c.schema.checkChild(v,"paragraph"))return!1;const Z=v.getChild(0);return!Z||"paragraph"!==Z.name}_replaceEntireContentWithParagraph(r){const c=this.editor.model,v=c.schema.getLimitElement(c.document.selection),Z=r.createElement("paragraph");r.remove(r.createRangeIn(v)),r.insert(Z,v),r.setSelection(Z,0)}}class Sm extends ra{constructor(r){super(r);const c=r.document;let p=0;function v(Z,S,I){let V;c.once("delete",it=>V=it,{priority:Number.POSITIVE_INFINITY}),c.fire("delete",new ud(c,S,I)),V&&V.stop.called&&Z.stop()}c.on("keyup",(Z,S)=>{S.keyCode!=mo.delete&&S.keyCode!=mo.backspace||(p=0)}),c.on("keydown",(Z,S)=>{const I={};if(S.keyCode==mo.delete)I.direction="forward",I.unit="character";else{if(S.keyCode!=mo.backspace)return;I.direction="backward",I.unit="codePoint"}I.unit=(Dr_isMac?S.altKey:S.ctrlKey)?"word":I.unit,I.sequence=++p,v(Z,S.domEvent,I)}),Dr_isAndroid&&c.on("beforeinput",(Z,S)=>{if("deleteContentBackward"!=S.domEvent.inputType)return;const I={unit:"codepoint",direction:"backward",sequence:1},V=S.domTarget.ownerDocument.defaultView.getSelection();V.anchorNode==V.focusNode&&V.anchorOffset+1!=V.focusOffset&&(I.selectionToRemove=r.domConverter.domSelectionToView(V)),v(Z,S.domEvent,I)})}observe(){}}class Wu extends Qi{static get pluginName(){return"Delete"}init(){const r=this.editor,c=r.editing.view,p=c.document;if(c.addObserver(Sm),r.commands.add("forwardDelete",new vh(r,"forward")),r.commands.add("delete",new vh(r,"backward")),this.listenTo(p,"delete",(v,Z)=>{const S={unit:Z.unit,sequence:Z.sequence};if(Z.selectionToRemove){const I=r.model.createSelection(),V=[];for(const it of Z.selectionToRemove.getRanges())V.push(r.editing.mapper.toModelRange(it));I.setTo(V),S.selection=I}r.execute("forward"==Z.direction?"forwardDelete":"delete",S),Z.preventDefault(),c.scrollToTheSelection()}),Dr_isAndroid){let v=null;this.listenTo(p,"delete",(Z,S)=>{const I=S.domTarget.ownerDocument.defaultView.getSelection();v={anchorNode:I.anchorNode,anchorOffset:I.anchorOffset,focusNode:I.focusNode,focusOffset:I.focusOffset}},{priority:"lowest"}),this.listenTo(p,"keyup",(Z,S)=>{if(v){const I=S.domTarget.ownerDocument.defaultView.getSelection();I.collapse(v.anchorNode,v.anchorOffset),I.extend(v.focusNode,v.focusOffset),v=null}})}}}class gu extends Qi{static get requires(){return[xg,Wu]}static get pluginName(){return"Typing"}}const vu=new Map;function Na(b,r,c){let p=vu.get(b);p||(p=new Map,vu.set(b,p)),p.set(r,c)}function bh(b){return[b]}function km(b,r,c={}){const p=function(v,Z){const S=vu.get(v);return S&&S.has(Z)?S.get(Z):bh}(b.constructor,r.constructor);try{return p(b=b.clone(),r,c)}catch(v){throw v}}function Fp(b,r,c){b=b.slice(),r=r.slice();const p=new x1(c.document,c.useRelations,c.forceWeakRemove);p.setOriginalOperations(b),p.setOriginalOperations(r);const v=p.originalOperations;if(0==b.length||0==r.length)return{operationsA:b,operationsB:r,originalOperations:v};const Z=new WeakMap;for(const V of b)Z.set(V,0);const S={nextBaseVersionA:b[b.length-1].baseVersion+1,nextBaseVersionB:r[r.length-1].baseVersion+1,originalOperationsACount:b.length,originalOperationsBCount:r.length};let I=0;for(;I{if(b.key===r.key&&b.range.start.hasSameParentAs(r.range.start)){const p=b.range.getDifference(r.range).map(Z=>new ga(Z,b.key,b.oldValue,b.newValue,0)),v=b.range.getIntersection(r.range);return v&&c.aIsStrong&&p.push(new ga(v,r.key,r.newValue,b.newValue,0)),0==p.length?[new Es(0)]:p}return[b]}),Na(ga,fo,(b,r)=>{if(b.range.start.hasSameParentAs(r.position)&&b.range.containsPosition(r.position)){const c=b.range._getTransformedByInsertion(r.position,r.howMany,!r.shouldReceiveAttributes).map(p=>new ga(p,b.key,b.oldValue,b.newValue,b.baseVersion));if(r.shouldReceiveAttributes){const p=tp(r,b.key,b.oldValue);p&&c.unshift(p)}return c}return b.range=b.range._getTransformedByInsertion(r.position,r.howMany,!1)[0],[b]}),Na(ga,rs,(b,r)=>{const c=[];b.range.start.hasSameParentAs(r.deletionPosition)&&(b.range.containsPosition(r.deletionPosition)||b.range.start.isEqual(r.deletionPosition))&&c.push(bi._createFromPositionAndShift(r.graveyardPosition,1));const p=b.range._getTransformedByMergeOperation(r);return p.isCollapsed||c.push(p),c.map(v=>new ga(v,b.key,b.oldValue,b.newValue,b.baseVersion))}),Na(ga,Jo,(b,r)=>function(c,p){const v=bi._createFromPositionAndShift(p.sourcePosition,p.howMany);let Z=null,S=[];v.containsRange(c,!0)?Z=c:c.start.hasSameParentAs(v.start)?(S=c.getDifference(v),Z=c.getIntersection(v)):S=[c];const I=[];for(let V of S){V=V._getTransformedByDeletion(p.sourcePosition,p.howMany);const it=p.getMovedRangeStart(),dt=V.start.hasSameParentAs(it);V=V._getTransformedByInsertion(it,p.howMany,dt),I.push(...V)}return Z&&I.push(Z._getTransformedByMove(p.sourcePosition,p.targetPosition,p.howMany,!1)[0]),I}(b.range,r).map(c=>new ga(c,b.key,b.oldValue,b.newValue,b.baseVersion))),Na(ga,Ka,(b,r)=>{if(b.range.end.isEqual(r.insertionPosition))return r.graveyardPosition||b.range.end.offset++,[b];if(b.range.start.hasSameParentAs(r.splitPosition)&&b.range.containsPosition(r.splitPosition)){const c=b.clone();return c.range=new bi(r.moveTargetPosition.clone(),b.range.end._getCombined(r.splitPosition,r.moveTargetPosition)),b.range.end=r.splitPosition.clone(),b.range.end.stickiness="toPrevious",[b,c]}return b.range=b.range._getTransformedBySplitOperation(r),[b]}),Na(fo,ga,(b,r)=>{const c=[b];if(b.shouldReceiveAttributes&&b.position.hasSameParentAs(r.range.start)&&r.range.containsPosition(b.position)){const p=tp(b,r.key,r.newValue);p&&c.push(p)}return c}),Na(fo,fo,(b,r,c)=>(b.position.isEqual(r.position)&&c.aIsStrong||(b.position=b.position._getTransformedByInsertOperation(r)),[b])),Na(fo,Jo,(b,r)=>(b.position=b.position._getTransformedByMoveOperation(r),[b])),Na(fo,Ka,(b,r)=>(b.position=b.position._getTransformedBySplitOperation(r),[b])),Na(fo,rs,(b,r)=>(b.position=b.position._getTransformedByMergeOperation(r),[b])),Na(Hc,fo,(b,r)=>(b.oldRange&&(b.oldRange=b.oldRange._getTransformedByInsertOperation(r)[0]),b.newRange&&(b.newRange=b.newRange._getTransformedByInsertOperation(r)[0]),[b])),Na(Hc,Hc,(b,r,c)=>{if(b.name==r.name){if(!c.aIsStrong)return[new Es(0)];b.oldRange=r.newRange?r.newRange.clone():null}return[b]}),Na(Hc,rs,(b,r)=>(b.oldRange&&(b.oldRange=b.oldRange._getTransformedByMergeOperation(r)),b.newRange&&(b.newRange=b.newRange._getTransformedByMergeOperation(r)),[b])),Na(Hc,Jo,(b,r,c)=>{if(b.oldRange&&(b.oldRange=bi._createFromRanges(b.oldRange._getTransformedByMoveOperation(r))),b.newRange){if(c.abRelation){const p=bi._createFromRanges(b.newRange._getTransformedByMoveOperation(r));if("left"==c.abRelation.side&&r.targetPosition.isEqual(b.newRange.start))return b.newRange.start.path=c.abRelation.path,b.newRange.end=p.end,[b];if("right"==c.abRelation.side&&r.targetPosition.isEqual(b.newRange.end))return b.newRange.start=p.start,b.newRange.end.path=c.abRelation.path,[b]}b.newRange=bi._createFromRanges(b.newRange._getTransformedByMoveOperation(r))}return[b]}),Na(Hc,Ka,(b,r,c)=>{if(b.oldRange&&(b.oldRange=b.oldRange._getTransformedBySplitOperation(r)),b.newRange){if(c.abRelation){const p=b.newRange._getTransformedBySplitOperation(r);return b.newRange.start.isEqual(r.splitPosition)&&c.abRelation.wasStartBeforeMergedElement?b.newRange.start=Ei._createAt(r.insertionPosition):b.newRange.start.isEqual(r.splitPosition)&&!c.abRelation.wasInLeftElement&&(b.newRange.start=Ei._createAt(r.moveTargetPosition)),b.newRange.end=b.newRange.end.isEqual(r.splitPosition)&&c.abRelation.wasInRightElement?Ei._createAt(r.moveTargetPosition):b.newRange.end.isEqual(r.splitPosition)&&c.abRelation.wasEndBeforeMergedElement?Ei._createAt(r.insertionPosition):p.end,[b]}b.newRange=b.newRange._getTransformedBySplitOperation(r)}return[b]}),Na(rs,fo,(b,r)=>(b.sourcePosition.hasSameParentAs(r.position)&&(b.howMany+=r.howMany),b.sourcePosition=b.sourcePosition._getTransformedByInsertOperation(r),b.targetPosition=b.targetPosition._getTransformedByInsertOperation(r),[b])),Na(rs,rs,(b,r,c)=>{if(b.sourcePosition.isEqual(r.sourcePosition)&&b.targetPosition.isEqual(r.targetPosition)){if(c.bWasUndone){const p=r.graveyardPosition.path.slice();return p.push(0),b.sourcePosition=new Ei(r.graveyardPosition.root,p),b.howMany=0,[b]}return[new Es(0)]}if(b.sourcePosition.isEqual(r.sourcePosition)&&!b.targetPosition.isEqual(r.targetPosition)&&!c.bWasUndone&&"splitAtSource"!=c.abRelation){const p="$graveyard"==b.targetPosition.root.rootName,v="$graveyard"==r.targetPosition.root.rootName;if(v&&!p||(!p||v)&&c.aIsStrong){const S=r.targetPosition._getTransformedByMergeOperation(r),I=b.targetPosition._getTransformedByMergeOperation(r);return[new Jo(S,b.howMany,I,0)]}return[new Es(0)]}return b.sourcePosition.hasSameParentAs(r.targetPosition)&&(b.howMany+=r.howMany),b.sourcePosition=b.sourcePosition._getTransformedByMergeOperation(r),b.targetPosition=b.targetPosition._getTransformedByMergeOperation(r),b.graveyardPosition.isEqual(r.graveyardPosition)&&c.aIsStrong||(b.graveyardPosition=b.graveyardPosition._getTransformedByMergeOperation(r)),[b]}),Na(rs,Jo,(b,r,c)=>{const p=bi._createFromPositionAndShift(r.sourcePosition,r.howMany);return"remove"==r.type&&!c.bWasUndone&&!c.forceWeakRemove&&b.deletionPosition.hasSameParentAs(r.sourcePosition)&&p.containsPosition(b.sourcePosition)?[new Es(0)]:(b.sourcePosition.hasSameParentAs(r.targetPosition)&&(b.howMany+=r.howMany),b.sourcePosition.hasSameParentAs(r.sourcePosition)&&(b.howMany-=r.howMany),b.sourcePosition=b.sourcePosition._getTransformedByMoveOperation(r),b.targetPosition=b.targetPosition._getTransformedByMoveOperation(r),b.graveyardPosition.isEqual(r.targetPosition)||(b.graveyardPosition=b.graveyardPosition._getTransformedByMoveOperation(r)),[b])}),Na(rs,Ka,(b,r,c)=>{if(r.graveyardPosition&&(b.graveyardPosition=b.graveyardPosition._getTransformedByDeletion(r.graveyardPosition,1),b.deletionPosition.isEqual(r.graveyardPosition)&&(b.howMany=r.howMany)),b.targetPosition.isEqual(r.splitPosition)){const p=0!=r.howMany,v=r.graveyardPosition&&b.deletionPosition.isEqual(r.graveyardPosition);if(p||v||"mergeTargetNotMoved"==c.abRelation)return b.sourcePosition=b.sourcePosition._getTransformedBySplitOperation(r),[b]}if(b.sourcePosition.isEqual(r.splitPosition)){if("mergeSourceNotMoved"==c.abRelation)return b.howMany=0,b.targetPosition=b.targetPosition._getTransformedBySplitOperation(r),[b];if("mergeSameElement"==c.abRelation||b.sourcePosition.offset>0)return b.sourcePosition=r.moveTargetPosition.clone(),b.targetPosition=b.targetPosition._getTransformedBySplitOperation(r),[b]}return b.sourcePosition.hasSameParentAs(r.splitPosition)&&(b.howMany=r.splitPosition.offset),b.sourcePosition=b.sourcePosition._getTransformedBySplitOperation(r),b.targetPosition=b.targetPosition._getTransformedBySplitOperation(r),[b]}),Na(Jo,fo,(b,r)=>{const c=bi._createFromPositionAndShift(b.sourcePosition,b.howMany)._getTransformedByInsertOperation(r,!1)[0];return b.sourcePosition=c.start,b.howMany=c.end.offset-c.start.offset,b.targetPosition.isEqual(r.position)||(b.targetPosition=b.targetPosition._getTransformedByInsertOperation(r)),[b]}),Na(Jo,Jo,(b,r,c)=>{const p=bi._createFromPositionAndShift(b.sourcePosition,b.howMany),v=bi._createFromPositionAndShift(r.sourcePosition,r.howMany);let Z,S=c.aIsStrong,I=!c.aIsStrong;if("insertBefore"==c.abRelation||"insertAfter"==c.baRelation?I=!0:"insertAfter"!=c.abRelation&&"insertBefore"!=c.baRelation||(I=!1),Z=b.targetPosition.isEqual(r.targetPosition)&&I?b.targetPosition._getTransformedByDeletion(r.sourcePosition,r.howMany):b.targetPosition._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),lf(b,r)&&lf(r,b))return[r.getReversed()];if(p.containsPosition(r.targetPosition)&&p.containsRange(v,!0))return p.start=p.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),p.end=p.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),Ip([p],Z);if(v.containsPosition(b.targetPosition)&&v.containsRange(p,!0))return p.start=p.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),p.end=p.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),Ip([p],Z);const V=_r(b.sourcePosition.getParentPath(),r.sourcePosition.getParentPath());if("prefix"==V||"extension"==V)return p.start=p.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),p.end=p.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),Ip([p],Z);"remove"!=b.type||"remove"==r.type||c.aWasUndone||c.forceWeakRemove?"remove"==b.type||"remove"!=r.type||c.bWasUndone||c.forceWeakRemove||(S=!1):S=!0;const it=[],dt=p.getDifference(v);for(const le of dt){le.start=le.start._getTransformedByDeletion(r.sourcePosition,r.howMany),le.end=le.end._getTransformedByDeletion(r.sourcePosition,r.howMany);const Ie="same"==_r(le.start.getParentPath(),r.getMovedRangeStart().getParentPath()),rn=le._getTransformedByInsertion(r.getMovedRangeStart(),r.howMany,Ie);it.push(...rn)}const xt=p.getIntersection(v);return null!==xt&&S&&(xt.start=xt.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),xt.end=xt.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),0===it.length?it.push(xt):1==it.length?v.start.isBefore(p.start)||v.start.isEqual(p.start)?it.unshift(xt):it.push(xt):it.splice(1,0,xt)),0===it.length?[new Es(b.baseVersion)]:Ip(it,Z)}),Na(Jo,Ka,(b,r,c)=>{let p=b.targetPosition.clone();b.targetPosition.isEqual(r.insertionPosition)&&r.graveyardPosition&&"moveTargetAfter"!=c.abRelation||(p=b.targetPosition._getTransformedBySplitOperation(r));const v=bi._createFromPositionAndShift(b.sourcePosition,b.howMany);if(v.end.isEqual(r.insertionPosition))return r.graveyardPosition||b.howMany++,b.targetPosition=p,[b];if(v.start.hasSameParentAs(r.splitPosition)&&v.containsPosition(r.splitPosition)){let S=new bi(r.splitPosition,v.end);return S=S._getTransformedBySplitOperation(r),Ip([new bi(v.start,r.splitPosition),S],p)}b.targetPosition.isEqual(r.splitPosition)&&"insertAtSource"==c.abRelation&&(p=r.moveTargetPosition),b.targetPosition.isEqual(r.insertionPosition)&&"insertBetween"==c.abRelation&&(p=b.targetPosition);const Z=[v._getTransformedBySplitOperation(r)];if(r.graveyardPosition){const S=v.start.isEqual(r.graveyardPosition)||v.containsPosition(r.graveyardPosition);b.howMany>1&&S&&!c.aWasUndone&&Z.push(bi._createFromPositionAndShift(r.insertionPosition,1))}return Ip(Z,p)}),Na(Jo,rs,(b,r,c)=>{const p=bi._createFromPositionAndShift(b.sourcePosition,b.howMany);if(r.deletionPosition.hasSameParentAs(b.sourcePosition)&&p.containsPosition(r.sourcePosition))if("remove"!=b.type||c.forceWeakRemove){if(1==b.howMany)return c.bWasUndone?(b.sourcePosition=r.graveyardPosition.clone(),b.targetPosition=b.targetPosition._getTransformedByMergeOperation(r),[b]):[new Es(0)]}else if(!c.aWasUndone){const Z=[];let S=r.graveyardPosition.clone(),I=r.targetPosition._getTransformedByMergeOperation(r);b.howMany>1&&(Z.push(new Jo(b.sourcePosition,b.howMany-1,b.targetPosition,0)),S=S._getTransformedByMove(b.sourcePosition,b.targetPosition,b.howMany-1),I=I._getTransformedByMove(b.sourcePosition,b.targetPosition,b.howMany-1));const V=r.deletionPosition._getCombined(b.sourcePosition,b.targetPosition),it=new Jo(S,1,V,0),dt=it.getMovedRangeStart().path.slice();dt.push(0);const xt=new Ei(it.targetPosition.root,dt);I=I._getTransformedByMove(S,V,1);const le=new Jo(I,r.howMany,xt,0);return Z.push(it),Z.push(le),Z}const v=bi._createFromPositionAndShift(b.sourcePosition,b.howMany)._getTransformedByMergeOperation(r);return b.sourcePosition=v.start,b.howMany=v.end.offset-v.start.offset,b.targetPosition=b.targetPosition._getTransformedByMergeOperation(r),[b]}),Na(Qa,fo,(b,r)=>(b.position=b.position._getTransformedByInsertOperation(r),[b])),Na(Qa,rs,(b,r)=>b.position.isEqual(r.deletionPosition)?(b.position=r.graveyardPosition.clone(),b.position.stickiness="toNext",[b]):(b.position=b.position._getTransformedByMergeOperation(r),[b])),Na(Qa,Jo,(b,r)=>(b.position=b.position._getTransformedByMoveOperation(r),[b])),Na(Qa,Qa,(b,r,c)=>{if(b.position.isEqual(r.position)){if(!c.aIsStrong)return[new Es(0)];b.oldName=r.newName}return[b]}),Na(Qa,Ka,(b,r)=>{if("same"==_r(b.position.path,r.splitPosition.getParentPath())&&!r.graveyardPosition){const c=new Qa(b.position.getShiftedBy(1),b.oldName,b.newName,0);return[b,c]}return b.position=b.position._getTransformedBySplitOperation(r),[b]}),Na(Al,Al,(b,r,c)=>{if(b.root===r.root&&b.key===r.key){if(!c.aIsStrong||b.newValue===r.newValue)return[new Es(0)];b.oldValue=r.newValue}return[b]}),Na(Ka,fo,(b,r)=>(b.splitPosition.hasSameParentAs(r.position)&&b.splitPosition.offset{if(!b.graveyardPosition&&!c.bWasUndone&&b.splitPosition.hasSameParentAs(r.sourcePosition)){const p=r.graveyardPosition.path.slice();p.push(0);const v=new Ei(r.graveyardPosition.root,p),Z=Ka.getInsertionPosition(new Ei(r.graveyardPosition.root,p)),S=new Ka(v,0,null,0);return S.insertionPosition=Z,b.splitPosition=b.splitPosition._getTransformedByMergeOperation(r),b.insertionPosition=Ka.getInsertionPosition(b.splitPosition),b.graveyardPosition=S.insertionPosition.clone(),b.graveyardPosition.stickiness="toNext",[S,b]}return b.splitPosition.hasSameParentAs(r.deletionPosition)&&!b.splitPosition.isAfter(r.deletionPosition)&&b.howMany--,b.splitPosition.hasSameParentAs(r.targetPosition)&&(b.howMany+=r.howMany),b.splitPosition=b.splitPosition._getTransformedByMergeOperation(r),b.insertionPosition=Ka.getInsertionPosition(b.splitPosition),b.graveyardPosition&&(b.graveyardPosition=b.graveyardPosition._getTransformedByMergeOperation(r)),[b]}),Na(Ka,Jo,(b,r,c)=>{const p=bi._createFromPositionAndShift(r.sourcePosition,r.howMany);if(b.graveyardPosition){const v=p.start.isEqual(b.graveyardPosition)||p.containsPosition(b.graveyardPosition);if(!c.bWasUndone&&v){const Z=b.splitPosition._getTransformedByMoveOperation(r),S=b.graveyardPosition._getTransformedByMoveOperation(r),I=S.path.slice();I.push(0);const V=new Ei(S.root,I);return[new Jo(Z,b.howMany,V,0)]}b.graveyardPosition=b.graveyardPosition._getTransformedByMoveOperation(r)}return b.splitPosition.hasSameParentAs(r.sourcePosition)&&p.containsPosition(b.splitPosition)?(b.howMany-=r.howMany-(b.splitPosition.offset-r.sourcePosition.offset),b.splitPosition.hasSameParentAs(r.targetPosition)&&b.splitPosition.offset{if(b.splitPosition.isEqual(r.splitPosition)){if(!b.graveyardPosition&&!r.graveyardPosition)return[new Es(0)];if(b.graveyardPosition&&r.graveyardPosition&&b.graveyardPosition.isEqual(r.graveyardPosition))return[new Es(0)];if("splitBefore"==c.abRelation)return b.howMany=0,b.graveyardPosition=b.graveyardPosition._getTransformedBySplitOperation(r),[b]}if(b.graveyardPosition&&r.graveyardPosition&&b.graveyardPosition.isEqual(r.graveyardPosition)){const p="$graveyard"==b.splitPosition.root.rootName,v="$graveyard"==r.splitPosition.root.rootName;if(v&&!p||(!p||v)&&c.aIsStrong){const S=[];return r.howMany&&S.push(new Jo(r.moveTargetPosition,r.howMany,r.splitPosition,0)),b.howMany&&S.push(new Jo(b.splitPosition,b.howMany,b.moveTargetPosition,0)),S}return[new Es(0)]}if(b.graveyardPosition&&(b.graveyardPosition=b.graveyardPosition._getTransformedBySplitOperation(r)),b.splitPosition.isEqual(r.insertionPosition)&&"splitBefore"==c.abRelation)return b.howMany++,[b];if(r.splitPosition.isEqual(b.insertionPosition)&&"splitBefore"==c.baRelation){const p=r.insertionPosition.path.slice();p.push(0);const v=new Ei(r.insertionPosition.root,p);return[b,new Jo(b.insertionPosition,1,v,0)]}return b.splitPosition.hasSameParentAs(r.splitPosition)&&b.splitPosition.offsetthis.clearStack())}refresh(){this.isEnabled=this._stack.length>0}addBatch(r){const c=this.editor.model.document.selection,p={ranges:c.hasOwnRange?Array.from(c.getRanges()):[],isBackward:c.isBackward};this._stack.push({batch:r,selection:p}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(r,c,p){const v=this.editor.model,Z=v.document,S=[],I=r.map(it=>it.getTransformedByOperations(p)),V=I.flat();for(const it of I){const dt=it.filter(le=>!Rp(le,V));Om(dt);const xt=dt.find(le=>le.root!=Z.graveyard);xt&&S.push(xt)}S.length&&v.change(it=>{it.setSelection(S,{backward:c})})}_undo(r,c){const p=this.editor.model,v=p.document;this._createdBatches.add(c);const Z=r.operations.slice().filter(S=>S.isDocumentOperation);Z.reverse();for(const S of Z){const V=Array.from(v.history.getOperations(S.baseVersion+1)),it=Fp([S.getReversed()],V,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(const dt of it)c.addOperation(dt),p.applyOperation(dt),v.history.setOperationAsUndone(S,dt)}}}function Om(b){b.sort((r,c)=>r.start.isBefore(c.start)?-1:1);for(let r=1;rc!==b&&c.containsRange(b,!0))}class Ch extends uf{execute(r=null){const c=r?this._stack.findIndex(Z=>Z.batch==r):this._stack.length-1,p=this._stack.splice(c,1)[0],v=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(v,()=>{this._undo(p.batch,v);const Z=this.editor.model.document.history.getOperations(p.batch.baseVersion);this._restoreSelection(p.selection.ranges,p.selection.isBackward,Z),this.fire("revert",p.batch,v)}),this.refresh()}}class yg extends uf{execute(){const r=this._stack.pop(),c=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(c,()=>{const v=this.editor.model.document.history.getOperations(r.batch.operations[r.batch.operations.length-1].baseVersion+1);this._restoreSelection(r.selection.ranges,r.selection.isBackward,v),this._undo(r.batch,c)}),this.refresh()}}class H_ extends Qi{static get pluginName(){return"UndoEditing"}constructor(r){super(r),this._batchRegistry=new WeakSet}init(){const r=this.editor;this._undoCommand=new Ch(r),this._redoCommand=new yg(r),r.commands.add("undo",this._undoCommand),r.commands.add("redo",this._redoCommand),this.listenTo(r.model,"applyOperation",(c,p)=>{const v=p[0];if(!v.isDocumentOperation)return;const Z=v.batch,S=this._redoCommand._createdBatches.has(Z),I=this._undoCommand._createdBatches.has(Z);this._batchRegistry.has(Z)||"transparent"==Z.type&&!S&&!I||(S?this._undoCommand.addBatch(Z):I||(this._undoCommand.addBatch(Z),this._redoCommand.clearStack()),this._batchRegistry.add(Z))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(c,p,v)=>{this._redoCommand.addBatch(v)}),r.keystrokes.set("CTRL+Z","undo"),r.keystrokes.set("CTRL+Y","redo"),r.keystrokes.set("CTRL+SHIFT+Z","redo")}}var Qo='',Y_='';class xh extends Qi{init(){const r=this.editor,c=r.locale,p=r.t,v="ltr"==c.uiLanguageDirection?Qo:Y_,Z="ltr"==c.uiLanguageDirection?Y_:Qo;this._addButton("undo",p("Undo"),"CTRL+Z",v),this._addButton("redo",p("Redo"),"CTRL+Y",Z)}_addButton(r,c,p,v){const Z=this.editor;Z.ui.componentFactory.add(r,S=>{const I=Z.commands.get(r),V=new Hr(S);return V.set({label:c,icon:v,keystroke:p,tooltip:!0}),V.bind("isEnabled").to(I,"isEnabled"),this.listenTo(V,"execute",()=>{Z.execute(r),Z.editing.view.focus()}),V})}}class df extends Qi{static get requires(){return[H_,xh]}static get pluginName(){return"Undo"}}class Lm{constructor(r){this.context=r}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}Si(Lm,Ut);class pf extends Lm{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new Ra({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(r){if("string"!=typeof r)throw new En.b("pendingactions-add-invalid-message: The message must be a string.",this);const c=Object.create(Ut);return c.set("message",r),this._actions.add(c),this.hasAny=!0,c}remove(r){this._actions.remove(r),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}class z_{constructor(){const r=new window.FileReader;this._reader=r,this._data=void 0,this.set("loaded",0),r.onprogress=c=>{this.loaded=c.loaded}}get error(){return this._reader.error}get data(){return this._data}read(r){const c=this._reader;return this.total=r.size,new Promise((p,v)=>{c.onload=()=>{const Z=c.result;this._data=Z,p(Z)},c.onerror=()=>{v("error")},c.onabort=()=>{v("aborted")},this._reader.readAsDataURL(r)})}abort(){this._reader.abort()}}Si(z_,Ut);class il extends Qi{static get pluginName(){return"FileRepository"}static get requires(){return[pf]}init(){this.loaders=new Ra,this.loaders.on("add",()=>this._updatePendingAction()),this.loaders.on("remove",()=>this._updatePendingAction()),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(r,c)=>c?r/c*100:0)}getLoader(r){return this._loadersMap.get(r)||null}createLoader(r){if(!this.createUploadAdapter)return console.warn(Object(En.a)("filerepository-no-upload-adapter: Upload adapter is not defined.")),null;const c=new qm(Promise.resolve(r),this.createUploadAdapter);return this.loaders.add(c),this._loadersMap.set(r,c),r instanceof Promise&&c.file.then(p=>{this._loadersMap.set(p,c)}).catch(()=>{}),c.on("change:uploaded",()=>{let p=0;for(const v of this.loaders)p+=v.uploaded;this.uploaded=p}),c.on("change:uploadTotal",()=>{let p=0;for(const v of this.loaders)v.uploadTotal&&(p+=v.uploadTotal);this.uploadTotal=p}),c}destroyLoader(r){const c=r instanceof qm?r:this.getLoader(r);c._destroy(),this.loaders.remove(c),this._loadersMap.forEach((p,v)=>{p===c&&this._loadersMap.delete(v)})}_updatePendingAction(){const r=this.editor.plugins.get(pf);if(this.loaders.length){if(!this._pendingAction){const c=this.editor.t,p=v=>`${c("Upload in progress")} ${parseInt(v)}%.`;this._pendingAction=r.add(p(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",p)}}else r.remove(this._pendingAction),this._pendingAction=null}}Si(il,Ut);class qm{constructor(r,c){this.id=Pa(),this._filePromiseWrapper=this._createFilePromiseWrapper(r),this._adapter=c(this),this._reader=new z_,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(p,v)=>v?p/v*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(r=>this._filePromiseWrapper?r:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new En.b("filerepository-read-wrong-status: You cannot call read if the status is different than idle.",this);return this.status="reading",this.file.then(r=>this._reader.read(r)).then(r=>{if("reading"!==this.status)throw this.status;return this.status="idle",r}).catch(r=>{throw"aborted"===r?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:r)})}upload(){if("idle"!=this.status)throw new En.b("filerepository-upload-wrong-status: You cannot call upload if the status is different than idle.",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(r=>(this.uploadResponse=r,this.status="idle",r)).catch(r=>{throw"aborted"===this.status?"aborted":(this.status="error",r)})}abort(){const r=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==r?this._reader.abort():"uploading"==r&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(r){const c={};return c.promise=new Promise((p,v)=>{c.rejecter=v,c.isFulfilled=!1,r.then(Z=>{c.isFulfilled=!0,p(Z)}).catch(Z=>{c.isFulfilled=!0,v(Z)})}),c}}Si(qm,Ut);class mf extends Qi{static get requires(){return[il]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const r=this.editor.config.get("ckfinder.uploadUrl");r&&(this.editor.plugins.get(il).createUploadAdapter=c=>new yh(c,r,this.editor.t))}}class yh{constructor(r,c,p){this.loader=r,this.url=c,this.t=p}upload(){return this.loader.file.then(r=>new Promise((c,p)=>{this._initRequest(),this._initListeners(c,p,r),this._sendRequest(r)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const r=this.xhr=new XMLHttpRequest;r.open("POST",this.url,!0),r.responseType="json"}_initListeners(r,c,p){const v=this.xhr,Z=this.loader,S=(0,this.t)("Cannot upload file:")+` ${p.name}.`;v.addEventListener("error",()=>c(S)),v.addEventListener("abort",()=>c()),v.addEventListener("load",()=>{const I=v.response;if(!I||!I.uploaded)return c(I&&I.error&&I.error.message?I.error.message:S);r({default:I.url})}),v.upload&&v.upload.addEventListener("progress",I=>{I.lengthComputable&&(Z.uploadTotal=I.total,Z.uploaded=I.loaded)})}_sendRequest(r){const c=new FormData;c.append("upload",r),c.append("ckCsrfToken",function Hp(){let b=function(p){p=p.toLowerCase();const v=document.cookie.split(";");for(const Z of v){const S=Z.split("=");if(decodeURIComponent(S[0].trim().toLowerCase())===p)return decodeURIComponent(S[1])}return null}("ckCsrfToken");var c;return b&&40==b.length||(b=function(p){let v="";const Z=new Uint8Array(40);window.crypto.getRandomValues(Z);for(let S=0;S.5?I.toUpperCase():I}return v}(),c=b,document.cookie=encodeURIComponent("ckCsrfToken")+"="+encodeURIComponent(c)+";path=/"),b}()),this.xhr.send(c)}}function zc(b){const r=b.next();return r.done?null:r.value}function Ac(b,r,c,p){let v,Z=null;"function"==typeof p?v=p:(Z=b.commands.get(p),v=()=>{b.execute(p)}),b.model.document.on("change:data",(S,I)=>{if(Z&&!Z.isEnabled||!r.isEnabled)return;const V=zc(b.model.document.selection.getRanges());if(!V.isCollapsed||"transparent"==I.type)return;const it=Array.from(b.model.document.differ.getChanges()),dt=it[0];if(1!=it.length||"insert"!==dt.type||"$text"!=dt.name||1!=dt.length)return;const xt=dt.position.parent;if(xt.is("element","codeBlock")||Z&&!0===Z.value)return;const le=xt.getChild(0),Ie=b.model.createRangeOn(le);if(!Ie.containsRange(V)&&!V.end.isEqual(Ie.end))return;const rn=c.exec(le.data.substr(0,V.end.offset));rn&&b.model.enqueueChange(vn=>{const wn=vn.createPositionAt(xt,0),qn=vn.createPositionAt(xt,rn[0].length),mi=new o1(wn,qn);!1!==v({match:rn})&&vn.remove(mi),mi.detach()})})}function ol(b,r,c,p){let v,Z;c instanceof RegExp?v=c:Z=c,Z=Z||(S=>{let I;const V=[],it=[];for(;null!==(I=v.exec(S))&&!(I&&I.length<4);){let{index:dt,1:xt,2:le,3:Ie}=I;dt+=I[0].length-(xt+le+Ie).length;const wn=[dt+xt.length+le.length,dt+xt.length+le.length+Ie.length];V.push([dt,dt+xt.length]),V.push(wn),it.push([dt+xt.length,dt+xt.length+le.length])}return{remove:V,format:it}}),b.model.document.on("change:data",(S,I)=>{if("transparent"==I.type||!r.isEnabled)return;const V=b.model,it=V.document.selection;if(!it.isCollapsed)return;const dt=Array.from(V.document.differ.getChanges()),xt=dt[0];if(1!=dt.length||"insert"!==xt.type||"$text"!=xt.name||1!=xt.length)return;const le=it.focus,Ie=le.parent,{text:rn,range:vn}=function(xi,Vi){let Po=xi.start;return{text:Array.from(xi.getItems()).reduce((Yr,Ba)=>!Ba.is("$text")&&!Ba.is("$textProxy")||Ba.getAttribute("code")?(Po=Vi.createPositionAfter(Ba),""):Yr+Ba.data,""),range:Vi.createRange(Po,xi.end)}}(V.createRange(V.createPositionAt(Ie,0),le),V),wn=Z(rn),qn=Th(vn.start,wn.format,V),mi=Th(vn.start,wn.remove,V);qn.length&&mi.length&&V.enqueueChange(xi=>{if(!1!==p(xi,qn))for(const Vi of mi.reverse())xi.remove(Vi)})})}function Th(b,r,c){return r.filter(p=>void 0!==p[0]&&void 0!==p[1]).map(p=>c.createRange(b.getShiftedBy(p[0]),b.getShiftedBy(p[1])))}function bu(b,r){return(c,p)=>{if(!b.commands.get(r).isEnabled)return!1;const v=b.model.schema.getValidRanges(p,r);for(const Z of v)c.setAttribute(r,!0,Z);c.removeSelectionAttribute(r)}}class Yo extends da{constructor(r,c){super(r),this.attributeKey=c}refresh(){const r=this.editor.model,c=r.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=r.schema.checkAttributeInSelection(c.selection,this.attributeKey)}execute(r={}){const c=this.editor.model,p=c.document.selection,v=void 0===r.forceValue?!this.value:r.forceValue;c.change(Z=>{if(p.isCollapsed)v?Z.setSelectionAttribute(this.attributeKey,!0):Z.removeSelectionAttribute(this.attributeKey);else{const S=c.schema.getValidRanges(p.getRanges(),this.attributeKey);for(const I of S)v?Z.setAttribute(this.attributeKey,v,I):Z.removeAttribute(this.attributeKey,I)}})}_getValueFromFirstAllowedNode(){const r=this.editor.model,c=r.schema,p=r.document.selection;if(p.isCollapsed)return p.hasAttribute(this.attributeKey);for(const v of p.getRanges())for(const Z of v.getItems())if(c.checkAttribute(Z,this.attributeKey))return Z.hasAttribute(this.attributeKey);return!1}}class _f extends Qi{static get pluginName(){return"BoldEditing"}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:"bold"}),r.model.schema.setAttributeProperties("bold",{isFormatting:!0,copyOnEnter:!0}),r.conversion.attributeToElement({model:"bold",view:"strong",upcastAlso:["b",c=>{const p=c.getStyle("font-weight");return p?"bold"==p||Number(p)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),r.commands.add("bold",new Yo(r,"bold")),r.keystrokes.set("CTRL+B","bold")}}class Wl extends Qi{init(){const r=this.editor,c=r.t;r.ui.componentFactory.add("bold",p=>{const v=r.commands.get("bold"),Z=new Hr(p);return Z.set({label:c("Bold"),icon:'',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),Z.bind("isOn","isEnabled").to(v,"value","isEnabled"),this.listenTo(Z,"execute",()=>{r.execute("bold"),r.editing.view.focus()}),Z})}}class Ns extends Qi{static get pluginName(){return"ItalicEditing"}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:"italic"}),r.model.schema.setAttributeProperties("italic",{isFormatting:!0,copyOnEnter:!0}),r.conversion.attributeToElement({model:"italic",view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),r.commands.add("italic",new Yo(r,"italic")),r.keystrokes.set("CTRL+I","italic")}}class ff extends Qi{init(){const r=this.editor,c=r.t;r.ui.componentFactory.add("italic",p=>{const v=r.commands.get("italic"),Z=new Hr(p);return Z.set({label:c("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),Z.bind("isOn","isEnabled").to(v,"value","isEnabled"),this.listenTo(Z,"execute",()=>{r.execute("italic"),r.editing.view.focus()}),Z})}}class y1 extends da{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(r={}){const c=this.editor.model,p=c.schema,Z=Array.from(c.document.selection.getSelectedBlocks()),S=void 0===r.forceValue?!this.value:r.forceValue;c.change(I=>{if(S){const V=Z.filter(it=>Yp(it)||hf(p,it));this._applyQuote(I,V)}else this._removeQuote(I,Z.filter(Yp))})}_getValue(){const r=zc(this.editor.model.document.selection.getSelectedBlocks());return!(!r||!Yp(r))}_checkEnabled(){if(this.value)return!0;const c=this.editor.model.schema,p=zc(this.editor.model.document.selection.getSelectedBlocks());return!!p&&hf(c,p)}_removeQuote(r,c){Ah(r,c).reverse().forEach(p=>{if(p.start.isAtStart&&p.end.isAtEnd)return void r.unwrap(p.start.parent);if(p.start.isAtStart){const Z=r.createPositionBefore(p.start.parent);return void r.move(p,Z)}p.end.isAtEnd||r.split(p.end);const v=r.createPositionAfter(p.end.parent);r.move(p,v)})}_applyQuote(r,c){const p=[];Ah(r,c).reverse().forEach(v=>{let Z=Yp(v.start);Z||(Z=r.createElement("blockQuote"),r.wrap(v,Z)),p.push(Z)}),p.reverse().reduce((v,Z)=>v.nextSibling==Z?(r.merge(r.createPositionAfter(v)),v):Z)}}function Yp(b){return"blockQuote"==b.parent.name?b.parent:null}function Ah(b,r){let c,p=0;const v=[];for(;p{if(p.endsWith("blockQuote")&&"blockQuote"==v.name)return!1}),r.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),r.model.document.registerPostFixer(p=>{const v=r.model.document.differ.getChanges();for(const Z of v)if("insert"==Z.type){const S=Z.position.nodeAfter;if(!S)continue;if(S.is("element","blockQuote")&&S.isEmpty)return p.remove(S),!0;if(S.is("element","blockQuote")&&!c.checkChild(Z.position,S))return p.unwrap(S),!0;if(S.is("element")){const I=p.createRangeIn(S);for(const V of I.getItems())if(V.is("element","blockQuote")&&!c.checkChild(p.createPositionBefore(V),V))return p.unwrap(V),!0}}else if("remove"==Z.type){const S=Z.position.parent;if(S.is("element","blockQuote")&&S.isEmpty)return p.remove(S),!0}return!1})}afterInit(){const r=this.editor.commands.get("blockQuote");this.listenTo(this.editor.editing.view.document,"enter",(c,p)=>{const v=this.editor.model.document,Z=v.selection.getLastPosition().parent;v.selection.isCollapsed&&Z.isEmpty&&r.value&&(this.editor.execute("blockQuote"),this.editor.editing.view.scrollToTheSelection(),p.preventDefault(),c.stop())})}}u(43);class zp extends Qi{init(){const r=this.editor,c=r.t;r.ui.componentFactory.add("blockQuote",p=>{const v=r.commands.get("blockQuote"),Z=new Hr(p);return Z.set({label:c("Block quote"),icon:'',tooltip:!0,isToggleable:!0}),Z.bind("isOn","isEnabled").to(v,"value","isEnabled"),this.listenTo(Z,"execute",()=>{r.execute("blockQuote"),r.editing.view.focus()}),Z})}}class Cd extends Qi{static get pluginName(){return"CKFinderUI"}init(){const r=this.editor,p=r.t;r.ui.componentFactory.add("ckfinder",v=>{const Z=r.commands.get("ckfinder"),S=new Hr(v);return S.set({label:p("Insert image or file"),icon:'',tooltip:!0}),S.bind("isEnabled").to(Z),S.on("execute",()=>{r.execute("ckfinder"),r.editing.view.focus()}),S})}}class Cu extends ra{observe(r){this.listenTo(r,"load",(c,p)=>{"IMG"==p.target.tagName&&this._fireEvents(p)},{useCapture:!0})}_fireEvents(r){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",r))}}class Uc{constructor(){this._stack=[]}add(r,c){const p=this._stack,v=p[0];this._insertDescriptor(r);const Z=p[0];v===Z||Em(v,Z)||this.fire("change:top",{oldDescriptor:v,newDescriptor:Z,writer:c})}remove(r,c){const p=this._stack,v=p[0];this._removeDescriptor(r);const Z=p[0];v===Z||Em(v,Z)||this.fire("change:top",{oldDescriptor:v,newDescriptor:Z,writer:c})}_insertDescriptor(r){const c=this._stack,p=c.findIndex(Z=>Z.id===r.id);if(Em(r,c[p]))return;p>-1&&c.splice(p,1);let v=0;for(;c[v]&&ep(c[v],r);)v++;c.splice(v,0,r)}_removeDescriptor(r){const c=this._stack,p=c.findIndex(v=>v.id===r);p>-1&&c.splice(p,1)}}function Em(b,r){return b&&r&&b.priority==r.priority&&yr(b.classes)==yr(r.classes)}function ep(b,r){return b.priority>r.priority||!(b.priorityyr(r.classes)}function yr(b){return Array.isArray(b)?b.sort().join(","):b}Si(Uc,Fo),u(45);const fr=Q1("px"),gf=pt.document.body;class pa extends Oo{constructor(r){super(r);const c=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class"),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",c.to("position",p=>"ck-balloon-panel_"+p),c.if("isVisible","ck-balloon-panel_visible"),c.if("withArrow","ck-balloon-panel_with-arrow"),c.to("class")],style:{top:c.to("top",fr),left:c.to("left",fr)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(r){this.show();const c=pa.defaultPositions,p=Object.assign({},{element:this.element,positions:[c.southArrowNorth,c.southArrowNorthMiddleWest,c.southArrowNorthMiddleEast,c.southArrowNorthWest,c.southArrowNorthEast,c.northArrowSouth,c.northArrowSouthMiddleWest,c.northArrowSouthMiddleEast,c.northArrowSouthWest,c.northArrowSouthEast],limiter:gf,fitInViewport:!0},r),v=pa._getOptimalPosition(p),Z=parseInt(v.left),S=parseInt(v.top);Object.assign(this,{top:S,left:Z,position:v.name})}pin(r){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(r):this._stopPinning()},this._startPinning(r),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(r){this.attachTo(r);const c=T1(r.target),p=r.limiter?T1(r.limiter):gf;this.listenTo(pt.document,"scroll",(v,Z)=>{const S=Z.target,I=c&&S.contains(c),V=p&&S.contains(p);!I&&!V&&c&&p||this.attachTo(r)},{useCapture:!0}),this.listenTo(pt.window,"resize",()=>{this.attachTo(r)})}_stopPinning(){this.stopListening(pt.document,"scroll"),this.stopListening(pt.window,"resize")}}function T1(b){return Ur(b)?b:el(b)?b.commonAncestorContainer:"function"==typeof b?T1(b()):null}function Zc(b,r){return b.top-r.height-pa.arrowVerticalOffset}function Vc(b){return b.bottom+pa.arrowVerticalOffset}function A1(b,r,c){return b&&$l(b)&&!c.isInline(r)}function U1(b){return b.getAttribute("widget-type-around")}function $l(b){return!!b.is("element")&&!!b.getCustomProperty("widget")}function xu(b,r,c={}){if(!b.is("containerElement"))throw new En.b("widget-to-widget-wrong-element-type: The element passed to toWidget() must be a container element instance.",null,{element:b});return r.setAttribute("contenteditable","false",b),r.addClass("ck-widget",b),r.setCustomProperty("widget",!0,b),b.getFillerOffset=Dl,c.label&&r.setCustomProperty("widgetLabel",c.label,b),c.hasSelectionHandle&&function(v,Z){const S=Z.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(I){const V=this.toDomElement(I),it=new b1;return it.set("content",''),it.render(),V.appendChild(it.element),V});Z.insert(Z.createPositionAt(v,0),S),Z.addClass(["ck-widget_with-selection-handle"],v)}(b,r),Nm(b,r,(v,Z,S)=>S.addClass(p(Z.classes),v),(v,Z,S)=>S.removeClass(p(Z.classes),v)),b;function p(v){return Array.isArray(v)?v:[v]}}function Nm(b,r,c,p){const v=new Uc;v.on("change:top",(Z,S)=>{S.oldDescriptor&&p(b,S.oldDescriptor,S.writer),S.newDescriptor&&c(b,S.newDescriptor,S.writer)}),r.setCustomProperty("addHighlight",(Z,S,I)=>v.add(S,I),b),r.setCustomProperty("removeHighlight",(Z,S,I)=>v.remove(S,I),b)}function Tg(b){const r=b.getCustomProperty("widgetLabel");return r?"function"==typeof r?r():r:""}function $u(b,r){return r.addClass(["ck-editor__editable","ck-editor__nested-editable"],b),r.setAttribute("contenteditable",b.isReadOnly?"false":"true",b),b.on("change:isReadOnly",(c,p,v)=>{r.setAttribute("contenteditable",v?"false":"true",b)}),b.on("change:isFocused",(c,p,v)=>{v?r.addClass("ck-editor__nested-editable_focused",b):r.removeClass("ck-editor__nested-editable_focused",b)}),b}function xd(b,r){const c=b.getSelectedElement();if(c){const v=U1(b);if(v)return r.createPositionAt(c,v);if(r.schema.isBlock(c))return r.createPositionAfter(c)}const p=b.getSelectedBlocks().next().value;if(p){if(p.isEmpty)return r.createPositionAt(p,0);const v=r.createPositionAfter(p);return b.focus.isTouching(v)?v:r.createPositionBefore(p)}return b.focus}function wc(b,r){const c=new cr(pt.window),p=c.getIntersection(b),v=r.height+pa.arrowVerticalOffset;if(b.top-v>c.top||b.bottom+v!v.is("element","image"))}function Bc(b){const r=[];for(const c of b.getChildren())r.push(c),c.is("element")&&r.push(...c.getChildren());return r.find(c=>c.is("element","img"))}function Fm(b){return c=>{c.on(`attribute:${b}:image`,r)};function r(c,p,v){if(!v.consumable.consume(p.item,c.name))return;const Z=v.writer,S=Bc(v.mapper.toViewElement(p.item));Z.setAttribute(p.attributeKey,p.attributeNewValue||"",S)}}pa.arrowHorizontalOffset=25,pa.arrowVerticalOffset=10,pa._getOptimalPosition=q_,pa.defaultPositions={northWestArrowSouthWest:(b,r)=>({top:Zc(b,r),left:b.left-pa.arrowHorizontalOffset,name:"arrow_sw"}),northWestArrowSouthMiddleWest:(b,r)=>({top:Zc(b,r),left:b.left-.25*r.width-pa.arrowHorizontalOffset,name:"arrow_smw"}),northWestArrowSouth:(b,r)=>({top:Zc(b,r),left:b.left-r.width/2,name:"arrow_s"}),northWestArrowSouthMiddleEast:(b,r)=>({top:Zc(b,r),left:b.left-.75*r.width+pa.arrowHorizontalOffset,name:"arrow_sme"}),northWestArrowSouthEast:(b,r)=>({top:Zc(b,r),left:b.left-r.width+pa.arrowHorizontalOffset,name:"arrow_se"}),northArrowSouthWest:(b,r)=>({top:Zc(b,r),left:b.left+b.width/2-pa.arrowHorizontalOffset,name:"arrow_sw"}),northArrowSouthMiddleWest:(b,r)=>({top:Zc(b,r),left:b.left+b.width/2-.25*r.width-pa.arrowHorizontalOffset,name:"arrow_smw"}),northArrowSouth:(b,r)=>({top:Zc(b,r),left:b.left+b.width/2-r.width/2,name:"arrow_s"}),northArrowSouthMiddleEast:(b,r)=>({top:Zc(b,r),left:b.left+b.width/2-.75*r.width+pa.arrowHorizontalOffset,name:"arrow_sme"}),northArrowSouthEast:(b,r)=>({top:Zc(b,r),left:b.left+b.width/2-r.width+pa.arrowHorizontalOffset,name:"arrow_se"}),northEastArrowSouthWest:(b,r)=>({top:Zc(b,r),left:b.right-pa.arrowHorizontalOffset,name:"arrow_sw"}),northEastArrowSouthMiddleWest:(b,r)=>({top:Zc(b,r),left:b.right-.25*r.width-pa.arrowHorizontalOffset,name:"arrow_smw"}),northEastArrowSouth:(b,r)=>({top:Zc(b,r),left:b.right-r.width/2,name:"arrow_s"}),northEastArrowSouthMiddleEast:(b,r)=>({top:Zc(b,r),left:b.right-.75*r.width+pa.arrowHorizontalOffset,name:"arrow_sme"}),northEastArrowSouthEast:(b,r)=>({top:Zc(b,r),left:b.right-r.width+pa.arrowHorizontalOffset,name:"arrow_se"}),southWestArrowNorthWest:(b,r)=>({top:Vc(b),left:b.left-pa.arrowHorizontalOffset,name:"arrow_nw"}),southWestArrowNorthMiddleWest:(b,r)=>({top:Vc(b),left:b.left-.25*r.width-pa.arrowHorizontalOffset,name:"arrow_nmw"}),southWestArrowNorth:(b,r)=>({top:Vc(b),left:b.left-r.width/2,name:"arrow_n"}),southWestArrowNorthMiddleEast:(b,r)=>({top:Vc(b),left:b.left-.75*r.width+pa.arrowHorizontalOffset,name:"arrow_nme"}),southWestArrowNorthEast:(b,r)=>({top:Vc(b),left:b.left-r.width+pa.arrowHorizontalOffset,name:"arrow_ne"}),southArrowNorthWest:(b,r)=>({top:Vc(b),left:b.left+b.width/2-pa.arrowHorizontalOffset,name:"arrow_nw"}),southArrowNorthMiddleWest:(b,r)=>({top:Vc(b),left:b.left+b.width/2-.25*r.width-pa.arrowHorizontalOffset,name:"arrow_nmw"}),southArrowNorth:(b,r)=>({top:Vc(b),left:b.left+b.width/2-r.width/2,name:"arrow_n"}),southArrowNorthMiddleEast:(b,r)=>({top:Vc(b),left:b.left+b.width/2-.75*r.width+pa.arrowHorizontalOffset,name:"arrow_nme"}),southArrowNorthEast:(b,r)=>({top:Vc(b),left:b.left+b.width/2-r.width+pa.arrowHorizontalOffset,name:"arrow_ne"}),southEastArrowNorthWest:(b,r)=>({top:Vc(b),left:b.right-pa.arrowHorizontalOffset,name:"arrow_nw"}),southEastArrowNorthMiddleWest:(b,r)=>({top:Vc(b),left:b.right-.25*r.width-pa.arrowHorizontalOffset,name:"arrow_nmw"}),southEastArrowNorth:(b,r)=>({top:Vc(b),left:b.right-r.width/2,name:"arrow_n"}),southEastArrowNorthMiddleEast:(b,r)=>({top:Vc(b),left:b.right-.75*r.width+pa.arrowHorizontalOffset,name:"arrow_nme"}),southEastArrowNorthEast:(b,r)=>({top:Vc(b),left:b.right-r.width+pa.arrowHorizontalOffset,name:"arrow_ne"})};class Ku extends da{refresh(){this.isEnabled=np(this.editor.model)}execute(r){const c=this.editor.model;c.change(p=>{const v=Array.isArray(r.source)?r.source:[r.source];for(const Z of v)vf(p,c,{src:Z})})}}class $o extends Qi{static get pluginName(){return"ImageEditing"}init(){const r=this.editor,c=r.model.schema,p=r.t,v=r.conversion;r.editing.view.addObserver(Cu),c.register("image",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),v.for("dataDowncast").elementToElement({model:"image",view:(Z,S)=>Uh(S)}),v.for("editingDowncast").elementToElement({model:"image",view:(Z,S)=>{return I=Uh(S),V=S,it=p("image widget"),V.setCustomProperty("image",!0,I),xu(I,V,{label:function(){const dt=Bc(I).getAttribute("alt");return dt?`${dt} ${it}`:it}});var I,V,it}}),v.for("downcast").add(Fm("src")).add(Fm("alt")).add(function(){return S=>{S.on("attribute:srcset:image",Z)};function Z(S,I,V){if(!V.consumable.consume(I.item,S.name))return;const it=V.writer,dt=Bc(V.mapper.toViewElement(I.item));if(null===I.attributeNewValue){const xt=I.attributeOldValue;xt.data&&(it.removeAttribute("srcset",dt),it.removeAttribute("sizes",dt),xt.width&&it.removeAttribute("width",dt))}else{const xt=I.attributeNewValue;xt.data&&(it.setAttribute("srcset",xt.data,dt),it.setAttribute("sizes","100vw",dt),xt.width&&it.setAttribute("width",xt.width,dt))}}}()),v.for("upcast").elementToElement({view:{name:"img",attributes:{src:!0}},model:(Z,S)=>S.createElement("image",{src:Z.getAttribute("src")})}).attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:Z=>{const S={data:Z.getAttribute("srcset")};return Z.hasAttribute("width")&&(S.width=Z.getAttribute("width")),S}}}).add(function(){return S=>{S.on("element:figure",Z)};function Z(S,I,V){if(!V.consumable.test(I.viewItem,{name:!0,classes:"image"}))return;const it=Bc(I.viewItem);if(!it||!it.hasAttribute("src")||!V.consumable.test(it,{name:!0}))return;const dt=V.convertItem(it,I.modelCursor),xt=zc(dt.modelRange.getItems());xt&&(V.convertChildren(I.viewItem,V.writer.createPositionAt(xt,0)),I.modelRange=dt.modelRange,I.modelCursor=dt.modelCursor)}}()),r.commands.add("imageInsert",new Ku(r))}}function Uh(b){const r=b.createEmptyElement("img"),c=b.createContainerElement("figure",{class:"image"});return b.insert(b.createPositionAt(c,0),r),c}class al extends dd{constructor(r){super(r),this.domEventType="mousedown"}onDomEvent(r){this.fire(r.type,r)}}class Zh extends Qi{static get pluginName(){return"TwoStepCaretMovement"}constructor(r){super(r),this.attributes=new Set,this._overrideUid=null}init(){const r=this.editor,v=r.locale,Z=r.model.document.selection;this.listenTo(r.editing.view.document,"keydown",(S,I)=>{if(!Z.isCollapsed||I.shiftKey||I.altKey||I.ctrlKey)return;const V=I.keyCode==mo.arrowright,it=I.keyCode==mo.arrowleft;if(!V&&!it)return;const dt=v.contentLanguageDirection;let xt=!1;xt="ltr"===dt&&V||"rtl"===dt&&it?this._handleForwardMovement(I):this._handleBackwardMovement(I),!0===xt&&S.stop()},{priority:ar.get("high")+1}),this._isNextGravityRestorationSkipped=!1,this.listenTo(Z,"change:range",(S,I)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!I.directChange&&Xu(Z.getFirstPosition(),this.attributes)||this._restoreGravity())})}registerAttribute(r){this.attributes.add(r)}_handleForwardMovement(r){const c=this.attributes,p=this.editor.model.document.selection,v=p.getFirstPosition();return!this._isGravityOverridden&&(!v.isAtStart||!Jd(p,c))&&(Xu(v,c)?(Mc(r),this._overrideGravity(),!0):void 0)}_handleBackwardMovement(r){const c=this.attributes,p=this.editor.model,v=p.document.selection,Z=v.getFirstPosition();return this._isGravityOverridden?(Mc(r),this._restoreGravity(),ka(p,c,Z),!0):Z.isAtStart?!!Jd(v,c)&&(Mc(r),ka(p,c,Z),!0):(I=c,Xu(Z.getShiftedBy(-1),I)?Z.isAtEnd&&!Jd(v,c)&&Xu(Z,c)?(Mc(r),ka(p,c,Z),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0);var I}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(r=>r.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(r=>{r.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function Jd(b,r){for(const c of r)if(b.hasAttribute(c))return!0;return!1}function ka(b,r,c){const p=c.nodeBefore;b.change(v=>{p?v.setSelectionAttribute(p.getAttributes()):v.removeSelectionAttribute(r)})}function Mc(b){b.preventDefault()}function Xu(b,r){const{nodeBefore:c,nodeAfter:p}=b;for(const v of r){const Z=c?c.getAttribute(v):void 0;if((p?p.getAttribute(v):void 0)!==Z)return!0}return!1}function yu(b,r,c,p){return p.createRange(wh(b,r,c,!0,p),wh(b,r,c,!1,p))}function wh(b,r,c,p,v){let Z=b.textNode||(p?b.nodeBefore:b.nodeAfter),S=null;for(;Z&&Z.getAttribute(r)==c;)S=Z,Z=p?Z.previousSibling:Z.nextSibling;return S?v.createPositionAt(S,p?"before":"after"):b}class V_{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(r){Array.isArray(r)?r.forEach(c=>this._definitions.add(c)):this._definitions.add(r)}getDispatcher(){return r=>{r.on("attribute:linkHref",(c,p,v)=>{if(!v.consumable.test(p.item,"attribute:linkHref"))return;const Z=v.writer,S=Z.document.selection;for(const I of this._definitions){const V=Z.createAttributeElement("a",I.attributes,{priority:5});Z.setCustomProperty("link",!0,V),I.callback(p.attributeNewValue)?p.item.is("selection")?Z.wrap(S.getFirstRange(),V):Z.wrap(v.mapper.toViewRange(p.range),V):Z.unwrap(v.mapper.toViewRange(p.range),V)}},{priority:"high"})}}getDispatcherForLinkedImage(){return r=>{r.on("attribute:linkHref:image",(c,p,v)=>{const Z=v.mapper.toViewElement(p.item),S=Array.from(Z.getChildren()).find(I=>"a"===I.name);for(const I of this._definitions){const V=aa(I.attributes);if(I.callback(p.attributeNewValue))for(const[it,dt]of V)"class"===it?v.writer.addClass(dt,S):v.writer.setAttribute(it,dt,S);else for(const[it,dt]of V)"class"===it?v.writer.removeClass(dt,S):v.writer.removeAttribute(it,S)}})}}}var Mh=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Dh=function(b){return Mh.test(b)},J_="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ph="\\ud83c[\\udffb-\\udfff]",Q_="[^\\ud800-\\udfff]",G_="(?:\\ud83c[\\udde6-\\uddff]){2}",ip="[\\ud800-\\udbff][\\udc00-\\udfff]",op="(?:"+J_+"|"+Ph+")?",Im="[\\ufe0e\\ufe0f]?"+op+"(?:\\u200d(?:"+[Q_,G_,ip].join("|")+")[\\ufe0e\\ufe0f]?"+op+")*",Sh="(?:"+[Q_+J_+"?",J_,G_,ip,"[\\ud800-\\udfff]"].join("|")+")",kh=RegExp(Ph+"(?="+Ph+")|"+Sh+Im,"g"),w3=function(b){return Dh(b)?function(b){return b.match(kh)||[]}(b):function(b){return b.split("")}(b)},Ug=function(r){r=su(r);var c=Dh(r)?w3(r):void 0,p=c?c[0]:r.charAt(0),v=c?function(b,r,c){var p=b.length;return c=void 0===c?p:c,!r&&c>=p?b:Ls(b,r,c)}(c,1).join(""):r.slice(1);return p.toUpperCase()+v};const Dc=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Xl=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function Oh(b,r){const c=r.createAttributeElement("a",{href:b},{priority:5});return r.setCustomProperty("link",!0,c),c}function j_(b){return function(r){return r.replace(Dc,"").match(Xl)}(b=String(b))?b:"#"}function yd(b,r){return!!b&&b.is("element","image")&&r.checkAttribute("image","linkHref")}class W_ extends da{constructor(r){super(r),this.manualDecorators=new Ra,this.automaticDecorators=new V_}restoreManualDecoratorStates(){for(const r of this.manualDecorators)r.value=this._getDecoratorStateFromModel(r.id)}refresh(){const r=this.editor.model,c=r.document,p=zc(c.selection.getSelectedBlocks());yd(p,r.schema)?(this.value=p.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttribute(p,"linkHref")):(this.value=c.selection.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttributeInSelection(c.selection,"linkHref"));for(const v of this.manualDecorators)v.value=this._getDecoratorStateFromModel(v.id)}execute(r,c={}){const p=this.editor.model,v=p.document.selection,Z=[],S=[];for(const I in c)c[I]?Z.push(I):S.push(I);p.change(I=>{if(v.isCollapsed){const V=v.getFirstPosition();if(v.hasAttribute("linkHref")){const it=yu(V,"linkHref",v.getAttribute("linkHref"),p);I.setAttribute("linkHref",r,it),Z.forEach(dt=>{I.setAttribute(dt,!0,it)}),S.forEach(dt=>{I.removeAttribute(dt,it)}),I.setSelection(I.createPositionAfter(it.end.nodeBefore))}else if(""!==r){const it=aa(v.getAttributes());it.set("linkHref",r),Z.forEach(xt=>{it.set(xt,!0)});const dt=I.createText(r,it);p.insertContent(dt,V),I.setSelection(I.createPositionAfter(dt))}["linkHref",...Z,...S].forEach(it=>{I.removeSelectionAttribute(it)})}else{const V=p.schema.getValidRanges(v.getRanges(),"linkHref"),it=[];for(const xt of v.getSelectedBlocks())p.schema.checkAttribute(xt,"linkHref")&&it.push(I.createRangeOn(xt));const dt=it.slice();for(const xt of V)this._isRangeToUpdate(xt,it)&&dt.push(xt);for(const xt of dt)I.setAttribute("linkHref",r,xt),Z.forEach(le=>{I.setAttribute(le,!0,xt)}),S.forEach(le=>{I.removeAttribute(le,xt)})}})}_getDecoratorStateFromModel(r){const c=this.editor.model,p=c.document,v=zc(p.selection.getSelectedBlocks());return yd(v,c.schema)?v.getAttribute(r):p.selection.getAttribute(r)}_isRangeToUpdate(r,c){for(const p of c)if(p.containsRange(r))return!1;return!0}}class Cf extends da{refresh(){const r=this.editor.model,c=r.document,p=zc(c.selection.getSelectedBlocks());this.isEnabled=yd(p,r.schema)?r.schema.checkAttribute(p,"linkHref"):r.schema.checkAttributeInSelection(c.selection,"linkHref")}execute(){const c=this.editor.model,p=c.document.selection,v=this.editor.commands.get("link");c.change(Z=>{const S=p.isCollapsed?[yu(p.getFirstPosition(),"linkHref",p.getAttribute("linkHref"),c)]:p.getRanges();for(const I of S)if(Z.removeAttribute("linkHref",I),v)for(const V of v.manualDecorators)Z.removeAttribute(V.id,I)})}}class $_{constructor({id:r,label:c,attributes:p,defaultValue:v}){this.id=r,this.set("value"),this.defaultValue=v,this.label=c,this.attributes=p}}Si($_,Ut),u(47);const Rm=/^(https?:)?\/\//;class K_ extends Qi{static get pluginName(){return"LinkEditing"}static get requires(){return[Zh,xg,K1]}constructor(r){super(r),r.config.define("link",{addTargetToExternalLinks:!1})}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:"linkHref"}),r.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Oh}),r.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(p,v)=>Oh(j_(p),v)}),r.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:p=>p.getAttribute("href")}}),r.commands.add("link",new W_(r)),r.commands.add("unlink",new Cf(r));const c=function(p,v){const Z={"Open in a new tab":p("Open in a new tab"),Downloadable:p("Downloadable")};return v.forEach(S=>(S.label&&Z[S.label]&&(S.label=Z[S.label]),S)),v}(r.t,function(p){const v=[];if(p)for(const[Z,S]of Object.entries(p)){const I=Object.assign({},S,{id:"link"+Ug(Z)});v.push(I)}return v}(r.config.get("link.decorators")));this._enableAutomaticDecorators(c.filter(p=>"automatic"===p.mode)),this._enableManualDecorators(c.filter(p=>"manual"===p.mode)),r.plugins.get(Zh).registerAttribute("linkHref"),function(p,v,Z,S){const I=p.editing.view,V=new Set;I.document.registerPostFixer(it=>{const dt=p.model.document.selection;let xt=!1;if(dt.hasAttribute(v)){const le=yu(dt.getFirstPosition(),v,dt.getAttribute(v),p.model),Ie=p.editing.mapper.toViewRange(le);for(const rn of Ie.getItems())rn.is("element","a")&&!rn.hasClass(S)&&(it.addClass(S,rn),V.add(rn),xt=!0)}return xt}),p.conversion.for("editingDowncast").add(it=>{function dt(){I.change(xt=>{for(const le of V.values())xt.removeClass(S,le),V.delete(le)})}it.on("insert",dt,{priority:"highest"}),it.on("remove",dt,{priority:"highest"}),it.on("attribute",dt,{priority:"highest"}),it.on("selection",dt,{priority:"highest"})})}(r,"linkHref",0,"ck-link_selected"),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}_enableAutomaticDecorators(r){const c=this.editor,p=c.commands.get("link").automaticDecorators;c.config.get("link.addTargetToExternalLinks")&&p.add({id:"linkIsExternal",mode:"automatic",callback:v=>Rm.test(v),attributes:{target:"_blank",rel:"noopener noreferrer"}}),p.add(r),p.length&&c.conversion.for("downcast").add(p.getDispatcher())}_enableManualDecorators(r){if(!r.length)return;const c=this.editor,p=c.commands.get("link").manualDecorators;r.forEach(v=>{c.model.schema.extend("$text",{allowAttributes:v.id}),p.add(new $_(v)),c.conversion.for("downcast").attributeToElement({model:v.id,view:(Z,S)=>{if(Z){const I=p.get(v.id).attributes,V=S.createAttributeElement("a",I,{priority:5});return S.setCustomProperty("link",!0,V),V}}}),c.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:p.get(v.id).attributes},model:{key:v.id}})})}_enableInsertContentSelectionAttributesFixer(){const r=this.editor,c=r.model,p=c.document.selection,v=r.commands.get("link");this.listenTo(c,"insertContent",()=>{const Z=p.anchor.nodeBefore,S=p.anchor.nodeAfter;p.hasAttribute("linkHref")&&Z&&Z.hasAttribute("linkHref")&&(S&&S.hasAttribute("linkHref")||c.change(I=>{Z1(I,v.manualDecorators)}))},{priority:"low"})}_enableClickingAfterLink(){const r=this.editor,c=r.commands.get("link");r.editing.view.addObserver(al);let p=!1;this.listenTo(r.editing.view.document,"mousedown",()=>{p=!0}),this.listenTo(r.editing.view.document,"selectionChange",()=>{if(!p)return;p=!1;const v=r.model.document.selection;if(!v.isCollapsed||!v.hasAttribute("linkHref"))return;const Z=v.getFirstPosition(),S=yu(Z,"linkHref",v.getAttribute("linkHref"),r.model);(Z.isTouching(S.start)||Z.isTouching(S.end))&&r.model.change(I=>{Z1(I,c.manualDecorators)})})}_enableTypingOverLink(){const r=this.editor;let p,v;this.listenTo(r.editing.view.document,"delete",()=>{v=!0},{priority:"high"}),this.listenTo(r.model,"deleteContent",()=>{const Z=r.model.document.selection;Z.isCollapsed||(v?v=!1:Lh(r)&&function(S){const I=S.document.selection,V=I.getFirstPosition(),it=I.getLastPosition(),dt=V.nodeAfter;return!!(dt&&dt.is("$text")&&dt.hasAttribute("linkHref"))&&(dt===(it.textNode||it.nodeBefore)||yu(V,"linkHref",dt.getAttribute("linkHref"),S).containsRange(S.createRange(V,it),!0))}(r.model)&&(p=Z.getAttributes()))},{priority:"high"}),this.listenTo(r.model,"insertContent",(Z,[S])=>{v=!1,Lh(r)&&p&&(r.model.change(I=>{for(const[V,it]of p)I.setAttribute(V,it,S)}),p=null)},{priority:"high"})}_handleDeleteContentAfterLink(){const r=this.editor,c=r.model,p=c.document.selection,v=r.editing.view,Z=r.commands.get("link");let S=!1,I=!1;this.listenTo(v.document,"delete",(V,it)=>{I=it.domEvent.keyCode===mo.backspace},{priority:"high"}),this.listenTo(c,"deleteContent",()=>{S=!1;const V=p.getFirstPosition(),it=p.getAttribute("linkHref");if(!it)return;const dt=yu(V,"linkHref",it,c);S=dt.containsPosition(V)||dt.end.isEqual(V)},{priority:"high"}),this.listenTo(c,"deleteContent",()=>{I&&(I=!1,S||r.model.enqueueChange(V=>{Z1(V,Z.manualDecorators)}))},{priority:"low"})}}function Z1(b,r){b.removeSelectionAttribute("linkHref");for(const c of r)b.removeSelectionAttribute(c.id)}function Lh(b){return b.plugins.get("Input").isInput(b.model.change(r=>r.batch))}class Tu extends Lm{static get pluginName(){return"Notification"}init(){this.on("show:warning",(r,c)=>{window.alert(c.message)},{priority:"lowest"})}showSuccess(r,c={}){this._showNotification({message:r,type:"success",namespace:c.namespace,title:c.title})}showInfo(r,c={}){this._showNotification({message:r,type:"info",namespace:c.namespace,title:c.title})}showWarning(r,c={}){this._showNotification({message:r,type:"warning",namespace:c.namespace,title:c.title})}_showNotification(r){this.fire("show:"+r.type+(r.namespace?":"+r.namespace:""),{message:r.message,type:r.type,title:r.title||""})}}class X_ extends da{constructor(r){super(r),this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const r=this.editor.commands.get("imageInsert"),c=this.editor.commands.get("link");this.isEnabled=r.isEnabled||c.isEnabled}execute(){const r=this.editor,c=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=c&&"modal"!=c)throw new En.b('ckfinder-unknown-openerMethod: The openerMethod config option must by "popup" or "modal".',r);const p=this.editor.config.get("ckfinder.options")||{};p.chooseFiles=!0;const v=p.onInit;p.language||(p.language=r.locale.uiLanguage),p.onInit=Z=>{v&&v(Z),Z.on("files:choose",S=>{const I=S.data.files.toArray(),V=I.filter(xt=>!xt.isImage()),it=I.filter(xt=>xt.isImage());for(const xt of V)r.execute("link",xt.getUrl());const dt=[];for(const xt of it){const le=xt.getUrl();dt.push(le||Z.request("file:getProxyUrl",{file:xt}))}dt.length&&t2(r,dt)}),Z.on("file:choose:resizedImage",S=>{const I=S.data.resizedUrl;if(I)t2(r,[I]);else{const V=r.plugins.get("Notification"),it=r.locale.t;V.showWarning(it("Could not obtain resized image URL."),{title:it("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[c](p)}}function t2(b,r){if(b.commands.get("imageInsert").isEnabled)b.execute("imageInsert",{source:r});else{const c=b.plugins.get("Notification"),p=b.locale.t;c.showWarning(p("Could not insert image at the current position."),{title:p("Inserting image failed"),namespace:"ckfinder"})}}class qh extends Qi{static get pluginName(){return"CKFinderEditing"}static get requires(){return[Tu,$o,K_]}init(){const r=this.editor;r.commands.add("ckfinder",new X_(r))}}const e2=/^data:(\S*?);base64,/;class Eh{constructor(r,c,p){if(!r)throw new En.b("fileuploader-missing-file: File must be provided as the first argument",null);if(!c)throw new En.b("fileuploader-missing-token: Token must be provided as the second argument.",null);if(!p)throw new En.b("fileuploader-missing-api-address: Api address must be provided as the third argument.",null);this.file=function(v){if("string"!=typeof v)return!1;const Z=v.match(e2);return!(!Z||!Z.length)}(r)?function(v,Z=512){try{const S=v.match(e2)[1],I=atob(v.replace(e2,"")),V=[];for(let it=0;itr(p)),this}onError(r){return this.once("error",(c,p)=>r(p)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const r=new XMLHttpRequest;r.open("POST",this._apiAddress),r.setRequestHeader("Authorization",this._token.value),r.responseType="json",this.xhr=r}_attachXHRListeners(){const r=this,c=this.xhr;function p(v){return()=>r.fire("error",v)}c.addEventListener("error",p("Network Error")),c.addEventListener("abort",p("Abort")),c.upload&&c.upload.addEventListener("progress",v=>{v.lengthComputable&&this.fire("progress",{total:v.total,uploaded:v.loaded})}),c.addEventListener("load",()=>{const v=c.status,Z=c.response;if(v<200||v>299)return this.fire("error",Z.message||Z.error)})}_sendRequest(){const r=new FormData,c=this.xhr;return r.append("file",this.file),new Promise((p,v)=>{c.addEventListener("load",()=>{const Z=c.status,S=c.response;return Z<200||Z>299?v(S.message?new En.b("fileuploader-uploading-data-failed: Uploading file failed.",this,{message:S.message}):S.error):p(S)}),c.addEventListener("error",()=>v(new Error("Network Error"))),c.addEventListener("abort",()=>v(new Error("Abort"))),c.send(r)})}}Si(Eh,Fo);const xf={refreshInterval:36e5,autoRefresh:!0};class Au{constructor(r,c=xf){if(!r)throw new En.b("token-missing-token-url: A `tokenUrl` must be provided as the first constructor argument.",this);this.set("value",c.initValue),this._refresh="function"==typeof r?r:()=>{return p=r,new Promise((v,Z)=>{const S=new XMLHttpRequest;S.open("GET",p),S.addEventListener("load",()=>{const I=S.status,V=S.response;return I<200||I>299?Z(new En.b("token-cannot-download-new-token: Cannot download new token from the provided url.",null)):v(V)}),S.addEventListener("error",()=>Z(new Error("Network Error"))),S.addEventListener("abort",()=>Z(new Error("Abort"))),S.send()});var p},this._options=Object.assign({},xf,c)}init(){return new Promise((r,c)=>{this._options.autoRefresh&&this._startRefreshing(),this.value?r(this):this.refreshToken().then(r).catch(c)})}refreshToken(){return this._refresh().then(r=>this.set("value",r)).then(()=>this)}destroy(){this._stopRefreshing()}_startRefreshing(){this._refreshInterval=setInterval(()=>this.refreshToken(),this._options.refreshInterval)}_stopRefreshing(){clearInterval(this._refreshInterval)}static create(r,c=xf){return new Au(r,c).init()}}Si(Au,Ut);var ap=Au;let Hm=(()=>{class b extends Lm{static get pluginName(){return"CloudServices"}init(){const c=this.context.config.get("cloudServices")||{};for(const p in c)this[p]=c[p];if(this.tokenUrl)return this.token=new b.Token(this.tokenUrl),this.token.init();this.token=null}destroy(){super.destroy(),this.token&&this.token.destroy()}}return b.Token=ap,b})();class Td extends Qi{static get requires(){return[il,Hm]}init(){const r=this.editor,c=r.plugins.get(Hm),p=c.token;p&&(this._uploadGateway=new Td._UploadGateway(p,c.uploadUrl),r.plugins.get(il).createUploadAdapter=Z=>new n2(this._uploadGateway,Z))}}class n2{constructor(r,c){this.uploadGateway=r,this.loader=c}upload(){return this.loader.file.then(r=>(this.fileUploader=this.uploadGateway.upload(r),this.fileUploader.on("progress",(c,p)=>{this.loader.uploadTotal=p.total,this.loader.uploaded=p.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}Td._UploadGateway=class{constructor(b,r){if(!b)throw new En.b("uploadgateway-missing-token: Token must be provided.",null);if(!r)throw new En.b("uploadgateway-missing-api-address: Api address must be provided.",null);this._token=b,this._apiAddress=r}upload(b){return new Eh(b,this._token,this._apiAddress)}},u(49);const Qd=["before","after"],o2=(new DOMParser).parseFromString('\n',"image/svg+xml").firstChild;class a2 extends Qi{static get pluginName(){return"WidgetTypeAround"}constructor(r){super(r),this._currentFakeCaretModelElement=null}init(){const r=this.editor,c=r.editing.view;this.on("change:isEnabled",(p,v,Z)=>{c.change(S=>{for(const I of c.document.roots)Z?S.removeClass("ck-widget__type-around_disabled",I):S.addClass("ck-widget__type-around_disabled",I)}),Z||r.model.change(S=>{S.removeSelectionAttribute("widget-type-around")})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration()}destroy(){this._currentFakeCaretModelElement=null}_insertParagraph(r,c){const p=this.editor,v=p.editing.view;p.execute("insertParagraph",{position:p.model.createPositionAt(r,c)}),v.focus(),v.scrollToTheSelection()}_listenToIfEnabled(r,c,p,v){this.listenTo(r,c,(...Z)=>{this.isEnabled&&p(...Z)},v)}_insertParagraphAccordingToFakeCaretPosition(){const r=this.editor.model.document.selection,c=U1(r);if(!c)return!1;const p=r.getSelectedElement();return this._insertParagraph(p,c),!0}_enableTypeAroundUIInjection(){const r=this.editor,c=r.model.schema,p=r.locale.t,v={before:p("Insert paragraph before block"),after:p("Insert paragraph after block")};r.editing.downcastDispatcher.on("insert",(Z,S,I)=>{const V=I.mapper.toViewElement(S.item);A1(V,S.item,c)&&function(it,dt,xt){const le=it.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(Ie){const rn=this.toDomElement(Ie);return function(vn,wn){for(const qn of Qd){const mi=new Qu({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_"+qn],title:wn[qn]},children:[vn.ownerDocument.importNode(o2,!0)]});vn.appendChild(mi.render())}}(rn,dt),function(vn){const wn=new Qu({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});vn.appendChild(wn.render())}(rn),rn});it.insert(it.createPositionAt(xt,"end"),le)}(I.writer,v,V)},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const r=this.editor,c=r.model,p=c.document.selection,v=c.schema;function S(I){return"ck-widget_type-around_show-fake-caret_"+I}this._listenToIfEnabled(r.editing.view.document,"keydown",(I,V)=>{Il(V.keyCode)&&this._handleArrowKeyPress(I,V)},{priority:ar.get("high")+10}),this._listenToIfEnabled(p,"change:range",(I,V)=>{V.directChange&&r.model.change(it=>{it.removeSelectionAttribute("widget-type-around")})}),this._listenToIfEnabled(c.document,"change:data",()=>{const I=p.getSelectedElement();I&&A1(r.editing.mapper.toViewElement(I),I,v)||r.model.change(V=>{V.removeSelectionAttribute("widget-type-around")})}),this._listenToIfEnabled(r.editing.downcastDispatcher,"selection",(I,V,it)=>{const dt=it.writer;if(this._currentFakeCaretModelElement){const rn=it.mapper.toViewElement(this._currentFakeCaretModelElement);rn&&(dt.removeClass(Qd.map(S),rn),this._currentFakeCaretModelElement=null)}const xt=V.selection.getSelectedElement();if(!xt)return;const le=it.mapper.toViewElement(xt);if(!A1(le,xt,v))return;const Ie=U1(V.selection);Ie&&(dt.addClass(S(Ie),le),this._currentFakeCaretModelElement=xt)}),this._listenToIfEnabled(r.ui.focusTracker,"change:isFocused",(I,V,it)=>{it||r.model.change(dt=>{dt.removeSelectionAttribute("widget-type-around")})})}_handleArrowKeyPress(r,c){const p=this.editor,v=p.model,Z=v.document.selection,S=v.schema,I=p.editing.view,V=qu(c.keyCode,p.locale.contentLanguageDirection),it=I.document.selection.getSelectedElement();let dt;A1(it,p.editing.mapper.toModelElement(it),S)?dt=this._handleArrowKeyPressOnSelectedWidget(V):Z.isCollapsed&&(dt=this._handleArrowKeyPressWhenSelectionNextToAWidget(V)),dt&&(c.preventDefault(),r.stop())}_handleArrowKeyPressOnSelectedWidget(r){const c=this.editor.model,p=U1(c.document.selection);return c.change(v=>p?p!==(r?"after":"before")&&(v.removeSelectionAttribute("widget-type-around"),!0):(v.setSelectionAttribute("widget-type-around",r?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(r){const c=this.editor,p=c.model,v=p.schema,Z=c.plugins.get("Widget"),S=Z._getObjectElementNextToSelection(r);return!!A1(c.editing.mapper.toViewElement(S),S,v)&&(p.change(I=>{Z._setSelectionOverElement(S),I.setSelectionAttribute("widget-type-around",r?"before":"after")}),!0)}_enableInsertingParagraphsOnButtonClick(){const r=this.editor,c=r.editing.view;this._listenToIfEnabled(c.document,"mousedown",(p,v)=>{const Z=v.domTarget.closest(".ck-widget__type-around__button");if(!Z)return;const S=Z.classList.contains("ck-widget__type-around__button_before")?"before":"after",I=function(it,dt){const xt=it.closest(".ck-widget");return dt.mapDomToView(xt)}(Z,c.domConverter),V=r.editing.mapper.toModelElement(I);this._insertParagraph(V,S),v.preventDefault(),p.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const r=this.editor,c=r.editing.view;this._listenToIfEnabled(c.document,"enter",(p,v)=>{const Z=c.document.selection.getSelectedElement(),S=r.editing.mapper.toModelElement(Z),I=r.model.schema;let V;this._insertParagraphAccordingToFakeCaretPosition()?V=!0:A1(Z,S,I)&&(this._insertParagraph(S,v.isSoft?"before":"after"),V=!0),V&&(v.preventDefault(),p.stop())})}_enableInsertingParagraphsOnTypingKeystroke(){const c=[mo.enter,mo.delete,mo.backspace];this._listenToIfEnabled(this.editor.editing.view.document,"keydown",(p,v)=>{c.includes(v.keyCode)||Pm(v)||this._insertParagraphAccordingToFakeCaretPosition()},{priority:ar.get("high")+1})}_enableDeleteIntegration(){const r=this.editor,p=r.model,v=p.schema;this._listenToIfEnabled(r.editing.view.document,"delete",(Z,S)=>{const I=U1(p.document.selection);if(!I)return;const V=S.direction,it=p.document.selection.getSelectedElement(),dt="forward"==V;if("before"===I===dt)r.execute("delete",{selection:p.createSelection(it,"on")});else{const xt=v.getNearestSelectionRange(p.createPositionAt(it,I),V);if(xt)if(xt.isCollapsed){const le=p.createSelection(xt.start);if(p.modifySelection(le,{direction:V}),le.focus.isEqual(xt.start)){const Ie=function(rn,vn){let wn=vn;for(const qn of vn.getAncestors({parentFirst:!0})){if(qn.childCount>1||rn.isLimit(qn))break;wn=qn}return wn}(v,xt.start.parent);p.deleteContent(p.createSelection(Ie,"on"),{doNotAutoparagraph:!0})}else p.change(Ie=>{Ie.setSelection(xt),r.execute(dt?"forwardDelete":"delete")})}else p.change(le=>{le.setSelection(xt),r.execute(dt?"forwardDelete":"delete")})}S.preventDefault(),Z.stop()},{priority:ar.get("high")+1})}_enableInsertContentIntegration(){const c=this.editor.model,p=c.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(v,[Z,S])=>{if(S&&!S.is("documentSelection"))return;const I=U1(p);return I?(v.stop(),c.change(V=>{const it=p.getSelectedElement(),dt=c.createPositionAt(it,I),xt=V.createSelection(dt),le=c.insertContent(Z,xt);return V.setSelection(xt),le})):void 0},{priority:"high"})}}u(51);class rp extends Qi{static get pluginName(){return"Widget"}static get requires(){return[a2]}init(){const r=this.editor.editing.view,c=r.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(p,v,Z)=>{this._clearPreviouslySelectedWidgets(Z.writer);const S=Z.writer,I=S.document.selection,V=I.getSelectedElement();let it=null;for(const dt of I.getRanges())for(const xt of dt){const le=xt.item;$l(le)&&!yf(le,it)&&(S.addClass("ck-widget_selected",le),this._previouslySelected.add(le),it=le,le==V&&S.setSelection(I.getRanges(),{fake:!0,label:Tg(V)}))}},{priority:"low"}),r.addObserver(al),this.listenTo(c,"mousedown",(...p)=>this._onMousedown(...p)),this.listenTo(c,"keydown",(...p)=>{this._handleSelectionChangeOnArrowKeyPress(...p)},{priority:"high"}),this.listenTo(c,"keydown",(...p)=>{this._preventDefaultOnArrowKeyPress(...p)},{priority:ar.get("high")-20}),this.listenTo(c,"delete",(p,v)=>{this._handleDelete("forward"==v.direction)&&(v.preventDefault(),p.stop())},{priority:"high"})}_onMousedown(r,c){const p=this.editor,v=p.editing.view,Z=v.document;let S=c.target;if(function(V){for(;V;){if(V.is("editableElement")&&!V.is("rootElement"))return!0;if($l(V))return!1;V=V.parent}return!1}(S)){if((Dr_isSafari||Dr_isGecko)&&c.domEvent.detail>=3){const V=p.editing.mapper,it=S.is("attributeElement")?S.findAncestor(xt=>!xt.is("attributeElement")):S,dt=V.toModelElement(it);c.preventDefault(),this.editor.model.change(xt=>{xt.setSelection(dt,"in")})}return}if(!$l(S)&&(S=S.findAncestor($l),!S))return;c.preventDefault(),Z.isFocused||v.focus();const I=p.editing.mapper.toModelElement(S);this._setSelectionOverElement(I)}_handleSelectionChangeOnArrowKeyPress(r,c){const p=c.keyCode;if(!Il(p))return;const v=this.editor.model,Z=v.schema,S=v.document.selection,I=S.getSelectedElement(),V=qu(p,this.editor.locale.contentLanguageDirection);if(I&&Z.isObject(I)){const dt=V?S.getLastPosition():S.getFirstPosition(),xt=Z.getNearestSelectionRange(dt,V?"forward":"backward");return void(xt&&(v.change(le=>{le.setSelection(xt)}),c.preventDefault(),r.stop()))}if(!S.isCollapsed)return;const it=this._getObjectElementNextToSelection(V);it&&Z.isObject(it)&&(this._setSelectionOverElement(it),c.preventDefault(),r.stop())}_preventDefaultOnArrowKeyPress(r,c){if(!Il(c.keyCode))return;const p=this.editor.model,v=p.schema,Z=p.document.selection.getSelectedElement();Z&&v.isObject(Z)&&(c.preventDefault(),r.stop())}_handleDelete(r){if(this.editor.isReadOnly)return;const c=this.editor.model.document.selection;if(!c.isCollapsed)return;const p=this._getObjectElementNextToSelection(r);return p?(this.editor.model.change(v=>{let Z=c.anchor.parent;for(;Z.isEmpty;){const S=Z;Z=S.parent,v.remove(S)}this._setSelectionOverElement(p)}),!0):void 0}_setSelectionOverElement(r){this.editor.model.change(c=>{c.setSelection(c.createRangeOn(r))})}_getObjectElementNextToSelection(r){const c=this.editor.model,p=c.schema,Z=c.createSelection(c.document.selection);c.modifySelection(Z,{direction:r?"forward":"backward"});const S=r?Z.focus.nodeBefore:Z.focus.nodeAfter;return S&&p.isObject(S)?S:null}_clearPreviouslySelectedWidgets(r){for(const c of this._previouslySelected)r.removeClass("ck-widget_selected",c);this._previouslySelected.clear()}}function yf(b,r){return!!r&&Array.from(b.getAncestors()).includes(r)}class Nh extends da{refresh(){const r=this.editor.model.document.selection.getSelectedElement();this.isEnabled=Bd(r),this.value=!(!Bd(r)||!r.hasAttribute("alt"))&&r.getAttribute("alt")}execute(r){const c=this.editor.model,p=c.document.selection.getSelectedElement();c.change(v=>{v.setAttribute("alt",r.newValue,p)})}}class ir extends Qi{static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Nh(this.editor))}}u(53);class Vp extends Oo{constructor(r,c){super(r);const p="ck-labeled-field-view-"+Pa(),v="ck-labeled-field-view-status-"+Pa();this.fieldView=c(this,p,v),this.set("label"),this.set("isEnabled",!0),this.set("errorText",null),this.set("infoText",null),this.set("class"),this.labelView=this._createLabelView(p),this.statusView=this._createStatusView(v),this.bind("_statusText").to(this,"errorText",this,"infoText",(S,I)=>S||I);const Z=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",Z.to("class"),Z.if("isEnabled","ck-disabled",S=>!S)]},children:[this.labelView,this.fieldView,this.statusView]})}_createLabelView(r){const c=new Ml(this.locale);return c.for=r,c.bind("text").to(this,"label"),c}_createStatusView(r){const c=new Oo(this.locale),p=this.bindTemplate;return c.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",p.if("errorText","ck-labeled-field-view__status_error"),p.if("_statusText","ck-hidden",v=>!v)],id:r,role:p.if("errorText","alert")},children:[{text:p.to("_statusText")}]}),c}focus(){this.fieldView.focus()}}u(55);class M3 extends Oo{constructor(r){super(r),this.set("value"),this.set("id"),this.set("placeholder"),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById");const c=this.bindTemplate;this.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-input","ck-input-text",c.if("hasError","ck-error")],id:c.to("id"),placeholder:c.to("placeholder"),readonly:c.to("isReadOnly"),"aria-invalid":c.if("hasError",!0),"aria-describedby":c.to("ariaDescribedById")},on:{input:c.to("input")}})}render(){super.render();const r=c=>{this.element.value=c||0===c?c:""};r(this.value),this.on("change:value",(c,p,v)=>{r(v)})}select(){this.element.select()}focus(){this.element.focus()}}function Tf(b,r,c){const p=new M3(b.locale);return p.set({id:r,ariaDescribedById:c}),p.bind("isReadOnly").to(b,"isEnabled",v=>!v),p.bind("hasError").to(b,"errorText",v=>!!v),p.on("input",()=>{b.errorText=null}),p}function Ym({view:b}){b.listenTo(b.element,"submit",(r,c)=>{c.preventDefault(),b.fire("submit")},{useCapture:!0})}var r2='',zm='';u(57);class Fh extends Oo{constructor(r){super(r);const c=this.locale.t;this.focusTracker=new ws,this.keystrokes=new _u,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(c("Save"),r2,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(c("Cancel"),zm,"ck-button-cancel","cancel"),this._focusables=new Zl,this._focusCycler=new f1({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),Ym({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)})}_createButton(r,c,p,v){const Z=new Hr(this.locale);return Z.set({label:r,icon:c,tooltip:!0}),Z.extendTemplate({attributes:{class:p}}),v&&Z.delegate("execute").to(this,v),Z}_createLabeledInputView(){const r=this.locale.t,c=new Vp(this.locale,Tf);return c.label=r("Text alternative"),c.fieldView.placeholder=r("Text alternative"),c}}u(59),u(61);const s2=Q1("px");class Jc extends Qi{static get pluginName(){return"ContextualBalloon"}constructor(r){super(r),this.positionLimiter=()=>{const c=this.editor.editing.view,p=c.document.selection.editableElement;return p?c.domConverter.mapViewToDom(p.root):null},this.set("visibleView",null),this.view=new pa(r.locale),r.ui.view.body.add(this.view),r.ui.focusTracker.add(this.view.element),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}hasView(r){return Array.from(this._viewToStack.keys()).includes(r)}add(r){if(this.hasView(r.view))throw new En.b("contextualballoon-add-view-exist: Cannot add configuration of the same view twice.",[this,r]);const c=r.stackId||"main";if(!this._idToStack.has(c))return this._idToStack.set(c,new Map([[r.view,r]])),this._viewToStack.set(r.view,this._idToStack.get(c)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!r.singleViewMode||this.showStack(c));const p=this._idToStack.get(c);r.singleViewMode&&this.showStack(c),p.set(r.view,r),this._viewToStack.set(r.view,p),p===this._visibleStack&&this._showView(r)}remove(r){if(!this.hasView(r))throw new En.b("contextualballoon-remove-view-not-exist: Cannot remove the configuration of a non-existent view.",[this,r]);const c=this._viewToStack.get(r);this._singleViewMode&&this.visibleView===r&&(this._singleViewMode=!1),this.visibleView===r&&(1===c.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(c.values())[c.size-2])),1===c.size?(this._idToStack.delete(this._getStackId(c)),this._numberOfStacks=this._idToStack.size):c.delete(r),this._viewToStack.delete(r)}updatePosition(r){r&&(this._visibleStack.get(this.visibleView).position=r),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(r){this.visibleStack=r;const c=this._idToStack.get(r);if(!c)throw new En.b("contextualballoon-showstack-stack-not-exist: Cannot show a stack that does not exist.",this);this._visibleStack!==c&&this._showView(Array.from(c.values()).pop())}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(r){return Array.from(this._idToStack.entries()).find(c=>c[1]===r)[0]}_showNextStack(){const r=Array.from(this._idToStack.values());let c=r.indexOf(this._visibleStack)+1;r[c]||(c=0),this.showStack(this._getStackId(r[c]))}_showPrevStack(){const r=Array.from(this._idToStack.values());let c=r.indexOf(this._visibleStack)-1;r[c]||(c=r.length-1),this.showStack(this._getStackId(r[c]))}_createRotatorView(){const r=new c2(this.editor.locale),c=this.editor.locale.t;return this.view.content.add(r),r.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(p,v)=>!v&&p>1),r.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),r.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(p,v)=>{if(v<2)return"";const Z=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return c("%0 of %1",[Z,v])}),r.buttonNextView.on("execute",()=>{r.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),r.buttonPrevView.on("execute",()=>{r.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),r}_createFakePanelsView(){const r=new Ih(this.editor.locale,this.view);return r.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(c,p)=>!p&&c>=2?Math.min(c-1,2):0),r.listenTo(this.view,"change:top",()=>r.updatePosition()),r.listenTo(this.view,"change:left",()=>r.updatePosition()),this.editor.ui.view.body.add(r),r}_showView({view:r,balloonClassName:c="",withArrow:p=!0,singleViewMode:v=!1}){this.view.class=c,this.view.withArrow=p,this._rotatorView.showView(r),this.visibleView=r,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),v&&(this._singleViewMode=!0)}_getBalloonPosition(){let r=Array.from(this._visibleStack.values()).pop().position;return r&&!r.limiter&&(r=Object.assign({},r,{limiter:this.positionLimiter})),r}}class c2 extends Oo{constructor(r){super(r);const c=r.t,p=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new ws,this.buttonPrevView=this._createButtonView(c("Previous"),''),this.buttonNextView=this._createButtonView(c("Next"),''),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",p.to("isNavigationVisible",v=>v?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:p.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}showView(r){this.hideView(),this.content.add(r)}hideView(){this.content.clear()}_createButtonView(r,c){const p=new Hr(this.locale);return p.set({label:r,icon:c,tooltip:!0}),p}}class Ih extends Oo{constructor(r,c){super(r);const p=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=c,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",p.to("numberOfPanels",v=>v?"":"ck-hidden")],style:{top:p.to("top",s2),left:p.to("left",s2),width:p.to("width",s2),height:p.to("height",s2)}},children:this.content}),this.on("change:numberOfPanels",(v,Z,S,I)=>{S>I?this._addPanels(S-I):this._removePanels(I-S),this.updatePosition()})}_addPanels(r){for(;r--;){const c=new Oo;c.setTemplate({tag:"div"}),this.content.add(c),this.registerChild(c)}}_removePanels(r){for(;r--;){const c=this.content.last;this.content.remove(c),this.deregisterChild(c),c.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:r,left:c}=this._balloonPanelView,{width:p,height:v}=new cr(this._balloonPanelView.element);Object.assign(this,{top:r,left:c,width:p,height:v})}}}function Rh(b){const r=b.editing.view,c=pa.defaultPositions;return{target:r.domConverter.viewToDom(r.document.selection.getSelectedElement()),positions:[c.northArrowSouth,c.northArrowSouthWest,c.northArrowSouthEast,c.southArrowNorth,c.southArrowNorthWest,c.southArrowNorthEast]}}class Zg extends Qi{static get requires(){return[Jc]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton(),this._createForm()}destroy(){super.destroy(),this._form.destroy()}_createButton(){const r=this.editor,c=r.t;r.ui.componentFactory.add("imageTextAlternative",p=>{const v=r.commands.get("imageTextAlternative"),Z=new Hr(p);return Z.set({label:c("Change image text alternative"),icon:'',tooltip:!0}),Z.bind("isEnabled").to(v,"isEnabled"),this.listenTo(Z,"execute",()=>{this._showForm()}),Z})}_createForm(){const r=this.editor,c=r.editing.view.document;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new Fh(r.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{r.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(p,v)=>{this._hideForm(!0),v()}),this.listenTo(r.ui,"update",()=>{Kl(c.selection)?this._isVisible&&function(p){const v=p.plugins.get("ContextualBalloon");if(Kl(p.editing.view.document.selection)){const Z=Rh(p);v.updatePosition(Z)}}(r):this._hideForm(!0)}),Um({emitter:this._form,activator:()=>this._isVisible,contextElements:[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;const r=this.editor,c=r.commands.get("imageTextAlternative"),p=this._form.labeledInput;this._isInBalloon||this._balloon.add({view:this._form,position:Rh(r)}),p.fieldView.value=p.fieldView.element.value=c.value||"",this._form.labeledInput.fieldView.select()}_hideForm(r){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),r&&this.editor.editing.view.focus())}get _isVisible(){return this._balloon.visibleView===this._form}get _isInBalloon(){return this._balloon.hasView(this._form)}}class l2 extends Qi{static get requires(){return[ir,Zg]}static get pluginName(){return"ImageTextAlternative"}}u(63);class Af extends Qi{static get requires(){return[$o,rp,l2]}static get pluginName(){return"Image"}}class Pr extends Oo{constructor(r){super(r),this.buttonView=new Hr(r),this._fileInputView=new w1(r),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",()=>{this._fileInputView.open()})}focus(){this.buttonView.focus()}}class w1 extends Oo{constructor(r){super(r),this.set("acceptedType"),this.set("allowMultipleFiles",!1);const c=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:c.to("acceptedType"),multiple:c.to("allowMultipleFiles")},on:{change:c.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}function wg(b){const r=b.map(c=>c.replace("+","\\+"));return new RegExp(`^image\\/(${r.join("|")})$`)}class u2 extends Qi{init(){const r=this.editor,c=r.t;r.ui.componentFactory.add("imageUpload",p=>{const v=new Pr(p),Z=r.commands.get("imageUpload"),S=r.config.get("image.upload.types"),I=wg(S);return v.set({acceptedType:S.map(V=>"image/"+V).join(","),allowMultipleFiles:!0}),v.buttonView.set({label:c("Insert image"),icon:'',tooltip:!0}),v.buttonView.bind("isEnabled").to(Z),v.on("done",(V,it)=>{const dt=Array.from(it).filter(xt=>I.test(xt.type));dt.length&&r.execute("imageUpload",{file:dt})}),v})}}u(65),u(67),u(69);class Vm extends Qi{constructor(r){super(r),this.placeholder="data:image/svg+xml;utf8,"+encodeURIComponent('')}init(){this.editor.editing.downcastDispatcher.on("attribute:uploadStatus:image",(...r)=>this.uploadStatusChange(...r))}uploadStatusChange(r,c,p){const v=this.editor,Z=c.item,S=Z.getAttribute("uploadId");if(!p.consumable.consume(c.item,r.name))return;const I=v.plugins.get(il),V=S?c.attributeNewValue:null,it=this.placeholder,dt=v.editing.mapper.toViewElement(Z),xt=p.writer;if("reading"==V)return d2(dt,xt),void p2(it,dt,xt);if("uploading"==V){const le=I.loaders.get(S);return d2(dt,xt),void(le?(m2(dt,xt),function(Ie,rn,vn,wn){const qn=function(mi){const xi=mi.createUIElement("div",{class:"ck-progress-bar"});return mi.setCustomProperty("progressBar",!0,xi),xi}(rn);rn.insert(rn.createPositionAt(Ie,"end"),qn),vn.on("change:uploadedPercent",(mi,xi,Vi)=>{wn.change(Po=>{Po.setStyle("width",Vi+"%",qn)})})}(dt,xt,le,v.editing.view),function(Ie,rn,vn){if(vn.data){const wn=Bc(Ie);rn.setAttribute("src",vn.data,wn)}}(dt,xt,le)):p2(it,dt,xt))}"complete"==V&&I.loaders.get(S)&&function(le,Ie,rn){const vn=Ie.createUIElement("div",{class:"ck-image-upload-complete-icon"});Ie.insert(Ie.createPositionAt(le,"end"),vn),setTimeout(()=>{rn.change(wn=>wn.remove(wn.createRangeOn(vn)))},3e3)}(dt,xt,v.editing.view),sp(dt,xt,"progressBar"),m2(dt,xt),xt.removeClass("ck-appear",dt)}}function d2(b,r){b.hasClass("ck-appear")||r.addClass("ck-appear",b)}function p2(b,r,c){r.hasClass("ck-image-upload-placeholder")||c.addClass("ck-image-upload-placeholder",r);const p=Bc(r);p.getAttribute("src")!==b&&c.setAttribute("src",b,p),M1(r,"placeholder")||c.insert(c.createPositionAfter(p),function(v){const Z=v.createUIElement("div",{class:"ck-upload-placeholder-loader"});return v.setCustomProperty("placeholder",!0,Z),Z}(c))}function m2(b,r){b.hasClass("ck-image-upload-placeholder")&&r.removeClass("ck-image-upload-placeholder",b),sp(b,r,"placeholder")}function M1(b,r){for(const c of b.getChildren())if(c.getCustomProperty(r))return c}function sp(b,r,c){const p=M1(b,c);p&&r.remove(r.createRangeOn(p))}class _2{constructor(r){this.document=r}createDocumentFragment(r){return new Ic(this.document,r)}createElement(r,c,p){return new ts(this.document,r,c,p)}createText(r){return new fa(this.document,r)}clone(r,c=!1){return r._clone(c)}appendChild(r,c){return c._appendChild(r)}insertChild(r,c,p){return p._insertChild(r,c)}removeChildren(r,c,p){return p._removeChildren(r,c)}remove(r){const c=r.parent;return c?this.removeChildren(c.getChildIndex(r),1,c):[]}replace(r,c){const p=r.parent;if(p){const v=p.getChildIndex(r);return this.removeChildren(v,1,p),this.insertChild(v,c,p),!0}return!1}unwrapElement(r){const c=r.parent;if(c){const p=c.getChildIndex(r);this.remove(r),this.insertChild(p,r.getChildren(),c)}}rename(r,c){const p=new ts(this.document,r,c.getAttributes(),c.getChildren());return this.replace(c,p)?p:null}setAttribute(r,c,p){p._setAttribute(r,c)}removeAttribute(r,c){c._removeAttribute(r)}addClass(r,c){c._addClass(r)}removeClass(r,c){c._removeClass(r)}setStyle(r,c,p){Bt(r)&&void 0===p&&(p=c),p._setStyle(r,c)}removeStyle(r,c){c._removeStyle(r)}setCustomProperty(r,c,p){p._setCustomProperty(r,c)}removeCustomProperty(r,c){return c._removeCustomProperty(r)}createPositionAt(r,c){return jn._createAt(r,c)}createPositionAfter(r){return jn._createAfter(r)}createPositionBefore(r){return jn._createBefore(r)}createRange(r,c){return new vi(r,c)}createRangeOn(r){return vi._createOn(r)}createRangeIn(r){return vi._createIn(r)}createSelection(r,c,p){return new Do(r,c,p)}}class Ad extends da{refresh(){this.isEnabled=np(this.editor.model)}execute(r){const c=this.editor,p=c.model,v=c.plugins.get(il);p.change(Z=>{const S=Array.isArray(r.file)?r.file:[r.file];for(const I of S)Bm(Z,p,v,I)})}}function Bm(b,r,c,p){const v=c.createLoader(p);v&&vf(b,r,{uploadId:v.id})}class Hh extends Qi{static get requires(){return[il,Tu,K1]}static get pluginName(){return"ImageUploadEditing"}constructor(r){super(r),r.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}})}init(){const r=this.editor,c=r.model.document,p=r.model.schema,v=r.conversion,Z=r.plugins.get(il),S=wg(r.config.get("image.upload.types"));p.extend("image",{allowAttributes:["uploadId","uploadStatus"]}),r.commands.add("imageUpload",new Ad(r)),v.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(r.editing.view.document,"clipboardInput",(I,V)=>{if(it=V.dataTransfer,Array.from(it.types).includes("text/html")&&""!==it.getData("text/html"))return;var it;const dt=Array.from(V.dataTransfer.files).filter(le=>!!le&&S.test(le.type)),xt=V.targetRanges.map(le=>r.editing.mapper.toModelRange(le));r.model.change(le=>{le.setSelection(xt),dt.length&&(I.stop(),r.model.enqueueChange("default",()=>{r.execute("imageUpload",{file:dt})}))})}),this.listenTo(r.plugins.get(K1),"inputTransformation",(I,V)=>{const it=Array.from(r.editing.view.createRangeIn(V.content)).filter(xt=>{return!(!(le=xt.item).is("element","img")||!le.getAttribute("src"))&&(le.getAttribute("src").match(/^data:image\/\w+;base64,/g)||le.getAttribute("src").match(/^blob:/g))&&!xt.item.getAttribute("uploadProcessed");var le}).map(xt=>{return{promise:(le=xt.item,new Promise((Ie,rn)=>{const vn=le.getAttribute("src");fetch(vn).then(wn=>wn.blob()).then(wn=>{const qn=(Po=vn,(Vi=wn).type?Vi.type:Po.match(/data:(image\/\w+);base64/)?Po.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"),mi=qn.replace("image/",""),xi=new File([wn],"image."+mi,{type:qn});var Vi,Po;Ie(xi)}).catch(rn)})),imageElement:xt.item};var le});if(!it.length)return;const dt=new _2(r.editing.view.document);for(const xt of it){dt.setAttribute("uploadProcessed",!0,xt.imageElement);const le=Z.createLoader(xt.promise);le&&(dt.setAttribute("src","",xt.imageElement),dt.setAttribute("uploadId",le.id,xt.imageElement))}}),r.editing.view.document.on("dragover",(I,V)=>{V.preventDefault()}),c.on("change",()=>{const I=c.differ.getChanges({includeChangesInGraveyard:!0});for(const V of I)if("insert"==V.type&&"$text"!=V.name){const it=V.position.nodeAfter,dt="$graveyard"==V.position.root.rootName;for(const xt of f2(r,it)){const le=xt.getAttribute("uploadId");if(!le)continue;const Ie=Z.loaders.get(le);Ie&&(dt?Ie.abort():"idle"==Ie.status&&this._readAndUpload(Ie,xt))}}})}_readAndUpload(r,c){const p=this.editor,v=p.model,Z=p.locale.t,S=p.plugins.get(il),I=p.plugins.get(Tu);return v.enqueueChange("transparent",it=>{it.setAttribute("uploadStatus","reading",c)}),r.read().then(()=>{const it=r.upload();if(Dr_isSafari){const dt=Bc(p.editing.mapper.toViewElement(c));p.editing.view.once("render",()=>{if(!dt.parent)return;const xt=p.editing.view.domConverter.mapViewToDom(dt.parent);if(!xt)return;const le=xt.style.display;xt.style.display="none",xt._ckHack=xt.offsetHeight,xt.style.display=le})}return v.enqueueChange("transparent",dt=>{dt.setAttribute("uploadStatus","uploading",c)}),it}).then(it=>{v.enqueueChange("transparent",dt=>{dt.setAttributes({uploadStatus:"complete",src:it.default},c),this._parseAndSetSrcsetAttributeOnImage(it,c,dt)}),V()}).catch(it=>{if("error"!==r.status&&"aborted"!==r.status)throw it;"error"==r.status&&it&&I.showWarning(it,{title:Z("Upload failed"),namespace:"upload"}),V(),v.enqueueChange("transparent",dt=>{dt.remove(c)})});function V(){v.enqueueChange("transparent",it=>{it.removeAttribute("uploadId",c),it.removeAttribute("uploadStatus",c)}),S.destroyLoader(r)}}_parseAndSetSrcsetAttributeOnImage(r,c,p){let v=0;const Z=Object.keys(r).filter(S=>{const I=parseInt(S,10);if(!isNaN(I))return v=Math.max(v,I),!0}).map(S=>`${r[S]} ${S}w`).join(", ");""!=Z&&p.setAttribute("srcset",{data:Z,width:v},c)}}function f2(b,r){return Array.from(b.model.createRangeOn(r)).filter(c=>c.item.is("element","image")).map(c=>c.item)}class cp extends Qi{static get pluginName(){return"ImageUpload"}static get requires(){return[Hh,u2,Vm]}}class rl extends da{refresh(){const r=this.editor.model,c=zc(r.document.selection.getSelectedBlocks());this.value=!!c&&c.is("element","paragraph"),this.isEnabled=!!c&&Bp(c,r.schema)}execute(r={}){const c=this.editor.model,p=c.document;c.change(v=>{const Z=(r.selection||p.selection).getSelectedBlocks();for(const S of Z)!S.is("element","paragraph")&&Bp(S,c.schema)&&v.rename(S,"paragraph")})}}function Bp(b,r){return r.checkChild(b.parent,"paragraph")&&!r.isObject(b)}class Uf extends da{execute(r){const c=this.editor.model;let p=r.position;c.change(v=>{const Z=v.createElement("paragraph");if(!c.schema.checkChild(p.parent,Z)){const S=c.schema.findAllowedParent(p,Z);if(!S)return;p=v.split(p,S).position}c.insertContent(Z,p),v.setSelection(Z,"in")})}}class Jp extends Qi{static get pluginName(){return"Paragraph"}init(){const r=this.editor,c=r.model,p=r.data;r.commands.add("paragraph",new rl(r)),r.commands.add("insertParagraph",new Uf(r)),c.schema.register("paragraph",{inheritAllFrom:"$block"}),r.conversion.elementToElement({model:"paragraph",view:"p"}),r.conversion.for("upcast").elementToElement({model:(v,Z)=>Jp.paragraphLikeElements.has(v.name)?v.isEmpty?null:Z.createElement("paragraph"):null,converterPriority:"low"}),p.upcastDispatcher.on("element",(v,Z,S)=>{S.consumable.test(Z.viewItem,{name:Z.viewItem.name})&&Yh(Z.viewItem,Z.modelCursor,S.schema)&&Object.assign(Z,lp(Z.viewItem,Z.modelCursor,S))},{priority:"low"}),p.upcastDispatcher.on("text",(v,Z,S)=>{Z.modelRange||Yh(Z.viewItem,Z.modelCursor,S.schema)&&Object.assign(Z,lp(Z.viewItem,Z.modelCursor,S))},{priority:"lowest"}),c.document.registerPostFixer(v=>this._autoparagraphEmptyRoots(v)),r.data.on("ready",()=>{c.enqueueChange("transparent",v=>this._autoparagraphEmptyRoots(v))},{priority:"lowest"})}_autoparagraphEmptyRoots(r){const c=this.editor.model;for(const p of c.document.getRootNames()){const v=c.document.getRoot(p);if(v.isEmpty&&"$graveyard"!=v.rootName&&c.schema.checkChild(v,"paragraph"))return r.insertElement("paragraph",v),!0}}}function lp(b,r,c){const p=c.writer.createElement("paragraph");return c.writer.insert(p,r),c.convertItem(b,c.writer.createPositionAt(p,0))}function Yh(b,r,c){const p=c.createContext(r);return!!c.checkChild(p,"paragraph")&&!!c.checkChild(p.push("paragraph"),b)}Jp.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td"]);class Jm extends da{constructor(r,c){super(r),this.modelElements=c}refresh(){const r=zc(this.editor.model.document.selection.getSelectedBlocks());this.value=!!r&&this.modelElements.includes(r.name)&&r.name,this.isEnabled=!!r&&this.modelElements.some(c=>up(r,c,this.editor.model.schema))}execute(r){const c=this.editor.model,p=c.document,v=r.value;c.change(Z=>{const S=Array.from(p.selection.getSelectedBlocks()).filter(I=>up(I,v,c.schema));for(const I of S)I.is("element",v)||Z.rename(I,v)})}}function up(b,r,c){return c.checkChild(b.parent,r)&&!c.isObject(b)}class Qp extends Qi{static get pluginName(){return"HeadingEditing"}constructor(r){super(r),r.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[Jp]}init(){const r=this.editor,c=r.config.get("heading.options"),p=[];for(const v of c)"paragraph"!==v.model&&(r.model.schema.register(v.model,{inheritAllFrom:"$block"}),r.conversion.elementToElement(v),p.push(v.model));this._addDefaultH1Conversion(r),r.commands.add("heading",new Jm(r,p))}afterInit(){const r=this.editor,c=r.commands.get("enter"),p=r.config.get("heading.options");c&&this.listenTo(c,"afterExecute",(v,Z)=>{const S=r.model.document.selection.getFirstPosition().parent;p.some(I=>S.is("element",I.model))&&!S.is("element","paragraph")&&0===S.childCount&&Z.writer.rename(S,"paragraph")})}_addDefaultH1Conversion(r){r.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:ar.get("low")+1})}}class Gp{constructor(r,c){c&&At(this,c),r&&this.set(r)}}Si(Gp,Ut),u(11);class D3 extends Qi{init(){const r=this.editor,c=r.t,p=function(S){const I=S.t,V={Paragraph:I("Paragraph"),"Heading 1":I("Heading 1"),"Heading 2":I("Heading 2"),"Heading 3":I("Heading 3"),"Heading 4":I("Heading 4"),"Heading 5":I("Heading 5"),"Heading 6":I("Heading 6")};return S.config.get("heading.options").map(it=>{const dt=V[it.title];return dt&&dt!=it.title&&(it.title=dt),it})}(r),v=c("Choose heading"),Z=c("Heading");r.ui.componentFactory.add("heading",S=>{const I={},V=new Ra,it=r.commands.get("heading"),dt=r.commands.get("paragraph"),xt=[it];for(const Ie of p){const rn={type:"button",model:new Gp({label:Ie.title,class:Ie.class,withText:!0})};"paragraph"===Ie.model?(rn.model.bind("isOn").to(dt,"value"),rn.model.set("commandName","paragraph"),xt.push(dt)):(rn.model.bind("isOn").to(it,"value",vn=>vn===Ie.model),rn.model.set({commandName:"heading",commandValue:Ie.model})),V.add(rn),I[Ie.model]=Ie.title}const le=Gu(S);return uh(le,V),le.buttonView.set({isOn:!1,withText:!0,tooltip:Z}),le.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),le.bind("isEnabled").toMany(xt,"isEnabled",(...Ie)=>Ie.some(rn=>rn)),le.buttonView.bind("label").to(it,"value",dt,"value",(Ie,rn)=>{const vn=Ie||rn&&"paragraph";return I[vn]?I[vn]:v}),this.listenTo(le,"execute",Ie=>{r.execute(Ie.source.commandName,Ie.source.commandValue?{value:Ie.source.commandValue}:void 0),r.editing.view.focus()}),le})}}function dp(b){for(const r of b.getChildren())if(r&&r.is("element","caption"))return r;return null}function h2(b){const r=b.parent;return"figcaption"==b.name&&r&&"figure"==r.name&&r.hasClass("image")?{name:!0}:null}class jp extends Qi{static get pluginName(){return"ImageCaptionEditing"}init(){const r=this.editor,c=r.editing.view,v=r.data,Z=r.editing,S=r.t;r.model.schema.register("caption",{allowIn:"image",allowContentOf:"$block",isLimit:!0}),r.model.document.registerPostFixer(V=>this._insertMissingModelCaptionElement(V)),r.conversion.for("upcast").elementToElement({view:h2,model:"caption"}),v.downcastDispatcher.on("insert:caption",g2(V=>V.createContainerElement("figcaption"),!1));const I=(V=c,it=S("Enter image caption"),dt=>{const xt=dt.createEditableElement("figcaption");return dt.setCustomProperty("imageCaption",!0,xt),P_({view:V,element:xt,text:it}),$u(xt,dt)});var V,it;Z.downcastDispatcher.on("insert:caption",g2(I)),Z.downcastDispatcher.on("insert",this._fixCaptionVisibility(V=>V.item),{priority:"high"}),Z.downcastDispatcher.on("remove",this._fixCaptionVisibility(V=>V.position.parent),{priority:"high"}),c.document.registerPostFixer(V=>this._updateCaptionVisibility(V))}_updateCaptionVisibility(r){const c=this.editor.editing.mapper,p=this._lastSelectedCaption;let v;const Z=this.editor.model.document.selection,S=Z.getSelectedElement();if(S&&S.is("element","image")){const V=dp(S);v=c.toViewElement(V)}const I=Zf(Z.getFirstPosition().parent);if(I&&(v=c.toViewElement(I)),v)return p?(p===v||(Wp(p,r),this._lastSelectedCaption=v),$p(v,r)):(this._lastSelectedCaption=v,$p(v,r));if(p){const V=Wp(p,r);return this._lastSelectedCaption=null,V}return!1}_fixCaptionVisibility(r){return(c,p,v)=>{const Z=Zf(r(p)),I=v.writer;if(Z){const V=this.editor.editing.mapper.toViewElement(Z);V&&(Z.childCount?I.removeClass("ck-hidden",V):I.addClass("ck-hidden",V))}}}_insertMissingModelCaptionElement(r){const c=this.editor.model,p=c.document.differ.getChanges(),v=[];for(const Z of p)if("insert"==Z.type&&"$text"!=Z.name){const S=Z.position.nodeAfter;if(S.is("element","image")&&!dp(S)&&v.push(S),!S.is("element","image")&&S.childCount)for(const I of c.createRangeIn(S).getItems())I.is("element","image")&&!dp(I)&&v.push(I)}for(const Z of v)r.appendElement("caption",Z);return!!v.length}}function g2(b,r=!0){return(c,p,v)=>{const Z=p.item;if((Z.childCount||r)&&Bd(Z.parent)){if(!v.consumable.consume(p.item,"insert"))return;const S=v.mapper.toViewElement(p.range.start.parent),I=b(v.writer),V=v.writer;Z.childCount||V.addClass("ck-hidden",I),function(it,dt,xt,le){const Ie=le.writer.createPositionAt(xt,"end");le.writer.insert(Ie,it),le.mapper.bindElements(dt,it)}(I,p.item,S,v)}}}function Zf(b){const r=b.getAncestors({includeSelf:!0}).find(c=>"caption"==c.name);return r&&r.parent&&"image"==r.parent.name?r:null}function Wp(b,r){return!b.childCount&&!b.hasClass("ck-hidden")&&(r.addClass("ck-hidden",b),!0)}function $p(b,r){return!!b.hasClass("ck-hidden")&&(r.removeClass("ck-hidden",b),!0)}u(72);class Uu extends da{constructor(r,c){super(r),this.defaultStyle=!1,this.styles=c.reduce((p,v)=>(p[v.name]=v,v.isDefault&&(this.defaultStyle=v.name),p),{})}refresh(){const r=this.editor.model.document.selection.getSelectedElement();if(this.isEnabled=Bd(r),r)if(r.hasAttribute("imageStyle")){const c=r.getAttribute("imageStyle");this.value=!!this.styles[c]&&c}else this.value=this.defaultStyle;else this.value=!1}execute(r){const c=r.value,p=this.editor.model,v=p.document.selection.getSelectedElement();p.change(Z=>{this.styles[c].isDefault?Z.removeAttribute("imageStyle",v):Z.setAttribute("imageStyle",c,v)})}}function Qm(b,r){for(const c of r)if(c.name===b)return c}var Kp='',Xp='',zh='',pp='';const Gm={full:{name:"full",title:"Full size image",icon:Kp,isDefault:!0},side:{name:"side",title:"Side image",icon:pp,className:"image-style-side"},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:Xp,className:"image-style-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:zh,className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:pp,className:"image-style-align-right"}},jm={full:Kp,left:Xp,right:pp,center:zh};function v2(b=[]){return b.map(Wm)}function Wm(b){if("string"==typeof b){const r=b;Gm[r]?b=Object.assign({},Gm[r]):(console.warn(Object(En.a)("image-style-not-found: There is no such image style of given name."),{name:r}),b={name:r})}else if(Gm[b.name]){const r=Gm[b.name],c=Object.assign({},b);for(const p in r)Object.prototype.hasOwnProperty.call(b,p)||(c[p]=r[p]);b=c}return"string"==typeof b.icon&&jm[b.icon]&&(b.icon=jm[b.icon]),b}class b2 extends Qi{static get pluginName(){return"ImageStyleEditing"}init(){const r=this.editor,c=r.model.schema,p=r.data,v=r.editing;r.config.define("image.styles",["full","side"]);const Z=v2(r.config.get("image.styles"));c.extend("image",{allowAttributes:"imageStyle"});const S=(I=Z,(V,it,dt)=>{if(!dt.consumable.consume(it.item,V.name))return;const xt=Qm(it.attributeNewValue,I),le=Qm(it.attributeOldValue,I),Ie=dt.mapper.toViewElement(it.item),rn=dt.writer;le&&rn.removeClass(le.className,Ie),xt&&rn.addClass(xt.className,Ie)});var I;v.downcastDispatcher.on("attribute:imageStyle:image",S),p.downcastDispatcher.on("attribute:imageStyle:image",S),p.upcastDispatcher.on("element:figure",function(I){const V=I.filter(it=>!it.isDefault);return(it,dt,xt)=>{if(!dt.modelRange)return;const le=dt.viewItem,Ie=zc(dt.modelRange.getItems());if(xt.schema.checkAttribute(Ie,"imageStyle"))for(const rn of V)xt.consumable.consume(le,{classes:rn.className})&&xt.writer.setAttribute("imageStyle",rn.name,Ie)}}(Z),{priority:"low"}),r.commands.add("imageStyle",new Uu(r,Z))}}u(74);class tu extends Qi{static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const r=this.editor.t;return{"Full size image":r("Full size image"),"Side image":r("Side image"),"Left aligned image":r("Left aligned image"),"Centered image":r("Centered image"),"Right aligned image":r("Right aligned image")}}init(){const r=function(c,p){for(const v of c)p[v.title]&&(v.title=p[v.title]);return c}(v2(this.editor.config.get("image.styles")),this.localizedDefaultStylesTitles);for(const c of r)this._createButton(c)}_createButton(r){const c=this.editor;c.ui.componentFactory.add("imageStyle:"+r.name,v=>{const Z=c.commands.get("imageStyle"),S=new Hr(v);return S.set({label:r.title,icon:r.icon,tooltip:!0,isToggleable:!0}),S.bind("isEnabled").to(Z,"isEnabled"),S.bind("isOn").to(Z,"value",I=>I===r.name),this.listenTo(S,"execute",()=>{c.execute("imageStyle",{value:r.name}),c.editing.view.focus()}),S})}}class mp extends Qi{static get requires(){return[Jc]}static get pluginName(){return"WidgetToolbarRepository"}init(){const r=this.editor;if(r.plugins.has("BalloonToolbar")){const c=r.plugins.get("BalloonToolbar");this.listenTo(c,"show",p=>{(function(v){const Z=v.getSelectedElement();return!(!Z||!$l(Z))})(r.editing.view.document.selection)&&p.stop()},{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(r.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(r.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const r of this._toolbarDefinitions.values())r.view.destroy()}register(r,{ariaLabel:c,items:p,getRelatedElement:v,balloonClassName:Z="ck-toolbar-container"}){if(!p.length)return void console.warn(Object(En.a)("widget-toolbar-no-items: Trying to register a toolbar without items."),{toolbarId:r});const S=this.editor,I=S.t,V=new Zm(S.locale);if(V.ariaLabel=c||I("Widget toolbar"),this._toolbarDefinitions.has(r))throw new En.b("widget-toolbar-duplicated: Toolbar with the given id was already added.",this,{toolbarId:r});V.fillFromConfig(p,S.ui.componentFactory),this._toolbarDefinitions.set(r,{view:V,getRelatedElement:v,balloonClassName:Z})}_updateToolbarsVisibility(){let r=0,c=null,p=null;for(const v of this._toolbarDefinitions.values()){const Z=v.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&Z)if(this.editor.ui.focusTracker.isFocused){const S=Z.getAncestors().length;S>r&&(r=S,c=Z,p=v)}else this._isToolbarVisible(v)&&this._hideToolbar(v);else this._isToolbarInBalloon(v)&&this._hideToolbar(v)}p&&this._showToolbar(p,c)}_hideToolbar(r){this._balloon.remove(r.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(r,c){this._isToolbarVisible(r)?C2(this.editor,c):this._isToolbarInBalloon(r)||(this._balloon.add({view:r.view,position:wf(this.editor,c),balloonClassName:r.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const p of this._toolbarDefinitions.values())if(this._isToolbarVisible(p)){const v=p.getRelatedElement(this.editor.editing.view.document.selection);C2(this.editor,v)}}))}_isToolbarVisible(r){return this._balloon.visibleView===r.view}_isToolbarInBalloon(r){return this._balloon.hasView(r.view)}}function C2(b,r){const c=b.plugins.get("ContextualBalloon"),p=wf(b,r);c.updatePosition(p)}function wf(b,r){const p=pa.defaultPositions;return{target:b.editing.view.domConverter.mapViewToDom(r),positions:[p.northArrowSouth,p.northArrowSouthWest,p.northArrowSouthEast,p.southArrowNorth,p.southArrowNorthWest,p.southArrowNorthEast,wc]}}class x2 extends da{constructor(r){super(r),this._childCommands=[]}refresh(){}execute(...r){return this._getFirstEnabledCommand().execute(r)}registerChildCommand(r){this._childCommands.push(r),r.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){return this._childCommands.find(r=>r.isEnabled)}}class y2 extends Qi{static get pluginName(){return"IndentEditing"}init(){const r=this.editor;r.commands.add("indent",new x2(r)),r.commands.add("outdent",new x2(r))}}var Mf='',T2='';class tm extends Qi{static get pluginName(){return"IndentUI"}init(){const r=this.editor,c=r.locale,p=r.t,v="ltr"==c.uiLanguageDirection?Mf:T2,Z="ltr"==c.uiLanguageDirection?T2:Mf;this._defineButton("indent",p("Increase indent"),v),this._defineButton("outdent",p("Decrease indent"),Z)}_defineButton(r,c,p){const v=this.editor;v.ui.componentFactory.add(r,Z=>{const S=v.commands.get(r),I=new Hr(Z);return I.set({label:c,icon:p,tooltip:!0}),I.bind("isOn","isEnabled").to(S,"value","isEnabled"),this.listenTo(I,"execute",()=>{v.execute(r),v.editing.view.focus()}),I})}}class $m extends dd{constructor(r){super(r),this.domEventType="click"}onDomEvent(r){this.fire(r.type,r)}}u(76);class Mg extends Oo{constructor(r,c,p){super(r);const v=r.t;this.focusTracker=new ws,this.keystrokes=new _u,this.urlInputView=this._createUrlInput(p),this.saveButtonView=this._createButton(v("Save"),r2,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(v("Cancel"),zm,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(c),this.children=this._createFormChildren(c.manualDecorators),this._focusables=new Zl,this._focusCycler=new f1({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const Z=["ck","ck-link-form"];c.manualDecorators.length&&Z.push("ck-link-form_layout-vertical"),this.setTemplate({tag:"form",attributes:{class:Z,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((r,c)=>(r[c.name]=c.isOn,r),{})}render(){super.render(),Ym({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)}),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createUrlInput(r="https://"){const c=this.locale.t,p=new Vp(this.locale,Tf);return p.label=c("Link URL"),p.fieldView.placeholder=r+"example.com",p}_createButton(r,c,p,v){const Z=new Hr(this.locale);return Z.set({label:r,icon:c,tooltip:!0}),Z.extendTemplate({attributes:{class:p}}),v&&Z.delegate("execute").to(this,v),Z}_createManualDecoratorSwitches(r){const c=this.createCollection();for(const p of r.manualDecorators){const v=new Ep(this.locale);v.set({name:p.id,label:p.label,withText:!0}),v.bind("isOn").toMany([p,r],"value",(Z,S)=>void 0===S&&void 0===Z?p.defaultValue:Z),v.on("execute",()=>{p.set("value",!v.isOn)}),c.add(v)}return c}_createFormChildren(r){const c=this.createCollection();if(c.add(this.urlInputView),r.length){const p=new Oo;p.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(v=>({tag:"li",children:[v],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),c.add(p)}return c.add(this.saveButtonView),c.add(this.cancelButtonView),c}}u(78);class w extends Oo{constructor(r){super(r);const c=r.t;this.focusTracker=new ws,this.keystrokes=new _u,this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(c("Unlink"),'',"unlink"),this.editButtonView=this._createButton(c("Edit link"),'',"edit"),this.set("href"),this._focusables=new Zl,this._focusCycler=new f1({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)}),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createButton(r,c,p){const v=new Hr(this.locale);return v.set({label:r,icon:c,tooltip:!0}),v.delegate("execute").to(this,p),v}_createPreviewButton(){const r=new Hr(this.locale),c=this.bindTemplate,p=this.t;return r.set({withText:!0,tooltip:p("Open link in new tab")}),r.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:c.to("href",v=>v&&j_(v)),target:"_blank",rel:"noopener noreferrer"}}),r.bind("label").to(this,"href",v=>v||p("This link has no URL")),r.bind("isEnabled").to(this,"href",v=>!!v),r.template.tag="a",r.template.eventListeners={},r}}const E=/^((\w+:(\/{2,})?)|(\W))/i,tt=/[\w-]+@[\w-]+\.+[\w-]+/i;class zt extends Qi{static get requires(){return[Jc]}static get pluginName(){return"LinkUI"}init(){const r=this.editor;r.editing.view.addObserver($m),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=r.plugins.get(Jc),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),r.conversion.for("editingDowncast").markerToHighlight({model:"link-ui",view:{classes:["ck-fake-link-selection"]}}),r.conversion.for("editingDowncast").markerToElement({model:"link-ui",view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView.destroy()}_createActionsView(){const r=this.editor,c=new w(r.locale),p=r.commands.get("link"),v=r.commands.get("unlink");return c.bind("href").to(p,"value"),c.editButtonView.bind("isEnabled").to(p),c.unlinkButtonView.bind("isEnabled").to(v),this.listenTo(c,"edit",()=>{this._addFormView()}),this.listenTo(c,"unlink",()=>{r.execute("unlink"),this._hideUI()}),c.keystrokes.set("Esc",(Z,S)=>{this._hideUI(),S()}),c.keystrokes.set("Ctrl+K",(Z,S)=>{this._addFormView(),S()}),c}_createFormView(){const r=this.editor,c=r.commands.get("link"),p=r.config.get("link.defaultProtocol"),v=new Mg(r.locale,c,p);return v.urlInputView.fieldView.bind("value").to(c,"value"),v.urlInputView.bind("isReadOnly").to(c,"isEnabled",Z=>!Z),v.saveButtonView.bind("isEnabled").to(c),this.listenTo(v,"submit",()=>{const{value:Z}=v.urlInputView.fieldView.element,S=!!p&&!E.test(Z),I=tt.test(Z);r.execute("link",Z&&S?(I?"mailto:":p)+Z:Z,v.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(v,"cancel",()=>{this._closeFormView()}),v.keystrokes.set("Esc",(Z,S)=>{this._closeFormView(),S()}),v}_createToolbarLinkButton(){const r=this.editor,c=r.commands.get("link"),p=r.t;r.keystrokes.set("Ctrl+K",(v,Z)=>{Z(),this._showUI(!0)}),r.ui.componentFactory.add("link",v=>{const Z=new Hr(v);return Z.isEnabled=!0,Z.label=p("Link"),Z.icon='',Z.keystroke="Ctrl+K",Z.tooltip=!0,Z.isToggleable=!0,Z.bind("isEnabled").to(c,"isEnabled"),Z.bind("isOn").to(c,"value",S=>!!S),this.listenTo(Z,"execute",()=>this._showUI(!0)),Z})}_enableUserBalloonInteractions(){this.listenTo(this.editor.editing.view.document,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),this.editor.keystrokes.set("Tab",(c,p)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),p())},{priority:"high"}),this.editor.keystrokes.set("Esc",(c,p)=>{this._isUIVisible&&(this._hideUI(),p())}),Um({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this._isFormInPanel)return;const r=this.editor.commands.get("link");this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.urlInputView.fieldView.element.value=r.value||""}_closeFormView(){const r=this.editor.commands.get("link");r.restoreManualDecoratorStates(),void 0!==r.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(r=!1){this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),r&&this._balloon.showStack("main")):(this._addActionsView(),r&&this._balloon.showStack("main"),this._addFormView(),this._showFakeVisualSelection()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const r=this.editor;this.stopListening(r.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),r.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const r=this.editor,c=r.editing.view.document;let p=this._getSelectedLinkElement(),v=S();const Z=()=>{const I=this._getSelectedLinkElement(),V=S();p&&!I||!p&&V!==v?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),p=I,v=V};function S(){return c.selection.focus.getAncestors().reverse().find(I=>I.is("element"))}this.listenTo(r.ui,"update",Z),this.listenTo(this._balloon,"change:visibleView",Z)}get _isFormInPanel(){return this._balloon.hasView(this.formView)}get _areActionsInPanel(){return this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const r=this.editor.editing.view,c=r.document,p=this._getSelectedLinkElement();return{target:p?r.domConverter.mapViewToDom(p):r.domConverter.viewRangeToDom(c.selection.getFirstRange())}}_getSelectedLinkElement(){const r=this.editor.editing.view,c=r.document.selection;if(c.isCollapsed)return Ue(c.getFirstPosition());{const p=c.getFirstRange().getTrimmed(),v=Ue(p.start),Z=Ue(p.end);return v&&v==Z&&r.createRangeIn(v).getTrimmed().isEqual(p)?v:null}}_showFakeVisualSelection(){const r=this.editor.model;r.change(c=>{r.markers.has("link-ui")?c.updateMarker("link-ui",{range:r.document.selection.getFirstRange()}):c.addMarker("link-ui",{usingOperation:!1,affectsData:!1,range:r.document.selection.getFirstRange()})})}_hideFakeVisualSelection(){const r=this.editor.model;r.markers.has("link-ui")&&r.change(c=>{c.removeMarker("link-ui")})}}function Ue(b){return b.getAncestors().find(r=>{return(c=r).is("attributeElement")&&!!c.getCustomProperty("link");var c})}class nn extends da{constructor(r,c){super(r),this.type=c}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){const r=this.editor.model,p=Array.from(r.document.selection.getSelectedBlocks()).filter(Z=>Yn(Z,r.schema)),v=!0===this.value;r.change(Z=>{if(v){let S=p[p.length-1].nextSibling,I=Number.POSITIVE_INFINITY,V=[];for(;S&&"listItem"==S.name&&0!==S.getAttribute("listIndent");){const it=S.getAttribute("listIndent");it=c;)Z>v.getAttribute("listIndent")&&(Z=v.getAttribute("listIndent")),v.getAttribute("listIndent")==Z&&b[r?"unshift":"push"](v),v=v[r?"previousSibling":"nextSibling"]}}function Yn(b,r){return r.checkChild(b.parent,"listItem")&&!r.isObject(b)}class Bn extends da{constructor(r,c){super(r),this._indentBy="forward"==c?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const r=this.editor.model;let p=Array.from(r.document.selection.getSelectedBlocks());r.change(v=>{const Z=p[p.length-1];let S=Z.nextSibling;for(;S&&"listItem"==S.name&&S.getAttribute("listIndent")>Z.getAttribute("listIndent");)p.push(S),S=S.nextSibling;this._indentBy<0&&(p=p.reverse());for(const I of p){const V=I.getAttribute("listIndent")+this._indentBy;V<0?v.rename(I,"paragraph"):v.setAttribute("listIndent",V,I)}})}_checkEnabled(){const r=zc(this.editor.model.document.selection.getSelectedBlocks());if(!r||!r.is("element","listItem"))return!1;if(this._indentBy>0){const c=r.getAttribute("listIndent"),p=r.getAttribute("listType");let v=r.previousSibling;for(;v&&v.is("element","listItem")&&v.getAttribute("listIndent")>=c;){if(v.getAttribute("listIndent")==c)return v.getAttribute("listType")==p;v=v.previousSibling}return!1}return!0}}function wi(b,r,c,p){const v=r.parent,Z=c.mapper,S=c.writer;let I=Z.toViewPosition(p.createPositionBefore(b));const V=io(b.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:b.getAttribute("listIndent")}),it=b.previousSibling;if(V&&V.getAttribute("listIndent")==b.getAttribute("listIndent")){const dt=Z.toViewElement(V);I=S.breakContainer(S.createPositionAfter(dt))}else if(it&&"listItem"==it.name){I=Z.toViewPosition(p.createPositionAt(it,"end"));const dt=Z.findMappedViewAncestor(I),xt=function(le){for(const Ie of le.getChildren())if("ul"==Ie.name||"ol"==Ie.name)return Ie;return null}(dt);I=xt?S.createPositionBefore(xt):S.createPositionAt(dt,"end")}else I=Z.toViewPosition(p.createPositionBefore(b));if(I=Wi(I),S.insert(I,v),it&&"listItem"==it.name){const dt=Z.toViewElement(it),xt=S.createRange(S.createPositionAt(dt,0),I).getWalker({ignoreElementEnd:!0});for(const le of xt)if(le.item.is("element","li")){const Ie=S.breakContainer(S.createPositionBefore(le.item)),rn=le.item.parent,vn=S.createPositionAt(r,"end");Ui(S,vn.nodeBefore,vn.nodeAfter),S.move(S.createRangeOn(rn),vn),xt.position=Ie}}else{const dt=v.nextSibling;if(dt&&(dt.is("element","ul")||dt.is("element","ol"))){let xt=null;for(const le of dt.getChildren()){const Ie=Z.toModelElement(le);if(!(Ie&&Ie.getAttribute("listIndent")>b.getAttribute("listIndent")))break;xt=le}xt&&(S.breakContainer(S.createPositionAfter(xt)),S.move(S.createRangeOn(xt.parent),S.createPositionAt(r,"end")))}}Ui(S,v,v.nextSibling),Ui(S,v.previousSibling,v)}function Ui(b,r,c){return!r||!c||"ul"!=r.name&&"ol"!=r.name||r.name!=c.name||r.getAttribute("class")!==c.getAttribute("class")?null:b.mergeContainers(b.createPositionAfter(r))}function Wi(b){return b.getLastMatchingPosition(r=>r.item.is("uiElement"))}function io(b,r){const c=!!r.sameIndent,p=!!r.smallerIndent,v=r.listIndent;let Z=b;for(;Z&&"listItem"==Z.name;){const S=Z.getAttribute("listIndent");if(c&&v==S||p&&v>S)return Z;Z=Z.previousSibling}return null}function To(b,r,c,p){b.ui.componentFactory.add(r,v=>{const Z=b.commands.get(r),S=new Hr(v);return S.set({label:c,icon:p,tooltip:!0,isToggleable:!0}),S.bind("isOn","isEnabled").to(Z,"value","isEnabled"),S.on("execute",()=>{b.execute(r),b.editing.view.focus()}),S})}function wo(){const b=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||b?0:Fl.call(this)}function vo(b){return(r,c,p)=>{const v=p.consumable;if(!v.test(c.item,"insert")||!v.test(c.item,"attribute:listType")||!v.test(c.item,"attribute:listIndent"))return;v.consume(c.item,"insert"),v.consume(c.item,"attribute:listType"),v.consume(c.item,"attribute:listIndent");const Z=c.item;wi(Z,function Mi(b,r){const c=r.mapper,p=r.writer,v="numbered"==b.getAttribute("listType")?"ol":"ul",Z=function(I){const V=I.createContainerElement("li");return V.getFillerOffset=wo,V}(p),S=p.createContainerElement(v,null);return p.insert(p.createPositionAt(S,0),Z),c.bindElements(b,Z),Z}(Z,p),p,b)}}function sa(b,r,c){if(!c.consumable.consume(r.item,"attribute:listType"))return;const p=c.mapper.toViewElement(r.item),v=c.writer;v.breakContainer(v.createPositionBefore(p)),v.breakContainer(v.createPositionAfter(p)),v.rename("numbered"==r.attributeNewValue?"ol":"ul",p.parent)}function Go(b,r,c){const p=c.mapper.toViewElement(r.item).parent,v=c.writer;Ui(v,p,p.nextSibling),Ui(v,p.previousSibling,p);for(const Z of r.item.getChildren())c.consumable.consume(Z,"insert")}function Qc(b,r,c){if("listItem"!=r.item.name){let p=c.mapper.toViewPosition(r.range.start);const v=c.writer,Z=[];for(;("ul"==p.parent.name||"ol"==p.parent.name)&&(p=v.breakContainer(p),"li"==p.parent.name);){const S=p,I=v.createPositionAt(p.parent,"end");if(!S.isEqual(I)){const V=v.remove(v.createRange(S,I));Z.push(V)}p=v.createPositionAfter(p.parent)}if(Z.length>0){for(let S=0;S0){const V=Ui(v,I,I.nextSibling);V&&V.parent==I&&p.offset--}}Ui(v,p.nodeBefore,p.nodeAfter)}}}function gs(b,r,c){const p=c.mapper.toViewPosition(r.position);Ui(c.writer,p.nodeBefore,p.nodeAfter)}function pc(b,r,c){if(c.consumable.consume(r.viewItem,{name:!0})){const p=c.writer,v=p.createElement("listItem"),Z=function(it){let dt=0,xt=it.parent;for(;xt;){if(xt.is("element","li"))dt++;else{const le=xt.previousSibling;le&&le.is("element","li")&&dt++}xt=xt.parent}return dt}(r.viewItem);p.setAttribute("listIndent",Z,v),p.setAttribute("listType",r.viewItem.parent&&"ol"==r.viewItem.parent.name?"numbered":"bulleted",v);const I=c.splitToAllowedParent(v,r.modelCursor);if(!I)return;p.insert(v,I.position);const V=function(it,dt,xt){const{writer:le,schema:Ie}=xt;let rn=le.createPositionAfter(it);for(const vn of dt)if("ul"==vn.name||"ol"==vn.name)rn=xt.convertItem(vn,rn).modelCursor;else{const wn=xt.convertItem(vn,le.createPositionAt(it,"end")),qn=wn.modelRange.start.nodeAfter;qn&&qn.is("element")&&!Ie.checkChild(it,qn.name)&&(it=wn.modelCursor.parent.is("element","listItem")?wn.modelCursor.parent:A2(wn.modelCursor),rn=le.createPositionAfter(it))}return rn}(v,r.viewItem.getChildren(),c);r.modelRange=p.createRange(r.modelCursor,V),r.modelCursor=I.cursorParent?p.createPositionAt(I.cursorParent,0):r.modelRange.end}}function Tr(b,r,c){if(c.consumable.test(r.viewItem,{name:!0})){const p=Array.from(r.viewItem.getChildren());for(const v of p)!v.is("element","li")&&!td(v)&&v._remove()}}function mc(b,r,c){if(c.consumable.test(r.viewItem,{name:!0})){if(0===r.viewItem.childCount)return;const p=[...r.viewItem.getChildren()];let v=!1,Z=!0;for(const S of p)v&&!td(S)&&S._remove(),S.is("$text")?(Z&&(S._data=S.data.replace(/^\s+/,"")),S.nextSibling&&!td(S.nextSibling)||(S._data=S.data.replace(/\s+$/,""))):td(S)&&(v=!0),Z=!1}}function _c(b){return(r,c)=>{if(c.isPhantom)return;const p=c.modelPosition.nodeBefore;if(p&&p.is("element","listItem")){const v=c.mapper.toViewElement(p),Z=v.getAncestors().find(td),S=b.createPositionAt(v,0).getWalker();for(const I of S){if("elementStart"==I.type&&I.item.is("element","li")){c.viewPosition=I.previousPosition;break}if("elementEnd"==I.type&&I.item==Z){c.viewPosition=I.nextPosition;break}}}}}function D1(b,[r,c]){let p,v=r.is("documentFragment")?r.getChild(0):r;if(p=c?this.createSelection(c):this.document.selection,v&&v.is("element","listItem")){const Z=p.getFirstPosition();let S=null;if(Z.parent.is("element","listItem")?S=Z.parent:Z.nodeBefore&&Z.nodeBefore.is("element","listItem")&&(S=Z.nodeBefore),S){const I=S.getAttribute("listIndent");if(I>0)for(;v&&v.is("element","listItem");)v._setAttribute("listIndent",v.getAttribute("listIndent")+I),v=v.nextSibling}}}function A2(b){const r=new js({startPosition:b});let c;do{c=r.next()}while(!c.value.item.is("element","listItem"));return c.value.item}function Km(b,r,c,p,v,Z){const S=io(r.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:b,foo:"b"}),I=v.mapper,V=v.writer,it=S?S.getAttribute("listIndent"):null;let dt;if(S)if(it==b){const xt=I.toViewElement(S).parent;dt=V.createPositionAfter(xt)}else{const xt=Z.createPositionAt(S,"end");dt=I.toViewPosition(xt)}else dt=c;dt=Wi(dt);for(const xt of[...p.getChildren()])td(xt)&&(dt=V.move(V.createRangeOn(xt),dt).end,Ui(V,xt,xt.nextSibling),Ui(V,xt.previousSibling,xt))}function td(b){return b.is("element","ol")||b.is("element","ul")}class Dg extends Qi{static get pluginName(){return"ListEditing"}static get requires(){return[Jp]}init(){const r=this.editor;r.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const c=r.data,p=r.editing;var v;r.model.document.registerPostFixer(I=>function(V,it){const dt=V.document.differ.getChanges(),xt=new Map;let le=!1;for(const wn of dt)if("insert"==wn.type&&"listItem"==wn.name)Ie(wn.position);else if("insert"==wn.type&&"listItem"!=wn.name){if("$text"!=wn.name){const qn=wn.position.nodeAfter;qn.hasAttribute("listIndent")&&(it.removeAttribute("listIndent",qn),le=!0),qn.hasAttribute("listType")&&(it.removeAttribute("listType",qn),le=!0);for(const mi of Array.from(V.createRangeIn(qn)).filter(xi=>xi.item.is("element","listItem")))Ie(mi.previousPosition)}Ie(wn.position.getShiftedBy(wn.length))}else"remove"==wn.type&&"listItem"==wn.name?Ie(wn.position):("attribute"==wn.type&&"listIndent"==wn.attributeKey||"attribute"==wn.type&&"listType"==wn.attributeKey)&&Ie(wn.range.start);for(const wn of xt.values())rn(wn),vn(wn);return le;function Ie(wn){const qn=wn.nodeBefore;if(qn&&qn.is("element","listItem")){let mi=qn;if(xt.has(mi))return;for(let xi=mi.previousSibling;xi&&xi.is("element","listItem");xi=mi.previousSibling)if(mi=xi,xt.has(mi))return;xt.set(qn,mi)}else{const mi=wn.nodeAfter;mi&&mi.is("element","listItem")&&xt.set(mi,mi)}}function rn(wn){let qn=0,mi=null;for(;wn&&wn.is("element","listItem");){const xi=wn.getAttribute("listIndent");if(xi>qn){let Vi;null===mi?(mi=xi-qn,Vi=qn):(mi>xi&&(mi=xi),Vi=xi-mi),it.setAttribute("listIndent",Vi,wn),le=!0}else mi=null,qn=wn.getAttribute("listIndent")+1;wn=wn.nextSibling}}function vn(wn){let qn=[],mi=null;for(;wn&&wn.is("element","listItem");){const xi=wn.getAttribute("listIndent");if(mi&&mi.getAttribute("listIndent")>xi&&(qn=qn.slice(0,xi+1)),0!=xi)if(qn[xi]){const Vi=qn[xi];wn.getAttribute("listType")!=Vi&&(it.setAttribute("listType",Vi,wn),le=!0)}else qn[xi]=wn.getAttribute("listType");mi=wn,wn=wn.nextSibling}}}(r.model,I)),p.mapper.registerViewToModelLength("li",Df),c.mapper.registerViewToModelLength("li",Df),p.mapper.on("modelToViewPosition",_c(p.view)),p.mapper.on("viewToModelPosition",(v=r.model,(I,V)=>{const it=V.viewPosition,dt=it.parent,xt=V.mapper;if("ul"==dt.name||"ol"==dt.name){if(it.isAtEnd){const le=xt.toModelElement(it.nodeBefore),Ie=xt.getModelLength(it.nodeBefore);V.modelPosition=v.createPositionBefore(le).getShiftedBy(Ie)}else{const le=xt.toModelElement(it.nodeAfter);V.modelPosition=v.createPositionBefore(le)}I.stop()}else if("li"==dt.name&&it.nodeBefore&&("ul"==it.nodeBefore.name||"ol"==it.nodeBefore.name)){const le=xt.toModelElement(dt);let Ie=1,rn=it.nodeBefore;for(;rn&&td(rn);)Ie+=xt.getModelLength(rn),rn=rn.previousSibling;V.modelPosition=v.createPositionBefore(le).getShiftedBy(Ie),I.stop()}})),c.mapper.on("modelToViewPosition",_c(p.view)),r.conversion.for("editingDowncast").add(I=>{var V;I.on("insert",Qc,{priority:"high"}),I.on("insert:listItem",vo(r.model)),I.on("attribute:listType:listItem",sa,{priority:"high"}),I.on("attribute:listType:listItem",Go,{priority:"low"}),I.on("attribute:listIndent:listItem",(V=r.model,(it,dt,xt)=>{if(!xt.consumable.consume(dt.item,"attribute:listIndent"))return;const le=xt.mapper.toViewElement(dt.item),Ie=xt.writer;Ie.breakContainer(Ie.createPositionBefore(le)),Ie.breakContainer(Ie.createPositionAfter(le));const rn=le.parent,vn=rn.previousSibling,wn=Ie.createRangeOn(rn);Ie.remove(wn),vn&&vn.nextSibling&&Ui(Ie,vn,vn.nextSibling),Km(dt.attributeOldValue+1,dt.range.start,wn.start,le,xt,V),wi(dt.item,le,xt,V);for(const qn of dt.item.getChildren())xt.consumable.consume(qn,"insert")})),I.on("remove:listItem",function(V){return(it,dt,xt)=>{const le=xt.mapper.toViewPosition(dt.position).getLastMatchingPosition(mi=>!mi.item.is("element","li")).nodeAfter,Ie=xt.writer;Ie.breakContainer(Ie.createPositionBefore(le)),Ie.breakContainer(Ie.createPositionAfter(le));const rn=le.parent,vn=rn.previousSibling,wn=Ie.createRangeOn(rn),qn=Ie.remove(wn);vn&&vn.nextSibling&&Ui(Ie,vn,vn.nextSibling),Km(xt.mapper.toModelElement(le).getAttribute("listIndent")+1,dt.position,wn.start,le,xt,V);for(const mi of Ie.createRangeIn(qn).getItems())xt.mapper.unbindViewElement(mi);it.stop()}}(r.model)),I.on("remove",gs,{priority:"low"})}),r.conversion.for("dataDowncast").add(I=>{I.on("insert",Qc,{priority:"high"}),I.on("insert:listItem",vo(r.model))}),r.conversion.for("upcast").add(I=>{I.on("element:ul",Tr,{priority:"high"}),I.on("element:ol",Tr,{priority:"high"}),I.on("element:li",mc,{priority:"high"}),I.on("element:li",pc)}),r.model.on("insertContent",D1,{priority:"high"}),r.commands.add("numberedList",new nn(r,"numbered")),r.commands.add("bulletedList",new nn(r,"bulleted")),r.commands.add("indentList",new Bn(r,"forward")),r.commands.add("outdentList",new Bn(r,"backward"));const Z=p.view.document;this.listenTo(Z,"enter",(I,V)=>{const it=this.editor.model.document,dt=it.selection.getLastPosition().parent;it.selection.isCollapsed&&"listItem"==dt.name&&dt.isEmpty&&(this.editor.execute("outdentList"),V.preventDefault(),I.stop())}),this.listenTo(Z,"delete",(I,V)=>{if("backward"!==V.direction)return;const it=this.editor.model.document.selection;if(!it.isCollapsed)return;const dt=it.getFirstPosition();if(!dt.isAtStart)return;const xt=dt.parent;"listItem"===xt.name&&(xt.previousSibling&&"listItem"===xt.previousSibling.name||(this.editor.execute("outdentList"),V.preventDefault(),I.stop()))},{priority:"high"});const S=I=>(V,it)=>{this.editor.commands.get(I).isEnabled&&(this.editor.execute(I),it())};r.keystrokes.set("Tab",S("indentList")),r.keystrokes.set("Shift+Tab",S("outdentList"))}afterInit(){const r=this.editor.commands,c=r.get("indent"),p=r.get("outdent");c&&c.registerChildCommand(r.get("indentList")),p&&p.registerChildCommand(r.get("outdentList"))}}function Df(b){let r=1;for(const c of b.getChildren())if("ul"==c.name||"ol"==c.name)for(const p of c.getChildren())r+=Df(p);return r}class P3 extends Qi{init(){const r=this.editor.t;To(this.editor,"numberedList",r("Numbered List"),''),To(this.editor,"bulletedList",r("Bulleted List"),'')}}function Pf(b,r){return p=>{p.on("attribute:url:media",c)};function c(p,v,Z){if(!Z.consumable.consume(v.item,p.name))return;const S=v.attributeNewValue,I=Z.writer,V=Z.mapper.toViewElement(v.item),it=[...V.getChildren()].find(xt=>xt.getCustomProperty("media-content"));I.remove(it);const dt=b.getMediaViewElement(I,S,r);I.insert(I.createPositionAt(V,0),dt)}}function Vh(b,r,c,p){const v=b.createContainerElement("figure",{class:"media"});return b.insert(b.createPositionAt(v,0),r.getMediaViewElement(b,c,p)),v}function Bh(b){const r=b.getSelectedElement();return r&&r.is("element","media")?r:null}function Pg(b,r,c){b.change(p=>{const v=p.createElement("media",{url:r});b.insertContent(v,c),p.setSelection(v,"on")})}class Jh extends da{refresh(){const r=this.editor.model,c=r.document.selection,p=r.schema,v=c.getFirstPosition(),Z=Bh(c);let S=v.parent;S!=S.root&&(S=S.parent),this.value=Z?Z.getAttribute("url"):null,this.isEnabled=p.checkChild(S,"media")}execute(r){const c=this.editor.model,p=c.document.selection,v=Bh(p);if(v)c.change(Z=>{Z.setAttribute("url",r,v)});else{const Z=xd(p,c);Pg(c,r,Z)}}}class Sg{constructor(r,c){const p=c.providers,v=c.extraProviders||[],Z=new Set(c.removeProviders),S=p.concat(v).filter(I=>{const V=I.name;return V?!Z.has(V):(console.warn(Object(En.a)("media-embed-no-provider-name: The configured media provider has no name and cannot be used."),{provider:I}),!1)});this.locale=r,this.providerDefinitions=S}hasMedia(r){return!!this._getMedia(r)}getMediaViewElement(r,c,p){return this._getMedia(c).getViewElement(r,p)}_getMedia(r){if(!r)return new S3(this.locale);r=r.trim();for(const c of this.providerDefinitions){const p=c.html;let v=c.url;Array.isArray(v)||(v=[v]);for(const Z of v){const S=this._getUrlMatches(r,Z);if(S)return new S3(this.locale,r,S,p)}}return null}_getUrlMatches(r,c){let p=r.match(c);if(p)return p;let v=r.replace(/^https?:\/\//,"");return p=v.match(c),p||(v=v.replace(/^www\./,""),p=v.match(c),p||null)}}class S3{constructor(r,c,p,v){this.url=this._getValidUrl(c),this._t=r.t,this._match=p,this._previewRenderer=v}getViewElement(r,c){const p={};let v;if(c.renderForEditingView||c.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(p["data-oembed-url"]=this.url),c.renderForEditingView&&(p.class="ck-media__wrapper");const Z=this._getPreviewHtml(c);v=r.createRawElement("div",p,function(S){S.innerHTML=Z})}else this.url&&(p.url=this.url),v=r.createEmptyElement("oembed",p);return r.setCustomProperty("media-content",!0,v),v}_getPreviewHtml(r){return this._previewRenderer?this._previewRenderer(this._match):this.url&&r.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const r=new lh,c=new b1;return r.text=this._t("Open media in new tab"),c.content='',c.viewBox="0 0 64 42",new Qu({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[c]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]},r]}]}).render().outerHTML}_getValidUrl(r){return r?r.match(/^https?/)?r:"https://"+r:null}}u(80);class Zu extends Qi{static get pluginName(){return"MediaEmbedEditing"}constructor(r){super(r),r.config.define("mediaEmbed",{providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:c=>`
`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:c=>`
`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)/,/^youtube\.com\/embed\/([\w-]+)/,/^youtu\.be\/([\w-]+)/],html:c=>`
`},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:c=>`
`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:/^google\.com\/maps/},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new Sg(r.locale,r.config.get("mediaEmbed"))}init(){const r=this.editor,c=r.model.schema,p=r.t,v=r.conversion,Z=r.config.get("mediaEmbed.previewsInData"),S=this.registry;r.commands.add("mediaEmbed",new Jh(r)),c.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),v.for("dataDowncast").elementToElement({model:"media",view:(I,V)=>{const it=I.getAttribute("url");return Vh(V,S,it,{renderMediaPreview:it&&Z})}}),v.for("dataDowncast").add(Pf(S,{renderMediaPreview:Z})),v.for("editingDowncast").elementToElement({model:"media",view:(I,V)=>{const it=I.getAttribute("url");return xt=Vh(V,S,it,{renderForEditingView:!0}),le=V,Ie=p("media widget"),le.setCustomProperty("media",!0,xt),xu(xt,le,{label:Ie});var xt,le,Ie}}),v.for("editingDowncast").add(Pf(S,{renderForEditingView:!0})),v.for("upcast").elementToElement({view:{name:"oembed",attributes:{url:!0}},model:(I,V)=>{const it=I.getAttribute("url");if(S.hasMedia(it))return V.createElement("media",{url:it})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(I,V)=>{const it=I.getAttribute("data-oembed-url");if(S.hasMedia(it))return V.createElement("media",{url:it})}})}}const Sf=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=]+$/;class Qh extends Qi{static get requires(){return[K1,df]}static get pluginName(){return"AutoMediaEmbed"}constructor(r){super(r),this._timeoutId=null,this._positionToInsert=null}init(){const r=this.editor,c=r.model.document;this.listenTo(r.plugins.get(K1),"inputTransformation",()=>{const p=c.selection.getFirstRange(),v=Ws.fromPosition(p.start);v.stickiness="toPrevious";const Z=Ws.fromPosition(p.end);Z.stickiness="toNext",c.once("change:data",()=>{this._embedMediaBetweenPositions(v,Z),v.detach(),Z.detach()},{priority:"high"})}),r.commands.get("undo").on("execute",()=>{this._timeoutId&&(pt.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(r,c){const p=this.editor,v=p.plugins.get(Zu).registry,Z=new o1(r,c),S=Z.getWalker({ignoreElementEnd:!0});let I="";for(const V of S)V.item.is("$textProxy")&&(I+=V.item.data);I=I.trim(),I.match(Sf)&&v.hasMedia(I)&&p.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=Ws.fromPosition(r),this._timeoutId=pt.window.setTimeout(()=>{p.model.change(V=>{let it;this._timeoutId=null,V.remove(Z),Z.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(it=this._positionToInsert),Pg(p.model,I,it),this._positionToInsert.detach(),this._positionToInsert=null})},100)):Z.detach()}}u(82);class Ud extends Oo{constructor(r,c){super(c);const p=c.t;this.focusTracker=new ws,this.keystrokes=new _u,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(p("Save"),r2,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(p("Cancel"),zm,"ck-button-cancel","cancel"),this._focusables=new Zl,this._focusCycler=new f1({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=r,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),Ym({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(c=>{this._focusables.add(c),this.focusTracker.add(c.element)}),this.keystrokes.listenTo(this.element);const r=c=>c.stopPropagation();this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r),this.listenTo(this.urlInputView.element,"selectstart",(c,p)=>{p.stopPropagation()},{priority:"high"})}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(r){this.urlInputView.fieldView.element.value=r.trim()}isValid(){this.resetFormStatus();for(const r of this._validators){const c=r(this);if(c)return this.urlInputView.errorText=c,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const r=this.locale.t,c=new Vp(this.locale,Tf),p=c.fieldView;return this._urlInputViewInfoDefault=r("Paste the media URL in the input."),this._urlInputViewInfoTip=r("Tip: Paste the URL into the content to embed faster."),c.label=r("Media URL"),c.infoText=this._urlInputViewInfoDefault,p.placeholder="https://example.com",p.on("input",()=>{c.infoText=p.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault}),c}_createButton(r,c,p,v){const Z=new Hr(this.locale);return Z.set({label:r,icon:c,tooltip:!0}),Z.extendTemplate({attributes:{class:p}}),v&&Z.delegate("execute").to(this,v),Z}}class Gd extends Qi{static get requires(){return[Zu]}static get pluginName(){return"MediaEmbedUI"}init(){const r=this.editor,c=r.commands.get("mediaEmbed"),p=r.plugins.get(Zu).registry;r.ui.componentFactory.add("mediaEmbed",v=>{const Z=Gu(v),S=new Ud((I=r.t,V=p,[it=>{if(!it.url.length)return I("The URL must not be empty.")},it=>{if(!V.hasMedia(it.url))return I("This media URL is not supported.")}]),r.locale);var I,V;return this._setUpDropdown(Z,S,c,r),this._setUpForm(Z,S,c),Z})}_setUpDropdown(r,c,p){const v=this.editor,Z=v.t,S=r.buttonView;function I(){v.editing.view.focus(),r.isOpen=!1}r.bind("isEnabled").to(p),r.panelView.children.add(c),S.set({label:Z("Insert media"),icon:'',tooltip:!0}),S.on("open",()=>{c.url=p.value||"",c.urlInputView.fieldView.select(),c.focus()},{priority:"low"}),r.on("submit",()=>{c.isValid()&&(v.execute("mediaEmbed",c.url),I())}),r.on("change:isOpen",()=>c.resetFormStatus()),r.on("cancel",()=>I())}_setUpForm(r,c,p){c.delegate("submit","cancel").to(r),c.urlInputView.bind("value").to(p,"value"),c.urlInputView.bind("isReadOnly").to(p,"isEnabled",v=>!v),c.saveButtonView.bind("isEnabled").to(p)}}function Og(b,r,c){const p=r.parent,v=c.createElement(b.type),Z=p.getChildIndex(r)+1;return c.insertChild(Z,v,p),v}function kf(b){const r={},c=b.getStyle("mso-list");if(c){const p=c.match(/(^|\s+)l(\d+)/i),v=c.match(/\s*lfo(\d+)/i),Z=c.match(/\s*level(\d+)/i);p&&v&&Z&&(r.id=p[2],r.order=v[1],r.indent=Z[1])}return r}u(84);const Of=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class Gh{constructor(r){this.document=r}isActive(r){return Of.test(r)}execute(r){const c=new _2(this.document);(function(p,v){for(const Z of p.getChildren())if(Z.is("element","b")&&"normal"===Z.getStyle("font-weight")){const S=p.getChildIndex(Z);v.remove(Z),v.insertChild(S,Z.getChildren(),p)}})(r.content,c),function(p,v){for(const Z of v.createRangeIn(p)){const S=Z.item;if(S.is("element","li")){const I=S.getChild(0);I.is("element","p")&&v.unwrapElement(I)}}}(r.content,c)}}function k3(b){return b.replace(/(\s+)<\/span>/g,(r,c)=>1===c.length?" ":Array(c.length+1).join("\xa0 ").substr(0,c.length))}const t_=//i,Lg=/xmlns:o="urn:schemas-microsoft-com/i;class qg{constructor(r){this.document=r}isActive(r){return t_.test(r)||Lg.test(r)}execute(r){const{body:c,stylesString:p}=function Lf(b,r){const c=new DOMParser,p=k3(k3(function(V){const it=V.match(/<\/body>(.*?)(<\/html>|$)/);return it&&it[1]&&(V=V.slice(0,it.index)+V.slice(it.index).replace(it[1],"")),V}(b=b.replace(//)>-1||t[k].search(/\]>/)>-1||t[k].search(/!DOCTYPE/)>-1)&&(T=!1)):t[k].search(/-->/)>-1||t[k].search(/\]>/)>-1?(D+=t[k],T=!1):/^<\w/.exec(t[k-1])&&/^<\/\w/.exec(t[k])&&/^<[\w:\-\.\,]+/.exec(t[k-1])==/^<\/[\w:\-\.\,]+/.exec(t[k])[0].replace("/","")?(D+=t[k],T||U--):t[k].search(/<\w/)>-1&&-1==t[k].search(/<\//)&&-1==t[k].search(/\/>/)?D=D+=T?t[k]:O[U++]+t[k]:t[k].search(/<\w/)>-1&&t[k].search(/<\//)>-1?D=D+=T?t[k]:O[U]+t[k]:t[k].search(/<\//)>-1?D=D+=T?t[k]:O[--U]+t[k]:t[k].search(/\/>/)>-1?D=D+=T?t[k]:O[U]+t[k]:t[k].search(/<\?/)>-1||t[k].search(/xmlns\:/)>-1||t[k].search(/xmlns\=/)>-1?D+=O[U]+t[k]:D+=t[k];return"\n"==D[0]?D.slice(1):D},_.prototype.json=function(g,t){return t=t||this.step,typeof JSON>"u"?g:"string"==typeof g?JSON.stringify(JSON.parse(g),null,t):"object"==typeof g?JSON.stringify(g,null,t):g},_.prototype.css=function(g,h){var t=g.replace(/\s{1,}/g," ").replace(/\{/g,"{~::~").replace(/\}/g,"~::~}~::~").replace(/\;/g,";~::~").replace(/\/\*/g,"~::~/*").replace(/\*\//g,"*/~::~").replace(/~::~\s{0,}~::~/g,"~::~").split("~::~"),x=t.length,T=0,U="",D=0,k=h?W(h):this.shift;for(D=0;D/g,"").replace(/[ \r\n\t]{1,}xmlns/g," xmlns")).replace(/>\s{0,}<")},_.prototype.jsonmin=function(g){return typeof JSON>"u"?g:JSON.stringify(JSON.parse(g),null,0)},_.prototype.cssmin=function(g,h){return(h?g:g.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g,"")).replace(/\s{1,}/g," ").replace(/\{\s{1,}/g,"{").replace(/\}\s{1,}/g,"}").replace(/\;\s{1,}/g,";").replace(/\/\*\s{1,}/g,"/*").replace(/\*\/\s{1,}/g,"*/")},_.prototype.sqlmin=function(g){return g.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")")},K.exports=new _},67824:(K,W,_)=>{"use strict";function l(u){for(var g in u)W.hasOwnProperty(g)||(W[g]=u[g])}Object.defineProperty(W,"__esModule",{value:!0}),l(_(95085)),l(_(26243)),l(_(91786)),l(_(30225)),l(_(76767)),l(_(30345)),l(_(15675)),l(_(86461)),l(_(58802)),l(_(33900)),l(_(88866)),l(_(94655)),l(_(4068)),l(_(33858)),l(_(98237)),l(_(83292))},95085:function(K,W,_){"use strict";var t,l=this&&this.__extends||(t=function(x,T){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,D){U.__proto__=D}||function(U,D){for(var k in D)D.hasOwnProperty(k)&&(U[k]=D[k])})(x,T)},function(x,T){function U(){this.constructor=x}t(x,T),x.prototype=null===T?Object.create(T):(U.prototype=T.prototype,new U)});Object.defineProperty(W,"__esModule",{value:!0});var u=_(15675),g=function(t){function x(T){var U=t.call(this)||this,k=T;return k.trigger&&(U.trigger=k.trigger),k.kick&&(U.kick=k.kick),k.drag&&(U.drag=k.drag),k.on&&(U.on=k.on),U.dragstart=U.dragStart=u.Layout.dragStart,U.dragend=U.dragEnd=u.Layout.dragEnd,U}return l(x,t),x.prototype.trigger=function(T){},x.prototype.kick=function(){},x.prototype.drag=function(){},x.prototype.on=function(T,U){return this},x}(u.Layout);W.LayoutAdaptor=g,W.adaptor=function h(t){return new g(t)}},83292:(K,W,_)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var l=_(15675),u=_(76767);W.gridify=function g(x,T,U,D){x.cola.start(0,0,0,10,!1);var k=function h(x,T,U,D){x.forEach(function(O){O.routerNode={name:O.name,bounds:O.bounds.inflate(-U)}}),T.forEach(function(O){O.routerNode={bounds:O.bounds.inflate(-D),children:(typeof O.groups<"u"?O.groups.map(function(q){return x.length+q.id}):[]).concat(typeof O.leaves<"u"?O.leaves.map(function(q){return q.index}):[])}});var k=x.concat(T).map(function(O,q){return O.routerNode.id=q,O.routerNode});return new u.GridRouter(k,{getChildren:function(O){return O.children},getBounds:function(O){return O.bounds}},U-D)}(x.cola.nodes(),x.cola.groups(),U,D);return k.routeEdges(x.powerGraph.powerEdges,T,function(O){return O.source.routerNode.id},function(O){return O.target.routerNode.id})},W.powerGraphGridLayout=function t(x,T,U){var D;x.nodes.forEach(function(Y,$){return Y.index=$}),(new l.Layout).avoidOverlaps(!1).nodes(x.nodes).links(x.links).powerGraphGroups(function(Y){(D=Y).groups.forEach(function($){return $.padding=U})});var k=x.nodes.length,O=[],q=x.nodes.slice(0);return q.forEach(function(Y,$){return Y.index=$}),D.groups.forEach(function(Y){var $=Y.index=Y.id+k;q.push(Y),typeof Y.leaves<"u"&&Y.leaves.forEach(function(X){return O.push({source:$,target:X.index})}),typeof Y.groups<"u"&&Y.groups.forEach(function(X){return O.push({source:$,target:X.id+k})})}),D.powerEdges.forEach(function(Y){O.push({source:Y.source.index,target:Y.target.index})}),(new l.Layout).size(T).nodes(q).links(O).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new l.Layout).convergenceThreshold(.001).size(T).avoidOverlaps(!0).nodes(x.nodes).links(x.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(Y){(D=Y).groups.forEach(function($){$.padding=U})}).start(50,0,100,0,!1),powerGraph:D}}},26243:(K,W,_)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var l=_(49346),u=_(22487);W.d3adaptor=function g(t){return!t||function h(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new l.D3StyleLayoutAdaptor:new u.D3StyleLayoutAdaptor(t)}},49346:function(K,W,_){"use strict";var t,l=this&&this.__extends||(t=function(x,T){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,D){U.__proto__=D}||function(U,D){for(var k in D)D.hasOwnProperty(k)&&(U[k]=D[k])})(x,T)},function(x,T){function U(){this.constructor=x}t(x,T),x.prototype=null===T?Object.create(T):(U.prototype=T.prototype,new U)});Object.defineProperty(W,"__esModule",{value:!0});var u=_(15675),g=function(t){function x(){var T=t.call(this)||this;T.event=d3.dispatch(u.EventType[u.EventType.start],u.EventType[u.EventType.tick],u.EventType[u.EventType.end]);var U=T;return T.drag=function(){if(!k)var k=d3.behavior.drag().origin(u.Layout.dragOrigin).on("dragstart.d3adaptor",u.Layout.dragStart).on("drag.d3adaptor",function(O){u.Layout.drag(O,d3.event),U.resume()}).on("dragend.d3adaptor",u.Layout.dragEnd);if(!arguments.length)return k;this.call(k)},T}return l(x,t),x.prototype.trigger=function(T){var U={type:u.EventType[T.type],alpha:T.alpha,stress:T.stress};this.event[U.type](U)},x.prototype.kick=function(){var T=this;d3.timer(function(){return t.prototype.tick.call(T)})},x.prototype.on=function(T,U){return this.event.on("string"==typeof T?T:u.EventType[T],U),this},x}(u.Layout);W.D3StyleLayoutAdaptor=g,W.d3adaptor=function h(){return new g}},22487:function(K,W,_){"use strict";var h,l=this&&this.__extends||(h=function(t,x){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,U){T.__proto__=U}||function(T,U){for(var D in U)U.hasOwnProperty(D)&&(T[D]=U[D])})(t,x)},function(t,x){function T(){this.constructor=t}h(t,x),t.prototype=null===x?Object.create(x):(T.prototype=x.prototype,new T)});Object.defineProperty(W,"__esModule",{value:!0});var u=_(15675),g=function(h){function t(x){var T=h.call(this)||this;T.d3Context=x,T.event=x.dispatch(u.EventType[u.EventType.start],u.EventType[u.EventType.tick],u.EventType[u.EventType.end]);var U=T;return T.drag=function(){if(!k)var k=x.drag().subject(u.Layout.dragOrigin).on("start.d3adaptor",u.Layout.dragStart).on("drag.d3adaptor",function(O){u.Layout.drag(O,x.event),U.resume()}).on("end.d3adaptor",u.Layout.dragEnd);if(!arguments.length)return k;arguments[0].call(k)},T}return l(t,h),t.prototype.trigger=function(x){var T={type:u.EventType[x.type],alpha:x.alpha,stress:x.stress};this.event.call(T.type,T)},t.prototype.kick=function(){var x=this,T=this.d3Context.timer(function(){return h.prototype.tick.call(x)&&T.stop()})},t.prototype.on=function(x,T){return this.event.on("string"==typeof x?x:u.EventType[x],T),this},t}(u.Layout);W.D3StyleLayoutAdaptor=g},91786:(K,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var _=function(){function g(){this.locks={}}return g.prototype.add=function(h,t){this.locks[h]=t},g.prototype.clear=function(){this.locks={}},g.prototype.isEmpty=function(){for(var h in this.locks)return!1;return!0},g.prototype.apply=function(h){for(var t in this.locks)h(Number(t),this.locks[t])},g}();W.Locks=_;var l=function(){function g(h,t,x){void 0===x&&(x=null),this.D=t,this.G=x,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new u,this.project=null,this.x=h,this.k=h.length;var T=this.n=h[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new _,this.minD=Number.MAX_VALUE;for(var D,U=T;U--;)for(D=T;--D>U;){var k=t[U][D];k>0&&k1e-9)break;var rt=this.offsetDir();for(T=0;T1&&ft>Tt||!isFinite(Tt)){for(T=0;T1&&(qt=1);var Vt=Tt*Tt,Bt=2*qt*(ft-Tt)/(Vt*ft),bt=ft*ft*ft,xt=2*-qt/(Vt*bt);for(isFinite(Bt)||console.log(Bt),T=0;T0?ee-(pe+1)*ut:ee-(pe-1)*ut)&&at<=ht&&(this.scaleSnapByMaxH?(this.g[T][q]+=O*It*at,this.H[T][q][q]+=O*It):(this.g[T][q]+=It*at,this.H[T][q][q]+=It))}this.locks.isEmpty()||this.locks.apply(function(Oe,Ie){for(T=0;T0;)for(var U=t;U-- >0;)x(T,U)},g.prototype.matrixApply=function(h){g.mApply(this.k,this.n,h)},g.prototype.computeNextPosition=function(h,t){var x=this;this.computeDerivatives(h);var T=this.computeStepSize(this.g);if(this.stepAndProject(h,t,this.g,T),this.project){this.matrixApply(function(D,k){return x.e[D][k]=h[D][k]-t[D][k]});var U=this.computeStepSize(this.e);U=Math.max(.2,Math.min(U,1)),this.stepAndProject(h,t,this.e,U)}},g.prototype.run=function(h){for(var t=Number.MAX_VALUE,x=!1;!x&&h-- >0;){var T=this.rungeKutta();x=Math.abs(t/T-1)>16)/this.range},g.prototype.getNextBetween=function(h,t){return h+this.getNext()*(t-h)},g}();W.PseudoRandom=u},30225:function(K,W,_){"use strict";var _e,l=this&&this.__extends||(_e=function(pe,Ze){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Oe,Ie){Oe.__proto__=Ie}||function(Oe,Ie){for(var Rt in Ie)Ie.hasOwnProperty(Rt)&&(Oe[Rt]=Ie[Rt])})(pe,Ze)},function(pe,Ze){function Oe(){this.constructor=pe}_e(pe,Ze),pe.prototype=null===Ze?Object.create(Ze):(Oe.prototype=Ze.prototype,new Oe)});Object.defineProperty(W,"__esModule",{value:!0});var u=_(4068),g=function _e(){};W.Point=g;var h=function _e(pe,Ze,Oe,Ie){this.x1=pe,this.y1=Ze,this.x2=Oe,this.y2=Ie};W.LineSegment=h;var t=function(_e){function pe(){return null!==_e&&_e.apply(this,arguments)||this}return l(pe,_e),pe}(g);function x(_e,pe,Ze){return(pe.x-_e.x)*(Ze.y-_e.y)-(Ze.x-_e.x)*(pe.y-_e.y)}function T(_e,pe,Ze){return x(_e,pe,Ze)>0}function U(_e,pe,Ze){return x(_e,pe,Ze)<0}function Y(_e,pe){var Ze=pe.slice(0);return Ze.push(pe[0]),{rtan:$(_e,Ze),ltan:X(_e,Ze)}}function $(_e,pe){var Oe,Ie,Rt,Kt,Ze=pe.length-1;if(U(_e,pe[1],pe[0])&&!T(_e,pe[Ze-1],pe[0]))return 0;for(Oe=0,Ie=Ze;;){if(Ie-Oe==1)return T(_e,pe[Oe],pe[Ie])?Oe:Ie;if((Kt=U(_e,pe[(Rt=Math.floor((Oe+Ie)/2))+1],pe[Rt]))&&!T(_e,pe[Rt-1],pe[Rt]))return Rt;T(_e,pe[Oe+1],pe[Oe])?Kt||T(_e,pe[Oe],pe[Rt])?Ie=Rt:Oe=Rt:Kt&&U(_e,pe[Oe],pe[Rt])?Ie=Rt:Oe=Rt}}function X(_e,pe){var Oe,Ie,Rt,Kt,Ze=pe.length-1;if(T(_e,pe[Ze-1],pe[0])&&!U(_e,pe[1],pe[0]))return 0;for(Oe=0,Ie=Ze;;){if(Ie-Oe==1)return U(_e,pe[Oe],pe[Ie])?Oe:Ie;if(Kt=U(_e,pe[(Rt=Math.floor((Oe+Ie)/2))+1],pe[Rt]),T(_e,pe[Rt-1],pe[Rt])&&!Kt)return Rt;U(_e,pe[Oe+1],pe[Oe])?Kt?U(_e,pe[Oe],pe[Rt])?Ie=Rt:Oe=Rt:Ie=Rt:Kt?Oe=Rt:T(_e,pe[Oe],pe[Rt])?Ie=Rt:Oe=Rt}}function at(_e,pe,Ze,Oe,Ie,Rt){var fe,Kt;Kt=Oe(_e[fe=Ze(pe[0],_e)],pe);for(var ue=!1;!ue;){for(ue=!0;fe===_e.length-1&&(fe=0),!Ie(pe[Kt],_e[fe],_e[fe+1]);)++fe;for(;0===Kt&&(Kt=pe.length-1),!Rt(_e[fe],pe[Kt],pe[Kt-1]);)--Kt,ue=!1}return{t1:fe,t2:Kt}}function ft(_e,pe){return at(_e,pe,$,X,T,U)}W.PolyPoint=t,W.isLeft=x,W.ConvexHull=function D(_e){var Oe,pe=_e.slice(0).sort(function(Ye,fn){return Ye.x!==fn.x?fn.x-Ye.x:fn.y-Ye.y}),Ze=_e.length,Rt=pe[0].x;for(Oe=1;Oe=0&&pe[Oe].x===je;Oe--);for(ue=Oe+1,Oe=fe;++Oe<=ue;)if(!(x(pe[0],pe[ue],pe[Oe])>=0&&Oe1&&!(x(Kt[Kt.length-2],Kt[Kt.length-1],pe[Oe])>0);)Kt.length-=1;0!=Oe&&Kt.push(pe[Oe])}ce!=ue&&Kt.push(pe[ce]);var Te=Kt.length;for(Oe=ue;--Oe>=fe;)if(!(x(pe[ce],pe[fe],pe[Oe])>=0&&Oe>fe)){for(;Kt.length>Te&&!(x(Kt[Kt.length-2],Kt[Kt.length-1],pe[Oe])>0);)Kt.length-=1;0!=Oe&&Kt.push(pe[Oe])}}return Kt},W.clockwiseRadialSweep=function k(_e,pe,Ze){pe.slice(0).sort(function(Oe,Ie){return Math.atan2(Oe.y-_e.y,Oe.x-_e.x)-Math.atan2(Ie.y-_e.y,Ie.x-_e.x)}).forEach(Ze)},W.tangent_PolyPolyC=at,W.LRtangent_PolyPolyC=function rt(_e,pe){var Ze=ft(pe,_e);return{t1:Ze.t2,t2:Ze.t1}},W.RLtangent_PolyPolyC=ft,W.LLtangent_PolyPolyC=function Tt(_e,pe){return at(_e,pe,X,X,U,U)},W.RRtangent_PolyPolyC=function qt(_e,pe){return at(_e,pe,$,$,T,T)};var Vt=function _e(pe,Ze){this.t1=pe,this.t2=Ze};W.BiTangent=Vt;var Bt=function _e(){};W.BiTangents=Bt;var bt=function(_e){function pe(){return null!==_e&&_e.apply(this,arguments)||this}return l(pe,_e),pe}(g);W.TVGPoint=bt;var xt=function _e(pe,Ze,Oe,Ie){this.id=pe,this.polyid=Ze,this.polyvertid=Oe,this.p=Ie,Ie.vv=this};W.VisibilityVertex=xt;var ht=function(){function _e(pe,Ze){this.source=pe,this.target=Ze}return _e.prototype.length=function(){var pe=this.source.p.x-this.target.p.x,Ze=this.source.p.y-this.target.p.y;return Math.sqrt(pe*pe+Ze*Ze)},_e}();W.VisibilityEdge=ht;var ut=function(){function _e(pe,Ze){if(this.P=pe,this.V=[],this.E=[],Ze)this.V=Ze.V.slice(0),this.E=Ze.E.slice(0);else{for(var Oe=pe.length,Ie=0;Ie0&&this.E.push(new ht(Rt[fe-1].vv,ue))}Rt.length>1&&this.E.push(new ht(Rt[0].vv,Rt[Rt.length-1].vv))}for(Ie=0;Ie0)return!0;return!1},_e}();function Mt(_e,pe){for(var Ze=[],Oe=1,Ie=pe.length;Oe=0&&An>=0&&xe<0&&hn>=0&&Re>=0&&_n<0?Ie.ll=new Vt(Rt,fe):fn<=0&&An<=0&&xe>0&&hn<=0&&Re<=0&&_n>0?Ie.rr=new Vt(Rt,fe):fn<=0&&An>0&&xe<=0&&hn>=0&&Re<0&&_n>=0?Ie.rl=new Vt(Rt,fe):fn>=0&&An<0&&xe>=0&&hn<=0&&Re>0&&_n<=0&&(Ie.lr=new Vt(Rt,fe))}return Ie}function ee(_e,pe){return!_e.every(function(Ze){return!function wt(_e,pe){for(var Ze=1,Oe=pe.length;Ze0)return!0}return!1}},76767:(K,W,_)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var l=_(4068),u=_(98237),g=_(33858),h=function U(D,k,O){this.id=D,this.rect=k,this.children=O,this.leaf=typeof O>"u"||0===O.length};W.NodeWrapper=h;var t=function U(D,k,O,q,Y){void 0===q&&(q=null),void 0===Y&&(Y=null),this.id=D,this.x=k,this.y=O,this.node=q,this.line=Y};W.Vert=t;var x=function(){function U(D,k){this.s=D,this.t=k;var O=U.findMatch(D,k),q=k.slice(0).reverse(),Y=U.findMatch(D,q);O.length>=Y.length?(this.length=O.length,this.si=O.si,this.ti=O.ti,this.reversed=!1):(this.length=Y.length,this.si=Y.si,this.ti=k.length-Y.ti-Y.length,this.reversed=!0)}return U.findMatch=function(D,k){for(var O=D.length,q=k.length,Y={length:0,si:-1,ti:-1},$=new Array(O),X=0;XY.length&&(Y.length=rt,Y.si=X-rt+1,Y.ti=at-rt+1)}else $[X][at]=0}return Y},U.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},U}();W.LongestCommonSubsequence=x;var T=function(){function U(D,k,O){var q=this;void 0===O&&(O=12),this.originalnodes=D,this.groupPadding=O,this.leaves=null,this.nodes=D.map(function(bt,xt){return new h(xt,k.getBounds(bt),k.getChildren(bt))}),this.leaves=this.nodes.filter(function(bt){return bt.leaf}),this.groups=this.nodes.filter(function(bt){return!bt.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(bt){return bt.children.forEach(function(xt){return q.nodes[xt].parent=bt})}),this.root={children:[]},this.nodes.forEach(function(bt){typeof bt.parent>"u"&&(bt.parent=q.root,q.root.children.push(bt.id)),bt.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(bt,xt){return q.getDepth(bt)-q.getDepth(xt)}),this.backToFront.slice(0).reverse().filter(function(bt){return!bt.leaf}).forEach(function(bt){var xt=l.Rectangle.empty();bt.children.forEach(function(ht){return xt=xt.union(q.nodes[ht].rect)}),bt.rect=xt.inflate(q.groupPadding)});var $=this.midPoints(this.cols.map(function(bt){return bt.pos})),X=this.midPoints(this.rows.map(function(bt){return bt.pos})),at=$[0],rt=$[$.length-1],ft=X[0],Tt=X[X.length-1],qt=this.rows.map(function(bt){return{x1:at,x2:rt,y1:bt.pos,y2:bt.pos}}).concat(X.map(function(bt){return{x1:at,x2:rt,y1:bt,y2:bt}})),Vt=this.cols.map(function(bt){return{x1:bt.pos,x2:bt.pos,y1:ft,y2:Tt}}).concat($.map(function(bt){return{x1:bt,x2:bt,y1:ft,y2:Tt}})),Bt=qt.concat(Vt);Bt.forEach(function(bt){return bt.verts=[]}),this.verts=[],this.edges=[],qt.forEach(function(bt){return Vt.forEach(function(xt){var ht=new t(q.verts.length,xt.x1,bt.y1);bt.verts.push(ht),xt.verts.push(ht),q.verts.push(ht);for(var ut=q.backToFront.length;ut-- >0;){var Mt=q.backToFront[ut],It=Mt.rect,wt=Math.abs(ht.x-It.cx()),ee=Math.abs(ht.y-It.cy());if(wt0;){var q=O.filter(function($){return $.rect["overlap"+D.toUpperCase()](O[0].rect)}),Y={nodes:q,pos:this.avg(q.map(function($){return $.rect["c"+D]()}))};k.push(Y),Y.nodes.forEach(function($){return O.splice(O.indexOf($),1)})}return k.sort(function($,X){return $.pos-X.pos}),k},U.prototype.getDepth=function(D){for(var k=0;D.parent!==this.root;)k++,D=D.parent;return k},U.prototype.midPoints=function(D){for(var k=D[1]-D[0],O=[D[0]-k/2],q=1;q.1)&&ft.push(Tt={pos:at[0][k],segments:[]}),Tt.segments.push(at)}return ft},U.nudgeSegs=function(D,k,O,q,Y,$){var X=q.length;if(!(X<=1)){for(var at=q.map(function(Mt){return new u.Variable(Mt[0][D])}),rt=[],ft=0;ft=0&&rt.push(new u.Constraint(at[xt],at[ht],$))}new u.Solver(at,rt).solve(),at.forEach(function(Mt,It){var wt=q[It],ee=Mt.position();wt[0][D]=wt[1][D]=ee;var Ft=O[wt.edgeid];wt.i>0&&(Ft[wt.i-1][1][D]=ee),wt.iMath.PI||Y<-Math.PI)&&(Y=q-O),Y},U.isLeft=function(D,k,O){return(k.x-D.x)*(O.y-D.y)-(k.y-D.y)*(O.x-D.x)<=0},U.getOrder=function(D){for(var k={},O=0;O"u"&&(k[q.l]={}),k[q.l][q.r]=!0}return function(Y,$){return typeof k[Y]<"u"&&k[Y][$]}},U.orderEdges=function(D){for(var k=[],O=0;O=Y.length||X.ti+X.length>=$.length)){k.push({l:O,r:q});continue}X.si+X.length>=Y.length||X.ti+X.length>=$.length?(at=Y[X.si+1],ft=Y[X.si-1],rt=$[X.ti-1]):(at=Y[X.si+X.length-2],rt=Y[X.si+X.length],ft=$[X.ti+X.length]),U.isLeft(at,rt,ft)?k.push({l:q,r:O}):k.push({l:O,r:q})}}return U.getOrder(k)},U.makeSegments=function(D){function k(rt){return{x:rt.x,y:rt.y}}for(var q=[],Y=k(D[0]),$=1;$1&&_e>1?1e3:0}).reverse().map(function(ht){return O.verts[ht]});return xt.push(this.nodes[Y.id].ports[0]),xt.filter(function(ht,ut){return!(ut0&&ht.node===Y&&xt[ut-1].node===Y)})},U.getRoutePath=function(D,k,O,q){var X,at,rt,Ft,_e,Y={routepath:"M "+D[0][0].x+" "+D[0][0].y+" ",arrowpath:""};if(D.length>1)for(var $=0;$0?at-=ft/Math.abs(ft)*k:rt-=Tt/Math.abs(Tt)*k,Y.routepath+="L "+at+" "+rt+" ";var qt=D[$+1],Vt=qt[0].x,Bt=qt[0].y;ft=qt[1].x-Vt,Tt=qt[1].y-Bt;var ut,Mt,ht=U.angleBetween2Lines(X,qt)<0?1:0;Math.abs(ft)>0?(ut=Vt+ft/Math.abs(ft)*k,Mt=Bt):(ut=Vt,Mt=Bt+Tt/Math.abs(Tt)*k);var It=Math.abs(ut-at),wt=Math.abs(Mt-rt);Y.routepath+="A "+It+" "+wt+" 0 0 "+ht+" "+ut+" "+Mt+" "}else{var ee=[at,rt];Math.abs(ft)>0?(Ft=[at-=ft/Math.abs(ft)*q,rt+O],_e=[at,rt-O]):(Ft=[at+O,rt-=Tt/Math.abs(Tt)*q],_e=[at-O,rt]),Y.routepath+="L "+at+" "+rt+" ",q>0&&(Y.arrowpath="M "+ee[0]+" "+ee[1]+" L "+Ft[0]+" "+Ft[1]+" L "+_e[0]+" "+_e[1])}}else ft=(at=(X=D[0])[1].x)-X[0].x,Tt=(rt=X[1].y)-X[0].y,ee=[at,rt],Math.abs(ft)>0?(Ft=[at-=ft/Math.abs(ft)*q,rt+O],_e=[at,rt-O]):(Ft=[at+O,rt-=Tt/Math.abs(Tt)*q],_e=[at-O,rt]),Y.routepath+="L "+at+" "+rt+" ",q>0&&(Y.arrowpath="M "+ee[0]+" "+ee[1]+" L "+Ft[0]+" "+Ft[1]+" L "+_e[0]+" "+_e[1]);return Y},U}();W.GridRouter=T},30345:(K,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var __GOLDEN_SECTION=(1+Math.sqrt(5))/2;W.applyPacking=function l(g,h,t,$,Y,U){void 0===Y&&(Y=1),void 0===U&&(U=!0);var O=h,q=t,X=(Y=typeof Y<"u"?Y:1,$=typeof $<"u"?$:0,0),at=0,rt=0,ft=0,Tt=[];function bt(Mt,It){Tt=[],X=0,at=0,ft=0;for(var wt=0;wt=Mt.height&&Tt[ee].x+Tt[ee].width+Mt.width+10-It<=1e-4){wt=Tt[ee];break}Tt.push(Mt),void 0!==wt?(Mt.x=wt.x+wt.width+10,Mt.y=wt.bottom,Mt.space_left=Mt.height,Mt.bottom=Mt.y,wt.space_left-=Mt.height+10,wt.bottom+=Mt.height+10):(Mt.y=ft,ft+=Mt.height+10,Mt.x=0,Mt.bottom=Mt.y,Mt.space_left=Mt.height),Mt.y+Mt.height-at>-1e-4&&(at=Mt.y+Mt.height-0),Mt.x+Mt.width-X>-1e-4&&(X=Mt.x+Mt.width-0)}0!=g.length&&(function qt(Mt){Mt.forEach(function(wt){!function It(wt){var ee=Number.MAX_VALUE,Ft=Number.MAX_VALUE,_e=0,pe=0;wt.array.forEach(function(Ze){var Oe=typeof Ze.width<"u"?Ze.width:$,Ie=typeof Ze.height<"u"?Ze.height:$;Oe/=2,Ie/=2,_e=Math.max(Ze.x+Oe,_e),ee=Math.min(Ze.x-Oe,ee),pe=Math.max(Ze.y+Ie,pe),Ft=Math.min(Ze.y-Ie,Ft)}),wt.width=_e-ee,wt.height=pe-Ft}(wt)})}(g),function Bt(Mt,It){var wt=Number.POSITIVE_INFINITY,ee=0;Mt.sort(function(ce,je){return je.height-ce.height});for(var Ft=Kt=rt=Mt.reduce(function(ce,je){return ce.widthrt||fe>1e-4;){if(1!=Ie){var Kt=_e-(_e-Ft)/__GOLDEN_SECTION;Ze=bt(Mt,Kt)}if(0!=Ie){var ue=Ft+(_e-Ft)/__GOLDEN_SECTION;Oe=bt(Mt,ue)}if(Rt=Math.abs(Kt-ue),fe=Math.abs(Ze-Oe),ZeOe?(Ft=Kt,Kt=ue,Ze=Oe,Ie=1):(_e=ue,ue=Kt,Oe=Ze,Ie=0),pe++>100)break}bt(Mt,ee)}(g),U&&function Vt(Mt){Mt.forEach(function(It){var wt={x:0,y:0};It.array.forEach(function(_e){wt.x+=_e.x,wt.y+=_e.y}),wt.x/=It.array.length,wt.y/=It.array.length;var Ft_x=It.x-(wt.x-It.width/2)+O/2-X/2,Ft_y=It.y-(wt.y-It.height/2)+q/2-at/2;It.array.forEach(function(_e){_e.x+=Ft_x,_e.y+=Ft_y})})}(g))},W.separateGraphs=function u(g,h){for(var t={},x={},T=[],U=0,D=0;D{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var U,O,l=_(33900),u=_(58802),g=_(91786),h=_(4068),t=_(33858),x=_(30225),T=_(30345);function D(O){return typeof O.leaves<"u"||typeof O.groups<"u"}(O=U=W.EventType||(W.EventType={}))[O.start=0]="start",O[O.tick=1]="tick",O[O.end=2]="end";var k=function(){function O(){var q=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:O.getSourceIndex,getTargetIndex:O.getTargetIndex,setLength:O.setLinkLength,getType:function(Y){return"function"==typeof q._linkType?q._linkType(Y):0}}}return O.prototype.on=function(q,Y){return this.event||(this.event={}),"string"==typeof q?this.event[U[q]]=Y:this.event[q]=Y,this},O.prototype.trigger=function(q){this.event&&typeof this.event[q.type]<"u"&&this.event[q.type](q)},O.prototype.kick=function(){for(;!this.tick(););},O.prototype.tick=function(){if(this._alpha"u"||typeof $.py>"u")&&($.px=$.x,$.py=$.y),this._descent.locks.add(X,[$.px,$.py]));var rt=this._descent.rungeKutta();return 0===rt?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=rt),this._lastStress=rt,this.updateNodePositions(),this.trigger({type:U.tick,alpha:this._alpha,stress:this._lastStress}),!1},O.prototype.updateNodePositions=function(){for(var $,q=this._descent.x[0],Y=this._descent.x[1],X=this._nodes.length;X--;)($=this._nodes[X]).x=q[X],$.y=Y[X]},O.prototype.nodes=function(q){if(!q){if(0===this._nodes.length&&this._links.length>0){var Y=0;this._links.forEach(function(X){Y=Math.max(Y,X.source,X.target)}),this._nodes=new Array(++Y);for(var $=0;$"u"&&($.padding=1),typeof $.leaves<"u"&&$.leaves.forEach(function(X,at){"number"==typeof X&&(($.leaves[at]=Y._nodes[X]).parent=$)}),typeof $.groups<"u"&&$.groups.forEach(function(X,at){"number"==typeof X&&(($.groups[at]=Y._groups[X]).parent=$)})}),this._rootGroup.leaves=this._nodes.filter(function($){return typeof $.parent>"u"}),this._rootGroup.groups=this._groups.filter(function($){return typeof $.parent>"u"}),this):this._groups},O.prototype.powerGraphGroups=function(q){var Y=l.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(Y.groups),q(Y),this},O.prototype.avoidOverlaps=function(q){return arguments.length?(this._avoidOverlaps=q,this):this._avoidOverlaps},O.prototype.handleDisconnected=function(q){return arguments.length?(this._handleDisconnected=q,this):this._handleDisconnected},O.prototype.flowLayout=function(q,Y){return arguments.length||(q="y"),this._directedLinkConstraints={axis:q,getMinSeparation:"number"==typeof Y?function(){return Y}:Y},this},O.prototype.links=function(q){return arguments.length?(this._links=q,this):this._links},O.prototype.constraints=function(q){return arguments.length?(this._constraints=q,this):this._constraints},O.prototype.distanceMatrix=function(q){return arguments.length?(this._distanceMatrix=q,this):this._distanceMatrix},O.prototype.size=function(q){return q?(this._canvasSize=q,this):this._canvasSize},O.prototype.defaultNodeSize=function(q){return q?(this._defaultNodeSize=q,this):this._defaultNodeSize},O.prototype.groupCompactness=function(q){return q?(this._groupCompactness=q,this):this._groupCompactness},O.prototype.linkDistance=function(q){return q?(this._linkDistance="function"==typeof q?q:+q,this._linkLengthCalculator=null,this):this._linkDistance},O.prototype.linkType=function(q){return this._linkType=q,this},O.prototype.convergenceThreshold=function(q){return q?(this._threshold="function"==typeof q?q:+q,this):this._threshold},O.prototype.alpha=function(q){return arguments.length?(q=+q,this._alpha?this._alpha=q>0?q:0:q>0&&(this._running||(this._running=!0,this.trigger({type:U.start,alpha:this._alpha=q}),this.kick())),this):this._alpha},O.prototype.getLinkLength=function(q){return"function"==typeof this._linkDistance?+this._linkDistance(q):this._linkDistance},O.setLinkLength=function(q,Y){q.length=Y},O.prototype.getLinkType=function(q){return"function"==typeof this._linkType?this._linkType(q):0},O.prototype.symmetricDiffLinkLengths=function(q,Y){var $=this;return void 0===Y&&(Y=1),this.linkDistance(function(X){return q*X.length}),this._linkLengthCalculator=function(){return u.symmetricDiffLinkLengths($._links,$.linkAccessor,Y)},this},O.prototype.jaccardLinkLengths=function(q,Y){var $=this;return void 0===Y&&(Y=1),this.linkDistance(function(X){return q*X.length}),this._linkLengthCalculator=function(){return u.jaccardLinkLengths($._links,$.linkAccessor,Y)},this},O.prototype.start=function(q,Y,$,X,at,rt){var ft=this;void 0===q&&(q=0),void 0===Y&&(Y=0),void 0===$&&($=0),void 0===X&&(X=0),void 0===at&&(at=!0),void 0===rt&&(rt=!0);var ee,Vt=this.nodes().length,Bt=Vt+2*this._groups.length,xt=this._canvasSize[0],ht=this._canvasSize[1],ut=new Array(Bt),Mt=new Array(Bt),It=null,wt=this._avoidOverlaps;this._nodes.forEach(function(Rt,fe){Rt.index=fe,typeof Rt.x>"u"&&(Rt.x=xt/2,Rt.y=ht/2),ut[fe]=Rt.x,Mt[fe]=Rt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?ee=this._distanceMatrix:(ee=new t.Calculator(Bt,this._links,O.getSourceIndex,O.getTargetIndex,function(Rt){return ft.getLinkLength(Rt)}).DistanceMatrix(),It=g.Descent.createSquareMatrix(Bt,function(){return 2}),this._links.forEach(function(Rt){"number"==typeof Rt.source&&(Rt.source=ft._nodes[Rt.source]),"number"==typeof Rt.target&&(Rt.target=ft._nodes[Rt.target])}),this._links.forEach(function(Rt){var fe=O.getSourceIndex(Rt),Kt=O.getTargetIndex(Rt);It[fe][Kt]=It[Kt][fe]=Rt.weight||1}));var Ft=g.Descent.createSquareMatrix(Bt,function(Rt,fe){return ee[Rt][fe]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var Tt=Vt;this._groups.forEach(function(fe){(function(fe,Kt,ue,ce){It[fe][Kt]=It[Kt][fe]=ue,Ft[fe][Kt]=Ft[Kt][fe]=.1})(Tt,Tt+1,ft._groupCompactness),ut[Tt]=0,Mt[Tt++]=0,ut[Tt]=0,Mt[Tt++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var pe=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,pe=pe.concat(u.generateDirectedEdgeConstraints(Vt,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new g.Descent([ut,Mt],Ft),this._descent.locks.clear(),Tt=0;Tt0&&(this._descent.project=new h.Projection(this._nodes,this._groups,this._rootGroup,pe).projectFunctions()),this._descent.run(Y),this.separateOverlappingComponents(xt,ht,rt),this.avoidOverlaps(wt),wt&&(this._nodes.forEach(function(Rt,fe){Rt.x=ut[fe],Rt.y=Mt[fe]}),this._descent.project=new h.Projection(this._nodes,this._groups,this._rootGroup,pe,!0).projectFunctions(),this._nodes.forEach(function(Rt,fe){ut[fe]=Rt.x,Mt[fe]=Rt.y})),this._descent.G=It,this._descent.run($),X){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=Vt,this._descent.scaleSnapByMaxH=Vt!=Bt;var Ie=g.Descent.createSquareMatrix(Bt,function(Rt,fe){return Rt>=Vt||fe>=Vt?It[Rt][fe]:0});this._descent.G=Ie,this._descent.run(X)}return this.updateNodePositions(),this.separateOverlappingComponents(xt,ht,rt),at?this.resume():this},O.prototype.initialLayout=function(q,Y,$){if(this._groups.length>0&&q>0){var X=this._nodes.length,at=this._links.map(function(ft){return{source:ft.source.index,target:ft.target.index}}),rt=this._nodes.map(function(ft){return{index:ft.index}});this._groups.forEach(function(ft,Tt){rt.push({index:ft.index=X+Tt})}),this._groups.forEach(function(ft,Tt){typeof ft.leaves<"u"&&ft.leaves.forEach(function(qt){return at.push({source:ft.index,target:qt.index})}),typeof ft.groups<"u"&&ft.groups.forEach(function(qt){return at.push({source:ft.index,target:qt.index})})}),(new O).size(this.size()).nodes(rt).links(at).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(q,0,0,0,!1),this._nodes.forEach(function(ft){Y[ft.index]=rt[ft.index].x,$[ft.index]=rt[ft.index].y})}else this._descent.run(q)},O.prototype.separateOverlappingComponents=function(q,Y,$){var X=this;if(void 0===$&&($=!0),!this._distanceMatrix&&this._handleDisconnected){var at=this._descent.x[0],rt=this._descent.x[1];this._nodes.forEach(function(Tt,qt){Tt.x=at[qt],Tt.y=rt[qt]});var ft=T.separateGraphs(this._nodes,this._links);T.applyPacking(ft,q,Y,this._defaultNodeSize,1,$),this._nodes.forEach(function(Tt,qt){X._descent.x[0][qt]=Tt.x,X._descent.x[1][qt]=Tt.y,Tt.bounds&&(Tt.bounds.setXCentre(Tt.x),Tt.bounds.setYCentre(Tt.y))})}},O.prototype.resume=function(){return this.alpha(.1)},O.prototype.stop=function(){return this.alpha(0)},O.prototype.prepareEdgeRouting=function(q){void 0===q&&(q=0),this._visibilityGraph=new x.TangentVisibilityGraph(this._nodes.map(function(Y){return Y.bounds.inflate(-q).vertices()}))},O.prototype.routeEdge=function(q,Y,$){void 0===Y&&(Y=5);var X=[],at=new x.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),rt={x:q.source.x,y:q.source.y},ft={x:q.target.x,y:q.target.y},Tt=at.addPoint(rt,q.source.index),qt=at.addPoint(ft,q.target.index);at.addEdgeIfVisible(rt,ft,q.source.index,q.target.index),typeof $<"u"&&$(at);var ht=new t.Calculator(at.V.length,at.E,function(Ft){return Ft.source.id},function(Ft){return Ft.target.id},function(Ft){return Ft.length()}).PathFromNodeToNode(Tt.id,qt.id);if(1===ht.length||ht.length===at.V.length){var ut=h.makeEdgeBetween(q.source.innerBounds,q.target.innerBounds,Y);X=[ut.sourceIntersection,ut.arrowStart]}else{for(var Mt=ht.length-2,It=at.V[ht[Mt]].p,wt=at.V[ht[0]].p,ee=(X=[q.source.innerBounds.rayIntersection(It.x,It.y)],Mt);ee>=0;--ee)X.push(at.V[ht[ee]].p);X.push(h.makeEdgeTo(wt,q.target.innerBounds,Y))}return X},O.getSourceIndex=function(q){return"number"==typeof q.source?q.source:q.source.index},O.getTargetIndex=function(q){return"number"==typeof q.target?q.target:q.target.index},O.linkId=function(q){return O.getSourceIndex(q)+"-"+O.getTargetIndex(q)},O.dragStart=function(q){D(q)?O.storeOffset(q,O.dragOrigin(q)):(O.stopNode(q),q.fixed|=2)},O.stopNode=function(q){q.px=q.x,q.py=q.y},O.storeOffset=function(q,Y){typeof q.leaves<"u"&&q.leaves.forEach(function($){$.fixed|=2,O.stopNode($),$._dragGroupOffsetX=$.x-Y.x,$._dragGroupOffsetY=$.y-Y.y}),typeof q.groups<"u"&&q.groups.forEach(function($){return O.storeOffset($,Y)})},O.dragOrigin=function(q){return D(q)?{x:q.bounds.cx(),y:q.bounds.cy()}:q},O.drag=function(q,Y){D(q)?(typeof q.leaves<"u"&&q.leaves.forEach(function($){q.bounds.setXCentre(Y.x),q.bounds.setYCentre(Y.y),$.px=$._dragGroupOffsetX+Y.x,$.py=$._dragGroupOffsetY+Y.y}),typeof q.groups<"u"&&q.groups.forEach(function($){return O.drag($,Y)})):(q.px=Y.x,q.py=Y.y)},O.dragEnd=function(q){D(q)?(typeof q.leaves<"u"&&q.leaves.forEach(function(Y){O.dragEnd(Y),delete Y._dragGroupOffsetX,delete Y._dragGroupOffsetY}),typeof q.groups<"u"&&q.groups.forEach(O.dragEnd)):q.fixed&=-7},O.mouseOver=function(q){q.fixed|=4,q.px=q.x,q.py=q.y},O.mouseOut=function(q){q.fixed&=-5},O}();W.Layout=k},86461:(K,W,_)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var l=_(33858),u=_(91786),g=_(4068),h=_(58802),t=function(){function D(k,O){this.source=k,this.target=O}return D.prototype.actualLength=function(k){var O=this;return Math.sqrt(k.reduce(function(q,Y){var $=Y[O.target]-Y[O.source];return q+$*$},0))},D}();W.Link3D=t,W.Node3D=function D(k,O,q){void 0===k&&(k=0),void 0===O&&(O=0),void 0===q&&(q=0),this.x=k,this.y=O,this.z=q};var T=function(){function D(k,O,q){var Y=this;void 0===q&&(q=1),this.nodes=k,this.links=O,this.idealLinkLength=q,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(D.k);for(var $=0;$"u"&&(X[Tt]=Math.random())}Y.result[0][at]=X.x,Y.result[1][at]=X.y,Y.result[2][at]=X.z})}return D.prototype.linkLength=function(k){return k.actualLength(this.result)},D.prototype.start=function(k){var O=this;void 0===k&&(k=100);var q=this.nodes.length,Y=new U;this.useJaccardLinkLengths&&h.jaccardLinkLengths(this.links,Y,1.5),this.links.forEach(function(Tt){return Tt.length*=O.idealLinkLength});var $=new l.Calculator(q,this.links,function(Tt){return Tt.source},function(Tt){return Tt.target},function(Tt){return Tt.length}).DistanceMatrix(),X=u.Descent.createSquareMatrix(q,function(Tt,qt){return $[Tt][qt]}),at=u.Descent.createSquareMatrix(q,function(){return 2});this.links.forEach(function(Tt){var qt=Tt.source,Vt=Tt.target;return at[qt][Vt]=at[Vt][qt]=1}),this.descent=new u.Descent(this.result,X),this.descent.threshold=.001,this.descent.G=at,this.constraints&&(this.descent.project=new g.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var rt=0;rt{"use strict";function _(U,D){var k={};for(var O in U)k[O]={};for(var O in D)k[O]={};return Object.keys(k).length}function l(U,D){var k=0;for(var O in U)typeof D[O]<"u"&&++k;return k}function g(U,D,k,O){var q=function u(U,D){var k={},O=function(q,Y){typeof k[q]>"u"&&(k[q]={}),k[q][Y]={}};return U.forEach(function(q){var Y=D.getSourceIndex(q),$=D.getTargetIndex(q);O(Y,$),O($,Y)}),k}(U,O);U.forEach(function(Y){var $=q[O.getSourceIndex(Y)],X=q[O.getTargetIndex(Y)];O.setLength(Y,1+D*k($,X))})}function T(U,D,k){var O=[],q=0,Y=[],$=[];function X(ht){ht.index=ht.lowlink=q++,Y.push(ht),ht.onStack=!0;for(var ut=0,Mt=ht.out;ut"u"?(X(It),ht.lowlink=Math.min(ht.lowlink,It.lowlink)):It.onStack&&(ht.lowlink=Math.min(ht.lowlink,It.index))}if(ht.lowlink===ht.index){for(var wt=[];Y.length&&((It=Y.pop()).onStack=!1,wt.push(It),It!==ht););$.push(wt.map(function(ee){return ee.id}))}}for(var at=0;at"u"&&X(xt)}return $}Object.defineProperty(W,"__esModule",{value:!0}),W.symmetricDiffLinkLengths=function h(U,D,k){void 0===k&&(k=1),g(U,k,function(O,q){return Math.sqrt(_(O,q)-l(O,q))},D)},W.jaccardLinkLengths=function t(U,D,k){void 0===k&&(k=1),g(U,k,function(O,q){return Math.min(Object.keys(O).length,Object.keys(q).length)<1.1?0:l(O,q)/_(O,q)},D)},W.generateDirectedEdgeConstraints=function x(U,D,k,O){var q=T(U,D,O),Y={};q.forEach(function(X,at){return X.forEach(function(rt){return Y[rt]=at})});var $=[];return D.forEach(function(X){var at=O.getSourceIndex(X),rt=O.getTargetIndex(X);Y[at]!==Y[rt]&&$.push({axis:k,left:at,right:rt,gap:O.getMinSeparation(X)})}),$},W.stronglyConnectedComponents=T},33900:(K,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var _=function D(k,O,q){this.source=k,this.target=O,this.type=q};W.PowerEdge=_;var l=function(){function D(k,O,q,Y){var $=this;if(this.linkAccessor=q,this.modules=new Array(k),this.roots=[],Y)this.initModulesFromGroup(Y);else{this.roots.push(new t);for(var X=0;X=this.R))return this.merge(q.a,q.b,k),!0}},D.prototype.nEdges=function(k,O){var q=k.incoming.intersection(O.incoming),Y=k.outgoing.intersection(O.outgoing);return this.R-q.count()-Y.count()},D.prototype.getGroupHierarchy=function(k){var O=this,q=[];return u(this.roots[0],{},q),this.allEdges().forEach(function(X){var at=O.modules[X.source],rt=O.modules[X.target];k.push(new _(typeof at.gid>"u"?X.source:q[at.gid],typeof rt.gid>"u"?X.target:q[rt.gid],X.type))}),q},D.prototype.allEdges=function(){var k=[];return D.getEdges(this.roots[0],k),k},D.getEdges=function(k,O){k.forAll(function(q){q.getEdges(O),D.getEdges(q.children,O)})},D}();function u(D,k,O){D.forAll(function(q){if(q.isLeaf())k.leaves||(k.leaves=[]),k.leaves.push(q.id);else{var Y=k;if(q.gid=O.length,!q.isIsland()||q.isPredefined()){if(Y={id:q.gid},q.isPredefined())for(var $ in q.definition)Y[$]=q.definition[$];k.groups||(k.groups=[]),k.groups.push(q.gid),O.push(Y)}u(q.children,Y,O)}})}W.Configuration=l;var g=function(){function D(k,O,q,Y,$){void 0===O&&(O=new x),void 0===q&&(q=new x),void 0===Y&&(Y=new t),this.id=k,this.outgoing=O,this.incoming=q,this.children=Y,this.definition=$}return D.prototype.getEdges=function(k){var O=this;this.outgoing.forAll(function(q,Y){q.forAll(function($){k.push(new _(O.id,$.id,Y))})})},D.prototype.isLeaf=function(){return 0===this.children.count()},D.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},D.prototype.isPredefined=function(){return typeof this.definition<"u"},D}();W.Module=g;var t=function(){function D(){this.table={}}return D.prototype.count=function(){return Object.keys(this.table).length},D.prototype.intersection=function(k){var O=new D;return O.table=function h(D,k){var O={};for(var q in D)q in k&&(O[q]=D[q]);return O}(this.table,k.table),O},D.prototype.intersectionCount=function(k){return this.intersection(k).count()},D.prototype.contains=function(k){return k in this.table},D.prototype.add=function(k){this.table[k.id]=k},D.prototype.remove=function(k){delete this.table[k.id]},D.prototype.forAll=function(k){for(var O in this.table)k(this.table[O])},D.prototype.modules=function(){var k=[];return this.forAll(function(O){O.isPredefined()||k.push(O)}),k},D}();W.ModuleSet=t;var x=function(){function D(){this.sets={},this.n=0}return D.prototype.count=function(){return this.n},D.prototype.contains=function(k){var O=!1;return this.forAllModules(function(q){!O&&q.id==k&&(O=!0)}),O},D.prototype.add=function(k,O){(k in this.sets?this.sets[k]:this.sets[k]=new t).add(O),++this.n},D.prototype.remove=function(k,O){var q=this.sets[k];q.remove(O),0===q.count()&&delete this.sets[k],--this.n},D.prototype.forAll=function(k){for(var O in this.sets)k(this.sets[O],Number(O))},D.prototype.forAllModules=function(k){this.forAll(function(O,q){return O.forAll(k)})},D.prototype.intersection=function(k){var O=new D;return this.forAll(function(q,Y){if(Y in k.sets){var $=q.intersection(k.sets[Y]),X=$.count();X>0&&(O.sets[Y]=$,O.n+=X)}}),O},D}();W.LinkSets=x,W.getGroups=function U(D,k,O,q){for(var $=new l(D.length,k,O,q);$.greedyMerge(););var X=[],at=$.getGroupHierarchy(X);return X.forEach(function(rt){var ft=function(Tt){var qt=rt[Tt];"number"==typeof qt&&(rt[Tt]=D[qt])};ft("source"),ft("target")}),{groups:at,powerEdges:X}}},88866:(K,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var _=function(){function u(g){this.elem=g,this.subheaps=[]}return u.prototype.toString=function(g){for(var h="",t=!1,x=0;x0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(x){for(var T=this._root;null!==T;){var U=this._comparator(x,T.data);if(0===U)return T.data;T=T.get_child(U>0)}return null},t.prototype.lowerBound=function(x){return this._bound(x,this._comparator)},t.prototype.upperBound=function(x){var T=this._comparator;return this._bound(x,function U(D,k){return T(k,D)})},t.prototype.min=function(){var x=this._root;if(null===x)return null;for(;null!==x.left;)x=x.left;return x.data},t.prototype.max=function(){var x=this._root;if(null===x)return null;for(;null!==x.right;)x=x.right;return x.data},t.prototype.iterator=function(){return new u(this)},t.prototype.each=function(x){for(var U,T=this.iterator();null!==(U=T.next());)x(U)},t.prototype.reach=function(x){for(var U,T=this.iterator();null!==(U=T.prev());)x(U)},t.prototype._bound=function(x,T){for(var U=this._root,D=this.iterator();null!==U;){var k=this._comparator(x,U.data);if(0===k)return D._cursor=U,D;D._ancestors.push(U),U=U.get_child(k>0)}for(var O=D._ancestors.length-1;O>=0;--O)if(T(x,(U=D._ancestors[O]).data)>0)return D._cursor=U,D._ancestors.length=O,D;return D._ancestors.length=0,D},t}();W.TreeBase=l;var u=function(){function t(x){this._tree=x,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var x=this._tree._root;null!==x&&this._minNode(x)}else if(null===this._cursor.right){var T;do{if(T=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===T)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var x=this._tree._root;null!==x&&this._maxNode(x)}else if(null===this._cursor.left){var T;do{if(T=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===T)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(x){for(;null!==x.left;)this._ancestors.push(x),x=x.left;this._cursor=x},t.prototype._maxNode=function(x){for(;null!==x.right;)this._ancestors.push(x),x=x.right;this._cursor=x},t}();W.Iterator=u;var g=function(){function t(x){this.data=x,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(x){return x?this.right:this.left},t.prototype.set_child=function(x,T){x?this.right=T:this.left=T},t}(),h=function(t){function x(T){var U=t.call(this)||this;return U._root=null,U._comparator=T,U.size=0,U}return _(x,t),x.prototype.insert=function(T){var U=!1;if(null===this._root)this._root=new g(T),U=!0,this.size++;else{var D=new g(void 0),k=!1,O=!1,q=null,Y=D,$=null,X=this._root;for(Y.right=this._root;;){if(null===X?(X=new g(T),$.set_child(k,X),U=!0,this.size++):x.is_red(X.left)&&x.is_red(X.right)&&(X.red=!0,X.left.red=!1,X.right.red=!1),x.is_red(X)&&x.is_red($)){var at=Y.right===q;X===$.get_child(O)?Y.set_child(at,x.single_rotate(q,!O)):Y.set_child(at,x.double_rotate(q,!O))}var rt=this._comparator(X.data,T);if(0===rt)break;O=k,null!==q&&(Y=q),q=$,$=X,X=X.get_child(k=rt<0)}this._root=D.right}return this._root.red=!1,U},x.prototype.remove=function(T){if(null===this._root)return!1;var U=new g(void 0),D=U;D.right=this._root;for(var k=null,O=null,q=null,Y=!0;null!==D.get_child(Y);){var $=Y;O=k,k=D,D=D.get_child(Y);var X=this._comparator(T,D.data);if(Y=X>0,0===X&&(q=D),!x.is_red(D)&&!x.is_red(D.get_child(Y)))if(x.is_red(D.get_child(!Y))){var at=x.single_rotate(D,Y);k.set_child($,at),k=at}else if(!x.is_red(D.get_child(!Y))){var rt=k.get_child(!$);if(null!==rt)if(x.is_red(rt.get_child(!$))||x.is_red(rt.get_child($))){var ft=O.right===k;x.is_red(rt.get_child($))?O.set_child(ft,x.double_rotate(k,$)):x.is_red(rt.get_child(!$))&&O.set_child(ft,x.single_rotate(k,$));var Tt=O.get_child(ft);Tt.red=!0,D.red=!0,Tt.left.red=!1,Tt.right.red=!1}else k.red=!1,rt.red=!0,D.red=!0}}return null!==q&&(q.data=D.data,k.set_child(k.right===D,D.get_child(null===D.left)),this.size--),this._root=U.right,null!==this._root&&(this._root.red=!1),null!==q},x.is_red=function(T){return null!==T&&T.red},x.single_rotate=function(T,U){var D=T.get_child(!U);return T.set_child(!U,D.get_child(U)),D.set_child(U,T),T.red=!0,D.red=!1,D},x.double_rotate=function(T,U){return T.set_child(!U,x.single_rotate(T.get_child(!U),!U)),x.single_rotate(T,U)},x}(l);W.RBTree=h},4068:function(K,W,_){"use strict";var ht,l=this&&this.__extends||(ht=function(ut,Mt){return(ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,wt){It.__proto__=wt}||function(It,wt){for(var ee in wt)wt.hasOwnProperty(ee)&&(It[ee]=wt[ee])})(ut,Mt)},function(ut,Mt){function It(){this.constructor=ut}ht(ut,Mt),ut.prototype=null===Mt?Object.create(Mt):(It.prototype=Mt.prototype,new It)});Object.defineProperty(W,"__esModule",{value:!0});var u=_(98237),g=_(94655);function h(ht){return ht.bounds=typeof ht.leaves<"u"?ht.leaves.reduce(function(ut,Mt){return Mt.bounds.union(ut)},t.empty()):t.empty(),typeof ht.groups<"u"&&(ht.bounds=ht.groups.reduce(function(ut,Mt){return h(Mt).union(ut)},ht.bounds)),ht.bounds=ht.bounds.inflate(ht.padding),ht.bounds}W.computeGroupBounds=h;var t=function(){function ht(ut,Mt,It,wt){this.x=ut,this.X=Mt,this.y=It,this.Y=wt}return ht.empty=function(){return new ht(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},ht.prototype.cx=function(){return(this.x+this.X)/2},ht.prototype.cy=function(){return(this.y+this.Y)/2},ht.prototype.overlapX=function(ut){var Mt=this.cx(),It=ut.cx();return Mt<=It&&ut.x0?It[0]:null},ht.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},ht.lineIntersection=function(ut,Mt,It,wt,ee,Ft,_e,pe){var Ze=It-ut,Oe=_e-ee,Ie=wt-Mt,Rt=pe-Ft,fe=Rt*Ze-Oe*Ie;if(0==fe)return null;var Kt=ut-ee,ue=Mt-Ft,je=(Oe*ue-Rt*Kt)/fe,Ye=(Ze*ue-Ie*Kt)/fe;return je>=0&&je<=1&&Ye>=0&&Ye<=1?{x:ut+je*Ze,y:Mt+je*Ie}:null},ht.prototype.inflate=function(ut){return new ht(this.x-ut,this.X+ut,this.y-ut,this.Y+ut)},ht}();W.Rectangle=t,W.makeEdgeBetween=function x(ht,ut,Mt){var It=ht.rayIntersection(ut.cx(),ut.cy())||{x:ht.cx(),y:ht.cy()},wt=ut.rayIntersection(ht.cx(),ht.cy())||{x:ut.cx(),y:ut.cy()},ee=wt.x-It.x,Ft=wt.y-It.y,_e=Math.sqrt(ee*ee+Ft*Ft),pe=_e-Mt;return{sourceIntersection:It,targetIntersection:wt,arrowStart:{x:It.x+pe*ee/_e,y:It.y+pe*Ft/_e}}},W.makeEdgeTo=function T(ht,ut,Mt){var It=ut.rayIntersection(ht.x,ht.y);It||(It={x:ut.cx(),y:ut.cy()});var wt=It.x-ht.x,ee=It.y-ht.y,Ft=Math.sqrt(wt*wt+ee*ee);return{x:It.x-Mt*wt/Ft,y:It.y-Mt*ee/Ft}};var U=function ht(ut,Mt,It){this.v=ut,this.r=Mt,this.pos=It,this.prev=O(),this.next=O()},D=function ht(ut,Mt,It){this.isOpen=ut,this.v=Mt,this.pos=It};function k(ht,ut){return ht.pos>ut.pos?1:ht.pos0&&(ht[It].insert(ee),ee[wt].insert(ht))};Mt("next","prev"),Mt("prev","next")}};function $(ht,ut,Mt,It){void 0===It&&(It=!1);var wt=ht.padding,ee=typeof ht.groups<"u"?ht.groups.length:0,Ft=typeof ht.leaves<"u"?ht.leaves.length:0,_e=ee?ht.groups.reduce(function(An,xe){return An.concat($(xe,ut,Mt,!0))},[]):[],pe=(It?2:0)+Ft+ee,Ze=new Array(pe),Oe=new Array(pe),Ie=0,Rt=function(An,xe){Oe[Ie]=An,Ze[Ie++]=xe};if(It){var fe=ht.bounds,Kt=ut.getCentre(fe),ue=ut.getSize(fe)/2,ce=ut.getOpen(fe),je=ut.getClose(fe),Te=Kt-ue+wt/2,Ye=Kt+ue-wt/2;ht.minVar.desiredPosition=Te,Rt(ut.makeRect(ce,je,Te,wt),ht.minVar),ht.maxVar.desiredPosition=Ye,Rt(ut.makeRect(ce,je,Ye,wt),ht.maxVar)}Ft&&ht.leaves.forEach(function(An){return Rt(An.bounds,An.variable)}),ee&&ht.groups.forEach(function(An){var xe=An.bounds;Rt(ut.makeRect(ut.getOpen(xe),ut.getClose(xe),ut.getCentre(xe),ut.getSize(xe)),An.minVar)});var fn=X(Oe,Ze,ut,Mt);return ee&&(Ze.forEach(function(An){An.cOut=[],An.cIn=[]}),fn.forEach(function(An){An.left.cOut.push(An),An.right.cIn.push(An)}),ht.groups.forEach(function(An){var xe=(An.padding-ut.getSize(An.bounds))/2;An.minVar.cIn.forEach(function(hn){return hn.gap+=xe}),An.minVar.cOut.forEach(function(hn){hn.left=An.maxVar,hn.gap+=xe})})),_e.concat(fn)}function X(ht,ut,Mt,It){var wt,ee=ht.length,Ft=2*ee;console.assert(ut.length>=ee);var _e=new Array(Ft);for(wt=0;wt_e[It]&&(_e[It]=pe)}Ft=_e})}},ht.prototype.createAlignment=function(ut){var Mt=this,It=this.nodes[ut.offsets[0].node].variable;this.makeFeasible(ut);var wt="x"===ut.axis?this.xConstraints:this.yConstraints;ut.offsets.slice(1).forEach(function(ee){wt.push(new u.Constraint(It,Mt.nodes[ee.node].variable,ee.offset,!0))})},ht.prototype.createConstraints=function(ut){var Mt=this,It=function(wt){return typeof wt.type>"u"||"separation"===wt.type};this.xConstraints=ut.filter(function(wt){return"x"===wt.axis&&It(wt)}).map(function(wt){return Mt.createSeparation(wt)}),this.yConstraints=ut.filter(function(wt){return"y"===wt.axis&&It(wt)}).map(function(wt){return Mt.createSeparation(wt)}),ut.filter(function(wt){return"alignment"===wt.type}).forEach(function(wt){return Mt.createAlignment(wt)})},ht.prototype.setupVariablesAndBounds=function(ut,Mt,It,wt){this.nodes.forEach(function(ee,Ft){ee.fixed?(ee.variable.weight=ee.fixedWeight?ee.fixedWeight:1e3,It[Ft]=wt(ee)):ee.variable.weight=1;var _e=(ee.width||0)/2,pe=(ee.height||0)/2,Ze=ut[Ft],Oe=Mt[Ft];ee.bounds=new t(Ze-_e,Ze+_e,Oe-pe,Oe+pe)})},ht.prototype.xProject=function(ut,Mt,It){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(ut,Mt,ut,It,function(wt){return wt.px},this.xConstraints,qt,function(wt){return wt.bounds.setXCentre(It[wt.variable.index]=wt.variable.position())},function(wt){var ee=It[wt.minVar.index]=wt.minVar.position(),Ft=It[wt.maxVar.index]=wt.maxVar.position(),_e=wt.padding/2;wt.bounds.x=ee-_e,wt.bounds.X=Ft+_e})},ht.prototype.yProject=function(ut,Mt,It){!this.rootGroup&&!this.yConstraints||this.project(ut,Mt,Mt,It,function(wt){return wt.py},this.yConstraints,Vt,function(wt){return wt.bounds.setYCentre(It[wt.variable.index]=wt.variable.position())},function(wt){var ee=It[wt.minVar.index]=wt.minVar.position(),Ft=It[wt.maxVar.index]=wt.maxVar.position(),_e=wt.padding/2;wt.bounds.y=ee-_e,wt.bounds.Y=Ft+_e})},ht.prototype.projectFunctions=function(){var ut=this;return[function(Mt,It,wt){return ut.xProject(Mt,It,wt)},function(Mt,It,wt){return ut.yProject(Mt,It,wt)}]},ht.prototype.project=function(ut,Mt,It,wt,ee,Ft,_e,pe,Ze){this.setupVariablesAndBounds(ut,Mt,wt,ee),this.rootGroup&&this.avoidOverlaps&&(h(this.rootGroup),Ft=Ft.concat(_e(this.rootGroup))),this.solve(this.variables,Ft,It,wt),this.nodes.forEach(pe),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(Ze),h(this.rootGroup))},ht.prototype.solve=function(ut,Mt,It,wt){var ee=new u.Solver(ut,Mt);ee.setStartingPositions(It),ee.setDesiredPositions(wt),ee.solve()},ht}();W.Projection=xt},33858:(K,W,_)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var l=_(88866),u=function x(T,U){this.id=T,this.distance=U},g=function x(T){this.id=T,this.neighbours=[]},h=function x(T,U,D){this.node=T,this.prev=U,this.d=D},t=function(){function x(T,U,D,k,O){this.n=T,this.es=U,this.neighbours=new Array(this.n);for(var q=this.n;q--;)this.neighbours[q]=new g(q);for(q=this.es.length;q--;){var Y=this.es[q],$=D(Y),X=k(Y),at=O(Y);this.neighbours[$].neighbours.push(new u(X,at)),this.neighbours[X].neighbours.push(new u($,at))}}return x.prototype.DistanceMatrix=function(){for(var T=new Array(this.n),U=0;Urt&&(X.d=rt,X.prev=Y,D.reduceKey(X.q,X,function(Tt,qt){return Tt.q=qt}))}}return O},x}();W.Calculator=t},98237:(K,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var _=function(){function T(U){this.scale=U,this.AB=0,this.AD=0,this.A2=0}return T.prototype.addVariable=function(U){var D=this.scale/U.scale,O=U.weight;this.AB+=O*D*(U.offset/U.scale),this.AD+=O*D*U.desiredPosition,this.A2+=O*D*D},T.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},T}();W.PositionStats=_;var l=function(){function T(U,D,k,O){void 0===O&&(O=!1),this.left=U,this.right=D,this.gap=k,this.equality=O,this.active=!1,this.unsatisfiable=!1,this.left=U,this.right=D,this.gap=k,this.equality=O}return T.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},T}();W.Constraint=l;var u=function(){function T(U,D,k){void 0===D&&(D=1),void 0===k&&(k=1),this.desiredPosition=U,this.weight=D,this.scale=k,this.offset=0}return T.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},T.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},T.prototype.visitNeighbours=function(U,D){var k=function(O,q){return O.active&&U!==q&&D(O,q)};this.cOut.forEach(function(O){return k(O,O.right)}),this.cIn.forEach(function(O){return k(O,O.left)})},T}();W.Variable=u;var g=function(){function T(U){this.vars=[],U.offset=0,this.ps=new _(U.scale),this.addVariable(U)}return T.prototype.addVariable=function(U){U.block=this,this.vars.push(U),this.ps.addVariable(U),this.posn=this.ps.getPosn()},T.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var U=0,D=this.vars.length;U=0?this.inactive.push(U):this.bs.merge(U)}}},T.prototype.solve=function(){this.satisfy();for(var U=Number.MAX_VALUE,D=this.bs.cost();Math.abs(U-D)>1e-4;)this.satisfy(),U=D,D=this.bs.cost();return D},T.LAGRANGIAN_TOLERANCE=-1e-4,T.ZERO_UPPERBOUND=-1e-10,T}();W.Solver=t,W.removeOverlapInOneDimension=function x(T,U,D){for(var k=T.map(function(bt){return new u(bt.desiredCenter)}),O=[],q=T.length,Y=0;Y{var l={"./af":27088,"./af.js":27088,"./ar":17038,"./ar-dz":52502,"./ar-dz.js":52502,"./ar-kw":30128,"./ar-kw.js":30128,"./ar-ly":84519,"./ar-ly.js":84519,"./ar-ma":65443,"./ar-ma.js":65443,"./ar-sa":17642,"./ar-sa.js":17642,"./ar-tn":68592,"./ar-tn.js":68592,"./ar.js":17038,"./az":51213,"./az.js":51213,"./be":69191,"./be.js":69191,"./bg":90322,"./bg.js":90322,"./bm":28042,"./bm.js":28042,"./bn":59620,"./bn-bd":65903,"./bn-bd.js":65903,"./bn.js":59620,"./bo":69645,"./bo.js":69645,"./br":45020,"./br.js":45020,"./bs":64792,"./bs.js":64792,"./ca":47980,"./ca.js":47980,"./cs":47322,"./cs.js":47322,"./cv":90365,"./cv.js":90365,"./cy":32092,"./cy.js":32092,"./da":77387,"./da.js":77387,"./de":54307,"./de-at":29459,"./de-at.js":29459,"./de-ch":73694,"./de-ch.js":73694,"./de.js":54307,"./dv":39659,"./dv.js":39659,"./el":3460,"./el.js":3460,"./en-au":94369,"./en-au.js":94369,"./en-ca":60530,"./en-ca.js":60530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":13391,"./en-ie.js":13391,"./en-il":75414,"./en-il.js":75414,"./en-in":19615,"./en-in.js":19615,"./en-nz":21248,"./en-nz.js":21248,"./en-sg":13767,"./en-sg.js":13767,"./eo":84530,"./eo.js":84530,"./es":86866,"./es-do":18944,"./es-do.js":18944,"./es-mx":29116,"./es-mx.js":29116,"./es-us":83609,"./es-us.js":83609,"./es.js":86866,"./et":96725,"./et.js":96725,"./eu":67931,"./eu.js":67931,"./fa":56417,"./fa.js":56417,"./fi":20944,"./fi.js":20944,"./fil":61766,"./fil.js":61766,"./fo":95867,"./fo.js":95867,"./fr":1636,"./fr-ca":16848,"./fr-ca.js":16848,"./fr-ch":77773,"./fr-ch.js":77773,"./fr.js":1636,"./fy":14940,"./fy.js":14940,"./ga":91402,"./ga.js":91402,"./gd":46924,"./gd.js":46924,"./gl":16398,"./gl.js":16398,"./gom-deva":72457,"./gom-deva.js":72457,"./gom-latn":52545,"./gom-latn.js":52545,"./gu":42641,"./gu.js":42641,"./he":7536,"./he.js":7536,"./hi":96335,"./hi.js":96335,"./hr":7458,"./hr.js":7458,"./hu":56540,"./hu.js":56540,"./hy-am":65283,"./hy-am.js":65283,"./id":98780,"./id.js":98780,"./is":14205,"./is.js":14205,"./it":34211,"./it-ch":29985,"./it-ch.js":29985,"./it.js":34211,"./ja":31003,"./ja.js":31003,"./jv":60420,"./jv.js":60420,"./ka":40851,"./ka.js":40851,"./kk":16074,"./kk.js":16074,"./km":53343,"./km.js":53343,"./kn":44799,"./kn.js":44799,"./ko":13549,"./ko.js":13549,"./ku":91037,"./ku.js":91037,"./ky":93125,"./ky.js":93125,"./lb":69586,"./lb.js":69586,"./lo":32349,"./lo.js":32349,"./lt":92400,"./lt.js":92400,"./lv":39991,"./lv.js":39991,"./me":28477,"./me.js":28477,"./mi":55118,"./mi.js":55118,"./mk":15943,"./mk.js":15943,"./ml":13849,"./ml.js":13849,"./mn":31977,"./mn.js":31977,"./mr":66184,"./mr.js":66184,"./ms":70485,"./ms-my":64524,"./ms-my.js":64524,"./ms.js":70485,"./mt":36681,"./mt.js":36681,"./my":52024,"./my.js":52024,"./nb":42688,"./nb.js":42688,"./ne":68914,"./ne.js":68914,"./nl":11758,"./nl-be":52272,"./nl-be.js":52272,"./nl.js":11758,"./nn":41510,"./nn.js":41510,"./oc-lnc":52797,"./oc-lnc.js":52797,"./pa-in":37944,"./pa-in.js":37944,"./pl":1605,"./pl.js":1605,"./pt":54225,"./pt-br":73840,"./pt-br.js":73840,"./pt.js":54225,"./ro":45128,"./ro.js":45128,"./ru":35127,"./ru.js":35127,"./sd":32525,"./sd.js":32525,"./se":59893,"./se.js":59893,"./si":33123,"./si.js":33123,"./sk":59635,"./sk.js":59635,"./sl":78106,"./sl.js":78106,"./sq":88799,"./sq.js":88799,"./sr":97949,"./sr-cyrl":52872,"./sr-cyrl.js":52872,"./sr.js":97949,"./ss":86167,"./ss.js":86167,"./sv":39713,"./sv.js":39713,"./sw":41982,"./sw.js":41982,"./ta":22732,"./ta.js":22732,"./te":43636,"./te.js":43636,"./tet":2115,"./tet.js":2115,"./tg":69801,"./tg.js":69801,"./th":2868,"./th.js":2868,"./tk":31310,"./tk.js":31310,"./tl-ph":22360,"./tl-ph.js":22360,"./tlh":66645,"./tlh.js":66645,"./tr":98374,"./tr.js":98374,"./tzl":256,"./tzl.js":256,"./tzm":61595,"./tzm-latn":61631,"./tzm-latn.js":61631,"./tzm.js":61595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":65610,"./uk.js":65610,"./ur":86077,"./ur.js":86077,"./uz":22862,"./uz-latn":12207,"./uz-latn.js":12207,"./uz.js":22862,"./vi":48093,"./vi.js":48093,"./x-pseudo":25590,"./x-pseudo.js":25590,"./yo":9058,"./yo.js":9058,"./zh-cn":77908,"./zh-cn.js":77908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":31133,"./zh-mo.js":31133,"./zh-tw":83291,"./zh-tw.js":83291};function u(h){var t=g(h);return _(t)}function g(h){if(!_.o(l,h)){var t=new Error("Cannot find module '"+h+"'");throw t.code="MODULE_NOT_FOUND",t}return l[h]}u.keys=function(){return Object.keys(l)},u.resolve=g,K.exports=u,u.id=46700},7100:(K,W,_)=>{"use strict";_.d(W,{AB:()=>yn,EC:()=>In,K:()=>We,g2:()=>an});var l=_(84080),u=_(94650),g=_(42654),h=_(8929),t=_(36787),x=_(29521),T=_(72986),U=_(1059),D=_(7625),k=_(80013),O=_(92198),q=_(99602),Y=_(36895),$=_(3238),X=_(40445),at=_(4859),rt=_(21281),ft=_(98184),Tt=_(24006),qt=_(59549),Vt=_(284),Bt=_(97392),bt=_(65412),xt=_(83353);const ht=["ngx-mat-calendar-body",""];function ut(G,Pt){if(1&G&&(u.TgZ(0,"tr",2)(1,"td",3),u._uU(2),u.qZA()()),2&G){const B=u.oxw();u.xp6(1),u.Udp("padding-top",B._cellPadding)("padding-bottom",B._cellPadding),u.uIk("colspan",B.numCols),u.xp6(1),u.hij(" ",B.label," ")}}function Mt(G,Pt){if(1&G&&(u.TgZ(0,"td",7),u._uU(1),u.qZA()),2&G){const B=u.oxw(2);u.Udp("padding-top",B._cellPadding)("padding-bottom",B._cellPadding),u.uIk("colspan",B._firstRowOffset),u.xp6(1),u.hij(" ",B._firstRowOffset>=B.labelMinRequiredCells?B.label:""," ")}}function It(G,Pt){if(1&G){const B=u.EpF();u.TgZ(0,"td",8),u.NdJ("click",function(Le){const Zi=u.CHM(B).$implicit,Yi=u.oxw(2);return u.KtG(Yi._cellClicked(Zi,Le))}),u.TgZ(1,"div",9),u._uU(2),u.qZA(),u._UZ(3,"div",10),u.qZA()}if(2&G){const B=Pt.$implicit,Dt=Pt.index,Le=u.oxw().index,kn=u.oxw();u.Udp("width",kn._cellWidth)("padding-top",kn._cellPadding)("padding-bottom",kn._cellPadding),u.ekj("mat-calendar-body-disabled",!B.enabled)("mat-calendar-body-active",kn._isActiveCell(Le,Dt))("mat-calendar-body-range-start",kn._isRangeStart(B.compareValue))("mat-calendar-body-range-end",kn._isRangeEnd(B.compareValue))("mat-calendar-body-in-range",kn._isInRange(B.compareValue))("mat-calendar-body-comparison-bridge-start",kn._isComparisonBridgeStart(B.compareValue,Le,Dt))("mat-calendar-body-comparison-bridge-end",kn._isComparisonBridgeEnd(B.compareValue,Le,Dt))("mat-calendar-body-comparison-start",kn._isComparisonStart(B.compareValue))("mat-calendar-body-comparison-end",kn._isComparisonEnd(B.compareValue))("mat-calendar-body-in-comparison-range",kn._isInComparisonRange(B.compareValue))("mat-calendar-body-preview-start",kn._isPreviewStart(B.compareValue))("mat-calendar-body-preview-end",kn._isPreviewEnd(B.compareValue))("mat-calendar-body-in-preview",kn._isInPreview(B.compareValue)),u.Q6J("ngClass",B.cssClasses)("tabindex",kn._isActiveCell(Le,Dt)?0:-1),u.uIk("data-mat-row",Le)("data-mat-col",Dt)("aria-label",B.ariaLabel)("aria-disabled",!B.enabled||null)("aria-selected",kn._isSelected(B)),u.xp6(1),u.ekj("mat-calendar-body-selected",kn._isSelected(B))("mat-calendar-body-today",kn.todayValue===B.compareValue),u.xp6(1),u.hij(" ",B.displayValue," ")}}function wt(G,Pt){if(1&G&&(u.TgZ(0,"tr",4),u.YNc(1,Mt,2,6,"td",5),u.YNc(2,It,4,44,"td",6),u.qZA()),2&G){const B=Pt.$implicit,Dt=Pt.index,Le=u.oxw();u.xp6(1),u.Q6J("ngIf",0===Dt&&Le._firstRowOffset),u.xp6(1),u.Q6J("ngForOf",B)}}function ee(G,Pt){if(1&G&&(u.TgZ(0,"th",5),u._uU(1),u.qZA()),2&G){const B=Pt.$implicit;u.uIk("aria-label",B.long),u.xp6(1),u.Oqu(B.narrow)}}const Ft=["*"];function _e(G,Pt){}function pe(G,Pt){if(1&G){const B=u.EpF();u.TgZ(0,"ngx-mat-month-view",5),u.NdJ("activeDateChange",function(Le){u.CHM(B);const kn=u.oxw();return u.KtG(kn.activeDate=Le)})("selectedChange",function(Le){u.CHM(B);const kn=u.oxw();return u.KtG(kn._dateSelected(Le))})("_userSelection",function(){u.CHM(B);const Le=u.oxw();return u.KtG(Le._userSelected())}),u.qZA()}if(2&G){const B=u.oxw();u.Q6J("activeDate",B.activeDate)("selected",B.selected)("dateFilter",B.dateFilter)("maxDate",B.maxDate)("minDate",B.minDate)("dateClass",B.dateClass)}}function Ze(G,Pt){if(1&G){const B=u.EpF();u.TgZ(0,"ngx-mat-year-view",6),u.NdJ("activeDateChange",function(Le){u.CHM(B);const kn=u.oxw();return u.KtG(kn.activeDate=Le)})("monthSelected",function(Le){u.CHM(B);const kn=u.oxw();return u.KtG(kn._monthSelectedInYearView(Le))})("selectedChange",function(Le){u.CHM(B);const kn=u.oxw();return u.KtG(kn._goToDateInView(Le,"month"))}),u.qZA()}if(2&G){const B=u.oxw();u.Q6J("activeDate",B.activeDate)("selected",B.selected)("dateFilter",B.dateFilter)("maxDate",B.maxDate)("minDate",B.minDate)}}function Oe(G,Pt){if(1&G){const B=u.EpF();u.TgZ(0,"ngx-mat-multi-year-view",7),u.NdJ("activeDateChange",function(Le){u.CHM(B);const kn=u.oxw();return u.KtG(kn.activeDate=Le)})("yearSelected",function(Le){u.CHM(B);const kn=u.oxw();return u.KtG(kn._yearSelectedInMultiYearView(Le))})("selectedChange",function(Le){u.CHM(B);const kn=u.oxw();return u.KtG(kn._goToDateInView(Le,"year"))}),u.qZA()}if(2&G){const B=u.oxw();u.Q6J("activeDate",B.activeDate)("selected",B.selected)("dateFilter",B.dateFilter)("maxDate",B.maxDate)("minDate",B.minDate)}}function Ie(G,Pt){if(1&G){const B=u.EpF();u.TgZ(0,"td")(1,"button",10),u.NdJ("click",function(){u.CHM(B);const Le=u.oxw(2);return u.KtG(Le.change("second",!0))}),u.TgZ(2,"mat-icon"),u._uU(3,"expand_less"),u.qZA()()()}if(2&G){const B=u.oxw(2);u.xp6(1),u.Q6J("disabled",B.disabled||B.disableMinute)}}function Rt(G,Pt){1&G&&u._UZ(0,"td",6)}function fe(G,Pt){1&G&&u._UZ(0,"td")}function Kt(G,Pt){if(1&G){const B=u.EpF();u.TgZ(0,"tr")(1,"td")(2,"button",10),u.NdJ("click",function(){u.CHM(B);const Le=u.oxw();return u.KtG(Le.change("hour",!0))}),u.TgZ(3,"mat-icon"),u._uU(4,"expand_less"),u.qZA()()(),u._UZ(5,"td"),u.TgZ(6,"td")(7,"button",10),u.NdJ("click",function(){u.CHM(B);const Le=u.oxw();return u.KtG(Le.change("minute",!0))}),u.TgZ(8,"mat-icon"),u._uU(9,"expand_less"),u.qZA()()(),u._UZ(10,"td"),u.YNc(11,Ie,4,1,"td",3),u.YNc(12,Rt,1,0,"td",8),u.YNc(13,fe,1,0,"td",3),u.qZA()}if(2&G){const B=u.oxw();u.xp6(2),u.Q6J("disabled",B.disabled),u.xp6(5),u.Q6J("disabled",B.disabled||B.disableMinute),u.xp6(4),u.Q6J("ngIf",B.showSeconds),u.xp6(1),u.Q6J("ngIf",B.enableMeridian),u.xp6(1),u.Q6J("ngIf",B.enableMeridian)}}function ue(G,Pt){1&G&&(u.TgZ(0,"td",6),u._uU(1,":"),u.qZA())}function ce(G,Pt){if(1&G){const B=u.EpF();u.TgZ(0,"td")(1,"mat-form-field",4)(2,"input",11),u.NdJ("input",function(Le){u.CHM(B);const kn=u.oxw();return u.KtG(kn.formatInput(Le.target))})("keydown.ArrowUp",function(Le){return u.CHM(B),u.oxw().change("second",!0),u.KtG(Le.preventDefault())})("keydown.ArrowDown",function(Le){return u.CHM(B),u.oxw().change("second",!1),u.KtG(Le.preventDefault())})("blur",function(){u.CHM(B);const Le=u.oxw();return u.KtG(Le.change("second"))}),u.qZA()()()}}function je(G,Pt){1&G&&u._UZ(0,"td",6)}function Te(G,Pt){if(1&G){const B=u.EpF();u.TgZ(0,"td",12)(1,"button",13),u.NdJ("click",function(){u.CHM(B);const Le=u.oxw();return u.KtG(Le.toggleMeridian())}),u._uU(2),u.qZA()()}if(2&G){const B=u.oxw();u.xp6(1),u.Q6J("color",B.color)("disabled",B.disabled),u.xp6(1),u.hij(" ",B.meridian," ")}}function Ye(G,Pt){1&G&&u._UZ(0,"td")}function fn(G,Pt){if(1&G){const B=u.EpF();u.TgZ(0,"td")(1,"button",14),u.NdJ("click",function(){u.CHM(B);const Le=u.oxw(2);return u.KtG(Le.change("second",!1))}),u.TgZ(2,"mat-icon"),u._uU(3,"expand_more"),u.qZA()()()}if(2&G){const B=u.oxw(2);u.xp6(1),u.Q6J("disabled",B.disabled||B.disableMinute)}}function An(G,Pt){1&G&&u._UZ(0,"td",6)}function xe(G,Pt){1&G&&u._UZ(0,"td")}function hn(G,Pt){if(1&G){const B=u.EpF();u.TgZ(0,"tr")(1,"td")(2,"button",14),u.NdJ("click",function(){u.CHM(B);const Le=u.oxw();return u.KtG(Le.change("hour",!1))}),u.TgZ(3,"mat-icon"),u._uU(4,"expand_more"),u.qZA()()(),u._UZ(5,"td"),u.TgZ(6,"td")(7,"button",14),u.NdJ("click",function(){u.CHM(B);const Le=u.oxw();return u.KtG(Le.change("minute",!1))}),u.TgZ(8,"mat-icon"),u._uU(9,"expand_more"),u.qZA()()(),u.YNc(10,Ye,1,0,"td",3),u.YNc(11,fn,4,1,"td",3),u.YNc(12,An,1,0,"td",8),u.YNc(13,xe,1,0,"td",3),u.qZA()}if(2&G){const B=u.oxw();u.xp6(2),u.Q6J("disabled",B.disabled),u.xp6(5),u.Q6J("disabled",B.disabled||B.disableMinute),u.xp6(3),u.Q6J("ngIf",B.showSeconds),u.xp6(1),u.Q6J("ngIf",B.showSeconds),u.xp6(1),u.Q6J("ngIf",B.enableMeridian),u.xp6(1),u.Q6J("ngIf",B.enableMeridian)}}function Re(G,Pt){if(1&G){const B=u.EpF();u.TgZ(0,"div",6)(1,"ngx-mat-timepicker",7),u.NdJ("ngModelChange",function(Le){u.CHM(B);const kn=u.oxw(2);return u.KtG(kn.datepicker._selected=Le)}),u.qZA()()}if(2&G){const B=u.oxw(2);u.ekj("disable-seconds",!B.datepicker._showSeconds),u.xp6(1),u.Q6J("showSpinners",B.datepicker._showSpinners)("showSeconds",B.datepicker._showSeconds)("disabled",B.datepicker._disabled)("stepHour",B.datepicker._stepHour)("stepMinute",B.datepicker._stepMinute)("stepSecond",B.datepicker._stepSecond)("ngModel",B.datepicker._selected)("color",B.datepicker._color)("enableMeridian",B.datepicker._enableMeridian)("disableMinute",B.datepicker._disableMinute)}}function _n(G,Pt){1&G&&(u.TgZ(0,"mat-icon"),u._uU(1,"done"),u.qZA())}function Kn(G,Pt){}function si(G,Pt){if(1&G){const B=u.EpF();u.ynx(0),u.YNc(1,Re,2,12,"div",2),u.TgZ(2,"div",3)(3,"button",4),u.NdJ("click",function(){u.CHM(B);const Le=u.oxw();return u.KtG(Le.datepicker.ok())}),u.YNc(4,_n,2,0,"mat-icon",1),u.YNc(5,Kn,0,0,"ng-template",5),u.qZA()(),u.BQk()}if(2&G){const B=u.oxw();u.xp6(1),u.Q6J("ngIf",!B.datepicker._hideTime),u.xp6(2),u.Q6J("color",B.datepicker._color)("disabled",!B.valid),u.xp6(1),u.Q6J("ngIf",!B.datepicker._customIcon),u.xp6(1),u.Q6J("cdkPortalOutlet",B._templateCustomIconPortal)}}const oi=new u.OlP("ngx-mat-date-formats");class Vn{constructor(Pt,B,Dt,Le,kn={},Zi=Pt,Yi){this.value=Pt,this.displayValue=B,this.ariaLabel=Dt,this.enabled=Le,this.cssClasses=kn,this.compareValue=Zi,this.rawValue=Yi}}let ze=(()=>{class G{constructor(B,Dt){this._elementRef=B,this._ngZone=Dt,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new u.vpe,this.previewChange=new u.vpe,this._enterHandler=Le=>{if(this._skipNextFocus&&"focus"===Le.type)this._skipNextFocus=!1;else if(Le.target&&this.isRange){const kn=this._getCellFromElement(Le.target);kn&&this._ngZone.run(()=>this.previewChange.emit({value:kn.enabled?kn:null,event:Le}))}},this._leaveHandler=Le=>{null!==this.previewEnd&&this.isRange&&Le.target&&Wt(Le.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Le}))},Dt.runOutsideAngular(()=>{const Le=B.nativeElement;Le.addEventListener("mouseenter",this._enterHandler,!0),Le.addEventListener("focus",this._enterHandler,!0),Le.addEventListener("mouseleave",this._leaveHandler,!0),Le.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(B,Dt){B.enabled&&this.selectedValueChange.emit({value:B.value,event:Dt})}_isSelected(B){return this.startValue===B.compareValue||this.endValue===B.compareValue}ngOnChanges(B){const Dt=B.numCols,{rows:Le,numCols:kn}=this;(B.rows||Dt)&&(this._firstRowOffset=Le&&Le.length&&Le[0].length?kn-Le[0].length:0),(B.cellAspectRatio||Dt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/kn+"%"),(Dt||!this._cellWidth)&&(this._cellWidth=100/kn+"%")}ngOnDestroy(){const B=this._elementRef.nativeElement;B.removeEventListener("mouseenter",this._enterHandler,!0),B.removeEventListener("focus",this._enterHandler,!0),B.removeEventListener("mouseleave",this._leaveHandler,!0),B.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(B,Dt){let Le=B*this.numCols+Dt;return B&&(Le-=this._firstRowOffset),Le==this.activeCell}_focusActiveCell(B=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe((0,T.q)(1)).subscribe(()=>{const Dt=this._elementRef.nativeElement.querySelector(".ngx-mat-calendar-body-active");Dt&&(B||(this._skipNextFocus=!0),Dt.focus())})})}_isRangeStart(B){return J(B,this.startValue,this.endValue)}_isRangeEnd(B){return j(B,this.startValue,this.endValue)}_isInRange(B){return Q(B,this.startValue,this.endValue,this.isRange)}_isComparisonStart(B){return J(B,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(B,Dt,Le){if(!this._isComparisonStart(B)||this._isRangeStart(B)||!this._isInRange(B))return!1;let kn=this.rows[Dt][Le-1];if(!kn){const Zi=this.rows[Dt-1];kn=Zi&&Zi[Zi.length-1]}return kn&&!this._isRangeEnd(kn.compareValue)}_isComparisonBridgeEnd(B,Dt,Le){if(!this._isComparisonEnd(B)||this._isRangeEnd(B)||!this._isInRange(B))return!1;let kn=this.rows[Dt][Le+1];if(!kn){const Zi=this.rows[Dt+1];kn=Zi&&Zi[0]}return kn&&!this._isRangeStart(kn.compareValue)}_isComparisonEnd(B){return j(B,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(B){return Q(B,this.comparisonStart,this.comparisonEnd,this.isRange)}_isPreviewStart(B){return J(B,this.previewStart,this.previewEnd)}_isPreviewEnd(B){return j(B,this.previewStart,this.previewEnd)}_isInPreview(B){return Q(B,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(B){let Dt;if(Wt(B)?Dt=B:Wt(B.parentNode)&&(Dt=B.parentNode),Dt){const Le=Dt.getAttribute("data-ngx-mat-row"),kn=Dt.getAttribute("data-ngx-mat-col");if(Le&&kn)return this.rows[parseInt(Le)][parseInt(kn)]}return null}}return G.\u0275fac=function(B){return new(B||G)(u.Y36(u.SBq),u.Y36(u.R0b))},G.\u0275cmp=u.Xpm({type:G,selectors:[["","ngx-mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"ngx-mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["NgxMatCalendarBody"],features:[u.TTD],attrs:ht,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(B,Dt){1&B&&(u.YNc(0,ut,3,6,"tr",0),u.YNc(1,wt,3,2,"tr",1)),2&B&&(u.Q6J("ngIf",Dt._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media (hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),G})();function Wt(G){return"TD"===G.nodeName}function J(G,Pt,B){return null!==B&&Pt!==B&&G=Pt&&G===B}function Q(G,Pt,B,Dt){return Dt&&null!==Pt&&null!==B&&Pt!==B&&G>=Pt&&G<=B}class Ct extends $._A{isSameTime(Pt,B){return null==Pt||null==B||this.getHour(Pt)===this.getHour(B)&&this.getMinute(Pt)===this.getMinute(B)&&this.getSecond(Pt)===this.getSecond(B)}copyTime(Pt,B){this.setHour(Pt,this.getHour(B)),this.setMinute(Pt,this.getMinute(B)),this.setSecond(Pt,this.getSecond(B))}compareDateWithTime(Pt,B,Dt){let Le=super.compareDate(Pt,B)||this.getHour(Pt)-this.getHour(B)||this.getMinute(Pt)-this.getMinute(B);return Dt&&(Le=Le||this.getSecond(Pt)-this.getSecond(B)),Le}setTimeByDefaultValues(Pt,B){if(!Array.isArray(B))throw Error("@Input DefaultTime should be an array");this.setHour(Pt,B[0]||0),this.setMinute(Pt,B[1]||0),this.setSecond(Pt,B[2]||0)}}const Yt=new u.OlP("NGX_MAT_DATE_RANGE_SELECTION_STRATEGY");let ie=(()=>{class G{constructor(B){this._dateAdapter=B}selectionFinished(B,Dt){let{start:Le,end:kn}=Dt;return null==Le?Le=B:null==kn&&B&&this._dateAdapter.compareDate(B,Le)>=0?kn=B:(Le=B,kn=null),new q.C0(Le,kn)}createPreview(B,Dt){let Le=null,kn=null;return Dt.start&&!Dt.end&&B&&(Le=Dt.start,kn=B),new q.C0(Le,kn)}}return G.\u0275fac=function(B){return new(B||G)(u.LFG(Ct))},G.\u0275prov=u.Yz7({token:G,factory:G.\u0275fac}),G})();const re={minHour:0,maxHour:24,minMinute:0,maxMinute:60,minSecond:0,maxSecond:60,meridian:12},Yn=/[^0-9]/g,fi=/^(2[0-3]|[0-1][0-9]|[0-9])$/,Fi=/^([0-5][0-9]|[0-9])$/,Bn=/^([0-5][0-9]|[0-9])$/;function Sn(G){const Pt=G.toString();return Pt.length>1?Pt:`0${Pt}`}function On(G){return Error(`NgxMatDatepicker: No provider found for ${G}. You must import one of the following modules at your application root: NgxMatNativeDateModule, NgxMatMomentModule, or provide a custom implementation.`)}let qe=(()=>{class G{constructor(B,Dt,Le,kn,Zi){if(this._changeDetectorRef=B,this._dateFormats=Dt,this._dateAdapter=Le,this._dir=kn,this._rangeStrategy=Zi,this._rerenderSubscription=g.w.EMPTY,this.selectedChange=new u.vpe,this._userSelection=new u.vpe,this.activeDateChange=new u.vpe,!this._dateAdapter)throw On("NgxMatDateAdapter");if(!this._dateFormats)throw On("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(B){const Dt=this._activeDate,Le=this._getValidDateOrNull(this._dateAdapter.deserialize(B))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Le,this.minDate,this.maxDate),this._hasSameMonthAndYear(Dt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(B){this._selected=B instanceof q.C0?B:this._getValidDateOrNull(this._dateAdapter.deserialize(B)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(B){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(B))}get maxDate(){return this._maxDate}set maxDate(B){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(B))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,U.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(B){const Dt=B.value,Le=this._dateAdapter.getYear(this.activeDate),kn=this._dateAdapter.getMonth(this.activeDate),Zi=this._dateAdapter.createDate(Le,kn,Dt);let Yi,Ta;this._selected instanceof q.C0?(Yi=this._getDateInCurrentMonth(this._selected.start),Ta=this._getDateInCurrentMonth(this._selected.end)):Yi=Ta=this._getDateInCurrentMonth(this._selected),(Yi!==Dt||Ta!==Dt)&&this.selectedChange.emit(Zi),this._userSelection.emit({value:Zi,event:B.event})}_handleCalendarBodyKeydown(B){const Dt=this._activeDate,Le=this._isRtl();switch(B.keyCode){case x.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Le?1:-1);break;case x.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Le?-1:1);break;case x.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case x.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case x.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case x.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case x.Ku:this.activeDate=B.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case x.VM:this.activeDate=B.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case x.K5:case x.L_:return void((!this.dateFilter||this.dateFilter(this._activeDate))&&(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:B}),B.preventDefault()));case x.hY:return void(null!=this._previewEnd&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:B}),B.preventDefault(),B.stopPropagation()));default:return}this._dateAdapter.compareDate(Dt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),B.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let B=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(B)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(B){this._matCalendarBody._focusActiveCell(B)}_previewChanged({event:B,value:Dt}){if(this._rangeStrategy){const kn=this._rangeStrategy.createPreview(Dt?Dt.rawValue:null,this.selected,B);this._previewStart=this._getCellCompareValue(kn.start),this._previewEnd=this._getCellCompareValue(kn.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const B=this._dateAdapter.getFirstDayOfWeek(),Dt=this._dateAdapter.getDayOfWeekNames("narrow");let kn=this._dateAdapter.getDayOfWeekNames("long").map((Zi,Yi)=>({long:Zi,narrow:Dt[Yi]}));this._weekdays=kn.slice(B).concat(kn.slice(0,B))}_createWeekCells(){const B=this._dateAdapter.getNumDaysInMonth(this.activeDate),Dt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Le=0,kn=this._firstWeekOffset;Le=0)&&(!this.maxDate||this._dateAdapter.compareDate(B,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(B))}_getDateInCurrentMonth(B){return B&&this._hasSameMonthAndYear(B,this.activeDate)?this._dateAdapter.getDate(B):null}_hasSameMonthAndYear(B,Dt){return!(!B||!Dt||this._dateAdapter.getMonth(B)!=this._dateAdapter.getMonth(Dt)||this._dateAdapter.getYear(B)!=this._dateAdapter.getYear(Dt))}_getCellCompareValue(B){if(B){const Dt=this._dateAdapter.getYear(B),Le=this._dateAdapter.getMonth(B),kn=this._dateAdapter.getDate(B);return new Date(Dt,Le,kn).getTime()}return null}_getValidDateOrNull(B){return this._dateAdapter.isDateInstance(B)&&this._dateAdapter.isValid(B)?B:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(B){B instanceof q.C0?(this._rangeStart=this._getCellCompareValue(B.start),this._rangeEnd=this._getCellCompareValue(B.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(B),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return G.\u0275fac=function(B){return new(B||G)(u.Y36(u.sBO),u.Y36(oi,8),u.Y36(Ct,8),u.Y36(X.Is,8),u.Y36(Yt,8))},G.\u0275cmp=u.Xpm({type:G,selectors:[["ngx-mat-month-view"]],viewQuery:function(B,Dt){if(1&B&&u.Gf(ze,5),2&B){let Le;u.iGM(Le=u.CRH())&&(Dt._matCalendarBody=Le.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["ngxMatMonthView"],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["ngx-mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(B,Dt){1&B&&(u.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),u.YNc(3,ee,2,2,"th",2),u.qZA(),u.TgZ(4,"tr"),u._UZ(5,"th",3),u.qZA()(),u.TgZ(6,"tbody",4),u.NdJ("selectedValueChange",function(kn){return Dt._dateSelected(kn)})("previewChange",function(kn){return Dt._previewChanged(kn)})("keydown",function(kn){return Dt._handleCalendarBodyKeydown(kn)}),u.qZA()()),2&B&&(u.xp6(3),u.Q6J("ngForOf",Dt._weekdays),u.xp6(3),u.Q6J("label",Dt._monthLabel)("rows",Dt._weeks)("todayValue",Dt._todayDate)("startValue",Dt._rangeStart)("endValue",Dt._rangeEnd)("comparisonStart",Dt._comparisonRangeStart)("comparisonEnd",Dt._comparisonRangeEnd)("previewStart",Dt._previewStart)("previewEnd",Dt._previewEnd)("isRange",Dt._isRange)("labelMinRequiredCells",3)("activeCell",Dt._dateAdapter.getDate(Dt.activeDate)-1))},dependencies:[Y.sg,ze],encapsulation:2,changeDetection:0}),G})(),te=(()=>{class G{constructor(B,Dt,Le){if(this._changeDetectorRef=B,this._dateAdapter=Dt,this._dir=Le,this._rerenderSubscription=g.w.EMPTY,this.selectedChange=new u.vpe,this.yearSelected=new u.vpe,this.activeDateChange=new u.vpe,!this._dateAdapter)throw On("NgxMatDateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(B){let Dt=this._activeDate;const Le=this._getValidDateOrNull(this._dateAdapter.deserialize(B))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Le,this.minDate,this.maxDate),Ee(this._dateAdapter,Dt,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(B){this._selected=B instanceof q.C0?B:this._getValidDateOrNull(this._dateAdapter.deserialize(B)),this._setSelectedYear(B)}get minDate(){return this._minDate}set minDate(B){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(B))}get maxDate(){return this._maxDate}set maxDate(B){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(B))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,U.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Dt=this._dateAdapter.getYear(this._activeDate)-$t(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Le=0,kn=[];Le<24;Le++)kn.push(Dt+Le),4==kn.length&&(this._years.push(kn.map(Zi=>this._createCellForYear(Zi))),kn=[]);this._changeDetectorRef.markForCheck()}_yearSelected(B){const Dt=B.value;this.yearSelected.emit(this._dateAdapter.createDate(Dt,0,1));let Le=this._dateAdapter.getMonth(this.activeDate),kn=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Dt,Le,1));this.selectedChange.emit(this._dateAdapter.createDate(Dt,Le,Math.min(this._dateAdapter.getDate(this.activeDate),kn)))}_handleCalendarBodyKeydown(B){const Dt=this._activeDate,Le=this._isRtl();switch(B.keyCode){case x.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Le?1:-1);break;case x.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Le?-1:1);break;case x.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case x.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case x.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-$t(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case x.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-$t(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case x.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B.altKey?-240:-24);break;case x.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B.altKey?240:24);break;case x.K5:case x.L_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:B});break;default:return}this._dateAdapter.compareDate(Dt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),B.preventDefault()}_getActiveCell(){return $t(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(B){let Dt=this._dateAdapter.getYearName(this._dateAdapter.createDate(B,0,1));return new Vn(B,Dt,Dt,this._shouldEnableYear(B))}_shouldEnableYear(B){if(null==B||this.maxDate&&B>this._dateAdapter.getYear(this.maxDate)||this.minDate&&B{class G{constructor(B,Dt,Le,kn){if(this._changeDetectorRef=B,this._dateFormats=Dt,this._dateAdapter=Le,this._dir=kn,this._rerenderSubscription=g.w.EMPTY,this.selectedChange=new u.vpe,this.monthSelected=new u.vpe,this.activeDateChange=new u.vpe,!this._dateAdapter)throw On("NgxMatDateAdapter");if(!this._dateFormats)throw On("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(B){let Dt=this._activeDate;const Le=this._getValidDateOrNull(this._dateAdapter.deserialize(B))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Le,this.minDate,this.maxDate),this._dateAdapter.getYear(Dt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(B){this._selected=B instanceof q.C0?B:this._getValidDateOrNull(this._dateAdapter.deserialize(B)),this._setSelectedMonth(B)}get minDate(){return this._minDate}set minDate(B){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(B))}get maxDate(){return this._maxDate}set maxDate(B){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(B))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,U.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(B){const Dt=B.value,Le=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Dt,1);this.monthSelected.emit(Le);const kn=this._dateAdapter.getNumDaysInMonth(Le);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Dt,Math.min(this._dateAdapter.getDate(this.activeDate),kn)))}_handleCalendarBodyKeydown(B){const Dt=this._activeDate,Le=this._isRtl();switch(B.keyCode){case x.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Le?1:-1);break;case x.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Le?-1:1);break;case x.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case x.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case x.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case x.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case x.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B.altKey?-10:-1);break;case x.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B.altKey?10:1);break;case x.K5:case x.L_:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:B});break;default:return}this._dateAdapter.compareDate(Dt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),B.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let B=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Dt=>Dt.map(Le=>this._createCellForMonth(Le,B[Le]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(B){return B&&this._dateAdapter.getYear(B)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(B):null}_createCellForMonth(B,Dt){let Le=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),B,1),this._dateFormats.display.monthYearA11yLabel);return new Vn(B,Dt.toLocaleUpperCase(),Le,this._shouldEnableMonth(B))}_shouldEnableMonth(B){const Dt=this._dateAdapter.getYear(this.activeDate);if(null==B||this._isYearAndMonthAfterMaxDate(Dt,B)||this._isYearAndMonthBeforeMinDate(Dt,B))return!1;if(!this.dateFilter)return!0;for(let kn=this._dateAdapter.createDate(Dt,B,1);this._dateAdapter.getMonth(kn)==B;kn=this._dateAdapter.addCalendarDays(kn,1))if(this.dateFilter(kn))return!0;return!1}_isYearAndMonthAfterMaxDate(B,Dt){if(this.maxDate){const Le=this._dateAdapter.getYear(this.maxDate),kn=this._dateAdapter.getMonth(this.maxDate);return B>Le||B===Le&&Dt>kn}return!1}_isYearAndMonthBeforeMinDate(B,Dt){if(this.minDate){const Le=this._dateAdapter.getYear(this.minDate),kn=this._dateAdapter.getMonth(this.minDate);return B{class G{constructor(B,Dt,Le,kn,Zi){this._intl=B,this.calendar=Dt,this._dateAdapter=Le,this._dateFormats=kn,this.calendar.stateChanges.subscribe(()=>Zi.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Dt=this._dateAdapter.getYear(this.calendar.activeDate)-$t(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Le=Dt+24-1;return function He(G,Pt){return`${G} \u2013 ${Pt}`}(this._dateAdapter.getYearName(this._dateAdapter.createDate(Dt,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(Le,0,1)))}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(B,Dt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(B)==this._dateAdapter.getYear(Dt)&&this._dateAdapter.getMonth(B)==this._dateAdapter.getMonth(Dt):"year"==this.calendar.currentView?this._dateAdapter.getYear(B)==this._dateAdapter.getYear(Dt):Ee(this._dateAdapter,B,Dt,this.calendar.minDate,this.calendar.maxDate)}}return G.\u0275fac=function(B){return new(B||G)(u.Y36(q.S8),u.Y36((0,u.Gpc)(()=>kt)),u.Y36(Ct,8),u.Y36(oi,8),u.Y36(u.sBO))},G.\u0275cmp=u.Xpm({type:G,selectors:[["ngx-mat-calendar-header"]],exportAs:["ngxMatCalendarHeader"],ngContentSelectors:Ft,decls:9,vars:8,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(B,Dt){1&B&&(u.F$t(),u.TgZ(0,"div",0)(1,"div",1)(2,"button",2),u.NdJ("click",function(){return Dt.currentPeriodClicked()}),u._uU(3),u._UZ(4,"div",3),u.qZA(),u._UZ(5,"div",4),u.Hsn(6),u.TgZ(7,"button",5),u.NdJ("click",function(){return Dt.previousClicked()}),u.qZA(),u.TgZ(8,"button",6),u.NdJ("click",function(){return Dt.nextClicked()}),u.qZA()()()),2&B&&(u.xp6(2),u.uIk("aria-label",Dt.periodButtonLabel),u.xp6(1),u.hij(" ",Dt.periodButtonText," "),u.xp6(1),u.ekj("mat-calendar-invert","month"!=Dt.calendar.currentView),u.xp6(3),u.Q6J("disabled",!Dt.previousEnabled()),u.uIk("aria-label",Dt.prevButtonLabel),u.xp6(1),u.Q6J("disabled",!Dt.nextEnabled()),u.uIk("aria-label",Dt.nextButtonLabel))},dependencies:[at.lW],encapsulation:2,changeDetection:0}),G})(),kt=(()=>{class G{constructor(B,Dt,Le,kn){if(this._dateAdapter=Dt,this._dateFormats=Le,this._changeDetectorRef=kn,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new u.vpe,this.yearSelected=new u.vpe,this.monthSelected=new u.vpe,this._userSelection=new u.vpe,this.stateChanges=new h.xQ,!this._dateAdapter)throw On("NgxDateAdapter");if(!this._dateFormats)throw On("NGX_MAT_DATE_FORMATS");this._intlChanges=B.changes.subscribe(()=>{kn.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(B){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(B))}get selected(){return this._selected}set selected(B){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(B))}get minDate(){return this._minDate}set minDate(B){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(B))}get maxDate(){return this._maxDate}set maxDate(B){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(B))}get activeDate(){return this._clampedActiveDate}set activeDate(B){this._clampedActiveDate=this._dateAdapter.clampDate(B,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(B){this._currentView=B,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new l.C5(this.headerComponent||me),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(B){const Dt=B.minDate||B.maxDate||B.dateFilter;if(Dt&&!Dt.firstChange){const Le=this._getCurrentViewComponent();Le&&(this._changeDetectorRef.detectChanges(),Le._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell()}updateTodaysDate(){("month"==this.currentView?this.monthView:"year"==this.currentView?this.yearView:this.multiYearView).ngAfterContentInit()}_dateSelected(B){B&&!this._dateAdapter.sameDate(B,this.selected)&&this.selectedChange.emit(B)}_yearSelectedInMultiYearView(B){this.yearSelected.emit(B)}_monthSelectedInYearView(B){this.monthSelected.emit(B)}_userSelected(){this._userSelection.emit()}_goToDateInView(B,Dt){this.activeDate=B,this.currentView=Dt}_getValidDateOrNull(B){return this._dateAdapter.isDateInstance(B)&&this._dateAdapter.isValid(B)?B:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return G.\u0275fac=function(B){return new(B||G)(u.Y36(q.S8),u.Y36(Ct,8),u.Y36(oi,8),u.Y36(u.sBO))},G.\u0275cmp=u.Xpm({type:G,selectors:[["ngx-mat-calendar"]],viewQuery:function(B,Dt){if(1&B&&(u.Gf(qe,5),u.Gf(Xe,5),u.Gf(te,5)),2&B){let Le;u.iGM(Le=u.CRH())&&(Dt.monthView=Le.first),u.iGM(Le=u.CRH())&&(Dt.yearView=Le.first),u.iGM(Le=u.CRH())&&(Dt.multiYearView=Le.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"},exportAs:["ngxMatCalendar"],features:[u.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange"]],template:function(B,Dt){1&B&&(u.YNc(0,_e,0,0,"ng-template",0),u.TgZ(1,"div",1),u.YNc(2,pe,1,6,"ngx-mat-month-view",2),u.YNc(3,Ze,1,5,"ngx-mat-year-view",3),u.YNc(4,Oe,1,5,"ngx-mat-multi-year-view",4),u.qZA()),2&B&&(u.Q6J("cdkPortalOutlet",Dt._calendarHeaderPortal),u.xp6(1),u.Q6J("ngSwitch",Dt.currentView),u.xp6(1),u.Q6J("ngSwitchCase","month"),u.xp6(1),u.Q6J("ngSwitchCase","year"),u.xp6(1),u.Q6J("ngSwitchCase","multi-year"))},dependencies:[Y.RF,Y.n9,l.Pl,qe,Xe,te],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0}.mat-calendar-content{padding:0 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.71429% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button:after,.mat-calendar-next-button:after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button:after{border-left-width:2px;transform:translate(2px) rotate(-45deg)}.mat-calendar-next-button:after{border-right-width:2px;transform:translate(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider:after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),G})(),ye=(()=>{class G{constructor(B,Dt,Le){if(this._dateAdapter=B,this.cd=Dt,this.formBuilder=Le,this.disabled=!1,this.showSpinners=!0,this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.showSeconds=!1,this.disableMinute=!1,this.enableMeridian=!1,this.color="primary",this.meridian="AM",this._onChange=()=>{},this._onTouched=()=>{},this._destroyed=new h.xQ,this.pattern=fi,!this._dateAdapter)throw On("NgxMatDateAdapter");this.form=this.formBuilder.group({hour:[{value:null,disabled:this.disabled},[Tt.kI.required,Tt.kI.pattern(fi)]],minute:[{value:null,disabled:this.disabled},[Tt.kI.required,Tt.kI.pattern(Fi)]],second:[{value:null,disabled:this.disabled},[Tt.kI.required,Tt.kI.pattern(Bn)]]})}get hour(){let B=Number(this.form.controls.hour.value);return isNaN(B)?0:B}get minute(){let B=Number(this.form.controls.minute.value);return isNaN(B)?0:B}get second(){let B=Number(this.form.controls.second.value);return isNaN(B)?0:B}get valid(){return this.form.valid}ngOnInit(){this.form.valueChanges.pipe((0,D.R)(this._destroyed),(0,k.b)(400)).subscribe(B=>{this._updateModel()})}ngOnChanges(B){(B.disabled||B.disableMinute)&&this._setDisableStates()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}writeValue(B){null!=B?this._model=B:(this._model=this._dateAdapter.today(),null!=this.defaultTime&&this._dateAdapter.setTimeByDefaultValues(this._model,this.defaultTime)),this._updateHourMinuteSecond()}registerOnChange(B){this._onChange=B}registerOnTouched(B){this._onTouched=B}setDisabledState(B){this._disabled=B,this.cd.markForCheck()}formatInput(B){B.value=B.value.replace(Yn,"")}toggleMeridian(){this.meridian="AM"===this.meridian?"PM":"AM",this.change("hour")}change(B,Dt){const Le=this._getNextValueByProp(B,Dt);this.form.controls[B].setValue(Sn(Le),{onlySelf:!1,emitEvent:!1}),this._updateModel()}_updateHourMinuteSecond(){let B=this._dateAdapter.getHour(this._model);const Dt=this._dateAdapter.getMinute(this._model),Le=this._dateAdapter.getSecond(this._model);this.enableMeridian&&(B>=re.meridian?(B-=re.meridian,this.meridian="PM"):this.meridian="AM",0===B&&(B=re.meridian)),this.form.controls.hour.setValue(Sn(B)),this.form.controls.minute.setValue(Sn(Dt)),this.form.controls.second.setValue(Sn(Le))}_updateModel(){let B=this.hour;this.enableMeridian&&("AM"===this.meridian&&B===re.meridian?B=0:"PM"===this.meridian&&B!==re.meridian&&(B+=re.meridian)),this._dateAdapter.setHour(this._model,B),this._dateAdapter.setMinute(this._model,this.minute),this._dateAdapter.setSecond(this._model,this.second),this._onChange(this._model)}_getNextValueByProp(B,Dt){const Le=B[0].toUpperCase()+B.slice(1),kn=re[`min${Le}`];let Yi,Zi=re[`max${Le}`];return"hour"===B&&this.enableMeridian&&(Zi=re.meridian),null==Dt?(Yi=this[B]%Zi,"hour"===B&&this.enableMeridian&&0===Yi&&(Yi=Zi)):(Yi=Dt?this[B]+this[`step${Le}`]:this[B]-this[`step${Le}`],"hour"===B&&this.enableMeridian?(Yi%=Zi+1,0===Yi&&(Yi=Dt?1:Zi)):Yi%=Zi,Yi=Dt?Yi>Zi?Yi-Zi+kn:Yi:YiG),multi:!0}]),u.TTD],decls:18,vars:7,consts:[[3,"formGroup"],[1,"ngx-mat-timepicker-table"],[1,"ngx-mat-timepicker-tbody"],[4,"ngIf"],["appearance","legacy"],["type","text","matInput","","maxlength","2","formControlName","hour",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],[1,"ngx-mat-timepicker-spacer"],["type","text","matInput","","maxlength","2","formControlName","minute",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],["class","ngx-mat-timepicker-spacer",4,"ngIf"],["class","ngx-mat-timepicker-meridian",4,"ngIf"],["type","button","mat-icon-button","","aria-label","expand_less icon",3,"disabled","click"],["type","text","matInput","","maxlength","2","formControlName","second",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],[1,"ngx-mat-timepicker-meridian"],["mat-button","","mat-stroked-button","",3,"color","disabled","click"],["type","button","mat-icon-button","","aria-label","expand_more icon",3,"disabled","click"]],template:function(B,Dt){1&B&&(u.TgZ(0,"form",0)(1,"table",1)(2,"tbody",2),u.YNc(3,Kt,14,5,"tr",3),u.TgZ(4,"tr")(5,"td")(6,"mat-form-field",4)(7,"input",5),u.NdJ("input",function(kn){return Dt.formatInput(kn.target)})("keydown.ArrowUp",function(kn){return Dt.change("hour",!0),kn.preventDefault()})("keydown.ArrowDown",function(kn){return Dt.change("hour",!1),kn.preventDefault()})("blur",function(){return Dt.change("hour")}),u.qZA()()(),u.TgZ(8,"td",6),u._uU(9,":"),u.qZA(),u.TgZ(10,"td")(11,"mat-form-field",4)(12,"input",7),u.NdJ("input",function(kn){return Dt.formatInput(kn.target)})("keydown.ArrowUp",function(kn){return Dt.change("minute",!0),kn.preventDefault()})("keydown.ArrowDown",function(kn){return Dt.change("minute",!1),kn.preventDefault()})("blur",function(){return Dt.change("minute")}),u.qZA()()(),u.YNc(13,ue,2,0,"td",8),u.YNc(14,ce,3,0,"td",3),u.YNc(15,je,1,0,"td",8),u.YNc(16,Te,3,3,"td",9),u.qZA(),u.YNc(17,hn,14,6,"tr",3),u.qZA()()()),2&B&&(u.Q6J("formGroup",Dt.form),u.xp6(3),u.Q6J("ngIf",Dt.showSpinners),u.xp6(10),u.Q6J("ngIf",Dt.showSeconds),u.xp6(1),u.Q6J("ngIf",Dt.showSeconds),u.xp6(1),u.Q6J("ngIf",Dt.enableMeridian),u.xp6(1),u.Q6J("ngIf",Dt.enableMeridian),u.xp6(1),u.Q6J("ngIf",Dt.showSpinners))},dependencies:[Y.O5,qt.KE,Vt.Nt,Tt._Y,Tt.Fj,Tt.JJ,Tt.JL,Tt.nD,Tt.sg,Tt.u,Bt.Hw,at.lW],styles:[".ngx-mat-timepicker{font-size:13px}.ngx-mat-timepicker form{min-width:90px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td{text-align:center}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-spacer{font-weight:bold}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-meridian .mat-button{min-width:64px;line-height:36px;min-width:0;border-radius:50%;width:36px;height:36px;padding:0;flex-shrink:0}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button{height:24px;width:24px;line-height:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button .mat-icon{font-size:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-form-field{width:20px;max-width:20px;text-align:center}\n"],encapsulation:2}),G})(),Nt=0;const ve=(0,$.pj)(class{constructor(G){this._elementRef=G}});let Se=(()=>{class G extends ve{constructor(B,Dt,Le){super(B),this.cd=Dt,this._viewContainerRef=Le}get valid(){return(this.datepicker.hideTime||this._timePicker&&this._timePicker.valid)&&this.datepicker.valid}get isViewMonth(){return!this._calendar||null==this._calendar.currentView||"month"==this._calendar.currentView}ngAfterViewInit(){this._calendar.focusActiveCell(),this.datepicker._customIcon&&(this._templateCustomIconPortal=new l.UE(this.datepicker._customIcon,this._viewContainerRef),this.cd.detectChanges())}}return G.\u0275fac=function(B){return new(B||G)(u.Y36(u.SBq),u.Y36(u.sBO),u.Y36(u.s_b))},G.\u0275cmp=u.Xpm({type:G,selectors:[["ngx-mat-datetime-content"]],viewQuery:function(B,Dt){if(1&B&&(u.Gf(kt,5),u.Gf(ye,5)),2&B){let Le;u.iGM(Le=u.CRH())&&(Dt._calendar=Le.first),u.iGM(Le=u.CRH())&&(Dt._timePicker=Le.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(B,Dt){2&B&&(u.d8E("@transformPanel","enter"),u.ekj("mat-datepicker-content-touch",Dt.datepicker.touchUi))},inputs:{color:"color"},exportAs:["ngxMatDatetimeContent"],features:[u.qOj],decls:2,vars:12,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected"],[4,"ngIf"],["class","time-container",3,"disable-seconds",4,"ngIf"],[1,"actions"],["mat-button","","mat-stroked-button","","cdkFocusInitial","",3,"color","disabled","click"],[3,"cdkPortalOutlet"],[1,"time-container"],[3,"showSpinners","showSeconds","disabled","stepHour","stepMinute","stepSecond","ngModel","color","enableMeridian","disableMinute","ngModelChange"]],template:function(B,Dt){1&B&&(u.TgZ(0,"ngx-mat-calendar",0),u.NdJ("selectedChange",function(kn){return Dt.datepicker.select(kn)})("yearSelected",function(kn){return Dt.datepicker._selectYear(kn)})("monthSelected",function(kn){return Dt.datepicker._selectMonth(kn)}),u.qZA(),u.YNc(1,si,6,5,"ng-container",1)),2&B&&(u.Q6J("id",Dt.datepicker.id)("ngClass",Dt.datepicker.panelClass)("startAt",Dt.datepicker.startAt)("startView",Dt.datepicker.startView)("minDate",Dt.datepicker._minDate)("maxDate",Dt.datepicker._maxDate)("dateFilter",Dt.datepicker._dateFilter)("headerComponent",Dt.datepicker.calendarHeaderComponent)("selected",Dt.datepicker._selected)("dateClass",Dt.datepicker.dateClass)("@fadeInCalendar","enter"),u.xp6(1),u.Q6J("ngIf",Dt.isViewMonth))},dependencies:[Y.mk,Y.O5,l.Pl,Tt.JJ,Tt.On,Bt.Hw,at.lW,ye,kt],styles:['.mat-datepicker-content{display:block;border-radius:4px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-datepicker-content .mat-calendar{width:296px}.mat-datepicker-content .time-container{display:flex;position:relative;padding-top:5px;justify-content:center}.mat-datepicker-content .time-container.disable-seconds .ngx-mat-timepicker .table{margin-left:9px}.mat-datepicker-content .time-container:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:#0000001f}.mat-datepicker-content .actions{display:flex;padding:5px 15px 10px;justify-content:flex-end}\n'],encapsulation:2,data:{animation:[q.E2.transformPanel,q.E2.fadeInCalendar]},changeDetection:0}),G})(),yn=(()=>{class G{constructor(B,Dt,Le,kn,Zi,Yi,Ta,Aa){if(this._dialog=B,this._overlay=Dt,this._ngZone=Le,this._viewContainerRef=kn,this._dateAdapter=Yi,this._dir=Ta,this._document=Aa,this.startView="month",this._defaultColor="primary",this._touchUi=!1,this._hideTime=!1,this.yearSelected=new u.vpe,this.monthSelected=new u.vpe,this.openedStream=new u.vpe,this.closedStream=new u.vpe,this._opened=!1,this._showSpinners=!0,this._showSeconds=!1,this._stepHour=1,this._stepMinute=1,this._stepSecond=1,this._enableMeridian=!1,this._hasBackdrop=!0,this.id="mat-datepicker-"+Nt++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=g.w.EMPTY,this.stateChanges=new h.xQ,this._selectedChanged=new h.xQ,this._minValidator=()=>!this._minDate||!this._selected||this._dateAdapter.compareDateWithTime(this._minDate,this._selected,this.showSeconds)<=0?null:{matDatetimePickerMin:{min:this._minDate,actual:this._selected}},this._maxValidator=()=>!this._maxDate||!this._selected||this._dateAdapter.compareDateWithTime(this._maxDate,this._selected,this.showSeconds)>=0?null:{matDatetimePickerMax:{max:this._maxDate,actual:this._selected}},!this._dateAdapter)throw On("NgxMatDateAdapter");this._scrollStrategy=Zi}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.value:null)}set startAt(B){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(B))}get defaultColor(){return this._defaultColor}set defaultColor(B){this._defaultColor=B}get color(){return this._color||(this.datepickerInput?this.datepickerInput._getThemePalette():"primary")}set color(B){this._color=B}get touchUi(){return this._touchUi}set touchUi(B){this._touchUi=(0,rt.Ig)(B)}get hideTime(){return this._hideTime}set hideTime(B){this._hideTime=(0,rt.Ig)(B)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(B){const Dt=(0,rt.Ig)(B);Dt!==this._disabled&&(this._disabled=Dt,this.stateChanges.next(Dt))}get opened(){return this._opened}set opened(B){B?this.open():this.close()}get showSpinners(){return this._showSpinners}set showSpinners(B){this._showSpinners=B}get showSeconds(){return this._showSeconds}set showSeconds(B){this._showSeconds=B}get stepHour(){return this._stepHour}set stepHour(B){this._stepHour=B}get stepMinute(){return this._stepMinute}set stepMinute(B){this._stepMinute=B}get stepSecond(){return this._stepSecond}set stepSecond(B){this._stepSecond=B}get enableMeridian(){return this._enableMeridian}set enableMeridian(B){this._enableMeridian=B}get disableMinute(){return this._disableMinute}set disableMinute(B){this._disableMinute=B}get defaultTime(){return this._defaultTime}set defaultTime(B){this._defaultTime=B}get _selected(){return this._validSelected}set _selected(B){this._validSelected=B}get _minDate(){return this.datepickerInput&&this.datepickerInput.min}get _maxDate(){return this.datepickerInput&&this.datepickerInput.max}get valid(){const B=this._minValidator(),Dt=this._maxValidator();return null==B&&null==Dt}get _dateFilter(){return this.datepickerInput&&this.datepickerInput._dateFilter}ngOnDestroy(){this.close(),this._popupRef&&(this._popupRef.dispose(),this._popupComponentRef=null),this._inputSubscription.unsubscribe(),this.stateChanges.complete()}select(B){this._dateAdapter.copyTime(B,this._selected),this._selected=B}_selectYear(B){this.yearSelected.emit(B)}_selectMonth(B){this.monthSelected.emit(B)}ok(){const B=this._dateAdapter.clone(this._selected);this._selectedChanged.next(B),this.close()}cancel(){this._selected=this._rawValue,this.close()}_registerInput(B){if(this.datepickerInput)throw Error("A NgxMatDatepicker can only be associated with a single input.");this.datepickerInput=B,this._inputSubscription=this.datepickerInput._valueChange.subscribe(Dt=>this._selected=Dt)}open(){if(this._rawValue=null!=this._selected?this._dateAdapter.clone(this._selected):null,null==this._selected&&(this._selected=this._dateAdapter.today(),null!=this.defaultTime&&this._dateAdapter.setTimeByDefaultValues(this._selected,this.defaultTime)),!this._opened&&!this.disabled){if(!this.datepickerInput)throw Error("Attempted to open an NgxMatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}close(){if(!this._opened)return;this._popupRef&&this._popupRef.hasAttached()&&this._popupRef.detach(),this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null),this._calendarPortal&&this._calendarPortal.isAttached&&this._calendarPortal.detach();const B=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(B)):B()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(Se,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:this._hasBackdrop}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._dialogRef.componentInstance.datepicker=this,this._setColor()}_openAsPopup(){this._calendarPortal||(this._calendarPortal=new l.C5(Se,this._viewContainerRef)),this._popupRef||this._createPopup(),this._popupRef.hasAttached()||(this._popupComponentRef=this._popupRef.attach(this._calendarPortal),this._popupComponentRef.instance.datepicker=this,this._setColor(),this._ngZone.onStable.asObservable().pipe((0,T.q)(1)).subscribe(()=>{this._popupRef.updatePosition()}))}_createPopup(){const B=new ft.X_({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:this._hasBackdrop,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(B),this._popupRef.overlayElement.setAttribute("role","dialog"),(0,t.T)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe((0,O.h)(Dt=>Dt.keyCode===x.hY||this.datepickerInput&&Dt.altKey&&Dt.keyCode===x.LH))).subscribe(Dt=>{Dt&&Dt.preventDefault(),this._hasBackdrop&&Dt?this.cancel():this.close()})}_createPopupPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}_getValidDateOrNull(B){return this._dateAdapter.isDateInstance(B)&&this._dateAdapter.isValid(B)?B:null}_setColor(){const B=this.color;this._popupComponentRef&&(this._popupComponentRef.instance.color=B),this._dialogRef&&(this._dialogRef.componentInstance.color=B)}}return G.\u0275fac=function(B){return new(B||G)(u.Y36(bt.uw),u.Y36(ft.aV),u.Y36(u.R0b),u.Y36(u.s_b),u.Y36(q.Uu),u.Y36(Ct,8),u.Y36(X.Is,8),u.Y36(Y.K0,8))},G.\u0275cmp=u.Xpm({type:G,selectors:[["ngx-mat-datetime-picker"]],contentQueries:function(B,Dt,Le){if(1&B&&u.Suo(Le,u.Rgc,5),2&B){let kn;u.iGM(kn=u.CRH())&&(Dt._customIcon=kn.first)}},inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",defaultColor:"defaultColor",color:"color",touchUi:"touchUi",hideTime:"hideTime",disabled:"disabled",panelClass:"panelClass",dateClass:"dateClass",opened:"opened",showSpinners:"showSpinners",showSeconds:"showSeconds",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",enableMeridian:"enableMeridian",disableMinute:"disableMinute",defaultTime:"defaultTime"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["ngxMatDatetimePicker"],decls:0,vars:0,template:function(B,Dt){},encapsulation:2,changeDetection:0}),G})();const pi={provide:Tt.JU,useExisting:(0,u.Gpc)(()=>an),multi:!0},Ci={provide:Tt.Cf,useExisting:(0,u.Gpc)(()=>an),multi:!0};class en{constructor(Pt,B){this.target=Pt,this.targetElement=B,this.value=this.target.value}}let Wn,an=(()=>{class G{constructor(B,Dt,Le,kn){if(this._elementRef=B,this._dateAdapter=Dt,this._dateFormats=Le,this._formField=kn,this.dateChange=new u.vpe,this.dateInput=new u.vpe,this._valueChange=new u.vpe,this.stateChanges=new u.vpe,this._onTouched=()=>{},this._cvaOnChange=()=>{},this._validatorOnChange=()=>{},this._datepickerSubscription=g.w.EMPTY,this._localeSubscription=g.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatetimePickerParse:{text:this._elementRef.nativeElement.value}},this._minValidator=Zi=>{const Yi=this._getValidDateOrNull(this._dateAdapter.deserialize(Zi.value));return!this.min||!Yi||this._dateAdapter.compareDateWithTime(this.min,Yi,this._datepicker.showSeconds)<=0?null:{matDatetimePickerMin:{min:this.min,actual:Yi}}},this._maxValidator=Zi=>{const Yi=this._getValidDateOrNull(this._dateAdapter.deserialize(Zi.value));return!this.max||!Yi||this._dateAdapter.compareDateWithTime(this.max,Yi,this._datepicker.showSeconds)>=0?null:{matDatetimePickerMax:{max:this.max,actual:Yi}}},this._filterValidator=Zi=>{const Yi=this._getValidDateOrNull(this._dateAdapter.deserialize(Zi.value));return this._dateFilter&&Yi&&!this._dateFilter(Yi)?{matDatetimePickerFilter:!0}:null},this._validator=Tt.kI.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw On("NgxMatDateAdapter");if(!this._dateFormats)throw On("NGX_MAT_DATE_FORMATS");this._localeSubscription=Dt.localeChanges.subscribe(()=>{this.value=this.value})}set ngxMatDatetimePicker(B){!B||(this._datepicker=B,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe(Dt=>{this.value=Dt,this._cvaOnChange(Dt),this._onTouched(),this.dateInput.emit(new en(this,this._elementRef.nativeElement)),this.dateChange.emit(new en(this,this._elementRef.nativeElement))}))}set ngxMatDatetimePickerFilter(B){this._dateFilter=B,this._validatorOnChange()}get value(){return this._value}set value(B){B=this._dateAdapter.deserialize(B),this._lastValueValid=!B||this._dateAdapter.isValid(B),B=this._getValidDateOrNull(B);const Dt=this.value;this._value=B,this._formatValue(B),this._dateAdapter.sameDate(Dt,B)||this._valueChange.emit(B)}get min(){return this._min}set min(B){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(B)),this._validatorOnChange()}get max(){return this._max}set max(B){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(B)),this._validatorOnChange()}get disabled(){return!!this._disabled}set disabled(B){const Dt=null!=B&&"false"!=`${B}`,Le=this._elementRef.nativeElement;this._disabled!==Dt&&(this._disabled=Dt,this.stateChanges.emit(void 0)),Dt&&Le.blur&&Le.blur()}ngOnDestroy(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this.stateChanges.complete()}registerOnValidatorChange(B){this._validatorOnChange=B}validate(B){return this._validator?this._validator(B):null}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}writeValue(B){this.value=B}registerOnChange(B){this._cvaOnChange=B}registerOnTouched(B){this._onTouched=B}setDisabledState(B){this.disabled=B}_onKeydown(B){this._datepicker&&B.altKey&&B.keyCode===x.JH&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),B.preventDefault())}_onInput(B){const Dt=this._lastValueValid;let Le=this._dateAdapter.parse(B,this._dateFormats.parse.dateInput);this._lastValueValid=!Le||this._dateAdapter.isValid(Le),Le=this._getValidDateOrNull(Le);const kn=this._dateAdapter.isSameTime(Le,this._value);null!=Le&&(!kn||!this._dateAdapter.sameDate(Le,this._value))||null==Le&&null!=this._value?(this._value=Le,this._cvaOnChange(Le),this._valueChange.emit(Le),this.dateInput.emit(new en(this,this._elementRef.nativeElement))):Dt!==this._lastValueValid&&this._validatorOnChange()}_onChange(){this.dateChange.emit(new en(this,this._elementRef.nativeElement))}_getThemePalette(){return this._formField?this._formField.color:void 0}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_onFocus(){this._datepicker&&this._datepicker.opened&&this._datepicker.cancel()}_formatValue(B){this._elementRef.nativeElement.value=B?this._dateAdapter.format(B,this._dateFormats.display.dateInput):""}_getValidDateOrNull(B){return this._dateAdapter.isDateInstance(B)&&this._dateAdapter.isValid(B)?B:null}}return G.\u0275fac=function(B){return new(B||G)(u.Y36(u.SBq),u.Y36(Ct,8),u.Y36(oi,8),u.Y36(qt.KE,8))},G.\u0275dir=u.lG2({type:G,selectors:[["input","ngxMatDatetimePicker",""]],hostVars:5,hostBindings:function(B,Dt){1&B&&u.NdJ("input",function(kn){return Dt._onInput(kn.target.value)})("change",function(){return Dt._onChange()})("blur",function(){return Dt._onBlur()})("focus",function(){return Dt._onFocus()})("keydown",function(kn){return Dt._onKeydown(kn)}),2&B&&(u.Ikx("disabled",Dt.disabled),u.uIk("aria-haspopup",Dt._datepicker?"dialog":null)("aria-owns",(null==Dt._datepicker?null:Dt._datepicker.opened)&&Dt._datepicker.id||null)("min",Dt.min?Dt._dateAdapter.toIso8601(Dt.min):null)("max",Dt.max?Dt._dateAdapter.toIso8601(Dt.max):null))},inputs:{ngxMatDatetimePicker:"ngxMatDatetimePicker",ngxMatDatetimePickerFilter:"ngxMatDatetimePickerFilter",value:"value",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["ngxMatDatetimePickerInput"],features:[u._Bn([pi,Ci,{provide:Vt.Jk,useExisting:G}])]}),G})(),Be=(()=>{class G{}return G.\u0275fac=function(B){return new(B||G)},G.\u0275mod=u.oAB({type:G}),G.\u0275inj=u.cJS({imports:[Y.ez,Vt.c,Tt.UX,Tt.u5,Bt.Ps,at.ot]}),G})(),In=(()=>{class G{}return G.\u0275fac=function(B){return new(B||G)},G.\u0275mod=u.oAB({type:G}),G.\u0275inj=u.cJS({providers:[q.Lv,{provide:Yt,useClass:ie}],imports:[Y.ez,q.FA,bt.Is,l.eL,Tt.u5,Bt.Ps,at.ot,Vt.c,Be]}),G})();try{Wn=typeof Intl<"u"}catch{Wn=!1}const ki={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Hi=qo(31,G=>String(G+1)),Ji={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Uo=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function qo(G,Pt){const B=Array(G);for(let Dt=0;Dt{class G extends Ct{constructor(B,Dt){super(),this.useUtcForDisplay=!0,super.setLocale(B),this.useUtcForDisplay=!Dt.TRIDENT,this._clampDate=Dt.TRIDENT||Dt.EDGE}getYear(B){return B.getFullYear()}getMonth(B){return B.getMonth()}getDate(B){return B.getDate()}getDayOfWeek(B){return B.getDay()}getMonthNames(B){if(Wn){const Dt=new Intl.DateTimeFormat(this.locale,{month:B,timeZone:"utc"});return qo(12,Le=>this._stripDirectionalityCharacters(this._format(Dt,new Date(2017,Le,1))))}return ki[B]}getDateNames(){if(Wn){const B=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return qo(31,Dt=>this._stripDirectionalityCharacters(this._format(B,new Date(2017,0,Dt+1))))}return Hi}getDayOfWeekNames(B){if(Wn){const Dt=new Intl.DateTimeFormat(this.locale,{weekday:B,timeZone:"utc"});return qo(7,Le=>this._stripDirectionalityCharacters(this._format(Dt,new Date(2017,0,Le+1))))}return Ji[B]}getYearName(B){if(Wn){const Dt=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(Dt,B))}return String(this.getYear(B))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(B){return this.getDate(this._createDateWithOverflow(this.getYear(B),this.getMonth(B)+1,0))}clone(B){return new Date(B.getTime())}createDate(B,Dt,Le){if(Dt<0||Dt>11)throw Error(`Invalid month index "${Dt}". Month index has to be between 0 and 11.`);if(Le<1)throw Error(`Invalid date "${Le}". Date has to be greater than 0.`);let kn=this._createDateWithOverflow(B,Dt,Le);if(kn.getMonth()!=Dt)throw Error(`Invalid date "${Le}" for month with index "${Dt}".`);return kn}today(){return new Date}parse(B){return"number"==typeof B?new Date(B):B?new Date(Date.parse(B)):null}format(B,Dt){if(!this.isValid(B))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Wn){this._clampDate&&(B.getFullYear()<1||B.getFullYear()>9999)&&(B=this.clone(B)).setFullYear(Math.max(1,Math.min(9999,B.getFullYear()))),Dt={...Dt,timeZone:"utc"};const Le=new Intl.DateTimeFormat(this.locale,Dt);return this._stripDirectionalityCharacters(this._format(Le,B))}return this._stripDirectionalityCharacters(B.toDateString())}addCalendarYears(B,Dt){return this.addCalendarMonths(B,12*Dt)}addCalendarMonths(B,Dt){let Le=this._createDateWithOverflow(this.getYear(B),this.getMonth(B)+Dt,this.getDate(B));return this.getMonth(Le)!=((this.getMonth(B)+Dt)%12+12)%12&&(Le=this._createDateWithOverflow(this.getYear(Le),this.getMonth(Le),0)),Le}addCalendarDays(B,Dt){return this._createDateWithOverflow(this.getYear(B),this.getMonth(B),this.getDate(B)+Dt)}toIso8601(B){return[B.getUTCFullYear(),this._2digit(B.getUTCMonth()+1),this._2digit(B.getUTCDate())].join("-")}deserialize(B){if("string"==typeof B){if(!B)return null;if(Uo.test(B)){let Dt=new Date(B);if(this.isValid(Dt))return Dt}}return super.deserialize(B)}isDateInstance(B){return B instanceof Date}isValid(B){return!isNaN(B.getTime())}invalid(){return new Date(NaN)}getHour(B){return B.getHours()}getMinute(B){return B.getMinutes()}getSecond(B){return B.getSeconds()}setHour(B,Dt){B.setHours(Dt)}setMinute(B,Dt){B.setMinutes(Dt)}setSecond(B,Dt){B.setSeconds(Dt)}_createDateWithOverflow(B,Dt,Le){const kn=new Date(B,Dt,Le);return B>=0&&B<100&&kn.setFullYear(this.getYear(kn)-1900),kn}_2digit(B){return("00"+B).slice(-2)}_stripDirectionalityCharacters(B){return B.replace(/[\u200e\u200f]/g,"")}_format(B,Dt){const Le=new Date;return Le.setUTCFullYear(Dt.getFullYear(),Dt.getMonth(),Dt.getDate()),Le.setUTCHours(Dt.getHours(),Dt.getMinutes(),Dt.getSeconds(),Dt.getMilliseconds()),B.format(Le)}}return G.\u0275fac=function(B){return new(B||G)(u.LFG($.Ad,8),u.LFG(xt.t4))},G.\u0275prov=u.Yz7({token:G,factory:G.\u0275fac}),G})();const wn={year:"numeric",month:"numeric",day:"numeric",hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"},ke={parse:{dateInput:wn},display:{dateInput:wn,monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Ce=(()=>{class G{}return G.\u0275fac=function(B){return new(B||G)},G.\u0275mod=u.oAB({type:G}),G.\u0275inj=u.cJS({providers:[{provide:Ct,useClass:Pe}],imports:[xt.ud]}),G})(),We=(()=>{class G{}return G.\u0275fac=function(B){return new(B||G)},G.\u0275mod=u.oAB({type:G}),G.\u0275inj=u.cJS({providers:[{provide:oi,useValue:ke}],imports:[Ce]}),G})()},37340:(K,W,_)=>{"use strict";_.d(W,{F4:()=>k,IO:()=>X,LC:()=>u,SB:()=>D,X$:()=>h,ZE:()=>Tt,ZN:()=>ft,_j:()=>l,eR:()=>O,jt:()=>t,k1:()=>qt,l3:()=>g,oB:()=>U,pV:()=>Y,ru:()=>x,vP:()=>T});class l{}class u{}const g="*";function h(Vt,Bt){return{type:7,name:Vt,definitions:Bt,options:{}}}function t(Vt,Bt=null){return{type:4,styles:Bt,timings:Vt}}function x(Vt,Bt=null){return{type:3,steps:Vt,options:Bt}}function T(Vt,Bt=null){return{type:2,steps:Vt,options:Bt}}function U(Vt){return{type:6,styles:Vt,offset:null}}function D(Vt,Bt,bt){return{type:0,name:Vt,styles:Bt,options:bt}}function k(Vt){return{type:5,steps:Vt}}function O(Vt,Bt,bt=null){return{type:1,expr:Vt,animation:Bt,options:bt}}function Y(Vt=null){return{type:9,options:Vt}}function X(Vt,Bt,bt=null){return{type:11,selector:Vt,animation:Bt,options:bt}}function rt(Vt){Promise.resolve().then(Vt)}class ft{constructor(Bt=0,bt=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Bt+bt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Bt=>Bt()),this._onDoneFns=[])}onStart(Bt){this._originalOnStartFns.push(Bt),this._onStartFns.push(Bt)}onDone(Bt){this._originalOnDoneFns.push(Bt),this._onDoneFns.push(Bt)}onDestroy(Bt){this._onDestroyFns.push(Bt)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){rt(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Bt=>Bt()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Bt=>Bt()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Bt){this._position=this.totalTime?Bt*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Bt){const bt="start"==Bt?this._onStartFns:this._onDoneFns;bt.forEach(xt=>xt()),bt.length=0}}class Tt{constructor(Bt){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Bt;let bt=0,xt=0,ht=0;const ut=this.players.length;0==ut?rt(()=>this._onFinish()):this.players.forEach(Mt=>{Mt.onDone(()=>{++bt==ut&&this._onFinish()}),Mt.onDestroy(()=>{++xt==ut&&this._onDestroy()}),Mt.onStart(()=>{++ht==ut&&this._onStart()})}),this.totalTime=this.players.reduce((Mt,It)=>Math.max(Mt,It.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Bt=>Bt()),this._onDoneFns=[])}init(){this.players.forEach(Bt=>Bt.init())}onStart(Bt){this._onStartFns.push(Bt)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Bt=>Bt()),this._onStartFns=[])}onDone(Bt){this._onDoneFns.push(Bt)}onDestroy(Bt){this._onDestroyFns.push(Bt)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Bt=>Bt.play())}pause(){this.players.forEach(Bt=>Bt.pause())}restart(){this.players.forEach(Bt=>Bt.restart())}finish(){this._onFinish(),this.players.forEach(Bt=>Bt.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Bt=>Bt.destroy()),this._onDestroyFns.forEach(Bt=>Bt()),this._onDestroyFns=[])}reset(){this.players.forEach(Bt=>Bt.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Bt){const bt=Bt*this.totalTime;this.players.forEach(xt=>{const ht=xt.totalTime?Math.min(1,bt/xt.totalTime):1;xt.setPosition(ht)})}getPosition(){const Bt=this.players.reduce((bt,xt)=>null===bt||xt.totalTime>bt.totalTime?xt:bt,null);return null!=Bt?Bt.getPosition():0}beforeDestroy(){this.players.forEach(Bt=>{Bt.beforeDestroy&&Bt.beforeDestroy()})}triggerCallback(Bt){const bt="start"==Bt?this._onStartFns:this._onDoneFns;bt.forEach(xt=>xt()),bt.length=0}}const qt="!"},12687:(K,W,_)=>{"use strict";_.d(W,{$s:()=>It,Em:()=>pe,Kd:()=>Yn,X6:()=>Wt,ic:()=>Oe,kH:()=>On,mK:()=>_n,qV:()=>Re,qm:()=>we,rt:()=>Qe,s1:()=>_e,tE:()=>Sn,yG:()=>J});var l=_(36895),u=_(94650),g=_(83353),h=_(8929),t=_(42654),x=_(591),T=_(21086),U=_(29521),D=_(22868),k=_(80013),O=_(92198),q=_(24850),Y=_(72986),$=_(31307),X=_(75778),at=_(7625),rt=_(21281),ft=_(49643),Tt=_(62289);function bt(te,Ee){return(te.getAttribute(Ee)||"").match(/\S+/g)||[]}const ht="cdk-describedby-message",ut="cdk-describedby-host";let Mt=0,It=(()=>{class te{constructor($t,$e){this._platform=$e,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Mt++,this._document=$t,this._id=(0,u.f3M)(u.AFp)+"-"+Mt++}describe($t,$e,sn){if(!this._canBeDescribed($t,$e))return;const Xe=wt($e,sn);"string"!=typeof $e?(ee($e,this._id),this._messageRegistry.set(Xe,{messageElement:$e,referenceCount:0})):this._messageRegistry.has(Xe)||this._createMessageElement($e,sn),this._isElementDescribedByMessage($t,Xe)||this._addMessageReference($t,Xe)}removeDescription($t,$e,sn){if(!$e||!this._isElementNode($t))return;const Xe=wt($e,sn);if(this._isElementDescribedByMessage($t,Xe)&&this._removeMessageReference($t,Xe),"string"==typeof $e){const me=this._messageRegistry.get(Xe);me&&0===me.referenceCount&&this._deleteMessageElement(Xe)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const $t=this._document.querySelectorAll(`[${ut}="${this._id}"]`);for(let $e=0;$e<$t.length;$e++)this._removeCdkDescribedByReferenceIds($t[$e]),$t[$e].removeAttribute(ut);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement($t,$e){const sn=this._document.createElement("div");ee(sn,this._id),sn.textContent=$t,$e&&sn.setAttribute("role",$e),this._createMessagesContainer(),this._messagesContainer.appendChild(sn),this._messageRegistry.set(wt($t,$e),{messageElement:sn,referenceCount:0})}_deleteMessageElement($t){this._messageRegistry.get($t)?.messageElement?.remove(),this._messageRegistry.delete($t)}_createMessagesContainer(){if(this._messagesContainer)return;const $t="cdk-describedby-message-container",$e=this._document.querySelectorAll(`.${$t}[platform="server"]`);for(let Xe=0;Xe<$e.length;Xe++)$e[Xe].remove();const sn=this._document.createElement("div");sn.style.visibility="hidden",sn.classList.add($t),sn.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&sn.setAttribute("platform","server"),this._document.body.appendChild(sn),this._messagesContainer=sn}_removeCdkDescribedByReferenceIds($t){const $e=bt($t,"aria-describedby").filter(sn=>0!=sn.indexOf(ht));$t.setAttribute("aria-describedby",$e.join(" "))}_addMessageReference($t,$e){const sn=this._messageRegistry.get($e);(function Vt(te,Ee,$t){const $e=bt(te,Ee);$e.some(sn=>sn.trim()==$t.trim())||($e.push($t.trim()),te.setAttribute(Ee,$e.join(" ")))})($t,"aria-describedby",sn.messageElement.id),$t.setAttribute(ut,this._id),sn.referenceCount++}_removeMessageReference($t,$e){const sn=this._messageRegistry.get($e);sn.referenceCount--,function Bt(te,Ee,$t){const sn=bt(te,Ee).filter(Xe=>Xe!=$t.trim());sn.length?te.setAttribute(Ee,sn.join(" ")):te.removeAttribute(Ee)}($t,"aria-describedby",sn.messageElement.id),$t.removeAttribute(ut)}_isElementDescribedByMessage($t,$e){const sn=bt($t,"aria-describedby"),Xe=this._messageRegistry.get($e),me=Xe&&Xe.messageElement.id;return!!me&&-1!=sn.indexOf(me)}_canBeDescribed($t,$e){if(!this._isElementNode($t))return!1;if($e&&"object"==typeof $e)return!0;const sn=null==$e?"":`${$e}`.trim(),Xe=$t.getAttribute("aria-label");return!(!sn||Xe&&Xe.trim()===sn)}_isElementNode($t){return $t.nodeType===this._document.ELEMENT_NODE}}return te.\u0275fac=function($t){return new($t||te)(u.LFG(l.K0),u.LFG(g.t4))},te.\u0275prov=u.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();function wt(te,Ee){return"string"==typeof te?`${Ee||""}/${te}`:te}function ee(te,Ee){te.id||(te.id=`${ht}-${Ee}-${Mt++}`)}class Ft{constructor(Ee){this._items=Ee,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new h.xQ,this._typeaheadSubscription=t.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=$t=>$t.disabled,this._pressedLetters=[],this.tabOut=new h.xQ,this.change=new h.xQ,Ee instanceof u.n_E&&Ee.changes.subscribe($t=>{if(this._activeItem){const sn=$t.toArray().indexOf(this._activeItem);sn>-1&&sn!==this._activeItemIndex&&(this._activeItemIndex=sn)}})}skipPredicate(Ee){return this._skipPredicateFn=Ee,this}withWrap(Ee=!0){return this._wrap=Ee,this}withVerticalOrientation(Ee=!0){return this._vertical=Ee,this}withHorizontalOrientation(Ee){return this._horizontal=Ee,this}withAllowedModifierKeys(Ee){return this._allowedModifierKeys=Ee,this}withTypeAhead(Ee=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,D.b)($t=>this._pressedLetters.push($t)),(0,k.b)(Ee),(0,O.h)(()=>this._pressedLetters.length>0),(0,q.U)(()=>this._pressedLetters.join(""))).subscribe($t=>{const $e=this._getItemsArray();for(let sn=1;sn<$e.length+1;sn++){const Xe=(this._activeItemIndex+sn)%$e.length,me=$e[Xe];if(!this._skipPredicateFn(me)&&0===me.getLabel().toUpperCase().trim().indexOf($t)){this.setActiveItem(Xe);break}}this._pressedLetters=[]}),this}withHomeAndEnd(Ee=!0){return this._homeAndEnd=Ee,this}setActiveItem(Ee){const $t=this._activeItem;this.updateActiveItem(Ee),this._activeItem!==$t&&this.change.next(this._activeItemIndex)}onKeydown(Ee){const $t=Ee.keyCode,sn=["altKey","ctrlKey","metaKey","shiftKey"].every(Xe=>!Ee[Xe]||this._allowedModifierKeys.indexOf(Xe)>-1);switch($t){case U.Mf:return void this.tabOut.next();case U.JH:if(this._vertical&&sn){this.setNextItemActive();break}return;case U.LH:if(this._vertical&&sn){this.setPreviousItemActive();break}return;case U.SV:if(this._horizontal&&sn){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case U.oh:if(this._horizontal&&sn){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case U.Sd:if(this._homeAndEnd&&sn){this.setFirstItemActive();break}return;case U.uR:if(this._homeAndEnd&&sn){this.setLastItemActive();break}return;default:return void((sn||(0,U.Vb)(Ee,"shiftKey"))&&(Ee.key&&1===Ee.key.length?this._letterKeyStream.next(Ee.key.toLocaleUpperCase()):($t>=U.A&&$t<=U.Z||$t>=U.xE&&$t<=U.aO)&&this._letterKeyStream.next(String.fromCharCode($t))))}this._pressedLetters=[],Ee.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Ee){const $t=this._getItemsArray(),$e="number"==typeof Ee?Ee:$t.indexOf(Ee);this._activeItem=$t[$e]??null,this._activeItemIndex=$e}_setActiveItemByDelta(Ee){this._wrap?this._setActiveInWrapMode(Ee):this._setActiveInDefaultMode(Ee)}_setActiveInWrapMode(Ee){const $t=this._getItemsArray();for(let $e=1;$e<=$t.length;$e++){const sn=(this._activeItemIndex+Ee*$e+$t.length)%$t.length;if(!this._skipPredicateFn($t[sn]))return void this.setActiveItem(sn)}}_setActiveInDefaultMode(Ee){this._setActiveItemByIndex(this._activeItemIndex+Ee,Ee)}_setActiveItemByIndex(Ee,$t){const $e=this._getItemsArray();if($e[Ee]){for(;this._skipPredicateFn($e[Ee]);)if(!$e[Ee+=$t])return;this.setActiveItem(Ee)}}_getItemsArray(){return this._items instanceof u.n_E?this._items.toArray():this._items}}class _e extends Ft{setActiveItem(Ee){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Ee),this.activeItem&&this.activeItem.setActiveStyles()}}class pe extends Ft{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Ee){return this._origin=Ee,this}setActiveItem(Ee){super.setActiveItem(Ee),this.activeItem&&this.activeItem.focus(this._origin)}}let Oe=(()=>{class te{constructor($t){this._platform=$t}isDisabled($t){return $t.hasAttribute("disabled")}isVisible($t){return function Rt(te){return!!(te.offsetWidth||te.offsetHeight||"function"==typeof te.getClientRects&&te.getClientRects().length)}($t)&&"visible"===getComputedStyle($t).visibility}isTabbable($t){if(!this._platform.isBrowser)return!1;const $e=function Ie(te){try{return te.frameElement}catch{return null}}(function xe(te){return te.ownerDocument&&te.ownerDocument.defaultView||window}($t));if($e&&(-1===Ye($e)||!this.isVisible($e)))return!1;let sn=$t.nodeName.toLowerCase(),Xe=Ye($t);return $t.hasAttribute("contenteditable")?-1!==Xe:!("iframe"===sn||"object"===sn||this._platform.WEBKIT&&this._platform.IOS&&!function fn(te){let Ee=te.nodeName.toLowerCase(),$t="input"===Ee&&te.type;return"text"===$t||"password"===$t||"select"===Ee||"textarea"===Ee}($t))&&("audio"===sn?!!$t.hasAttribute("controls")&&-1!==Xe:"video"===sn?-1!==Xe&&(null!==Xe||this._platform.FIREFOX||$t.hasAttribute("controls")):$t.tabIndex>=0)}isFocusable($t,$e){return function An(te){return!function Kt(te){return function ce(te){return"input"==te.nodeName.toLowerCase()}(te)&&"hidden"==te.type}(te)&&(function fe(te){let Ee=te.nodeName.toLowerCase();return"input"===Ee||"select"===Ee||"button"===Ee||"textarea"===Ee}(te)||function ue(te){return function je(te){return"a"==te.nodeName.toLowerCase()}(te)&&te.hasAttribute("href")}(te)||te.hasAttribute("contenteditable")||Te(te))}($t)&&!this.isDisabled($t)&&($e?.ignoreVisibility||this.isVisible($t))}}return te.\u0275fac=function($t){return new($t||te)(u.LFG(g.t4))},te.\u0275prov=u.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();function Te(te){if(!te.hasAttribute("tabindex")||void 0===te.tabIndex)return!1;let Ee=te.getAttribute("tabindex");return!(!Ee||isNaN(parseInt(Ee,10)))}function Ye(te){if(!Te(te))return null;const Ee=parseInt(te.getAttribute("tabindex")||"",10);return isNaN(Ee)?-1:Ee}class hn{constructor(Ee,$t,$e,sn,Xe=!1){this._element=Ee,this._checker=$t,this._ngZone=$e,this._document=sn,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Xe||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Ee){this._enabled=Ee,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ee,this._startAnchor),this._toggleAnchorTabIndex(Ee,this._endAnchor))}destroy(){const Ee=this._startAnchor,$t=this._endAnchor;Ee&&(Ee.removeEventListener("focus",this.startAnchorListener),Ee.remove()),$t&&($t.removeEventListener("focus",this.endAnchorListener),$t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Ee){return new Promise($t=>{this._executeOnStable(()=>$t(this.focusInitialElement(Ee)))})}focusFirstTabbableElementWhenReady(Ee){return new Promise($t=>{this._executeOnStable(()=>$t(this.focusFirstTabbableElement(Ee)))})}focusLastTabbableElementWhenReady(Ee){return new Promise($t=>{this._executeOnStable(()=>$t(this.focusLastTabbableElement(Ee)))})}_getRegionBoundary(Ee){const $t=this._element.querySelectorAll(`[cdk-focus-region-${Ee}], [cdkFocusRegion${Ee}], [cdk-focus-${Ee}]`);return"start"==Ee?$t.length?$t[0]:this._getFirstTabbableElement(this._element):$t.length?$t[$t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Ee){const $t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if($t){if(!this._checker.isFocusable($t)){const $e=this._getFirstTabbableElement($t);return $e?.focus(Ee),!!$e}return $t.focus(Ee),!0}return this.focusFirstTabbableElement(Ee)}focusFirstTabbableElement(Ee){const $t=this._getRegionBoundary("start");return $t&&$t.focus(Ee),!!$t}focusLastTabbableElement(Ee){const $t=this._getRegionBoundary("end");return $t&&$t.focus(Ee),!!$t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Ee){if(this._checker.isFocusable(Ee)&&this._checker.isTabbable(Ee))return Ee;const $t=Ee.children;for(let $e=0;$e<$t.length;$e++){const sn=$t[$e].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement($t[$e]):null;if(sn)return sn}return null}_getLastTabbableElement(Ee){if(this._checker.isFocusable(Ee)&&this._checker.isTabbable(Ee))return Ee;const $t=Ee.children;for(let $e=$t.length-1;$e>=0;$e--){const sn=$t[$e].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement($t[$e]):null;if(sn)return sn}return null}_createAnchor(){const Ee=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ee),Ee.classList.add("cdk-visually-hidden"),Ee.classList.add("cdk-focus-trap-anchor"),Ee.setAttribute("aria-hidden","true"),Ee}_toggleAnchorTabIndex(Ee,$t){Ee?$t.setAttribute("tabindex","0"):$t.removeAttribute("tabindex")}toggleAnchors(Ee){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ee,this._startAnchor),this._toggleAnchorTabIndex(Ee,this._endAnchor))}_executeOnStable(Ee){this._ngZone.isStable?Ee():this._ngZone.onStable.pipe((0,Y.q)(1)).subscribe(Ee)}}let Re=(()=>{class te{constructor($t,$e,sn){this._checker=$t,this._ngZone=$e,this._document=sn}create($t,$e=!1){return new hn($t,this._checker,this._ngZone,this._document,$e)}}return te.\u0275fac=function($t){return new($t||te)(u.LFG(Oe),u.LFG(u.R0b),u.LFG(l.K0))},te.\u0275prov=u.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),_n=(()=>{class te{constructor($t,$e,sn){this._elementRef=$t,this._focusTrapFactory=$e,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled($t){this.focusTrap.enabled=(0,rt.Ig)($t)}get autoCapture(){return this._autoCapture}set autoCapture($t){this._autoCapture=(0,rt.Ig)($t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges($t){const $e=$t.autoCapture;$e&&!$e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,g.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return te.\u0275fac=function($t){return new($t||te)(u.Y36(u.SBq),u.Y36(Re),u.Y36(l.K0))},te.\u0275dir=u.lG2({type:te,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[u.TTD]}),te})();function Wt(te){return 0===te.buttons||0===te.offsetX&&0===te.offsetY}function J(te){const Ee=te.touches&&te.touches[0]||te.changedTouches&&te.changedTouches[0];return!(!Ee||-1!==Ee.identifier||null!=Ee.radiusX&&1!==Ee.radiusX||null!=Ee.radiusY&&1!==Ee.radiusY)}const j=new u.OlP("cdk-input-modality-detector-options"),Q={ignoreKeys:[U.zL,U.jx,U.b2,U.MW,U.JU]},Yt=(0,g.i$)({passive:!0,capture:!0});let ie=(()=>{class te{constructor($t,$e,sn,Xe){this._platform=$t,this._mostRecentTarget=null,this._modality=new x.X(null),this._lastTouchMs=0,this._onKeydown=me=>{this._options?.ignoreKeys?.some(kt=>kt===me.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,g.sA)(me))},this._onMousedown=me=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Wt(me)?"keyboard":"mouse"),this._mostRecentTarget=(0,g.sA)(me))},this._onTouchstart=me=>{J(me)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,g.sA)(me))},this._options={...Q,...Xe},this.modalityDetected=this._modality.pipe((0,$.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,X.x)()),$t.isBrowser&&$e.runOutsideAngular(()=>{sn.addEventListener("keydown",this._onKeydown,Yt),sn.addEventListener("mousedown",this._onMousedown,Yt),sn.addEventListener("touchstart",this._onTouchstart,Yt)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Yt),document.removeEventListener("mousedown",this._onMousedown,Yt),document.removeEventListener("touchstart",this._onTouchstart,Yt))}}return te.\u0275fac=function($t){return new($t||te)(u.LFG(g.t4),u.LFG(u.R0b),u.LFG(l.K0),u.LFG(j,8))},te.\u0275prov=u.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();const re=new u.OlP("liveAnnouncerElement",{providedIn:"root",factory:function tn(){return null}}),Cn=new u.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Yn=(()=>{class te{constructor($t,$e,sn,Xe){this._ngZone=$e,this._defaultOptions=Xe,this._document=sn,this._liveElement=$t||this._createLiveElement()}announce($t,...$e){const sn=this._defaultOptions;let Xe,me;return 1===$e.length&&"number"==typeof $e[0]?me=$e[0]:[Xe,me]=$e,this.clear(),clearTimeout(this._previousTimeout),Xe||(Xe=sn&&sn.politeness?sn.politeness:"polite"),null==me&&sn&&(me=sn.duration),this._liveElement.setAttribute("aria-live",Xe),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(kt=>this._currentResolve=kt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=$t,"number"==typeof me&&(this._previousTimeout=setTimeout(()=>this.clear(),me)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const $t="cdk-live-announcer-element",$e=this._document.getElementsByClassName($t),sn=this._document.createElement("div");for(let Xe=0;Xe<$e.length;Xe++)$e[Xe].remove();return sn.classList.add($t),sn.classList.add("cdk-visually-hidden"),sn.setAttribute("aria-atomic","true"),sn.setAttribute("aria-live","polite"),this._document.body.appendChild(sn),sn}}return te.\u0275fac=function($t){return new($t||te)(u.LFG(re,8),u.LFG(u.R0b),u.LFG(l.K0),u.LFG(Cn,8))},te.\u0275prov=u.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();const Fi=new u.OlP("cdk-focus-monitor-default-options"),Bn=(0,g.i$)({passive:!0,capture:!0});let Sn=(()=>{class te{constructor($t,$e,sn,Xe,me){this._ngZone=$t,this._platform=$e,this._inputModalityDetector=sn,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new h.xQ,this._rootNodeFocusAndBlurListener=kt=>{for(let Nt=(0,g.sA)(kt);Nt;Nt=Nt.parentElement)"focus"===kt.type?this._onFocus(kt,Nt):this._onBlur(kt,Nt)},this._document=Xe,this._detectionMode=me?.detectionMode||0}monitor($t,$e=!1){const sn=(0,rt.fI)($t);if(!this._platform.isBrowser||1!==sn.nodeType)return(0,T.of)(null);const Xe=(0,g.kV)(sn)||this._getDocument(),me=this._elementInfo.get(sn);if(me)return $e&&(me.checkChildren=!0),me.subject;const kt={checkChildren:$e,subject:new h.xQ,rootNode:Xe};return this._elementInfo.set(sn,kt),this._registerGlobalListeners(kt),kt.subject}stopMonitoring($t){const $e=(0,rt.fI)($t),sn=this._elementInfo.get($e);sn&&(sn.subject.complete(),this._setClasses($e),this._elementInfo.delete($e),this._removeGlobalListeners(sn))}focusVia($t,$e,sn){const Xe=(0,rt.fI)($t);Xe===this._getDocument().activeElement?this._getClosestElementsInfo(Xe).forEach(([kt,ye])=>this._originChanged(kt,$e,ye)):(this._setOrigin($e),"function"==typeof Xe.focus&&Xe.focus(sn))}ngOnDestroy(){this._elementInfo.forEach(($t,$e)=>this.stopMonitoring($e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin($t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch($t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:$t&&this._isLastInteractionFromInputLabel($t)?"mouse":"program"}_shouldBeAttributedToTouch($t){return 1===this._detectionMode||!!$t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses($t,$e){$t.classList.toggle("cdk-focused",!!$e),$t.classList.toggle("cdk-touch-focused","touch"===$e),$t.classList.toggle("cdk-keyboard-focused","keyboard"===$e),$t.classList.toggle("cdk-mouse-focused","mouse"===$e),$t.classList.toggle("cdk-program-focused","program"===$e)}_setOrigin($t,$e=!1){this._ngZone.runOutsideAngular(()=>{this._origin=$t,this._originFromTouchInteraction="touch"===$t&&$e,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus($t,$e){const sn=this._elementInfo.get($e),Xe=(0,g.sA)($t);!sn||!sn.checkChildren&&$e!==Xe||this._originChanged($e,this._getFocusOrigin(Xe),sn)}_onBlur($t,$e){const sn=this._elementInfo.get($e);!sn||sn.checkChildren&&$t.relatedTarget instanceof Node&&$e.contains($t.relatedTarget)||(this._setClasses($e),this._emitOrigin(sn,null))}_emitOrigin($t,$e){$t.subject.observers.length&&this._ngZone.run(()=>$t.subject.next($e))}_registerGlobalListeners($t){if(!this._platform.isBrowser)return;const $e=$t.rootNode,sn=this._rootNodeFocusListenerCount.get($e)||0;sn||this._ngZone.runOutsideAngular(()=>{$e.addEventListener("focus",this._rootNodeFocusAndBlurListener,Bn),$e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Bn)}),this._rootNodeFocusListenerCount.set($e,sn+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,at.R)(this._stopInputModalityDetector)).subscribe(Xe=>{this._setOrigin(Xe,!0)}))}_removeGlobalListeners($t){const $e=$t.rootNode;if(this._rootNodeFocusListenerCount.has($e)){const sn=this._rootNodeFocusListenerCount.get($e);sn>1?this._rootNodeFocusListenerCount.set($e,sn-1):($e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Bn),$e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Bn),this._rootNodeFocusListenerCount.delete($e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged($t,$e,sn){this._setClasses($t,$e),this._emitOrigin(sn,$e),this._lastFocusOrigin=$e}_getClosestElementsInfo($t){const $e=[];return this._elementInfo.forEach((sn,Xe)=>{(Xe===$t||sn.checkChildren&&Xe.contains($t))&&$e.push([Xe,sn])}),$e}_isLastInteractionFromInputLabel($t){const{_mostRecentTarget:$e,mostRecentModality:sn}=this._inputModalityDetector;if("mouse"!==sn||!$e||$e===$t||"INPUT"!==$t.nodeName&&"TEXTAREA"!==$t.nodeName||$t.disabled)return!1;const Xe=$t.labels;if(Xe)for(let me=0;me{class te{constructor($t,$e){this._elementRef=$t,this._focusMonitor=$e,this._focusOrigin=null,this.cdkFocusChange=new u.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const $t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor($t,1===$t.nodeType&&$t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe($e=>{this._focusOrigin=$e,this.cdkFocusChange.emit($e)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return te.\u0275fac=function($t){return new($t||te)(u.Y36(u.SBq),u.Y36(Sn))},te.\u0275dir=u.lG2({type:te,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),te})();const He="cdk-high-contrast-black-on-white",cn="cdk-high-contrast-white-on-black",qe="cdk-high-contrast-active";let we=(()=>{class te{constructor($t,$e){this._platform=$t,this._document=$e,this._breakpointSubscription=(0,u.f3M)(Tt.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const $t=this._document.createElement("div");$t.style.backgroundColor="rgb(1,2,3)",$t.style.position="absolute",this._document.body.appendChild($t);const $e=this._document.defaultView||window,sn=$e&&$e.getComputedStyle?$e.getComputedStyle($t):null,Xe=(sn&&sn.backgroundColor||"").replace(/ /g,"");switch($t.remove(),Xe){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const $t=this._document.body.classList;$t.remove(qe,He,cn),this._hasCheckedHighContrastMode=!0;const $e=this.getHighContrastMode();1===$e?$t.add(qe,He):2===$e&&$t.add(qe,cn)}}}return te.\u0275fac=function($t){return new($t||te)(u.LFG(g.t4),u.LFG(l.K0))},te.\u0275prov=u.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),Qe=(()=>{class te{constructor($t){$t._applyBodyHighContrastModeCssClasses()}}return te.\u0275fac=function($t){return new($t||te)(u.LFG(we))},te.\u0275mod=u.oAB({type:te}),te.\u0275inj=u.cJS({imports:[ft.Q8]}),te})()},40445:(K,W,_)=>{"use strict";_.d(W,{Is:()=>T,vT:()=>D});var l=_(94650),u=_(36895);const g=new l.OlP("cdk-dir-doc",{providedIn:"root",factory:function h(){return(0,l.f3M)(u.K0)}}),t=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let T=(()=>{class k{constructor(q){if(this.value="ltr",this.change=new l.vpe,q){const $=q.documentElement?q.documentElement.dir:null;this.value=function x(k){const O=k?.toLowerCase()||"";return"auto"===O&&typeof navigator<"u"&&navigator?.language?t.test(navigator.language)?"rtl":"ltr":"rtl"===O?"rtl":"ltr"}((q.body?q.body.dir:null)||$||"ltr")}}ngOnDestroy(){this.change.complete()}}return k.\u0275fac=function(q){return new(q||k)(l.LFG(g,8))},k.\u0275prov=l.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})(),D=(()=>{class k{}return k.\u0275fac=function(q){return new(q||k)},k.\u0275mod=l.oAB({type:k}),k.\u0275inj=l.cJS({}),k})()},64425:(K,W,_)=>{"use strict";_.d(W,{TU:()=>h});var l=_(36895),u=_(94650);class g{constructor(D,k){this._document=k;const O=this._textarea=this._document.createElement("textarea"),q=O.style;q.position="fixed",q.top=q.opacity="0",q.left="-999em",O.setAttribute("aria-hidden","true"),O.value=D,O.readOnly=!0,this._document.body.appendChild(O)}copy(){const D=this._textarea;let k=!1;try{if(D){const O=this._document.activeElement;D.select(),D.setSelectionRange(0,D.value.length),k=this._document.execCommand("copy"),O&&O.focus()}}catch{}return k}destroy(){const D=this._textarea;D&&(D.remove(),this._textarea=void 0)}}let h=(()=>{class U{constructor(k){this._document=k}copy(k){const O=this.beginCopy(k),q=O.copy();return O.destroy(),q}beginCopy(k){return new g(k,this._document)}}return U.\u0275fac=function(k){return new(k||U)(u.LFG(l.K0))},U.\u0275prov=u.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})()},21281:(K,W,_)=>{"use strict";_.d(W,{Eq:()=>t,HM:()=>x,Ig:()=>u,du:()=>U,fI:()=>T,su:()=>g,t6:()=>h});var l=_(94650);function u(D){return null!=D&&"false"!=`${D}`}function g(D,k=0){return h(D)?Number(D):k}function h(D){return!isNaN(parseFloat(D))&&!isNaN(Number(D))}function t(D){return Array.isArray(D)?D:[D]}function x(D){return null==D?"":"string"==typeof D?D:`${D}px`}function T(D){return D instanceof l.SBq?D.nativeElement:D}function U(D,k=/\s+/){const O=[];if(null!=D){const q=Array.isArray(D)?D:`${D}`.split(k);for(const Y of q){const $=`${Y}`.trim();$&&O.push($)}}return O}},95017:(K,W,_)=>{"use strict";_.d(W,{A8:()=>O,Ov:()=>D,Z9:()=>t,eX:()=>U,k:()=>q,o2:()=>h,yy:()=>T});var l=_(71762),u=_(8929),g=_(94650);class h{}function t(Y){return Y&&"function"==typeof Y.connect&&!(Y instanceof l.c)}class T{applyChanges($,X,at,rt,ft){$.forEachOperation((Tt,qt,Vt)=>{let Bt,bt;if(null==Tt.previousIndex){const xt=at(Tt,qt,Vt);Bt=X.createEmbeddedView(xt.templateRef,xt.context,xt.index),bt=1}else null==Vt?(X.remove(qt),bt=3):(Bt=X.get(qt),X.move(Bt,Vt),bt=2);ft&&ft({context:Bt?.context,operation:bt,record:Tt})})}detach(){}}class U{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges($,X,at,rt,ft){$.forEachOperation((Tt,qt,Vt)=>{let Bt,bt;null==Tt.previousIndex?(Bt=this._insertView(()=>at(Tt,qt,Vt),Vt,X,rt(Tt)),bt=Bt?1:0):null==Vt?(this._detachAndCacheView(qt,X),bt=3):(Bt=this._moveView(qt,Vt,X,rt(Tt)),bt=2),ft&&ft({context:Bt?.context,operation:bt,record:Tt})})}detach(){for(const $ of this._viewCache)$.destroy();this._viewCache=[]}_insertView($,X,at,rt){const ft=this._insertViewFromCache(X,at);if(ft)return void(ft.context.$implicit=rt);const Tt=$();return at.createEmbeddedView(Tt.templateRef,Tt.context,Tt.index)}_detachAndCacheView($,X){const at=X.detach($);this._maybeCacheView(at,X)}_moveView($,X,at,rt){const ft=at.get($);return at.move(ft,X),ft.context.$implicit=rt,ft}_maybeCacheView($,X){if(this._viewCache.lengththis._markSelected(ft)):this._markSelected(X[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...$){this._verifyValueAssignment($),$.forEach(at=>this._markSelected(at));const X=this._hasQueuedChanges();return this._emitChangeEvent(),X}deselect(...$){this._verifyValueAssignment($),$.forEach(at=>this._unmarkSelected(at));const X=this._hasQueuedChanges();return this._emitChangeEvent(),X}setSelection(...$){this._verifyValueAssignment($);const X=this.selected,at=new Set($);$.forEach(ft=>this._markSelected(ft)),X.filter(ft=>!at.has(ft)).forEach(ft=>this._unmarkSelected(ft));const rt=this._hasQueuedChanges();return this._emitChangeEvent(),rt}toggle($){return this.isSelected($)?this.deselect($):this.select($)}clear($=!0){this._unmarkAll();const X=this._hasQueuedChanges();return $&&this._emitChangeEvent(),X}isSelected($){if(this.compareWith){for(const X of this._selection)if(this.compareWith(X,$))return!0;return!1}return this._selection.has($)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort($){this._multiple&&this.selected&&this._selected.sort($)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected($){this.isSelected($)||(this._multiple||this._unmarkAll(),this.isSelected($)||this._selection.add($),this._emitChanges&&this._selectedToEmit.push($))}_unmarkSelected($){this.isSelected($)&&(this._selection.delete($),this._emitChanges&&this._deselectedToEmit.push($))}_unmarkAll(){this.isEmpty()||this._selection.forEach($=>this._unmarkSelected($))}_verifyValueAssignment($){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let O=(()=>{class Y{constructor(){this._listeners=[]}notify(X,at){for(let rt of this._listeners)rt(X,at)}listen(X){return this._listeners.push(X),()=>{this._listeners=this._listeners.filter(at=>X!==at)}}ngOnDestroy(){this._listeners=[]}}return Y.\u0275fac=function(X){return new(X||Y)},Y.\u0275prov=g.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})();const q=new g.OlP("_ViewRepeater")},53977:(K,W,_)=>{"use strict";_.d(W,{Zt:()=>$e,Wj:()=>He,_t:()=>sn,bA:()=>_n});var l=_(94650),u=_(36895),g=_(67376),h=_(83353),t=_(21281),x=_(12687),T=_(8929),U=_(42654),D=_(56498),k=_(20353),O=_(84241);function Y(Xe){const{subscriber:me,counter:kt,period:ye}=Xe;me.next(kt),this.schedule({subscriber:me,counter:kt+1,period:ye},ye)}var $=_(90352),X=_(36787),at=_(7625),rt=_(1059),ft=_(24850),Tt=_(72986),qt=_(22868),Vt=_(87545),Bt=_(40445);function bt(Xe,me,kt){for(let ye in me)if(me.hasOwnProperty(ye)){const Nt=me[ye];Nt?Xe.setProperty(ye,Nt,kt?.has(ye)?"important":""):Xe.removeProperty(ye)}return Xe}function xt(Xe,me){const kt=me?"":"none";bt(Xe.style,{"touch-action":me?"":"none","-webkit-user-drag":me?"":"none","-webkit-tap-highlight-color":me?"":"transparent","user-select":kt,"-ms-user-select":kt,"-webkit-user-select":kt,"-moz-user-select":kt})}function ht(Xe,me,kt){bt(Xe.style,{position:me?"":"fixed",top:me?"":"0",opacity:me?"":"0",left:me?"":"-999em"},kt)}function ut(Xe,me){return me&&"none"!=me?Xe+" "+me:Xe}function Mt(Xe){const me=Xe.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Xe)*me}function wt(Xe,me){return Xe.getPropertyValue(me).split(",").map(ye=>ye.trim())}function ee(Xe){const me=Xe.getBoundingClientRect();return{top:me.top,right:me.right,bottom:me.bottom,left:me.left,width:me.width,height:me.height,x:me.x,y:me.y}}function Ft(Xe,me,kt){const{top:ye,bottom:Nt,left:ve,right:Se}=Xe;return kt>=ye&&kt<=Nt&&me>=ve&&me<=Se}function _e(Xe,me,kt){Xe.top+=me,Xe.bottom=Xe.top+Xe.height,Xe.left+=kt,Xe.right=Xe.left+Xe.width}function pe(Xe,me,kt,ye){const{top:Nt,right:ve,bottom:Se,left:yn,width:pi,height:Ci}=Xe,en=pi*me,an=Ci*me;return ye>Nt-an&&yeyn-en&&kt{this.positions.set(kt,{scrollPosition:{top:kt.scrollTop,left:kt.scrollLeft},clientRect:ee(kt)})})}handleScroll(me){const kt=(0,h.sA)(me),ye=this.positions.get(kt);if(!ye)return null;const Nt=ye.scrollPosition;let ve,Se;if(kt===this._document){const Ci=this.getViewportScrollPosition();ve=Ci.top,Se=Ci.left}else ve=kt.scrollTop,Se=kt.scrollLeft;const yn=Nt.top-ve,pi=Nt.left-Se;return this.positions.forEach((Ci,en)=>{Ci.clientRect&&kt!==en&&kt.contains(en)&&_e(Ci.clientRect,yn,pi)}),Nt.top=ve,Nt.left=Se,{top:yn,left:pi}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Oe(Xe){const me=Xe.cloneNode(!0),kt=me.querySelectorAll("[id]"),ye=Xe.nodeName.toLowerCase();me.removeAttribute("id");for(let Nt=0;Nt{if(this.beforeStarted.next(),this._handles.length){const pi=this._getTargetHandle(yn);pi&&!this._disabledHandles.has(pi)&&!this.disabled&&this._initializeDragSequence(pi,yn)}else this.disabled||this._initializeDragSequence(this._rootElement,yn)},this._pointerMove=yn=>{const pi=this._getPointerPositionOnPage(yn);if(!this._hasStartedDragging){if(Math.abs(pi.x-this._pickupPositionOnPage.x)+Math.abs(pi.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const In=Date.now()>=this._dragStartTime+this._getDragStartDelay(yn),Wn=this._dropContainer;if(!In)return void this._endDragSequence(yn);(!Wn||!Wn.isDragging()&&!Wn.isReceiving())&&(yn.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(yn)))}return}yn.preventDefault();const Ci=this._getConstrainedPointerPosition(pi);if(this._hasMoved=!0,this._lastKnownPointerPosition=pi,this._updatePointerDirectionDelta(Ci),this._dropContainer)this._updateActiveDropContainer(Ci,pi);else{const en=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,an=this._activeTransform;an.x=Ci.x-en.x+this._passiveTransform.x,an.y=Ci.y-en.y+this._passiveTransform.y,this._applyRootElementTransform(an.x,an.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:Ci,event:yn,distance:this._getDragDistance(Ci),delta:this._pointerDirectionDelta})})},this._pointerUp=yn=>{this._endDragSequence(yn)},this._nativeDragStart=yn=>{if(this._handles.length){const pi=this._getTargetHandle(yn);pi&&!this._disabledHandles.has(pi)&&!this.disabled&&yn.preventDefault()}else this.disabled||yn.preventDefault()},this.withRootElement(me).withParent(kt.parentDragRef||null),this._parentPositions=new Ze(ye),Se.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(me){const kt=(0,t.Ig)(me);kt!==this._disabled&&(this._disabled=kt,this._toggleNativeDragInteractions(),this._handles.forEach(ye=>xt(ye,kt)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(me){this._handles=me.map(ye=>(0,t.fI)(ye)),this._handles.forEach(ye=>xt(ye,this.disabled)),this._toggleNativeDragInteractions();const kt=new Set;return this._disabledHandles.forEach(ye=>{this._handles.indexOf(ye)>-1&&kt.add(ye)}),this._disabledHandles=kt,this}withPreviewTemplate(me){return this._previewTemplate=me,this}withPlaceholderTemplate(me){return this._placeholderTemplate=me,this}withRootElement(me){const kt=(0,t.fI)(me);return kt!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{kt.addEventListener("mousedown",this._pointerDown,ce),kt.addEventListener("touchstart",this._pointerDown,ue),kt.addEventListener("dragstart",this._nativeDragStart,ce)}),this._initialTransform=void 0,this._rootElement=kt),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(me){return this._boundaryElement=me?(0,t.fI)(me):null,this._resizeSubscription.unsubscribe(),me&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(me){return this._parentDragRef=me,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(me){!this._disabledHandles.has(me)&&this._handles.indexOf(me)>-1&&(this._disabledHandles.add(me),xt(me,!0))}enableHandle(me){this._disabledHandles.has(me)&&(this._disabledHandles.delete(me),xt(me,this.disabled))}withDirection(me){return this._direction=me,this}_withDropContainer(me){this._dropContainer=me}getFreeDragPosition(){const me=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:me.x,y:me.y}}setFreeDragPosition(me){return this._activeTransform={x:0,y:0},this._passiveTransform.x=me.x,this._passiveTransform.y=me.y,this._dropContainer||this._applyRootElementTransform(me.x,me.y),this}withPreviewContainer(me){return this._previewContainer=me,this}_sortFromLastPointerPosition(){const me=this._lastKnownPointerPosition;me&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(me),me)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(me){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:me}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(me),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const kt=this._getPointerPositionOnPage(me);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(kt),dropPoint:kt,event:me})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(me){xe(me)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const kt=this._dropContainer;if(kt){const ye=this._rootElement,Nt=ye.parentNode,ve=this._placeholder=this._createPlaceholderElement(),Se=this._anchor=this._anchor||this._document.createComment(""),yn=this._getShadowRoot();Nt.insertBefore(Se,ye),this._initialTransform=ye.style.transform||"",this._preview=this._createPreviewElement(),ht(ye,!1,Te),this._document.body.appendChild(Nt.replaceChild(ve,ye)),this._getPreviewInsertionPoint(Nt,yn).appendChild(this._preview),this.started.next({source:this,event:me}),kt.start(),this._initialContainer=kt,this._initialIndex=kt.getItemIndex(this)}else this.started.next({source:this,event:me}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(kt?kt.getScrollableParents():[])}_initializeDragSequence(me,kt){this._parentDragRef&&kt.stopPropagation();const ye=this.isDragging(),Nt=xe(kt),ve=!Nt&&0!==kt.button,Se=this._rootElement,yn=(0,h.sA)(kt),pi=!Nt&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),Ci=Nt?(0,x.yG)(kt):(0,x.X6)(kt);if(yn&&yn.draggable&&"mousedown"===kt.type&&kt.preventDefault(),ye||ve||pi||Ci)return;if(this._handles.length){const Be=Se.style;this._rootElementTapHighlight=Be.webkitTapHighlightColor||"",Be.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Be=>this._updateOnScroll(Be)),this._boundaryElement&&(this._boundaryRect=ee(this._boundaryElement));const en=this._previewTemplate;this._pickupPositionInElement=en&&en.template&&!en.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,me,kt);const an=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(kt);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:an.x,y:an.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,kt)}_cleanupDragArtifacts(me){ht(this._rootElement,!0,Te),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const kt=this._dropContainer,ye=kt.getItemIndex(this),Nt=this._getPointerPositionOnPage(me),ve=this._getDragDistance(Nt),Se=kt._isOverContainer(Nt.x,Nt.y);this.ended.next({source:this,distance:ve,dropPoint:Nt,event:me}),this.dropped.next({item:this,currentIndex:ye,previousIndex:this._initialIndex,container:kt,previousContainer:this._initialContainer,isPointerOverContainer:Se,distance:ve,dropPoint:Nt,event:me}),kt.drop(this,ye,this._initialIndex,this._initialContainer,Se,ve,Nt,me),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:me,y:kt},{x:ye,y:Nt}){let ve=this._initialContainer._getSiblingContainerFromPosition(this,me,kt);!ve&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(me,kt)&&(ve=this._initialContainer),ve&&ve!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=ve,this._dropContainer.enter(this,me,kt,ve===this._initialContainer&&ve.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:ve,currentIndex:ve.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(ye,Nt),this._dropContainer._sortItem(this,me,kt,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(me,kt):this._applyPreviewTransform(me-this._pickupPositionInElement.x,kt-this._pickupPositionInElement.y))}_createPreviewElement(){const me=this._previewTemplate,kt=this.previewClass,ye=me?me.template:null;let Nt;if(ye&&me){const ve=me.matchSize?this._initialClientRect:null,Se=me.viewContainer.createEmbeddedView(ye,me.context);Se.detectChanges(),Nt=hn(Se,this._document),this._previewRef=Se,me.matchSize?Re(Nt,ve):Nt.style.transform=fn(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else Nt=Oe(this._rootElement),Re(Nt,this._initialClientRect),this._initialTransform&&(Nt.style.transform=this._initialTransform);return bt(Nt.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Te),xt(Nt,!1),Nt.classList.add("cdk-drag-preview"),Nt.setAttribute("dir",this._direction),kt&&(Array.isArray(kt)?kt.forEach(ve=>Nt.classList.add(ve)):Nt.classList.add(kt)),Nt}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const me=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(me.left,me.top);const kt=function It(Xe){const me=getComputedStyle(Xe),kt=wt(me,"transition-property"),ye=kt.find(yn=>"transform"===yn||"all"===yn);if(!ye)return 0;const Nt=kt.indexOf(ye),ve=wt(me,"transition-duration"),Se=wt(me,"transition-delay");return Mt(ve[Nt])+Mt(Se[Nt])}(this._preview);return 0===kt?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(ye=>{const Nt=Se=>{(!Se||(0,h.sA)(Se)===this._preview&&"transform"===Se.propertyName)&&(this._preview?.removeEventListener("transitionend",Nt),ye(),clearTimeout(ve))},ve=setTimeout(Nt,1.5*kt);this._preview.addEventListener("transitionend",Nt)}))}_createPlaceholderElement(){const me=this._placeholderTemplate,kt=me?me.template:null;let ye;return kt?(this._placeholderRef=me.viewContainer.createEmbeddedView(kt,me.context),this._placeholderRef.detectChanges(),ye=hn(this._placeholderRef,this._document)):ye=Oe(this._rootElement),ye.style.pointerEvents="none",ye.classList.add("cdk-drag-placeholder"),ye}_getPointerPositionInElement(me,kt,ye){const Nt=kt===this._rootElement?null:kt,ve=Nt?Nt.getBoundingClientRect():me,Se=xe(ye)?ye.targetTouches[0]:ye,yn=this._getViewportScrollPosition();return{x:ve.left-me.left+(Se.pageX-ve.left-yn.left),y:ve.top-me.top+(Se.pageY-ve.top-yn.top)}}_getPointerPositionOnPage(me){const kt=this._getViewportScrollPosition(),ye=xe(me)?me.touches[0]||me.changedTouches[0]||{pageX:0,pageY:0}:me,Nt=ye.pageX-kt.left,ve=ye.pageY-kt.top;if(this._ownerSVGElement){const Se=this._ownerSVGElement.getScreenCTM();if(Se){const yn=this._ownerSVGElement.createSVGPoint();return yn.x=Nt,yn.y=ve,yn.matrixTransform(Se.inverse())}}return{x:Nt,y:ve}}_getConstrainedPointerPosition(me){const kt=this._dropContainer?this._dropContainer.lockAxis:null;let{x:ye,y:Nt}=this.constrainPosition?this.constrainPosition(me,this,this._initialClientRect,this._pickupPositionInElement):me;if("x"===this.lockAxis||"x"===kt?Nt=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===kt)&&(ye=this._pickupPositionOnPage.x),this._boundaryRect){const{x:ve,y:Se}=this._pickupPositionInElement,yn=this._boundaryRect,{width:pi,height:Ci}=this._getPreviewRect(),en=yn.top+Se,an=yn.bottom-(Ci-Se);ye=An(ye,yn.left+ve,yn.right-(pi-ve)),Nt=An(Nt,en,an)}return{x:ye,y:Nt}}_updatePointerDirectionDelta(me){const{x:kt,y:ye}=me,Nt=this._pointerDirectionDelta,ve=this._pointerPositionAtLastDirectionChange,Se=Math.abs(kt-ve.x),yn=Math.abs(ye-ve.y);return Se>this._config.pointerDirectionChangeThreshold&&(Nt.x=kt>ve.x?1:-1,ve.x=kt),yn>this._config.pointerDirectionChangeThreshold&&(Nt.y=ye>ve.y?1:-1,ve.y=ye),Nt}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const me=this._handles.length>0||!this.isDragging();me!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=me,xt(this._rootElement,me))}_removeRootElementListeners(me){me.removeEventListener("mousedown",this._pointerDown,ce),me.removeEventListener("touchstart",this._pointerDown,ue),me.removeEventListener("dragstart",this._nativeDragStart,ce)}_applyRootElementTransform(me,kt){const ye=fn(me,kt),Nt=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=Nt.transform&&"none"!=Nt.transform?Nt.transform:""),Nt.transform=ut(ye,this._initialTransform)}_applyPreviewTransform(me,kt){const ye=this._previewTemplate?.template?void 0:this._initialTransform,Nt=fn(me,kt);this._preview.style.transform=ut(Nt,ye)}_getDragDistance(me){const kt=this._pickupPositionOnPage;return kt?{x:me.x-kt.x,y:me.y-kt.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:me,y:kt}=this._passiveTransform;if(0===me&&0===kt||this.isDragging()||!this._boundaryElement)return;const ye=this._rootElement.getBoundingClientRect(),Nt=this._boundaryElement.getBoundingClientRect();if(0===Nt.width&&0===Nt.height||0===ye.width&&0===ye.height)return;const ve=Nt.left-ye.left,Se=ye.right-Nt.right,yn=Nt.top-ye.top,pi=ye.bottom-Nt.bottom;Nt.width>ye.width?(ve>0&&(me+=ve),Se>0&&(me-=Se)):me=0,Nt.height>ye.height?(yn>0&&(kt+=yn),pi>0&&(kt-=pi)):kt=0,(me!==this._passiveTransform.x||kt!==this._passiveTransform.y)&&this.setFreeDragPosition({y:kt,x:me})}_getDragStartDelay(me){const kt=this.dragStartDelay;return"number"==typeof kt?kt:xe(me)?kt.touch:kt?kt.mouse:0}_updateOnScroll(me){const kt=this._parentPositions.handleScroll(me);if(kt){const ye=(0,h.sA)(me);this._boundaryRect&&ye!==this._boundaryElement&&ye.contains(this._boundaryElement)&&_e(this._boundaryRect,kt.top,kt.left),this._pickupPositionOnPage.x+=kt.left,this._pickupPositionOnPage.y+=kt.top,this._dropContainer||(this._activeTransform.x-=kt.left,this._activeTransform.y-=kt.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,h.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(me,kt){const ye=this._previewContainer||"global";if("parent"===ye)return me;if("global"===ye){const Nt=this._document;return kt||Nt.fullscreenElement||Nt.webkitFullscreenElement||Nt.mozFullScreenElement||Nt.msFullscreenElement||Nt.body}return(0,t.fI)(ye)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(me){return this._handles.find(kt=>me.target&&(me.target===kt||kt.contains(me.target)))}}function fn(Xe,me){return`translate3d(${Math.round(Xe)}px, ${Math.round(me)}px, 0)`}function An(Xe,me,kt){return Math.max(me,Math.min(kt,Xe))}function xe(Xe){return"t"===Xe.type[0]}function hn(Xe,me){const kt=Xe.rootNodes;if(1===kt.length&&kt[0].nodeType===me.ELEMENT_NODE)return kt[0];const ye=me.createElement("div");return kt.forEach(Nt=>ye.appendChild(Nt)),ye}function Re(Xe,me){Xe.style.width=`${me.width}px`,Xe.style.height=`${me.height}px`,Xe.style.transform=fn(me.left,me.top)}function _n(Xe,me,kt){const ye=oi(me,Xe.length-1),Nt=oi(kt,Xe.length-1);if(ye===Nt)return;const ve=Xe[ye],Se=Nt0)return null;const yn="horizontal"===this.orientation,pi=ve.findIndex(Hi=>Hi.drag===me),Ci=ve[Se],an=Ci.clientRect,Be=pi>Se?1:-1,In=this._getItemOffsetPx(ve[pi].clientRect,an,Be),Wn=this._getSiblingOffsetPx(pi,ve,Be),ki=ve.slice();return _n(ve,pi,Se),ve.forEach((Hi,Ji)=>{if(ki[Ji]===Hi)return;const Uo=Hi.drag===me,qo=Uo?In:Wn,Pe=Uo?me.getPlaceholderElement():Hi.drag.getRootElement();Hi.offset+=qo,yn?(Pe.style.transform=ut(`translate3d(${Math.round(Hi.offset)}px, 0, 0)`,Hi.initialTransform),_e(Hi.clientRect,0,qo)):(Pe.style.transform=ut(`translate3d(0, ${Math.round(Hi.offset)}px, 0)`,Hi.initialTransform),_e(Hi.clientRect,qo,0))}),this._previousSwap.overlaps=Ft(an,kt,ye),this._previousSwap.drag=Ci.drag,this._previousSwap.delta=yn?Nt.x:Nt.y,{previousIndex:pi,currentIndex:Se}}enter(me,kt,ye,Nt){const ve=null==Nt||Nt<0?this._getItemIndexFromPointerPosition(me,kt,ye):Nt,Se=this._activeDraggables,yn=Se.indexOf(me),pi=me.getPlaceholderElement();let Ci=Se[ve];if(Ci===me&&(Ci=Se[ve+1]),!Ci&&(null==ve||-1===ve||ve-1&&Se.splice(yn,1),Ci&&!this._dragDropRegistry.isDragging(Ci)){const en=Ci.getRootElement();en.parentElement.insertBefore(pi,en),Se.splice(ve,0,me)}else(0,t.fI)(this._element).appendChild(pi),Se.push(me);pi.style.transform="",this._cacheItemPositions()}withItems(me){this._activeDraggables=me.slice(),this._cacheItemPositions()}withSortPredicate(me){this._sortPredicate=me}reset(){this._activeDraggables.forEach(me=>{const kt=me.getRootElement();if(kt){const ye=this._itemPositions.find(Nt=>Nt.drag===me)?.initialTransform;kt.style.transform=ye||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(me){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(ye=>ye.drag===me)}updateOnScroll(me,kt){this._itemPositions.forEach(({clientRect:ye})=>{_e(ye,me,kt)}),this._itemPositions.forEach(({drag:ye})=>{this._dragDropRegistry.isDragging(ye)&&ye._sortFromLastPointerPosition()})}_cacheItemPositions(){const me="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(kt=>{const ye=kt.getVisibleElement();return{drag:kt,offset:0,initialTransform:ye.style.transform||"",clientRect:ee(ye)}}).sort((kt,ye)=>me?kt.clientRect.left-ye.clientRect.left:kt.clientRect.top-ye.clientRect.top)}_getItemOffsetPx(me,kt,ye){const Nt="horizontal"===this.orientation;let ve=Nt?kt.left-me.left:kt.top-me.top;return-1===ye&&(ve+=Nt?kt.width-me.width:kt.height-me.height),ve}_getSiblingOffsetPx(me,kt,ye){const Nt="horizontal"===this.orientation,ve=kt[me].clientRect,Se=kt[me+-1*ye];let yn=ve[Nt?"width":"height"]*ye;if(Se){const pi=Nt?"left":"top",Ci=Nt?"right":"bottom";-1===ye?yn-=Se.clientRect[pi]-ve[Ci]:yn+=ve[pi]-Se.clientRect[Ci]}return yn}_shouldEnterAsFirstChild(me,kt){if(!this._activeDraggables.length)return!1;const ye=this._itemPositions,Nt="horizontal"===this.orientation;if(ye[0].drag!==this._activeDraggables[0]){const Se=ye[ye.length-1].clientRect;return Nt?me>=Se.right:kt>=Se.bottom}{const Se=ye[0].clientRect;return Nt?me<=Se.left:kt<=Se.top}}_getItemIndexFromPointerPosition(me,kt,ye,Nt){const ve="horizontal"===this.orientation,Se=this._itemPositions.findIndex(({drag:yn,clientRect:pi})=>{if(yn===me)return!1;if(Nt){const Ci=ve?Nt.x:Nt.y;if(yn===this._previousSwap.drag&&this._previousSwap.overlaps&&Ci===this._previousSwap.delta)return!1}return ve?kt>=Math.floor(pi.left)&&kt=Math.floor(pi.top)&&ye!0,this.sortPredicate=()=>!0,this.beforeStarted=new T.xQ,this.entered=new T.xQ,this.exited=new T.xQ,this.dropped=new T.xQ,this.sorted=new T.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=U.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new T.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function q(Xe=0,me=k.P){return(!(0,O.k)(Xe)||Xe<0)&&(Xe=0),(!me||"function"!=typeof me.schedule)&&(me=k.P),new D.y(kt=>(kt.add(me.schedule(Y,Xe,{subscriber:kt,counter:0,period:Xe})),kt))}(0,$.Z).pipe((0,at.R)(this._stopScrollTimers)).subscribe(()=>{const Se=this._scrollNode,yn=this.autoScrollStep;1===this._verticalScrollDirection?Se.scrollBy(0,-yn):2===this._verticalScrollDirection&&Se.scrollBy(0,yn),1===this._horizontalScrollDirection?Se.scrollBy(-yn,0):2===this._horizontalScrollDirection&&Se.scrollBy(yn,0)})},this.element=(0,t.fI)(me),this._document=ye,this.withScrollableParents([this.element]),kt.registerDropContainer(this),this._parentPositions=new Ze(ye),this._sortStrategy=new Vn(this.element,kt),this._sortStrategy.withSortPredicate((Se,yn)=>this.sortPredicate(Se,yn,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(me,kt,ye,Nt){this._draggingStarted(),null==Nt&&this.sortingDisabled&&(Nt=this._draggables.indexOf(me)),this._sortStrategy.enter(me,kt,ye,Nt),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:me,container:this,currentIndex:this.getItemIndex(me)})}exit(me){this._reset(),this.exited.next({item:me,container:this})}drop(me,kt,ye,Nt,ve,Se,yn,pi={}){this._reset(),this.dropped.next({item:me,currentIndex:kt,previousIndex:ye,container:this,previousContainer:Nt,isPointerOverContainer:ve,distance:Se,dropPoint:yn,event:pi})}withItems(me){const kt=this._draggables;return this._draggables=me,me.forEach(ye=>ye._withDropContainer(this)),this.isDragging()&&(kt.filter(Nt=>Nt.isDragging()).every(Nt=>-1===me.indexOf(Nt))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(me){return this._sortStrategy.direction=me,this}connectedTo(me){return this._siblings=me.slice(),this}withOrientation(me){return this._sortStrategy.orientation=me,this}withScrollableParents(me){const kt=(0,t.fI)(this.element);return this._scrollableElements=-1===me.indexOf(kt)?[kt,...me]:me.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(me){return this._isDragging?this._sortStrategy.getItemIndex(me):this._draggables.indexOf(me)}isReceiving(){return this._activeSiblings.size>0}_sortItem(me,kt,ye,Nt){if(this.sortingDisabled||!this._clientRect||!pe(this._clientRect,.05,kt,ye))return;const ve=this._sortStrategy.sort(me,kt,ye,Nt);ve&&this.sorted.next({previousIndex:ve.previousIndex,currentIndex:ve.currentIndex,container:this,item:me})}_startScrollingIfNecessary(me,kt){if(this.autoScrollDisabled)return;let ye,Nt=0,ve=0;if(this._parentPositions.positions.forEach((Se,yn)=>{yn===this._document||!Se.clientRect||ye||pe(Se.clientRect,.05,me,kt)&&([Nt,ve]=function Ct(Xe,me,kt,ye){const Nt=j(me,ye),ve=Q(me,kt);let Se=0,yn=0;if(Nt){const pi=Xe.scrollTop;1===Nt?pi>0&&(Se=1):Xe.scrollHeight-pi>Xe.clientHeight&&(Se=2)}if(ve){const pi=Xe.scrollLeft;1===ve?pi>0&&(yn=1):Xe.scrollWidth-pi>Xe.clientWidth&&(yn=2)}return[Se,yn]}(yn,Se.clientRect,me,kt),(Nt||ve)&&(ye=yn))}),!Nt&&!ve){const{width:Se,height:yn}=this._viewportRuler.getViewportSize(),pi={width:Se,height:yn,top:0,right:Se,bottom:yn,left:0};Nt=j(pi,kt),ve=Q(pi,me),ye=window}ye&&(Nt!==this._verticalScrollDirection||ve!==this._horizontalScrollDirection||ye!==this._scrollNode)&&(this._verticalScrollDirection=Nt,this._horizontalScrollDirection=ve,this._scrollNode=ye,(Nt||ve)&&ye?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const me=(0,t.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=me.msScrollSnapType||me.scrollSnapType||"",me.scrollSnapType=me.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const me=(0,t.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(me).clientRect}_reset(){this._isDragging=!1;const me=(0,t.fI)(this.element).style;me.scrollSnapType=me.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(kt=>kt._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(me,kt){return null!=this._clientRect&&Ft(this._clientRect,me,kt)}_getSiblingContainerFromPosition(me,kt,ye){return this._siblings.find(Nt=>Nt._canReceive(me,kt,ye))}_canReceive(me,kt,ye){if(!this._clientRect||!Ft(this._clientRect,kt,ye)||!this.enterPredicate(me,this))return!1;const Nt=this._getShadowRoot().elementFromPoint(kt,ye);if(!Nt)return!1;const ve=(0,t.fI)(this.element);return Nt===ve||ve.contains(Nt)}_startReceiving(me,kt){const ye=this._activeSiblings;!ye.has(me)&&kt.every(Nt=>this.enterPredicate(Nt,this)||this._draggables.indexOf(Nt)>-1)&&(ye.add(me),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(me){this._activeSiblings.delete(me),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(me=>{if(this.isDragging()){const kt=this._parentPositions.handleScroll(me);kt&&this._sortStrategy.updateOnScroll(kt.top,kt.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const me=(0,h.kV)((0,t.fI)(this.element));this._cachedShadowRoot=me||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const me=this._sortStrategy.getActiveItemsSnapshot().filter(kt=>kt.isDragging());this._siblings.forEach(kt=>kt._startReceiving(this,me))}}function j(Xe,me){const{top:kt,bottom:ye,height:Nt}=Xe,ve=.05*Nt;return me>=kt-ve&&me<=kt+ve?1:me>=ye-ve&&me<=ye+ve?2:0}function Q(Xe,me){const{left:kt,right:ye,width:Nt}=Xe,ve=.05*Nt;return me>=kt-ve&&me<=kt+ve?1:me>=ye-ve&&me<=ye+ve?2:0}const Yt=(0,h.i$)({passive:!1,capture:!0});let ie=(()=>{class Xe{constructor(kt,ye){this._ngZone=kt,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=Nt=>Nt.isDragging(),this.pointerMove=new T.xQ,this.pointerUp=new T.xQ,this.scroll=new T.xQ,this._preventDefaultWhileDragging=Nt=>{this._activeDragInstances.length>0&&Nt.preventDefault()},this._persistentTouchmoveListener=Nt=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&Nt.preventDefault(),this.pointerMove.next(Nt))},this._document=ye}registerDropContainer(kt){this._dropInstances.has(kt)||this._dropInstances.add(kt)}registerDragItem(kt){this._dragInstances.add(kt),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Yt)})}removeDropContainer(kt){this._dropInstances.delete(kt)}removeDragItem(kt){this._dragInstances.delete(kt),this.stopDragging(kt),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Yt)}startDragging(kt,ye){if(!(this._activeDragInstances.indexOf(kt)>-1)&&(this._activeDragInstances.push(kt),1===this._activeDragInstances.length)){const Nt=ye.type.startsWith("touch");this._globalListeners.set(Nt?"touchend":"mouseup",{handler:ve=>this.pointerUp.next(ve),options:!0}).set("scroll",{handler:ve=>this.scroll.next(ve),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Yt}),Nt||this._globalListeners.set("mousemove",{handler:ve=>this.pointerMove.next(ve),options:Yt}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((ve,Se)=>{this._document.addEventListener(Se,ve.handler,ve.options)})})}}stopDragging(kt){const ye=this._activeDragInstances.indexOf(kt);ye>-1&&(this._activeDragInstances.splice(ye,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(kt){return this._activeDragInstances.indexOf(kt)>-1}scrolled(kt){const ye=[this.scroll];return kt&&kt!==this._document&&ye.push(new D.y(Nt=>this._ngZone.runOutsideAngular(()=>{const Se=yn=>{this._activeDragInstances.length&&Nt.next(yn)};return kt.addEventListener("scroll",Se,!0),()=>{kt.removeEventListener("scroll",Se,!0)}}))),(0,X.T)(...ye)}ngOnDestroy(){this._dragInstances.forEach(kt=>this.removeDragItem(kt)),this._dropInstances.forEach(kt=>this.removeDropContainer(kt)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((kt,ye)=>{this._document.removeEventListener(ye,kt.handler,kt.options)}),this._globalListeners.clear()}}return Xe.\u0275fac=function(kt){return new(kt||Xe)(l.LFG(l.R0b),l.LFG(u.K0))},Xe.\u0275prov=l.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})();const re={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let tn=(()=>{class Xe{constructor(kt,ye,Nt,ve){this._document=kt,this._ngZone=ye,this._viewportRuler=Nt,this._dragDropRegistry=ve}createDrag(kt,ye=re){return new Ye(kt,ye,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(kt){return new J(kt,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return Xe.\u0275fac=function(kt){return new(kt||Xe)(l.LFG(u.K0),l.LFG(l.R0b),l.LFG(g.rL),l.LFG(ie))},Xe.\u0275prov=l.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})();const Cn=new l.OlP("CDK_DRAG_PARENT"),Yn=new l.OlP("CdkDropListGroup"),Fi=new l.OlP("CDK_DRAG_CONFIG");let Sn=0;const On=new l.OlP("CdkDropList");let He=(()=>{class Xe{constructor(kt,ye,Nt,ve,Se,yn,pi){this.element=kt,this._changeDetectorRef=Nt,this._scrollDispatcher=ve,this._dir=Se,this._group=yn,this._destroyed=new T.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+Sn++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new l.vpe,this.entered=new l.vpe,this.exited=new l.vpe,this.sorted=new l.vpe,this._unsortedItems=new Set,this._dropListRef=ye.createDropList(kt),this._dropListRef.data=this,pi&&this._assignDefaults(pi),this._dropListRef.enterPredicate=(Ci,en)=>this.enterPredicate(Ci.data,en.data),this._dropListRef.sortPredicate=(Ci,en,an)=>this.sortPredicate(Ci,en.data,an.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),Xe._dropLists.push(this),yn&&yn._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(kt){this._dropListRef.disabled=this._disabled=(0,t.Ig)(kt)}addItem(kt){this._unsortedItems.add(kt),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(kt){this._unsortedItems.delete(kt),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((kt,ye)=>kt._dragRef.getVisibleElement().compareDocumentPosition(ye._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const kt=Xe._dropLists.indexOf(this);kt>-1&&Xe._dropLists.splice(kt,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(kt){this._dir&&this._dir.change.pipe((0,rt.O)(this._dir.value),(0,at.R)(this._destroyed)).subscribe(ye=>kt.withDirection(ye)),kt.beforeStarted.subscribe(()=>{const ye=(0,t.Eq)(this.connectedTo).map(Nt=>"string"==typeof Nt?Xe._dropLists.find(Se=>Se.id===Nt):Nt);if(this._group&&this._group._items.forEach(Nt=>{-1===ye.indexOf(Nt)&&ye.push(Nt)}),!this._scrollableParentsResolved){const Nt=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(ve=>ve.getElementRef().nativeElement);this._dropListRef.withScrollableParents(Nt),this._scrollableParentsResolved=!0}kt.disabled=this.disabled,kt.lockAxis=this.lockAxis,kt.sortingDisabled=(0,t.Ig)(this.sortingDisabled),kt.autoScrollDisabled=(0,t.Ig)(this.autoScrollDisabled),kt.autoScrollStep=(0,t.su)(this.autoScrollStep,2),kt.connectedTo(ye.filter(Nt=>Nt&&Nt!==this).map(Nt=>Nt._dropListRef)).withOrientation(this.orientation)})}_handleEvents(kt){kt.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),kt.entered.subscribe(ye=>{this.entered.emit({container:this,item:ye.item.data,currentIndex:ye.currentIndex})}),kt.exited.subscribe(ye=>{this.exited.emit({container:this,item:ye.item.data}),this._changeDetectorRef.markForCheck()}),kt.sorted.subscribe(ye=>{this.sorted.emit({previousIndex:ye.previousIndex,currentIndex:ye.currentIndex,container:this,item:ye.item.data})}),kt.dropped.subscribe(ye=>{this.dropped.emit({previousIndex:ye.previousIndex,currentIndex:ye.currentIndex,previousContainer:ye.previousContainer.data,container:ye.container.data,item:ye.item.data,isPointerOverContainer:ye.isPointerOverContainer,distance:ye.distance,dropPoint:ye.dropPoint,event:ye.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(kt){const{lockAxis:ye,draggingDisabled:Nt,sortingDisabled:ve,listAutoScrollDisabled:Se,listOrientation:yn}=kt;this.disabled=Nt??!1,this.sortingDisabled=ve??!1,this.autoScrollDisabled=Se??!1,this.orientation=yn||"vertical",ye&&(this.lockAxis=ye)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(kt=>kt._dragRef))}}return Xe._dropLists=[],Xe.\u0275fac=function(kt){return new(kt||Xe)(l.Y36(l.SBq),l.Y36(tn),l.Y36(l.sBO),l.Y36(g.mF),l.Y36(Bt.Is,8),l.Y36(Yn,12),l.Y36(Fi,8))},Xe.\u0275dir=l.lG2({type:Xe,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(kt,ye){2&kt&&(l.uIk("id",ye.id),l.ekj("cdk-drop-list-disabled",ye.disabled)("cdk-drop-list-dragging",ye._dropListRef.isDragging())("cdk-drop-list-receiving",ye._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[l._Bn([{provide:Yn,useValue:void 0},{provide:On,useExisting:Xe}])]}),Xe})();const cn=new l.OlP("CdkDragHandle"),we=new l.OlP("CdkDragPlaceholder"),te=new l.OlP("CdkDragPreview");let $e=(()=>{class Xe{constructor(kt,ye,Nt,ve,Se,yn,pi,Ci,en,an,Be){this.element=kt,this.dropContainer=ye,this._ngZone=ve,this._viewContainerRef=Se,this._dir=pi,this._changeDetectorRef=en,this._selfHandle=an,this._parentDrag=Be,this._destroyed=new T.xQ,this.started=new l.vpe,this.released=new l.vpe,this.ended=new l.vpe,this.entered=new l.vpe,this.exited=new l.vpe,this.dropped=new l.vpe,this.moved=new D.y(In=>{const Wn=this._dragRef.moved.pipe((0,ft.U)(ki=>({source:this,pointerPosition:ki.pointerPosition,event:ki.event,delta:ki.delta,distance:ki.distance}))).subscribe(In);return()=>{Wn.unsubscribe()}}),this._dragRef=Ci.createDrag(kt,{dragStartThreshold:yn&&null!=yn.dragStartThreshold?yn.dragStartThreshold:5,pointerDirectionChangeThreshold:yn&&null!=yn.pointerDirectionChangeThreshold?yn.pointerDirectionChangeThreshold:5,zIndex:yn?.zIndex}),this._dragRef.data=this,Xe._dragInstances.push(this),yn&&this._assignDefaults(yn),ye&&(this._dragRef._withDropContainer(ye._dropListRef),ye.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(kt){this._disabled=(0,t.Ig)(kt),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(kt){this._dragRef.setFreeDragPosition(kt)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Tt.q)(1),(0,at.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(kt){const ye=kt.rootElementSelector,Nt=kt.freeDragPosition;ye&&!ye.firstChange&&this._updateRootElement(),Nt&&!Nt.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const kt=Xe._dragInstances.indexOf(this);kt>-1&&Xe._dragInstances.splice(kt,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const kt=this.element.nativeElement;let ye=kt;this.rootElementSelector&&(ye=void 0!==kt.closest?kt.closest(this.rootElementSelector):kt.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(ye||kt)}_getBoundaryElement(){const kt=this.boundaryElement;return kt?"string"==typeof kt?this.element.nativeElement.closest(kt):(0,t.fI)(kt):null}_syncInputs(kt){kt.beforeStarted.subscribe(()=>{if(!kt.isDragging()){const ye=this._dir,Nt=this.dragStartDelay,ve=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,Se=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;kt.disabled=this.disabled,kt.lockAxis=this.lockAxis,kt.dragStartDelay="object"==typeof Nt&&Nt?Nt:(0,t.su)(Nt),kt.constrainPosition=this.constrainPosition,kt.previewClass=this.previewClass,kt.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(ve).withPreviewTemplate(Se).withPreviewContainer(this.previewContainer||"global"),ye&&kt.withDirection(ye.value)}}),kt.beforeStarted.pipe((0,Tt.q)(1)).subscribe(()=>{if(this._parentDrag)return void kt.withParent(this._parentDrag._dragRef);let ye=this.element.nativeElement.parentElement;for(;ye;){if(ye.classList.contains("cdk-drag")){kt.withParent(Xe._dragInstances.find(Nt=>Nt.element.nativeElement===ye)?._dragRef||null);break}ye=ye.parentElement}})}_handleEvents(kt){kt.started.subscribe(ye=>{this.started.emit({source:this,event:ye.event}),this._changeDetectorRef.markForCheck()}),kt.released.subscribe(ye=>{this.released.emit({source:this,event:ye.event})}),kt.ended.subscribe(ye=>{this.ended.emit({source:this,distance:ye.distance,dropPoint:ye.dropPoint,event:ye.event}),this._changeDetectorRef.markForCheck()}),kt.entered.subscribe(ye=>{this.entered.emit({container:ye.container.data,item:this,currentIndex:ye.currentIndex})}),kt.exited.subscribe(ye=>{this.exited.emit({container:ye.container.data,item:this})}),kt.dropped.subscribe(ye=>{this.dropped.emit({previousIndex:ye.previousIndex,currentIndex:ye.currentIndex,previousContainer:ye.previousContainer.data,container:ye.container.data,isPointerOverContainer:ye.isPointerOverContainer,item:this,distance:ye.distance,dropPoint:ye.dropPoint,event:ye.event})})}_assignDefaults(kt){const{lockAxis:ye,dragStartDelay:Nt,constrainPosition:ve,previewClass:Se,boundaryElement:yn,draggingDisabled:pi,rootElementSelector:Ci,previewContainer:en}=kt;this.disabled=pi??!1,this.dragStartDelay=Nt||0,ye&&(this.lockAxis=ye),ve&&(this.constrainPosition=ve),Se&&(this.previewClass=Se),yn&&(this.boundaryElement=yn),Ci&&(this.rootElementSelector=Ci),en&&(this.previewContainer=en)}_setupHandlesListener(){this._handles.changes.pipe((0,rt.O)(this._handles),(0,qt.b)(kt=>{const ye=kt.filter(Nt=>Nt._parentDrag===this).map(Nt=>Nt.element);this._selfHandle&&this.rootElementSelector&&ye.push(this.element),this._dragRef.withHandles(ye)}),(0,Vt.w)(kt=>(0,X.T)(...kt.map(ye=>ye._stateChanges.pipe((0,rt.O)(ye))))),(0,at.R)(this._destroyed)).subscribe(kt=>{const ye=this._dragRef,Nt=kt.element.nativeElement;kt.disabled?ye.disableHandle(Nt):ye.enableHandle(Nt)})}}return Xe._dragInstances=[],Xe.\u0275fac=function(kt){return new(kt||Xe)(l.Y36(l.SBq),l.Y36(On,12),l.Y36(u.K0),l.Y36(l.R0b),l.Y36(l.s_b),l.Y36(Fi,8),l.Y36(Bt.Is,8),l.Y36(tn),l.Y36(l.sBO),l.Y36(cn,10),l.Y36(Cn,12))},Xe.\u0275dir=l.lG2({type:Xe,selectors:[["","cdkDrag",""]],contentQueries:function(kt,ye,Nt){if(1&kt&&(l.Suo(Nt,te,5),l.Suo(Nt,we,5),l.Suo(Nt,cn,5)),2&kt){let ve;l.iGM(ve=l.CRH())&&(ye._previewTemplate=ve.first),l.iGM(ve=l.CRH())&&(ye._placeholderTemplate=ve.first),l.iGM(ve=l.CRH())&&(ye._handles=ve)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(kt,ye){2&kt&&l.ekj("cdk-drag-disabled",ye.disabled)("cdk-drag-dragging",ye._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[l._Bn([{provide:Cn,useExisting:Xe}]),l.TTD]}),Xe})(),sn=(()=>{class Xe{}return Xe.\u0275fac=function(kt){return new(kt||Xe)},Xe.\u0275mod=l.oAB({type:Xe}),Xe.\u0275inj=l.cJS({providers:[tn],imports:[g.ZD]}),Xe})()},29521:(K,W,_)=>{"use strict";_.d(W,{A:()=>Kt,JH:()=>qt,JU:()=>x,K5:()=>t,Ku:()=>Y,LH:()=>ft,L_:()=>q,MW:()=>Cn,Mf:()=>g,SV:()=>Tt,Sd:()=>at,VM:()=>$,Vb:()=>ls,Z:()=>tn,ZH:()=>u,aO:()=>Ze,b2:()=>Ja,hY:()=>O,jx:()=>T,oh:()=>rt,uR:()=>X,xE:()=>ht,yY:()=>xt,zL:()=>U});const u=8,g=9,t=13,x=16,T=17,U=18,O=27,q=32,Y=33,$=34,X=35,at=36,rt=37,ft=38,Tt=39,qt=40,xt=46,ht=48,Ze=57,Kt=65,tn=90,Cn=91,Ja=224;function ls(ma,...dr){return dr.length?dr.some(Oa=>ma[Oa]):ma.altKey||ma.shiftKey||ma.ctrlKey||ma.metaKey}},62289:(K,W,_)=>{"use strict";_.d(W,{Yg:()=>qt,u3:()=>Bt,xu:()=>$});var l=_(94650),u=_(21281),g=_(8929),h=_(23426),t=_(61221),x=_(56498),T=_(72986),U=_(31307),D=_(80013),k=_(24850),O=_(1059),q=_(7625),Y=_(83353);let $=(()=>{class bt{}return bt.\u0275fac=function(ht){return new(ht||bt)},bt.\u0275mod=l.oAB({type:bt}),bt.\u0275inj=l.cJS({}),bt})();const X=new Set;let at,rt=(()=>{class bt{constructor(ht){this._platform=ht,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Tt}matchMedia(ht){return(this._platform.WEBKIT||this._platform.BLINK)&&function ft(bt){if(!X.has(bt))try{at||(at=document.createElement("style"),at.setAttribute("type","text/css"),document.head.appendChild(at)),at.sheet&&(at.sheet.insertRule(`@media ${bt} {body{ }}`,0),X.add(bt))}catch(xt){console.error(xt)}}(ht),this._matchMedia(ht)}}return bt.\u0275fac=function(ht){return new(ht||bt)(l.LFG(Y.t4))},bt.\u0275prov=l.Yz7({token:bt,factory:bt.\u0275fac,providedIn:"root"}),bt})();function Tt(bt){return{matches:"all"===bt||""===bt,media:bt,addListener:()=>{},removeListener:()=>{}}}let qt=(()=>{class bt{constructor(ht,ut){this._mediaMatcher=ht,this._zone=ut,this._queries=new Map,this._destroySubject=new g.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(ht){return Vt((0,u.Eq)(ht)).some(Mt=>this._registerQuery(Mt).mql.matches)}observe(ht){const Mt=Vt((0,u.Eq)(ht)).map(wt=>this._registerQuery(wt).observable);let It=(0,h.aj)(Mt);return It=(0,t.z)(It.pipe((0,T.q)(1)),It.pipe((0,U.T)(1),(0,D.b)(0))),It.pipe((0,k.U)(wt=>{const ee={matches:!1,breakpoints:{}};return wt.forEach(({matches:Ft,query:_e})=>{ee.matches=ee.matches||Ft,ee.breakpoints[_e]=Ft}),ee}))}_registerQuery(ht){if(this._queries.has(ht))return this._queries.get(ht);const ut=this._mediaMatcher.matchMedia(ht),It={observable:new x.y(wt=>{const ee=Ft=>this._zone.run(()=>wt.next(Ft));return ut.addListener(ee),()=>{ut.removeListener(ee)}}).pipe((0,O.O)(ut),(0,k.U)(({matches:wt})=>({query:ht,matches:wt})),(0,q.R)(this._destroySubject)),mql:ut};return this._queries.set(ht,It),It}}return bt.\u0275fac=function(ht){return new(ht||bt)(l.LFG(rt),l.LFG(l.R0b))},bt.\u0275prov=l.Yz7({token:bt,factory:bt.\u0275fac,providedIn:"root"}),bt})();function Vt(bt){return bt.map(xt=>xt.split(",")).reduce((xt,ht)=>xt.concat(ht)).map(xt=>xt.trim())}const Bt={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},49643:(K,W,_)=>{"use strict";_.d(W,{Q8:()=>D,wD:()=>U});var l=_(21281),u=_(94650),g=_(56498),h=_(8929),t=_(80013);let x=(()=>{class k{create(q){return typeof MutationObserver>"u"?null:new MutationObserver(q)}}return k.\u0275fac=function(q){return new(q||k)},k.\u0275prov=u.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})(),T=(()=>{class k{constructor(q){this._mutationObserverFactory=q,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((q,Y)=>this._cleanupObserver(Y))}observe(q){const Y=(0,l.fI)(q);return new g.y($=>{const at=this._observeElement(Y).subscribe($);return()=>{at.unsubscribe(),this._unobserveElement(Y)}})}_observeElement(q){if(this._observedElements.has(q))this._observedElements.get(q).count++;else{const Y=new h.xQ,$=this._mutationObserverFactory.create(X=>Y.next(X));$&&$.observe(q,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(q,{observer:$,stream:Y,count:1})}return this._observedElements.get(q).stream}_unobserveElement(q){this._observedElements.has(q)&&(this._observedElements.get(q).count--,this._observedElements.get(q).count||this._cleanupObserver(q))}_cleanupObserver(q){if(this._observedElements.has(q)){const{observer:Y,stream:$}=this._observedElements.get(q);Y&&Y.disconnect(),$.complete(),this._observedElements.delete(q)}}}return k.\u0275fac=function(q){return new(q||k)(u.LFG(x))},k.\u0275prov=u.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})(),U=(()=>{class k{constructor(q,Y,$){this._contentObserver=q,this._elementRef=Y,this._ngZone=$,this.event=new u.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(q){this._disabled=(0,l.Ig)(q),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(q){this._debounce=(0,l.su)(q),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const q=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?q.pipe((0,t.b)(this.debounce)):q).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return k.\u0275fac=function(q){return new(q||k)(u.Y36(T),u.Y36(u.SBq),u.Y36(u.R0b))},k.\u0275dir=u.lG2({type:k,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),k})(),D=(()=>{class k{}return k.\u0275fac=function(q){return new(q||k)},k.\u0275mod=u.oAB({type:k}),k.\u0275inj=u.cJS({providers:[x]}),k})()},98184:(K,W,_)=>{"use strict";_.d(W,{Iu:()=>Ze,U8:()=>Vn,X_:()=>xt,Xj:()=>pe,_G:()=>Rt,aV:()=>xe,pI:()=>Kn,xu:()=>_n});var l=_(67376),u=_(36895),g=_(94650),h=_(21281),t=_(83353),x=_(40445),T=_(84080),U=_(8929),D=_(42654),k=_(36787),O=_(72986),q=_(7625),Y=_(44290),$=_(29521);const X=(0,t.Mq)();class at{constructor(J,j){this._viewportRuler=J,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=j}attach(){}enable(){if(this._canBeEnabled()){const J=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=J.style.left||"",this._previousHTMLStyles.top=J.style.top||"",J.style.left=(0,h.HM)(-this._previousScrollPosition.left),J.style.top=(0,h.HM)(-this._previousScrollPosition.top),J.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const J=this._document.documentElement,Q=J.style,Ct=this._document.body.style,Yt=Q.scrollBehavior||"",ie=Ct.scrollBehavior||"";this._isEnabled=!1,Q.left=this._previousHTMLStyles.left,Q.top=this._previousHTMLStyles.top,J.classList.remove("cdk-global-scrollblock"),X&&(Q.scrollBehavior=Ct.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),X&&(Q.scrollBehavior=Yt,Ct.scrollBehavior=ie)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const j=this._document.body,Q=this._viewportRuler.getViewportSize();return j.scrollHeight>Q.height||j.scrollWidth>Q.width}}class ft{constructor(J,j,Q,Ct){this._scrollDispatcher=J,this._ngZone=j,this._viewportRuler=Q,this._config=Ct,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(J){this._overlayRef=J}enable(){if(this._scrollSubscription)return;const J=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=J.subscribe(()=>{const j=this._viewportRuler.getViewportScrollPosition().top;Math.abs(j-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=J.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Tt{enable(){}disable(){}attach(){}}function qt(Wt,J){return J.some(j=>Wt.bottomj.bottom||Wt.rightj.right)}function Vt(Wt,J){return J.some(j=>Wt.topj.bottom||Wt.leftj.right)}class Bt{constructor(J,j,Q,Ct){this._scrollDispatcher=J,this._viewportRuler=j,this._ngZone=Q,this._config=Ct,this._scrollSubscription=null}attach(J){this._overlayRef=J}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const j=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Q,height:Ct}=this._viewportRuler.getViewportSize();qt(j,[{width:Q,height:Ct,bottom:Ct,right:Q,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let bt=(()=>{class Wt{constructor(j,Q,Ct,Yt){this._scrollDispatcher=j,this._viewportRuler=Q,this._ngZone=Ct,this.noop=()=>new Tt,this.close=ie=>new ft(this._scrollDispatcher,this._ngZone,this._viewportRuler,ie),this.block=()=>new at(this._viewportRuler,this._document),this.reposition=ie=>new Bt(this._scrollDispatcher,this._viewportRuler,this._ngZone,ie),this._document=Yt}}return Wt.\u0275fac=function(j){return new(j||Wt)(g.LFG(l.mF),g.LFG(l.rL),g.LFG(g.R0b),g.LFG(u.K0))},Wt.\u0275prov=g.Yz7({token:Wt,factory:Wt.\u0275fac,providedIn:"root"}),Wt})();class xt{constructor(J){if(this.scrollStrategy=new Tt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,J){const j=Object.keys(J);for(const Q of j)void 0!==J[Q]&&(this[Q]=J[Q])}}}class Mt{constructor(J,j){this.connectionPair=J,this.scrollableViewProperties=j}}let ee=(()=>{class Wt{constructor(j){this._attachedOverlays=[],this._document=j}ngOnDestroy(){this.detach()}add(j){this.remove(j),this._attachedOverlays.push(j)}remove(j){const Q=this._attachedOverlays.indexOf(j);Q>-1&&this._attachedOverlays.splice(Q,1),0===this._attachedOverlays.length&&this.detach()}}return Wt.\u0275fac=function(j){return new(j||Wt)(g.LFG(u.K0))},Wt.\u0275prov=g.Yz7({token:Wt,factory:Wt.\u0275fac,providedIn:"root"}),Wt})(),Ft=(()=>{class Wt extends ee{constructor(j,Q){super(j),this._ngZone=Q,this._keydownListener=Ct=>{const Yt=this._attachedOverlays;for(let ie=Yt.length-1;ie>-1;ie--)if(Yt[ie]._keydownEvents.observers.length>0){const re=Yt[ie]._keydownEvents;this._ngZone?this._ngZone.run(()=>re.next(Ct)):re.next(Ct);break}}}add(j){super.add(j),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Wt.\u0275fac=function(j){return new(j||Wt)(g.LFG(u.K0),g.LFG(g.R0b,8))},Wt.\u0275prov=g.Yz7({token:Wt,factory:Wt.\u0275fac,providedIn:"root"}),Wt})(),_e=(()=>{class Wt extends ee{constructor(j,Q,Ct){super(j),this._platform=Q,this._ngZone=Ct,this._cursorStyleIsSet=!1,this._pointerDownListener=Yt=>{this._pointerDownEventTarget=(0,t.sA)(Yt)},this._clickListener=Yt=>{const ie=(0,t.sA)(Yt),re="click"===Yt.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:ie;this._pointerDownEventTarget=null;const tn=this._attachedOverlays.slice();for(let Cn=tn.length-1;Cn>-1;Cn--){const Yn=tn[Cn];if(Yn._outsidePointerEvents.observers.length<1||!Yn.hasAttached())continue;if(Yn.overlayElement.contains(ie)||Yn.overlayElement.contains(re))break;const fi=Yn._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>fi.next(Yt)):fi.next(Yt)}}}add(j){if(super.add(j),!this._isAttached){const Q=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Q)):this._addEventListeners(Q),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Q.style.cursor,Q.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const j=this._document.body;j.removeEventListener("pointerdown",this._pointerDownListener,!0),j.removeEventListener("click",this._clickListener,!0),j.removeEventListener("auxclick",this._clickListener,!0),j.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(j.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(j){j.addEventListener("pointerdown",this._pointerDownListener,!0),j.addEventListener("click",this._clickListener,!0),j.addEventListener("auxclick",this._clickListener,!0),j.addEventListener("contextmenu",this._clickListener,!0)}}return Wt.\u0275fac=function(j){return new(j||Wt)(g.LFG(u.K0),g.LFG(t.t4),g.LFG(g.R0b,8))},Wt.\u0275prov=g.Yz7({token:Wt,factory:Wt.\u0275fac,providedIn:"root"}),Wt})(),pe=(()=>{class Wt{constructor(j,Q){this._platform=Q,this._document=j}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const j="cdk-overlay-container";if(this._platform.isBrowser||(0,t.Oy)()){const Ct=this._document.querySelectorAll(`.${j}[platform="server"], .${j}[platform="test"]`);for(let Yt=0;Ytthis._backdropClick.next(fi),this._backdropTransitionendHandler=fi=>{this._disposeBackdrop(fi.target)},this._keydownEvents=new U.xQ,this._outsidePointerEvents=new U.xQ,Ct.scrollStrategy&&(this._scrollStrategy=Ct.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Ct.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(J){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const j=this._portalOutlet.attach(J);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof j?.onDestroy&&j.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),j}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const J=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),J}dispose(){const J=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,J&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(J){J!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=J,this.hasAttached()&&(J.attach(this),this.updatePosition()))}updateSize(J){this._config={...this._config,...J},this._updateElementSize()}setDirection(J){this._config={...this._config,direction:J},this._updateElementDirection()}addPanelClass(J){this._pane&&this._toggleClasses(this._pane,J,!0)}removePanelClass(J){this._pane&&this._toggleClasses(this._pane,J,!1)}getDirection(){const J=this._config.direction;return J?"string"==typeof J?J:J.value:"ltr"}updateScrollStrategy(J){J!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=J,this.hasAttached()&&(J.attach(this),J.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const J=this._pane.style;J.width=(0,h.HM)(this._config.width),J.height=(0,h.HM)(this._config.height),J.minWidth=(0,h.HM)(this._config.minWidth),J.minHeight=(0,h.HM)(this._config.minHeight),J.maxWidth=(0,h.HM)(this._config.maxWidth),J.maxHeight=(0,h.HM)(this._config.maxHeight)}_togglePointerEvents(J){this._pane.style.pointerEvents=J?"":"none"}_attachBackdrop(){const J="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(J)})}):this._backdropElement.classList.add(J)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const J=this._backdropElement;if(J){if(this._animationsDisabled)return void this._disposeBackdrop(J);J.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{J.addEventListener("transitionend",this._backdropTransitionendHandler)}),J.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(J)},500))}}_toggleClasses(J,j,Q){const Ct=(0,h.Eq)(j||[]).filter(Yt=>!!Yt);Ct.length&&(Q?J.classList.add(...Ct):J.classList.remove(...Ct))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const J=this._ngZone.onStable.pipe((0,q.R)((0,k.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),J.unsubscribe())})})}_disposeScrollStrategy(){const J=this._scrollStrategy;J&&(J.disable(),J.detach&&J.detach())}_disposeBackdrop(J){J&&(J.removeEventListener("click",this._backdropClickHandler),J.removeEventListener("transitionend",this._backdropTransitionendHandler),J.remove(),this._backdropElement===J&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Oe="cdk-overlay-connected-position-bounding-box",Ie=/([A-Za-z%]+)$/;class Rt{constructor(J,j,Q,Ct,Yt){this._viewportRuler=j,this._document=Q,this._platform=Ct,this._overlayContainer=Yt,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new U.xQ,this._resizeSubscription=D.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(J)}get positions(){return this._preferredPositions}attach(J){this._validatePositions(),J.hostElement.classList.add(Oe),this._overlayRef=J,this._boundingBox=J.hostElement,this._pane=J.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const J=this._originRect,j=this._overlayRect,Q=this._viewportRect,Ct=this._containerRect,Yt=[];let ie;for(let re of this._preferredPositions){let tn=this._getOriginPoint(J,Ct,re),Cn=this._getOverlayPoint(tn,j,re),Yn=this._getOverlayFit(Cn,j,Q,re);if(Yn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(re,tn);this._canFitWithFlexibleDimensions(Yn,Cn,Q)?Yt.push({position:re,origin:tn,overlayRect:j,boundingBoxRect:this._calculateBoundingBoxRect(tn,re)}):(!ie||ie.overlayFit.visibleAreatn&&(tn=Yn,re=Cn)}return this._isPushed=!1,void this._applyPosition(re.position,re.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ie.position,ie.originPoint);this._applyPosition(ie.position,ie.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&fe(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Oe),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const J=this._lastPosition;if(J){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const j=this._getOriginPoint(this._originRect,this._containerRect,J);this._applyPosition(J,j)}else this.apply()}withScrollableContainers(J){return this._scrollables=J,this}withPositions(J){return this._preferredPositions=J,-1===J.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(J){return this._viewportMargin=J,this}withFlexibleDimensions(J=!0){return this._hasFlexibleDimensions=J,this}withGrowAfterOpen(J=!0){return this._growAfterOpen=J,this}withPush(J=!0){return this._canPush=J,this}withLockedPosition(J=!0){return this._positionLocked=J,this}setOrigin(J){return this._origin=J,this}withDefaultOffsetX(J){return this._offsetX=J,this}withDefaultOffsetY(J){return this._offsetY=J,this}withTransformOriginOn(J){return this._transformOriginSelector=J,this}_getOriginPoint(J,j,Q){let Ct,Yt;if("center"==Q.originX)Ct=J.left+J.width/2;else{const ie=this._isRtl()?J.right:J.left,re=this._isRtl()?J.left:J.right;Ct="start"==Q.originX?ie:re}return j.left<0&&(Ct-=j.left),Yt="center"==Q.originY?J.top+J.height/2:"top"==Q.originY?J.top:J.bottom,j.top<0&&(Yt-=j.top),{x:Ct,y:Yt}}_getOverlayPoint(J,j,Q){let Ct,Yt;return Ct="center"==Q.overlayX?-j.width/2:"start"===Q.overlayX?this._isRtl()?-j.width:0:this._isRtl()?0:-j.width,Yt="center"==Q.overlayY?-j.height/2:"top"==Q.overlayY?0:-j.height,{x:J.x+Ct,y:J.y+Yt}}_getOverlayFit(J,j,Q,Ct){const Yt=ue(j);let{x:ie,y:re}=J,tn=this._getOffset(Ct,"x"),Cn=this._getOffset(Ct,"y");tn&&(ie+=tn),Cn&&(re+=Cn);let Fi=0-re,Bn=re+Yt.height-Q.height,Sn=this._subtractOverflows(Yt.width,0-ie,ie+Yt.width-Q.width),On=this._subtractOverflows(Yt.height,Fi,Bn),He=Sn*On;return{visibleArea:He,isCompletelyWithinViewport:Yt.width*Yt.height===He,fitsInViewportVertically:On===Yt.height,fitsInViewportHorizontally:Sn==Yt.width}}_canFitWithFlexibleDimensions(J,j,Q){if(this._hasFlexibleDimensions){const Ct=Q.bottom-j.y,Yt=Q.right-j.x,ie=Kt(this._overlayRef.getConfig().minHeight),re=Kt(this._overlayRef.getConfig().minWidth),Cn=J.fitsInViewportHorizontally||null!=re&&re<=Yt;return(J.fitsInViewportVertically||null!=ie&&ie<=Ct)&&Cn}return!1}_pushOverlayOnScreen(J,j,Q){if(this._previousPushAmount&&this._positionLocked)return{x:J.x+this._previousPushAmount.x,y:J.y+this._previousPushAmount.y};const Ct=ue(j),Yt=this._viewportRect,ie=Math.max(J.x+Ct.width-Yt.width,0),re=Math.max(J.y+Ct.height-Yt.height,0),tn=Math.max(Yt.top-Q.top-J.y,0),Cn=Math.max(Yt.left-Q.left-J.x,0);let Yn=0,fi=0;return Yn=Ct.width<=Yt.width?Cn||-ie:J.xSn&&!this._isInitialRender&&!this._growAfterOpen&&(ie=J.y-Sn/2)}if("end"===j.overlayX&&!Ct||"start"===j.overlayX&&Ct)Fi=Q.width-J.x+this._viewportMargin,Yn=J.x-this._viewportMargin;else if("start"===j.overlayX&&!Ct||"end"===j.overlayX&&Ct)fi=J.x,Yn=Q.right-J.x;else{const Bn=Math.min(Q.right-J.x+Q.left,J.x),Sn=this._lastBoundingBoxSize.width;Yn=2*Bn,fi=J.x-Bn,Yn>Sn&&!this._isInitialRender&&!this._growAfterOpen&&(fi=J.x-Sn/2)}return{top:ie,left:fi,bottom:re,right:Fi,width:Yn,height:Yt}}_setBoundingBoxStyles(J,j){const Q=this._calculateBoundingBoxRect(J,j);!this._isInitialRender&&!this._growAfterOpen&&(Q.height=Math.min(Q.height,this._lastBoundingBoxSize.height),Q.width=Math.min(Q.width,this._lastBoundingBoxSize.width));const Ct={};if(this._hasExactPosition())Ct.top=Ct.left="0",Ct.bottom=Ct.right=Ct.maxHeight=Ct.maxWidth="",Ct.width=Ct.height="100%";else{const Yt=this._overlayRef.getConfig().maxHeight,ie=this._overlayRef.getConfig().maxWidth;Ct.height=(0,h.HM)(Q.height),Ct.top=(0,h.HM)(Q.top),Ct.bottom=(0,h.HM)(Q.bottom),Ct.width=(0,h.HM)(Q.width),Ct.left=(0,h.HM)(Q.left),Ct.right=(0,h.HM)(Q.right),Ct.alignItems="center"===j.overlayX?"center":"end"===j.overlayX?"flex-end":"flex-start",Ct.justifyContent="center"===j.overlayY?"center":"bottom"===j.overlayY?"flex-end":"flex-start",Yt&&(Ct.maxHeight=(0,h.HM)(Yt)),ie&&(Ct.maxWidth=(0,h.HM)(ie))}this._lastBoundingBoxSize=Q,fe(this._boundingBox.style,Ct)}_resetBoundingBoxStyles(){fe(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){fe(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(J,j){const Q={},Ct=this._hasExactPosition(),Yt=this._hasFlexibleDimensions,ie=this._overlayRef.getConfig();if(Ct){const Yn=this._viewportRuler.getViewportScrollPosition();fe(Q,this._getExactOverlayY(j,J,Yn)),fe(Q,this._getExactOverlayX(j,J,Yn))}else Q.position="static";let re="",tn=this._getOffset(j,"x"),Cn=this._getOffset(j,"y");tn&&(re+=`translateX(${tn}px) `),Cn&&(re+=`translateY(${Cn}px)`),Q.transform=re.trim(),ie.maxHeight&&(Ct?Q.maxHeight=(0,h.HM)(ie.maxHeight):Yt&&(Q.maxHeight="")),ie.maxWidth&&(Ct?Q.maxWidth=(0,h.HM)(ie.maxWidth):Yt&&(Q.maxWidth="")),fe(this._pane.style,Q)}_getExactOverlayY(J,j,Q){let Ct={top:"",bottom:""},Yt=this._getOverlayPoint(j,this._overlayRect,J);return this._isPushed&&(Yt=this._pushOverlayOnScreen(Yt,this._overlayRect,Q)),"bottom"===J.overlayY?Ct.bottom=this._document.documentElement.clientHeight-(Yt.y+this._overlayRect.height)+"px":Ct.top=(0,h.HM)(Yt.y),Ct}_getExactOverlayX(J,j,Q){let ie,Ct={left:"",right:""},Yt=this._getOverlayPoint(j,this._overlayRect,J);return this._isPushed&&(Yt=this._pushOverlayOnScreen(Yt,this._overlayRect,Q)),ie=this._isRtl()?"end"===J.overlayX?"left":"right":"end"===J.overlayX?"right":"left","right"===ie?Ct.right=this._document.documentElement.clientWidth-(Yt.x+this._overlayRect.width)+"px":Ct.left=(0,h.HM)(Yt.x),Ct}_getScrollVisibility(){const J=this._getOriginRect(),j=this._pane.getBoundingClientRect(),Q=this._scrollables.map(Ct=>Ct.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Vt(J,Q),isOriginOutsideView:qt(J,Q),isOverlayClipped:Vt(j,Q),isOverlayOutsideView:qt(j,Q)}}_subtractOverflows(J,...j){return j.reduce((Q,Ct)=>Q-Math.max(Ct,0),J)}_getNarrowedViewportRect(){const J=this._document.documentElement.clientWidth,j=this._document.documentElement.clientHeight,Q=this._viewportRuler.getViewportScrollPosition();return{top:Q.top+this._viewportMargin,left:Q.left+this._viewportMargin,right:Q.left+J-this._viewportMargin,bottom:Q.top+j-this._viewportMargin,width:J-2*this._viewportMargin,height:j-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(J,j){return"x"===j?J.offsetX??this._offsetX:J.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(J){this._pane&&(0,h.Eq)(J).forEach(j=>{""!==j&&-1===this._appliedPanelClasses.indexOf(j)&&(this._appliedPanelClasses.push(j),this._pane.classList.add(j))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(J=>{this._pane.classList.remove(J)}),this._appliedPanelClasses=[])}_getOriginRect(){const J=this._origin;if(J instanceof g.SBq)return J.nativeElement.getBoundingClientRect();if(J instanceof Element)return J.getBoundingClientRect();const j=J.width||0,Q=J.height||0;return{top:J.y,bottom:J.y+Q,left:J.x,right:J.x+j,height:Q,width:j}}}function fe(Wt,J){for(let j in J)J.hasOwnProperty(j)&&(Wt[j]=J[j]);return Wt}function Kt(Wt){if("number"!=typeof Wt&&null!=Wt){const[J,j]=Wt.split(Ie);return j&&"px"!==j?null:parseFloat(J)}return Wt||null}function ue(Wt){return{top:Math.floor(Wt.top),right:Math.floor(Wt.right),bottom:Math.floor(Wt.bottom),left:Math.floor(Wt.left),width:Math.floor(Wt.width),height:Math.floor(Wt.height)}}const Te="cdk-global-overlay-wrapper";class Ye{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(J){const j=J.getConfig();this._overlayRef=J,this._width&&!j.width&&J.updateSize({width:this._width}),this._height&&!j.height&&J.updateSize({height:this._height}),J.hostElement.classList.add(Te),this._isDisposed=!1}top(J=""){return this._bottomOffset="",this._topOffset=J,this._alignItems="flex-start",this}left(J=""){return this._xOffset=J,this._xPosition="left",this}bottom(J=""){return this._topOffset="",this._bottomOffset=J,this._alignItems="flex-end",this}right(J=""){return this._xOffset=J,this._xPosition="right",this}start(J=""){return this._xOffset=J,this._xPosition="start",this}end(J=""){return this._xOffset=J,this._xPosition="end",this}width(J=""){return this._overlayRef?this._overlayRef.updateSize({width:J}):this._width=J,this}height(J=""){return this._overlayRef?this._overlayRef.updateSize({height:J}):this._height=J,this}centerHorizontally(J=""){return this.left(J),this._xPosition="center",this}centerVertically(J=""){return this.top(J),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const J=this._overlayRef.overlayElement.style,j=this._overlayRef.hostElement.style,Q=this._overlayRef.getConfig(),{width:Ct,height:Yt,maxWidth:ie,maxHeight:re}=Q,tn=!("100%"!==Ct&&"100vw"!==Ct||ie&&"100%"!==ie&&"100vw"!==ie),Cn=!("100%"!==Yt&&"100vh"!==Yt||re&&"100%"!==re&&"100vh"!==re),Yn=this._xPosition,fi=this._xOffset,Fi="rtl"===this._overlayRef.getConfig().direction;let Bn="",Sn="",On="";tn?On="flex-start":"center"===Yn?(On="center",Fi?Sn=fi:Bn=fi):Fi?"left"===Yn||"end"===Yn?(On="flex-end",Bn=fi):("right"===Yn||"start"===Yn)&&(On="flex-start",Sn=fi):"left"===Yn||"start"===Yn?(On="flex-start",Bn=fi):("right"===Yn||"end"===Yn)&&(On="flex-end",Sn=fi),J.position=this._cssPosition,J.marginLeft=tn?"0":Bn,J.marginTop=Cn?"0":this._topOffset,J.marginBottom=this._bottomOffset,J.marginRight=tn?"0":Sn,j.justifyContent=On,j.alignItems=Cn?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const J=this._overlayRef.overlayElement.style,j=this._overlayRef.hostElement,Q=j.style;j.classList.remove(Te),Q.justifyContent=Q.alignItems=J.marginTop=J.marginBottom=J.marginLeft=J.marginRight=J.position="",this._overlayRef=null,this._isDisposed=!0}}let fn=(()=>{class Wt{constructor(j,Q,Ct,Yt){this._viewportRuler=j,this._document=Q,this._platform=Ct,this._overlayContainer=Yt}global(){return new Ye}flexibleConnectedTo(j){return new Rt(j,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Wt.\u0275fac=function(j){return new(j||Wt)(g.LFG(l.rL),g.LFG(u.K0),g.LFG(t.t4),g.LFG(pe))},Wt.\u0275prov=g.Yz7({token:Wt,factory:Wt.\u0275fac,providedIn:"root"}),Wt})(),An=0,xe=(()=>{class Wt{constructor(j,Q,Ct,Yt,ie,re,tn,Cn,Yn,fi,Fi,Bn){this.scrollStrategies=j,this._overlayContainer=Q,this._componentFactoryResolver=Ct,this._positionBuilder=Yt,this._keyboardDispatcher=ie,this._injector=re,this._ngZone=tn,this._document=Cn,this._directionality=Yn,this._location=fi,this._outsideClickDispatcher=Fi,this._animationsModuleType=Bn}create(j){const Q=this._createHostElement(),Ct=this._createPaneElement(Q),Yt=this._createPortalOutlet(Ct),ie=new xt(j);return ie.direction=ie.direction||this._directionality.value,new Ze(Yt,Q,Ct,ie,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(j){const Q=this._document.createElement("div");return Q.id="cdk-overlay-"+An++,Q.classList.add("cdk-overlay-pane"),j.appendChild(Q),Q}_createHostElement(){const j=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(j),j}_createPortalOutlet(j){return this._appRef||(this._appRef=this._injector.get(g.z2F)),new T.u0(j,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Wt.\u0275fac=function(j){return new(j||Wt)(g.LFG(bt),g.LFG(pe),g.LFG(g._Vd),g.LFG(fn),g.LFG(Ft),g.LFG(g.zs3),g.LFG(g.R0b),g.LFG(u.K0),g.LFG(x.Is),g.LFG(u.Ye),g.LFG(_e),g.LFG(g.QbO,8))},Wt.\u0275prov=g.Yz7({token:Wt,factory:Wt.\u0275fac}),Wt})();const hn=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Re=new g.OlP("cdk-connected-overlay-scroll-strategy");let _n=(()=>{class Wt{constructor(j){this.elementRef=j}}return Wt.\u0275fac=function(j){return new(j||Wt)(g.Y36(g.SBq))},Wt.\u0275dir=g.lG2({type:Wt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Wt})(),Kn=(()=>{class Wt{constructor(j,Q,Ct,Yt,ie){this._overlay=j,this._dir=ie,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=D.w.EMPTY,this._attachSubscription=D.w.EMPTY,this._detachSubscription=D.w.EMPTY,this._positionSubscription=D.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new g.vpe,this.positionChange=new g.vpe,this.attach=new g.vpe,this.detach=new g.vpe,this.overlayKeydown=new g.vpe,this.overlayOutsideClick=new g.vpe,this._templatePortal=new T.UE(Q,Ct),this._scrollStrategyFactory=Yt,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(j){this._offsetX=j,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(j){this._offsetY=j,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(j){this._hasBackdrop=(0,h.Ig)(j)}get lockPosition(){return this._lockPosition}set lockPosition(j){this._lockPosition=(0,h.Ig)(j)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(j){this._flexibleDimensions=(0,h.Ig)(j)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(j){this._growAfterOpen=(0,h.Ig)(j)}get push(){return this._push}set push(j){this._push=(0,h.Ig)(j)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(j){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),j.origin&&this.open&&this._position.apply()),j.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=hn);const j=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=j.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=j.detachments().subscribe(()=>this.detach.emit()),j.keydownEvents().subscribe(Q=>{this.overlayKeydown.next(Q),Q.keyCode===$.hY&&!this.disableClose&&!(0,$.Vb)(Q)&&(Q.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Q=>{this.overlayOutsideClick.next(Q)})}_buildConfig(){const j=this._position=this.positionStrategy||this._createPositionStrategy(),Q=new xt({direction:this._dir,positionStrategy:j,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Q.width=this.width),(this.height||0===this.height)&&(Q.height=this.height),(this.minWidth||0===this.minWidth)&&(Q.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Q.minHeight=this.minHeight),this.backdropClass&&(Q.backdropClass=this.backdropClass),this.panelClass&&(Q.panelClass=this.panelClass),Q}_updatePositionStrategy(j){const Q=this.positions.map(Ct=>({originX:Ct.originX,originY:Ct.originY,overlayX:Ct.overlayX,overlayY:Ct.overlayY,offsetX:Ct.offsetX||this.offsetX,offsetY:Ct.offsetY||this.offsetY,panelClass:Ct.panelClass||void 0}));return j.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Q).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const j=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(j),j}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof _n?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(j=>{this.backdropClick.emit(j)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,Y.o)(()=>this.positionChange.observers.length>0)).subscribe(j=>{this.positionChange.emit(j),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Wt.\u0275fac=function(j){return new(j||Wt)(g.Y36(xe),g.Y36(g.Rgc),g.Y36(g.s_b),g.Y36(Re),g.Y36(x.Is,8))},Wt.\u0275dir=g.lG2({type:Wt,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[g.TTD]}),Wt})();const oi={provide:Re,deps:[xe],useFactory:function si(Wt){return()=>Wt.scrollStrategies.reposition()}};let Vn=(()=>{class Wt{}return Wt.\u0275fac=function(j){return new(j||Wt)},Wt.\u0275mod=g.oAB({type:Wt}),Wt.\u0275inj=g.cJS({providers:[xe,oi],imports:[x.vT,T.eL,l.Cl,l.Cl]}),Wt})()},83353:(K,W,_)=>{"use strict";_.d(W,{Mq:()=>$,Oy:()=>Vt,_i:()=>X,ht:()=>Tt,i$:()=>O,kV:()=>ft,qK:()=>U,sA:()=>qt,t4:()=>h,ud:()=>t});var l=_(94650),u=_(36895);let g;try{g=typeof Intl<"u"&&Intl.v8BreakIterator}catch{g=!1}let x,h=(()=>{class Bt{constructor(xt){this._platformId=xt,this.isBrowser=this._platformId?(0,u.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!g)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return Bt.\u0275fac=function(xt){return new(xt||Bt)(l.LFG(l.Lbi))},Bt.\u0275prov=l.Yz7({token:Bt,factory:Bt.\u0275fac,providedIn:"root"}),Bt})(),t=(()=>{class Bt{}return Bt.\u0275fac=function(xt){return new(xt||Bt)},Bt.\u0275mod=l.oAB({type:Bt}),Bt.\u0275inj=l.cJS({}),Bt})();const T=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function U(){if(x)return x;if("object"!=typeof document||!document)return x=new Set(T),x;let Bt=document.createElement("input");return x=new Set(T.filter(bt=>(Bt.setAttribute("type",bt),Bt.type===bt))),x}let D,q,Y,at;function O(Bt){return function k(){if(null==D&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>D=!0}))}finally{D=D||!1}return D}()?Bt:!!Bt.capture}function $(){if(null==Y){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Y=!1,Y;if("scrollBehavior"in document.documentElement.style)Y=!0;else{const Bt=Element.prototype.scrollTo;Y=!!Bt&&!/\{\s*\[native code\]\s*\}/.test(Bt.toString())}}return Y}function X(){if("object"!=typeof document||!document)return 0;if(null==q){const Bt=document.createElement("div"),bt=Bt.style;Bt.dir="rtl",bt.width="1px",bt.overflow="auto",bt.visibility="hidden",bt.pointerEvents="none",bt.position="absolute";const xt=document.createElement("div"),ht=xt.style;ht.width="2px",ht.height="1px",Bt.appendChild(xt),document.body.appendChild(Bt),q=0,0===Bt.scrollLeft&&(Bt.scrollLeft=1,q=0===Bt.scrollLeft?1:2),Bt.remove()}return q}function ft(Bt){if(function rt(){if(null==at){const Bt=typeof document<"u"?document.head:null;at=!(!Bt||!Bt.createShadowRoot&&!Bt.attachShadow)}return at}()){const bt=Bt.getRootNode?Bt.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&bt instanceof ShadowRoot)return bt}return null}function Tt(){let Bt=typeof document<"u"&&document?document.activeElement:null;for(;Bt&&Bt.shadowRoot;){const bt=Bt.shadowRoot.activeElement;if(bt===Bt)break;Bt=bt}return Bt}function qt(Bt){return Bt.composedPath?Bt.composedPath()[0]:Bt.target}function Vt(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(K,W,_)=>{"use strict";_.d(W,{C5:()=>k,Pl:()=>Tt,UE:()=>O,eL:()=>Vt,en:()=>Y,ig:()=>rt,u0:()=>X});var l=_(94650),u=_(36895);class D{attach(xt){return this._attachedHost=xt,xt.attach(this)}detach(){let xt=this._attachedHost;null!=xt&&(this._attachedHost=null,xt.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(xt){this._attachedHost=xt}}class k extends D{constructor(xt,ht,ut,Mt){super(),this.component=xt,this.viewContainerRef=ht,this.injector=ut,this.componentFactoryResolver=Mt}}class O extends D{constructor(xt,ht,ut,Mt){super(),this.templateRef=xt,this.viewContainerRef=ht,this.context=ut,this.injector=Mt}get origin(){return this.templateRef.elementRef}attach(xt,ht=this.context){return this.context=ht,super.attach(xt)}detach(){return this.context=void 0,super.detach()}}class q extends D{constructor(xt){super(),this.element=xt instanceof l.SBq?xt.nativeElement:xt}}class Y{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(xt){return xt instanceof k?(this._attachedPortal=xt,this.attachComponentPortal(xt)):xt instanceof O?(this._attachedPortal=xt,this.attachTemplatePortal(xt)):this.attachDomPortal&&xt instanceof q?(this._attachedPortal=xt,this.attachDomPortal(xt)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(xt){this._disposeFn=xt}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class X extends Y{constructor(xt,ht,ut,Mt,It){super(),this.outletElement=xt,this._componentFactoryResolver=ht,this._appRef=ut,this._defaultInjector=Mt,this.attachDomPortal=wt=>{const ee=wt.element,Ft=this._document.createComment("dom-portal");ee.parentNode.insertBefore(Ft,ee),this.outletElement.appendChild(ee),this._attachedPortal=wt,super.setDisposeFn(()=>{Ft.parentNode&&Ft.parentNode.replaceChild(ee,Ft)})},this._document=It}attachComponentPortal(xt){const ut=(xt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(xt.component);let Mt;return xt.viewContainerRef?(Mt=xt.viewContainerRef.createComponent(ut,xt.viewContainerRef.length,xt.injector||xt.viewContainerRef.injector),this.setDisposeFn(()=>Mt.destroy())):(Mt=ut.create(xt.injector||this._defaultInjector||l.zs3.NULL),this._appRef.attachView(Mt.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Mt.hostView),Mt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Mt)),this._attachedPortal=xt,Mt}attachTemplatePortal(xt){let ht=xt.viewContainerRef,ut=ht.createEmbeddedView(xt.templateRef,xt.context,{injector:xt.injector});return ut.rootNodes.forEach(Mt=>this.outletElement.appendChild(Mt)),ut.detectChanges(),this.setDisposeFn(()=>{let Mt=ht.indexOf(ut);-1!==Mt&&ht.remove(Mt)}),this._attachedPortal=xt,ut}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(xt){return xt.hostView.rootNodes[0]}}let rt=(()=>{class bt extends O{constructor(ht,ut){super(ht,ut)}}return bt.\u0275fac=function(ht){return new(ht||bt)(l.Y36(l.Rgc),l.Y36(l.s_b))},bt.\u0275dir=l.lG2({type:bt,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[l.qOj]}),bt})(),Tt=(()=>{class bt extends Y{constructor(ht,ut,Mt){super(),this._componentFactoryResolver=ht,this._viewContainerRef=ut,this._isInitialized=!1,this.attached=new l.vpe,this.attachDomPortal=It=>{const wt=It.element,ee=this._document.createComment("dom-portal");It.setAttachedHost(this),wt.parentNode.insertBefore(ee,wt),this._getRootNode().appendChild(wt),this._attachedPortal=It,super.setDisposeFn(()=>{ee.parentNode&&ee.parentNode.replaceChild(wt,ee)})},this._document=Mt}get portal(){return this._attachedPortal}set portal(ht){this.hasAttached()&&!ht&&!this._isInitialized||(this.hasAttached()&&super.detach(),ht&&super.attach(ht),this._attachedPortal=ht||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(ht){ht.setAttachedHost(this);const ut=null!=ht.viewContainerRef?ht.viewContainerRef:this._viewContainerRef,It=(ht.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ht.component),wt=ut.createComponent(It,ut.length,ht.injector||ut.injector);return ut!==this._viewContainerRef&&this._getRootNode().appendChild(wt.hostView.rootNodes[0]),super.setDisposeFn(()=>wt.destroy()),this._attachedPortal=ht,this._attachedRef=wt,this.attached.emit(wt),wt}attachTemplatePortal(ht){ht.setAttachedHost(this);const ut=this._viewContainerRef.createEmbeddedView(ht.templateRef,ht.context,{injector:ht.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ht,this._attachedRef=ut,this.attached.emit(ut),ut}_getRootNode(){const ht=this._viewContainerRef.element.nativeElement;return ht.nodeType===ht.ELEMENT_NODE?ht:ht.parentNode}}return bt.\u0275fac=function(ht){return new(ht||bt)(l.Y36(l._Vd),l.Y36(l.s_b),l.Y36(u.K0))},bt.\u0275dir=l.lG2({type:bt,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[l.qOj]}),bt})(),Vt=(()=>{class bt{}return bt.\u0275fac=function(ht){return new(ht||bt)},bt.\u0275mod=l.oAB({type:bt}),bt.\u0275inj=l.cJS({}),bt})()},67376:(K,W,_)=>{"use strict";_.d(W,{Cl:()=>Ie,PQ:()=>bt,ZD:()=>Oe,mF:()=>Bt,rL:()=>ht});var l=_(21281),u=_(94650),g=_(8929),h=_(21086),t=_(56498),x=_(23753),D=(_(90352),_(8139),_(57138)),k=_(92198),O=_(7625),q=_(83353),Y=_(36895),$=_(40445);let Bt=(()=>{class Rt{constructor(Kt,ue,ce){this._ngZone=Kt,this._platform=ue,this._scrolled=new g.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ce}register(Kt){this.scrollContainers.has(Kt)||this.scrollContainers.set(Kt,Kt.elementScrolled().subscribe(()=>this._scrolled.next(Kt)))}deregister(Kt){const ue=this.scrollContainers.get(Kt);ue&&(ue.unsubscribe(),this.scrollContainers.delete(Kt))}scrolled(Kt=20){return this._platform.isBrowser?new t.y(ue=>{this._globalSubscription||this._addGlobalListener();const ce=Kt>0?this._scrolled.pipe((0,D.e)(Kt)).subscribe(ue):this._scrolled.subscribe(ue);return this._scrolledCount++,()=>{ce.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,h.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Kt,ue)=>this.deregister(ue)),this._scrolled.complete()}ancestorScrolled(Kt,ue){const ce=this.getAncestorScrollContainers(Kt);return this.scrolled(ue).pipe((0,k.h)(je=>!je||ce.indexOf(je)>-1))}getAncestorScrollContainers(Kt){const ue=[];return this.scrollContainers.forEach((ce,je)=>{this._scrollableContainsElement(je,Kt)&&ue.push(je)}),ue}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Kt,ue){let ce=(0,l.fI)(ue),je=Kt.getElementRef().nativeElement;do{if(ce==je)return!0}while(ce=ce.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Kt=this._getWindow();return(0,x.R)(Kt.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Rt.\u0275fac=function(Kt){return new(Kt||Rt)(u.LFG(u.R0b),u.LFG(q.t4),u.LFG(Y.K0,8))},Rt.\u0275prov=u.Yz7({token:Rt,factory:Rt.\u0275fac,providedIn:"root"}),Rt})(),bt=(()=>{class Rt{constructor(Kt,ue,ce,je){this.elementRef=Kt,this.scrollDispatcher=ue,this.ngZone=ce,this.dir=je,this._destroyed=new g.xQ,this._elementScrolled=new t.y(Te=>this.ngZone.runOutsideAngular(()=>(0,x.R)(this.elementRef.nativeElement,"scroll").pipe((0,O.R)(this._destroyed)).subscribe(Te)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(Kt){const ue=this.elementRef.nativeElement,ce=this.dir&&"rtl"==this.dir.value;null==Kt.left&&(Kt.left=ce?Kt.end:Kt.start),null==Kt.right&&(Kt.right=ce?Kt.start:Kt.end),null!=Kt.bottom&&(Kt.top=ue.scrollHeight-ue.clientHeight-Kt.bottom),ce&&0!=(0,q._i)()?(null!=Kt.left&&(Kt.right=ue.scrollWidth-ue.clientWidth-Kt.left),2==(0,q._i)()?Kt.left=Kt.right:1==(0,q._i)()&&(Kt.left=Kt.right?-Kt.right:Kt.right)):null!=Kt.right&&(Kt.left=ue.scrollWidth-ue.clientWidth-Kt.right),this._applyScrollToOptions(Kt)}_applyScrollToOptions(Kt){const ue=this.elementRef.nativeElement;(0,q.Mq)()?ue.scrollTo(Kt):(null!=Kt.top&&(ue.scrollTop=Kt.top),null!=Kt.left&&(ue.scrollLeft=Kt.left))}measureScrollOffset(Kt){const ue="left",je=this.elementRef.nativeElement;if("top"==Kt)return je.scrollTop;if("bottom"==Kt)return je.scrollHeight-je.clientHeight-je.scrollTop;const Te=this.dir&&"rtl"==this.dir.value;return"start"==Kt?Kt=Te?"right":ue:"end"==Kt&&(Kt=Te?ue:"right"),Te&&2==(0,q._i)()?Kt==ue?je.scrollWidth-je.clientWidth-je.scrollLeft:je.scrollLeft:Te&&1==(0,q._i)()?Kt==ue?je.scrollLeft+je.scrollWidth-je.clientWidth:-je.scrollLeft:Kt==ue?je.scrollLeft:je.scrollWidth-je.clientWidth-je.scrollLeft}}return Rt.\u0275fac=function(Kt){return new(Kt||Rt)(u.Y36(u.SBq),u.Y36(Bt),u.Y36(u.R0b),u.Y36($.Is,8))},Rt.\u0275dir=u.lG2({type:Rt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Rt})(),ht=(()=>{class Rt{constructor(Kt,ue,ce){this._platform=Kt,this._change=new g.xQ,this._changeListener=je=>{this._change.next(je)},this._document=ce,ue.runOutsideAngular(()=>{if(Kt.isBrowser){const je=this._getWindow();je.addEventListener("resize",this._changeListener),je.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Kt=this._getWindow();Kt.removeEventListener("resize",this._changeListener),Kt.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Kt={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Kt}getViewportRect(){const Kt=this.getViewportScrollPosition(),{width:ue,height:ce}=this.getViewportSize();return{top:Kt.top,left:Kt.left,bottom:Kt.top+ce,right:Kt.left+ue,height:ce,width:ue}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Kt=this._document,ue=this._getWindow(),ce=Kt.documentElement,je=ce.getBoundingClientRect();return{top:-je.top||Kt.body.scrollTop||ue.scrollY||ce.scrollTop||0,left:-je.left||Kt.body.scrollLeft||ue.scrollX||ce.scrollLeft||0}}change(Kt=20){return Kt>0?this._change.pipe((0,D.e)(Kt)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Kt=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Kt.innerWidth,height:Kt.innerHeight}:{width:0,height:0}}}return Rt.\u0275fac=function(Kt){return new(Kt||Rt)(u.LFG(q.t4),u.LFG(u.R0b),u.LFG(Y.K0,8))},Rt.\u0275prov=u.Yz7({token:Rt,factory:Rt.\u0275fac,providedIn:"root"}),Rt})(),Oe=(()=>{class Rt{}return Rt.\u0275fac=function(Kt){return new(Kt||Rt)},Rt.\u0275mod=u.oAB({type:Rt}),Rt.\u0275inj=u.cJS({}),Rt})(),Ie=(()=>{class Rt{}return Rt.\u0275fac=function(Kt){return new(Kt||Rt)},Rt.\u0275mod=u.oAB({type:Rt}),Rt.\u0275inj=u.cJS({imports:[$.vT,Oe,$.vT,Oe]}),Rt})()},12138:(K,W,_)=>{"use strict";_.d(W,{B8:()=>qt,KL:()=>Y,U5:()=>bt,be:()=>Tt,gx:()=>ft,po:()=>Bt,st:()=>Vt,u6:()=>$});var l=_(12687),u=_(40445),g=_(21281),h=_(29521),t=_(94650),x=_(83353),T=_(8929),U=_(21086),D=_(1059),k=_(7625);function O(xt,ht){1&xt&&t.Hsn(0)}const q=["*"];let Y=(()=>{class xt{constructor(ut){this._elementRef=ut}focus(){this._elementRef.nativeElement.focus()}}return xt.\u0275fac=function(ut){return new(ut||xt)(t.Y36(t.SBq))},xt.\u0275dir=t.lG2({type:xt,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),xt})(),$=(()=>{class xt{constructor(ut){this.template=ut}}return xt.\u0275fac=function(ut){return new(ut||xt)(t.Y36(t.Rgc))},xt.\u0275dir=t.lG2({type:xt,selectors:[["","cdkStepLabel",""]]}),xt})(),X=0;const ft=new t.OlP("STEPPER_GLOBAL_OPTIONS");let Tt=(()=>{class xt{constructor(ut,Mt){this._stepper=ut,this.interacted=!1,this.interactedStream=new t.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Mt||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(ut){this._editable=(0,g.Ig)(ut)}get optional(){return this._optional}set optional(ut){this._optional=(0,g.Ig)(ut)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(ut){this._completedOverride=(0,g.Ig)(ut)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(ut){this._customError=(0,g.Ig)(ut)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return xt.\u0275fac=function(ut){return new(ut||xt)(t.Y36((0,t.Gpc)(()=>qt)),t.Y36(ft,8))},xt.\u0275cmp=t.Xpm({type:xt,selectors:[["cdk-step"]],contentQueries:function(ut,Mt,It){if(1&ut&&t.Suo(It,$,5),2&ut){let wt;t.iGM(wt=t.CRH())&&(Mt.stepLabel=wt.first)}},viewQuery:function(ut,Mt){if(1&ut&&t.Gf(t.Rgc,7),2&ut){let It;t.iGM(It=t.CRH())&&(Mt.content=It.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[t.TTD],ngContentSelectors:q,decls:1,vars:0,template:function(ut,Mt){1&ut&&(t.F$t(),t.YNc(0,O,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),xt})(),qt=(()=>{class xt{constructor(ut,Mt,It){this._dir=ut,this._changeDetectorRef=Mt,this._elementRef=It,this._destroyed=new T.xQ,this.steps=new t.n_E,this._sortedHeaders=new t.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new t.vpe,this._orientation="horizontal",this._groupId=X++}get linear(){return this._linear}set linear(ut){this._linear=(0,g.Ig)(ut)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ut){const Mt=(0,g.su)(ut);this.steps&&this._steps?(this._isValidIndex(Mt),this.selected?._markAsInteracted(),this._selectedIndex!==Mt&&!this._anyControlsInvalidOrPending(Mt)&&(Mt>=this._selectedIndex||this.steps.toArray()[Mt].editable)&&this._updateSelectedItemIndex(Mt)):this._selectedIndex=Mt}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(ut){this.selectedIndex=ut&&this.steps?this.steps.toArray().indexOf(ut):-1}get orientation(){return this._orientation}set orientation(ut){this._orientation=ut,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===ut)}ngAfterContentInit(){this._steps.changes.pipe((0,D.O)(this._steps),(0,k.R)(this._destroyed)).subscribe(ut=>{this.steps.reset(ut.filter(Mt=>Mt._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,D.O)(this._stepHeader),(0,k.R)(this._destroyed)).subscribe(ut=>{this._sortedHeaders.reset(ut.toArray().sort((Mt,It)=>Mt._elementRef.nativeElement.compareDocumentPosition(It._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new l.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,U.of)()).pipe((0,D.O)(this._layoutDirection()),(0,k.R)(this._destroyed)).subscribe(ut=>this._keyManager.withHorizontalOrientation(ut)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(ut=>ut.reset()),this._stateChanged()}_getStepLabelId(ut){return`cdk-step-label-${this._groupId}-${ut}`}_getStepContentId(ut){return`cdk-step-content-${this._groupId}-${ut}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(ut){const Mt=ut-this._selectedIndex;return Mt<0?"rtl"===this._layoutDirection()?"next":"previous":Mt>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(ut,Mt="number"){const It=this.steps.toArray()[ut],wt=this._isCurrentStep(ut);return It._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(It,wt):this._getGuidelineLogic(It,wt,Mt)}_getDefaultIndicatorLogic(ut,Mt){return ut._showError()&&ut.hasError&&!Mt?"error":!ut.completed||Mt?"number":ut.editable?"edit":"done"}_getGuidelineLogic(ut,Mt,It="number"){return ut._showError()&&ut.hasError&&!Mt?"error":ut.completed&&!Mt?"done":ut.completed&&Mt?It:ut.editable&&Mt?"edit":It}_isCurrentStep(ut){return this._selectedIndex===ut}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(ut){const Mt=this.steps.toArray();this.selectionChange.emit({selectedIndex:ut,previouslySelectedIndex:this._selectedIndex,selectedStep:Mt[ut],previouslySelectedStep:Mt[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(ut):this._keyManager.updateActiveItem(ut),this._selectedIndex=ut,this._stateChanged()}_onKeydown(ut){const Mt=(0,h.Vb)(ut),It=ut.keyCode,wt=this._keyManager;null==wt.activeItemIndex||Mt||It!==h.L_&&It!==h.K5?wt.onKeydown(ut):(this.selectedIndex=wt.activeItemIndex,ut.preventDefault())}_anyControlsInvalidOrPending(ut){return!!(this._linear&&ut>=0)&&this.steps.toArray().slice(0,ut).some(Mt=>{const It=Mt.stepControl;return(It?It.invalid||It.pending||!Mt.interacted:!Mt.completed)&&!Mt.optional&&!Mt._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const ut=this._elementRef.nativeElement,Mt=(0,x.ht)();return ut===Mt||ut.contains(Mt)}_isValidIndex(ut){return ut>-1&&(!this.steps||ut{class xt{constructor(ut){this._stepper=ut,this.type="submit"}}return xt.\u0275fac=function(ut){return new(ut||xt)(t.Y36(qt))},xt.\u0275dir=t.lG2({type:xt,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(ut,Mt){1&ut&&t.NdJ("click",function(){return Mt._stepper.next()}),2&ut&&t.Ikx("type",Mt.type)},inputs:{type:"type"}}),xt})(),Bt=(()=>{class xt{constructor(ut){this._stepper=ut,this.type="button"}}return xt.\u0275fac=function(ut){return new(ut||xt)(t.Y36(qt))},xt.\u0275dir=t.lG2({type:xt,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(ut,Mt){1&ut&&t.NdJ("click",function(){return Mt._stepper.previous()}),2&ut&&t.Ikx("type",Mt.type)},inputs:{type:"type"}}),xt})(),bt=(()=>{class xt{}return xt.\u0275fac=function(ut){return new(ut||xt)},xt.\u0275mod=t.oAB({type:xt}),xt.\u0275inj=t.cJS({imports:[u.vT]}),xt})()},39349:(K,W,_)=>{"use strict";_.d(W,{IC:()=>Y,Ky:()=>$,Lq:()=>O});var l=_(83353),u=_(94650),g=_(21281),h=_(68896),t=_(8929),x=_(23753),T=_(57138),U=_(7625),D=_(36895);const k=(0,l.i$)({passive:!0});let O=(()=>{class X{constructor(rt,ft){this._platform=rt,this._ngZone=ft,this._monitoredElements=new Map}monitor(rt){if(!this._platform.isBrowser)return h.E;const ft=(0,g.fI)(rt),Tt=this._monitoredElements.get(ft);if(Tt)return Tt.subject;const qt=new t.xQ,Vt="cdk-text-field-autofilled",Bt=bt=>{"cdk-text-field-autofill-start"!==bt.animationName||ft.classList.contains(Vt)?"cdk-text-field-autofill-end"===bt.animationName&&ft.classList.contains(Vt)&&(ft.classList.remove(Vt),this._ngZone.run(()=>qt.next({target:bt.target,isAutofilled:!1}))):(ft.classList.add(Vt),this._ngZone.run(()=>qt.next({target:bt.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{ft.addEventListener("animationstart",Bt,k),ft.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(ft,{subject:qt,unlisten:()=>{ft.removeEventListener("animationstart",Bt,k)}}),qt}stopMonitoring(rt){const ft=(0,g.fI)(rt),Tt=this._monitoredElements.get(ft);Tt&&(Tt.unlisten(),Tt.subject.complete(),ft.classList.remove("cdk-text-field-autofill-monitored"),ft.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(ft))}ngOnDestroy(){this._monitoredElements.forEach((rt,ft)=>this.stopMonitoring(ft))}}return X.\u0275fac=function(rt){return new(rt||X)(u.LFG(l.t4),u.LFG(u.R0b))},X.\u0275prov=u.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),Y=(()=>{class X{constructor(rt,ft,Tt,qt){this._elementRef=rt,this._platform=ft,this._ngZone=Tt,this._destroyed=new t.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=Vt=>{this._hasFocus="focus"===Vt.type},this._document=qt,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(rt){this._minRows=(0,g.su)(rt),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(rt){this._maxRows=(0,g.su)(rt),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(rt){rt=(0,g.Ig)(rt),this._enabled!==rt&&((this._enabled=rt)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(rt){this._cachedPlaceholderHeight=void 0,rt?this._textareaElement.setAttribute("placeholder",rt):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const rt=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;rt&&(this._textareaElement.style.minHeight=rt)}_setMaxHeight(){const rt=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;rt&&(this._textareaElement.style.maxHeight=rt)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const rt=this._getWindow();(0,x.R)(rt,"resize").pipe((0,T.e)(16),(0,U.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let rt=this._textareaElement.cloneNode(!1);rt.rows=1,rt.style.position="absolute",rt.style.visibility="hidden",rt.style.border="none",rt.style.padding="0",rt.style.height="",rt.style.minHeight="",rt.style.maxHeight="",rt.style.overflow="hidden",this._textareaElement.parentNode.appendChild(rt),this._cachedLineHeight=rt.clientHeight,rt.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const rt=this._textareaElement,ft=rt.style.marginBottom||"",Tt=this._platform.FIREFOX,qt=Tt&&this._hasFocus,Vt=Tt?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";qt&&(rt.style.marginBottom=`${rt.clientHeight}px`),rt.classList.add(Vt);const Bt=rt.scrollHeight-4;return rt.classList.remove(Vt),qt&&(rt.style.marginBottom=ft),Bt}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const rt=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=rt}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(rt=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const ft=this._elementRef.nativeElement,Tt=ft.value;if(!rt&&this._minRows===this._previousMinRows&&Tt===this._previousValue)return;const qt=this._measureScrollHeight(),Vt=Math.max(qt,this._cachedPlaceholderHeight||0);ft.style.height=`${Vt}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(ft)):setTimeout(()=>this._scrollToCaretPosition(ft))}),this._previousValue=Tt,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(rt){const{selectionStart:ft,selectionEnd:Tt}=rt;!this._destroyed.isStopped&&this._hasFocus&&rt.setSelectionRange(ft,Tt)}}return X.\u0275fac=function(rt){return new(rt||X)(u.Y36(u.SBq),u.Y36(l.t4),u.Y36(u.R0b),u.Y36(D.K0,8))},X.\u0275dir=u.lG2({type:X,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(rt,ft){1&rt&&u.NdJ("input",function(){return ft._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),X})(),$=(()=>{class X{}return X.\u0275fac=function(rt){return new(rt||X)},X.\u0275mod=u.oAB({type:X}),X.\u0275inj=u.cJS({}),X})()},57851:(K,W,_)=>{"use strict";_.d(W,{C2:()=>Y,HI:()=>X,Hs:()=>ht,Ud:()=>Ft,VY:()=>$,XJ:()=>ee,Xx:()=>It,_0:()=>xt,cu:()=>at,nZ:()=>pe,rO:()=>ft});var l=_(95017),u=_(54715),g=_(8929),h=_(591),t=_(21086),x=_(72986),T=_(92198),U=_(7625),D=_(94650),k=_(21281),O=_(40445);class q{constructor(){this.expansionModel=new l.Ov(!0)}toggle(Oe){this.expansionModel.toggle(this._trackByValue(Oe))}expand(Oe){this.expansionModel.select(this._trackByValue(Oe))}collapse(Oe){this.expansionModel.deselect(this._trackByValue(Oe))}isExpanded(Oe){return this.expansionModel.isSelected(this._trackByValue(Oe))}toggleDescendants(Oe){this.expansionModel.isSelected(this._trackByValue(Oe))?this.collapseDescendants(Oe):this.expandDescendants(Oe)}collapseAll(){this.expansionModel.clear()}expandDescendants(Oe){let Ie=[Oe];Ie.push(...this.getDescendants(Oe)),this.expansionModel.select(...Ie.map(Rt=>this._trackByValue(Rt)))}collapseDescendants(Oe){let Ie=[Oe];Ie.push(...this.getDescendants(Oe)),this.expansionModel.deselect(...Ie.map(Rt=>this._trackByValue(Rt)))}_trackByValue(Oe){return this.trackBy?this.trackBy(Oe):Oe}}class Y extends q{constructor(Oe,Ie,Rt){super(),this.getLevel=Oe,this.isExpandable=Ie,this.options=Rt,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(Oe){const Rt=[];for(let fe=this.dataNodes.indexOf(Oe)+1;fethis._trackByValue(Oe)))}}class $ extends q{constructor(Oe,Ie){super(),this.getChildren=Oe,this.options=Ie,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const Oe=this.dataNodes.reduce((Ie,Rt)=>[...Ie,...this.getDescendants(Rt),Rt],[]);this.expansionModel.select(...Oe.map(Ie=>this._trackByValue(Ie)))}getDescendants(Oe){const Ie=[];return this._getDescendants(Ie,Oe),Ie.splice(1)}_getDescendants(Oe,Ie){Oe.push(Ie);const Rt=this.getChildren(Ie);Array.isArray(Rt)?Rt.forEach(fe=>this._getDescendants(Oe,fe)):(0,u.b)(Rt)&&Rt.pipe((0,x.q)(1),(0,T.h)(Boolean)).subscribe(fe=>{for(const Kt of fe)this._getDescendants(Oe,Kt)})}}const X=new D.OlP("CDK_TREE_NODE_OUTLET_NODE");let at=(()=>{class Ze{constructor(Ie,Rt){this.viewContainer=Ie,this._node=Rt}}return Ze.\u0275fac=function(Ie){return new(Ie||Ze)(D.Y36(D.s_b),D.Y36(X,8))},Ze.\u0275dir=D.lG2({type:Ze,selectors:[["","cdkTreeNodeOutlet",""]]}),Ze})();class rt{constructor(Oe){this.$implicit=Oe}}let ft=(()=>{class Ze{constructor(Ie){this.template=Ie}}return Ze.\u0275fac=function(Ie){return new(Ie||Ze)(D.Y36(D.Rgc))},Ze.\u0275dir=D.lG2({type:Ze,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),Ze})(),xt=(()=>{class Ze{constructor(Ie,Rt){this._differs=Ie,this._changeDetectorRef=Rt,this._onDestroy=new g.xQ,this._levels=new Map,this.viewChange=new h.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(Ie){this._dataSource!==Ie&&this._switchDataSource(Ie)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const Ie=this._nodeDefs.filter(Rt=>!Rt.when);this._defaultNodeDef=Ie[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(Ie){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),Ie||this._nodeOutlet.viewContainer.clear(),this._dataSource=Ie,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let Ie;(0,l.Z9)(this._dataSource)?Ie=this._dataSource.connect(this):(0,u.b)(this._dataSource)?Ie=this._dataSource:Array.isArray(this._dataSource)&&(Ie=(0,t.of)(this._dataSource)),Ie&&(this._dataSubscription=Ie.pipe((0,U.R)(this._onDestroy)).subscribe(Rt=>this.renderNodeChanges(Rt)))}renderNodeChanges(Ie,Rt=this._dataDiffer,fe=this._nodeOutlet.viewContainer,Kt){const ue=Rt.diff(Ie);!ue||(ue.forEachOperation((ce,je,Te)=>{if(null==ce.previousIndex)this.insertNode(Ie[Te],Te,fe,Kt);else if(null==Te)fe.remove(je),this._levels.delete(ce.item);else{const Ye=fe.get(je);fe.move(Ye,Te)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(Ie,Rt){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(Kt=>Kt.when&&Kt.when(Rt,Ie))||this._defaultNodeDef}insertNode(Ie,Rt,fe,Kt){const ue=this._getNodeDef(Ie,Rt),ce=new rt(Ie);ce.level=this.treeControl.getLevel?this.treeControl.getLevel(Ie):typeof Kt<"u"&&this._levels.has(Kt)?this._levels.get(Kt)+1:0,this._levels.set(Ie,ce.level),(fe||this._nodeOutlet.viewContainer).createEmbeddedView(ue.template,ce,Rt),ht.mostRecentTreeNode&&(ht.mostRecentTreeNode.data=Ie)}}return Ze.\u0275fac=function(Ie){return new(Ie||Ze)(D.Y36(D.ZZ4),D.Y36(D.sBO))},Ze.\u0275cmp=D.Xpm({type:Ze,selectors:[["cdk-tree"]],contentQueries:function(Ie,Rt,fe){if(1&Ie&&D.Suo(fe,ft,5),2&Ie){let Kt;D.iGM(Kt=D.CRH())&&(Rt._nodeDefs=Kt)}},viewQuery:function(Ie,Rt){if(1&Ie&&D.Gf(at,7),2&Ie){let fe;D.iGM(fe=D.CRH())&&(Rt._nodeOutlet=fe.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(Ie,Rt){1&Ie&&D.GkF(0,0)},dependencies:[at],encapsulation:2}),Ze})(),ht=(()=>{class Ze{constructor(Ie,Rt){this._elementRef=Ie,this._tree=Rt,this._destroyed=new g.xQ,this._dataChanges=new g.xQ,Ze.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(Ie){this._elementRef.nativeElement.setAttribute("role",Ie)}get data(){return this._data}set data(Ie){Ie!==this._data&&(this._data=Ie,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function ut(Ze){let Oe=Ze.parentElement;for(;Oe&&!Mt(Oe);)Oe=Oe.parentElement;return Oe?Oe.classList.contains("cdk-nested-tree-node")?(0,k.su)(Oe.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){Ze.mostRecentTreeNode===this&&(Ze.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return Ze.mostRecentTreeNode=null,Ze.\u0275fac=function(Ie){return new(Ie||Ze)(D.Y36(D.SBq),D.Y36(xt))},Ze.\u0275dir=D.lG2({type:Ze,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(Ie,Rt){2&Ie&&D.uIk("aria-expanded",Rt.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),Ze})();function Mt(Ze){const Oe=Ze.classList;return!(!Oe?.contains("cdk-nested-tree-node")&&!Oe?.contains("cdk-tree"))}let It=(()=>{class Ze extends ht{constructor(Ie,Rt,fe){super(Ie,Rt),this._differs=fe}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const Ie=this._tree.treeControl.getChildren(this.data);Array.isArray(Ie)?this.updateChildrenNodes(Ie):(0,u.b)(Ie)&&Ie.pipe((0,U.R)(this._destroyed)).subscribe(Rt=>this.updateChildrenNodes(Rt)),this.nodeOutlet.changes.pipe((0,U.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(Ie){const Rt=this._getNodeOutlet();Ie&&(this._children=Ie),Rt&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,Rt.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const Ie=this._getNodeOutlet();Ie&&(Ie.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const Ie=this.nodeOutlet;return Ie&&Ie.find(Rt=>!Rt._node||Rt._node===this)}}return Ze.\u0275fac=function(Ie){return new(Ie||Ze)(D.Y36(D.SBq),D.Y36(xt),D.Y36(D.ZZ4))},Ze.\u0275dir=D.lG2({type:Ze,selectors:[["cdk-nested-tree-node"]],contentQueries:function(Ie,Rt,fe){if(1&Ie&&D.Suo(fe,at,5),2&Ie){let Kt;D.iGM(Kt=D.CRH())&&(Rt.nodeOutlet=Kt)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[D._Bn([{provide:ht,useExisting:Ze},{provide:X,useExisting:Ze}]),D.qOj]}),Ze})();const wt=/([A-Za-z%]+)$/;let ee=(()=>{class Ze{constructor(Ie,Rt,fe,Kt){this._treeNode=Ie,this._tree=Rt,this._element=fe,this._dir=Kt,this._destroyed=new g.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),Kt&&Kt.change.pipe((0,U.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),Ie._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(Ie){this._setLevelInput(Ie)}get indent(){return this._indent}set indent(Ie){this._setIndentInput(Ie)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const Ie=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,Rt=this._level??Ie;return"number"==typeof Rt?`${Rt*this._indent}${this.indentUnits}`:null}_setPadding(Ie=!1){const Rt=this._paddingIndent();if(Rt!==this._currentPadding||Ie){const fe=this._element.nativeElement,Kt=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",ue="paddingLeft"===Kt?"paddingRight":"paddingLeft";fe.style[Kt]=Rt||"",fe.style[ue]="",this._currentPadding=Rt}}_setLevelInput(Ie){this._level=(0,k.su)(Ie,null),this._setPadding()}_setIndentInput(Ie){let Rt=Ie,fe="px";if("string"==typeof Ie){const Kt=Ie.split(wt);Rt=Kt[0],fe=Kt[1]||fe}this.indentUnits=fe,this._indent=(0,k.su)(Rt),this._setPadding()}}return Ze.\u0275fac=function(Ie){return new(Ie||Ze)(D.Y36(ht),D.Y36(xt),D.Y36(D.SBq),D.Y36(O.Is,8))},Ze.\u0275dir=D.lG2({type:Ze,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),Ze})(),Ft=(()=>{class Ze{constructor(Ie,Rt){this._tree=Ie,this._treeNode=Rt,this._recursive=!1}get recursive(){return this._recursive}set recursive(Ie){this._recursive=(0,k.Ig)(Ie)}_toggle(Ie){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),Ie.stopPropagation()}}return Ze.\u0275fac=function(Ie){return new(Ie||Ze)(D.Y36(xt),D.Y36(ht))},Ze.\u0275dir=D.lG2({type:Ze,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(Ie,Rt){1&Ie&&D.NdJ("click",function(Kt){return Rt._toggle(Kt)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),Ze})(),pe=(()=>{class Ze{}return Ze.\u0275fac=function(Ie){return new(Ie||Ze)},Ze.\u0275mod=D.oAB({type:Ze}),Ze.\u0275inj=D.cJS({}),Ze})()},36895:(K,W,_)=>{"use strict";_.d(W,{Do:()=>qt,ED:()=>Gr,EM:()=>qa,H9:()=>Ec,HT:()=>t,JF:()=>mr,JJ:()=>Cc,K0:()=>T,Mx:()=>kn,NF:()=>Nc,Nd:()=>zs,O5:()=>ma,Ov:()=>ds,PC:()=>pr,PM:()=>Fa,RF:()=>Ds,S$:()=>rt,V_:()=>k,Ye:()=>Vt,b0:()=>Tt,bD:()=>jo,ez:()=>El,i8:()=>Hs,mk:()=>Zi,n9:()=>vc,q:()=>g,qS:()=>Le,rS:()=>Wr,sg:()=>oa,tP:()=>zr,uU:()=>ic,w_:()=>x});var l=_(94650);let u=null;function g(){return u}function t(At){u||(u=At)}class x{}const T=new l.OlP("DocumentToken");let U=(()=>{class At{historyGo(Et){throw new Error("Not implemented")}}return At.\u0275fac=function(Et){return new(Et||At)},At.\u0275prov=l.Yz7({token:At,factory:function(){return function D(){return(0,l.LFG)(O)}()},providedIn:"platform"}),At})();const k=new l.OlP("Location Initialized");let O=(()=>{class At extends U{constructor(Et){super(),this._doc=Et,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return g().getBaseHref(this._doc)}onPopState(Et){const Ne=g().getGlobalEventTarget(this._doc,"window");return Ne.addEventListener("popstate",Et,!1),()=>Ne.removeEventListener("popstate",Et)}onHashChange(Et){const Ne=g().getGlobalEventTarget(this._doc,"window");return Ne.addEventListener("hashchange",Et,!1),()=>Ne.removeEventListener("hashchange",Et)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(Et){this.location.pathname=Et}pushState(Et,Ne,Un){q()?this._history.pushState(Et,Ne,Un):this.location.hash=Un}replaceState(Et,Ne,Un){q()?this._history.replaceState(Et,Ne,Un):this.location.hash=Un}forward(){this._history.forward()}back(){this._history.back()}historyGo(Et=0){this._history.go(Et)}getState(){return this._history.state}}return At.\u0275fac=function(Et){return new(Et||At)(l.LFG(T))},At.\u0275prov=l.Yz7({token:At,factory:function(){return function Y(){return new O((0,l.LFG)(T))}()},providedIn:"platform"}),At})();function q(){return!!window.history.pushState}function $(At,ae){if(0==At.length)return ae;if(0==ae.length)return At;let Et=0;return At.endsWith("/")&&Et++,ae.startsWith("/")&&Et++,2==Et?At+ae.substring(1):1==Et?At+ae:At+"/"+ae}function X(At){const ae=At.match(/#|\?|$/),Et=ae&&ae.index||At.length;return At.slice(0,Et-("/"===At[Et-1]?1:0))+At.slice(Et)}function at(At){return At&&"?"!==At[0]?"?"+At:At}let rt=(()=>{class At{historyGo(Et){throw new Error("Not implemented")}}return At.\u0275fac=function(Et){return new(Et||At)},At.\u0275prov=l.Yz7({token:At,factory:function(){return(0,l.f3M)(Tt)},providedIn:"root"}),At})();const ft=new l.OlP("appBaseHref");let Tt=(()=>{class At extends rt{constructor(Et,Ne){super(),this._platformLocation=Et,this._removeListenerFns=[],this._baseHref=Ne??this._platformLocation.getBaseHrefFromDOM()??(0,l.f3M)(T).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Et){this._removeListenerFns.push(this._platformLocation.onPopState(Et),this._platformLocation.onHashChange(Et))}getBaseHref(){return this._baseHref}prepareExternalUrl(Et){return $(this._baseHref,Et)}path(Et=!1){const Ne=this._platformLocation.pathname+at(this._platformLocation.search),Un=this._platformLocation.hash;return Un&&Et?`${Ne}${Un}`:Ne}pushState(Et,Ne,Un,Ut){const oe=this.prepareExternalUrl(Un+at(Ut));this._platformLocation.pushState(Et,Ne,oe)}replaceState(Et,Ne,Un,Ut){const oe=this.prepareExternalUrl(Un+at(Ut));this._platformLocation.replaceState(Et,Ne,oe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Et=0){this._platformLocation.historyGo?.(Et)}}return At.\u0275fac=function(Et){return new(Et||At)(l.LFG(U),l.LFG(ft,8))},At.\u0275prov=l.Yz7({token:At,factory:At.\u0275fac,providedIn:"root"}),At})(),qt=(()=>{class At extends rt{constructor(Et,Ne){super(),this._platformLocation=Et,this._baseHref="",this._removeListenerFns=[],null!=Ne&&(this._baseHref=Ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Et){this._removeListenerFns.push(this._platformLocation.onPopState(Et),this._platformLocation.onHashChange(Et))}getBaseHref(){return this._baseHref}path(Et=!1){let Ne=this._platformLocation.hash;return null==Ne&&(Ne="#"),Ne.length>0?Ne.substring(1):Ne}prepareExternalUrl(Et){const Ne=$(this._baseHref,Et);return Ne.length>0?"#"+Ne:Ne}pushState(Et,Ne,Un,Ut){let oe=this.prepareExternalUrl(Un+at(Ut));0==oe.length&&(oe=this._platformLocation.pathname),this._platformLocation.pushState(Et,Ne,oe)}replaceState(Et,Ne,Un,Ut){let oe=this.prepareExternalUrl(Un+at(Ut));0==oe.length&&(oe=this._platformLocation.pathname),this._platformLocation.replaceState(Et,Ne,oe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Et=0){this._platformLocation.historyGo?.(Et)}}return At.\u0275fac=function(Et){return new(Et||At)(l.LFG(U),l.LFG(ft,8))},At.\u0275prov=l.Yz7({token:At,factory:At.\u0275fac}),At})(),Vt=(()=>{class At{constructor(Et){this._subject=new l.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Et;const Ne=this._locationStrategy.getBaseHref();this._baseHref=X(xt(Ne)),this._locationStrategy.onPopState(Un=>{this._subject.emit({url:this.path(!0),pop:!0,state:Un.state,type:Un.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Et=!1){return this.normalize(this._locationStrategy.path(Et))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Et,Ne=""){return this.path()==this.normalize(Et+at(Ne))}normalize(Et){return At.stripTrailingSlash(function bt(At,ae){return At&&ae.startsWith(At)?ae.substring(At.length):ae}(this._baseHref,xt(Et)))}prepareExternalUrl(Et){return Et&&"/"!==Et[0]&&(Et="/"+Et),this._locationStrategy.prepareExternalUrl(Et)}go(Et,Ne="",Un=null){this._locationStrategy.pushState(Un,"",Et,Ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(Et+at(Ne)),Un)}replaceState(Et,Ne="",Un=null){this._locationStrategy.replaceState(Un,"",Et,Ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(Et+at(Ne)),Un)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Et=0){this._locationStrategy.historyGo?.(Et)}onUrlChange(Et){return this._urlChangeListeners.push(Et),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ne=>{this._notifyUrlChangeListeners(Ne.url,Ne.state)})),()=>{const Ne=this._urlChangeListeners.indexOf(Et);this._urlChangeListeners.splice(Ne,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Et="",Ne){this._urlChangeListeners.forEach(Un=>Un(Et,Ne))}subscribe(Et,Ne,Un){return this._subject.subscribe({next:Et,error:Ne,complete:Un})}}return At.normalizeQueryParams=at,At.joinWithSlash=$,At.stripTrailingSlash=X,At.\u0275fac=function(Et){return new(Et||At)(l.LFG(rt))},At.\u0275prov=l.Yz7({token:At,factory:function(){return function Bt(){return new Vt((0,l.LFG)(rt))}()},providedIn:"root"}),At})();function xt(At){return At.replace(/\/index.html$/,"")}const ht={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var ut=(()=>((ut=ut||{})[ut.Decimal=0]="Decimal",ut[ut.Percent=1]="Percent",ut[ut.Currency=2]="Currency",ut[ut.Scientific=3]="Scientific",ut))(),It=(()=>((It=It||{})[It.Format=0]="Format",It[It.Standalone=1]="Standalone",It))(),wt=(()=>((wt=wt||{})[wt.Narrow=0]="Narrow",wt[wt.Abbreviated=1]="Abbreviated",wt[wt.Wide=2]="Wide",wt[wt.Short=3]="Short",wt))(),ee=(()=>((ee=ee||{})[ee.Short=0]="Short",ee[ee.Medium=1]="Medium",ee[ee.Long=2]="Long",ee[ee.Full=3]="Full",ee))(),Ft=(()=>((Ft=Ft||{})[Ft.Decimal=0]="Decimal",Ft[Ft.Group=1]="Group",Ft[Ft.List=2]="List",Ft[Ft.PercentSign=3]="PercentSign",Ft[Ft.PlusSign=4]="PlusSign",Ft[Ft.MinusSign=5]="MinusSign",Ft[Ft.Exponential=6]="Exponential",Ft[Ft.SuperscriptingExponent=7]="SuperscriptingExponent",Ft[Ft.PerMille=8]="PerMille",Ft[Ft.Infinity=9]="Infinity",Ft[Ft.NaN=10]="NaN",Ft[Ft.TimeSeparator=11]="TimeSeparator",Ft[Ft.CurrencyDecimal=12]="CurrencyDecimal",Ft[Ft.CurrencyGroup=13]="CurrencyGroup",Ft))();function ue(At,ae){return Vn((0,l.cg1)(At)[l.wAp.DateFormat],ae)}function ce(At,ae){return Vn((0,l.cg1)(At)[l.wAp.TimeFormat],ae)}function je(At,ae){return Vn((0,l.cg1)(At)[l.wAp.DateTimeFormat],ae)}function Te(At,ae){const Et=(0,l.cg1)(At),Ne=Et[l.wAp.NumberSymbols][ae];if(typeof Ne>"u"){if(ae===Ft.CurrencyDecimal)return Et[l.wAp.NumberSymbols][Ft.Decimal];if(ae===Ft.CurrencyGroup)return Et[l.wAp.NumberSymbols][Ft.Group]}return Ne}function Ye(At,ae){return(0,l.cg1)(At)[l.wAp.NumberFormats][ae]}function _n(At){if(!At[l.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${At[l.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Vn(At,ae){for(let Et=ae;Et>-1;Et--)if(typeof At[Et]<"u")return At[Et];throw new Error("Locale data API: locale data undefined")}function ze(At){const[ae,Et]=At.split(":");return{hours:+ae,minutes:+Et}}const Q=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ct={},Yt=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ie=(()=>((ie=ie||{})[ie.Short=0]="Short",ie[ie.ShortGMT=1]="ShortGMT",ie[ie.Long=2]="Long",ie[ie.Extended=3]="Extended",ie))(),re=(()=>((re=re||{})[re.FullYear=0]="FullYear",re[re.Month=1]="Month",re[re.Date=2]="Date",re[re.Hours=3]="Hours",re[re.Minutes=4]="Minutes",re[re.Seconds=5]="Seconds",re[re.FractionalSeconds=6]="FractionalSeconds",re[re.Day=7]="Day",re))(),tn=(()=>((tn=tn||{})[tn.DayPeriods=0]="DayPeriods",tn[tn.Days=1]="Days",tn[tn.Months=2]="Months",tn[tn.Eras=3]="Eras",tn))();function Cn(At,ae,Et,Ne){let Un=function ve(At){if(yn(At))return At;if("number"==typeof At&&!isNaN(At))return new Date(At);if("string"==typeof At){if(At=At.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(At)){const[Un,Ut=1,oe=1]=At.split("-").map(he=>+he);return Yn(Un,Ut-1,oe)}const Et=parseFloat(At);if(!isNaN(At-Et))return new Date(Et);let Ne;if(Ne=At.match(Q))return function Se(At){const ae=new Date(0);let Et=0,Ne=0;const Un=At[8]?ae.setUTCFullYear:ae.setFullYear,Ut=At[8]?ae.setUTCHours:ae.setHours;At[9]&&(Et=Number(At[9]+At[10]),Ne=Number(At[9]+At[11])),Un.call(ae,Number(At[1]),Number(At[2])-1,Number(At[3]));const oe=Number(At[4]||0)-Et,he=Number(At[5]||0)-Ne,Je=Number(At[6]||0),mn=Math.floor(1e3*parseFloat("0."+(At[7]||0)));return Ut.call(ae,oe,he,Je,mn),ae}(Ne)}const ae=new Date(At);if(!yn(ae))throw new Error(`Unable to convert "${At}" into a date`);return ae}(At);ae=fi(Et,ae)||ae;let he,oe=[];for(;ae;){if(he=Yt.exec(ae),!he){oe.push(ae);break}{oe=oe.concat(he.slice(1));const En=oe.pop();if(!En)break;ae=En}}let Je=Un.getTimezoneOffset();Ne&&(Je=kt(Ne,Je),Un=function Nt(At,ae,Et){const Ne=Et?-1:1,Un=At.getTimezoneOffset();return function ye(At,ae){return(At=new Date(At.getTime())).setMinutes(At.getMinutes()+ae),At}(At,Ne*(kt(ae,Un)-Un))}(Un,Ne,!0));let mn="";return oe.forEach(En=>{const Nn=function me(At){if(Xe[At])return Xe[At];let ae;switch(At){case"G":case"GG":case"GGG":ae=cn(tn.Eras,wt.Abbreviated);break;case"GGGG":ae=cn(tn.Eras,wt.Wide);break;case"GGGGG":ae=cn(tn.Eras,wt.Narrow);break;case"y":ae=On(re.FullYear,1,0,!1,!0);break;case"yy":ae=On(re.FullYear,2,0,!0,!0);break;case"yyy":ae=On(re.FullYear,3,0,!1,!0);break;case"yyyy":ae=On(re.FullYear,4,0,!1,!0);break;case"Y":ae=sn(1);break;case"YY":ae=sn(2,!0);break;case"YYY":ae=sn(3);break;case"YYYY":ae=sn(4);break;case"M":case"L":ae=On(re.Month,1,1);break;case"MM":case"LL":ae=On(re.Month,2,1);break;case"MMM":ae=cn(tn.Months,wt.Abbreviated);break;case"MMMM":ae=cn(tn.Months,wt.Wide);break;case"MMMMM":ae=cn(tn.Months,wt.Narrow);break;case"LLL":ae=cn(tn.Months,wt.Abbreviated,It.Standalone);break;case"LLLL":ae=cn(tn.Months,wt.Wide,It.Standalone);break;case"LLLLL":ae=cn(tn.Months,wt.Narrow,It.Standalone);break;case"w":ae=$e(1);break;case"ww":ae=$e(2);break;case"W":ae=$e(1,!0);break;case"d":ae=On(re.Date,1);break;case"dd":ae=On(re.Date,2);break;case"c":case"cc":ae=On(re.Day,1);break;case"ccc":ae=cn(tn.Days,wt.Abbreviated,It.Standalone);break;case"cccc":ae=cn(tn.Days,wt.Wide,It.Standalone);break;case"ccccc":ae=cn(tn.Days,wt.Narrow,It.Standalone);break;case"cccccc":ae=cn(tn.Days,wt.Short,It.Standalone);break;case"E":case"EE":case"EEE":ae=cn(tn.Days,wt.Abbreviated);break;case"EEEE":ae=cn(tn.Days,wt.Wide);break;case"EEEEE":ae=cn(tn.Days,wt.Narrow);break;case"EEEEEE":ae=cn(tn.Days,wt.Short);break;case"a":case"aa":case"aaa":ae=cn(tn.DayPeriods,wt.Abbreviated);break;case"aaaa":ae=cn(tn.DayPeriods,wt.Wide);break;case"aaaaa":ae=cn(tn.DayPeriods,wt.Narrow);break;case"b":case"bb":case"bbb":ae=cn(tn.DayPeriods,wt.Abbreviated,It.Standalone,!0);break;case"bbbb":ae=cn(tn.DayPeriods,wt.Wide,It.Standalone,!0);break;case"bbbbb":ae=cn(tn.DayPeriods,wt.Narrow,It.Standalone,!0);break;case"B":case"BB":case"BBB":ae=cn(tn.DayPeriods,wt.Abbreviated,It.Format,!0);break;case"BBBB":ae=cn(tn.DayPeriods,wt.Wide,It.Format,!0);break;case"BBBBB":ae=cn(tn.DayPeriods,wt.Narrow,It.Format,!0);break;case"h":ae=On(re.Hours,1,-12);break;case"hh":ae=On(re.Hours,2,-12);break;case"H":ae=On(re.Hours,1);break;case"HH":ae=On(re.Hours,2);break;case"m":ae=On(re.Minutes,1);break;case"mm":ae=On(re.Minutes,2);break;case"s":ae=On(re.Seconds,1);break;case"ss":ae=On(re.Seconds,2);break;case"S":ae=On(re.FractionalSeconds,1);break;case"SS":ae=On(re.FractionalSeconds,2);break;case"SSS":ae=On(re.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ae=we(ie.Short);break;case"ZZZZZ":ae=we(ie.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ae=we(ie.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ae=we(ie.Long);break;default:return null}return Xe[At]=ae,ae}(En);mn+=Nn?Nn(Un,Et,Je):"''"===En?"'":En.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),mn}function Yn(At,ae,Et){const Ne=new Date(0);return Ne.setFullYear(At,ae,Et),Ne.setHours(0,0,0),Ne}function fi(At,ae){const Et=function pe(At){return(0,l.cg1)(At)[l.wAp.LocaleId]}(At);if(Ct[Et]=Ct[Et]||{},Ct[Et][ae])return Ct[Et][ae];let Ne="";switch(ae){case"shortDate":Ne=ue(At,ee.Short);break;case"mediumDate":Ne=ue(At,ee.Medium);break;case"longDate":Ne=ue(At,ee.Long);break;case"fullDate":Ne=ue(At,ee.Full);break;case"shortTime":Ne=ce(At,ee.Short);break;case"mediumTime":Ne=ce(At,ee.Medium);break;case"longTime":Ne=ce(At,ee.Long);break;case"fullTime":Ne=ce(At,ee.Full);break;case"short":const Un=fi(At,"shortTime"),Ut=fi(At,"shortDate");Ne=Fi(je(At,ee.Short),[Un,Ut]);break;case"medium":const oe=fi(At,"mediumTime"),he=fi(At,"mediumDate");Ne=Fi(je(At,ee.Medium),[oe,he]);break;case"long":const Je=fi(At,"longTime"),mn=fi(At,"longDate");Ne=Fi(je(At,ee.Long),[Je,mn]);break;case"full":const En=fi(At,"fullTime"),Nn=fi(At,"fullDate");Ne=Fi(je(At,ee.Full),[En,Nn])}return Ne&&(Ct[Et][ae]=Ne),Ne}function Fi(At,ae){return ae&&(At=At.replace(/\{([^}]+)}/g,function(Et,Ne){return null!=ae&&Ne in ae?ae[Ne]:Et})),At}function Bn(At,ae,Et="-",Ne,Un){let Ut="";(At<0||Un&&At<=0)&&(Un?At=1-At:(At=-At,Ut=Et));let oe=String(At);for(;oe.length0||he>-Et)&&(he+=Et),At===re.Hours)0===he&&-12===Et&&(he=12);else if(At===re.FractionalSeconds)return function Sn(At,ae){return Bn(At,3).substring(0,ae)}(he,ae);const Je=Te(oe,Ft.MinusSign);return Bn(he,ae,Je,Ne,Un)}}function cn(At,ae,Et=It.Format,Ne=!1){return function(Un,Ut){return function qe(At,ae,Et,Ne,Un,Ut){switch(Et){case tn.Months:return function Ie(At,ae,Et){const Ne=(0,l.cg1)(At),Ut=Vn([Ne[l.wAp.MonthsFormat],Ne[l.wAp.MonthsStandalone]],ae);return Vn(Ut,Et)}(ae,Un,Ne)[At.getMonth()];case tn.Days:return function Oe(At,ae,Et){const Ne=(0,l.cg1)(At),Ut=Vn([Ne[l.wAp.DaysFormat],Ne[l.wAp.DaysStandalone]],ae);return Vn(Ut,Et)}(ae,Un,Ne)[At.getDay()];case tn.DayPeriods:const oe=At.getHours(),he=At.getMinutes();if(Ut){const mn=function Kn(At){const ae=(0,l.cg1)(At);return _n(ae),(ae[l.wAp.ExtraData][2]||[]).map(Ne=>"string"==typeof Ne?ze(Ne):[ze(Ne[0]),ze(Ne[1])])}(ae),En=function si(At,ae,Et){const Ne=(0,l.cg1)(At);_n(Ne);const Ut=Vn([Ne[l.wAp.ExtraData][0],Ne[l.wAp.ExtraData][1]],ae)||[];return Vn(Ut,Et)||[]}(ae,Un,Ne),Nn=mn.findIndex(ti=>{if(Array.isArray(ti)){const[ii,Ri]=ti,jn=oe>=ii.hours&&he>=ii.minutes,vi=oe0?Math.floor(Un/60):Math.ceil(Un/60);switch(At){case ie.Short:return(Un>=0?"+":"")+Bn(oe,2,Ut)+Bn(Math.abs(Un%60),2,Ut);case ie.ShortGMT:return"GMT"+(Un>=0?"+":"")+Bn(oe,1,Ut);case ie.Long:return"GMT"+(Un>=0?"+":"")+Bn(oe,2,Ut)+":"+Bn(Math.abs(Un%60),2,Ut);case ie.Extended:return 0===Ne?"Z":(Un>=0?"+":"")+Bn(oe,2,Ut)+":"+Bn(Math.abs(Un%60),2,Ut);default:throw new Error(`Unknown zone width "${At}"`)}}}function $t(At){return Yn(At.getFullYear(),At.getMonth(),At.getDate()+(4-At.getDay()))}function $e(At,ae=!1){return function(Et,Ne){let Un;if(ae){const Ut=new Date(Et.getFullYear(),Et.getMonth(),1).getDay()-1,oe=Et.getDate();Un=1+Math.floor((oe+Ut)/7)}else{const Ut=$t(Et),oe=function Ee(At){const ae=Yn(At,0,1).getDay();return Yn(At,0,1+(ae<=4?4:11)-ae)}(Ut.getFullYear()),he=Ut.getTime()-oe.getTime();Un=1+Math.round(he/6048e5)}return Bn(Un,At,Te(Ne,Ft.MinusSign))}}function sn(At,ae=!1){return function(Et,Ne){return Bn($t(Et).getFullYear(),At,Te(Ne,Ft.MinusSign),ae)}}const Xe={};function kt(At,ae){At=At.replace(/:/g,"");const Et=Date.parse("Jan 01, 1970 00:00:00 "+At)/6e4;return isNaN(Et)?ae:Et}function yn(At){return At instanceof Date&&!isNaN(At.valueOf())}const pi=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Ji(At,ae,Et,Ne,Un,Ut,oe=!1){let he="",Je=!1;if(isFinite(At)){let mn=function Ce(At){let Ne,Un,Ut,oe,he,ae=Math.abs(At)+"",Et=0;for((Un=ae.indexOf("."))>-1&&(ae=ae.replace(".","")),(Ut=ae.search(/e/i))>0?(Un<0&&(Un=Ut),Un+=+ae.slice(Ut+1),ae=ae.substring(0,Ut)):Un<0&&(Un=ae.length),Ut=0;"0"===ae.charAt(Ut);Ut++);if(Ut===(he=ae.length))Ne=[0],Un=1;else{for(he--;"0"===ae.charAt(he);)he--;for(Un-=Ut,Ne=[],oe=0;Ut<=he;Ut++,oe++)Ne[oe]=Number(ae.charAt(Ut))}return Un>22&&(Ne=Ne.splice(0,21),Et=Un-1,Un=1),{digits:Ne,exponent:Et,integerLen:Un}}(At);oe&&(mn=function ke(At){if(0===At.digits[0])return At;const ae=At.digits.length-At.integerLen;return At.exponent?At.exponent+=2:(0===ae?At.digits.push(0,0):1===ae&&At.digits.push(0),At.integerLen+=2),At}(mn));let En=ae.minInt,Nn=ae.minFrac,ti=ae.maxFrac;if(Ut){const po=Ut.match(pi);if(null===po)throw new Error(`${Ut} is not a valid digit info`);const Do=po[1],er=po[3],br=po[5];null!=Do&&(En=G(Do)),null!=er&&(Nn=G(er)),null!=br?ti=G(br):null!=er&&Nn>ti&&(ti=Nn)}!function We(At,ae,Et){if(ae>Et)throw new Error(`The minimum number of digits after fraction (${ae}) is higher than the maximum (${Et}).`);let Ne=At.digits,Un=Ne.length-At.integerLen;const Ut=Math.min(Math.max(ae,Un),Et);let oe=Ut+At.integerLen,he=Ne[oe];if(oe>0){Ne.splice(Math.max(At.integerLen,oe));for(let Nn=oe;Nn=5)if(oe-1<0){for(let Nn=0;Nn>oe;Nn--)Ne.unshift(0),At.integerLen++;Ne.unshift(1),At.integerLen++}else Ne[oe-1]++;for(;Un=mn?Ri.pop():Je=!1),ti>=10?1:0},0);En&&(Ne.unshift(En),At.integerLen++)}(mn,Nn,ti);let ii=mn.digits,Ri=mn.integerLen;const jn=mn.exponent;let vi=[];for(Je=ii.every(po=>!po);Ri0?vi=ii.splice(Ri,ii.length):(vi=ii,ii=[0]);const yo=[];for(ii.length>=ae.lgSize&&yo.unshift(ii.splice(-ae.lgSize,ii.length).join(""));ii.length>ae.gSize;)yo.unshift(ii.splice(-ae.gSize,ii.length).join(""));ii.length&&yo.unshift(ii.join("")),he=yo.join(Te(Et,Ne)),vi.length&&(he+=Te(Et,Un)+vi.join("")),jn&&(he+=Te(Et,Ft.Exponential)+"+"+jn)}else he=Te(Et,Ft.Infinity);return he=At<0&&!Je?ae.negPre+he+ae.negSuf:ae.posPre+he+ae.posSuf,he}function wn(At,ae="-"){const Et={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ne=At.split(";"),Un=Ne[0],Ut=Ne[1],oe=-1!==Un.indexOf(".")?Un.split("."):[Un.substring(0,Un.lastIndexOf("0")+1),Un.substring(Un.lastIndexOf("0")+1)],he=oe[0],Je=oe[1]||"";Et.posPre=he.substring(0,he.indexOf("#"));for(let En=0;En{class At{constructor(Et,Ne,Un,Ut){this._iterableDiffers=Et,this._keyValueDiffers=Ne,this._ngEl=Un,this._renderer=Ut,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Et){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Et?Et.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Et){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Et?Et.split(/\s+/):Et,this._rawClass&&((0,l.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Et=this._iterableDiffer.diff(this._rawClass);Et&&this._applyIterableChanges(Et)}else if(this._keyValueDiffer){const Et=this._keyValueDiffer.diff(this._rawClass);Et&&this._applyKeyValueChanges(Et)}}_applyKeyValueChanges(Et){Et.forEachAddedItem(Ne=>this._toggleClass(Ne.key,Ne.currentValue)),Et.forEachChangedItem(Ne=>this._toggleClass(Ne.key,Ne.currentValue)),Et.forEachRemovedItem(Ne=>{Ne.previousValue&&this._toggleClass(Ne.key,!1)})}_applyIterableChanges(Et){Et.forEachAddedItem(Ne=>{if("string"!=typeof Ne.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,l.AaK)(Ne.item)}`);this._toggleClass(Ne.item,!0)}),Et.forEachRemovedItem(Ne=>this._toggleClass(Ne.item,!1))}_applyClasses(Et){Et&&(Array.isArray(Et)||Et instanceof Set?Et.forEach(Ne=>this._toggleClass(Ne,!0)):Object.keys(Et).forEach(Ne=>this._toggleClass(Ne,!!Et[Ne])))}_removeClasses(Et){Et&&(Array.isArray(Et)||Et instanceof Set?Et.forEach(Ne=>this._toggleClass(Ne,!1)):Object.keys(Et).forEach(Ne=>this._toggleClass(Ne,!1)))}_toggleClass(Et,Ne){(Et=Et.trim())&&Et.split(/\s+/g).forEach(Un=>{Ne?this._renderer.addClass(this._ngEl.nativeElement,Un):this._renderer.removeClass(this._ngEl.nativeElement,Un)})}}return At.\u0275fac=function(Et){return new(Et||At)(l.Y36(l.ZZ4),l.Y36(l.aQg),l.Y36(l.SBq),l.Y36(l.Qsj))},At.\u0275dir=l.lG2({type:At,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),At})();class Xa{constructor(ae,Et,Ne,Un){this.$implicit=ae,this.ngForOf=Et,this.index=Ne,this.count=Un}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let oa=(()=>{class At{constructor(Et,Ne,Un){this._viewContainer=Et,this._template=Ne,this._differs=Un,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Et){this._ngForOf=Et,this._ngForOfDirty=!0}set ngForTrackBy(Et){this._trackByFn=Et}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Et){Et&&(this._template=Et)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Et=this._ngForOf;!this._differ&&Et&&(this._differ=this._differs.find(Et).create(this.ngForTrackBy))}if(this._differ){const Et=this._differ.diff(this._ngForOf);Et&&this._applyChanges(Et)}}_applyChanges(Et){const Ne=this._viewContainer;Et.forEachOperation((Un,Ut,oe)=>{if(null==Un.previousIndex)Ne.createEmbeddedView(this._template,new Xa(Un.item,this._ngForOf,-1,-1),null===oe?void 0:oe);else if(null==oe)Ne.remove(null===Ut?void 0:Ut);else if(null!==Ut){const he=Ne.get(Ut);Ne.move(he,oe),Ja(he,Un)}});for(let Un=0,Ut=Ne.length;Un{Ja(Ne.get(Un.currentIndex),Un)})}static ngTemplateContextGuard(Et,Ne){return!0}}return At.\u0275fac=function(Et){return new(Et||At)(l.Y36(l.s_b),l.Y36(l.Rgc),l.Y36(l.ZZ4))},At.\u0275dir=l.lG2({type:At,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),At})();function Ja(At,ae){At.context.$implicit=ae.item}let ma=(()=>{class At{constructor(Et,Ne){this._viewContainer=Et,this._context=new dr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ne}set ngIf(Et){this._context.$implicit=this._context.ngIf=Et,this._updateView()}set ngIfThen(Et){Oa("ngIfThen",Et),this._thenTemplateRef=Et,this._thenViewRef=null,this._updateView()}set ngIfElse(Et){Oa("ngIfElse",Et),this._elseTemplateRef=Et,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(Et,Ne){return!0}}return At.\u0275fac=function(Et){return new(Et||At)(l.Y36(l.s_b),l.Y36(l.Rgc))},At.\u0275dir=l.lG2({type:At,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),At})();class dr{constructor(){this.$implicit=null,this.ngIf=null}}function Oa(At,ae){if(ae&&!ae.createEmbeddedView)throw new Error(`${At} must be a TemplateRef, but received '${(0,l.AaK)(ae)}'.`)}class La{constructor(ae,Et){this._viewContainerRef=ae,this._templateRef=Et,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ae){ae&&!this._created?this.create():!ae&&this._created&&this.destroy()}}let Ds=(()=>{class At{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Et){this._ngSwitch=Et,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Et){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Et)}_matchCase(Et){const Ne=Et==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ne}_updateDefaultCases(Et){if(this._defaultViews&&Et!==this._defaultUsed){this._defaultUsed=Et;for(let Ne=0;Ne{class At{constructor(Et,Ne,Un){this.ngSwitch=Un,Un._addCase(),this._view=new La(Et,Ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return At.\u0275fac=function(Et){return new(Et||At)(l.Y36(l.s_b),l.Y36(l.Rgc),l.Y36(Ds,9))},At.\u0275dir=l.lG2({type:At,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),At})(),Gr=(()=>{class At{constructor(Et,Ne,Un){Un._addDefault(new La(Et,Ne))}}return At.\u0275fac=function(Et){return new(Et||At)(l.Y36(l.s_b),l.Y36(l.Rgc),l.Y36(Ds,9))},At.\u0275dir=l.lG2({type:At,selectors:[["","ngSwitchDefault",""]],standalone:!0}),At})(),pr=(()=>{class At{constructor(Et,Ne,Un){this._ngEl=Et,this._differs=Ne,this._renderer=Un,this._ngStyle=null,this._differ=null}set ngStyle(Et){this._ngStyle=Et,!this._differ&&Et&&(this._differ=this._differs.find(Et).create())}ngDoCheck(){if(this._differ){const Et=this._differ.diff(this._ngStyle);Et&&this._applyChanges(Et)}}_setStyle(Et,Ne){const[Un,Ut]=Et.split("."),oe=-1===Un.indexOf("-")?void 0:l.JOm.DashCase;null!=Ne?this._renderer.setStyle(this._ngEl.nativeElement,Un,Ut?`${Ne}${Ut}`:Ne,oe):this._renderer.removeStyle(this._ngEl.nativeElement,Un,oe)}_applyChanges(Et){Et.forEachRemovedItem(Ne=>this._setStyle(Ne.key,null)),Et.forEachAddedItem(Ne=>this._setStyle(Ne.key,Ne.currentValue)),Et.forEachChangedItem(Ne=>this._setStyle(Ne.key,Ne.currentValue))}}return At.\u0275fac=function(Et){return new(Et||At)(l.Y36(l.SBq),l.Y36(l.aQg),l.Y36(l.Qsj))},At.\u0275dir=l.lG2({type:At,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),At})(),zr=(()=>{class At{constructor(Et){this._viewContainerRef=Et,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Et){if(Et.ngTemplateOutlet||Et.ngTemplateOutletInjector){const Ne=this._viewContainerRef;if(this._viewRef&&Ne.remove(Ne.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Un,ngTemplateOutletContext:Ut,ngTemplateOutletInjector:oe}=this;this._viewRef=Ne.createEmbeddedView(Un,Ut,oe?{injector:oe}:void 0)}else this._viewRef=null}else this._viewRef&&Et.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return At.\u0275fac=function(Et){return new(Et||At)(l.Y36(l.s_b))},At.\u0275dir=l.lG2({type:At,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[l.TTD]}),At})();function Ia(At,ae){return new l.vHH(2100,!1)}class au{createSubscription(ae,Et){return ae.subscribe({next:Et,error:Ne=>{throw Ne}})}dispose(ae){ae.unsubscribe()}}class ku{createSubscription(ae,Et){return ae.then(Et,Ne=>{throw Ne})}dispose(ae){}}const Rs=new ku,us=new au;let ds=(()=>{class At{constructor(Et){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Et}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Et){return this._obj?Et!==this._obj?(this._dispose(),this.transform(Et)):this._latestValue:(Et&&this._subscribe(Et),this._latestValue)}_subscribe(Et){this._obj=Et,this._strategy=this._selectStrategy(Et),this._subscription=this._strategy.createSubscription(Et,Ne=>this._updateLatestValue(Et,Ne))}_selectStrategy(Et){if((0,l.QGY)(Et))return Rs;if((0,l.F4k)(Et))return us;throw Ia()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Et,Ne){Et===this._obj&&(this._latestValue=Ne,this._ref.markForCheck())}}return At.\u0275fac=function(Et){return new(Et||At)(l.Y36(l.sBO,16))},At.\u0275pipe=l.Yjl({name:"async",type:At,pure:!1,standalone:!0}),At})(),Hs=(()=>{class At{transform(Et){if(null==Et)return null;if("string"!=typeof Et)throw Ia();return Et.toLowerCase()}}return At.\u0275fac=function(Et){return new(Et||At)},At.\u0275pipe=l.Yjl({name:"lowercase",type:At,pure:!0,standalone:!0}),At})();const Ys=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Wr=(()=>{class At{transform(Et){if(null==Et)return null;if("string"!=typeof Et)throw Ia();return Et.replace(Ys,Ne=>Ne[0].toUpperCase()+Ne.slice(1).toLowerCase())}}return At.\u0275fac=function(Et){return new(Et||At)},At.\u0275pipe=l.Yjl({name:"titlecase",type:At,pure:!0,standalone:!0}),At})();const $r=new l.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let ic=(()=>{class At{constructor(Et,Ne){this.locale=Et,this.defaultTimezone=Ne}transform(Et,Ne="mediumDate",Un,Ut){if(null==Et||""===Et||Et!=Et)return null;try{return Cn(Et,Ne,Ut||this.locale,Un??this.defaultTimezone??void 0)}catch(oe){throw Ia()}}}return At.\u0275fac=function(Et){return new(Et||At)(l.Y36(l.soG,16),l.Y36($r,24))},At.\u0275pipe=l.Yjl({name:"date",type:At,pure:!0,standalone:!0}),At})(),zs=(()=>{class At{constructor(Et){this.differs=Et,this.keyValues=[],this.compareFn=Kr}transform(Et,Ne=Kr){if(!Et||!(Et instanceof Map)&&"object"!=typeof Et)return null;this.differ||(this.differ=this.differs.find(Et).create());const Un=this.differ.diff(Et),Ut=Ne!==this.compareFn;return Un&&(this.keyValues=[],Un.forEachItem(oe=>{this.keyValues.push(function Vr(At,ae){return{key:At,value:ae}}(oe.key,oe.currentValue))})),(Un||Ut)&&(this.keyValues.sort(Ne),this.compareFn=Ne),this.keyValues}}return At.\u0275fac=function(Et){return new(Et||At)(l.Y36(l.aQg,16))},At.\u0275pipe=l.Yjl({name:"keyvalue",type:At,pure:!1,standalone:!0}),At})();function Kr(At,ae){const Et=At.key,Ne=ae.key;if(Et===Ne)return 0;if(void 0===Et)return 1;if(void 0===Ne)return-1;if(null===Et)return 1;if(null===Ne)return-1;if("string"==typeof Et&&"string"==typeof Ne)return Et{class At{constructor(Et){this._locale=Et}transform(Et,Ne,Un){if(!So(Et))return null;Un=Un||this._locale;try{return function Pe(At,ae,Et){return Ji(At,wn(Ye(ae,ut.Decimal),Te(ae,Ft.MinusSign)),ae,Ft.Group,Ft.Decimal,Et)}(_a(Et),Un,Ne)}catch(Ut){throw Ia()}}}return At.\u0275fac=function(Et){return new(Et||At)(l.Y36(l.soG,16))},At.\u0275pipe=l.Yjl({name:"number",type:At,pure:!0,standalone:!0}),At})(),Ec=(()=>{class At{constructor(Et,Ne="USD"){this._locale=Et,this._defaultCurrencyCode=Ne}transform(Et,Ne=this._defaultCurrencyCode,Un="symbol",Ut,oe){if(!So(Et))return null;oe=oe||this._locale,"boolean"==typeof Un&&(Un=Un?"symbol":"code");let he=Ne||this._defaultCurrencyCode;"code"!==Un&&(he="symbol"===Un||"symbol-narrow"===Un?function Wt(At,ae,Et="en"){const Ne=function hn(At){return(0,l.cg1)(At)[l.wAp.Currencies]}(Et)[At]||ht[At]||[],Un=Ne[1];return"narrow"===ae&&"string"==typeof Un?Un:Ne[0]||At}(he,"symbol"===Un?"wide":"narrow",oe):Un);try{return function Uo(At,ae,Et,Ne,Un){const oe=wn(Ye(ae,ut.Currency),Te(ae,Ft.MinusSign));return oe.minFrac=function j(At){let ae;const Et=ht[At];return Et&&(ae=Et[2]),"number"==typeof ae?ae:2}(Ne),oe.maxFrac=oe.minFrac,Ji(At,oe,ae,Ft.CurrencyGroup,Ft.CurrencyDecimal,Un).replace("\xa4",Et).replace("\xa4","").trim()}(_a(Et),oe,he,Ne,Ut)}catch(Je){throw Ia()}}}return At.\u0275fac=function(Et){return new(Et||At)(l.Y36(l.soG,16),l.Y36(l.EJc,16))},At.\u0275pipe=l.Yjl({name:"currency",type:At,pure:!0,standalone:!0}),At})();function So(At){return!(null==At||""===At||At!=At)}function _a(At){if("string"==typeof At&&!isNaN(Number(At)-parseFloat(At)))return Number(At);if("number"!=typeof At)throw new Error(`${At} is not a number`);return At}let El=(()=>{class At{}return At.\u0275fac=function(Et){return new(Et||At)},At.\u0275mod=l.oAB({type:At}),At.\u0275inj=l.cJS({}),At})();const jo="browser";function Nc(At){return At===jo}function Fa(At){return"server"===At}let qa=(()=>{class At{}return At.\u0275prov=(0,l.Yz7)({token:At,providedIn:"root",factory:()=>new Pa((0,l.LFG)(T),window)}),At})();class Pa{constructor(ae,Et){this.document=ae,this.window=Et,this.offset=()=>[0,0]}setOffset(ae){this.offset=Array.isArray(ae)?()=>ae:ae}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ae){this.supportsScrolling()&&this.window.scrollTo(ae[0],ae[1])}scrollToAnchor(ae){if(!this.supportsScrolling())return;const Et=function qn(At,ae){const Et=At.getElementById(ae)||At.getElementsByName(ae)[0];if(Et)return Et;if("function"==typeof At.createTreeWalker&&At.body&&(At.body.createShadowRoot||At.body.attachShadow)){const Ne=At.createTreeWalker(At.body,NodeFilter.SHOW_ELEMENT);let Un=Ne.currentNode;for(;Un;){const Ut=Un.shadowRoot;if(Ut){const oe=Ut.getElementById(ae)||Ut.querySelector(`[name="${ae}"]`);if(oe)return oe}Un=Ne.nextNode()}}return null}(this.document,ae);Et&&(this.scrollToElement(Et),Et.focus())}setHistoryScrollRestoration(ae){if(this.supportScrollRestoration()){const Et=this.window.history;Et&&Et.scrollRestoration&&(Et.scrollRestoration=ae)}}scrollToElement(ae){const Et=ae.getBoundingClientRect(),Ne=Et.left+this.window.pageXOffset,Un=Et.top+this.window.pageYOffset,Ut=this.offset();this.window.scrollTo(Ne-Ut[0],Un-Ut[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ae=ar(this.window.history)||ar(Object.getPrototypeOf(this.window.history));return!(!ae||!ae.writable&&!ae.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ar(At){return Object.getOwnPropertyDescriptor(At,"scrollRestoration")}class mr{}},80529:(K,W,_)=>{"use strict";_.d(W,{JF:()=>j,LE:()=>ft,PG:()=>U,TP:()=>Oe,Zn:()=>ee,eN:()=>pe});var l=_(36895),u=_(94650),g=_(21086),h=_(56498),t=_(21406),x=_(92198),T=_(24850);class U{}class D{}class k{constructor(ie){this.normalizedNames=new Map,this.lazyUpdate=null,ie?this.lazyInit="string"==typeof ie?()=>{this.headers=new Map,ie.split("\n").forEach(re=>{const tn=re.indexOf(":");if(tn>0){const Cn=re.slice(0,tn),Yn=Cn.toLowerCase(),fi=re.slice(tn+1).trim();this.maybeSetNormalizedName(Cn,Yn),this.headers.has(Yn)?this.headers.get(Yn).push(fi):this.headers.set(Yn,[fi])}})}:()=>{this.headers=new Map,Object.keys(ie).forEach(re=>{let tn=ie[re];const Cn=re.toLowerCase();"string"==typeof tn&&(tn=[tn]),tn.length>0&&(this.headers.set(Cn,tn),this.maybeSetNormalizedName(re,Cn))})}:this.headers=new Map}has(ie){return this.init(),this.headers.has(ie.toLowerCase())}get(ie){this.init();const re=this.headers.get(ie.toLowerCase());return re&&re.length>0?re[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ie){return this.init(),this.headers.get(ie.toLowerCase())||null}append(ie,re){return this.clone({name:ie,value:re,op:"a"})}set(ie,re){return this.clone({name:ie,value:re,op:"s"})}delete(ie,re){return this.clone({name:ie,value:re,op:"d"})}maybeSetNormalizedName(ie,re){this.normalizedNames.has(re)||this.normalizedNames.set(re,ie)}init(){this.lazyInit&&(this.lazyInit instanceof k?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ie=>this.applyUpdate(ie)),this.lazyUpdate=null))}copyFrom(ie){ie.init(),Array.from(ie.headers.keys()).forEach(re=>{this.headers.set(re,ie.headers.get(re)),this.normalizedNames.set(re,ie.normalizedNames.get(re))})}clone(ie){const re=new k;return re.lazyInit=this.lazyInit&&this.lazyInit instanceof k?this.lazyInit:this,re.lazyUpdate=(this.lazyUpdate||[]).concat([ie]),re}applyUpdate(ie){const re=ie.name.toLowerCase();switch(ie.op){case"a":case"s":let tn=ie.value;if("string"==typeof tn&&(tn=[tn]),0===tn.length)return;this.maybeSetNormalizedName(ie.name,re);const Cn=("a"===ie.op?this.headers.get(re):void 0)||[];Cn.push(...tn),this.headers.set(re,Cn);break;case"d":const Yn=ie.value;if(Yn){let fi=this.headers.get(re);if(!fi)return;fi=fi.filter(Fi=>-1===Yn.indexOf(Fi)),0===fi.length?(this.headers.delete(re),this.normalizedNames.delete(re)):this.headers.set(re,fi)}else this.headers.delete(re),this.normalizedNames.delete(re)}}forEach(ie){this.init(),Array.from(this.normalizedNames.keys()).forEach(re=>ie(this.normalizedNames.get(re),this.headers.get(re)))}}class q{encodeKey(ie){return at(ie)}encodeValue(ie){return at(ie)}decodeKey(ie){return decodeURIComponent(ie)}decodeValue(ie){return decodeURIComponent(ie)}}const $=/%(\d[a-f0-9])/gi,X={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function at(Yt){return encodeURIComponent(Yt).replace($,(ie,re)=>X[re]??ie)}function rt(Yt){return`${Yt}`}class ft{constructor(ie={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ie.encoder||new q,ie.fromString){if(ie.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Y(Yt,ie){const re=new Map;return Yt.length>0&&Yt.replace(/^\?/,"").split("&").forEach(Cn=>{const Yn=Cn.indexOf("="),[fi,Fi]=-1==Yn?[ie.decodeKey(Cn),""]:[ie.decodeKey(Cn.slice(0,Yn)),ie.decodeValue(Cn.slice(Yn+1))],Bn=re.get(fi)||[];Bn.push(Fi),re.set(fi,Bn)}),re}(ie.fromString,this.encoder)}else ie.fromObject?(this.map=new Map,Object.keys(ie.fromObject).forEach(re=>{const tn=ie.fromObject[re],Cn=Array.isArray(tn)?tn.map(rt):[rt(tn)];this.map.set(re,Cn)})):this.map=null}has(ie){return this.init(),this.map.has(ie)}get(ie){this.init();const re=this.map.get(ie);return re?re[0]:null}getAll(ie){return this.init(),this.map.get(ie)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ie,re){return this.clone({param:ie,value:re,op:"a"})}appendAll(ie){const re=[];return Object.keys(ie).forEach(tn=>{const Cn=ie[tn];Array.isArray(Cn)?Cn.forEach(Yn=>{re.push({param:tn,value:Yn,op:"a"})}):re.push({param:tn,value:Cn,op:"a"})}),this.clone(re)}set(ie,re){return this.clone({param:ie,value:re,op:"s"})}delete(ie,re){return this.clone({param:ie,value:re,op:"d"})}toString(){return this.init(),this.keys().map(ie=>{const re=this.encoder.encodeKey(ie);return this.map.get(ie).map(tn=>re+"="+this.encoder.encodeValue(tn)).join("&")}).filter(ie=>""!==ie).join("&")}clone(ie){const re=new ft({encoder:this.encoder});return re.cloneFrom=this.cloneFrom||this,re.updates=(this.updates||[]).concat(ie),re}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ie=>this.map.set(ie,this.cloneFrom.map.get(ie))),this.updates.forEach(ie=>{switch(ie.op){case"a":case"s":const re=("a"===ie.op?this.map.get(ie.param):void 0)||[];re.push(rt(ie.value)),this.map.set(ie.param,re);break;case"d":if(void 0===ie.value){this.map.delete(ie.param);break}{let tn=this.map.get(ie.param)||[];const Cn=tn.indexOf(rt(ie.value));-1!==Cn&&tn.splice(Cn,1),tn.length>0?this.map.set(ie.param,tn):this.map.delete(ie.param)}}}),this.cloneFrom=this.updates=null)}}class qt{constructor(){this.map=new Map}set(ie,re){return this.map.set(ie,re),this}get(ie){return this.map.has(ie)||this.map.set(ie,ie.defaultValue()),this.map.get(ie)}delete(ie){return this.map.delete(ie),this}has(ie){return this.map.has(ie)}keys(){return this.map.keys()}}function Bt(Yt){return typeof ArrayBuffer<"u"&&Yt instanceof ArrayBuffer}function bt(Yt){return typeof Blob<"u"&&Yt instanceof Blob}function xt(Yt){return typeof FormData<"u"&&Yt instanceof FormData}class ut{constructor(ie,re,tn,Cn){let Yn;if(this.url=re,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ie.toUpperCase(),function Vt(Yt){switch(Yt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Cn?(this.body=void 0!==tn?tn:null,Yn=Cn):Yn=tn,Yn&&(this.reportProgress=!!Yn.reportProgress,this.withCredentials=!!Yn.withCredentials,Yn.responseType&&(this.responseType=Yn.responseType),Yn.headers&&(this.headers=Yn.headers),Yn.context&&(this.context=Yn.context),Yn.params&&(this.params=Yn.params)),this.headers||(this.headers=new k),this.context||(this.context=new qt),this.params){const fi=this.params.toString();if(0===fi.length)this.urlWithParams=re;else{const Fi=re.indexOf("?");this.urlWithParams=re+(-1===Fi?"?":FiHe.set(cn,ie.setHeaders[cn]),Bn)),ie.setParams&&(Sn=Object.keys(ie.setParams).reduce((He,cn)=>He.set(cn,ie.setParams[cn]),Sn)),new ut(re,tn,Yn,{params:Sn,headers:Bn,context:On,reportProgress:Fi,responseType:Cn,withCredentials:fi})}}var Mt=(()=>((Mt=Mt||{})[Mt.Sent=0]="Sent",Mt[Mt.UploadProgress=1]="UploadProgress",Mt[Mt.ResponseHeader=2]="ResponseHeader",Mt[Mt.DownloadProgress=3]="DownloadProgress",Mt[Mt.Response=4]="Response",Mt[Mt.User=5]="User",Mt))();class It{constructor(ie,re=200,tn="OK"){this.headers=ie.headers||new k,this.status=void 0!==ie.status?ie.status:re,this.statusText=ie.statusText||tn,this.url=ie.url||null,this.ok=this.status>=200&&this.status<300}}class wt extends It{constructor(ie={}){super(ie),this.type=Mt.ResponseHeader}clone(ie={}){return new wt({headers:ie.headers||this.headers,status:void 0!==ie.status?ie.status:this.status,statusText:ie.statusText||this.statusText,url:ie.url||this.url||void 0})}}class ee extends It{constructor(ie={}){super(ie),this.type=Mt.Response,this.body=void 0!==ie.body?ie.body:null}clone(ie={}){return new ee({body:void 0!==ie.body?ie.body:this.body,headers:ie.headers||this.headers,status:void 0!==ie.status?ie.status:this.status,statusText:ie.statusText||this.statusText,url:ie.url||this.url||void 0})}}class Ft extends It{constructor(ie){super(ie,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ie.url||"(unknown url)"}`:`Http failure response for ${ie.url||"(unknown url)"}: ${ie.status} ${ie.statusText}`,this.error=ie.error||null}}function _e(Yt,ie){return{body:ie,headers:Yt.headers,context:Yt.context,observe:Yt.observe,params:Yt.params,reportProgress:Yt.reportProgress,responseType:Yt.responseType,withCredentials:Yt.withCredentials}}let pe=(()=>{class Yt{constructor(re){this.handler=re}request(re,tn,Cn={}){let Yn;if(re instanceof ut)Yn=re;else{let Bn,Sn;Bn=Cn.headers instanceof k?Cn.headers:new k(Cn.headers),Cn.params&&(Sn=Cn.params instanceof ft?Cn.params:new ft({fromObject:Cn.params})),Yn=new ut(re,tn,void 0!==Cn.body?Cn.body:null,{headers:Bn,context:Cn.context,params:Sn,reportProgress:Cn.reportProgress,responseType:Cn.responseType||"json",withCredentials:Cn.withCredentials})}const fi=(0,g.of)(Yn).pipe((0,t.b)(Bn=>this.handler.handle(Bn)));if(re instanceof ut||"events"===Cn.observe)return fi;const Fi=fi.pipe((0,x.h)(Bn=>Bn instanceof ee));switch(Cn.observe||"body"){case"body":switch(Yn.responseType){case"arraybuffer":return Fi.pipe((0,T.U)(Bn=>{if(null!==Bn.body&&!(Bn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Bn.body}));case"blob":return Fi.pipe((0,T.U)(Bn=>{if(null!==Bn.body&&!(Bn.body instanceof Blob))throw new Error("Response is not a Blob.");return Bn.body}));case"text":return Fi.pipe((0,T.U)(Bn=>{if(null!==Bn.body&&"string"!=typeof Bn.body)throw new Error("Response is not a string.");return Bn.body}));default:return Fi.pipe((0,T.U)(Bn=>Bn.body))}case"response":return Fi;default:throw new Error(`Unreachable: unhandled observe type ${Cn.observe}}`)}}delete(re,tn={}){return this.request("DELETE",re,tn)}get(re,tn={}){return this.request("GET",re,tn)}head(re,tn={}){return this.request("HEAD",re,tn)}jsonp(re,tn){return this.request("JSONP",re,{params:(new ft).append(tn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(re,tn={}){return this.request("OPTIONS",re,tn)}patch(re,tn,Cn={}){return this.request("PATCH",re,_e(Cn,tn))}post(re,tn,Cn={}){return this.request("POST",re,_e(Cn,tn))}put(re,tn,Cn={}){return this.request("PUT",re,_e(Cn,tn))}}return Yt.\u0275fac=function(re){return new(re||Yt)(u.LFG(U))},Yt.\u0275prov=u.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();class Ze{constructor(ie,re){this.next=ie,this.interceptor=re}handle(ie){return this.interceptor.intercept(ie,this.next)}}const Oe=new u.OlP("HTTP_INTERCEPTORS");let Ie=(()=>{class Yt{intercept(re,tn){return tn.handle(re)}}return Yt.\u0275fac=function(re){return new(re||Yt)},Yt.\u0275prov=u.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const An=/^\)\]\}',?\n/;let hn=(()=>{class Yt{constructor(re){this.xhrFactory=re}handle(re){if("JSONP"===re.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new h.y(tn=>{const Cn=this.xhrFactory.build();if(Cn.open(re.method,re.urlWithParams),re.withCredentials&&(Cn.withCredentials=!0),re.headers.forEach((qe,we)=>Cn.setRequestHeader(qe,we.join(","))),re.headers.has("Accept")||Cn.setRequestHeader("Accept","application/json, text/plain, */*"),!re.headers.has("Content-Type")){const qe=re.detectContentTypeHeader();null!==qe&&Cn.setRequestHeader("Content-Type",qe)}if(re.responseType){const qe=re.responseType.toLowerCase();Cn.responseType="json"!==qe?qe:"text"}const Yn=re.serializeBody();let fi=null;const Fi=()=>{if(null!==fi)return fi;const qe=Cn.statusText||"OK",we=new k(Cn.getAllResponseHeaders()),Qe=function xe(Yt){return"responseURL"in Yt&&Yt.responseURL?Yt.responseURL:/^X-Request-URL:/m.test(Yt.getAllResponseHeaders())?Yt.getResponseHeader("X-Request-URL"):null}(Cn)||re.url;return fi=new wt({headers:we,status:Cn.status,statusText:qe,url:Qe}),fi},Bn=()=>{let{headers:qe,status:we,statusText:Qe,url:te}=Fi(),Ee=null;204!==we&&(Ee=typeof Cn.response>"u"?Cn.responseText:Cn.response),0===we&&(we=Ee?200:0);let $t=we>=200&&we<300;if("json"===re.responseType&&"string"==typeof Ee){const $e=Ee;Ee=Ee.replace(An,"");try{Ee=""!==Ee?JSON.parse(Ee):null}catch(sn){Ee=$e,$t&&($t=!1,Ee={error:sn,text:Ee})}}$t?(tn.next(new ee({body:Ee,headers:qe,status:we,statusText:Qe,url:te||void 0})),tn.complete()):tn.error(new Ft({error:Ee,headers:qe,status:we,statusText:Qe,url:te||void 0}))},Sn=qe=>{const{url:we}=Fi(),Qe=new Ft({error:qe,status:Cn.status||0,statusText:Cn.statusText||"Unknown Error",url:we||void 0});tn.error(Qe)};let On=!1;const He=qe=>{On||(tn.next(Fi()),On=!0);let we={type:Mt.DownloadProgress,loaded:qe.loaded};qe.lengthComputable&&(we.total=qe.total),"text"===re.responseType&&!!Cn.responseText&&(we.partialText=Cn.responseText),tn.next(we)},cn=qe=>{let we={type:Mt.UploadProgress,loaded:qe.loaded};qe.lengthComputable&&(we.total=qe.total),tn.next(we)};return Cn.addEventListener("load",Bn),Cn.addEventListener("error",Sn),Cn.addEventListener("timeout",Sn),Cn.addEventListener("abort",Sn),re.reportProgress&&(Cn.addEventListener("progress",He),null!==Yn&&Cn.upload&&Cn.upload.addEventListener("progress",cn)),Cn.send(Yn),tn.next({type:Mt.Sent}),()=>{Cn.removeEventListener("error",Sn),Cn.removeEventListener("abort",Sn),Cn.removeEventListener("load",Bn),Cn.removeEventListener("timeout",Sn),re.reportProgress&&(Cn.removeEventListener("progress",He),null!==Yn&&Cn.upload&&Cn.upload.removeEventListener("progress",cn)),Cn.readyState!==Cn.DONE&&Cn.abort()}})}}return Yt.\u0275fac=function(re){return new(re||Yt)(u.LFG(l.JF))},Yt.\u0275prov=u.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const Re=new u.OlP("XSRF_COOKIE_NAME"),_n=new u.OlP("XSRF_HEADER_NAME");class Kn{}let si=(()=>{class Yt{constructor(re,tn,Cn){this.doc=re,this.platform=tn,this.cookieName=Cn,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const re=this.doc.cookie||"";return re!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,l.Mx)(re,this.cookieName),this.lastCookieString=re),this.lastToken}}return Yt.\u0275fac=function(re){return new(re||Yt)(u.LFG(l.K0),u.LFG(u.Lbi),u.LFG(Re))},Yt.\u0275prov=u.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})(),oi=(()=>{class Yt{constructor(re,tn){this.tokenService=re,this.headerName=tn}intercept(re,tn){const Cn=re.url.toLowerCase();if("GET"===re.method||"HEAD"===re.method||Cn.startsWith("http://")||Cn.startsWith("https://"))return tn.handle(re);const Yn=this.tokenService.getToken();return null!==Yn&&!re.headers.has(this.headerName)&&(re=re.clone({headers:re.headers.set(this.headerName,Yn)})),tn.handle(re)}}return Yt.\u0275fac=function(re){return new(re||Yt)(u.LFG(Kn),u.LFG(_n))},Yt.\u0275prov=u.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})(),Vn=(()=>{class Yt{constructor(re,tn){this.backend=re,this.injector=tn,this.chain=null}handle(re){if(null===this.chain){const tn=this.injector.get(Oe,[]);this.chain=tn.reduceRight((Cn,Yn)=>new Ze(Cn,Yn),this.backend)}return this.chain.handle(re)}}return Yt.\u0275fac=function(re){return new(re||Yt)(u.LFG(D),u.LFG(u.zs3))},Yt.\u0275prov=u.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})(),J=(()=>{class Yt{static disable(){return{ngModule:Yt,providers:[{provide:oi,useClass:Ie}]}}static withOptions(re={}){return{ngModule:Yt,providers:[re.cookieName?{provide:Re,useValue:re.cookieName}:[],re.headerName?{provide:_n,useValue:re.headerName}:[]]}}}return Yt.\u0275fac=function(re){return new(re||Yt)},Yt.\u0275mod=u.oAB({type:Yt}),Yt.\u0275inj=u.cJS({providers:[oi,{provide:Oe,useExisting:oi,multi:!0},{provide:Kn,useClass:si},{provide:Re,useValue:"XSRF-TOKEN"},{provide:_n,useValue:"X-XSRF-TOKEN"}]}),Yt})(),j=(()=>{class Yt{}return Yt.\u0275fac=function(re){return new(re||Yt)},Yt.\u0275mod=u.oAB({type:Yt}),Yt.\u0275inj=u.cJS({providers:[pe,{provide:U,useClass:Vn},hn,{provide:D,useExisting:hn}],imports:[J.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Yt})()},94650:(K,W,_)=>{"use strict";_.d(W,{$8M:()=>_l,$Z:()=>xd,AFp:()=>S5,ALo:()=>n5,AaK:()=>U,AsE:()=>e3,B6R:()=>Ee,BQk:()=>Xm,CHM:()=>fa,CRH:()=>f5,CZH:()=>g3,CqO:()=>_p,D6c:()=>zb,DdM:()=>Q0,Dn7:()=>r5,EJc:()=>mb,EiD:()=>O_,EpF:()=>Lg,F$t:()=>Ef,F4k:()=>ss,FYo:()=>ju,FiY:()=>os,G48:()=>wb,Gf:()=>f6,GfV:()=>af,GkF:()=>t_,Gpc:()=>O,Gre:()=>tg,HOy:()=>Xh,Hsn:()=>jh,Ikx:()=>Z,JOm:()=>Cl,JVY:()=>xm,Jf7:()=>C1,KtG:()=>tr,L6k:()=>w_,LAX:()=>mg,LFG:()=>is,LSH:()=>Rr,Lbi:()=>cb,Lck:()=>g8,MAs:()=>Ud,MGl:()=>ed,MMx:()=>n6,NdJ:()=>fp,O4$:()=>li,OlP:()=>Di,Oqu:()=>t3,PXZ:()=>J5,Q6J:()=>Gd,QGY:()=>qg,QP$:()=>yn,QbO:()=>ub,Qsj:()=>ef,R0b:()=>k1,RDi:()=>Ws,Rgc:()=>f3,SBq:()=>Pi,Sil:()=>hb,Suo:()=>_5,TTD:()=>jc,TgZ:()=>kf,Tol:()=>I3,Udp:()=>Rf,VKq:()=>G0,W1O:()=>g5,WFA:()=>qf,WLB:()=>j0,XFs:()=>Vn,Xpm:()=>te,Xts:()=>L_,Y36:()=>$u,YKP:()=>X3,YNc:()=>Sf,Yjl:()=>ye,Yz7:()=>ce,Z0I:()=>fn,ZZ4:()=>F6,_Bn:()=>t6,_UZ:()=>Gh,_Vd:()=>$1,_c5:()=>Yb,_uU:()=>R4,aQg:()=>b3,c2e:()=>db,cJS:()=>Te,cg1:()=>le,d8E:()=>S,dDg:()=>V5,dqk:()=>Cn,dwT:()=>yt,eBb:()=>_u,eFA:()=>G5,ekj:()=>Qg,eoX:()=>B5,evT:()=>Pm,f3M:()=>e1,g9A:()=>O5,gM2:()=>n4,h0i:()=>ag,hGG:()=>dv,hij:()=>Yf,iGM:()=>_6,ifc:()=>tn,ip1:()=>P5,jDz:()=>R0,kEZ:()=>W0,kL8:()=>rn,kYT:()=>Xe,kcU:()=>Ii,lG2:()=>kt,lcZ:()=>o5,lnq:()=>i_,lqb:()=>vd,lri:()=>Y5,mCW:()=>fu,n5z:()=>Pd,n_E:()=>i4,oAB:()=>sn,oJD:()=>_1,oxw:()=>Ng,pB0:()=>Lp,q3G:()=>Ir,qLn:()=>zd,qOj:()=>T2,qZA:()=>Of,qzn:()=>mu,rWj:()=>z5,s9C:()=>Nf,sBO:()=>iv,sIi:()=>Jn,s_b:()=>o4,soG:()=>f4,tb:()=>L5,tp0:()=>n1,uIk:()=>Qc,uOi:()=>Tm,vHH:()=>X,vpe:()=>wd,wAp:()=>Ln,xDo:()=>n3,xi3:()=>a5,xp6:()=>Y_,ynx:()=>Lf,z2F:()=>y4,z3N:()=>Ju,zSh:()=>v1,zs3:()=>ol});var l=_(8929),u=_(42654),g=_(56498),h=_(36787),t=_(12474);function x(m){for(let f in m)if(m[f]===x)return f;throw Error("Could not find renamed property on target object.")}function T(m,f){for(const C in f)f.hasOwnProperty(C)&&!m.hasOwnProperty(C)&&(m[C]=f[C])}function U(m){if("string"==typeof m)return m;if(Array.isArray(m))return"["+m.map(U).join(", ")+"]";if(null==m)return""+m;if(m.overriddenName)return`${m.overriddenName}`;if(m.name)return`${m.name}`;const f=m.toString();if(null==f)return""+f;const C=f.indexOf("\n");return-1===C?f:f.substring(0,C)}function D(m,f){return null==m||""===m?null===f?"":f:null==f||""===f?m:m+" "+f}const k=x({__forward_ref__:x});function O(m){return m.__forward_ref__=O,m.toString=function(){return U(this())},m}function q(m){return Y(m)?m():m}function Y(m){return"function"==typeof m&&m.hasOwnProperty(k)&&m.__forward_ref__===O}class X extends Error{constructor(f,C){super(function at(m,f){return`NG0${Math.abs(m)}${f?": "+f.trim():""}`}(f,C)),this.code=f}}function rt(m){return"string"==typeof m?m:null==m?"":String(m)}function Bt(m,f){throw new X(-201,!1)}function Ie(m,f){null==m&&function Rt(m,f,C,M){throw new Error(`ASSERTION ERROR: ${m}`+(null==M?"":` [Expected=> ${C} ${M} ${f} <=Actual]`))}(f,m,null,"!=")}function ce(m){return{token:m.token,providedIn:m.providedIn||null,factory:m.factory,value:void 0}}function Te(m){return{providers:m.providers||[],imports:m.imports||[]}}function Ye(m){return An(m,_n)||An(m,si)}function fn(m){return null!==Ye(m)}function An(m,f){return m.hasOwnProperty(f)?m[f]:null}function Re(m){return m&&(m.hasOwnProperty(Kn)||m.hasOwnProperty(oi))?m[Kn]:null}const _n=x({\u0275prov:x}),Kn=x({\u0275inj:x}),si=x({ngInjectableDef:x}),oi=x({ngInjectorDef:x});var Vn=(()=>((Vn=Vn||{})[Vn.Default=0]="Default",Vn[Vn.Host=1]="Host",Vn[Vn.Self=2]="Self",Vn[Vn.SkipSelf=4]="SkipSelf",Vn[Vn.Optional=8]="Optional",Vn))();let ze;function J(m){const f=ze;return ze=m,f}function j(m,f,C){const M=Ye(m);return M&&"root"==M.providedIn?void 0===M.value?M.value=M.factory():M.value:C&Vn.Optional?null:void 0!==f?f:void Bt(U(m))}function Ct(m){return{toString:m}.toString()}var Yt=(()=>((Yt=Yt||{})[Yt.OnPush=0]="OnPush",Yt[Yt.Default=1]="Default",Yt))(),tn=(()=>{return(m=tn||(tn={}))[m.Emulated=0]="Emulated",m[m.None=2]="None",m[m.ShadowDom=3]="ShadowDom",tn;var m})();const Cn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Fi={},Bn=[],Sn=x({\u0275cmp:x}),On=x({\u0275dir:x}),He=x({\u0275pipe:x}),cn=x({\u0275mod:x}),qe=x({\u0275fac:x}),we=x({__NG_ELEMENT_ID__:x});let Qe=0;function te(m){return Ct(()=>{const C=!0===m.standalone,M={},L={type:m.type,providersResolver:null,decls:m.decls,vars:m.vars,factory:null,template:m.template||null,consts:m.consts||null,ngContentSelectors:m.ngContentSelectors,hostBindings:m.hostBindings||null,hostVars:m.hostVars||0,hostAttrs:m.hostAttrs||null,contentQueries:m.contentQueries||null,declaredInputs:M,inputs:null,outputs:null,exportAs:m.exportAs||null,onPush:m.changeDetection===Yt.OnPush,directiveDefs:null,pipeDefs:null,standalone:C,dependencies:C&&m.dependencies||null,getStandaloneInjector:null,selectors:m.selectors||Bn,viewQuery:m.viewQuery||null,features:m.features||null,data:m.data||{},encapsulation:m.encapsulation||tn.Emulated,id:"c"+Qe++,styles:m.styles||Bn,_:null,setInput:null,schemas:m.schemas||null,tView:null},H=m.dependencies,nt=m.features;return L.inputs=me(m.inputs,M),L.outputs=me(m.outputs),nt&&nt.forEach(gt=>gt(L)),L.directiveDefs=H?()=>("function"==typeof H?H():H).map($t).filter($e):null,L.pipeDefs=H?()=>("function"==typeof H?H():H).map(Se).filter($e):null,L})}function Ee(m,f,C){const M=m.\u0275cmp;M.directiveDefs=()=>("function"==typeof f?f():f).map($t),M.pipeDefs=()=>("function"==typeof C?C():C).map(Se)}function $t(m){return Nt(m)||ve(m)}function $e(m){return null!==m}function sn(m){return Ct(()=>({type:m.type,bootstrap:m.bootstrap||Bn,declarations:m.declarations||Bn,imports:m.imports||Bn,exports:m.exports||Bn,transitiveCompileScopes:null,schemas:m.schemas||null,id:m.id||null}))}function Xe(m,f){return Ct(()=>{const C=pi(m,!0);C.declarations=f.declarations||Bn,C.imports=f.imports||Bn,C.exports=f.exports||Bn})}function me(m,f){if(null==m)return Fi;const C={};for(const M in m)if(m.hasOwnProperty(M)){let L=m[M],H=L;Array.isArray(L)&&(H=L[1],L=L[0]),C[L]=M,f&&(f[L]=H)}return C}const kt=te;function ye(m){return{type:m.type,name:m.name,factory:null,pure:!1!==m.pure,standalone:!0===m.standalone,onDestroy:m.type.prototype.ngOnDestroy||null}}function Nt(m){return m[Sn]||null}function ve(m){return m[On]||null}function Se(m){return m[He]||null}function yn(m){const f=Nt(m)||ve(m)||Se(m);return null!==f&&f.standalone}function pi(m,f){const C=m[cn]||null;if(!C&&!0===f)throw new Error(`Type ${U(m)} does not have '\u0275mod' property.`);return C}const G=16,B=18;function Oa(m){return Array.isArray(m)&&"object"==typeof m[1]}function La(m){return Array.isArray(m)&&!0===m[1]}function Ds(m){return 0!=(8&m.flags)}function vc(m){return 2==(2&m.flags)}function Gr(m){return 1==(1&m.flags)}function Sr(m){return null!==m.template}function jr(m){return 0!=(256&m[2])}function Kr(m,f){return m.hasOwnProperty(qe)?m[qe]:null}class Cc{constructor(f,C,M){this.previousValue=f,this.currentValue=C,this.firstChange=M}isFirstChange(){return this.firstChange}}function jc(){return Ec}function Ec(m){return m.type.prototype.ngOnChanges&&(m.setInput=_a),So}function So(){const m=cl(this),f=m?.current;if(f){const C=m.previous;if(C===Fi)m.previous=f;else for(let M in f)C[M]=f[M];m.current=null,this.ngOnChanges(f)}}function _a(m,f,C,M){const L=cl(m)||function El(m,f){return m[Cs]=f}(m,{previous:Fi,current:null}),H=L.current||(L.current={}),nt=L.previous,gt=this.declaredInputs[C],Ot=nt[gt];H[gt]=new Cc(Ot&&Ot.currentValue,f,nt===Fi),m[M]=f}jc.ngInherit=!0;const Cs="__ngSimpleChanges__";function cl(m){return m[Cs]||null}function Xo(m){for(;Array.isArray(m);)m=m[0];return m}function ar(m,f){return Xo(f[m])}function qn(m,f){return Xo(f[m.index])}function mr(m,f){return m.data[f]}function Fo(m,f){return m[f]}function rr(m,f){const C=f[m];return Oa(C)?C:C[0]}function wr(m){return 64==(64&m[2])}function Xr(m,f){return null==f?null:m[f]}function Lr(m){m[B]=0}function ta(m,f){m[5]+=f;let C=m,M=m[3];for(;null!==M&&(1===f&&1===C[5]||-1===f&&0===C[5]);)M[5]+=f,C=M,M=M[3]}const Si={lFrame:st(null),bindingsEnabled:!0};function xs(){return Si.bindingsEnabled}function Ti(){return Si.lFrame.lView}function xo(){return Si.lFrame.tView}function fa(m){return Si.lFrame.contextLView=m,m[8]}function tr(m){return Si.lFrame.contextLView=null,m}function aa(){let m=Xt();for(;null!==m&&64===m.type;)m=m.parent;return m}function Xt(){return Si.lFrame.currentTNode}function St(m,f){const C=Si.lFrame;C.currentTNode=m,C.isParent=f}function et(){return Si.lFrame.isParent}function ai(){Si.lFrame.isParent=!1}function Ha(){const m=Si.lFrame;let f=m.bindingRootIndex;return-1===f&&(f=m.bindingRootIndex=m.tView.bindingStartIndex),f}function Ya(){return Si.lFrame.bindingIndex}function ea(){return Si.lFrame.bindingIndex++}function Bs(m){const f=Si.lFrame,C=f.bindingIndex;return f.bindingIndex=f.bindingIndex+m,C}function sd(m,f){const C=Si.lFrame;C.bindingIndex=C.bindingRootIndex=m,$c(f)}function $c(m){Si.lFrame.currentDirectiveIndex=m}function Os(m){const f=Si.lFrame.currentDirectiveIndex;return-1===f?null:m[f]}function Ls(){return Si.lFrame.currentQueryIndex}function ac(m){Si.lFrame.currentQueryIndex=m}function Md(m){const f=m[1];return 2===f.type?f.declTNode:1===f.type?m[6]:null}function xc(m,f,C){if(C&Vn.SkipSelf){let L=f,H=m;for(;!(L=L.parent,null!==L||C&Vn.Host||(L=Md(H),null===L||(H=H[15],10&L.type))););if(null===L)return!1;f=L,m=H}const M=Si.lFrame=yi();return M.currentTNode=f,M.lView=m,!0}function ys(m){const f=yi(),C=m[1];Si.lFrame=f,f.currentTNode=C.firstChild,f.lView=m,f.tView=C,f.contextLView=m,f.bindingIndex=C.bindingStartIndex,f.inI18n=!1}function yi(){const m=Si.lFrame,f=null===m?null:m.child;return null===f?st(m):f}function st(m){const f={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:m,child:null,inI18n:!1};return null!==m&&(m.child=f),f}function Kc(){const m=Si.lFrame;return Si.lFrame=m.parent,m.currentTNode=null,m.lView=null,m}const Fc=Kc;function No(){const m=Kc();m.isParent=!0,m.tView=null,m.selectedIndex=-1,m.contextLView=null,m.elementDepthCount=0,m.currentDirectiveIndex=-1,m.currentNamespace=null,m.bindingRootIndex=-1,m.bindingIndex=-1,m.currentQueryIndex=0}function za(){return Si.lFrame.selectedIndex}function vr(m){Si.lFrame.selectedIndex=m}function Ho(){const m=Si.lFrame;return mr(m.tView,m.selectedIndex)}function li(){Si.lFrame.currentNamespace="svg"}function Ii(){!function ln(){Si.lFrame.currentNamespace=null}()}function ci(m,f){for(let C=f.directiveStart,M=f.directiveEnd;C=M)break}else f[Ot]<0&&(m[B]+=65536),(gt>11>16&&(3&m[2])===f){m[2]+=2048;try{H.call(gt)}finally{}}}else try{H.call(gt)}finally{}}class ul{constructor(f,C,M){this.factory=f,this.resolving=!1,this.canSeeViewProviders=C,this.injectImpl=M}}function Ne(m,f,C){let M=0;for(;Mf){nt=H-1;break}}}for(;H>16}(m),M=f;for(;C>0;)M=M[15],C--;return M}let ti=!0;function ii(m){const f=ti;return ti=m,f}let yo=0;const po={};function er(m,f){const C=Mr(m,f);if(-1!==C)return C;const M=f[1];M.firstCreatePass&&(m.injectorIndex=f.length,br(M.data,m),br(f,null),br(M.blueprint,null));const L=nr(m,f),H=m.injectorIndex;if(Je(L)){const nt=mn(L),gt=Nn(L,f),Ot=gt[1].data;for(let de=0;de<8;de++)f[H+de]=gt[nt+de]|Ot[nt+de]}return f[H+8]=L,H}function br(m,f){m.push(0,0,0,0,0,0,0,0,f)}function Mr(m,f){return-1===m.injectorIndex||m.parent&&m.parent.injectorIndex===m.injectorIndex||null===f[m.injectorIndex+8]?-1:m.injectorIndex}function nr(m,f){if(m.parent&&-1!==m.parent.injectorIndex)return m.parent.injectorIndex;let C=0,M=null,L=f;for(;null!==L;){if(M=Sd(L),null===M)return-1;if(C++,L=L[15],-1!==M.injectorIndex)return M.injectorIndex|C<<16}return-1}function ja(m,f,C){!function Do(m,f,C){let M;"string"==typeof C?M=C.charCodeAt(0)||0:C.hasOwnProperty(we)&&(M=C[we]),null==M&&(M=C[we]=yo++);const L=255&M;f.data[m+(L>>5)]|=1<=0?255&f:qu:f}(C);if("function"==typeof H){if(!xc(f,m,M))return M&Vn.Host?es(L,0,M):ns(f,C,M,L);try{const nt=H(M);if(null!=nt||M&Vn.Optional)return nt;Bt()}finally{Fc()}}else if("number"==typeof H){let nt=null,gt=Mr(m,f),Ot=-1,de=M&Vn.Host?f[G][6]:null;for((-1===gt||M&Vn.SkipSelf)&&(Ot=-1===gt?nr(m,f):f[gt+8],-1!==Ot&&Il(M,!1)?(nt=f[1],gt=mn(Ot),f=Nn(Ot,f)):gt=-1);-1!==gt;){const Ve=f[1];if(cd(H,gt,Ve.data)){const gn=ha(gt,f,C,nt,M,de);if(gn!==po)return gn}Ot=f[gt+8],-1!==Ot&&Il(M,f[1].data[gt+8]===de)&&cd(H,gt,f)?(nt=Ve,gt=mn(Ot),f=Nn(Ot,f)):gt=-1}}return L}function ha(m,f,C,M,L,H){const nt=f[1],gt=nt.data[m+8],Ve=mo(gt,nt,C,null==M?vc(gt)&&ti:M!=nt&&0!=(3>.type),L&Vn.Host&&H===gt);return null!==Ve?na(f,nt,Ve,gt):po}function mo(m,f,C,M,L){const H=m.providerIndexes,nt=f.data,gt=1048575&H,Ot=m.directiveStart,Ve=H>>20,Rn=L?gt+Ve:m.directiveEnd;for(let Xn=M?gt:gt+Ve;Xn=Ot&&Ai.type===C)return Xn}if(L){const Xn=nt[Ot];if(Xn&&Sr(Xn)&&Xn.type===C)return Ot}return null}function na(m,f,C,M){let L=m[C];const H=f.data;if(function ua(m){return m instanceof ul}(L)){const nt=L;nt.resolving&&function Tt(m,f){const C=f?`. Dependency path: ${f.join(" > ")} > ${m}`:"";throw new X(-200,`Circular dependency in DI detected for ${m}${C}`)}(function ft(m){return"function"==typeof m?m.name||m.toString():"object"==typeof m&&null!=m&&"function"==typeof m.type?m.type.name||m.type.toString():rt(m)}(H[C]));const gt=ii(nt.canSeeViewProviders);nt.resolving=!0;const Ot=nt.injectImpl?J(nt.injectImpl):null;xc(m,M,Vn.Default);try{L=m[C]=nt.factory(void 0,H,m,M),f.firstCreatePass&&C>=M.directiveStart&&function ui(m,f,C){const{ngOnChanges:M,ngOnInit:L,ngDoCheck:H}=f.type.prototype;if(M){const nt=Ec(f);(C.preOrderHooks||(C.preOrderHooks=[])).push(m,nt),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(m,nt)}L&&(C.preOrderHooks||(C.preOrderHooks=[])).push(0-m,L),H&&((C.preOrderHooks||(C.preOrderHooks=[])).push(m,H),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(m,H))}(C,H[C],f)}finally{null!==Ot&&J(Ot),ii(gt),nt.resolving=!1,Fc()}}return L}function cd(m,f,C){return!!(C[f+(m>>5)]&1<{const f=m.prototype.constructor,C=f[qe]||pl(f),M=Object.prototype;let L=Object.getPrototypeOf(m.prototype).constructor;for(;L&&L!==M;){const H=L[qe]||pl(L);if(H&&H!==C)return H;L=Object.getPrototypeOf(L)}return H=>new H})}function pl(m){return Y(m)?()=>{const f=pl(q(m));return f&&f()}:Kr(m)}function Sd(m){const f=m[1],C=f.type;return 2===C?f.declTNode:1===C?m[6]:null}function _l(m){return function sr(m,f){if("class"===f)return m.classes;if("style"===f)return m.styles;const C=m.attrs;if(C){const M=C.length;let L=0;for(;L{const M=function Wa(m){return function(...C){if(m){const M=m(...C);for(const L in M)this[L]=M[L]}}}(f);function L(...H){if(this instanceof L)return M.apply(this,H),this;const nt=new L(...H);return gt.annotation=nt,gt;function gt(Ot,de,Ve){const gn=Ot.hasOwnProperty(Ic)?Ot[Ic]:Object.defineProperty(Ot,Ic,{value:[]})[Ic];for(;gn.length<=Ve;)gn.push(null);return(gn[Ve]=gn[Ve]||[]).push(nt),Ot}}return C&&(L.prototype=Object.create(C.prototype)),L.prototype.ngMetadataName=m,L.annotationCls=L,L})}class Di{constructor(f,C){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof C?this.__NG_ELEMENT_ID__=C:void 0!==C&&(this.\u0275prov=ce({token:this,providedIn:C.providedIn||"root",factory:C.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function _s(m,f){void 0===f&&(f=m);for(let C=0;CArray.isArray(C)?Ts(C,f):f(C))}function fl(m,f,C){f>=m.length?m.push(C):m.splice(f,0,C)}function Hl(m,f){return f>=m.length-1?m.pop():m.splice(f,1)[0]}function Yl(m,f){const C=[];for(let M=0;M=0?m[1|M]=C:(M=~M,function pt(m,f,C,M){let L=m.length;if(L==f)m.push(C,M);else if(1===L)m.push(M,m[0]),m[0]=C;else{for(L--,m.push(m[L-1],m[L]);L>f;)m[L]=m[L-2],L--;m[f]=C,m[f+1]=M}}(m,M,f,C)),M}function se(m,f){const C=ne(m,f);if(C>=0)return m[1|C]}function ne(m,f){return function pn(m,f,C){let M=0,L=m.length>>C;for(;L!==M;){const H=M+(L-M>>1),nt=m[H<f?L=H:M=H+1}return~(L<((Cl=Cl||{})[Cl.Important=1]="Important",Cl[Cl.DashCase=2]="DashCase",Cl))();const i1=new Map;let p_=0;const Qr="__ngContext__";function Fr(m,f){Oa(f)?(m[Qr]=f[20],function o1(m){i1.set(m[20],m)}(f)):m[Qr]=f}function fm(m,f){return undefined(m,f)}function s1(m){const f=m[3];return La(f)?f[3]:f}function F2(m){return I2(m[13])}function x_(m){return I2(m[4])}function I2(m){for(;null!==m&&!La(m);)m=m[4];return m}function nl(m,f,C,M,L){if(null!=M){let H,nt=!1;La(M)?H=M:Oa(M)&&(nt=!0,M=M[0]);const gt=Xo(M);0===m&&null!==C?null==L?_d(f,C,gt):Hu(f,C,gt,L||null,!0):1===m&&null!==C?Hu(f,C,gt,L||null,!0):2===m?function Id(m,f,C){const M=hs(m,f);M&&function fs(m,f,C,M){m.removeChild(f,C,M)}(m,M,f,C)}(f,gt,nt):3===m&&f.destroyNode(gt),null!=H&&function Bu(m,f,C,M,L){const H=C[7];H!==Xo(C)&&nl(f,m,M,H,L);for(let gt=10;gt0&&(m[C-1][4]=M[4]);const H=Hl(m,10+f);!function Us(m,f){fd(m,f,f[11],2,null,null),f[0]=null,f[6]=null}(M[1],M);const nt=H[19];null!==nt&&nt.detachView(H[1]),M[3]=null,M[4]=null,M[2]&=-65}return M}function yl(m,f){if(!(128&f[2])){const C=f[11];C.destroyNode&&fd(m,f,C,3,null,null),function y_(m){let f=m[13];if(!f)return Tl(m[1],m);for(;f;){let C=null;if(Oa(f))C=f[13];else{const M=f[10];M&&(C=M)}if(!C){for(;f&&!f[4]&&f!==m;)Oa(f)&&Tl(f[1],f),f=f[3];null===f&&(f=m),Oa(f)&&Tl(f[1],f),C=f&&f[4]}f=C}}(f)}}function Tl(m,f){if(!(128&f[2])){f[2]&=-65,f[2]|=128,function as(m,f){let C;if(null!=m&&null!=(C=m.destroyHooks))for(let M=0;M=0?M[L=de]():M[L=-de].unsubscribe(),H+=2}else{const nt=M[L=C[H+1]];C[H].call(nt)}if(null!==M){for(let H=L+1;Hm,createScript:m=>m,createScriptURL:m=>m})}catch{}return du}()?.createHTML(m)||m}function Ws(m){Zs=m}function Gl(){if(void 0===Cm&&(Cm=null,Cn.trustedTypes))try{Cm=Cn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:m=>m,createScript:m=>m,createScriptURL:m=>m})}catch{}return Cm}function Yc(m){return Gl()?.createHTML(m)||m}function p1(m){return Gl()?.createScriptURL(m)||m}class hd{constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class oh extends hd{getTypeName(){return"HTML"}}class Tc extends hd{getTypeName(){return"Style"}}class Rd extends hd{getTypeName(){return"Script"}}class U_ extends hd{getTypeName(){return"URL"}}class Z_ extends hd{getTypeName(){return"ResourceURL"}}function Ju(m){return m instanceof hd?m.changingThisBreaksApplicationSecurity:m}function mu(m,f){const C=function m1(m){return m instanceof hd&&m.getTypeName()||null}(m);if(null!=C&&C!==f){if("ResourceURL"===C&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${C} (see https://g.co/ng/security#xss)`)}return C===f}function xm(m){return new oh(m)}function w_(m){return new Tc(m)}function _u(m){return new Rd(m)}function mg(m){return new U_(m)}function Lp(m){return new Z_(m)}class V1{constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f=""+f;try{const C=(new window.DOMParser).parseFromString(Cr(f),"text/html").body;return null===C?this.inertDocumentHelper.getInertBodyElement(f):(C.removeChild(C.firstChild),C)}catch{return null}}}class M_{constructor(f){if(this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const C=this.inertDocument.createElement("html");this.inertDocument.appendChild(C);const M=this.inertDocument.createElement("body");C.appendChild(M)}}getInertBodyElement(f){const C=this.inertDocument.createElement("template");if("content"in C)return C.innerHTML=Cr(f),C;const M=this.inertDocument.createElement("body");return M.innerHTML=Cr(f),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(M),M}stripCustomNsAttrs(f){const C=f.attributes;for(let L=C.length-1;0"),!0}endElement(f){const C=f.nodeName.toLowerCase();S_.hasOwnProperty(C)&&!hu.hasOwnProperty(C)&&(this.buf.push(""))}chars(f){this.buf.push(Q2(f))}checkClobberedElement(f,C){if(C&&(f.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${f.outerHTML}`);return C}}const B2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,J2=/([^\#-~ |!])/g;function Q2(m){return m.replace(/&/g,"&").replace(B2,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(J2,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(//g,">")}let Hd;function O_(m,f){let C=null;try{Hd=Hd||function Ul(m){const f=new M_(m);return function D_(){try{return!!(new window.DOMParser).parseFromString(Cr(""),"text/html")}catch{return!1}}()?new V1(f):f}(m);let M=f?String(f):"";C=Hd.getInertBodyElement(M);let L=5,H=M;do{if(0===L)throw new Error("Failed to sanitize html because the input is unstable");L--,M=H,H=C.innerHTML,C=Hd.getInertBodyElement(M)}while(M!==H);return Cr((new qp).sanitizeChildren(ro(C)||C))}finally{if(C){const M=ro(C)||C;for(;M.firstChild;)M.removeChild(M.firstChild)}}}function ro(m){return"content"in m&&function rh(m){return m.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===m.nodeName}(m)?m.content:null}var Ir=(()=>((Ir=Ir||{})[Ir.NONE=0]="NONE",Ir[Ir.HTML=1]="HTML",Ir[Ir.STYLE=2]="STYLE",Ir[Ir.SCRIPT=3]="SCRIPT",Ir[Ir.URL=4]="URL",Ir[Ir.RESOURCE_URL=5]="RESOURCE_URL",Ir))();function _1(m){const f=J1();return f?Yc(f.sanitize(Ir.HTML,m)||""):mu(m,"HTML")?Yc(Ju(m)):O_(function bm(){return void 0!==Zs?Zs:typeof document<"u"?document:void 0}(),rt(m))}function Rr(m){const f=J1();return f?f.sanitize(Ir.URL,m)||"":mu(m,"URL")?Ju(m):fu(rt(m))}function Tm(m){const f=J1();if(f)return p1(f.sanitize(Ir.RESOURCE_URL,m)||"");if(mu(m,"ResourceURL"))return p1(Ju(m));throw new X(904,!1)}function J1(){const m=Ti();return m&&m[12]}const L_=new Di("ENVIRONMENT_INITIALIZER"),ch=new Di("INJECTOR",-1),Q1=new Di("INJECTOR_DEF_TYPES");class gd{get(f,C=Nr){if(C===Nr){const M=new Error(`NullInjectorError: No provider for ${U(f)}!`);throw M.name="NullInjectorError",M}return C}}function fg(...m){return{\u0275providers:f1(0,m)}}function f1(m,...f){const C=[],M=new Set;let L;return Ts(f,H=>{const nt=H;G1(nt,C,[],M)&&(L||(L=[]),L.push(nt))}),void 0!==L&&h1(L,C),C}function h1(m,f){for(let C=0;C{f.push(H)})}}function G1(m,f,C,M){if(!(m=q(m)))return!1;let L=null,H=Re(m);const nt=!H&&Nt(m);if(H||nt){if(nt&&!nt.standalone)return!1;L=m}else{const Ot=m.ngModule;if(H=Re(Ot),!H)return!1;L=Ot}const gt=M.has(L);if(nt){if(gt)return!1;if(M.add(L),nt.dependencies){const Ot="function"==typeof nt.dependencies?nt.dependencies():nt.dependencies;for(const de of Ot)G1(de,f,C,M)}}else{if(!H)return!1;{if(null!=H.imports&&!gt){let de;M.add(L);try{Ts(H.imports,Ve=>{G1(Ve,f,C,M)&&(de||(de=[]),de.push(Ve))})}finally{}void 0!==de&&h1(de,f)}if(!gt){const de=Kr(L)||(()=>new L);f.push({provide:L,useFactory:de,deps:Bn},{provide:Q1,useValue:L,multi:!0},{provide:L_,useValue:()=>is(L),multi:!0})}const Ot=H.providers;null==Ot||gt||Ts(Ot,Ve=>{f.push(Ve)})}}return L!==m&&void 0!==m.providers}const j1=x({provide:String,useValue:x});function Am(m){return null!==m&&"object"==typeof m&&j1 in m}function g1(m){return"function"==typeof m}const v1=new Di("Set Injector scope."),b1={},lh={};let Hr;function W1(){return void 0===Hr&&(Hr=new gd),Hr}class vd{}class N_ extends vd{constructor(f,C,M,L){super(),this.parent=C,this.source=M,this.scopes=L,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,X2(f,nt=>this.processProvider(nt)),this.records.set(ch,Gu(void 0,this)),L.has("environment")&&this.records.set(vd,Gu(void 0,this));const H=this.records.get(v1);null!=H&&"string"==typeof H.value&&this.scopes.add(H.value),this.injectorDefTypes=new Set(this.get(Q1.multi,Bn,Vn.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const f of this._ngOnDestroyHooks)f.ngOnDestroy();for(const f of this._onDestroyHooks)f()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(f){this._onDestroyHooks.push(f)}runInContext(f){this.assertNotDestroyed();const C=As(this),M=J(void 0);try{return f()}finally{As(C),J(M)}}get(f,C=Nr,M=Vn.Default){this.assertNotDestroyed();const L=As(this),H=J(void 0);try{if(!(M&Vn.SkipSelf)){let gt=this.records.get(f);if(void 0===gt){const Ot=function gg(m){return"function"==typeof m||"object"==typeof m&&m instanceof Di}(f)&&Ye(f);gt=Ot&&this.injectableDefInScope(Ot)?Gu(K2(f),b1):null,this.records.set(f,gt)}if(null!=gt)return this.hydrate(f,gt)}return(M&Vn.Self?W1():this.parent).get(f,C=M&Vn.Optional&&C===Nr?null:C)}catch(nt){if("NullInjectorError"===nt.name){if((nt[t1]=nt[t1]||[]).unshift(U(f)),L)throw nt;return function kd(m,f,C,M){const L=m[t1];throw f[Up]&&L.unshift(f[Up]),m.message=function um(m,f,C,M=null){m=m&&"\n"===m.charAt(0)&&"\u0275"==m.charAt(1)?m.slice(2):m;let L=U(f);if(Array.isArray(f))L=f.map(U).join(" -> ");else if("object"==typeof f){let H=[];for(let nt in f)if(f.hasOwnProperty(nt)){let gt=f[nt];H.push(nt+":"+("string"==typeof gt?JSON.stringify(gt):U(gt)))}L=`{${H.join(", ")}}`}return`${C}${M?"("+M+")":""}[${L}]: ${m.replace(c_,"\n ")}`}("\n"+m.message,L,C,M),m.ngTokenPath=L,m[t1]=null,m}(nt,f,"R3InjectorError",this.source)}throw nt}finally{J(H),As(L)}}resolveInjectorInitializers(){const f=As(this),C=J(void 0);try{const M=this.get(L_.multi,Bn,Vn.Self);for(const L of M)L()}finally{As(f),J(C)}}toString(){const f=[],C=this.records;for(const M of C.keys())f.push(U(M));return`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new X(205,!1)}processProvider(f){let C=g1(f=q(f))?f:q(f&&f.provide);const M=function Ep(m){return Am(m)?Gu(void 0,m.useValue):Gu(Um(m),b1)}(f);if(g1(f)||!0!==f.multi)this.records.get(C);else{let L=this.records.get(C);L||(L=Gu(void 0,b1,!0),L.factory=()=>zl(L.multi),this.records.set(C,L)),C=f,L.multi.push(f)}this.records.set(C,M)}hydrate(f,C){return C.value===b1&&(C.value=lh,C.value=C.factory()),"object"==typeof C.value&&C.value&&function Zm(m){return null!==m&&"object"==typeof m&&"function"==typeof m.ngOnDestroy}(C.value)&&this._ngOnDestroyHooks.add(C.value),C.value}injectableDefInScope(f){if(!f.providedIn)return!1;const C=q(f.providedIn);return"string"==typeof C?"any"===C||this.scopes.has(C):this.injectorDefTypes.has(C)}}function K2(m){const f=Ye(m),C=null!==f?f.factory:Kr(m);if(null!==C)return C;if(m instanceof Di)throw new X(204,!1);if(m instanceof Function)return function hg(m){const f=m.length;if(f>0)throw Yl(f,"?"),new X(204,!1);const C=function xe(m){const f=m&&(m[_n]||m[si]);if(f){const C=function hn(m){if(m.hasOwnProperty("name"))return m.name;const f=(""+m).match(/^function\s*([^\s(]+)/);return null===f?"":f[1]}(m);return console.warn(`DEPRECATED: DI is instantiating a token "${C}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${C}" class.`),f}return null}(m);return null!==C?()=>C.factory(m):()=>new m}(m);throw new X(204,!1)}function Um(m,f,C){let M;if(g1(m)){const L=q(m);return Kr(L)||K2(L)}if(Am(m))M=()=>q(m.useValue);else if(function E_(m){return!(!m||!m.useFactory)}(m))M=()=>m.useFactory(...zl(m.deps||[]));else if(function q_(m){return!(!m||!m.useExisting)}(m))M=()=>is(q(m.useExisting));else{const L=q(m&&(m.useClass||m.provide));if(!function uh(m){return!!m.deps}(m))return Kr(L)||K2(L);M=()=>new L(...zl(m.deps))}return M}function Gu(m,f,C=!1){return{factory:m,value:f,multi:C?[]:void 0}}function wm(m){return!!m.\u0275providers}function X2(m,f){for(const C of m)Array.isArray(C)?X2(C,f):wm(C)?X2(C.\u0275providers,f):f(C)}class Mm{}class dh{resolveComponentFactory(f){throw function Qi(m){const f=Error(`No component factory found for ${U(m)}. Did you add it to @NgModule.entryComponents?`);return f.ngComponent=m,f}(f)}}let $1=(()=>{class m{}return m.NULL=new dh,m})();function K1(){return da(aa(),Ti())}function da(m,f){return new Pi(qn(m,f))}let Pi=(()=>{class m{constructor(C){this.nativeElement=C}}return m.__NG_ELEMENT_ID__=K1,m})();function ph(m){return m instanceof Pi?m.nativeElement:m}class ju{}let ef=(()=>{class m{}return m.__NG_ELEMENT_ID__=()=>function bg(){const m=Ti(),C=rr(aa().index,m);return(Oa(C)?C:m)[11]}(),m})(),nf=(()=>{class m{}return m.\u0275prov=ce({token:m,providedIn:"root",factory:()=>null}),m})();class af{constructor(f){this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}}const Dm=new af("14.3.0"),I_={};function Yd(m){return m.ngOriginalError}class zd{constructor(){this._console=console}handleError(f){const C=this._findOriginalError(f);this._console.error("ERROR",f),C&&this._console.error("ORIGINAL ERROR",C)}_findOriginalError(f){let C=f&&Yd(f);for(;C&&Yd(C);)C=Yd(C);return C||null}}function C1(m){return m.ownerDocument.defaultView}function Pm(m){return m.ownerDocument}function bd(m){return m instanceof Function?m():m}function gu(m,f,C){let M=m.length;for(;;){const L=m.indexOf(f,C);if(-1===L)return L;if(0===L||m.charCodeAt(L-1)<=32){const H=f.length;if(L+H===M||m.charCodeAt(L+H)<=32)return L}C=L+1}}const Na="ng-template";function bh(m,f,C){let M=0;for(;MH?"":L[gn+1].toLowerCase();const Xn=8&M?Rn:null;if(Xn&&-1!==gu(Xn,de,0)||2&M&&de!==Rn){if(jl(M))return!1;nt=!0}}}}else{if(!nt&&!jl(M)&&!jl(Ot))return!1;if(nt&&jl(Ot))continue;nt=!1,M=Ot|1&M}}return jl(M)||nt}function jl(m){return 0==(1&m)}function cf(m,f,C,M){if(null===f)return-1;let L=0;if(M||!C){let H=!1;for(;L-1)for(C++;C0?'="'+gt+'"':"")+"]"}else 8&M?L+="."+nt:4&M&&(L+=" "+nt);else""!==L&&!jl(nt)&&(f+=Rp(H,L),L=""),M=nt,H=H||!jl(M);C++}return""!==L&&(f+=Rp(H,L)),f}const Qo={};function Y_(m){xh(xo(),Ti(),za()+m,!1)}function xh(m,f,C,M){if(!M)if(3==(3&f[2])){const H=m.preOrderCheckHooks;null!==H&&Gi(f,H,C)}else{const H=m.preOrderHooks;null!==H&&so(f,H,0,C)}vr(C)}function zc(m,f=null,C=null,M){const L=Ac(m,f,C,M);return L.resolveInjectorInitializers(),L}function Ac(m,f=null,C=null,M,L=new Set){const H=[C||Bn,fg(m)];return M=M||("object"==typeof m?void 0:U(m)),new N_(H,f||W1(),M||null,L)}let ol=(()=>{class m{static create(C,M){if(Array.isArray(C))return zc({name:""},M,C,"");{const L=C.name??"";return zc({name:L},C.parent,C.providers,L)}}}return m.THROW_IF_NOT_FOUND=Nr,m.NULL=new gd,m.\u0275prov=ce({token:m,providedIn:"any",factory:()=>is(ch)}),m.__NG_ELEMENT_ID__=-1,m})();function $u(m,f=Vn.Default){const C=Ti();return null===C?is(m,f):Dr(aa(),C,q(m),f)}function xd(){throw new Error("invalid")}function Dl(m,f){return m<<17|f<<2}function Kl(m){return m>>17&32767}function np(m){return 2|m}function Bc(m){return(131068&m)>>2}function Fm(m,f){return-131069&m|f<<2}function $o(m){return 1|m}function e2(m,f){const C=m.contentQueries;if(null!==C)for(let M=0;M22&&xh(m,f,22,!1),C(M,L)}finally{vr(H)}}function a2(m,f,C){if(Ds(f)){const L=f.directiveEnd;for(let H=f.directiveStart;H0;){const C=m[--f];if("number"==typeof C&&C<0)return C}return 0})(gt)!=Ot&>.push(Ot),gt.push(M,L,nt)}}function u2(m,f){null!==m.hostBindings&&m.hostBindings(1,f)}function d2(m,f){f.flags|=2,(m.components||(m.components=[])).push(f.index)}function m2(m,f,C){if(C){if(f.exportAs)for(let M=0;M0&&lp(C)}}function lp(m){for(let M=F2(m);null!==M;M=x_(M))for(let L=10;L0&&lp(H)}const C=m[1].components;if(null!==C)for(let M=0;M0&&lp(L)}}function Yh(m,f){const C=rr(f,m),M=C[1];(function Jm(m,f){for(let C=f.length;C-1&&(Y1(f,M),Hl(C,M))}this._attachedToViewContainer=!1}yl(this._lView[1],this._lView)}onDestroy(f){Ym(this._lView[1],this._lView,null,f)}markForCheck(){Qp(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Gp(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new X(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ih(m,f){fd(m,f,f[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new X(902,!1);this._appRef=f}}class zh extends Xp{constructor(f){super(f),this._view=f}detectChanges(){const f=this._view;Gp(f[1],f,f[8],!1)}checkNoChanges(){}get context(){return null}}class pp extends $1{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const C=Nt(f);return new Wm(C,this.ngModule)}}function Gm(m){const f=[];for(let C in m)m.hasOwnProperty(C)&&f.push({propName:m[C],templateName:C});return f}class v2{constructor(f,C){this.injector=f,this.parentInjector=C}get(f,C,M){const L=this.injector.get(f,I_,M);return L!==I_||C===I_?L:this.parentInjector.get(f,C,M)}}class Wm extends Mm{constructor(f,C){super(),this.componentDef=f,this.ngModule=C,this.componentType=f.type,this.selector=function yg(m){return m.map(Ch).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!C}get inputs(){return Gm(this.componentDef.inputs)}get outputs(){return Gm(this.componentDef.outputs)}create(f,C,M,L){let H=(L=L||this.ngModule)instanceof vd?L:L?.injector;H&&null!==this.componentDef.getStandaloneInjector&&(H=this.componentDef.getStandaloneInjector(H)||H);const nt=H?new v2(f,H):f,gt=nt.get(ju,null);if(null===gt)throw new X(407,!1);const Ot=nt.get(nf,null),de=gt.createRenderer(null,this.componentDef),Ve=this.componentDef.selectors[0][0]||"div",gn=M?function Tf(m,f,C){return m.selectRootElement(f,C===tn.ShadowDom)}(de,M,this.componentDef.encapsulation):uu(de,Ve,function jm(m){const f=m.toLowerCase();return"svg"===f?"svg":"math"===f?"math":null}(Ve)),Rn=this.componentDef.onPush?288:272,Xn=ir(0,null,null,1,0,null,null,null,null,null),Ai=Au(null,Xn,null,Rn,null,null,gt,de,Ot,nt,null);let zi,$i;ys(Ai);try{const _o=function wf(m,f,C,M,L,H){const nt=C[1];C[22]=m;const Ot=ap(nt,22,2,"#host",null),de=Ot.mergedAttrs=f.hostAttrs;null!==de&&(Qm(Ot,de,!0),null!==m&&(Ne(L,m,de),null!==Ot.classes&&kp(L,m,Ot.classes),null!==Ot.styles&&u1(L,m,Ot.styles)));const Ve=M.createRenderer(m,f),gn=Au(C,Nh(f),null,f.onPush?32:16,C[22],Ot,M,Ve,H||null,null,null);return nt.firstCreatePass&&(ja(er(Ot,C),nt,f.type),d2(nt,Ot),M1(Ot,C.length,1)),up(C,gn),C[22]=gn}(gn,this.componentDef,Ai,gt,de);if(gn)if(M)Ne(de,gn,["ng-version",Dm.full]);else{const{attrs:Lo,classes:Li}=function H_(m){const f=[],C=[];let M=1,L=2;for(;M0&&kp(de,gn,Li.join(" "))}if($i=mr(Xn,22),void 0!==C){const Lo=$i.projection=[];for(let Li=0;Li=0;M--){const L=m[M];L.hostVars=f+=L.hostVars,L.hostAttrs=oe(L.hostAttrs,C=oe(C,L.hostAttrs))}}(M)}function $m(m){return m===Fi?{}:m===Bn?[]:m}function Mg(m,f){const C=m.viewQuery;m.viewQuery=C?(M,L)=>{f(M,L),C(M,L)}:f}function w(m,f){const C=m.contentQueries;m.contentQueries=C?(M,L,H)=>{f(M,L,H),C(M,L,H)}:f}function E(m,f){const C=m.hostBindings;m.hostBindings=C?(M,L)=>{f(M,L),C(M,L)}:f}let on=null;function Dn(){if(!on){const m=Cn.Symbol;if(m&&m.iterator)on=m.iterator;else{const f=Object.getOwnPropertyNames(Map.prototype);for(let C=0;Cgt(Xo(or[M.index])):M.index;let bn=null;if(!gt&&Ot&&(bn=function O3(m,f,C,M){const L=m.cleanup;if(null!=L)for(let H=0;HOt?gt[Ot]:null}"string"==typeof nt&&(H+=2)}return null}(m,f,L,M.index)),null!==bn)(bn.__ngLastListenerFn__||bn).__ngNextListenerFn__=H,bn.__ngLastListenerFn__=H,Xn=!1;else{H=L3(M,f,gn,H,!1);const or=C.listen(_o,L,H);Rn.push(H,or),Ve&&Ve.push(L,Li,Lo,Lo+1)}}else H=L3(M,f,gn,H,!1);const Ai=M.outputs;let zi;if(Xn&&null!==Ai&&(zi=Ai[L])){const $i=zi.length;if($i)for(let _o=0;_o<$i;_o+=2){const Fs=f[zi[_o]][zi[_o+1]].subscribe(H),Gf=Rn.length;Rn.push(H,Fs),Ve&&Ve.push(L,M.index,Gf,-(Gf+1))}}}function lr(m,f,C,M){try{return!1!==C(M)}catch(L){return Wp(m,L),!1}}function L3(m,f,C,M,L){return function H(nt){if(nt===Function)return M;Qp(2&m.flags?rr(m.index,f):f);let Ot=lr(f,0,M,nt),de=H.__ngNextListenerFn__;for(;de;)Ot=lr(f,0,de,nt)&&Ot,de=de.__ngNextListenerFn__;return L&&!1===Ot&&(nt.preventDefault(),nt.returnValue=!1),Ot}}function Ng(m=1){return function rc(m){return(Si.lFrame.contextLView=function Ua(m,f){for(;m>0;)f=f[15],m--;return f}(m,Si.lFrame.contextLView))[8]}(m)}function L4(m,f){let C=null;const M=function lf(m){const f=m.attrs;if(null!=f){const C=f.indexOf(5);if(0==(1&C))return f[C+1]}return null}(m);for(let L=0;L=0}const fc={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Hg(m){return m.substring(fc.key,fc.keyEnd)}function Yg(m,f){const C=fc.textEnd;return C===f?-1:(f=fc.keyEnd=function Wh(m,f,C){for(;f32;)f++;return f}(m,fc.key=f,C),n_(m,f,C))}function n_(m,f,C){for(;f=0;C=Yg(f,C))jt(m,Hg(f),!0)}function nd(m,f,C,M){const L=Ti(),H=xo(),nt=Bs(2);H.firstUpdatePass&&Ms(H,m,nt,M),f!==Qo&&wo(L,nt,f)&&$g(H,H.data[za()],L,L[11],m,L[nt+1]=function Kg(m,f){return null==m||("string"==typeof f?m+=f:"object"==typeof m&&(m=U(Ju(m)))),m}(f,C),M,nt)}function Sl(m,f,C,M){const L=xo(),H=Bs(2);L.firstUpdatePass&&Ms(L,null,H,M);const nt=Ti();if(C!==Qo&&wo(nt,H,C)){const gt=L.data[za()];if(Xg(gt,M)&&!Gg(L,H)){let Ot=M?gt.classesWithoutHost:gt.stylesWithoutHost;null!==Ot&&(C=D(Ot,C||"")),kg(L,gt,nt,C,M)}else!function I4(m,f,C,M,L,H,nt,gt){L===Qo&&(L=Bn);let Ot=0,de=0,Ve=0=m.expandoStartIndex}function Ms(m,f,C,M){const L=m.data;if(null===L[C+1]){const H=L[za()],nt=Gg(m,C);Xg(H,M)&&null===f&&!nt&&(f=!1),f=function E4(m,f,C,M){const L=Os(m);let H=M?f.residualClasses:f.residualStyles;if(null===L)0===(M?f.classBindings:f.styleBindings)&&(C=Hf(C=jg(null,m,f,C,M),f.attrs,M),H=null);else{const nt=f.directiveStylingLast;if(-1===nt||m[nt]!==L)if(C=jg(L,m,f,C,M),null===H){let Ot=function R3(m,f,C){const M=C?f.classBindings:f.styleBindings;if(0!==Bc(M))return m[Kl(M)]}(m,f,M);void 0!==Ot&&Array.isArray(Ot)&&(Ot=jg(null,m,f,Ot[1],M),Ot=Hf(Ot,f.attrs,M),function H3(m,f,C,M){m[Kl(C?f.classBindings:f.styleBindings)]=M}(m,f,M,Ot))}else H=function N4(m,f,C){let M;const L=f.directiveEnd;for(let H=1+f.directiveStylingLast;H0)&&(de=!0)}else Ve=C;if(L)if(0!==Ot){const Rn=Kl(m[gt+1]);m[M+1]=Dl(Rn,gt),0!==Rn&&(m[Rn+1]=Fm(m[Rn+1],M)),m[gt+1]=function vf(m,f){return 131071&m|f<<17}(m[gt+1],M)}else m[M+1]=Dl(gt,0),0!==gt&&(m[gt+1]=Fm(m[gt+1],M)),gt=M;else m[M+1]=Dl(Ot,0),0===gt?gt=M:m[Ot+1]=Fm(m[Ot+1],M),Ot=M;de&&(m[M+1]=np(m[M+1])),wu(m,Ve,M,!0),wu(m,Ve,M,!1),function Ig(m,f,C,M,L){const H=L?m.residualClasses:m.residualStyles;null!=H&&"string"==typeof f&&ne(H,f)>=0&&(C[M+1]=$o(C[M+1]))}(f,Ve,m,M,H),nt=Dl(gt,Ot),H?f.classBindings=nt:f.styleBindings=nt}(L,H,f,C,nt,M)}}function jg(m,f,C,M,L){let H=null;const nt=C.directiveEnd;let gt=C.directiveStylingLast;for(-1===gt?gt=C.directiveStart:gt++;gt0;){const Ot=m[L],de=Array.isArray(Ot),Ve=de?Ot[1]:Ot,gn=null===Ve;let Rn=C[L+1];Rn===Qo&&(Rn=gn?Bn:void 0);let Xn=gn?se(Rn,M):Ve===M?Rn:void 0;if(de&&!Z2(Xn)&&(Xn=se(Ot,M)),Z2(Xn)&&(gt=Xn,nt))return gt;const Ai=m[L+1];L=nt?Kl(Ai):Bc(Ai)}if(null!==f){let Ot=H?f.residualClasses:f.residualStyles;null!=Ot&&(gt=se(Ot,M))}return gt}function Z2(m){return void 0!==m}function Xg(m,f){return 0!=(m.flags&(f?16:32))}function R4(m,f=""){const C=Ti(),M=xo(),L=m+22,H=M.firstCreatePass?ap(M,L,1,f,null):M.data[L],nt=C[L]=function R2(m,f){return m.createText(f)}(C[11],f);Ka(M,C,nt,H),St(H,!1)}function t3(m){return Yf("",m,""),t3}function Yf(m,f,C){const M=Ti(),L=pc(M,m,f,C);return L!==Qo&&Uu(M,za(),L),Yf}function e3(m,f,C,M,L){const H=Ti(),nt=function Tr(m,f,C,M,L,H){const gt=vo(m,Ya(),C,L);return Bs(2),gt?f+rt(C)+M+rt(L)+H:Qo}(H,m,f,C,M,L);return nt!==Qo&&Uu(H,za(),nt),e3}function i_(m,f,C,M,L,H,nt){const gt=Ti(),Ot=function mc(m,f,C,M,L,H,nt,gt){const de=sa(m,Ya(),C,L,nt);return Bs(3),de?f+rt(C)+M+rt(L)+H+rt(nt)+gt:Qo}(gt,m,f,C,M,L,H,nt);return Ot!==Qo&&Uu(gt,za(),Ot),i_}function Xh(m,f,C,M,L,H,nt,gt,Ot){const de=Ti(),Ve=function _c(m,f,C,M,L,H,nt,gt,Ot,de){const gn=Go(m,Ya(),C,L,nt,Ot);return Bs(4),gn?f+rt(C)+M+rt(L)+H+rt(nt)+gt+rt(Ot)+de:Qo}(de,m,f,C,M,L,H,nt,gt,Ot);return Ve!==Qo&&Uu(de,za(),Ve),Xh}function n3(m,f,C,M,L,H,nt,gt,Ot,de,Ve){const gn=Ti(),Rn=function D1(m,f,C,M,L,H,nt,gt,Ot,de,Ve,gn){const Rn=Ya();let Xn=Go(m,Rn,C,L,nt,Ot);return Xn=wo(m,Rn+4,Ve)||Xn,Bs(5),Xn?f+rt(C)+M+rt(L)+H+rt(nt)+gt+rt(Ot)+de+rt(Ve)+gn:Qo}(gn,m,f,C,M,L,H,nt,gt,Ot,de,Ve);return Rn!==Qo&&Uu(gn,za(),Rn),n3}function tg(m,f,C){Sl(jt,Pl,pc(Ti(),m,f,C),!0)}function Z(m,f,C){const M=Ti();return wo(M,ea(),f)&&Jc(xo(),Ho(),M,m,f,M[11],C,!0),Z}function S(m,f,C){const M=Ti();if(wo(M,ea(),f)){const H=xo(),nt=Ho();Jc(H,nt,M,m,f,Zf(Os(H.data),nt,M),C,!0)}return S}const I=void 0;var it=["en",[["a","p"],["AM","PM"],I],[["AM","PM"],I,I],[["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"]],I,[["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"]],I,[["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}",I,"{1} 'at' {0}",I],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function V(m){const C=Math.floor(Math.abs(m)),M=m.toString().replace(/^[^.]*\.?/,"").length;return 1===C&&0===M?1:5}];let dt={};function yt(m,f,C){"string"!=typeof f&&(C=f,f=m[Ln.LocaleId]),f=f.toLowerCase().replace(/_/g,"-"),dt[f]=m,C&&(dt[f][Ln.ExtraData]=C)}function le(m){const f=function mi(m){return m.toLowerCase().replace(/_/g,"-")}(m);let C=vn(f);if(C)return C;const M=f.split("-")[0];if(C=vn(M),C)return C;if("en"===M)return it;throw new X(701,!1)}function rn(m){return le(m)[Ln.PluralCase]}function vn(m){return m in dt||(dt[m]=Cn.ng&&Cn.ng.common&&Cn.ng.common.locales&&Cn.ng.common.locales[m]),dt[m]}var Ln=(()=>((Ln=Ln||{})[Ln.LocaleId=0]="LocaleId",Ln[Ln.DayPeriodsFormat=1]="DayPeriodsFormat",Ln[Ln.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ln[Ln.DaysFormat=3]="DaysFormat",Ln[Ln.DaysStandalone=4]="DaysStandalone",Ln[Ln.MonthsFormat=5]="MonthsFormat",Ln[Ln.MonthsStandalone=6]="MonthsStandalone",Ln[Ln.Eras=7]="Eras",Ln[Ln.FirstDayOfWeek=8]="FirstDayOfWeek",Ln[Ln.WeekendRange=9]="WeekendRange",Ln[Ln.DateFormat=10]="DateFormat",Ln[Ln.TimeFormat=11]="TimeFormat",Ln[Ln.DateTimeFormat=12]="DateTimeFormat",Ln[Ln.NumberSymbols=13]="NumberSymbols",Ln[Ln.NumberFormats=14]="NumberFormats",Ln[Ln.CurrencyCode=15]="CurrencyCode",Ln[Ln.CurrencySymbol=16]="CurrencySymbol",Ln[Ln.CurrencyName=17]="CurrencyName",Ln[Ln.Currencies=18]="Currencies",Ln[Ln.Directionality=19]="Directionality",Ln[Ln.PluralCase=20]="PluralCase",Ln[Ln.ExtraData=21]="ExtraData",Ln))();const Po="en-US";let kl=Po;function K3(m,f,C,M,L){if(m=q(m),Array.isArray(m))for(let H=0;H>20;if(g1(m)||!m.multi){const Xn=new ul(Ot,L,$u),Ai=Qn(gt,f,L?Ve:Ve+Rn,gn);-1===Ai?(ja(er(de,nt),H,gt),K4(H,m,f.length),f.push(gt),de.directiveStart++,de.directiveEnd++,L&&(de.providerIndexes+=1048576),C.push(Xn),nt.push(Xn)):(C[Ai]=Xn,nt[Ai]=Xn)}else{const Xn=Qn(gt,f,Ve+Rn,gn),Ai=Qn(gt,f,Ve,Ve+Rn),zi=Xn>=0&&C[Xn],$i=Ai>=0&&C[Ai];if(L&&!$i||!L&&!zi){ja(er(de,nt),H,gt);const _o=function h8(m,f,C,M,L){const H=new ul(m,C,$u);return H.multi=[],H.index=f,H.componentProviders=0,Mo(H,L,M&&!C),H}(L?f8:_8,C.length,L,M,Ot);!L&&$i&&(C[Ai].providerFactory=_o),K4(H,m,f.length,0),f.push(gt),de.directiveStart++,de.directiveEnd++,L&&(de.providerIndexes+=1048576),C.push(_o),nt.push(_o)}else K4(H,m,Xn>-1?Xn:Ai,Mo(C[L?Ai:Xn],Ot,!L&&M));!L&&M&&$i&&C[Ai].componentProviders++}}}function K4(m,f,C,M){const L=g1(f),H=function $2(m){return!!m.useClass}(f);if(L||H){const Ot=(H?q(f.useClass):f).prototype.ngOnDestroy;if(Ot){const de=m.destroyHooks||(m.destroyHooks=[]);if(!L&&f.multi){const Ve=de.indexOf(C);-1===Ve?de.push(C,[M,Ot]):de[Ve+1].push(M,Ot)}else de.push(C,Ot)}}}function Mo(m,f,C){return C&&m.componentProviders++,m.multi.push(f)-1}function Qn(m,f,C,M){for(let L=C;L{C.providersResolver=(M,L)=>function m8(m,f,C){const M=xo();if(M.firstCreatePass){const L=Sr(m);K3(C,M.data,M.blueprint,L,!0),K3(f,M.data,M.blueprint,L,!1)}}(M,L?L(m):m,f)}}class ag{}class X3{}function g8(m,f){return new e6(m,f??null)}class e6 extends ag{constructor(f,C){super(),this._parent=C,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new pp(this);const M=pi(f);this._bootstrapComponents=bd(M.bootstrap),this._r3Injector=Ac(f,C,[{provide:ag,useValue:this},{provide:$1,useValue:this.componentFactoryResolver}],U(f),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(f)}get injector(){return this._r3Injector}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(C=>C()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class t4 extends X3{constructor(f){super(),this.moduleType=f}create(f){return new e6(this.moduleType,f)}}class v8 extends ag{constructor(f,C,M){super(),this.componentFactoryResolver=new pp(this),this.instance=null;const L=new N_([...f,{provide:ag,useValue:this},{provide:$1,useValue:this.componentFactoryResolver}],C||W1(),M,new Set(["environment"]));this.injector=L,L.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(f){this.injector.onDestroy(f)}}function n6(m,f,C=null){return new v8(m,f,C).injector}let b8=(()=>{class m{constructor(C){this._injector=C,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(C){if(!C.standalone)return null;if(!this.cachedInjectors.has(C.id)){const M=f1(0,C.type),L=M.length>0?n6([M],this._injector,`Standalone[${C.type.name}]`):null;this.cachedInjectors.set(C.id,L)}return this.cachedInjectors.get(C.id)}ngOnDestroy(){try{for(const C of this.cachedInjectors.values())null!==C&&C.destroy()}finally{this.cachedInjectors.clear()}}}return m.\u0275prov=ce({token:m,providedIn:"environment",factory:()=>new m(is(vd))}),m})();function R0(m){m.getStandaloneInjector=f=>f.get(b8).getOrCreateStandaloneInjector(m)}function Q0(m,f,C){const M=Ha()+m,L=Ti();return L[M]===Qo?io(L,M,C?f.call(C):f()):function To(m,f){return m[f]}(L,M)}function G0(m,f,C,M){return K0(Ti(),Ha(),m,f,C,M)}function j0(m,f,C,M,L){return X0(Ti(),Ha(),m,f,C,M,L)}function W0(m,f,C,M,L,H){return e4(Ti(),Ha(),m,f,C,M,L,H)}function m3(m,f){const C=m[f];return C===Qo?void 0:C}function K0(m,f,C,M,L,H){const nt=f+C;return wo(m,nt,L)?io(m,nt+1,H?M.call(H,L):M(L)):m3(m,nt+1)}function X0(m,f,C,M,L,H,nt){const gt=f+C;return vo(m,gt,L,H)?io(m,gt+2,nt?M.call(nt,L,H):M(L,H)):m3(m,gt+2)}function e4(m,f,C,M,L,H,nt,gt){const Ot=f+C;return sa(m,Ot,L,H,nt)?io(m,Ot+3,gt?M.call(gt,L,H,nt):M(L,H,nt)):m3(m,Ot+3)}function n5(m,f){const C=xo();let M;const L=m+22;C.firstCreatePass?(M=function S8(m,f){if(f)for(let C=f.length-1;C>=0;C--){const M=f[C];if(m===M.name)return M}}(f,C.pipeRegistry),C.data[L]=M,M.onDestroy&&(C.destroyHooks||(C.destroyHooks=[])).push(L,M.onDestroy)):M=C.data[L];const H=M.factory||(M.factory=Kr(M.type)),nt=J($u);try{const gt=ii(!1),Ot=H();return ii(gt),function Qh(m,f,C,M){C>=m.data.length&&(m.data[C]=null,m.blueprint[C]=null),f[C]=M}(C,Ti(),L,Ot),Ot}finally{J(nt)}}function o5(m,f,C){const M=m+22,L=Ti(),H=Fo(L,M);return _3(L,M)?K0(L,Ha(),f,H.transform,C,H):H.transform(C)}function a5(m,f,C,M){const L=m+22,H=Ti(),nt=Fo(H,L);return _3(H,L)?X0(H,Ha(),f,nt.transform,C,M,nt):nt.transform(C,M)}function r5(m,f,C,M,L){const H=m+22,nt=Ti(),gt=Fo(nt,H);return _3(nt,H)?e4(nt,Ha(),f,gt.transform,C,M,L,gt):gt.transform(C,M,L)}function n4(m,f,C,M,L,H){const nt=m+22,gt=Ti(),Ot=Fo(gt,nt);return _3(gt,nt)?function t5(m,f,C,M,L,H,nt,gt,Ot){const de=f+C;return Go(m,de,L,H,nt,gt)?io(m,de+4,Ot?M.call(Ot,L,H,nt,gt):M(L,H,nt,gt)):m3(m,de+4)}(gt,Ha(),f,Ot.transform,C,M,L,H,Ot):Ot.transform(C,M,L,H)}function _3(m,f){return m[1].data[f].pure}function r6(m){return f=>{setTimeout(m,void 0,f)}}const wd=class O8 extends l.xQ{constructor(f=!1){super(),this.__isAsync=f}emit(f){super.next(f)}subscribe(f,C,M){let L=f,H=C||(()=>null),nt=M;if(f&&"object"==typeof f){const Ot=f;L=Ot.next?.bind(Ot),H=Ot.error?.bind(Ot),nt=Ot.complete?.bind(Ot)}this.__isAsync&&(H=r6(H),L&&(L=r6(L)),nt&&(nt=r6(nt)));const gt=super.subscribe({next:L,error:H,complete:nt});return f instanceof u.w&&f.add(gt),gt}};function L8(){return this._results[Dn()]()}class i4{constructor(f=!1){this._emitDistinctChangesOnly=f,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const C=Dn(),M=i4.prototype;M[C]||(M[C]=L8)}get changes(){return this._changes||(this._changes=new wd)}get(f){return this._results[f]}map(f){return this._results.map(f)}filter(f){return this._results.filter(f)}find(f){return this._results.find(f)}reduce(f,C){return this._results.reduce(f,C)}forEach(f){this._results.forEach(f)}some(f){return this._results.some(f)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(f,C){const M=this;M.dirty=!1;const L=_s(f);(this._changesDetected=!function qs(m,f,C){if(m.length!==f.length)return!1;for(let M=0;M{class m{}return m.__NG_ELEMENT_ID__=q8,m})();const s5=f3,c5=class extends s5{constructor(f,C,M){super(),this._declarationLView=f,this._declarationTContainer=C,this.elementRef=M}createEmbeddedView(f,C){const M=this._declarationTContainer.tViews,L=Au(this._declarationLView,M,f,16,null,M.declTNode,null,null,null,null,C||null);L[17]=this._declarationLView[this._declarationTContainer.index];const nt=this._declarationLView[19];return null!==nt&&(L[19]=nt.createEmbeddedView(M)),n2(M,L,f),new Xp(L)}};function q8(){return h3(aa(),Ti())}function h3(m,f){return 4&m.type?new c5(f,m,da(m,f)):null}let o4=(()=>{class m{}return m.__NG_ELEMENT_ID__=E8,m})();function E8(){return c6(aa(),Ti())}const l5=o4,u5=class extends l5{constructor(f,C,M){super(),this._lContainer=f,this._hostTNode=C,this._hostLView=M}get element(){return da(this._hostTNode,this._hostLView)}get injector(){return new Js(this._hostTNode,this._hostLView)}get parentInjector(){const f=nr(this._hostTNode,this._hostLView);if(Je(f)){const C=Nn(f,this._hostLView),M=mn(f);return new Js(C[1].data[M+8],C)}return new Js(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const C=d5(this._lContainer);return null!==C&&C[f]||null}get length(){return this._lContainer.length-10}createEmbeddedView(f,C,M){let L,H;"number"==typeof M?L=M:null!=M&&(L=M.index,H=M.injector);const nt=f.createEmbeddedView(C||{},H);return this.insert(nt,L),nt}createComponent(f,C,M,L,H){const nt=f&&!function ld(m){return"function"==typeof m}(f);let gt;if(nt)gt=C;else{const gn=C||{};gt=gn.index,M=gn.injector,L=gn.projectableNodes,H=gn.environmentInjector||gn.ngModuleRef}const Ot=nt?f:new Wm(Nt(f)),de=M||this.parentInjector;if(!H&&null==Ot.ngModule){const Rn=(nt?de:this.parentInjector).get(vd,null);Rn&&(H=Rn)}const Ve=Ot.create(de,L,void 0,H);return this.insert(Ve.hostView,gt),Ve}insert(f,C){const M=f._lView,L=M[1];if(function Or(m){return La(m[3])}(M)){const Ve=this.indexOf(f);if(-1!==Ve)this.detach(Ve);else{const gn=M[3],Rn=new u5(gn,gn[6],gn[3]);Rn.detach(Rn.indexOf(f))}}const H=this._adjustIndex(C),nt=this._lContainer;!function Pp(m,f,C,M){const L=10+M,H=C.length;M>0&&(C[L-1][4]=f),M0)M.push(nt[gt/2]);else{const de=H[gt+1],Ve=f[-Ot];for(let gn=10;gn{class m{constructor(C){this.appInits=C,this.resolve=m4,this.reject=m4,this.initialized=!1,this.done=!1,this.donePromise=new Promise((M,L)=>{this.resolve=M,this.reject=L})}runInitializers(){if(this.initialized)return;const C=[],M=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let L=0;L{H.subscribe({complete:gt,error:Ot})});C.push(nt)}}Promise.all(C).then(()=>{M()}).catch(L=>{this.reject(L)}),0===C.length&&M(),this.initialized=!0}}return m.\u0275fac=function(C){return new(C||m)(is(P5,8))},m.\u0275prov=ce({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();const S5=new Di("AppId",{providedIn:"root",factory:function k5(){return`${_4()}${_4()}${_4()}`}});function _4(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const O5=new Di("Platform Initializer"),cb=new Di("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),L5=new Di("appBootstrapListener"),ub=new Di("AnimationModuleType");let db=(()=>{class m{log(C){console.log(C)}warn(C){console.warn(C)}}return m.\u0275fac=function(C){return new(C||m)},m.\u0275prov=ce({token:m,factory:m.\u0275fac,providedIn:"platform"}),m})();const f4=new Di("LocaleId",{providedIn:"root",factory:()=>e1(f4,Vn.Optional|Vn.SkipSelf)||function pb(){return typeof $localize<"u"&&$localize.locale||Po}()}),mb=new Di("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class fb{constructor(f,C){this.ngModuleFactory=f,this.componentFactories=C}}let hb=(()=>{class m{compileModuleSync(C){return new t4(C)}compileModuleAsync(C){return Promise.resolve(this.compileModuleSync(C))}compileModuleAndAllComponentsSync(C){const M=this.compileModuleSync(C),H=bd(pi(C).declarations).reduce((nt,gt)=>{const Ot=Nt(gt);return Ot&&nt.push(new Wm(Ot)),nt},[]);return new fb(M,H)}compileModuleAndAllComponentsAsync(C){return Promise.resolve(this.compileModuleAndAllComponentsSync(C))}clearCache(){}clearCacheFor(C){}getModuleId(C){}}return m.\u0275fac=function(C){return new(C||m)},m.\u0275prov=ce({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();const vb=(()=>Promise.resolve(0))();function h4(m){typeof Zone>"u"?vb.then(()=>{m&&m.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",m)}class k1{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:C=!1,shouldCoalesceRunChangeDetection:M=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new wd(!1),this.onMicrotaskEmpty=new wd(!1),this.onStable=new wd(!1),this.onError=new wd(!1),typeof Zone>"u")throw new X(908,!1);Zone.assertZonePatched();const L=this;if(L._nesting=0,L._outer=L._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const H=Zone.AsyncStackTaggingZoneSpec;L._inner=L._inner.fork(new H("Angular"))}Zone.TaskTrackingZoneSpec&&(L._inner=L._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(L._inner=L._inner.fork(Zone.longStackTraceZoneSpec)),L.shouldCoalesceEventChangeDetection=!M&&C,L.shouldCoalesceRunChangeDetection=M,L.lastRequestAnimationFrameId=-1,L.nativeRequestAnimationFrame=function F5(){let m=Cn.requestAnimationFrame,f=Cn.cancelAnimationFrame;if(typeof Zone<"u"&&m&&f){const C=m[Zone.__symbol__("OriginalDelegate")];C&&(m=C);const M=f[Zone.__symbol__("OriginalDelegate")];M&&(f=M)}return{nativeRequestAnimationFrame:m,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function bb(m){const f=()=>{!function g4(m){m.isCheckStableRunning||-1!==m.lastRequestAnimationFrameId||(m.lastRequestAnimationFrameId=m.nativeRequestAnimationFrame.call(Cn,()=>{m.fakeTopEventTask||(m.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{m.lastRequestAnimationFrameId=-1,w6(m),m.isCheckStableRunning=!0,Z6(m),m.isCheckStableRunning=!1},void 0,()=>{},()=>{})),m.fakeTopEventTask.invoke()}),w6(m))}(m)};m._inner=m._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(C,M,L,H,nt,gt)=>{try{return R5(m),C.invokeTask(L,H,nt,gt)}finally{(m.shouldCoalesceEventChangeDetection&&"eventTask"===H.type||m.shouldCoalesceRunChangeDetection)&&f(),H5(m)}},onInvoke:(C,M,L,H,nt,gt,Ot)=>{try{return R5(m),C.invoke(L,H,nt,gt,Ot)}finally{m.shouldCoalesceRunChangeDetection&&f(),H5(m)}},onHasTask:(C,M,L,H)=>{C.hasTask(L,H),M===L&&("microTask"==H.change?(m._hasPendingMicrotasks=H.microTask,w6(m),Z6(m)):"macroTask"==H.change&&(m.hasPendingMacrotasks=H.macroTask))},onHandleError:(C,M,L,H)=>(C.handleError(L,H),m.runOutsideAngular(()=>m.onError.emit(H)),!1)})}(L)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!k1.isInAngularZone())throw new X(909,!1)}static assertNotInAngularZone(){if(k1.isInAngularZone())throw new X(909,!1)}run(f,C,M){return this._inner.run(f,C,M)}runTask(f,C,M,L){const H=this._inner,nt=H.scheduleEventTask("NgZoneEvent: "+L,f,I5,m4,m4);try{return H.runTask(nt,C,M)}finally{H.cancelTask(nt)}}runGuarded(f,C,M){return this._inner.runGuarded(f,C,M)}runOutsideAngular(f){return this._outer.run(f)}}const I5={};function Z6(m){if(0==m._nesting&&!m.hasPendingMicrotasks&&!m.isStable)try{m._nesting++,m.onMicrotaskEmpty.emit(null)}finally{if(m._nesting--,!m.hasPendingMicrotasks)try{m.runOutsideAngular(()=>m.onStable.emit(null))}finally{m.isStable=!0}}}function w6(m){m.hasPendingMicrotasks=!!(m._hasPendingMicrotasks||(m.shouldCoalesceEventChangeDetection||m.shouldCoalesceRunChangeDetection)&&-1!==m.lastRequestAnimationFrameId)}function R5(m){m._nesting++,m.isStable&&(m.isStable=!1,m.onUnstable.emit(null))}function H5(m){m._nesting--,Z6(m)}class M6{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new wd,this.onMicrotaskEmpty=new wd,this.onStable=new wd,this.onError=new wd}run(f,C,M){return f.apply(C,M)}runGuarded(f,C,M){return f.apply(C,M)}runOutsideAngular(f){return f()}runTask(f,C,M,L){return f.apply(C,M)}}const Y5=new Di(""),z5=new Di("");let v4,V5=(()=>{class m{constructor(C,M,L){this._ngZone=C,this.registry=M,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,v4||(function Cb(m){v4=m}(L),L.addToWindow(M)),this._watchAngularEvents(),C.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{k1.assertNotInAngularZone(),h4(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())h4(()=>{for(;0!==this._callbacks.length;){let C=this._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb(this._didWork)}this._didWork=!1});else{let C=this.getPendingTasks();this._callbacks=this._callbacks.filter(M=>!M.updateCb||!M.updateCb(C)||(clearTimeout(M.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(C=>({source:C.source,creationLocation:C.creationLocation,data:C.data})):[]}addCallback(C,M,L){let H=-1;M&&M>0&&(H=setTimeout(()=>{this._callbacks=this._callbacks.filter(nt=>nt.timeoutId!==H),C(this._didWork,this.getPendingTasks())},M)),this._callbacks.push({doneCb:C,timeoutId:H,updateCb:L})}whenStable(C,M,L){if(L&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(C,M,L),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(C){this.registry.registerApplication(C,this)}unregisterApplication(C){this.registry.unregisterApplication(C)}findProviders(C,M,L){return[]}}return m.\u0275fac=function(C){return new(C||m)(is(k1),is(B5),is(z5))},m.\u0275prov=ce({token:m,factory:m.\u0275fac}),m})(),B5=(()=>{class m{constructor(){this._applications=new Map}registerApplication(C,M){this._applications.set(C,M)}unregisterApplication(C){this._applications.delete(C)}unregisterAllApplications(){this._applications.clear()}getTestability(C){return this._applications.get(C)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(C,M=!0){return v4?.findTestabilityInTree(this,C,M)??null}}return m.\u0275fac=function(C){return new(C||m)},m.\u0275prov=ce({token:m,factory:m.\u0275fac,providedIn:"platform"}),m})(),w2=null;const D6=new Di("AllowMultipleToken"),P6=new Di("PlatformDestroyListeners");class J5{constructor(f,C){this.name=f,this.token=C}}function G5(m,f,C=[]){const M=`Platform: ${f}`,L=new Di(M);return(H=[])=>{let nt=C4();if(!nt||nt.injector.get(D6,!1)){const gt=[...C,...H,{provide:L,useValue:!0}];m?m(gt):function yb(m){if(w2&&!w2.get(D6,!1))throw new X(400,!1);w2=m;const f=m.get(W5);(function Q5(m){const f=m.get(O5,null);f&&f.forEach(C=>C())})(m)}(function j5(m=[],f){return ol.create({name:f,providers:[{provide:v1,useValue:"platform"},{provide:P6,useValue:new Set([()=>w2=null])},...m]})}(gt,M))}return function Ab(m){const f=C4();if(!f)throw new X(401,!1);return f}()}}function C4(){return w2?.get(W5)??null}let W5=(()=>{class m{constructor(C){this._injector=C,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(C,M){const L=function $5(m,f){let C;return C="noop"===m?new M6:("zone.js"===m?void 0:m)||new k1(f),C}(M?.ngZone,function x4(m){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!m||!m.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!m||!m.ngZoneRunCoalescing)||!1}}(M)),H=[{provide:k1,useValue:L}];return L.run(()=>{const nt=ol.create({providers:H,parent:this.injector,name:C.moduleType.name}),gt=C.create(nt),Ot=gt.injector.get(zd,null);if(!Ot)throw new X(402,!1);return L.runOutsideAngular(()=>{const de=L.onError.subscribe({next:Ve=>{Ot.handleError(Ve)}});gt.onDestroy(()=>{v3(this._modules,gt),de.unsubscribe()})}),function K5(m,f,C){try{const M=C();return qg(M)?M.catch(L=>{throw f.runOutsideAngular(()=>m.handleError(L)),L}):M}catch(M){throw f.runOutsideAngular(()=>m.handleError(M)),M}}(Ot,L,()=>{const de=gt.injector.get(g3);return de.runInitializers(),de.donePromise.then(()=>(function Ks(m){Ie(m,"Expected localeId to be defined"),"string"==typeof m&&(kl=m.toLowerCase().replace(/_/g,"-"))}(gt.injector.get(f4,Po)||Po),this._moduleDoBootstrap(gt),gt))})})}bootstrapModule(C,M=[]){const L=S6({},M);return function xb(m,f,C){const M=new t4(C);return Promise.resolve(M)}(0,0,C).then(H=>this.bootstrapModuleFactory(H,L))}_moduleDoBootstrap(C){const M=C.injector.get(y4);if(C._bootstrapComponents.length>0)C._bootstrapComponents.forEach(L=>M.bootstrap(L));else{if(!C.instance.ngDoBootstrap)throw new X(403,!1);C.instance.ngDoBootstrap(M)}this._modules.push(C)}onDestroy(C){this._destroyListeners.push(C)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new X(404,!1);this._modules.slice().forEach(M=>M.destroy()),this._destroyListeners.forEach(M=>M());const C=this._injector.get(P6,null);C&&(C.forEach(M=>M()),C.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return m.\u0275fac=function(C){return new(C||m)(is(ol))},m.\u0275prov=ce({token:m,factory:m.\u0275fac,providedIn:"platform"}),m})();function S6(m,f){return Array.isArray(f)?f.reduce(S6,m):{...m,...f}}let y4=(()=>{class m{constructor(C,M,L){this._zone=C,this._injector=M,this._exceptionHandler=L,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const H=new g.y(gt=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{gt.next(this._stable),gt.complete()})}),nt=new g.y(gt=>{let Ot;this._zone.runOutsideAngular(()=>{Ot=this._zone.onStable.subscribe(()=>{k1.assertNotInAngularZone(),h4(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,gt.next(!0))})})});const de=this._zone.onUnstable.subscribe(()=>{k1.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{gt.next(!1)}))});return()=>{Ot.unsubscribe(),de.unsubscribe()}});this.isStable=(0,h.T)(H,nt.pipe((0,t.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(C,M){const L=C instanceof Mm;if(!this._injector.get(g3).done)throw!L&&yn(C),new X(405,false);let nt;nt=L?C:this._injector.get($1).resolveComponentFactory(C),this.componentTypes.push(nt.componentType);const gt=function b4(m){return m.isBoundToModule}(nt)?void 0:this._injector.get(ag),de=nt.create(ol.NULL,[],M||nt.selector,gt),Ve=de.location.nativeElement,gn=de.injector.get(Y5,null);return gn?.registerApplication(Ve),de.onDestroy(()=>{this.detachView(de.hostView),v3(this.components,de),gn?.unregisterApplication(Ve)}),this._loadComponent(de),de}tick(){if(this._runningTick)throw new X(101,!1);try{this._runningTick=!0;for(let C of this._views)C.detectChanges()}catch(C){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(C))}finally{this._runningTick=!1}}attachView(C){const M=C;this._views.push(M),M.attachToAppRef(this)}detachView(C){const M=C;v3(this._views,M),M.detachFromAppRef()}_loadComponent(C){this.attachView(C.hostView),this.tick(),this.components.push(C),this._injector.get(L5,[]).concat(this._bootstrapListeners).forEach(L=>L(C))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(C=>C()),this._views.slice().forEach(C=>C.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(C){return this._destroyListeners.push(C),()=>v3(this._destroyListeners,C)}destroy(){if(this._destroyed)throw new X(406,!1);const C=this._injector;C.destroy&&!C.destroyed&&C.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return m.\u0275fac=function(C){return new(C||m)(is(k1),is(vd),is(zd))},m.\u0275prov=ce({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();function v3(m,f){const C=m.indexOf(f);C>-1&&m.splice(C,1)}let tv=!0;function wb(){tv=!1}let iv=(()=>{class m{}return m.__NG_ELEMENT_ID__=Db,m})();function Db(m){return function ov(m,f,C){if(vc(m)&&!C){const M=rr(m.index,f);return new Xp(M,M)}return 47&m.type?new Xp(f[G],f):null}(aa(),Ti(),16==(16&m))}class sv{constructor(){}supports(f){return Jn(f)}create(f){return new qb(f)}}const Lb=(m,f)=>f;class qb{constructor(f){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=f||Lb}forEachItem(f){let C;for(C=this._itHead;null!==C;C=C._next)f(C)}forEachOperation(f){let C=this._itHead,M=this._removalsHead,L=0,H=null;for(;C||M;){const nt=!M||C&&C.currentIndex{nt=this._trackByFn(L,gt),null!==C&&Object.is(C.trackById,nt)?(M&&(C=this._verifyReinsertion(C,gt,nt,L)),Object.is(C.item,gt)||this._addIdentityChange(C,gt)):(C=this._mismatch(C,gt,nt,L),M=!0),C=C._next,L++}),this.length=L;return this._truncate(C),this.collection=f,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let f;for(f=this._previousItHead=this._itHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._additionsHead;null!==f;f=f._nextAdded)f.previousIndex=f.currentIndex;for(this._additionsHead=this._additionsTail=null,f=this._movesHead;null!==f;f=f._nextMoved)f.previousIndex=f.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(f,C,M,L){let H;return null===f?H=this._itTail:(H=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(M,null))?(Object.is(f.item,C)||this._addIdentityChange(f,C),this._reinsertAfter(f,H,L)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(M,L))?(Object.is(f.item,C)||this._addIdentityChange(f,C),this._moveAfter(f,H,L)):f=this._addAfter(new Eb(C,M),H,L),f}_verifyReinsertion(f,C,M,L){let H=null===this._unlinkedRecords?null:this._unlinkedRecords.get(M,null);return null!==H?f=this._reinsertAfter(H,f._prev,L):f.currentIndex!=L&&(f.currentIndex=L,this._addToMoves(f,L)),f}_truncate(f){for(;null!==f;){const C=f._next;this._addToRemovals(this._unlink(f)),f=C}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(f,C,M){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);const L=f._prevRemoved,H=f._nextRemoved;return null===L?this._removalsHead=H:L._nextRemoved=H,null===H?this._removalsTail=L:H._prevRemoved=L,this._insertAfter(f,C,M),this._addToMoves(f,M),f}_moveAfter(f,C,M){return this._unlink(f),this._insertAfter(f,C,M),this._addToMoves(f,M),f}_addAfter(f,C,M){return this._insertAfter(f,C,M),this._additionsTail=null===this._additionsTail?this._additionsHead=f:this._additionsTail._nextAdded=f,f}_insertAfter(f,C,M){const L=null===C?this._itHead:C._next;return f._next=L,f._prev=C,null===L?this._itTail=f:L._prev=f,null===C?this._itHead=f:C._next=f,null===this._linkedRecords&&(this._linkedRecords=new E6),this._linkedRecords.put(f),f.currentIndex=M,f}_remove(f){return this._addToRemovals(this._unlink(f))}_unlink(f){null!==this._linkedRecords&&this._linkedRecords.remove(f);const C=f._prev,M=f._next;return null===C?this._itHead=M:C._next=M,null===M?this._itTail=C:M._prev=C,f}_addToMoves(f,C){return f.previousIndex===C||(this._movesTail=null===this._movesTail?this._movesHead=f:this._movesTail._nextMoved=f),f}_addToRemovals(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new E6),this._unlinkedRecords.put(f),f.currentIndex=null,f._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=f,f._prevRemoved=null):(f._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=f),f}_addIdentityChange(f,C){return f.item=C,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=f:this._identityChangesTail._nextIdentityChange=f,f}}class Eb{constructor(f,C){this.item=f,this.trackById=C,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Nb{constructor(){this._head=null,this._tail=null}add(f){null===this._head?(this._head=this._tail=f,f._nextDup=null,f._prevDup=null):(this._tail._nextDup=f,f._prevDup=this._tail,f._nextDup=null,this._tail=f)}get(f,C){let M;for(M=this._head;null!==M;M=M._nextDup)if((null===C||C<=M.currentIndex)&&Object.is(M.trackById,f))return M;return null}remove(f){const C=f._prevDup,M=f._nextDup;return null===C?this._head=M:C._nextDup=M,null===M?this._tail=C:M._prevDup=C,null===this._head}}class E6{constructor(){this.map=new Map}put(f){const C=f.trackById;let M=this.map.get(C);M||(M=new Nb,this.map.set(C,M)),M.add(f)}get(f,C){const L=this.map.get(f);return L?L.get(f,C):null}remove(f){const C=f.trackById;return this.map.get(C).remove(f)&&this.map.delete(C),f}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function cv(m,f,C){const M=m.previousIndex;if(null===M)return M;let L=0;return C&&M{if(C&&C.key===L)this._maybeAddToChanges(C,M),this._appendAfter=C,C=C._next;else{const H=this._getOrCreateRecordForKey(L,M);C=this._insertBeforeOrAppend(C,H)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(let M=C;null!==M;M=M._nextRemoved)M===this._mapHead&&(this._mapHead=null),this._records.delete(M.key),M._nextRemoved=M._next,M.previousValue=M.currentValue,M.currentValue=null,M._prev=null,M._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(f,C){if(f){const M=f._prev;return C._next=f,C._prev=M,f._prev=C,M&&(M._next=C),f===this._mapHead&&(this._mapHead=C),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=C,C._prev=this._appendAfter):this._mapHead=C,this._appendAfter=C,null}_getOrCreateRecordForKey(f,C){if(this._records.has(f)){const L=this._records.get(f);this._maybeAddToChanges(L,C);const H=L._prev,nt=L._next;return H&&(H._next=nt),nt&&(nt._prev=H),L._next=null,L._prev=null,L}const M=new Ib(f);return this._records.set(f,M),M.currentValue=C,this._addToAdditions(M),M}_reset(){if(this.isDirty){let f;for(this._previousMapHead=this._mapHead,f=this._previousMapHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._changesHead;null!==f;f=f._nextChanged)f.previousValue=f.currentValue;for(f=this._additionsHead;null!=f;f=f._nextAdded)f.previousValue=f.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(f,C){Object.is(C,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=C,this._addToChanges(f))}_addToAdditions(f){null===this._additionsHead?this._additionsHead=this._additionsTail=f:(this._additionsTail._nextAdded=f,this._additionsTail=f)}_addToChanges(f){null===this._changesHead?this._changesHead=this._changesTail=f:(this._changesTail._nextChanged=f,this._changesTail=f)}_forEach(f,C){f instanceof Map?f.forEach(C):Object.keys(f).forEach(M=>C(f[M],M))}}class Ib{constructor(f){this.key=f,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function N6(){return new F6([new sv])}let F6=(()=>{class m{constructor(C){this.factories=C}static create(C,M){if(null!=M){const L=M.factories.slice();C=C.concat(L)}return new m(C)}static extend(C){return{provide:m,useFactory:M=>m.create(C,M||N6()),deps:[[m,new n1,new os]]}}find(C){const M=this.factories.find(L=>L.supports(C));if(null!=M)return M;throw new X(901,!1)}}return m.\u0275prov=ce({token:m,providedIn:"root",factory:N6}),m})();function uv(){return new b3([new lv])}let b3=(()=>{class m{constructor(C){this.factories=C}static create(C,M){if(M){const L=M.factories.slice();C=C.concat(L)}return new m(C)}static extend(C){return{provide:m,useFactory:M=>m.create(C,M||uv()),deps:[[m,new n1,new os]]}}find(C){const M=this.factories.find(L=>L.supports(C));if(M)return M;throw new X(901,!1)}}return m.\u0275prov=ce({token:m,providedIn:"root",factory:uv}),m})();const Yb=G5(null,"core",[]);let dv=(()=>{class m{constructor(C){}}return m.\u0275fac=function(C){return new(C||m)(is(y4))},m.\u0275mod=sn({type:m}),m.\u0275inj=Te({}),m})();function zb(m){return"boolean"==typeof m?m:null!=m&&"false"!==m}},85863:(K,W,_)=>{"use strict";function l(k){for(let O in k){let q=k[O]??"";switch(O){case"display":k.display="flex"===q?["-webkit-flex","flex"]:"inline-flex"===q?["-webkit-inline-flex","inline-flex"]:q;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":k["-webkit-"+O]=q;break;case"flex-direction":k["-webkit-flex-direction"]=q,k["flex-direction"]=q;break;case"order":k.order=k["-webkit-"+O]=isNaN(+q)?"0":q}}return k}_.d(W,{Ar:()=>h,GK:()=>l,iQ:()=>g,kt:()=>D,tj:()=>x});const u="inline",g=["row","column","row-reverse","column-reverse"];function h(k){let[O,q,Y]=t(k);return function U(k,O=null,q=!1){return{display:q?"inline-flex":"flex","box-sizing":"border-box","flex-direction":k,"flex-wrap":O||null}}(O,q,Y)}function t(k){k=k?.toLowerCase()??"";let[O,q,Y]=k.split(" ");return g.find($=>$===O)||(O=g[0]),q===u&&(q=Y!==u?Y:"",Y=u),[O,T(q),!!Y]}function x(k){let[O]=t(k);return O.indexOf("row")>-1}function T(k){if(k)switch(k.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":k="wrap-reverse";break;case"no":case"none":case"nowrap":k="nowrap";break;default:k="wrap"}return k}function D(k,...O){if(null==k)throw TypeError("Cannot convert undefined or null to object");for(let q of O)if(null!=q)for(let Y in q)q.hasOwnProperty(Y)&&(k[Y]=q[Y]);return k}},32233:(K,W,_)=>{"use strict";_.d(W,{Bs:()=>Tt,FL:()=>Bn,IR:()=>Y,Ot:()=>Yn,QI:()=>Vt,RK:()=>Bt,WU:()=>rt,g5:()=>at,iR:()=>J,wY:()=>ft,yB:()=>ze});var l=_(94650),u=_(36895),g=_(591),h=_(56498),t=_(36787),x=_(8929),T=_(85863),U=_(92198),D=_(22868);const O={provide:l.tb,useFactory:function k(Sn,On){return()=>{if((0,u.NF)(On)){const He=Array.from(Sn.querySelectorAll(`[class*=${q}]`)),cn=/\bflex-layout-.+?\b/g;He.forEach(qe=>{qe.classList.contains(`${q}ssr`)&&qe.parentNode?qe.parentNode.removeChild(qe):qe.className.replace(cn,"")})}}},deps:[u.K0,l.Lbi],multi:!0},q="flex-layout-";let Y=(()=>{class Sn{}return Sn.\u0275fac=function(He){return new(He||Sn)},Sn.\u0275mod=l.oAB({type:Sn}),Sn.\u0275inj=l.cJS({providers:[O]}),Sn})();class ${constructor(On=!1,He="all",cn="",qe="",we=0){this.matches=On,this.mediaQuery=He,this.mqAlias=cn,this.suffix=qe,this.priority=we,this.property=""}clone(){return new $(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let X=(()=>{class Sn{constructor(){this.stylesheet=new Map}addStyleToElement(He,cn,qe){const we=this.stylesheet.get(He);we?we.set(cn,qe):this.stylesheet.set(He,new Map([[cn,qe]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(He,cn){const qe=this.stylesheet.get(He);let we="";if(qe){const Qe=qe.get(cn);("number"==typeof Qe||"string"==typeof Qe)&&(we=Qe+"")}return we}}return Sn.\u0275fac=function(He){return new(He||Sn)},Sn.\u0275prov=l.Yz7({token:Sn,factory:Sn.\u0275fac,providedIn:"root"}),Sn})();const at={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},rt=new l.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>at}),ft=new l.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Tt=new l.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function qt(Sn,On){return Sn=Sn?.clone()??new $,On&&(Sn.mqAlias=On.alias,Sn.mediaQuery=On.mediaQuery,Sn.suffix=On.suffix,Sn.priority=On.priority),Sn}class Vt{constructor(){this.shouldCache=!0}sideEffect(On,He,cn){}}let Bt=(()=>{class Sn{constructor(He,cn,qe,we){this._serverStylesheet=He,this._serverModuleLoaded=cn,this._platformId=qe,this.layoutConfig=we}applyStyleToElement(He,cn,qe=null){let we={};"string"==typeof cn&&(we[cn]=qe,cn=we),we=this.layoutConfig.disableVendorPrefixes?cn:(0,T.GK)(cn),this._applyMultiValueStyleToElement(we,He)}applyStyleToElements(He,cn=[]){const qe=this.layoutConfig.disableVendorPrefixes?He:(0,T.GK)(He);cn.forEach(we=>{this._applyMultiValueStyleToElement(qe,we)})}getFlowDirection(He){const cn="flex-direction";let qe=this.lookupStyle(He,cn);return[qe||"row",this.lookupInlineStyle(He,cn)||(0,u.PM)(this._platformId)&&this._serverModuleLoaded?qe:""]}hasWrap(He){return"wrap"===this.lookupStyle(He,"flex-wrap")}lookupAttributeValue(He,cn){return He.getAttribute(cn)??""}lookupInlineStyle(He,cn){return(0,u.NF)(this._platformId)?He.style.getPropertyValue(cn):function bt(Sn,On){return ut(Sn)[On]??""}(He,cn)}lookupStyle(He,cn,qe=!1){let we="";return He&&((we=this.lookupInlineStyle(He,cn))||((0,u.NF)(this._platformId)?qe||(we=getComputedStyle(He).getPropertyValue(cn)):this._serverModuleLoaded&&(we=this._serverStylesheet.getStyleForElement(He,cn)))),we?we.trim():""}_applyMultiValueStyleToElement(He,cn){Object.keys(He).sort().forEach(qe=>{const we=He[qe],Qe=Array.isArray(we)?we:[we];Qe.sort();for(let te of Qe)te=te?te+"":"",(0,u.NF)(this._platformId)||!this._serverModuleLoaded?(0,u.NF)(this._platformId)?cn.style.setProperty(qe,te):xt(cn,qe,te):this._serverStylesheet.addStyleToElement(cn,qe,te)})}}return Sn.\u0275fac=function(He){return new(He||Sn)(l.LFG(X),l.LFG(ft),l.LFG(l.Lbi),l.LFG(rt))},Sn.\u0275prov=l.Yz7({token:Sn,factory:Sn.\u0275fac,providedIn:"root"}),Sn})();function xt(Sn,On,He){On=On.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const cn=ut(Sn);cn[On]=He??"",function ht(Sn,On){let He="";for(const cn in On)On[cn]&&(He+=`${cn}:${On[cn]};`);Sn.setAttribute("style",He)}(Sn,cn)}function ut(Sn){const On={},He=Sn.getAttribute("style");if(He){const cn=He.split(/;+/g);for(let qe=0;qe0){const Qe=we.indexOf(":");if(-1===Qe)throw new Error(`Invalid CSS style: ${we}`);On[we.substr(0,Qe).trim()]=we.substr(Qe+1).trim()}}}return On}function Mt(Sn,On){return(On&&On.priority||0)-(Sn&&Sn.priority||0)}function It(Sn,On){return(Sn.priority||0)-(On.priority||0)}let wt=(()=>{class Sn{constructor(He,cn,qe){this._zone=He,this._platformId=cn,this._document=qe,this.source=new g.X(new $(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const He=[];return this.registry.forEach((cn,qe)=>{cn.matches&&He.push(qe)}),He}isActive(He){return this.registry.get(He)?.matches??this.registerQuery(He).some(qe=>qe.matches)}observe(He,cn=!1){if(He&&He.length){const qe=this._observable$.pipe((0,U.h)(Qe=>!cn||He.indexOf(Qe.mediaQuery)>-1)),we=new h.y(Qe=>{const te=this.registerQuery(He);if(te.length){const Ee=te.pop();te.forEach($t=>{Qe.next($t)}),this.source.next(Ee)}Qe.complete()});return(0,t.T)(we,qe)}return this._observable$}registerQuery(He){const cn=Array.isArray(He)?He:[He],qe=[];return function Ft(Sn,On){const He=Sn.filter(cn=>!ee[cn]);if(He.length>0){const cn=He.join(", ");try{const qe=On.createElement("style");qe.setAttribute("type","text/css"),qe.styleSheet||qe.appendChild(On.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${cn} {.fx-query-test{ }}\n`)),On.head.appendChild(qe),He.forEach(we=>ee[we]=qe)}catch(qe){console.error(qe)}}}(cn,this._document),cn.forEach(we=>{const Qe=Ee=>{this._zone.run(()=>this.source.next(new $(Ee.matches,we)))};let te=this.registry.get(we);te||(te=this.buildMQL(we),te.addListener(Qe),this.pendingRemoveListenerFns.push(()=>te.removeListener(Qe)),this.registry.set(we,te)),te.matches&&qe.push(new $(!0,we))}),qe}ngOnDestroy(){let He;for(;He=this.pendingRemoveListenerFns.pop();)He()}buildMQL(He){return function pe(Sn,On){return On&&window.matchMedia("all").addListener?window.matchMedia(Sn):function _e(Sn){const On=new EventTarget;return On.matches="all"===Sn||""===Sn,On.media=Sn,On.addListener=()=>{},On.removeListener=()=>{},On.addEventListener=()=>{},On.dispatchEvent=()=>!1,On.onchange=null,On}(Sn)}(He,(0,u.NF)(this._platformId))}}return Sn.\u0275fac=function(He){return new(He||Sn)(l.LFG(l.R0b),l.LFG(l.Lbi),l.LFG(u.K0))},Sn.\u0275prov=l.Yz7({token:Sn,factory:Sn.\u0275fac,providedIn:"root"}),Sn})();const ee={},Ze=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],Oe="(orientation: portrait) and (max-width: 599.98px)",Ie="(orientation: landscape) and (max-width: 959.98px)",Rt="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",fe="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Kt="(orientation: portrait) and (min-width: 840px)",ue="(orientation: landscape) and (min-width: 1280px)",ce={HANDSET:`${Oe}, ${Ie}`,TABLET:`${Rt} , ${fe}`,WEB:`${Kt}, ${ue} `,HANDSET_PORTRAIT:`${Oe}`,TABLET_PORTRAIT:`${Rt} `,WEB_PORTRAIT:`${Kt}`,HANDSET_LANDSCAPE:`${Ie}`,TABLET_LANDSCAPE:`${fe}`,WEB_LANDSCAPE:`${ue}`},je=[{alias:"handset",priority:2e3,mediaQuery:ce.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ce.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ce.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ce.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ce.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ce.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ce.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ce.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ce.WEB_PORTRAIT,overlapping:!0}],Te=/(\.|-|_)/g;function Ye(Sn){let On=Sn.length>0?Sn.charAt(0):"",He=Sn.length>1?Sn.slice(1):"";return On.toUpperCase()+He}const hn=new l.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Sn=(0,l.f3M)(Tt),On=(0,l.f3M)(rt),He=[].concat.apply([],(Sn||[]).map(qe=>Array.isArray(qe)?qe:[qe]));return function xe(Sn,On=[]){const He={};return Sn.forEach(cn=>{He[cn.alias]=cn}),On.forEach(cn=>{He[cn.alias]?(0,T.kt)(He[cn.alias],cn):He[cn.alias]=cn}),function An(Sn){return Sn.forEach(On=>{On.suffix||(On.suffix=function fn(Sn){return Sn.replace(Te,"|").split("|").map(Ye).join("")}(On.alias),On.overlapping=!!On.overlapping)}),Sn}(Object.keys(He).map(cn=>He[cn]))}((On.disableDefaultBps?[]:Ze).concat(On.addOrientationBps?je:[]),He)}});let Re=(()=>{class Sn{constructor(He){this.findByMap=new Map,this.items=[...He].sort(It)}findByAlias(He){return He?this.findWithPredicate(He,cn=>cn.alias===He):null}findByQuery(He){return this.findWithPredicate(He,cn=>cn.mediaQuery===He)}get overlappings(){return this.items.filter(He=>He.overlapping)}get aliases(){return this.items.map(He=>He.alias)}get suffixes(){return this.items.map(He=>He?.suffix??"")}findWithPredicate(He,cn){let qe=this.findByMap.get(He);return qe||(qe=this.items.find(cn)??null,this.findByMap.set(He,qe)),qe??null}}return Sn.\u0275fac=function(He){return new(He||Sn)(l.LFG(hn))},Sn.\u0275prov=l.Yz7({token:Sn,factory:Sn.\u0275fac,providedIn:"root"}),Sn})();const _n="print",Kn={alias:_n,mediaQuery:_n,priority:1e3};let si=(()=>{class Sn{constructor(He,cn,qe){this.breakpoints=He,this.layoutConfig=cn,this._document=qe,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new oi,this.deactivations=[]}withPrintQuery(He){return[...He,_n]}isPrintEvent(He){return He.mediaQuery.startsWith(_n)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(He=>this.breakpoints.findByAlias(He)).filter(He=>null!==He)}getEventBreakpoints({mediaQuery:He}){const cn=this.breakpoints.findByQuery(He);return(cn?[...this.printBreakPoints,cn]:this.printBreakPoints).sort(Mt)}updateEvent(He){let cn=this.breakpoints.findByQuery(He.mediaQuery);return this.isPrintEvent(He)&&(cn=this.getEventBreakpoints(He)[0],He.mediaQuery=cn?.mediaQuery??""),qt(He,cn)}registerBeforeAfterPrintHooks(He){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const cn=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(He,this.getEventBreakpoints(new $(!0,_n))),He.updateStyles())},qe=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(He),He.updateStyles())};this._document.defaultView.addEventListener("beforeprint",cn),this._document.defaultView.addEventListener("afterprint",qe),this.beforePrintEventListeners.push(cn),this.afterPrintEventListeners.push(qe)}interceptEvents(He){return cn=>{this.isPrintEvent(cn)?cn.matches&&!this.isPrinting?(this.startPrinting(He,this.getEventBreakpoints(cn)),He.updateStyles()):!cn.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(He),He.updateStyles()):this.collectActivations(He,cn)}}blockPropagation(){return He=>!(this.isPrinting||this.isPrintEvent(He))}startPrinting(He,cn){this.isPrinting=!0,this.formerActivations=He.activatedBreakpoints,He.activatedBreakpoints=this.queue.addPrintBreakpoints(cn)}stopPrinting(He){He.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(He,cn){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!cn.matches){const qe=this.breakpoints.findByQuery(cn.mediaQuery);if(qe){const we=this.formerActivations&&this.formerActivations.includes(qe),Qe=!this.formerActivations&&He.activatedBreakpoints.includes(qe);(we||Qe)&&(this.deactivations.push(qe),this.deactivations.sort(Mt))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(He=>this._document.defaultView.removeEventListener("beforeprint",He)),this.afterPrintEventListeners.forEach(He=>this._document.defaultView.removeEventListener("afterprint",He)))}}return Sn.\u0275fac=function(He){return new(He||Sn)(l.LFG(Re),l.LFG(rt),l.LFG(u.K0))},Sn.\u0275prov=l.Yz7({token:Sn,factory:Sn.\u0275fac,providedIn:"root"}),Sn})();class oi{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(On){return On.push(Kn),On.sort(Mt),On.forEach(He=>this.addBreakpoint(He)),this.printBreakpoints}addBreakpoint(On){On&&void 0===this.printBreakpoints.find(cn=>cn.mediaQuery===On.mediaQuery)&&(this.printBreakpoints=function Vn(Sn){return Sn?.mediaQuery.startsWith(_n)??!1}(On)?[On,...this.printBreakpoints]:[...this.printBreakpoints,On])}clear(){this.printBreakpoints=[]}}let ze=(()=>{class Sn{constructor(He,cn,qe){this.matchMedia=He,this.breakpoints=cn,this.hook=qe,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new x.xQ,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(He){this._activatedBreakpoints=[...He]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(He){this._useFallbacks=He}onMediaChange(He){const cn=this.findByQuery(He.mediaQuery);if(cn){He=qt(He,cn);const qe=this.activatedBreakpoints.indexOf(cn);He.matches&&-1===qe?(this._activatedBreakpoints.push(cn),this._activatedBreakpoints.sort(Mt),this.updateStyles()):!He.matches&&-1!==qe&&(this._activatedBreakpoints.splice(qe,1),this._activatedBreakpoints.sort(Mt),this.updateStyles())}}init(He,cn,qe,we,Qe=[]){Wt(this.updateMap,He,cn,qe),Wt(this.clearMap,He,cn,we),this.buildElementKeyMap(He,cn),this.watchExtraTriggers(He,cn,Qe)}getValue(He,cn,qe){const we=this.elementMap.get(He);if(we){const Qe=void 0!==qe?we.get(qe):this.getActivatedValues(we,cn);if(Qe)return Qe.get(cn)}}hasValue(He,cn){const qe=this.elementMap.get(He);if(qe){const we=this.getActivatedValues(qe,cn);if(we)return void 0!==we.get(cn)||!1}return!1}setValue(He,cn,qe,we){let Qe=this.elementMap.get(He);if(Qe){const Ee=(Qe.get(we)??new Map).set(cn,qe);Qe.set(we,Ee),this.elementMap.set(He,Qe)}else Qe=(new Map).set(we,(new Map).set(cn,qe)),this.elementMap.set(He,Qe);const te=this.getValue(He,cn);void 0!==te&&this.updateElement(He,cn,te)}trackValue(He,cn){return this.subject.asObservable().pipe((0,U.h)(qe=>qe.element===He&&qe.key===cn))}updateStyles(){this.elementMap.forEach((He,cn)=>{const qe=new Set(this.elementKeyMap.get(cn));let we=this.getActivatedValues(He);we&&we.forEach((Qe,te)=>{this.updateElement(cn,te,Qe),qe.delete(te)}),qe.forEach(Qe=>{if(we=this.getActivatedValues(He,Qe),we){const te=we.get(Qe);this.updateElement(cn,Qe,te)}else this.clearElement(cn,Qe)})})}clearElement(He,cn){const qe=this.clearMap.get(He);if(qe){const we=qe.get(cn);we&&(we(),this.subject.next({element:He,key:cn,value:""}))}}updateElement(He,cn,qe){const we=this.updateMap.get(He);if(we){const Qe=we.get(cn);Qe&&(Qe(qe),this.subject.next({element:He,key:cn,value:qe}))}}releaseElement(He){const cn=this.watcherMap.get(He);cn&&(cn.forEach(we=>we.unsubscribe()),this.watcherMap.delete(He));const qe=this.elementMap.get(He);qe&&(qe.forEach((we,Qe)=>qe.delete(Qe)),this.elementMap.delete(He))}triggerUpdate(He,cn){const qe=this.elementMap.get(He);if(qe){const we=this.getActivatedValues(qe,cn);we&&(cn?this.updateElement(He,cn,we.get(cn)):we.forEach((Qe,te)=>this.updateElement(He,te,Qe)))}}buildElementKeyMap(He,cn){let qe=this.elementKeyMap.get(He);qe||(qe=new Set,this.elementKeyMap.set(He,qe)),qe.add(cn)}watchExtraTriggers(He,cn,qe){if(qe&&qe.length){let we=this.watcherMap.get(He);if(we||(we=new Map,this.watcherMap.set(He,we)),!we.get(cn)){const te=(0,t.T)(...qe).subscribe(()=>{const Ee=this.getValue(He,cn);this.updateElement(He,cn,Ee)});we.set(cn,te)}}}findByQuery(He){return this.breakpoints.findByQuery(He)}getActivatedValues(He,cn){for(let we=0;wecn.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(He)).pipe((0,D.b)(this.hook.interceptEvents(this)),(0,U.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Sn.\u0275fac=function(He){return new(He||Sn)(l.LFG(wt),l.LFG(Re),l.LFG(si))},Sn.\u0275prov=l.Yz7({token:Sn,factory:Sn.\u0275fac,providedIn:"root"}),Sn})();function Wt(Sn,On,He,cn){if(void 0!==cn){const qe=Sn.get(On)??new Map;qe.set(He,cn),Sn.set(On,qe)}}let J=(()=>{class Sn{constructor(He,cn,qe,we){this.elementRef=He,this.styleBuilder=cn,this.styler=qe,this.marshal=we,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new x.xQ,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(He){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,He,this.marshal.activatedAlias)}ngOnChanges(He){Object.keys(He).forEach(cn=>{if(-1!==this.inputs.indexOf(cn)){const qe=cn.split(".").slice(1).join(".");this.setValue(He[cn].currentValue,qe)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(He=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),He)}addStyles(He,cn){const qe=this.styleBuilder,we=qe.shouldCache;let Qe=this.styleCache.get(He);(!Qe||!we)&&(Qe=qe.buildStyles(He,cn),we&&this.styleCache.set(He,Qe)),this.mru={...Qe},this.applyStyleToElement(Qe),qe.sideEffect(He,Qe,cn)}clearStyles(){Object.keys(this.mru).forEach(He=>{this.mru[He]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(He,cn=!1){if(He){const[qe,we]=this.styler.getFlowDirection(He);if(!we&&cn){const Qe=(0,T.Ar)(qe);this.styler.applyStyleToElements(Qe,[He])}return qe.trim()}return"row"}hasWrap(He){return this.styler.hasWrap(He)}applyStyleToElement(He,cn,qe=this.nativeElement){this.styler.applyStyleToElement(qe,He,cn)}setValue(He,cn){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,He,cn)}updateWithValue(He){this.currentValue!==He&&(this.addStyles(He),this.currentValue=He)}}return Sn.\u0275fac=function(He){return new(He||Sn)(l.Y36(l.SBq),l.Y36(Vt),l.Y36(Bt),l.Y36(ze))},Sn.\u0275dir=l.lG2({type:Sn,features:[l.TTD]}),Sn})();function Yn(Sn,On="1",He="1"){let cn=[On,He,Sn],qe=Sn.indexOf("calc");if(qe>0){cn[2]=fi(Sn.substring(qe).trim());let we=Sn.substr(0,qe).trim().split(" ");2==we.length&&(cn[0]=we[0],cn[1]=we[1])}else if(0==qe)cn[2]=fi(Sn.trim());else{let we=Sn.split(" ");cn=3===we.length?we:[On,He,Sn]}return cn}function fi(Sn){return Sn.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Bn(Sn,On){if(void 0===On)return Sn;const He=cn=>{const qe=+cn.slice(0,-"x".length);return Sn.endsWith("x")&&!isNaN(qe)?`${qe*On.value}${On.unit}`:Sn};return Sn.includes(" ")?Sn.split(" ").map(He).join(" "):He(Sn)}EventTarget},55829:(K,W,_)=>{"use strict";_.d(W,{Zl:()=>pe,aT:()=>Ie,b8:()=>Bt,oO:()=>at});var l=_(94650),u=_(32233),g=_(36895),h=_(21281),t=_(7625),x=_(11481);let Y=(()=>{class Rt extends u.iR{constructor(Kt,ue,ce,je,Te,Ye,fn){super(Kt,null,ue,ce),this.ngClassInstance=fn,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new g.mk(je,Te,Kt,Ye)),this.init(),this.setValue("","")}set klass(Kt){this.ngClassInstance.klass=Kt,this.setValue(Kt,"")}updateWithValue(Kt){this.ngClassInstance.ngClass=Kt,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return Rt.\u0275fac=function(Kt){return new(Kt||Rt)(l.Y36(l.SBq),l.Y36(u.RK),l.Y36(u.yB),l.Y36(l.ZZ4),l.Y36(l.aQg),l.Y36(l.Qsj),l.Y36(g.mk,10))},Rt.\u0275dir=l.lG2({type:Rt,inputs:{klass:["class","klass"]},features:[l.qOj]}),Rt})();const $=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let at=(()=>{class Rt extends Y{constructor(){super(...arguments),this.inputs=$}}return Rt.\u0275fac=function(){let fe;return function(ue){return(fe||(fe=l.n5z(Rt)))(ue||Rt)}}(),Rt.\u0275dir=l.lG2({type:Rt,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[l.qOj]}),Rt})(),rt=(()=>{class Rt extends u.QI{buildStyles(Kt,ue){return{display:"true"===Kt?ue.display||(ue.isServer?"initial":""):"none"}}}return Rt.\u0275fac=function(){let fe;return function(ue){return(fe||(fe=l.n5z(Rt)))(ue||Rt)}}(),Rt.\u0275prov=l.Yz7({token:Rt,factory:Rt.\u0275fac,providedIn:"root"}),Rt})(),ft=(()=>{class Rt extends u.iR{constructor(Kt,ue,ce,je,Te,Ye,fn){super(Kt,ue,ce,je),this.layoutConfig=Te,this.platformId=Ye,this.serverModuleLoaded=fn,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const Kt=Array.from(this.nativeElement.children);for(let ce=0;ce{if(-1!==this.inputs.indexOf(ue)){const ce=ue.split("."),je=ce.slice(1).join("."),Te=Kt[ue].currentValue;let Ye=""===Te||0!==Te&&(0,h.Ig)(Te);"fxHide"===ce[0]&&(Ye=!Ye),this.setValue(Ye,je)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(Kt=>{this.marshal.trackValue(this.nativeElement,Kt).pipe((0,t.R)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(Kt=!0){if(""===Kt)return;const ue=(0,g.PM)(this.platformId);this.addStyles(Kt?"true":"false",{display:this.display,isServer:ue}),ue&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return Rt.\u0275fac=function(Kt){return new(Kt||Rt)(l.Y36(l.SBq),l.Y36(rt),l.Y36(u.RK),l.Y36(u.yB),l.Y36(u.WU),l.Y36(l.Lbi),l.Y36(u.wY))},Rt.\u0275dir=l.lG2({type:Rt,features:[l.qOj,l.TTD]}),Rt})();const Tt=new WeakMap,qt=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let Bt=(()=>{class Rt extends ft{constructor(){super(...arguments),this.inputs=qt}}return Rt.\u0275fac=function(){let fe;return function(ue){return(fe||(fe=l.n5z(Rt)))(ue||Rt)}}(),Rt.\u0275dir=l.lG2({type:Rt,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[l.qOj]}),Rt})();class bt{constructor(fe,Kt,ue=!0){this.key=fe,this.value=Kt,this.key=ue?fe.replace(/['"]/g,"").trim():fe.trim(),this.value=ue?Kt.replace(/['"]/g,"").trim():Kt.trim(),this.value=this.value.replace(/;/,"")}}function xt(Rt){let fe=typeof Rt;return"object"===fe?Rt.constructor===Array?"array":Rt.constructor===Set?"set":"object":fe}function It(Rt){const[fe,...Kt]=Rt.split(":");return new bt(fe,Kt.join(":"))}function wt(Rt,fe){return fe.key&&(Rt[fe.key]=fe.value),Rt}let ee=(()=>{class Rt extends u.iR{constructor(Kt,ue,ce,je,Te,Ye,fn,An,xe){super(Kt,null,ue,ce),this.sanitizer=je,this.ngStyleInstance=fn,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new g.PC(Kt,Te,Ye)),this.init();const hn=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(hn),this.isServer=An&&(0,g.PM)(xe)}updateWithValue(Kt){const ue=this.buildStyleMap(Kt);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...ue},this.isServer&&this.applyStyleToElement(ue),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(Kt){const ue=ce=>this.sanitizer.sanitize(l.q3G.STYLE,ce)??"";if(Kt)switch(xt(Kt)){case"string":return Ze(function ht(Rt,fe=";"){return String(Rt).trim().split(fe).map(Kt=>Kt.trim()).filter(Kt=>""!==Kt)}(Kt),ue);case"array":return Ze(Kt,ue);default:return function Mt(Rt,fe){let Kt=[];return"set"===xt(Rt)?Rt.forEach(ue=>Kt.push(ue)):Object.keys(Rt).forEach(ue=>{Kt.push(`${ue}:${Rt[ue]}`)}),function ut(Rt,fe){return Rt.map(It).filter(ue=>!!ue).map(ue=>(fe&&(ue.value=fe(ue.value)),ue)).reduce(wt,{})}(Kt,fe)}(Kt,ue)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return Rt.\u0275fac=function(Kt){return new(Kt||Rt)(l.Y36(l.SBq),l.Y36(u.RK),l.Y36(u.yB),l.Y36(x.H7),l.Y36(l.aQg),l.Y36(l.Qsj),l.Y36(g.PC,10),l.Y36(u.wY),l.Y36(l.Lbi))},Rt.\u0275dir=l.lG2({type:Rt,features:[l.qOj]}),Rt})();const Ft=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let pe=(()=>{class Rt extends ee{constructor(){super(...arguments),this.inputs=Ft}}return Rt.\u0275fac=function(){let fe;return function(ue){return(fe||(fe=l.n5z(Rt)))(ue||Rt)}}(),Rt.\u0275dir=l.lG2({type:Rt,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[l.qOj]}),Rt})();function Ze(Rt,fe){return Rt.map(It).filter(ue=>!!ue).map(ue=>(fe&&(ue.value=fe(ue.value)),ue)).reduce(wt,{})}let Ie=(()=>{class Rt{}return Rt.\u0275fac=function(Kt){return new(Kt||Rt)},Rt.\u0275mod=l.oAB({type:Rt}),Rt.\u0275inj=l.cJS({imports:[u.IR]}),Rt})()},1576:(K,W,_)=>{"use strict";_.d(W,{SQ:()=>ft,Wh:()=>Yn,XD:()=>J,ae:()=>Qe,s9:()=>Ct,xw:()=>O,yH:()=>_e});var l=_(94650),u=_(40445),g=_(32233),h=_(85863),t=_(8929),x=_(7625);let T=(()=>{class te extends g.QI{buildStyles($t,{display:$e}){const sn=(0,h.Ar)($t);return{...sn,display:"none"===$e?$e:sn.display}}}return te.\u0275fac=function(){let Ee;return function($e){return(Ee||(Ee=l.n5z(te)))($e||te)}}(),te.\u0275prov=l.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();const U=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let k=(()=>{class te extends g.iR{constructor($t,$e,sn,Xe,me){super($t,sn,$e,Xe),this._config=me,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue($t){const sn=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=q.get(sn)??new Map,q.set(sn,this.styleCache),this.currentValue!==$t&&(this.addStyles($t,{display:sn}),this.currentValue=$t)}}return te.\u0275fac=function($t){return new($t||te)(l.Y36(l.SBq),l.Y36(g.RK),l.Y36(T),l.Y36(g.yB),l.Y36(g.WU))},te.\u0275dir=l.lG2({type:te,features:[l.qOj]}),te})(),O=(()=>{class te extends k{constructor(){super(...arguments),this.inputs=U}}return te.\u0275fac=function(){let Ee;return function($e){return(Ee||(Ee=l.n5z(te)))($e||te)}}(),te.\u0275dir=l.lG2({type:te,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[l.qOj]}),te})();const q=new Map,Y={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let $=(()=>{class te extends g.QI{constructor($t,$e){super(),this._styler=$t,this._config=$e}buildStyles($t,$e){return $t.endsWith(bt)?($t=$t.slice(0,$t.indexOf(bt)),function ht(te,Ee){const[$t,$e]=te.split(" "),Xe=Nt=>`-${Nt}`;let me="0px",kt=Xe($e??$t),ye="0px";return"rtl"===Ee?ye=Xe($t):me=Xe($t),{margin:`0px ${me} ${kt} ${ye}`}}($t=(0,g.FL)($t,this._config.multiplier),$e.directionality)):{}}sideEffect($t,$e,sn){const Xe=sn.items;if($t.endsWith(bt)){$t=$t.slice(0,$t.indexOf(bt));const me=function xt(te,Ee){const[$t,$e]=te.split(" ");let Xe="0px",kt="0px";return"rtl"===Ee?kt=$t:Xe=$t,{padding:`0px ${Xe} ${$e??$t} ${kt}`}}($t=(0,g.FL)($t,this._config.multiplier),sn.directionality);this._styler.applyStyleToElements(me,sn.items)}else{$t=(0,g.FL)($t,this._config.multiplier),$t=this.addFallbackUnit($t);const me=Xe.pop(),kt=function Mt(te,Ee){const $t=ut(Ee.directionality,Ee.layout),$e={...Y};return $e[$t]=te,$e}($t,sn);this._styler.applyStyleToElements(kt,Xe),this._styler.applyStyleToElements(Y,[me])}}addFallbackUnit($t){return isNaN(+$t)?$t:`${$t}${this._config.defaultUnit}`}}return te.\u0275fac=function($t){return new($t||te)(l.LFG(g.RK),l.LFG(g.WU))},te.\u0275prov=l.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();const X=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let rt=(()=>{class te extends g.iR{constructor($t,$e,sn,Xe,me,kt){super($t,me,Xe,kt),this.zone=$e,this.directionality=sn,this.styleUtils=Xe,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new t.xQ;const ye=[this.directionality.change,this.observerSubject.asObservable()];this.init(ye),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,x.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const $t=this.nativeElement.children,$e=[];for(let sn=$t.length;sn--;)$e[sn]=$t[sn];return $e}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange($t){const sn=$t.value.split(" ");this.layout=sn[0],h.iQ.find(Xe=>Xe===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue($t){const $e=this.childrenNodes.filter(sn=>1===sn.nodeType&&this.willDisplay(sn)).sort((sn,Xe)=>{const me=+this.styler.lookupStyle(sn,"order"),kt=+this.styler.lookupStyle(Xe,"order");return isNaN(me)||isNaN(kt)||me===kt?0:me>kt?1:-1});if($e.length>0){const sn=this.directionality.value,Xe=this.layout;"row"===Xe&&"rtl"===sn?this.styleCache=Tt:"row"===Xe&&"rtl"!==sn?this.styleCache=Vt:"column"===Xe&&"rtl"===sn?this.styleCache=qt:"column"===Xe&&"rtl"!==sn&&(this.styleCache=Bt),this.addStyles($t,{directionality:sn,items:$e,layout:Xe})}}clearStyles(){const $t=Object.keys(this.mru).length>0,$e=$t?"padding":ut(this.directionality.value,this.layout);$t&&super.clearStyles(),this.styleUtils.applyStyleToElements({[$e]:""},this.childrenNodes)}willDisplay($t){const $e=this.marshal.getValue($t,"show-hide");return!0===$e||void 0===$e&&"none"!==this.styleUtils.lookupStyle($t,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver($t=>{$t.some(sn=>sn.addedNodes&&sn.addedNodes.length>0||sn.removedNodes&&sn.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return te.\u0275fac=function($t){return new($t||te)(l.Y36(l.SBq),l.Y36(l.R0b),l.Y36(u.Is),l.Y36(g.RK),l.Y36($),l.Y36(g.yB))},te.\u0275dir=l.lG2({type:te,features:[l.qOj]}),te})(),ft=(()=>{class te extends rt{constructor(){super(...arguments),this.inputs=X}}return te.\u0275fac=function(){let Ee;return function($e){return(Ee||(Ee=l.n5z(te)))($e||te)}}(),te.\u0275dir=l.lG2({type:te,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[l.qOj]}),te})();const Tt=new Map,qt=new Map,Vt=new Map,Bt=new Map,bt=" grid";function ut(te,Ee){switch(Ee){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===te?"margin-left":"margin-right";case"row-reverse":return"rtl"===te?"margin-right":"margin-left"}}let It=(()=>{class te extends g.QI{constructor($t){super(),this.layoutConfig=$t}buildStyles($t,$e){let[sn,Xe,...me]=$t.split(" "),kt=me.join(" ");const ye=$e.direction.indexOf("column")>-1?"column":"row",Nt=(0,h.tj)(ye)?"max-width":"max-height",ve=(0,h.tj)(ye)?"min-width":"min-height",Se=String(kt).indexOf("calc")>-1,yn=Se||"auto"===kt,pi=String(kt).indexOf("%")>-1&&!Se,Ci=String(kt).indexOf("px")>-1||String(kt).indexOf("rem")>-1||String(kt).indexOf("em")>-1||String(kt).indexOf("vw")>-1||String(kt).indexOf("vh")>-1;let en=Se||Ci;sn="0"==sn?0:sn,Xe="0"==Xe?0:Xe;const an=!sn&&!Xe;let Be={};const In={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(kt||""){case"":const Wn=!1!==this.layoutConfig.useColumnBasisZero;kt="row"===ye?"0%":Wn?"0.000000001px":"auto";break;case"initial":case"nogrow":sn=0,kt="auto";break;case"grow":kt="100%";break;case"noshrink":Xe=0,kt="auto";break;case"auto":break;case"none":sn=0,Xe=0,kt="auto";break;default:!en&&!pi&&!isNaN(kt)&&(kt+="%"),"0%"===kt&&(en=!0),"0px"===kt&&(kt="0%"),Be=(0,h.kt)(In,Se?{"flex-grow":sn,"flex-shrink":Xe,"flex-basis":en?kt:"100%"}:{flex:`${sn} ${Xe} ${en?kt:"100%"}`})}return Be.flex||Be["flex-grow"]||(Be=(0,h.kt)(In,Se?{"flex-grow":sn,"flex-shrink":Xe,"flex-basis":kt}:{flex:`${sn} ${Xe} ${kt}`})),"0%"!==kt&&"0px"!==kt&&"0.000000001px"!==kt&&"auto"!==kt&&(Be[ve]=an||en&&sn?kt:null,Be[Nt]=an||!yn&&Xe?kt:null),Be[ve]||Be[Nt]?$e.hasWrap&&(Be[Se?"flex-basis":"flex"]=Be[Nt]?Se?Be[Nt]:`${sn} ${Xe} ${Be[Nt]}`:Se?Be[ve]:`${sn} ${Xe} ${Be[ve]}`):Be=(0,h.kt)(In,Se?{"flex-grow":sn,"flex-shrink":Xe,"flex-basis":kt}:{flex:`${sn} ${Xe} ${kt}`}),(0,h.kt)(Be,{"box-sizing":"border-box"})}}return te.\u0275fac=function($t){return new($t||te)(l.LFG(g.WU))},te.\u0275prov=l.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();const wt=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let Ft=(()=>{class te extends g.iR{constructor($t,$e,sn,Xe,me){super($t,Xe,$e,me),this.layoutConfig=sn,this.marshal=me,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink($t){this.flexShrink=$t||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow($t){this.flexGrow=$t||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,x.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,x.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange($t){const sn=$t.value.split(" ");this.direction=sn[0],this.wrap=void 0!==sn[1]&&"wrap"===sn[1],this.triggerUpdate()}updateWithValue($t){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const sn=this.direction,Xe=sn.startsWith("row"),me=this.wrap;Xe&&me?this.styleCache=Oe:Xe&&!me?this.styleCache=pe:!Xe&&me?this.styleCache=Ie:!Xe&&!me&&(this.styleCache=Ze);const kt=String($t).replace(";",""),ye=(0,g.Ot)(kt,this.flexGrow,this.flexShrink);this.addStyles(ye.join(" "),{direction:sn,hasWrap:me})}triggerReflow(){const $t=this.activatedValue;if(void 0!==$t){const $e=(0,g.Ot)($t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,$e.join(" "))}}}return te.\u0275fac=function($t){return new($t||te)(l.Y36(l.SBq),l.Y36(g.RK),l.Y36(g.WU),l.Y36(It),l.Y36(g.yB))},te.\u0275dir=l.lG2({type:te,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[l.qOj]}),te})(),_e=(()=>{class te extends Ft{constructor(){super(...arguments),this.inputs=wt}}return te.\u0275fac=function(){let Ee;return function($e){return(Ee||(Ee=l.n5z(te)))($e||te)}}(),te.\u0275dir=l.lG2({type:te,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[l.qOj]}),te})();const pe=new Map,Ze=new Map,Oe=new Map,Ie=new Map;let si=(()=>{class te extends g.QI{buildStyles($t){const $e={};switch($t=$t||"stretch"){case"start":$e["align-self"]="flex-start";break;case"end":$e["align-self"]="flex-end";break;default:$e["align-self"]=$t}return $e}}return te.\u0275fac=function(){let Ee;return function($e){return(Ee||(Ee=l.n5z(te)))($e||te)}}(),te.\u0275prov=l.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();const oi=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let ze=(()=>{class te extends g.iR{constructor($t,$e,sn,Xe){super($t,sn,$e,Xe),this.DIRECTIVE_KEY="flex-align",this.styleCache=Wt,this.init()}}return te.\u0275fac=function($t){return new($t||te)(l.Y36(l.SBq),l.Y36(g.RK),l.Y36(si),l.Y36(g.yB))},te.\u0275dir=l.lG2({type:te,features:[l.qOj]}),te})();const Wt=new Map;let J=(()=>{class te extends ze{constructor(){super(...arguments),this.inputs=oi}}return te.\u0275fac=function(){let Ee;return function($e){return(Ee||(Ee=l.n5z(te)))($e||te)}}(),te.\u0275dir=l.lG2({type:te,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[l.qOj]}),te})();const j={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let Q=(()=>{class te extends g.QI{buildStyles($t){return j}}return te.\u0275fac=function(){let Ee;return function($e){return(Ee||(Ee=l.n5z(te)))($e||te)}}(),te.\u0275prov=l.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),Ct=(()=>{class te extends g.iR{constructor($t,$e,sn,Xe){super($t,sn,$e,Xe),this.styleCache=Yt,this.addStyles("")}}return te.\u0275fac=function($t){return new($t||te)(l.Y36(l.SBq),l.Y36(g.RK),l.Y36(Q),l.Y36(g.yB))},te.\u0275dir=l.lG2({type:te,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[l.qOj]}),te})();const Yt=new Map;let ie=(()=>{class te extends g.QI{buildStyles($t,$e){const sn={},[Xe,me]=$t.split(" ");switch(Xe){case"center":sn["justify-content"]="center";break;case"space-around":sn["justify-content"]="space-around";break;case"space-between":sn["justify-content"]="space-between";break;case"space-evenly":sn["justify-content"]="space-evenly";break;case"end":case"flex-end":sn["justify-content"]="flex-end";break;default:sn["justify-content"]="flex-start"}switch(me){case"start":case"flex-start":sn["align-items"]=sn["align-content"]="flex-start";break;case"center":sn["align-items"]=sn["align-content"]="center";break;case"end":case"flex-end":sn["align-items"]=sn["align-content"]="flex-end";break;case"space-between":sn["align-content"]="space-between",sn["align-items"]="stretch";break;case"space-around":sn["align-content"]="space-around",sn["align-items"]="stretch";break;case"baseline":sn["align-content"]="stretch",sn["align-items"]="baseline";break;default:sn["align-items"]=sn["align-content"]="stretch"}return(0,h.kt)(sn,{display:$e.inline?"inline-flex":"flex","flex-direction":$e.layout,"box-sizing":"border-box","max-width":"stretch"===me?(0,h.tj)($e.layout)?null:"100%":null,"max-height":"stretch"===me&&(0,h.tj)($e.layout)?"100%":null})}}return te.\u0275fac=function(){let Ee;return function($e){return(Ee||(Ee=l.n5z(te)))($e||te)}}(),te.\u0275prov=l.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();const re=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let Cn=(()=>{class te extends g.iR{constructor($t,$e,sn,Xe){super($t,sn,$e,Xe),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,x.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue($t){const $e=this.layout||"row",sn=this.inline;"row"===$e&&sn?this.styleCache=On:"row"!==$e||sn?"row-reverse"===$e&&sn?this.styleCache=cn:"row-reverse"!==$e||sn?"column"===$e&&sn?this.styleCache=He:"column"!==$e||sn?"column-reverse"===$e&&sn?this.styleCache=qe:"column-reverse"===$e&&!sn&&(this.styleCache=Sn):this.styleCache=Fi:this.styleCache=Bn:this.styleCache=fi,this.addStyles($t,{layout:$e,inline:sn})}onLayoutChange($t){const $e=$t.value.split(" ");this.layout=$e[0],this.inline=$t.value.includes("inline"),h.iQ.find(sn=>sn===this.layout)||(this.layout="row"),this.triggerUpdate()}}return te.\u0275fac=function($t){return new($t||te)(l.Y36(l.SBq),l.Y36(g.RK),l.Y36(ie),l.Y36(g.yB))},te.\u0275dir=l.lG2({type:te,features:[l.qOj]}),te})(),Yn=(()=>{class te extends Cn{constructor(){super(...arguments),this.inputs=re}}return te.\u0275fac=function(){let Ee;return function($e){return(Ee||(Ee=l.n5z(te)))($e||te)}}(),te.\u0275dir=l.lG2({type:te,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[l.qOj]}),te})();const fi=new Map,Fi=new Map,Bn=new Map,Sn=new Map,On=new Map,He=new Map,cn=new Map,qe=new Map;let Qe=(()=>{class te{}return te.\u0275fac=function($t){return new($t||te)},te.\u0275mod=l.oAB({type:te}),te.\u0275inj=l.cJS({imports:[g.IR,u.vT]}),te})()},24006:(K,W,_)=>{"use strict";_.d(W,{CE:()=>Vr,Cf:()=>ft,F:()=>Aa,Fd:()=>Xo,Fj:()=>$,JJ:()=>Vn,JL:()=>ze,JU:()=>U,On:()=>pr,Q7:()=>Br,QS:()=>tr,UX:()=>oc,Zs:()=>mr,_Y:()=>zr,a5:()=>_n,kI:()=>Vt,nD:()=>Xr,nJ:()=>ve,oH:()=>$r,p4:()=>ls,qQ:()=>Pa,qu:()=>xo,sg:()=>ql,u:()=>Cc,u5:()=>Ss,wV:()=>Ia,x0:()=>kr});var l=_(94650),u=_(36895),g=_(5254),h=_(30567),t=_(24850);let x=(()=>{class Xt{constructor(St,et){this._renderer=St,this._elementRef=et,this.onChange=ai=>{},this.onTouched=()=>{}}setProperty(St,et){this._renderer.setProperty(this._elementRef.nativeElement,St,et)}registerOnTouched(St){this.onTouched=St}registerOnChange(St){this.onChange=St}setDisabledState(St){this.setProperty("disabled",St)}}return Xt.\u0275fac=function(St){return new(St||Xt)(l.Y36(l.Qsj),l.Y36(l.SBq))},Xt.\u0275dir=l.lG2({type:Xt}),Xt})(),T=(()=>{class Xt extends x{}return Xt.\u0275fac=function(){let Jt;return function(et){return(Jt||(Jt=l.n5z(Xt)))(et||Xt)}}(),Xt.\u0275dir=l.lG2({type:Xt,features:[l.qOj]}),Xt})();const U=new l.OlP("NgValueAccessor"),O={provide:U,useExisting:(0,l.Gpc)(()=>$),multi:!0},Y=new l.OlP("CompositionEventMode");let $=(()=>{class Xt extends x{constructor(St,et,ai){super(St,et),this._compositionMode=ai,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function q(){const Xt=(0,u.q)()?(0,u.q)().getUserAgent():"";return/android (\d+)/.test(Xt.toLowerCase())}())}writeValue(St){this.setProperty("value",St??"")}_handleInput(St){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(St)}_compositionStart(){this._composing=!0}_compositionEnd(St){this._composing=!1,this._compositionMode&&this.onChange(St)}}return Xt.\u0275fac=function(St){return new(St||Xt)(l.Y36(l.Qsj),l.Y36(l.SBq),l.Y36(Y,8))},Xt.\u0275dir=l.lG2({type:Xt,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(St,et){1&St&&l.NdJ("input",function(Xi){return et._handleInput(Xi.target.value)})("blur",function(){return et.onTouched()})("compositionstart",function(){return et._compositionStart()})("compositionend",function(Xi){return et._compositionEnd(Xi.target.value)})},features:[l._Bn([O]),l.qOj]}),Xt})();function at(Xt){return null==Xt||("string"==typeof Xt||Array.isArray(Xt))&&0===Xt.length}function rt(Xt){return null!=Xt&&"number"==typeof Xt.length}const ft=new l.OlP("NgValidators"),Tt=new l.OlP("NgAsyncValidators"),qt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Vt{static min(Jt){return Bt(Jt)}static max(Jt){return bt(Jt)}static required(Jt){return xt(Jt)}static requiredTrue(Jt){return ht(Jt)}static email(Jt){return function ut(Xt){return at(Xt.value)||qt.test(Xt.value)?null:{email:!0}}(Jt)}static minLength(Jt){return function Mt(Xt){return Jt=>at(Jt.value)||!rt(Jt.value)?null:Jt.value.length{if(at(et.value))return null;const ai=et.value;return Jt.test(ai)?null:{pattern:{requiredPattern:St,actualValue:ai}}}}(Jt)}static nullValidator(Jt){return null}static compose(Jt){return Rt(Jt)}static composeAsync(Jt){return Kt(Jt)}}function Bt(Xt){return Jt=>{if(at(Jt.value)||at(Xt))return null;const St=parseFloat(Jt.value);return!isNaN(St)&&St{if(at(Jt.value)||at(Xt))return null;const St=parseFloat(Jt.value);return!isNaN(St)&&St>Xt?{max:{max:Xt,actual:Jt.value}}:null}}function xt(Xt){return at(Xt.value)?{required:!0}:null}function ht(Xt){return!0===Xt.value?null:{required:!0}}function It(Xt){return Jt=>rt(Jt.value)&&Jt.value.length>Xt?{maxlength:{requiredLength:Xt,actualLength:Jt.value.length}}:null}function ee(Xt){return null}function Ft(Xt){return null!=Xt}function _e(Xt){return(0,l.QGY)(Xt)?(0,g.D)(Xt):Xt}function pe(Xt){let Jt={};return Xt.forEach(St=>{Jt=null!=St?{...Jt,...St}:Jt}),0===Object.keys(Jt).length?null:Jt}function Ze(Xt,Jt){return Jt.map(St=>St(Xt))}function Ie(Xt){return Xt.map(Jt=>function Oe(Xt){return!Xt.validate}(Jt)?Jt:St=>Jt.validate(St))}function Rt(Xt){if(!Xt)return null;const Jt=Xt.filter(Ft);return 0==Jt.length?null:function(St){return pe(Ze(St,Jt))}}function fe(Xt){return null!=Xt?Rt(Ie(Xt)):null}function Kt(Xt){if(!Xt)return null;const Jt=Xt.filter(Ft);return 0==Jt.length?null:function(St){const et=Ze(St,Jt).map(_e);return(0,h.D)(et).pipe((0,t.U)(pe))}}function ue(Xt){return null!=Xt?Kt(Ie(Xt)):null}function ce(Xt,Jt){return null===Xt?[Jt]:Array.isArray(Xt)?[...Xt,Jt]:[Xt,Jt]}function je(Xt){return Xt._rawValidators}function Te(Xt){return Xt._rawAsyncValidators}function Ye(Xt){return Xt?Array.isArray(Xt)?Xt:[Xt]:[]}function fn(Xt,Jt){return Array.isArray(Xt)?Xt.includes(Jt):Xt===Jt}function An(Xt,Jt){const St=Ye(Jt);return Ye(Xt).forEach(ai=>{fn(St,ai)||St.push(ai)}),St}function xe(Xt,Jt){return Ye(Jt).filter(St=>!fn(Xt,St))}class hn{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(Jt){this._rawValidators=Jt||[],this._composedValidatorFn=fe(this._rawValidators)}_setAsyncValidators(Jt){this._rawAsyncValidators=Jt||[],this._composedAsyncValidatorFn=ue(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Jt){this._onDestroyCallbacks.push(Jt)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Jt=>Jt()),this._onDestroyCallbacks=[]}reset(Jt){this.control&&this.control.reset(Jt)}hasError(Jt,St){return!!this.control&&this.control.hasError(Jt,St)}getError(Jt,St){return this.control?this.control.getError(Jt,St):null}}class Re extends hn{get formDirective(){return null}get path(){return null}}class _n extends hn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Kn{constructor(Jt){this._cd=Jt}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Vn=(()=>{class Xt extends Kn{constructor(St){super(St)}}return Xt.\u0275fac=function(St){return new(St||Xt)(l.Y36(_n,2))},Xt.\u0275dir=l.lG2({type:Xt,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(St,et){2&St&&l.ekj("ng-untouched",et.isUntouched)("ng-touched",et.isTouched)("ng-pristine",et.isPristine)("ng-dirty",et.isDirty)("ng-valid",et.isValid)("ng-invalid",et.isInvalid)("ng-pending",et.isPending)},features:[l.qOj]}),Xt})(),ze=(()=>{class Xt extends Kn{constructor(St){super(St)}}return Xt.\u0275fac=function(St){return new(St||Xt)(l.Y36(Re,10))},Xt.\u0275dir=l.lG2({type:Xt,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(St,et){2&St&&l.ekj("ng-untouched",et.isUntouched)("ng-touched",et.isTouched)("ng-pristine",et.isPristine)("ng-dirty",et.isDirty)("ng-valid",et.isValid)("ng-invalid",et.isInvalid)("ng-pending",et.isPending)("ng-submitted",et.isSubmitted)},features:[l.qOj]}),Xt})();const qe="VALID",we="INVALID",Qe="PENDING",te="DISABLED";function Ee(Xt){return(Xe(Xt)?Xt.validators:Xt)||null}function $t(Xt){return Array.isArray(Xt)?fe(Xt):Xt||null}function $e(Xt,Jt){return(Xe(Jt)?Jt.asyncValidators:Xt)||null}function sn(Xt){return Array.isArray(Xt)?ue(Xt):Xt||null}function Xe(Xt){return null!=Xt&&!Array.isArray(Xt)&&"object"==typeof Xt}function me(Xt,Jt,St){const et=Xt.controls;if(!(Jt?Object.keys(et):et).length)throw new l.vHH(1e3,"");if(!et[St])throw new l.vHH(1001,"")}function kt(Xt,Jt,St){Xt._forEachChild((et,ai)=>{if(void 0===St[ai])throw new l.vHH(1002,"")})}class ye{constructor(Jt,St){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=Jt,this._rawAsyncValidators=St,this._composedValidatorFn=$t(this._rawValidators),this._composedAsyncValidatorFn=sn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(Jt){this._rawValidators=this._composedValidatorFn=Jt}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Jt){this._rawAsyncValidators=this._composedAsyncValidatorFn=Jt}get parent(){return this._parent}get valid(){return this.status===qe}get invalid(){return this.status===we}get pending(){return this.status==Qe}get disabled(){return this.status===te}get enabled(){return this.status!==te}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Jt){this._rawValidators=Jt,this._composedValidatorFn=$t(Jt)}setAsyncValidators(Jt){this._rawAsyncValidators=Jt,this._composedAsyncValidatorFn=sn(Jt)}addValidators(Jt){this.setValidators(An(Jt,this._rawValidators))}addAsyncValidators(Jt){this.setAsyncValidators(An(Jt,this._rawAsyncValidators))}removeValidators(Jt){this.setValidators(xe(Jt,this._rawValidators))}removeAsyncValidators(Jt){this.setAsyncValidators(xe(Jt,this._rawAsyncValidators))}hasValidator(Jt){return fn(this._rawValidators,Jt)}hasAsyncValidator(Jt){return fn(this._rawAsyncValidators,Jt)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Jt={}){this.touched=!0,this._parent&&!Jt.onlySelf&&this._parent.markAsTouched(Jt)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Jt=>Jt.markAllAsTouched())}markAsUntouched(Jt={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(St=>{St.markAsUntouched({onlySelf:!0})}),this._parent&&!Jt.onlySelf&&this._parent._updateTouched(Jt)}markAsDirty(Jt={}){this.pristine=!1,this._parent&&!Jt.onlySelf&&this._parent.markAsDirty(Jt)}markAsPristine(Jt={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(St=>{St.markAsPristine({onlySelf:!0})}),this._parent&&!Jt.onlySelf&&this._parent._updatePristine(Jt)}markAsPending(Jt={}){this.status=Qe,!1!==Jt.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Jt.onlySelf&&this._parent.markAsPending(Jt)}disable(Jt={}){const St=this._parentMarkedDirty(Jt.onlySelf);this.status=te,this.errors=null,this._forEachChild(et=>{et.disable({...Jt,onlySelf:!0})}),this._updateValue(),!1!==Jt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Jt,skipPristineCheck:St}),this._onDisabledChange.forEach(et=>et(!0))}enable(Jt={}){const St=this._parentMarkedDirty(Jt.onlySelf);this.status=qe,this._forEachChild(et=>{et.enable({...Jt,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Jt.emitEvent}),this._updateAncestors({...Jt,skipPristineCheck:St}),this._onDisabledChange.forEach(et=>et(!1))}_updateAncestors(Jt){this._parent&&!Jt.onlySelf&&(this._parent.updateValueAndValidity(Jt),Jt.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Jt){this._parent=Jt}getRawValue(){return this.value}updateValueAndValidity(Jt={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===qe||this.status===Qe)&&this._runAsyncValidator(Jt.emitEvent)),!1!==Jt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Jt.onlySelf&&this._parent.updateValueAndValidity(Jt)}_updateTreeValidity(Jt={emitEvent:!0}){this._forEachChild(St=>St._updateTreeValidity(Jt)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Jt.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?te:qe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Jt){if(this.asyncValidator){this.status=Qe,this._hasOwnPendingAsyncValidator=!0;const St=_e(this.asyncValidator(this));this._asyncValidationSubscription=St.subscribe(et=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(et,{emitEvent:Jt})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Jt,St={}){this.errors=Jt,this._updateControlsErrors(!1!==St.emitEvent)}get(Jt){let St=Jt;return null==St||(Array.isArray(St)||(St=St.split(".")),0===St.length)?null:St.reduce((et,ai)=>et&&et._find(ai),this)}getError(Jt,St){const et=St?this.get(St):this;return et&&et.errors?et.errors[Jt]:null}hasError(Jt,St){return!!this.getError(Jt,St)}get root(){let Jt=this;for(;Jt._parent;)Jt=Jt._parent;return Jt}_updateControlsErrors(Jt){this.status=this._calculateStatus(),Jt&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Jt)}_initObservables(){this.valueChanges=new l.vpe,this.statusChanges=new l.vpe}_calculateStatus(){return this._allControlsDisabled()?te:this.errors?we:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Qe)?Qe:this._anyControlsHaveStatus(we)?we:qe}_anyControlsHaveStatus(Jt){return this._anyControls(St=>St.status===Jt)}_anyControlsDirty(){return this._anyControls(Jt=>Jt.dirty)}_anyControlsTouched(){return this._anyControls(Jt=>Jt.touched)}_updatePristine(Jt={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Jt.onlySelf&&this._parent._updatePristine(Jt)}_updateTouched(Jt={}){this.touched=this._anyControlsTouched(),this._parent&&!Jt.onlySelf&&this._parent._updateTouched(Jt)}_registerOnCollectionChange(Jt){this._onCollectionChange=Jt}_setUpdateStrategy(Jt){Xe(Jt)&&null!=Jt.updateOn&&(this._updateOn=Jt.updateOn)}_parentMarkedDirty(Jt){return!Jt&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Jt){return null}}class Nt extends ye{constructor(Jt,St,et){super(Ee(St),$e(et,St)),this.controls=Jt,this._initObservables(),this._setUpdateStrategy(St),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Jt,St){return this.controls[Jt]?this.controls[Jt]:(this.controls[Jt]=St,St.setParent(this),St._registerOnCollectionChange(this._onCollectionChange),St)}addControl(Jt,St,et={}){this.registerControl(Jt,St),this.updateValueAndValidity({emitEvent:et.emitEvent}),this._onCollectionChange()}removeControl(Jt,St={}){this.controls[Jt]&&this.controls[Jt]._registerOnCollectionChange(()=>{}),delete this.controls[Jt],this.updateValueAndValidity({emitEvent:St.emitEvent}),this._onCollectionChange()}setControl(Jt,St,et={}){this.controls[Jt]&&this.controls[Jt]._registerOnCollectionChange(()=>{}),delete this.controls[Jt],St&&this.registerControl(Jt,St),this.updateValueAndValidity({emitEvent:et.emitEvent}),this._onCollectionChange()}contains(Jt){return this.controls.hasOwnProperty(Jt)&&this.controls[Jt].enabled}setValue(Jt,St={}){kt(this,0,Jt),Object.keys(Jt).forEach(et=>{me(this,!0,et),this.controls[et].setValue(Jt[et],{onlySelf:!0,emitEvent:St.emitEvent})}),this.updateValueAndValidity(St)}patchValue(Jt,St={}){null!=Jt&&(Object.keys(Jt).forEach(et=>{const ai=this.controls[et];ai&&ai.patchValue(Jt[et],{onlySelf:!0,emitEvent:St.emitEvent})}),this.updateValueAndValidity(St))}reset(Jt={},St={}){this._forEachChild((et,ai)=>{et.reset(Jt[ai],{onlySelf:!0,emitEvent:St.emitEvent})}),this._updatePristine(St),this._updateTouched(St),this.updateValueAndValidity(St)}getRawValue(){return this._reduceChildren({},(Jt,St,et)=>(Jt[et]=St.getRawValue(),Jt))}_syncPendingControls(){let Jt=this._reduceChildren(!1,(St,et)=>!!et._syncPendingControls()||St);return Jt&&this.updateValueAndValidity({onlySelf:!0}),Jt}_forEachChild(Jt){Object.keys(this.controls).forEach(St=>{const et=this.controls[St];et&&Jt(et,St)})}_setUpControls(){this._forEachChild(Jt=>{Jt.setParent(this),Jt._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Jt){for(const[St,et]of Object.entries(this.controls))if(this.contains(St)&&Jt(et))return!0;return!1}_reduceValue(){return this._reduceChildren({},(St,et,ai)=>((et.enabled||this.disabled)&&(St[ai]=et.value),St))}_reduceChildren(Jt,St){let et=Jt;return this._forEachChild((ai,Xi)=>{et=St(et,ai,Xi)}),et}_allControlsDisabled(){for(const Jt of Object.keys(this.controls))if(this.controls[Jt].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Jt){return this.controls.hasOwnProperty(Jt)?this.controls[Jt]:null}}const ve=Nt;class yn extends Nt{}function Ci(Xt,Jt){return[...Jt.path,Xt]}function en(Xt,Jt){Wn(Xt,Jt),Jt.valueAccessor.writeValue(Xt.value),Xt.disabled&&Jt.valueAccessor.setDisabledState?.(!0),function Hi(Xt,Jt){Jt.valueAccessor.registerOnChange(St=>{Xt._pendingValue=St,Xt._pendingChange=!0,Xt._pendingDirty=!0,"change"===Xt.updateOn&&Uo(Xt,Jt)})}(Xt,Jt),function qo(Xt,Jt){const St=(et,ai)=>{Jt.valueAccessor.writeValue(et),ai&&Jt.viewToModelUpdate(et)};Xt.registerOnChange(St),Jt._registerOnDestroy(()=>{Xt._unregisterOnChange(St)})}(Xt,Jt),function Ji(Xt,Jt){Jt.valueAccessor.registerOnTouched(()=>{Xt._pendingTouched=!0,"blur"===Xt.updateOn&&Xt._pendingChange&&Uo(Xt,Jt),"submit"!==Xt.updateOn&&Xt.markAsTouched()})}(Xt,Jt),function In(Xt,Jt){if(Jt.valueAccessor.setDisabledState){const St=et=>{Jt.valueAccessor.setDisabledState(et)};Xt.registerOnDisabledChange(St),Jt._registerOnDestroy(()=>{Xt._unregisterOnDisabledChange(St)})}}(Xt,Jt)}function an(Xt,Jt,St=!0){const et=()=>{};Jt.valueAccessor&&(Jt.valueAccessor.registerOnChange(et),Jt.valueAccessor.registerOnTouched(et)),ki(Xt,Jt),Xt&&(Jt._invokeOnDestroyCallbacks(),Xt._registerOnCollectionChange(()=>{}))}function Be(Xt,Jt){Xt.forEach(St=>{St.registerOnValidatorChange&&St.registerOnValidatorChange(Jt)})}function Wn(Xt,Jt){const St=je(Xt);null!==Jt.validator?Xt.setValidators(ce(St,Jt.validator)):"function"==typeof St&&Xt.setValidators([St]);const et=Te(Xt);null!==Jt.asyncValidator?Xt.setAsyncValidators(ce(et,Jt.asyncValidator)):"function"==typeof et&&Xt.setAsyncValidators([et]);const ai=()=>Xt.updateValueAndValidity();Be(Jt._rawValidators,ai),Be(Jt._rawAsyncValidators,ai)}function ki(Xt,Jt){let St=!1;if(null!==Xt){if(null!==Jt.validator){const ai=je(Xt);if(Array.isArray(ai)&&ai.length>0){const Xi=ai.filter(Eo=>Eo!==Jt.validator);Xi.length!==ai.length&&(St=!0,Xt.setValidators(Xi))}}if(null!==Jt.asyncValidator){const ai=Te(Xt);if(Array.isArray(ai)&&ai.length>0){const Xi=ai.filter(Eo=>Eo!==Jt.asyncValidator);Xi.length!==ai.length&&(St=!0,Xt.setAsyncValidators(Xi))}}}const et=()=>{};return Be(Jt._rawValidators,et),Be(Jt._rawAsyncValidators,et),St}function Uo(Xt,Jt){Xt._pendingDirty&&Xt.markAsDirty(),Xt.setValue(Xt._pendingValue,{emitModelToViewChange:!1}),Jt.viewToModelUpdate(Xt._pendingValue),Xt._pendingChange=!1}function Pe(Xt,Jt){Wn(Xt,Jt)}function Pt(Xt,Jt){if(!Xt.hasOwnProperty("model"))return!1;const St=Xt.model;return!!St.isFirstChange()||!Object.is(Jt,St.currentValue)}function Dt(Xt,Jt){Xt._syncPendingControls(),Jt.forEach(St=>{const et=St.control;"submit"===et.updateOn&&et._pendingChange&&(St.viewToModelUpdate(et._pendingValue),et._pendingChange=!1)})}function Le(Xt,Jt){if(!Jt)return null;let St,et,ai;return Array.isArray(Jt),Jt.forEach(Xi=>{Xi.constructor===$?St=Xi:function B(Xt){return Object.getPrototypeOf(Xt.constructor)===T}(Xi)?et=Xi:ai=Xi}),ai||et||St||null}const Yi={provide:Re,useExisting:(0,l.Gpc)(()=>Aa)},Ta=(()=>Promise.resolve())();let Aa=(()=>{class Xt extends Re{constructor(St,et){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new l.vpe,this.form=new Nt({},fe(St),ue(et))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(St){Ta.then(()=>{const et=this._findContainer(St.path);St.control=et.registerControl(St.name,St.control),en(St.control,St),St.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(St)})}getControl(St){return this.form.get(St.path)}removeControl(St){Ta.then(()=>{const et=this._findContainer(St.path);et&&et.removeControl(St.name),this._directives.delete(St)})}addFormGroup(St){Ta.then(()=>{const et=this._findContainer(St.path),ai=new Nt({});Pe(ai,St),et.registerControl(St.name,ai),ai.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(St){Ta.then(()=>{const et=this._findContainer(St.path);et&&et.removeControl(St.name)})}getFormGroup(St){return this.form.get(St.path)}updateModel(St,et){Ta.then(()=>{this.form.get(St.path).setValue(et)})}setValue(St){this.control.setValue(St)}onSubmit(St){return this.submitted=!0,Dt(this.form,this._directives),this.ngSubmit.emit(St),"dialog"===St?.target?.method}onReset(){this.resetForm()}resetForm(St){this.form.reset(St),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(St){return St.pop(),St.length?this.form.get(St):this.form}}return Xt.\u0275fac=function(St){return new(St||Xt)(l.Y36(ft,10),l.Y36(Tt,10))},Xt.\u0275dir=l.lG2({type:Xt,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(St,et){1&St&&l.NdJ("submit",function(Xi){return et.onSubmit(Xi)})("reset",function(){return et.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[l._Bn([Yi]),l.qOj]}),Xt})();function Xa(Xt,Jt){const St=Xt.indexOf(Jt);St>-1&&Xt.splice(St,1)}function oa(Xt){return"object"==typeof Xt&&null!==Xt&&2===Object.keys(Xt).length&&"value"in Xt&&"disabled"in Xt}const Ja=class extends ye{constructor(Jt=null,St,et){super(Ee(St),$e(et,St)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Jt),this._setUpdateStrategy(St),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xe(St)&&(St.nonNullable||St.initialValueIsDefault)&&(this.defaultValue=oa(Jt)?Jt.value:Jt)}setValue(Jt,St={}){this.value=this._pendingValue=Jt,this._onChange.length&&!1!==St.emitModelToViewChange&&this._onChange.forEach(et=>et(this.value,!1!==St.emitViewToModelChange)),this.updateValueAndValidity(St)}patchValue(Jt,St={}){this.setValue(Jt,St)}reset(Jt=this.defaultValue,St={}){this._applyFormState(Jt),this.markAsPristine(St),this.markAsUntouched(St),this.setValue(this.value,St),this._pendingChange=!1}_updateValue(){}_anyControls(Jt){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Jt){this._onChange.push(Jt)}_unregisterOnChange(Jt){Xa(this._onChange,Jt)}registerOnDisabledChange(Jt){this._onDisabledChange.push(Jt)}_unregisterOnDisabledChange(Jt){Xa(this._onDisabledChange,Jt)}_forEachChild(Jt){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Jt){oa(Jt)?(this.value=this._pendingValue=Jt.value,Jt.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Jt}},ls=Ja;let dr=(()=>{class Xt extends Re{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Ci(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return Xt.\u0275fac=function(){let Jt;return function(et){return(Jt||(Jt=l.n5z(Xt)))(et||Xt)}}(),Xt.\u0275dir=l.lG2({type:Xt,features:[l.qOj]}),Xt})();const jr={provide:_n,useExisting:(0,l.Gpc)(()=>pr)},Ps=(()=>Promise.resolve())();let pr=(()=>{class Xt extends _n{constructor(St,et,ai,Xi,Eo){super(),this._changeDetectorRef=Eo,this.control=new Ja,this._registered=!1,this.update=new l.vpe,this._parent=St,this._setValidators(et),this._setAsyncValidators(ai),this.valueAccessor=Le(0,Xi)}ngOnChanges(St){if(this._checkForErrors(),!this._registered||"name"in St){if(this._registered&&(this._checkName(),this.formDirective)){const et=St.name.previousValue;this.formDirective.removeControl({name:et,path:this._getPath(et)})}this._setUpControl()}"isDisabled"in St&&this._updateDisabled(St),Pt(St,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(St){this.viewModel=St,this.update.emit(St)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){en(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(St){Ps.then(()=>{this.control.setValue(St,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(St){const et=St.isDisabled.currentValue,ai=0!==et&&(0,l.D6c)(et);Ps.then(()=>{ai&&!this.control.disabled?this.control.disable():!ai&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(St){return this._parent?Ci(St,this._parent):[St]}}return Xt.\u0275fac=function(St){return new(St||Xt)(l.Y36(Re,9),l.Y36(ft,10),l.Y36(Tt,10),l.Y36(U,10),l.Y36(l.sBO,8))},Xt.\u0275dir=l.lG2({type:Xt,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[l._Bn([jr]),l.qOj,l.TTD]}),Xt})(),zr=(()=>{class Xt{}return Xt.\u0275fac=function(St){return new(St||Xt)},Xt.\u0275dir=l.lG2({type:Xt,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Xt})();const Su={provide:U,useExisting:(0,l.Gpc)(()=>Ia),multi:!0};let Ia=(()=>{class Xt extends T{writeValue(St){this.setProperty("value",St??"")}registerOnChange(St){this.onChange=et=>{St(""==et?null:parseFloat(et))}}}return Xt.\u0275fac=function(){let Jt;return function(et){return(Jt||(Jt=l.n5z(Xt)))(et||Xt)}}(),Xt.\u0275dir=l.lG2({type:Xt,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(St,et){1&St&&l.NdJ("input",function(Xi){return et.onChange(Xi.target.value)})("blur",function(){return et.onTouched()})},features:[l._Bn([Su]),l.qOj]}),Xt})(),Rs=(()=>{class Xt{}return Xt.\u0275fac=function(St){return new(St||Xt)},Xt.\u0275mod=l.oAB({type:Xt}),Xt.\u0275inj=l.cJS({}),Xt})();const Wr=new l.OlP("NgModelWithFormControlWarning"),bs={provide:_n,useExisting:(0,l.Gpc)(()=>$r)};let $r=(()=>{class Xt extends _n{constructor(St,et,ai,Xi){super(),this._ngModelWarningConfig=Xi,this.update=new l.vpe,this._ngModelWarningSent=!1,this._setValidators(St),this._setAsyncValidators(et),this.valueAccessor=Le(0,ai)}set isDisabled(St){}ngOnChanges(St){if(this._isControlChanged(St)){const et=St.form.previousValue;et&&an(et,this,!1),en(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Pt(St,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&an(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(St){this.viewModel=St,this.update.emit(St)}_isControlChanged(St){return St.hasOwnProperty("form")}}return Xt._ngModelWarningSentOnce=!1,Xt.\u0275fac=function(St){return new(St||Xt)(l.Y36(ft,10),l.Y36(Tt,10),l.Y36(U,10),l.Y36(Wr,8))},Xt.\u0275dir=l.lG2({type:Xt,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[l._Bn([bs]),l.qOj,l.TTD]}),Xt})();const ic={provide:Re,useExisting:(0,l.Gpc)(()=>ql)};let ql=(()=>{class Xt extends Re{constructor(St,et){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new l.vpe,this._setValidators(St),this._setAsyncValidators(et)}ngOnChanges(St){this._checkFormPresent(),St.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ki(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(St){const et=this.form.get(St.path);return en(et,St),et.updateValueAndValidity({emitEvent:!1}),this.directives.push(St),et}getControl(St){return this.form.get(St.path)}removeControl(St){an(St.control||null,St,!1),function kn(Xt,Jt){const St=Xt.indexOf(Jt);St>-1&&Xt.splice(St,1)}(this.directives,St)}addFormGroup(St){this._setUpFormContainer(St)}removeFormGroup(St){this._cleanUpFormContainer(St)}getFormGroup(St){return this.form.get(St.path)}addFormArray(St){this._setUpFormContainer(St)}removeFormArray(St){this._cleanUpFormContainer(St)}getFormArray(St){return this.form.get(St.path)}updateModel(St,et){this.form.get(St.path).setValue(et)}onSubmit(St){return this.submitted=!0,Dt(this.form,this.directives),this.ngSubmit.emit(St),"dialog"===St?.target?.method}onReset(){this.resetForm()}resetForm(St){this.form.reset(St),this.submitted=!1}_updateDomValue(){this.directives.forEach(St=>{const et=St.control,ai=this.form.get(St.path);et!==ai&&(an(et||null,St),(Xt=>Xt instanceof Ja)(ai)&&(en(ai,St),St.control=ai))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(St){const et=this.form.get(St.path);Pe(et,St),et.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(St){if(this.form){const et=this.form.get(St.path);et&&function wn(Xt,Jt){return ki(Xt,Jt)}(et,St)&&et.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Wn(this.form,this),this._oldForm&&ki(this._oldForm,this)}_checkFormPresent(){}}return Xt.\u0275fac=function(St){return new(St||Xt)(l.Y36(ft,10),l.Y36(Tt,10))},Xt.\u0275dir=l.lG2({type:Xt,selectors:[["","formGroup",""]],hostBindings:function(St,et){1&St&&l.NdJ("submit",function(Xi){return et.onSubmit(Xi)})("reset",function(){return et.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[l._Bn([ic]),l.qOj,l.TTD]}),Xt})();const qc={provide:Re,useExisting:(0,l.Gpc)(()=>kr)};let kr=(()=>{class Xt extends dr{constructor(St,et,ai){super(),this._parent=St,this._setValidators(et),this._setAsyncValidators(ai)}_checkParentType(){zs(this._parent)}}return Xt.\u0275fac=function(St){return new(St||Xt)(l.Y36(Re,13),l.Y36(ft,10),l.Y36(Tt,10))},Xt.\u0275dir=l.lG2({type:Xt,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[l._Bn([qc]),l.qOj]}),Xt})();const bc={provide:Re,useExisting:(0,l.Gpc)(()=>Vr)};let Vr=(()=>{class Xt extends Re{constructor(St,et,ai){super(),this._parent=St,this._setValidators(et),this._setAsyncValidators(ai)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Ci(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){zs(this._parent)}}return Xt.\u0275fac=function(St){return new(St||Xt)(l.Y36(Re,13),l.Y36(ft,10),l.Y36(Tt,10))},Xt.\u0275dir=l.lG2({type:Xt,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[l._Bn([bc]),l.qOj]}),Xt})();function zs(Xt){return!(Xt instanceof kr||Xt instanceof ql||Xt instanceof Vr)}const Kr={provide:_n,useExisting:(0,l.Gpc)(()=>Cc)};let Cc=(()=>{class Xt extends _n{constructor(St,et,ai,Xi,Eo){super(),this._ngModelWarningConfig=Eo,this._added=!1,this.update=new l.vpe,this._ngModelWarningSent=!1,this._parent=St,this._setValidators(et),this._setAsyncValidators(ai),this.valueAccessor=Le(0,Xi)}set isDisabled(St){}ngOnChanges(St){this._added||this._setUpControl(),Pt(St,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(St){this.viewModel=St,this.update.emit(St)}get path(){return Ci(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return Xt._ngModelWarningSentOnce=!1,Xt.\u0275fac=function(St){return new(St||Xt)(l.Y36(Re,13),l.Y36(ft,10),l.Y36(Tt,10),l.Y36(U,10),l.Y36(Wr,8))},Xt.\u0275dir=l.lG2({type:Xt,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[l._Bn([Kr]),l.qOj,l.TTD]}),Xt})();function Fa(Xt){return"number"==typeof Xt?Xt:parseFloat(Xt)}let ps=(()=>{class Xt{constructor(){this._validator=ee}ngOnChanges(St){if(this.inputName in St){const et=this.normalizeInput(St[this.inputName].currentValue);this._enabled=this.enabled(et),this._validator=this._enabled?this.createValidator(et):ee,this._onChange&&this._onChange()}}validate(St){return this._validator(St)}registerOnValidatorChange(St){this._onChange=St}enabled(St){return null!=St}}return Xt.\u0275fac=function(St){return new(St||Xt)},Xt.\u0275dir=l.lG2({type:Xt,features:[l.TTD]}),Xt})();const Ko={provide:ft,useExisting:(0,l.Gpc)(()=>Xo),multi:!0};let Xo=(()=>{class Xt extends ps{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=St=>Fa(St),this.createValidator=St=>bt(St)}}return Xt.\u0275fac=function(){let Jt;return function(et){return(Jt||(Jt=l.n5z(Xt)))(et||Xt)}}(),Xt.\u0275dir=l.lG2({type:Xt,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(St,et){2&St&&l.uIk("max",et._enabled?et.max:null)},inputs:{max:"max"},features:[l._Bn([Ko]),l.qOj]}),Xt})();const qa={provide:ft,useExisting:(0,l.Gpc)(()=>Pa),multi:!0};let Pa=(()=>{class Xt extends ps{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=St=>Fa(St),this.createValidator=St=>Bt(St)}}return Xt.\u0275fac=function(){let Jt;return function(et){return(Jt||(Jt=l.n5z(Xt)))(et||Xt)}}(),Xt.\u0275dir=l.lG2({type:Xt,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(St,et){2&St&&l.uIk("min",et._enabled?et.min:null)},inputs:{min:"min"},features:[l._Bn([qa]),l.qOj]}),Xt})();const ar={provide:ft,useExisting:(0,l.Gpc)(()=>Br),multi:!0},qn={provide:ft,useExisting:(0,l.Gpc)(()=>mr),multi:!0};let Br=(()=>{class Xt extends ps{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=l.D6c,this.createValidator=St=>xt}enabled(St){return St}}return Xt.\u0275fac=function(){let Jt;return function(et){return(Jt||(Jt=l.n5z(Xt)))(et||Xt)}}(),Xt.\u0275dir=l.lG2({type:Xt,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(St,et){2&St&&l.uIk("required",et._enabled?"":null)},inputs:{required:"required"},features:[l._Bn([ar]),l.qOj]}),Xt})(),mr=(()=>{class Xt extends Br{constructor(){super(...arguments),this.createValidator=St=>ht}}return Xt.\u0275fac=function(){let Jt;return function(et){return(Jt||(Jt=l.n5z(Xt)))(et||Xt)}}(),Xt.\u0275dir=l.lG2({type:Xt,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(St,et){2&St&&l.uIk("required",et._enabled?"":null)},features:[l._Bn([qn]),l.qOj]}),Xt})();const Or={provide:ft,useExisting:(0,l.Gpc)(()=>Xr),multi:!0};let Xr=(()=>{class Xt extends ps{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=St=>function Nc(Xt){return"number"==typeof Xt?Xt:parseInt(Xt,10)}(St),this.createValidator=St=>It(St)}}return Xt.\u0275fac=function(){let Jt;return function(et){return(Jt||(Jt=l.n5z(Xt)))(et||Xt)}}(),Xt.\u0275dir=l.lG2({type:Xt,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(St,et){2&St&&l.uIk("maxlength",et._enabled?et.maxlength:null)},inputs:{maxlength:"maxlength"},features:[l._Bn([Or]),l.qOj]}),Xt})(),Ga=(()=>{class Xt{}return Xt.\u0275fac=function(St){return new(St||Xt)},Xt.\u0275mod=l.oAB({type:Xt}),Xt.\u0275inj=l.cJS({imports:[Rs]}),Xt})(),Ss=(()=>{class Xt{}return Xt.\u0275fac=function(St){return new(St||Xt)},Xt.\u0275mod=l.oAB({type:Xt}),Xt.\u0275inj=l.cJS({imports:[Ga]}),Xt})(),oc=(()=>{class Xt{static withConfig(St){return{ngModule:Xt,providers:[{provide:Wr,useValue:St.warnOnNgModelWithFormControl}]}}}return Xt.\u0275fac=function(St){return new(St||Xt)},Xt.\u0275mod=l.oAB({type:Xt}),Xt.\u0275inj=l.cJS({imports:[Ga]}),Xt})();class xs extends ye{constructor(Jt,St,et){super(Ee(St),$e(et,St)),this.controls=Jt,this._initObservables(),this._setUpdateStrategy(St),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Jt){return this.controls[this._adjustIndex(Jt)]}push(Jt,St={}){this.controls.push(Jt),this._registerControl(Jt),this.updateValueAndValidity({emitEvent:St.emitEvent}),this._onCollectionChange()}insert(Jt,St,et={}){this.controls.splice(Jt,0,St),this._registerControl(St),this.updateValueAndValidity({emitEvent:et.emitEvent})}removeAt(Jt,St={}){let et=this._adjustIndex(Jt);et<0&&(et=0),this.controls[et]&&this.controls[et]._registerOnCollectionChange(()=>{}),this.controls.splice(et,1),this.updateValueAndValidity({emitEvent:St.emitEvent})}setControl(Jt,St,et={}){let ai=this._adjustIndex(Jt);ai<0&&(ai=0),this.controls[ai]&&this.controls[ai]._registerOnCollectionChange(()=>{}),this.controls.splice(ai,1),St&&(this.controls.splice(ai,0,St),this._registerControl(St)),this.updateValueAndValidity({emitEvent:et.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Jt,St={}){kt(this,0,Jt),Jt.forEach((et,ai)=>{me(this,!1,ai),this.at(ai).setValue(et,{onlySelf:!0,emitEvent:St.emitEvent})}),this.updateValueAndValidity(St)}patchValue(Jt,St={}){null!=Jt&&(Jt.forEach((et,ai)=>{this.at(ai)&&this.at(ai).patchValue(et,{onlySelf:!0,emitEvent:St.emitEvent})}),this.updateValueAndValidity(St))}reset(Jt=[],St={}){this._forEachChild((et,ai)=>{et.reset(Jt[ai],{onlySelf:!0,emitEvent:St.emitEvent})}),this._updatePristine(St),this._updateTouched(St),this.updateValueAndValidity(St)}getRawValue(){return this.controls.map(Jt=>Jt.getRawValue())}clear(Jt={}){this.controls.length<1||(this._forEachChild(St=>St._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Jt.emitEvent}))}_adjustIndex(Jt){return Jt<0?Jt+this.length:Jt}_syncPendingControls(){let Jt=this.controls.reduce((St,et)=>!!et._syncPendingControls()||St,!1);return Jt&&this.updateValueAndValidity({onlySelf:!0}),Jt}_forEachChild(Jt){this.controls.forEach((St,et)=>{Jt(St,et)})}_updateValue(){this.value=this.controls.filter(Jt=>Jt.enabled||this.disabled).map(Jt=>Jt.value)}_anyControls(Jt){return this.controls.some(St=>St.enabled&&Jt(St))}_setUpControls(){this._forEachChild(Jt=>this._registerControl(Jt))}_allControlsDisabled(){for(const Jt of this.controls)if(Jt.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Jt){Jt.setParent(this),Jt._registerOnCollectionChange(this._onCollectionChange)}_find(Jt){return this.at(Jt)??null}}function Ti(Xt){return!!Xt&&(void 0!==Xt.asyncValidators||void 0!==Xt.validators||void 0!==Xt.updateOn)}let xo=(()=>{class Xt{constructor(){this.useNonNullable=!1}get nonNullable(){const St=new Xt;return St.useNonNullable=!0,St}group(St,et=null){const ai=this._reduceControls(St);let Xi={};return Ti(et)?Xi=et:null!==et&&(Xi.validators=et.validator,Xi.asyncValidators=et.asyncValidator),new Nt(ai,Xi)}record(St,et=null){const ai=this._reduceControls(St);return new yn(ai,et)}control(St,et,ai){let Xi={};return this.useNonNullable?(Ti(et)?Xi=et:(Xi.validators=et,Xi.asyncValidators=ai),new Ja(St,{...Xi,nonNullable:!0})):new Ja(St,et,ai)}array(St,et,ai){const Xi=St.map(Eo=>this._createControl(Eo));return new xs(Xi,et,ai)}_reduceControls(St){const et={};return Object.keys(St).forEach(ai=>{et[ai]=this._createControl(St[ai])}),et}_createControl(St){return St instanceof Ja||St instanceof ye?St:Array.isArray(St)?this.control(St[0],St.length>1?St[1]:null,St.length>2?St[2]:null):this.control(St)}}return Xt.\u0275fac=function(St){return new(St||Xt)},Xt.\u0275prov=l.Yz7({token:Xt,factory:Xt.\u0275fac,providedIn:oc}),Xt})(),tr=(()=>{class Xt extends xo{group(St,et=null){return super.group(St,et)}control(St,et,ai){return super.control(St,et,ai)}array(St,et,ai){return super.array(St,et,ai)}}return Xt.\u0275fac=function(){let Jt;return function(et){return(Jt||(Jt=l.n5z(Xt)))(et||Xt)}}(),Xt.\u0275prov=l.Yz7({token:Xt,factory:Xt.\u0275fac,providedIn:oc}),Xt})()},47957:(K,W,_)=>{"use strict";_.d(W,{Bb:()=>An,XC:()=>Ie,ZL:()=>fn});var l=_(12687),u=_(21281),g=_(83353),h=_(94650),t=_(3238),x=_(42654),T=_(8929),U=_(88514),D=_(36787),k=_(21086),O=_(23753),q=_(36895),Y=_(98184),$=_(67376),X=_(40445),at=_(29521),rt=_(84080),ft=_(24006),Tt=_(59549),qt=_(1059),Vt=_(87545),Bt=_(72986),bt=_(92198),xt=_(24850),ht=_(22868),ut=_(18583);const Mt=["panel"];function It(xe,hn){if(1&xe&&(h.TgZ(0,"div",0,1),h.Hsn(2),h.qZA()),2&xe){const Re=hn.id,_n=h.oxw();h.Q6J("id",_n.id)("ngClass",_n._classList),h.uIk("aria-label",_n.ariaLabel||null)("aria-labelledby",_n._getPanelAriaLabelledby(Re))}}const wt=["*"];let ee=0;class Ft{constructor(hn,Re){this.source=hn,this.option=Re}}const _e=(0,t.Kr)(class{}),pe=new h.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Ze(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let Oe=(()=>{class xe extends _e{constructor(Re,_n,Kn,si){super(),this._changeDetectorRef=Re,this._elementRef=_n,this._activeOptionChanges=x.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new h.vpe,this.opened=new h.vpe,this.closed=new h.vpe,this.optionActivated=new h.vpe,this._classList={},this.id="mat-autocomplete-"+ee++,this.inertGroups=si?.SAFARI||!1,this._autoActiveFirstOption=!!Kn.autoActiveFirstOption,this._autoSelectActiveOption=!!Kn.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Re){this._autoActiveFirstOption=(0,u.Ig)(Re)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(Re){this._autoSelectActiveOption=(0,u.Ig)(Re)}set classList(Re){this._classList=Re&&Re.length?(0,u.du)(Re).reduce((_n,Kn)=>(_n[Kn]=!0,_n),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new l.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Re=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Re]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(Re){this.panel&&(this.panel.nativeElement.scrollTop=Re)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Re){const _n=new Ft(this,Re);this.optionSelected.emit(_n)}_getPanelAriaLabelledby(Re){return this.ariaLabel?null:this.ariaLabelledby?(Re?Re+" ":"")+this.ariaLabelledby:Re}_setVisibilityClasses(Re){Re[this._visibleClass]=this.showPanel,Re[this._hiddenClass]=!this.showPanel}}return xe.\u0275fac=function(Re){return new(Re||xe)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(pe),h.Y36(g.t4))},xe.\u0275dir=h.lG2({type:xe,viewQuery:function(Re,_n){if(1&Re&&(h.Gf(h.Rgc,7),h.Gf(Mt,5)),2&Re){let Kn;h.iGM(Kn=h.CRH())&&(_n.template=Kn.first),h.iGM(Kn=h.CRH())&&(_n.panel=Kn.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[h.qOj]}),xe})(),Ie=(()=>{class xe extends Oe{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return xe.\u0275fac=function(){let hn;return function(_n){return(hn||(hn=h.n5z(xe)))(_n||xe)}}(),xe.\u0275cmp=h.Xpm({type:xe,selectors:[["mat-autocomplete"]],contentQueries:function(Re,_n,Kn){if(1&Re&&(h.Suo(Kn,t.K7,5),h.Suo(Kn,t.ey,5)),2&Re){let si;h.iGM(si=h.CRH())&&(_n.optionGroups=si),h.iGM(si=h.CRH())&&(_n.options=si)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[h._Bn([{provide:t.HF,useExisting:xe}]),h.qOj],ngContentSelectors:wt,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(Re,_n){1&Re&&(h.F$t(),h.YNc(0,It,3,4,"ng-template"))},dependencies:[q.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),xe})();const Kt=new h.OlP("mat-autocomplete-scroll-strategy"),ce={provide:Kt,deps:[Y.aV],useFactory:function ue(xe){return()=>xe.scrollStrategies.reposition()}},je={provide:ft.JU,useExisting:(0,h.Gpc)(()=>fn),multi:!0};let Ye=(()=>{class xe{constructor(Re,_n,Kn,si,oi,Vn,ze,Wt,J,j,Q){this._element=Re,this._overlay=_n,this._viewContainerRef=Kn,this._zone=si,this._changeDetectorRef=oi,this._dir=ze,this._formField=Wt,this._document=J,this._viewportRuler=j,this._defaults=Q,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=x.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new T.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,U.P)(()=>{const Ct=this.autocomplete?this.autocomplete.options:null;return Ct?Ct.changes.pipe((0,qt.O)(Ct),(0,Vt.w)(()=>(0,D.T)(...Ct.map(Yt=>Yt.onSelectionChange)))):this._zone.onStable.pipe((0,Bt.q)(1),(0,Vt.w)(()=>this.optionSelections))}),this._scrollStrategy=Vn}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Re){this._autocompleteDisabled=(0,u.Ig)(Re)}ngAfterViewInit(){const Re=this._getWindow();typeof Re<"u"&&this._zone.runOutsideAngular(()=>Re.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Re){Re.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Re=this._getWindow();typeof Re<"u"&&Re.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,D.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,bt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,bt.h)(()=>this._overlayAttached)):(0,k.of)()).pipe((0,xt.U)(Re=>Re instanceof t.rN?Re:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,D.T)((0,O.R)(this._document,"click"),(0,O.R)(this._document,"auxclick"),(0,O.R)(this._document,"touchend")).pipe((0,bt.h)(Re=>{const _n=(0,g.sA)(Re),Kn=this._formField?this._formField._elementRef.nativeElement:null,si=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&_n!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Kn||!Kn.contains(_n))&&(!si||!si.contains(_n))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(_n)}))}writeValue(Re){Promise.resolve(null).then(()=>this._assignOptionValue(Re))}registerOnChange(Re){this._onChange=Re}registerOnTouched(Re){this._onTouched=Re}setDisabledState(Re){this._element.nativeElement.disabled=Re}_handleKeydown(Re){const _n=Re.keyCode,Kn=(0,at.Vb)(Re);if(_n===at.hY&&!Kn&&Re.preventDefault(),this.activeOption&&_n===at.K5&&this.panelOpen&&!Kn)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Re.preventDefault();else if(this.autocomplete){const si=this.autocomplete._keyManager.activeItem,oi=_n===at.LH||_n===at.JH;_n===at.Mf||oi&&!Kn&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Re):oi&&this._canOpen()&&this.openPanel(),(oi||this.autocomplete._keyManager.activeItem!==si)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(Re){let _n=Re.target,Kn=_n.value;"number"===_n.type&&(Kn=""==Kn?null:parseFloat(Kn)),this._previousValue!==Kn&&(this._previousValue=Kn,this._pendingAutoselectedOption=null,this._onChange(Kn),this._canOpen()&&this._document.activeElement===Re.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(Re=!1){this._formField&&"auto"===this._formField.floatLabel&&(Re?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Re=this._zone.onStable.pipe((0,Bt.q)(1)),_n=this.autocomplete.options.changes.pipe((0,ht.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,ut.g)(0));return(0,D.T)(Re,_n).pipe((0,Vt.w)(()=>(this._zone.run(()=>{const Kn=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Kn!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,Bt.q)(1)).subscribe(Kn=>this._setValueAndClose(Kn))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Re){const _n=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Re):Re;this._updateNativeInputValue(_n??"")}_updateNativeInputValue(Re){this._formField?this._formField._control.value=Re:this._element.nativeElement.value=Re,this._previousValue=Re}_setValueAndClose(Re){const _n=Re?Re.source:this._pendingAutoselectedOption;_n&&(this._clearPreviousSelectedOption(_n),this._assignOptionValue(_n.value),this._onChange(_n.value),this.autocomplete._emitSelectEvent(_n),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Re){this.autocomplete.options.forEach(_n=>{_n!==Re&&_n.selected&&_n.deselect()})}_attachOverlay(){let Re=this._overlayRef;Re?(this._positionStrategy.setOrigin(this._getConnectedElement()),Re.updateSize({width:this._getPanelWidth()})):(this._portal=new rt.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Re=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Re,this._handleOverlayEvents(Re),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Re&&Re.updateSize({width:this._getPanelWidth()})})),Re&&!Re.hasAttached()&&(Re.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const _n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&_n!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new Y.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const Re=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Re),this._positionStrategy=Re,Re}_setStrategyPositions(Re){const _n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Kn=this._aboveClass,si=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Kn},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Kn}];let oi;oi="above"===this.position?si:"below"===this.position?_n:[..._n,...si],Re.withPositions(oi)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const Re=this.autocomplete;Re.autoActiveFirstOption?Re._keyManager.setFirstItemActive():Re._keyManager.setActiveItem(-1)}_canOpen(){const Re=this._element.nativeElement;return!Re.readOnly&&!Re.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(Re){const _n=this.autocomplete,Kn=(0,t.CB)(Re,_n.options,_n.optionGroups);if(0===Re&&1===Kn)_n._setScrollTop(0);else if(_n.panel){const si=_n.options.toArray()[Re];if(si){const oi=si._getHostElement(),Vn=(0,t.jH)(oi.offsetTop,oi.offsetHeight,_n._getScrollTop(),_n.panel.nativeElement.offsetHeight);_n._setScrollTop(Vn)}}}_handleOverlayEvents(Re){Re.keydownEvents().subscribe(_n=>{(_n.keyCode===at.hY&&!(0,at.Vb)(_n)||_n.keyCode===at.LH&&(0,at.Vb)(_n,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),_n.stopPropagation(),_n.preventDefault())}),Re.outsidePointerEvents().subscribe()}}return xe.\u0275fac=function(Re){return new(Re||xe)(h.Y36(h.SBq),h.Y36(Y.aV),h.Y36(h.s_b),h.Y36(h.R0b),h.Y36(h.sBO),h.Y36(Kt),h.Y36(X.Is,8),h.Y36(Tt.G_,9),h.Y36(q.K0,8),h.Y36($.rL),h.Y36(pe,8))},xe.\u0275dir=h.lG2({type:xe,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[h.TTD]}),xe})(),fn=(()=>{class xe extends Ye{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return xe.\u0275fac=function(){let hn;return function(_n){return(hn||(hn=h.n5z(xe)))(_n||xe)}}(),xe.\u0275dir=h.lG2({type:xe,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(Re,_n){1&Re&&h.NdJ("focusin",function(){return _n._handleFocus()})("blur",function(){return _n._onTouched()})("input",function(si){return _n._handleInput(si)})("keydown",function(si){return _n._handleKeydown(si)})("click",function(){return _n._handleClick()}),2&Re&&h.uIk("autocomplete",_n.autocompleteAttribute)("role",_n.autocompleteDisabled?null:"combobox")("aria-autocomplete",_n.autocompleteDisabled?null:"list")("aria-activedescendant",_n.panelOpen&&_n.activeOption?_n.activeOption.id:null)("aria-expanded",_n.autocompleteDisabled?null:_n.panelOpen.toString())("aria-owns",_n.autocompleteDisabled||!_n.panelOpen||null==_n.autocomplete?null:_n.autocomplete.id)("aria-haspopup",_n.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[h._Bn([je]),h.qOj]}),xe})(),An=(()=>{class xe{}return xe.\u0275fac=function(Re){return new(Re||xe)},xe.\u0275mod=h.oAB({type:xe}),xe.\u0275inj=h.cJS({providers:[ce],imports:[Y.U8,t.Ng,t.BQ,q.ez,$.ZD,t.Ng,t.BQ]}),xe})()},42673:(K,W,_)=>{"use strict";_.d(W,{g:()=>D,k:()=>U});var l=_(94650),u=_(3238),g=_(12687),h=_(21281);let t=0;const x=(0,u.Id)(class{}),T="mat-badge-content";let U=(()=>{class k extends x{constructor(q,Y,$,X,at){super(),this._ngZone=q,this._elementRef=Y,this._ariaDescriber=$,this._renderer=X,this._animationMode=at,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=t++,this._isInitialized=!1}get color(){return this._color}set color(q){this._setColor(q),this._color=q}get overlap(){return this._overlap}set overlap(q){this._overlap=(0,h.Ig)(q)}get content(){return this._content}set content(q){this._updateRenderedContent(q)}get description(){return this._description}set description(q){this._updateHostAriaDescription(q)}get hidden(){return this._hidden}set hidden(q){this._hidden=(0,h.Ig)(q)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const q=this._renderer.createElement("span"),Y="mat-badge-active";return q.setAttribute("id",`mat-badge-content-${this._id}`),q.setAttribute("aria-hidden","true"),q.classList.add(T),"NoopAnimations"===this._animationMode&&q.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(q),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{q.classList.add(Y)})}):q.classList.add(Y),q}_updateRenderedContent(q){const Y=`${q??""}`.trim();this._isInitialized&&Y&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=Y),this._content=Y}_updateHostAriaDescription(q){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),q&&this._ariaDescriber.describe(this._elementRef.nativeElement,q),this._description=q}_setColor(q){const Y=this._elementRef.nativeElement.classList;Y.remove(`mat-badge-${this._color}`),q&&Y.add(`mat-badge-${q}`)}_clearExistingBadges(){const q=this._elementRef.nativeElement.querySelectorAll(`:scope > .${T}`);for(const Y of Array.from(q))Y!==this._badgeElement&&Y.remove()}}return k.\u0275fac=function(q){return new(q||k)(l.Y36(l.R0b),l.Y36(l.SBq),l.Y36(g.$s),l.Y36(l.Qsj),l.Y36(l.QbO,8))},k.\u0275dir=l.lG2({type:k,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(q,Y){2&q&&l.ekj("mat-badge-overlap",Y.overlap)("mat-badge-above",Y.isAbove())("mat-badge-below",!Y.isAbove())("mat-badge-before",!Y.isAfter())("mat-badge-after",Y.isAfter())("mat-badge-small","small"===Y.size)("mat-badge-medium","medium"===Y.size)("mat-badge-large","large"===Y.size)("mat-badge-hidden",Y.hidden||!Y.content)("mat-badge-disabled",Y.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[l.qOj]}),k})(),D=(()=>{class k{}return k.\u0275fac=function(q){return new(q||k)},k.\u0275mod=l.oAB({type:k}),k.\u0275inj=l.cJS({imports:[g.rt,u.BQ,u.BQ]}),k})()},90811:(K,W,_)=>{"use strict";_.d(W,{A9:()=>$,Yi:()=>at,vV:()=>rt});var l=_(12687),u=_(21281),g=_(95017),h=_(94650),t=_(24006),x=_(3238);const T=["button"],U=["*"],D=new h.OlP("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),k=new h.OlP("MatButtonToggleGroup"),O={provide:t.JU,useExisting:(0,h.Gpc)(()=>$),multi:!0};let q=0;class Y{constructor(Tt,qt){this.source=Tt,this.value=qt}}let $=(()=>{class ft{constructor(qt,Vt){this._changeDetector=qt,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+q++,this.valueChange=new h.vpe,this.change=new h.vpe,this.appearance=Vt&&Vt.appearance?Vt.appearance:"standard"}get name(){return this._name}set name(qt){this._name=qt,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(qt){this._vertical=(0,u.Ig)(qt)}get value(){const qt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?qt.map(Vt=>Vt.value):qt[0]?qt[0].value:void 0}set value(qt){this._setSelectionByValue(qt),this.valueChange.emit(this.value)}get selected(){const qt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?qt:qt[0]||null}get multiple(){return this._multiple}set multiple(qt){this._multiple=(0,u.Ig)(qt),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(qt){this._disabled=(0,u.Ig)(qt),this._markButtonsForCheck()}ngOnInit(){this._selectionModel=new g.Ov(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(qt=>qt.checked))}writeValue(qt){this.value=qt,this._changeDetector.markForCheck()}registerOnChange(qt){this._controlValueAccessorChangeFn=qt}registerOnTouched(qt){this._onTouched=qt}setDisabledState(qt){this.disabled=qt}_emitChangeEvent(qt){const Vt=new Y(qt,this.value);this._controlValueAccessorChangeFn(Vt.value),this.change.emit(Vt)}_syncButtonToggle(qt,Vt,Bt=!1,bt=!1){!this.multiple&&this.selected&&!qt.checked&&(this.selected.checked=!1),this._selectionModel?Vt?this._selectionModel.select(qt):this._selectionModel.deselect(qt):bt=!0,bt?Promise.resolve().then(()=>this._updateModelValue(qt,Bt)):this._updateModelValue(qt,Bt)}_isSelected(qt){return this._selectionModel&&this._selectionModel.isSelected(qt)}_isPrechecked(qt){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(Vt=>null!=qt.value&&Vt===qt.value):qt.value===this._rawValue)}_setSelectionByValue(qt){this._rawValue=qt,this._buttonToggles&&(this.multiple&&qt?(Array.isArray(qt),this._clearSelection(),qt.forEach(Vt=>this._selectValue(Vt))):(this._clearSelection(),this._selectValue(qt)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(qt=>qt.checked=!1)}_selectValue(qt){const Vt=this._buttonToggles.find(Bt=>null!=Bt.value&&Bt.value===qt);Vt&&(Vt.checked=!0,this._selectionModel.select(Vt))}_updateModelValue(qt,Vt){Vt&&this._emitChangeEvent(qt),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(qt=>qt._markForCheck())}}return ft.\u0275fac=function(qt){return new(qt||ft)(h.Y36(h.sBO),h.Y36(D,8))},ft.\u0275dir=h.lG2({type:ft,selectors:[["mat-button-toggle-group"]],contentQueries:function(qt,Vt,Bt){if(1&qt&&h.Suo(Bt,at,5),2&qt){let bt;h.iGM(bt=h.CRH())&&(Vt._buttonToggles=bt)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(qt,Vt){2&qt&&(h.uIk("aria-disabled",Vt.disabled),h.ekj("mat-button-toggle-vertical",Vt.vertical)("mat-button-toggle-group-appearance-standard","standard"===Vt.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[h._Bn([O,{provide:k,useExisting:ft}])]}),ft})();const X=(0,x.Kr)(class{});let at=(()=>{class ft extends X{constructor(qt,Vt,Bt,bt,xt,ht){super(),this._changeDetectorRef=Vt,this._elementRef=Bt,this._focusMonitor=bt,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new h.vpe;const ut=Number(xt);this.tabIndex=ut||0===ut?ut:null,this.buttonToggleGroup=qt,this.appearance=ht&&ht.appearance?ht.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(qt){this._appearance=qt}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(qt){const Vt=(0,u.Ig)(qt);Vt!==this._checked&&(this._checked=Vt,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(qt){this._disabled=(0,u.Ig)(qt)}ngOnInit(){const qt=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+q++,qt&&(qt._isPrechecked(this)?this.checked=!0:qt._isSelected(this)!==this._checked&&qt._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const qt=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),qt&&qt._isSelected(this)&&qt._syncButtonToggle(this,!1,!1,!0)}focus(qt){this._buttonElement.nativeElement.focus(qt)}_onButtonClick(){const qt=!!this._isSingleSelector()||!this._checked;qt!==this._checked&&(this._checked=qt,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new Y(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return ft.\u0275fac=function(qt){return new(qt||ft)(h.Y36(k,8),h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(l.tE),h.$8M("tabindex"),h.Y36(D,8))},ft.\u0275cmp=h.Xpm({type:ft,selectors:[["mat-button-toggle"]],viewQuery:function(qt,Vt){if(1&qt&&h.Gf(T,5),2&qt){let Bt;h.iGM(Bt=h.CRH())&&(Vt._buttonElement=Bt.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(qt,Vt){1&qt&&h.NdJ("focus",function(){return Vt.focus()}),2&qt&&(h.uIk("aria-label",null)("aria-labelledby",null)("id",Vt.id)("name",null),h.ekj("mat-button-toggle-standalone",!Vt.buttonToggleGroup)("mat-button-toggle-checked",Vt.checked)("mat-button-toggle-disabled",Vt.disabled)("mat-button-toggle-appearance-standard","standard"===Vt.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[h.qOj],ngContentSelectors:U,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(qt,Vt){if(1&qt&&(h.F$t(),h.TgZ(0,"button",0,1),h.NdJ("click",function(){return Vt._onButtonClick()}),h.TgZ(2,"span",2),h.Hsn(3),h.qZA()(),h._UZ(4,"span",3)(5,"span",4)),2&qt){const Bt=h.MAs(1);h.Q6J("id",Vt.buttonId)("disabled",Vt.disabled||null),h.uIk("tabindex",Vt.disabled?-1:Vt.tabIndex)("aria-pressed",Vt.checked)("name",Vt._getButtonName())("aria-label",Vt.ariaLabel)("aria-labelledby",Vt.ariaLabelledby),h.xp6(5),h.Q6J("matRippleTrigger",Bt)("matRippleDisabled",Vt.disableRipple||Vt.disabled)}},dependencies:[x.wG],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),ft})(),rt=(()=>{class ft{}return ft.\u0275fac=function(qt){return new(qt||ft)},ft.\u0275mod=h.oAB({type:ft}),ft.\u0275inj=h.cJS({imports:[x.BQ,x.si,x.BQ]}),ft})()},4859:(K,W,_)=>{"use strict";_.d(W,{lW:()=>k,ot:()=>q,zs:()=>O});var l=_(94650),u=_(3238),g=_(12687);const h=["mat-button",""],t=["*"],U=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],D=(0,u.pj)((0,u.Id)((0,u.Kr)(class{constructor(Y){this._elementRef=Y}})));let k=(()=>{class Y extends D{constructor(X,at,rt){super(X),this._focusMonitor=at,this._animationMode=rt,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ft of U)this._hasHostAttributes(ft)&&this._getHostElement().classList.add(ft);X.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(X,at){X?this._focusMonitor.focusVia(this._getHostElement(),X,at):this._getHostElement().focus(at)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...X){return X.some(at=>this._getHostElement().hasAttribute(at))}}return Y.\u0275fac=function(X){return new(X||Y)(l.Y36(l.SBq),l.Y36(g.tE),l.Y36(l.QbO,8))},Y.\u0275cmp=l.Xpm({type:Y,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(X,at){if(1&X&&l.Gf(u.wG,5),2&X){let rt;l.iGM(rt=l.CRH())&&(at.ripple=rt.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(X,at){2&X&&(l.uIk("disabled",at.disabled||null),l.ekj("_mat-animation-noopable","NoopAnimations"===at._animationMode)("mat-button-disabled",at.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[l.qOj],attrs:h,ngContentSelectors:t,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(X,at){1&X&&(l.F$t(),l.TgZ(0,"span",0),l.Hsn(1),l.qZA(),l._UZ(2,"span",1)(3,"span",2)),2&X&&(l.xp6(2),l.ekj("mat-button-ripple-round",at.isRoundButton||at.isIconButton),l.Q6J("matRippleDisabled",at._isRippleDisabled())("matRippleCentered",at.isIconButton)("matRippleTrigger",at._getHostElement()))},dependencies:[u.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),Y})(),O=(()=>{class Y extends k{constructor(X,at,rt,ft){super(at,X,rt),this._ngZone=ft,this._haltDisabledEvents=Tt=>{this.disabled&&(Tt.preventDefault(),Tt.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return Y.\u0275fac=function(X){return new(X||Y)(l.Y36(g.tE),l.Y36(l.SBq),l.Y36(l.QbO,8),l.Y36(l.R0b,8))},Y.\u0275cmp=l.Xpm({type:Y,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(X,at){2&X&&(l.uIk("tabindex",at.disabled?-1:at.tabIndex)("disabled",at.disabled||null)("aria-disabled",at.disabled.toString()),l.ekj("_mat-animation-noopable","NoopAnimations"===at._animationMode)("mat-button-disabled",at.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[l.qOj],attrs:h,ngContentSelectors:t,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(X,at){1&X&&(l.F$t(),l.TgZ(0,"span",0),l.Hsn(1),l.qZA(),l._UZ(2,"span",1)(3,"span",2)),2&X&&(l.xp6(2),l.ekj("mat-button-ripple-round",at.isRoundButton||at.isIconButton),l.Q6J("matRippleDisabled",at._isRippleDisabled())("matRippleCentered",at.isIconButton)("matRippleTrigger",at._getHostElement()))},dependencies:[u.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),Y})(),q=(()=>{class Y{}return Y.\u0275fac=function(X){return new(X||Y)},Y.\u0275mod=l.oAB({type:Y}),Y.\u0275inj=l.cJS({imports:[u.si,u.BQ,u.BQ]}),Y})()},73546:(K,W,_)=>{"use strict";_.d(W,{$j:()=>O,C1:()=>Bt,G2:()=>$,QW:()=>bt,a8:()=>qt,dk:()=>Vt,dn:()=>D,hq:()=>q,n5:()=>k,nc:()=>at});var l=_(94650),u=_(3238);const g=["*",[["mat-card-footer"]]],h=["*","mat-card-footer"],t=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],x=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],T=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],U=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let D=(()=>{class xt{}return xt.\u0275fac=function(ut){return new(ut||xt)},xt.\u0275dir=l.lG2({type:xt,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),xt})(),k=(()=>{class xt{}return xt.\u0275fac=function(ut){return new(ut||xt)},xt.\u0275dir=l.lG2({type:xt,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),xt})(),O=(()=>{class xt{}return xt.\u0275fac=function(ut){return new(ut||xt)},xt.\u0275dir=l.lG2({type:xt,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),xt})(),q=(()=>{class xt{constructor(){this.align="start"}}return xt.\u0275fac=function(ut){return new(ut||xt)},xt.\u0275dir=l.lG2({type:xt,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(ut,Mt){2&ut&&l.ekj("mat-card-actions-align-end","end"===Mt.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),xt})(),$=(()=>{class xt{}return xt.\u0275fac=function(ut){return new(ut||xt)},xt.\u0275dir=l.lG2({type:xt,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),xt})(),at=(()=>{class xt{}return xt.\u0275fac=function(ut){return new(ut||xt)},xt.\u0275dir=l.lG2({type:xt,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),xt})(),qt=(()=>{class xt{constructor(ut){this._animationMode=ut}}return xt.\u0275fac=function(ut){return new(ut||xt)(l.Y36(l.QbO,8))},xt.\u0275cmp=l.Xpm({type:xt,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(ut,Mt){2&ut&&l.ekj("_mat-animation-noopable","NoopAnimations"===Mt._animationMode)},exportAs:["matCard"],ngContentSelectors:h,decls:2,vars:0,template:function(ut,Mt){1&ut&&(l.F$t(g),l.Hsn(0),l.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),xt})(),Vt=(()=>{class xt{}return xt.\u0275fac=function(ut){return new(ut||xt)},xt.\u0275cmp=l.Xpm({type:xt,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:x,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(ut,Mt){1&ut&&(l.F$t(t),l.Hsn(0),l.TgZ(1,"div",0),l.Hsn(2,1),l.qZA(),l.Hsn(3,2))},encapsulation:2,changeDetection:0}),xt})(),Bt=(()=>{class xt{}return xt.\u0275fac=function(ut){return new(ut||xt)},xt.\u0275cmp=l.Xpm({type:xt,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:U,decls:4,vars:0,template:function(ut,Mt){1&ut&&(l.F$t(T),l.TgZ(0,"div"),l.Hsn(1),l.qZA(),l.Hsn(2,1),l.Hsn(3,2))},encapsulation:2,changeDetection:0}),xt})(),bt=(()=>{class xt{}return xt.\u0275fac=function(ut){return new(ut||xt)},xt.\u0275mod=l.oAB({type:xt}),xt.\u0275inj=l.cJS({imports:[u.BQ,u.BQ]}),xt})()},56709:(K,W,_)=>{"use strict";_.d(W,{e_:()=>Vt,oG:()=>Tt,p9:()=>bt});var l=_(12687),u=_(21281),g=_(94650),h=_(24006),t=_(3238),x=_(49643);const T=["input"],U=["label"],D=function(xt){return{enterDuration:xt}},k=["*"],O=new g.OlP("mat-checkbox-default-options",{providedIn:"root",factory:q});function q(){return{color:"accent",clickAction:"check-indeterminate"}}let Y=0;const $=q(),X={provide:h.JU,useExisting:(0,g.Gpc)(()=>Tt),multi:!0};class at{}const rt=(0,t.sb)((0,t.pj)((0,t.Kr)((0,t.Id)(class{constructor(xt){this._elementRef=xt}}))));let ft=(()=>{class xt extends rt{constructor(ut,Mt,It,wt,ee,Ft,_e){super(Mt),this._changeDetectorRef=It,this._ngZone=wt,this._animationMode=Ft,this._options=_e,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new g.vpe,this.indeterminateChange=new g.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||$,this.color=this.defaultColor=this._options.color||$.color,this.tabIndex=parseInt(ee)||0,this.id=this._uniqueId=`${ut}${++Y}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(ut){this._required=(0,u.Ig)(ut)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(ut){const Mt=(0,u.Ig)(ut);Mt!=this.checked&&(this._checked=Mt,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ut){const Mt=(0,u.Ig)(ut);Mt!==this.disabled&&(this._disabled=Mt,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(ut){const Mt=ut!=this._indeterminate;this._indeterminate=(0,u.Ig)(ut),Mt&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(ut){this.checked=!!ut}registerOnChange(ut){this._controlValueAccessorChangeFn=ut}registerOnTouched(ut){this._onTouched=ut}setDisabledState(ut){this.disabled=ut}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(ut){let Mt=this._currentCheckState,It=this._getAnimationTargetElement();if(Mt!==ut&&It&&(this._currentAnimationClass&&It.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(Mt,ut),this._currentCheckState=ut,this._currentAnimationClass.length>0)){It.classList.add(this._currentAnimationClass);const wt=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{It.classList.remove(wt)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const ut=this._options?.clickAction;this.disabled||"noop"===ut?!this.disabled&&"noop"===ut&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==ut&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(ut){ut.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(ut,Mt){if("NoopAnimations"===this._animationMode)return"";switch(ut){case 0:if(1===Mt)return this._animationClasses.uncheckedToChecked;if(3==Mt)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===Mt?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===Mt?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===Mt?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(ut){const Mt=this._inputElement;Mt&&(Mt.nativeElement.indeterminate=ut)}}return xt.\u0275fac=function(ut){g.$Z()},xt.\u0275dir=g.lG2({type:xt,viewQuery:function(ut,Mt){if(1&ut&&(g.Gf(T,5),g.Gf(U,5),g.Gf(t.wG,5)),2&ut){let It;g.iGM(It=g.CRH())&&(Mt._inputElement=It.first),g.iGM(It=g.CRH())&&(Mt._labelElement=It.first),g.iGM(It=g.CRH())&&(Mt.ripple=It.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[g.qOj]}),xt})(),Tt=(()=>{class xt extends ft{constructor(ut,Mt,It,wt,ee,Ft,_e){super("mat-checkbox-",ut,Mt,wt,ee,Ft,_e),this._focusMonitor=It,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(ut){const Mt=new at;return Mt.source=this,Mt.checked=ut,Mt}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ut=>{ut||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(ut){ut.stopPropagation(),super._handleInputClick()}focus(ut,Mt){ut?this._focusMonitor.focusVia(this._inputElement,ut,Mt):this._inputElement.nativeElement.focus(Mt)}}return xt.\u0275fac=function(ut){return new(ut||xt)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(l.tE),g.Y36(g.R0b),g.$8M("tabindex"),g.Y36(g.QbO,8),g.Y36(O,8))},xt.\u0275cmp=g.Xpm({type:xt,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(ut,Mt){2&ut&&(g.Ikx("id",Mt.id),g.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),g.ekj("mat-checkbox-indeterminate",Mt.indeterminate)("mat-checkbox-checked",Mt.checked)("mat-checkbox-disabled",Mt.disabled)("mat-checkbox-label-before","before"==Mt.labelPosition)("_mat-animation-noopable","NoopAnimations"===Mt._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[g._Bn([X]),g.qOj],ngContentSelectors:k,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(ut,Mt){if(1&ut&&(g.F$t(),g.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),g.NdJ("change",function(wt){return Mt._onInteractionEvent(wt)})("click",function(wt){return Mt._onInputClick(wt)}),g.qZA(),g.TgZ(5,"span",5),g._UZ(6,"span",6),g.qZA(),g._UZ(7,"span",7),g.TgZ(8,"span",8),g.O4$(),g.TgZ(9,"svg",9),g._UZ(10,"path",10),g.qZA(),g.kcU(),g._UZ(11,"span",11),g.qZA()(),g.TgZ(12,"span",12,13),g.NdJ("cdkObserveContent",function(){return Mt._onLabelTextChange()}),g.TgZ(14,"span",14),g._uU(15,"\xa0"),g.qZA(),g.Hsn(16),g.qZA()()),2&ut){const It=g.MAs(1),wt=g.MAs(13);g.uIk("for",Mt.inputId),g.xp6(2),g.ekj("mat-checkbox-inner-container-no-side-margin",!wt.textContent||!wt.textContent.trim()),g.xp6(1),g.Q6J("id",Mt.inputId)("required",Mt.required)("checked",Mt.checked)("disabled",Mt.disabled)("tabIndex",Mt.tabIndex),g.uIk("value",Mt.value)("name",Mt.name)("aria-label",Mt.ariaLabel||null)("aria-labelledby",Mt.ariaLabelledby)("aria-checked",Mt._getAriaChecked())("aria-describedby",Mt.ariaDescribedby),g.xp6(2),g.Q6J("matRippleTrigger",It)("matRippleDisabled",Mt._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",g.VKq(19,D,"NoopAnimations"===Mt._animationMode?0:150))}},dependencies:[t.wG,x.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),xt})();const qt={provide:h.Cf,useExisting:(0,g.Gpc)(()=>Vt),multi:!0};let Vt=(()=>{class xt extends h.Zs{}return xt.\u0275fac=function(){let ht;return function(Mt){return(ht||(ht=g.n5z(xt)))(Mt||xt)}}(),xt.\u0275dir=g.lG2({type:xt,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[g._Bn([qt]),g.qOj]}),xt})(),Bt=(()=>{class xt{}return xt.\u0275fac=function(ut){return new(ut||xt)},xt.\u0275mod=g.oAB({type:xt}),xt.\u0275inj=g.cJS({}),xt})(),bt=(()=>{class xt{}return xt.\u0275fac=function(ut){return new(ut||xt)},xt.\u0275mod=g.oAB({type:xt}),xt.\u0275inj=g.cJS({imports:[t.si,t.BQ,x.Q8,Bt,t.BQ,Bt]}),xt})()},3238:(K,W,_)=>{"use strict";_.d(W,{yN:()=>ft,mZ:()=>Tt,_A:()=>Ze,rD:()=>Te,sG:()=>Oe,Ad:()=>_e,K7:()=>Cn,HF:()=>Yt,Y2:()=>Wt,BQ:()=>Bt,X2:()=>Ye,uc:()=>xe,XK:()=>ce,ey:()=>Sn,Ng:()=>cn,rN:()=>Fi,nP:()=>Q,us:()=>Ct,wG:()=>J,si:()=>j,IR:()=>Vn,CB:()=>On,jH:()=>He,pj:()=>Mt,Kr:()=>It,Id:()=>ut,FD:()=>ee,dB:()=>Ft,sb:()=>wt,E0:()=>fn});var l=_(94650),u=_(12687),g=_(40445),t=_(36895),x=_(83353),T=_(21281),U=_(56498),D=_(8929),k=_(1059),O=_(29521);function $(qe,we){if(1&qe&&l._UZ(0,"mat-pseudo-checkbox",4),2&qe){const Qe=l.oxw();l.Q6J("state",Qe.selected?"checked":"unchecked")("disabled",Qe.disabled)}}function X(qe,we){if(1&qe&&(l.TgZ(0,"span",5),l._uU(1),l.qZA()),2&qe){const Qe=l.oxw();l.xp6(1),l.hij("(",Qe.group.label,")")}}const at=["*"];let ft=(()=>{class qe{}return qe.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",qe.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",qe.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",qe.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",qe})(),Tt=(()=>{class qe{}return qe.COMPLEX="375ms",qe.ENTERING="225ms",qe.EXITING="195ms",qe})();const Vt=new l.OlP("mat-sanity-checks",{providedIn:"root",factory:function qt(){return!0}});let Bt=(()=>{class qe{constructor(Qe,te,Ee){this._sanityChecks=te,this._document=Ee,this._hasDoneGlobalChecks=!1,Qe._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Qe){return!(0,x.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Qe])}}return qe.\u0275fac=function(Qe){return new(Qe||qe)(l.LFG(u.qm),l.LFG(Vt,8),l.LFG(t.K0))},qe.\u0275mod=l.oAB({type:qe}),qe.\u0275inj=l.cJS({imports:[g.vT,g.vT]}),qe})();function ut(qe){return class extends qe{constructor(...we){super(...we),this._disabled=!1}get disabled(){return this._disabled}set disabled(we){this._disabled=(0,T.Ig)(we)}}}function Mt(qe,we){return class extends qe{constructor(...Qe){super(...Qe),this.defaultColor=we,this.color=we}get color(){return this._color}set color(Qe){const te=Qe||this.defaultColor;te!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),te&&this._elementRef.nativeElement.classList.add(`mat-${te}`),this._color=te)}}}function It(qe){return class extends qe{constructor(...we){super(...we),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(we){this._disableRipple=(0,T.Ig)(we)}}}function wt(qe,we=0){return class extends qe{constructor(...Qe){super(...Qe),this._tabIndex=we,this.defaultTabIndex=we}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Qe){this._tabIndex=null!=Qe?(0,T.su)(Qe):this.defaultTabIndex}}}function ee(qe){return class extends qe{constructor(...we){super(...we),this.errorState=!1}updateErrorState(){const we=this.errorState,$t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);$t!==we&&(this.errorState=$t,this.stateChanges.next())}}}function Ft(qe){return class extends qe{constructor(...we){super(...we),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new U.y(Qe=>{this._isInitialized?this._notifySubscriber(Qe):this._pendingSubscribers.push(Qe)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(we){we.next(),we.complete()}}}const _e=new l.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function pe(){return(0,l.f3M)(l.soG)}});class Ze{constructor(){this._localeChanges=new D.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(we){return this.isDateInstance(we)&&this.isValid(we)?we:null}deserialize(we){return null==we||this.isDateInstance(we)&&this.isValid(we)?we:this.invalid()}setLocale(we){this.locale=we,this._localeChanges.next()}compareDate(we,Qe){return this.getYear(we)-this.getYear(Qe)||this.getMonth(we)-this.getMonth(Qe)||this.getDate(we)-this.getDate(Qe)}sameDate(we,Qe){if(we&&Qe){let te=this.isValid(we),Ee=this.isValid(Qe);return te&&Ee?!this.compareDate(we,Qe):te==Ee}return we==Qe}clampDate(we,Qe,te){return Qe&&this.compareDate(we,Qe)<0?Qe:te&&this.compareDate(we,te)>0?te:we}}const Oe=new l.OlP("mat-date-formats"),Ie=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Rt(qe,we){const Qe=Array(qe);for(let te=0;te{class qe extends Ze{constructor(Qe,te){super(),this.useUtcForDisplay=!1,super.setLocale(Qe)}getYear(Qe){return Qe.getFullYear()}getMonth(Qe){return Qe.getMonth()}getDate(Qe){return Qe.getDate()}getDayOfWeek(Qe){return Qe.getDay()}getMonthNames(Qe){const te=new Intl.DateTimeFormat(this.locale,{month:Qe,timeZone:"utc"});return Rt(12,Ee=>this._format(te,new Date(2017,Ee,1)))}getDateNames(){const Qe=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Rt(31,te=>this._format(Qe,new Date(2017,0,te+1)))}getDayOfWeekNames(Qe){const te=new Intl.DateTimeFormat(this.locale,{weekday:Qe,timeZone:"utc"});return Rt(7,Ee=>this._format(te,new Date(2017,0,Ee+1)))}getYearName(Qe){const te=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(te,Qe)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Qe){return this.getDate(this._createDateWithOverflow(this.getYear(Qe),this.getMonth(Qe)+1,0))}clone(Qe){return new Date(Qe.getTime())}createDate(Qe,te,Ee){let $t=this._createDateWithOverflow(Qe,te,Ee);return $t.getMonth(),$t}today(){return new Date}parse(Qe,te){return"number"==typeof Qe?new Date(Qe):Qe?new Date(Date.parse(Qe)):null}format(Qe,te){if(!this.isValid(Qe))throw Error("NativeDateAdapter: Cannot format invalid date.");const Ee=new Intl.DateTimeFormat(this.locale,{...te,timeZone:"utc"});return this._format(Ee,Qe)}addCalendarYears(Qe,te){return this.addCalendarMonths(Qe,12*te)}addCalendarMonths(Qe,te){let Ee=this._createDateWithOverflow(this.getYear(Qe),this.getMonth(Qe)+te,this.getDate(Qe));return this.getMonth(Ee)!=((this.getMonth(Qe)+te)%12+12)%12&&(Ee=this._createDateWithOverflow(this.getYear(Ee),this.getMonth(Ee),0)),Ee}addCalendarDays(Qe,te){return this._createDateWithOverflow(this.getYear(Qe),this.getMonth(Qe),this.getDate(Qe)+te)}toIso8601(Qe){return[Qe.getUTCFullYear(),this._2digit(Qe.getUTCMonth()+1),this._2digit(Qe.getUTCDate())].join("-")}deserialize(Qe){if("string"==typeof Qe){if(!Qe)return null;if(Ie.test(Qe)){let te=new Date(Qe);if(this.isValid(te))return te}}return super.deserialize(Qe)}isDateInstance(Qe){return Qe instanceof Date}isValid(Qe){return!isNaN(Qe.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Qe,te,Ee){const $t=new Date;return $t.setFullYear(Qe,te,Ee),$t.setHours(0,0,0,0),$t}_2digit(Qe){return("00"+Qe).slice(-2)}_format(Qe,te){const Ee=new Date;return Ee.setUTCFullYear(te.getFullYear(),te.getMonth(),te.getDate()),Ee.setUTCHours(te.getHours(),te.getMinutes(),te.getSeconds(),te.getMilliseconds()),Qe.format(Ee)}}return qe.\u0275fac=function(Qe){return new(Qe||qe)(l.LFG(_e,8),l.LFG(x.t4))},qe.\u0275prov=l.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const Kt={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let ue=(()=>{class qe{}return qe.\u0275fac=function(Qe){return new(Qe||qe)},qe.\u0275mod=l.oAB({type:qe}),qe.\u0275inj=l.cJS({providers:[{provide:Ze,useClass:fe}]}),qe})(),ce=(()=>{class qe{}return qe.\u0275fac=function(Qe){return new(Qe||qe)},qe.\u0275mod=l.oAB({type:qe}),qe.\u0275inj=l.cJS({providers:[{provide:Oe,useValue:Kt}],imports:[ue]}),qe})(),Te=(()=>{class qe{isErrorState(Qe,te){return!!(Qe&&Qe.invalid&&(Qe.touched||te&&te.submitted))}}return qe.\u0275fac=function(Qe){return new(Qe||qe)},qe.\u0275prov=l.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),Ye=(()=>{class qe{}return qe.\u0275fac=function(Qe){return new(Qe||qe)},qe.\u0275dir=l.lG2({type:qe,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),qe})();function fn(qe,we,Qe="mat"){qe.changes.pipe((0,k.O)(qe)).subscribe(({length:te})=>{An(we,`${Qe}-2-line`,!1),An(we,`${Qe}-3-line`,!1),An(we,`${Qe}-multi-line`,!1),2===te||3===te?An(we,`${Qe}-${te}-line`,!0):te>3&&An(we,`${Qe}-multi-line`,!0)})}function An(qe,we,Qe){qe.nativeElement.classList.toggle(we,Qe)}let xe=(()=>{class qe{}return qe.\u0275fac=function(Qe){return new(Qe||qe)},qe.\u0275mod=l.oAB({type:qe}),qe.\u0275inj=l.cJS({imports:[Bt,Bt]}),qe})();class hn{constructor(we,Qe,te,Ee=!1){this._renderer=we,this.element=Qe,this.config=te,this._animationForciblyDisabledThroughCss=Ee,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Re={enterDuration:225,exitDuration:150},Kn=(0,x.i$)({passive:!0}),si=["mousedown","touchstart"],oi=["mouseup","mouseleave","touchend","touchcancel"];class Vn{constructor(we,Qe,te,Ee){this._target=we,this._ngZone=Qe,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Ee.isBrowser&&(this._containerElement=(0,T.fI)(te))}fadeInRipple(we,Qe,te={}){const Ee=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),$t={...Re,...te.animation};te.centered&&(we=Ee.left+Ee.width/2,Qe=Ee.top+Ee.height/2);const $e=te.radius||function ze(qe,we,Qe){const te=Math.max(Math.abs(qe-Qe.left),Math.abs(qe-Qe.right)),Ee=Math.max(Math.abs(we-Qe.top),Math.abs(we-Qe.bottom));return Math.sqrt(te*te+Ee*Ee)}(we,Qe,Ee),sn=we-Ee.left,Xe=Qe-Ee.top,me=$t.enterDuration,kt=document.createElement("div");kt.classList.add("mat-ripple-element"),kt.style.left=sn-$e+"px",kt.style.top=Xe-$e+"px",kt.style.height=2*$e+"px",kt.style.width=2*$e+"px",null!=te.color&&(kt.style.backgroundColor=te.color),kt.style.transitionDuration=`${me}ms`,this._containerElement.appendChild(kt);const ye=window.getComputedStyle(kt),ve=ye.transitionDuration,Se="none"===ye.transitionProperty||"0s"===ve||"0s, 0s"===ve,yn=new hn(this,kt,te,Se);kt.style.transform="scale3d(1, 1, 1)",yn.state=0,te.persistent||(this._mostRecentTransientRipple=yn);let pi=null;return!Se&&(me||$t.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Ci=()=>this._finishRippleTransition(yn),en=()=>this._destroyRipple(yn);kt.addEventListener("transitionend",Ci),kt.addEventListener("transitioncancel",en),pi={onTransitionEnd:Ci,onTransitionCancel:en}}),this._activeRipples.set(yn,pi),(Se||!me)&&this._finishRippleTransition(yn),yn}fadeOutRipple(we){if(2===we.state||3===we.state)return;const Qe=we.element,te={...Re,...we.config.animation};Qe.style.transitionDuration=`${te.exitDuration}ms`,Qe.style.opacity="0",we.state=2,(we._animationForciblyDisabledThroughCss||!te.exitDuration)&&this._finishRippleTransition(we)}fadeOutAll(){this._getActiveRipples().forEach(we=>we.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(we=>{we.config.persistent||we.fadeOut()})}setupTriggerEvents(we){const Qe=(0,T.fI)(we);!Qe||Qe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Qe,this._registerEvents(si))}handleEvent(we){"mousedown"===we.type?this._onMousedown(we):"touchstart"===we.type?this._onTouchStart(we):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(oi),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(we){0===we.state?this._startFadeOutTransition(we):2===we.state&&this._destroyRipple(we)}_startFadeOutTransition(we){const Qe=we===this._mostRecentTransientRipple,{persistent:te}=we.config;we.state=1,!te&&(!Qe||!this._isPointerDown)&&we.fadeOut()}_destroyRipple(we){const Qe=this._activeRipples.get(we)??null;this._activeRipples.delete(we),this._activeRipples.size||(this._containerRect=null),we===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),we.state=3,null!==Qe&&(we.element.removeEventListener("transitionend",Qe.onTransitionEnd),we.element.removeEventListener("transitioncancel",Qe.onTransitionCancel)),we.element.remove()}_onMousedown(we){const Qe=(0,u.X6)(we),te=this._lastTouchStartEvent&&Date.now(){!we.config.persistent&&(1===we.state||we.config.terminateOnPointerUp&&0===we.state)&&we.fadeOut()}))}_registerEvents(we){this._ngZone.runOutsideAngular(()=>{we.forEach(Qe=>{this._triggerElement.addEventListener(Qe,this,Kn)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(si.forEach(we=>{this._triggerElement.removeEventListener(we,this,Kn)}),this._pointerUpEventsRegistered&&oi.forEach(we=>{this._triggerElement.removeEventListener(we,this,Kn)}))}}const Wt=new l.OlP("mat-ripple-global-options");let J=(()=>{class qe{constructor(Qe,te,Ee,$t,$e){this._elementRef=Qe,this._animationMode=$e,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=$t||{},this._rippleRenderer=new Vn(this,te,Qe,Ee)}get disabled(){return this._disabled}set disabled(Qe){Qe&&this.fadeOutAllNonPersistent(),this._disabled=Qe,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Qe){this._trigger=Qe,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Qe,te=0,Ee){return"number"==typeof Qe?this._rippleRenderer.fadeInRipple(Qe,te,{...this.rippleConfig,...Ee}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Qe})}}return qe.\u0275fac=function(Qe){return new(Qe||qe)(l.Y36(l.SBq),l.Y36(l.R0b),l.Y36(x.t4),l.Y36(Wt,8),l.Y36(l.QbO,8))},qe.\u0275dir=l.lG2({type:qe,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Qe,te){2&Qe&&l.ekj("mat-ripple-unbounded",te.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),qe})(),j=(()=>{class qe{}return qe.\u0275fac=function(Qe){return new(Qe||qe)},qe.\u0275mod=l.oAB({type:qe}),qe.\u0275inj=l.cJS({imports:[Bt,Bt]}),qe})(),Q=(()=>{class qe{constructor(Qe){this._animationMode=Qe,this.state="unchecked",this.disabled=!1}}return qe.\u0275fac=function(Qe){return new(Qe||qe)(l.Y36(l.QbO,8))},qe.\u0275cmp=l.Xpm({type:qe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Qe,te){2&Qe&&l.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===te.state)("mat-pseudo-checkbox-checked","checked"===te.state)("mat-pseudo-checkbox-disabled",te.disabled)("_mat-animation-noopable","NoopAnimations"===te._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Qe,te){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),qe})(),Ct=(()=>{class qe{}return qe.\u0275fac=function(Qe){return new(Qe||qe)},qe.\u0275mod=l.oAB({type:qe}),qe.\u0275inj=l.cJS({imports:[Bt]}),qe})();const Yt=new l.OlP("MAT_OPTION_PARENT_COMPONENT"),Cn=new l.OlP("MatOptgroup");let fi=0;class Fi{constructor(we,Qe=!1){this.source=we,this.isUserInput=Qe}}let Bn=(()=>{class qe{constructor(Qe,te,Ee,$t){this._element=Qe,this._changeDetectorRef=te,this._parent=Ee,this.group=$t,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+fi++,this.onSelectionChange=new l.vpe,this._stateChanges=new D.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Qe){this._disabled=(0,T.Ig)(Qe)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(Qe,te){const Ee=this._getHostElement();"function"==typeof Ee.focus&&Ee.focus(te)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Qe){(Qe.keyCode===O.K5||Qe.keyCode===O.L_)&&!(0,O.Vb)(Qe)&&(this._selectViaInteraction(),Qe.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const Qe=this.viewValue;Qe!==this._mostRecentViewValue&&(this._mostRecentViewValue=Qe,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Qe=!1){this.onSelectionChange.emit(new Fi(this,Qe))}}return qe.\u0275fac=function(Qe){l.$Z()},qe.\u0275dir=l.lG2({type:qe,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),qe})(),Sn=(()=>{class qe extends Bn{constructor(Qe,te,Ee,$t){super(Qe,te,Ee,$t)}}return qe.\u0275fac=function(Qe){return new(Qe||qe)(l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(Yt,8),l.Y36(Cn,8))},qe.\u0275cmp=l.Xpm({type:qe,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Qe,te){1&Qe&&l.NdJ("click",function(){return te._selectViaInteraction()})("keydown",function($t){return te._handleKeydown($t)}),2&Qe&&(l.Ikx("id",te.id),l.uIk("tabindex",te._getTabIndex())("aria-selected",te._getAriaSelected())("aria-disabled",te.disabled.toString()),l.ekj("mat-selected",te.selected)("mat-option-multiple",te.multiple)("mat-active",te.active)("mat-option-disabled",te.disabled))},exportAs:["matOption"],features:[l.qOj],ngContentSelectors:at,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(Qe,te){1&Qe&&(l.F$t(),l.YNc(0,$,1,2,"mat-pseudo-checkbox",0),l.TgZ(1,"span",1),l.Hsn(2),l.qZA(),l.YNc(3,X,2,1,"span",2),l._UZ(4,"div",3)),2&Qe&&(l.Q6J("ngIf",te.multiple),l.xp6(3),l.Q6J("ngIf",te.group&&te.group._inert),l.xp6(1),l.Q6J("matRippleTrigger",te._getHostElement())("matRippleDisabled",te.disabled||te.disableRipple))},dependencies:[J,t.O5,Q],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),qe})();function On(qe,we,Qe){if(Qe.length){let te=we.toArray(),Ee=Qe.toArray(),$t=0;for(let $e=0;$eQe+te?Math.max(0,qe-te+we):Qe}let cn=(()=>{class qe{}return qe.\u0275fac=function(Qe){return new(Qe||qe)},qe.\u0275mod=l.oAB({type:qe}),qe.\u0275inj=l.cJS({imports:[j,t.ez,Bt,Ct]}),qe})()},99602:(K,W,_)=>{"use strict";_.d(W,{C0:()=>Kn,E2:()=>Qe,FA:()=>ke,Lv:()=>$e,Mq:()=>kt,S8:()=>Ye,Uu:()=>Ee,hl:()=>pi,nW:()=>en});var l=_(12687),u=_(98184),g=_(84080),h=_(36895),t=_(94650),x=_(4859),T=_(67376),U=_(3238),D=_(8929),k=_(42654),O=_(36787),q=_(21086),Y=_(29521),$=_(40445),X=_(72986),at=_(1059),rt=_(92198),ft=_(21281),Tt=_(83353),qt=_(37340),Vt=_(24006),Bt=_(59549),bt=_(284);const xt=["mat-calendar-body",""];function ht(Ce,We){if(1&Ce&&(t.TgZ(0,"tr",2)(1,"td",3),t._uU(2),t.qZA()()),2&Ce){const G=t.oxw();t.xp6(1),t.Udp("padding-top",G._cellPadding)("padding-bottom",G._cellPadding),t.uIk("colspan",G.numCols),t.xp6(1),t.hij(" ",G.label," ")}}function ut(Ce,We){if(1&Ce&&(t.TgZ(0,"td",3),t._uU(1),t.qZA()),2&Ce){const G=t.oxw(2);t.Udp("padding-top",G._cellPadding)("padding-bottom",G._cellPadding),t.uIk("colspan",G._firstRowOffset),t.xp6(1),t.hij(" ",G._firstRowOffset>=G.labelMinRequiredCells?G.label:""," ")}}function Mt(Ce,We){if(1&Ce){const G=t.EpF();t.TgZ(0,"td",7)(1,"button",8),t.NdJ("click",function(B){const Le=t.CHM(G).$implicit,kn=t.oxw(2);return t.KtG(kn._cellClicked(Le,B))})("focus",function(B){const Le=t.CHM(G).$implicit,kn=t.oxw(2);return t.KtG(kn._emitActiveDateChange(Le,B))}),t.TgZ(2,"div",9),t._uU(3),t.qZA(),t._UZ(4,"div",10),t.qZA()()}if(2&Ce){const G=We.$implicit,Pt=We.index,B=t.oxw().index,Dt=t.oxw();t.Udp("width",Dt._cellWidth)("padding-top",Dt._cellPadding)("padding-bottom",Dt._cellPadding),t.uIk("data-mat-row",B)("data-mat-col",Pt),t.xp6(1),t.ekj("mat-calendar-body-disabled",!G.enabled)("mat-calendar-body-active",Dt._isActiveCell(B,Pt))("mat-calendar-body-range-start",Dt._isRangeStart(G.compareValue))("mat-calendar-body-range-end",Dt._isRangeEnd(G.compareValue))("mat-calendar-body-in-range",Dt._isInRange(G.compareValue))("mat-calendar-body-comparison-bridge-start",Dt._isComparisonBridgeStart(G.compareValue,B,Pt))("mat-calendar-body-comparison-bridge-end",Dt._isComparisonBridgeEnd(G.compareValue,B,Pt))("mat-calendar-body-comparison-start",Dt._isComparisonStart(G.compareValue))("mat-calendar-body-comparison-end",Dt._isComparisonEnd(G.compareValue))("mat-calendar-body-in-comparison-range",Dt._isInComparisonRange(G.compareValue))("mat-calendar-body-preview-start",Dt._isPreviewStart(G.compareValue))("mat-calendar-body-preview-end",Dt._isPreviewEnd(G.compareValue))("mat-calendar-body-in-preview",Dt._isInPreview(G.compareValue)),t.Q6J("ngClass",G.cssClasses)("tabindex",Dt._isActiveCell(B,Pt)?0:-1),t.uIk("aria-label",G.ariaLabel)("aria-disabled",!G.enabled||null)("aria-pressed",Dt._isSelected(G.compareValue))("aria-current",Dt.todayValue===G.compareValue?"date":null),t.xp6(1),t.ekj("mat-calendar-body-selected",Dt._isSelected(G.compareValue))("mat-calendar-body-comparison-identical",Dt._isComparisonIdentical(G.compareValue))("mat-calendar-body-today",Dt.todayValue===G.compareValue),t.xp6(1),t.hij(" ",G.displayValue," ")}}function It(Ce,We){if(1&Ce&&(t.TgZ(0,"tr",4),t.YNc(1,ut,2,6,"td",5),t.YNc(2,Mt,5,47,"td",6),t.qZA()),2&Ce){const G=We.$implicit,Pt=We.index,B=t.oxw();t.xp6(1),t.Q6J("ngIf",0===Pt&&B._firstRowOffset),t.xp6(1),t.Q6J("ngForOf",G)}}function wt(Ce,We){if(1&Ce&&(t.TgZ(0,"th",5)(1,"span",6),t._uU(2),t.qZA(),t.TgZ(3,"span",7),t._uU(4),t.qZA()()),2&Ce){const G=We.$implicit;t.xp6(2),t.Oqu(G.long),t.xp6(2),t.Oqu(G.narrow)}}const ee=["*"];function Ft(Ce,We){}function _e(Ce,We){if(1&Ce){const G=t.EpF();t.TgZ(0,"mat-month-view",5),t.NdJ("activeDateChange",function(B){t.CHM(G);const Dt=t.oxw();return t.KtG(Dt.activeDate=B)})("_userSelection",function(B){t.CHM(G);const Dt=t.oxw();return t.KtG(Dt._dateSelected(B))}),t.qZA()}if(2&Ce){const G=t.oxw();t.Q6J("activeDate",G.activeDate)("selected",G.selected)("dateFilter",G.dateFilter)("maxDate",G.maxDate)("minDate",G.minDate)("dateClass",G.dateClass)("comparisonStart",G.comparisonStart)("comparisonEnd",G.comparisonEnd)}}function pe(Ce,We){if(1&Ce){const G=t.EpF();t.TgZ(0,"mat-year-view",6),t.NdJ("activeDateChange",function(B){t.CHM(G);const Dt=t.oxw();return t.KtG(Dt.activeDate=B)})("monthSelected",function(B){t.CHM(G);const Dt=t.oxw();return t.KtG(Dt._monthSelectedInYearView(B))})("selectedChange",function(B){t.CHM(G);const Dt=t.oxw();return t.KtG(Dt._goToDateInView(B,"month"))}),t.qZA()}if(2&Ce){const G=t.oxw();t.Q6J("activeDate",G.activeDate)("selected",G.selected)("dateFilter",G.dateFilter)("maxDate",G.maxDate)("minDate",G.minDate)("dateClass",G.dateClass)}}function Ze(Ce,We){if(1&Ce){const G=t.EpF();t.TgZ(0,"mat-multi-year-view",7),t.NdJ("activeDateChange",function(B){t.CHM(G);const Dt=t.oxw();return t.KtG(Dt.activeDate=B)})("yearSelected",function(B){t.CHM(G);const Dt=t.oxw();return t.KtG(Dt._yearSelectedInMultiYearView(B))})("selectedChange",function(B){t.CHM(G);const Dt=t.oxw();return t.KtG(Dt._goToDateInView(B,"year"))}),t.qZA()}if(2&Ce){const G=t.oxw();t.Q6J("activeDate",G.activeDate)("selected",G.selected)("dateFilter",G.dateFilter)("maxDate",G.maxDate)("minDate",G.minDate)("dateClass",G.dateClass)}}function Oe(Ce,We){}const Ie=["button"];function Rt(Ce,We){1&Ce&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"path",4),t.qZA())}const fe=[[["","matDatepickerToggleIcon",""]]],Kt=["[matDatepickerToggleIcon]"];let Ye=(()=>{class Ce{constructor(){this.changes=new D.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(G,Pt){return`${G} \u2013 ${Pt}`}formatYearRangeLabel(G,Pt){return`${G} to ${Pt}`}}return Ce.\u0275fac=function(G){return new(G||Ce)},Ce.\u0275prov=t.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})();class fn{constructor(We,G,Pt,B,Dt={},Le=We,kn){this.value=We,this.displayValue=G,this.ariaLabel=Pt,this.enabled=B,this.cssClasses=Dt,this.compareValue=Le,this.rawValue=kn}}let An=(()=>{class Ce{constructor(G,Pt){this._elementRef=G,this._ngZone=Pt,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new t.vpe,this.previewChange=new t.vpe,this.activeDateChange=new t.vpe,this._enterHandler=B=>{if(this._skipNextFocus&&"focus"===B.type)this._skipNextFocus=!1;else if(B.target&&this.isRange){const Dt=this._getCellFromElement(B.target);Dt&&this._ngZone.run(()=>this.previewChange.emit({value:Dt.enabled?Dt:null,event:B}))}},this._leaveHandler=B=>{null!==this.previewEnd&&this.isRange&&B.target&&this._getCellFromElement(B.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:B}))},Pt.runOutsideAngular(()=>{const B=G.nativeElement;B.addEventListener("mouseenter",this._enterHandler,!0),B.addEventListener("focus",this._enterHandler,!0),B.addEventListener("mouseleave",this._leaveHandler,!0),B.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(G,Pt){G.enabled&&this.selectedValueChange.emit({value:G.value,event:Pt})}_emitActiveDateChange(G,Pt){G.enabled&&this.activeDateChange.emit({value:G.value,event:Pt})}_isSelected(G){return this.startValue===G||this.endValue===G}ngOnChanges(G){const Pt=G.numCols,{rows:B,numCols:Dt}=this;(G.rows||Pt)&&(this._firstRowOffset=B&&B.length&&B[0].length?Dt-B[0].length:0),(G.cellAspectRatio||Pt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Dt+"%"),(Pt||!this._cellWidth)&&(this._cellWidth=100/Dt+"%")}ngOnDestroy(){const G=this._elementRef.nativeElement;G.removeEventListener("mouseenter",this._enterHandler,!0),G.removeEventListener("focus",this._enterHandler,!0),G.removeEventListener("mouseleave",this._leaveHandler,!0),G.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(G,Pt){let B=G*this.numCols+Pt;return G&&(B-=this._firstRowOffset),B==this.activeCell}_focusActiveCell(G=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,X.q)(1)).subscribe(()=>{setTimeout(()=>{const Pt=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Pt&&(G||(this._skipNextFocus=!0),Pt.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(G){return hn(G,this.startValue,this.endValue)}_isRangeEnd(G){return Re(G,this.startValue,this.endValue)}_isInRange(G){return _n(G,this.startValue,this.endValue,this.isRange)}_isComparisonStart(G){return hn(G,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(G,Pt,B){if(!this._isComparisonStart(G)||this._isRangeStart(G)||!this._isInRange(G))return!1;let Dt=this.rows[Pt][B-1];if(!Dt){const Le=this.rows[Pt-1];Dt=Le&&Le[Le.length-1]}return Dt&&!this._isRangeEnd(Dt.compareValue)}_isComparisonBridgeEnd(G,Pt,B){if(!this._isComparisonEnd(G)||this._isRangeEnd(G)||!this._isInRange(G))return!1;let Dt=this.rows[Pt][B+1];if(!Dt){const Le=this.rows[Pt+1];Dt=Le&&Le[0]}return Dt&&!this._isRangeStart(Dt.compareValue)}_isComparisonEnd(G){return Re(G,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(G){return _n(G,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(G){return this.comparisonStart===this.comparisonEnd&&G===this.comparisonStart}_isPreviewStart(G){return hn(G,this.previewStart,this.previewEnd)}_isPreviewEnd(G){return Re(G,this.previewStart,this.previewEnd)}_isInPreview(G){return _n(G,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(G){let Pt;if(xe(G)?Pt=G:xe(G.parentNode)&&(Pt=G.parentNode),Pt){const B=Pt.getAttribute("data-mat-row"),Dt=Pt.getAttribute("data-mat-col");if(B&&Dt)return this.rows[parseInt(B)][parseInt(Dt)]}return null}}return Ce.\u0275fac=function(G){return new(G||Ce)(t.Y36(t.SBq),t.Y36(t.R0b))},Ce.\u0275cmp=t.Xpm({type:Ce,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[t.TTD],attrs:xt,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(G,Pt){1&G&&(t.YNc(0,ht,3,6,"tr",0),t.YNc(1,It,3,2,"tr",1)),2&G&&(t.Q6J("ngIf",Pt._firstRowOffset=We&&Ce===G}function _n(Ce,We,G,Pt){return Pt&&null!==We&&null!==G&&We!==G&&Ce>=We&&Ce<=G}class Kn{constructor(We,G){this.start=We,this.end=G}}let si=(()=>{class Ce{constructor(G,Pt){this.selection=G,this._adapter=Pt,this._selectionChanged=new D.xQ,this.selectionChanged=this._selectionChanged,this.selection=G}updateSelection(G,Pt){const B=this.selection;this.selection=G,this._selectionChanged.next({selection:G,source:Pt,oldValue:B})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(G){return this._adapter.isDateInstance(G)&&this._adapter.isValid(G)}}return Ce.\u0275fac=function(G){t.$Z()},Ce.\u0275prov=t.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),oi=(()=>{class Ce extends si{constructor(G){super(null,G)}add(G){super.updateSelection(G,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const G=new Ce(this._adapter);return G.updateSelection(this.selection,this),G}}return Ce.\u0275fac=function(G){return new(G||Ce)(t.LFG(U._A))},Ce.\u0275prov=t.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const Wt={provide:si,deps:[[new t.FiY,new t.tp0,si],U._A],useFactory:function ze(Ce,We){return Ce||new oi(We)}},Q=new t.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let tn=(()=>{class Ce{constructor(G,Pt,B,Dt,Le){this._changeDetectorRef=G,this._dateFormats=Pt,this._dateAdapter=B,this._dir=Dt,this._rangeStrategy=Le,this._rerenderSubscription=k.w.EMPTY,this.selectedChange=new t.vpe,this._userSelection=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(G){const Pt=this._activeDate,B=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(B,this.minDate,this.maxDate),this._hasSameMonthAndYear(Pt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(G){this._selected=G instanceof Kn?G:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(G){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G))}get maxDate(){return this._maxDate}set maxDate(G){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,at.O)(null)).subscribe(()=>this._init())}ngOnChanges(G){const Pt=G.comparisonStart||G.comparisonEnd;Pt&&!Pt.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(G){const Pt=G.value,B=this._getDateFromDayOfMonth(Pt);let Dt,Le;this._selected instanceof Kn?(Dt=this._getDateInCurrentMonth(this._selected.start),Le=this._getDateInCurrentMonth(this._selected.end)):Dt=Le=this._getDateInCurrentMonth(this._selected),(Dt!==Pt||Le!==Pt)&&this.selectedChange.emit(B),this._userSelection.emit({value:B,event:G.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(G){const B=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(G.value),this._dateAdapter.compareDate(B,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(G){const Pt=this._activeDate,B=this._isRtl();switch(G.keyCode){case Y.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,B?1:-1);break;case Y.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,B?-1:1);break;case Y.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case Y.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case Y.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case Y.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case Y.Ku:this.activeDate=G.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case Y.VM:this.activeDate=G.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case Y.K5:case Y.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&G.preventDefault());case Y.hY:return void(null!=this._previewEnd&&!(0,Y.Vb)(G)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:G}),G.preventDefault(),G.stopPropagation()));default:return}this._dateAdapter.compareDate(Pt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),G.preventDefault()}_handleCalendarBodyKeyup(G){(G.keyCode===Y.L_||G.keyCode===Y.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:G}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let G=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(G)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(G){this._matCalendarBody._focusActiveCell(G)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:G,value:Pt}){if(this._rangeStrategy){const Dt=this._rangeStrategy.createPreview(Pt?Pt.rawValue:null,this.selected,G);this._previewStart=this._getCellCompareValue(Dt.start),this._previewEnd=this._getCellCompareValue(Dt.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(G){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),G)}_initWeekdays(){const G=this._dateAdapter.getFirstDayOfWeek(),Pt=this._dateAdapter.getDayOfWeekNames("narrow");let Dt=this._dateAdapter.getDayOfWeekNames("long").map((Le,kn)=>({long:Le,narrow:Pt[kn]}));this._weekdays=Dt.slice(G).concat(Dt.slice(0,G))}_createWeekCells(){const G=this._dateAdapter.getNumDaysInMonth(this.activeDate),Pt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let B=0,Dt=this._firstWeekOffset;B=0)&&(!this.maxDate||this._dateAdapter.compareDate(G,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(G))}_getDateInCurrentMonth(G){return G&&this._hasSameMonthAndYear(G,this.activeDate)?this._dateAdapter.getDate(G):null}_hasSameMonthAndYear(G,Pt){return!(!G||!Pt||this._dateAdapter.getMonth(G)!=this._dateAdapter.getMonth(Pt)||this._dateAdapter.getYear(G)!=this._dateAdapter.getYear(Pt))}_getCellCompareValue(G){if(G){const Pt=this._dateAdapter.getYear(G),B=this._dateAdapter.getMonth(G),Dt=this._dateAdapter.getDate(G);return new Date(Pt,B,Dt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(G){G instanceof Kn?(this._rangeStart=this._getCellCompareValue(G.start),this._rangeEnd=this._getCellCompareValue(G.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(G),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(G){return!this.dateFilter||this.dateFilter(G)}}return Ce.\u0275fac=function(G){return new(G||Ce)(t.Y36(t.sBO),t.Y36(U.sG,8),t.Y36(U._A,8),t.Y36($.Is,8),t.Y36(Q,8))},Ce.\u0275cmp=t.Xpm({type:Ce,selectors:[["mat-month-view"]],viewQuery:function(G,Pt){if(1&G&&t.Gf(An,5),2&G){let B;t.iGM(B=t.CRH())&&(Pt._matCalendarBody=B.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[t.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(G,Pt){1&G&&(t.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),t.YNc(3,wt,5,2,"th",2),t.qZA(),t.TgZ(4,"tr"),t._UZ(5,"th",3),t.qZA()(),t.TgZ(6,"tbody",4),t.NdJ("selectedValueChange",function(Dt){return Pt._dateSelected(Dt)})("activeDateChange",function(Dt){return Pt._updateActiveDate(Dt)})("previewChange",function(Dt){return Pt._previewChanged(Dt)})("keyup",function(Dt){return Pt._handleCalendarBodyKeyup(Dt)})("keydown",function(Dt){return Pt._handleCalendarBodyKeydown(Dt)}),t.qZA()()),2&G&&(t.xp6(3),t.Q6J("ngForOf",Pt._weekdays),t.xp6(3),t.Q6J("label",Pt._monthLabel)("rows",Pt._weeks)("todayValue",Pt._todayDate)("startValue",Pt._rangeStart)("endValue",Pt._rangeEnd)("comparisonStart",Pt._comparisonRangeStart)("comparisonEnd",Pt._comparisonRangeEnd)("previewStart",Pt._previewStart)("previewEnd",Pt._previewEnd)("isRange",Pt._isRange)("labelMinRequiredCells",3)("activeCell",Pt._dateAdapter.getDate(Pt.activeDate)-1))},dependencies:[h.sg,An],encapsulation:2,changeDetection:0}),Ce})(),fi=(()=>{class Ce{constructor(G,Pt,B){this._changeDetectorRef=G,this._dateAdapter=Pt,this._dir=B,this._rerenderSubscription=k.w.EMPTY,this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(G){let Pt=this._activeDate;const B=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(B,this.minDate,this.maxDate),Fi(this._dateAdapter,Pt,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(G){this._selected=G instanceof Kn?G:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G)),this._setSelectedYear(G)}get minDate(){return this._minDate}set minDate(G){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G))}get maxDate(){return this._maxDate}set maxDate(G){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,at.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Pt=this._dateAdapter.getYear(this._activeDate)-Bn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let B=0,Dt=[];B<24;B++)Dt.push(Pt+B),4==Dt.length&&(this._years.push(Dt.map(Le=>this._createCellForYear(Le))),Dt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(G){const Pt=G.value,B=this._dateAdapter.createDate(Pt,0,1),Dt=this._getDateFromYear(Pt);this.yearSelected.emit(B),this.selectedChange.emit(Dt)}_updateActiveDate(G){const B=this._activeDate;this.activeDate=this._getDateFromYear(G.value),this._dateAdapter.compareDate(B,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(G){const Pt=this._activeDate,B=this._isRtl();switch(G.keyCode){case Y.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B?1:-1);break;case Y.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B?-1:1);break;case Y.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case Y.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case Y.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Bn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case Y.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Bn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case Y.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,G.altKey?-240:-24);break;case Y.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,G.altKey?240:24);break;case Y.K5:case Y.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Pt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),G.preventDefault()}_handleCalendarBodyKeyup(G){(G.keyCode===Y.L_||G.keyCode===Y.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:G}),this._selectionKeyPressed=!1)}_getActiveCell(){return Bn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(G){const Pt=this._dateAdapter.getMonth(this.activeDate),B=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(G,Pt,1));return this._dateAdapter.createDate(G,Pt,Math.min(this._dateAdapter.getDate(this.activeDate),B))}_createCellForYear(G){const Pt=this._dateAdapter.createDate(G,0,1),B=this._dateAdapter.getYearName(Pt),Dt=this.dateClass?this.dateClass(Pt,"multi-year"):void 0;return new fn(G,B,B,this._shouldEnableYear(G),Dt)}_shouldEnableYear(G){if(null==G||this.maxDate&&G>this._dateAdapter.getYear(this.maxDate)||this.minDate&&G{class Ce{constructor(G,Pt,B,Dt){this._changeDetectorRef=G,this._dateFormats=Pt,this._dateAdapter=B,this._dir=Dt,this._rerenderSubscription=k.w.EMPTY,this.selectedChange=new t.vpe,this.monthSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(G){let Pt=this._activeDate;const B=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(B,this.minDate,this.maxDate),this._dateAdapter.getYear(Pt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(G){this._selected=G instanceof Kn?G:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G)),this._setSelectedMonth(G)}get minDate(){return this._minDate}set minDate(G){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G))}get maxDate(){return this._maxDate}set maxDate(G){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,at.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(G){const Pt=G.value,B=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Pt,1);this.monthSelected.emit(B);const Dt=this._getDateFromMonth(Pt);this.selectedChange.emit(Dt)}_updateActiveDate(G){const B=this._activeDate;this.activeDate=this._getDateFromMonth(G.value),this._dateAdapter.compareDate(B,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(G){const Pt=this._activeDate,B=this._isRtl();switch(G.keyCode){case Y.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,B?1:-1);break;case Y.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,B?-1:1);break;case Y.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case Y.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case Y.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case Y.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case Y.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,G.altKey?-10:-1);break;case Y.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,G.altKey?10:1);break;case Y.K5:case Y.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Pt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),G.preventDefault()}_handleCalendarBodyKeyup(G){(G.keyCode===Y.L_||G.keyCode===Y.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:G}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let G=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Pt=>Pt.map(B=>this._createCellForMonth(B,G[B]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(G){return G&&this._dateAdapter.getYear(G)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(G):null}_getDateFromMonth(G){const Pt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),G,1),B=this._dateAdapter.getNumDaysInMonth(Pt);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),G,Math.min(this._dateAdapter.getDate(this.activeDate),B))}_createCellForMonth(G,Pt){const B=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),G,1),Dt=this._dateAdapter.format(B,this._dateFormats.display.monthYearA11yLabel),Le=this.dateClass?this.dateClass(B,"year"):void 0;return new fn(G,Pt.toLocaleUpperCase(),Dt,this._shouldEnableMonth(G),Le)}_shouldEnableMonth(G){const Pt=this._dateAdapter.getYear(this.activeDate);if(null==G||this._isYearAndMonthAfterMaxDate(Pt,G)||this._isYearAndMonthBeforeMinDate(Pt,G))return!1;if(!this.dateFilter)return!0;for(let Dt=this._dateAdapter.createDate(Pt,G,1);this._dateAdapter.getMonth(Dt)==G;Dt=this._dateAdapter.addCalendarDays(Dt,1))if(this.dateFilter(Dt))return!0;return!1}_isYearAndMonthAfterMaxDate(G,Pt){if(this.maxDate){const B=this._dateAdapter.getYear(this.maxDate),Dt=this._dateAdapter.getMonth(this.maxDate);return G>B||G===B&&Pt>Dt}return!1}_isYearAndMonthBeforeMinDate(G,Pt){if(this.minDate){const B=this._dateAdapter.getYear(this.minDate),Dt=this._dateAdapter.getMonth(this.minDate);return G{class Ce{constructor(G,Pt,B,Dt,Le){this._intl=G,this.calendar=Pt,this._dateAdapter=B,this._dateFormats=Dt,this._buttonDescriptionId="mat-calendar-button-"+cn++,this.calendar.stateChanges.subscribe(()=>Le.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Pt=this._dateAdapter.getYear(this.calendar.activeDate)-Bn(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),B=Pt+24-1,Dt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Pt,0,1)),Le=this._dateAdapter.getYearName(this._dateAdapter.createDate(B,0,1));return this._intl.formatYearRange(Dt,Le)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(G,Pt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(G)==this._dateAdapter.getYear(Pt)&&this._dateAdapter.getMonth(G)==this._dateAdapter.getMonth(Pt):"year"==this.calendar.currentView?this._dateAdapter.getYear(G)==this._dateAdapter.getYear(Pt):Fi(this._dateAdapter,G,Pt,this.calendar.minDate,this.calendar.maxDate)}}return Ce.\u0275fac=function(G){return new(G||Ce)(t.Y36(Ye),t.Y36((0,t.Gpc)(()=>we)),t.Y36(U._A,8),t.Y36(U.sG,8),t.Y36(t.sBO))},Ce.\u0275cmp=t.Xpm({type:Ce,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:ee,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(G,Pt){1&G&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return Pt.currentPeriodClicked()}),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.O4$(),t.TgZ(5,"svg",3),t._UZ(6,"polygon",4),t.qZA()(),t.kcU(),t._UZ(7,"div",5),t.Hsn(8),t.TgZ(9,"button",6),t.NdJ("click",function(){return Pt.previousClicked()}),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return Pt.nextClicked()}),t.qZA()()()),2&G&&(t.xp6(2),t.uIk("aria-label",Pt.periodButtonLabel)("aria-describedby",Pt._buttonDescriptionId),t.xp6(1),t.uIk("id",Pt._buttonDescriptionId),t.xp6(1),t.Oqu(Pt.periodButtonText),t.xp6(1),t.ekj("mat-calendar-invert","month"!==Pt.calendar.currentView),t.xp6(4),t.Q6J("disabled",!Pt.previousEnabled()),t.uIk("aria-label",Pt.prevButtonLabel),t.xp6(1),t.Q6J("disabled",!Pt.nextEnabled()),t.uIk("aria-label",Pt.nextButtonLabel))},dependencies:[x.lW],encapsulation:2,changeDetection:0}),Ce})(),we=(()=>{class Ce{constructor(G,Pt,B,Dt){this._dateAdapter=Pt,this._dateFormats=B,this._changeDetectorRef=Dt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this._userSelection=new t.vpe,this.stateChanges=new D.xQ,this._intlChanges=G.changes.subscribe(()=>{Dt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(G){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G))}get selected(){return this._selected}set selected(G){this._selected=G instanceof Kn?G:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G))}get minDate(){return this._minDate}set minDate(G){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G))}get maxDate(){return this._maxDate}set maxDate(G){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G))}get activeDate(){return this._clampedActiveDate}set activeDate(G){this._clampedActiveDate=this._dateAdapter.clampDate(G,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(G){const Pt=this._currentView!==G?G:null;this._currentView=G,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Pt&&this.viewChanged.emit(Pt)}ngAfterContentInit(){this._calendarHeaderPortal=new g.C5(this.headerComponent||qe),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(G){const Pt=G.minDate&&!this._dateAdapter.sameDate(G.minDate.previousValue,G.minDate.currentValue)?G.minDate:void 0,B=G.maxDate&&!this._dateAdapter.sameDate(G.maxDate.previousValue,G.maxDate.currentValue)?G.maxDate:void 0,Dt=Pt||B||G.dateFilter;if(Dt&&!Dt.firstChange){const Le=this._getCurrentViewComponent();Le&&(this._changeDetectorRef.detectChanges(),Le._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(G){const Pt=G.value;(this.selected instanceof Kn||Pt&&!this._dateAdapter.sameDate(Pt,this.selected))&&this.selectedChange.emit(Pt),this._userSelection.emit(G)}_yearSelectedInMultiYearView(G){this.yearSelected.emit(G)}_monthSelectedInYearView(G){this.monthSelected.emit(G)}_goToDateInView(G,Pt){this.activeDate=G,this.currentView=Pt}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Ce.\u0275fac=function(G){return new(G||Ce)(t.Y36(Ye),t.Y36(U._A,8),t.Y36(U.sG,8),t.Y36(t.sBO))},Ce.\u0275cmp=t.Xpm({type:Ce,selectors:[["mat-calendar"]],viewQuery:function(G,Pt){if(1&G&&(t.Gf(tn,5),t.Gf(He,5),t.Gf(fi,5)),2&G){let B;t.iGM(B=t.CRH())&&(Pt.monthView=B.first),t.iGM(B=t.CRH())&&(Pt.yearView=B.first),t.iGM(B=t.CRH())&&(Pt.multiYearView=B.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[t._Bn([Wt]),t.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(G,Pt){1&G&&(t.YNc(0,Ft,0,0,"ng-template",0),t.TgZ(1,"div",1),t.YNc(2,_e,1,8,"mat-month-view",2),t.YNc(3,pe,1,6,"mat-year-view",3),t.YNc(4,Ze,1,6,"mat-multi-year-view",4),t.qZA()),2&G&&(t.Q6J("cdkPortalOutlet",Pt._calendarHeaderPortal),t.xp6(1),t.Q6J("ngSwitch",Pt.currentView),t.xp6(1),t.Q6J("ngSwitchCase","month"),t.xp6(1),t.Q6J("ngSwitchCase","year"),t.xp6(1),t.Q6J("ngSwitchCase","multi-year"))},dependencies:[h.RF,h.n9,l.kH,g.Pl,tn,He,fi],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Ce})();const Qe={transformPanel:(0,qt.X$)("transformPanel",[(0,qt.eR)("void => enter-dropdown",(0,qt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,qt.F4)([(0,qt.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,qt.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,qt.eR)("void => enter-dialog",(0,qt.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,qt.F4)([(0,qt.oB)({opacity:0,transform:"scale(0.7)"}),(0,qt.oB)({transform:"none",opacity:1})]))),(0,qt.eR)("* => void",(0,qt.jt)("100ms linear",(0,qt.oB)({opacity:0})))]),fadeInCalendar:(0,qt.X$)("fadeInCalendar",[(0,qt.SB)("void",(0,qt.oB)({opacity:0})),(0,qt.SB)("enter",(0,qt.oB)({opacity:1})),(0,qt.eR)("void => *",(0,qt.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let te=0;const Ee=new t.OlP("mat-datepicker-scroll-strategy"),$e={provide:Ee,deps:[u.aV],useFactory:function $t(Ce){return()=>Ce.scrollStrategies.reposition()}},sn=(0,U.pj)(class{constructor(Ce){this._elementRef=Ce}});let Xe=(()=>{class Ce extends sn{constructor(G,Pt,B,Dt,Le,kn){super(G),this._changeDetectorRef=Pt,this._globalModel=B,this._dateAdapter=Dt,this._rangeSelectionStrategy=Le,this._subscriptions=new k.w,this._animationDone=new D.xQ,this._actionsPortal=null,this._closeButtonText=kn.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(G){const Pt=this._model.selection,B=G.value,Dt=Pt instanceof Kn;if(Dt&&this._rangeSelectionStrategy){const Le=this._rangeSelectionStrategy.selectionFinished(B,Pt,G.event);this._model.updateSelection(Le,this)}else B&&(Dt||!this._dateAdapter.sameDate(B,Pt))&&this._model.add(B);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(G,Pt){this._model=G?this._globalModel.clone():this._globalModel,this._actionsPortal=G,Pt&&this._changeDetectorRef.detectChanges()}}return Ce.\u0275fac=function(G){return new(G||Ce)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(si),t.Y36(U._A),t.Y36(Q,8),t.Y36(Ye))},Ce.\u0275cmp=t.Xpm({type:Ce,selectors:[["mat-datepicker-content"]],viewQuery:function(G,Pt){if(1&G&&t.Gf(we,5),2&G){let B;t.iGM(B=t.CRH())&&(Pt._calendar=B.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(G,Pt){1&G&&t.WFA("@transformPanel.done",function(){return Pt._animationDone.next()}),2&G&&(t.d8E("@transformPanel",Pt._animationState),t.ekj("mat-datepicker-content-touch",Pt.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[t.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(G,Pt){if(1&G&&(t.TgZ(0,"div",0)(1,"mat-calendar",1),t.NdJ("yearSelected",function(Dt){return Pt.datepicker._selectYear(Dt)})("monthSelected",function(Dt){return Pt.datepicker._selectMonth(Dt)})("viewChanged",function(Dt){return Pt.datepicker._viewChanged(Dt)})("_userSelection",function(Dt){return Pt._handleUserSelection(Dt)}),t.qZA(),t.YNc(2,Oe,0,0,"ng-template",2),t.TgZ(3,"button",3),t.NdJ("focus",function(){return Pt._closeButtonFocused=!0})("blur",function(){return Pt._closeButtonFocused=!1})("click",function(){return Pt.datepicker.close()}),t._uU(4),t.qZA()()),2&G){let B;t.ekj("mat-datepicker-content-container-with-custom-header",Pt.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Pt._actionsPortal),t.uIk("aria-modal",!0)("aria-labelledby",null!==(B=Pt._dialogLabelId)&&void 0!==B?B:void 0),t.xp6(1),t.Q6J("id",Pt.datepicker.id)("ngClass",Pt.datepicker.panelClass)("startAt",Pt.datepicker.startAt)("startView",Pt.datepicker.startView)("minDate",Pt.datepicker._getMinDate())("maxDate",Pt.datepicker._getMaxDate())("dateFilter",Pt.datepicker._getDateFilter())("headerComponent",Pt.datepicker.calendarHeaderComponent)("selected",Pt._getSelected())("dateClass",Pt.datepicker.dateClass)("comparisonStart",Pt.comparisonStart)("comparisonEnd",Pt.comparisonEnd)("@fadeInCalendar","enter"),t.xp6(1),t.Q6J("cdkPortalOutlet",Pt._actionsPortal),t.xp6(1),t.ekj("cdk-visually-hidden",!Pt._closeButtonFocused),t.Q6J("color",Pt.color||"primary"),t.xp6(1),t.Oqu(Pt._closeButtonText)}},dependencies:[h.mk,x.lW,l.mK,g.Pl,we],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[Qe.transformPanel,Qe.fadeInCalendar]},changeDetection:0}),Ce})(),me=(()=>{class Ce{constructor(G,Pt,B,Dt,Le,kn,Zi){this._overlay=G,this._ngZone=Pt,this._viewContainerRef=B,this._dateAdapter=Le,this._dir=kn,this._model=Zi,this._inputStateChanges=k.w.EMPTY,this._document=(0,t.f3M)(h.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this.openedStream=new t.vpe,this.closedStream=new t.vpe,this._opened=!1,this.id="mat-datepicker-"+te++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new D.xQ,this._scrollStrategy=Dt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(G){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(G){this._color=G}get touchUi(){return this._touchUi}set touchUi(G){this._touchUi=(0,ft.Ig)(G)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(G){const Pt=(0,ft.Ig)(G);Pt!==this._disabled&&(this._disabled=Pt,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(G){this._restoreFocus=(0,ft.Ig)(G)}get panelClass(){return this._panelClass}set panelClass(G){this._panelClass=(0,ft.du)(G)}get opened(){return this._opened}set opened(G){(0,ft.Ig)(G)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(G){const Pt=G.xPosition||G.yPosition;if(Pt&&!Pt.firstChange&&this._overlayRef){const B=this._overlayRef.getConfig().positionStrategy;B instanceof u._G&&(this._setConnectedPositions(B),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(G){this._model.add(G)}_selectYear(G){this.yearSelected.emit(G)}_selectMonth(G){this.monthSelected.emit(G)}_viewChanged(G){this.viewChanged.emit(G)}registerInput(G){return this._inputStateChanges.unsubscribe(),this.datepickerInput=G,this._inputStateChanges=G.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(G){this._actionsPortal=G,this._componentRef?.instance._assignActions(G,!0)}removeActions(G){G===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,Tt.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;const G=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Pt=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:B,location:Dt}=this._componentRef;B._startExitAnimation(),B._animationDone.pipe((0,X.q)(1)).subscribe(()=>{const Le=this._document.activeElement;G&&(!Le||Le===this._document.activeElement||Dt.nativeElement.contains(Le))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}G?setTimeout(Pt):Pt()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(G){G.datepicker=this,G.color=this.color,G._dialogLabelId=this.datepickerInput.getOverlayLabelId(),G._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const G=this.touchUi,Pt=new g.C5(Xe,this._viewContainerRef),B=this._overlayRef=this._overlay.create(new u.X_({positionStrategy:G?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[G?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:G?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(G?"dialog":"popup")}));this._getCloseStream(B).subscribe(Dt=>{Dt&&Dt.preventDefault(),this.close()}),B.keydownEvents().subscribe(Dt=>{const Le=Dt.keyCode;(Le===Y.LH||Le===Y.JH||Le===Y.oh||Le===Y.SV||Le===Y.Ku||Le===Y.VM)&&Dt.preventDefault()}),this._componentRef=B.attach(Pt),this._forwardContentValues(this._componentRef.instance),G||this._ngZone.onStable.pipe((0,X.q)(1)).subscribe(()=>B.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const G=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(G)}_setConnectedPositions(G){const Pt="end"===this.xPosition?"end":"start",B="start"===Pt?"end":"start",Dt="above"===this.yPosition?"bottom":"top",Le="top"===Dt?"bottom":"top";return G.withPositions([{originX:Pt,originY:Le,overlayX:Pt,overlayY:Dt},{originX:Pt,originY:Dt,overlayX:Pt,overlayY:Le},{originX:B,originY:Le,overlayX:B,overlayY:Dt},{originX:B,originY:Dt,overlayX:B,overlayY:Le}])}_getCloseStream(G){return(0,O.T)(G.backdropClick(),G.detachments(),G.keydownEvents().pipe((0,rt.h)(Pt=>Pt.keyCode===Y.hY&&!(0,Y.Vb)(Pt)||this.datepickerInput&&(0,Y.Vb)(Pt,"altKey")&&Pt.keyCode===Y.LH)))}}return Ce.\u0275fac=function(G){return new(G||Ce)(t.Y36(u.aV),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(Ee),t.Y36(U._A,8),t.Y36($.Is,8),t.Y36(si))},Ce.\u0275dir=t.lG2({type:Ce,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[t.TTD]}),Ce})(),kt=(()=>{class Ce extends me{}return Ce.\u0275fac=function(){let We;return function(Pt){return(We||(We=t.n5z(Ce)))(Pt||Ce)}}(),Ce.\u0275cmp=t.Xpm({type:Ce,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[t._Bn([Wt,{provide:me,useExisting:Ce}]),t.qOj],decls:0,vars:0,template:function(G,Pt){},encapsulation:2,changeDetection:0}),Ce})();class ye{constructor(We,G){this.target=We,this.targetElement=G,this.value=this.target.value}}let Nt=(()=>{class Ce{constructor(G,Pt,B){this._elementRef=G,this._dateAdapter=Pt,this._dateFormats=B,this.dateChange=new t.vpe,this.dateInput=new t.vpe,this.stateChanges=new D.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=k.w.EMPTY,this._localeSubscription=k.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Dt=>{const Le=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Dt.value));return!Le||this._matchesFilter(Le)?null:{matDatepickerFilter:!0}},this._minValidator=Dt=>{const Le=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Dt.value)),kn=this._getMinDate();return!kn||!Le||this._dateAdapter.compareDate(kn,Le)<=0?null:{matDatepickerMin:{min:kn,actual:Le}}},this._maxValidator=Dt=>{const Le=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Dt.value)),kn=this._getMaxDate();return!kn||!Le||this._dateAdapter.compareDate(kn,Le)>=0?null:{matDatepickerMax:{max:kn,actual:Le}}},this._lastValueValid=!1,this._localeSubscription=Pt.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(G){this._assignValueProgrammatically(G)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(G){const Pt=(0,ft.Ig)(G),B=this._elementRef.nativeElement;this._disabled!==Pt&&(this._disabled=Pt,this.stateChanges.next(void 0)),Pt&&this._isInitialized&&B.blur&&B.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(G){this._model=G,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Pt=>{if(this._shouldHandleChangeEvent(Pt)){const B=this._getValueFromModel(Pt.selection);this._lastValueValid=this._isValidValue(B),this._cvaOnChange(B),this._onTouched(),this._formatValue(B),this.dateInput.emit(new ye(this,this._elementRef.nativeElement)),this.dateChange.emit(new ye(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(G){(function ve(Ce,We){const G=Object.keys(Ce);for(let Pt of G){const{previousValue:B,currentValue:Dt}=Ce[Pt];if(!We.isDateInstance(B)||!We.isDateInstance(Dt))return!0;if(!We.sameDate(B,Dt))return!0}return!1})(G,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(G){this._validatorOnChange=G}validate(G){return this._validator?this._validator(G):null}writeValue(G){this._assignValueProgrammatically(G)}registerOnChange(G){this._cvaOnChange=G}registerOnTouched(G){this._onTouched=G}setDisabledState(G){this.disabled=G}_onKeydown(G){G.altKey&&G.keyCode===Y.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),G.preventDefault())}_onInput(G){const Pt=this._lastValueValid;let B=this._dateAdapter.parse(G,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(B),B=this._dateAdapter.getValidDateOrNull(B);const Dt=!this._dateAdapter.sameDate(B,this.value);!B||Dt?this._cvaOnChange(B):(G&&!this.value&&this._cvaOnChange(B),Pt!==this._lastValueValid&&this._validatorOnChange()),Dt&&(this._assignValue(B),this.dateInput.emit(new ye(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new ye(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(G){this._elementRef.nativeElement.value=null!=G?this._dateAdapter.format(G,this._dateFormats.display.dateInput):""}_assignValue(G){this._model?(this._assignValueToModel(G),this._pendingValue=null):this._pendingValue=G}_isValidValue(G){return!G||this._dateAdapter.isValid(G)}_parentDisabled(){return!1}_assignValueProgrammatically(G){G=this._dateAdapter.deserialize(G),this._lastValueValid=this._isValidValue(G),G=this._dateAdapter.getValidDateOrNull(G),this._assignValue(G),this._formatValue(G)}_matchesFilter(G){const Pt=this._getDateFilter();return!Pt||Pt(G)}}return Ce.\u0275fac=function(G){return new(G||Ce)(t.Y36(t.SBq),t.Y36(U._A,8),t.Y36(U.sG,8))},Ce.\u0275dir=t.lG2({type:Ce,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[t.TTD]}),Ce})();const Se={provide:Vt.JU,useExisting:(0,t.Gpc)(()=>pi),multi:!0},yn={provide:Vt.Cf,useExisting:(0,t.Gpc)(()=>pi),multi:!0};let pi=(()=>{class Ce extends Nt{constructor(G,Pt,B,Dt){super(G,Pt,B),this._formField=Dt,this._closedSubscription=k.w.EMPTY,this._validator=Vt.kI.compose(super._getValidators())}set matDatepicker(G){G&&(this._datepicker=G,this._closedSubscription=G.closedStream.subscribe(()=>this._onTouched()),this._registerModel(G.registerInput(this)))}get min(){return this._min}set min(G){const Pt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G));this._dateAdapter.sameDate(Pt,this._min)||(this._min=Pt,this._validatorOnChange())}get max(){return this._max}set max(G){const Pt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G));this._dateAdapter.sameDate(Pt,this._max)||(this._max=Pt,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(G){const Pt=this._matchesFilter(this.value);this._dateFilter=G,this._matchesFilter(this.value)!==Pt&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(G){return G}_assignValueToModel(G){this._model&&this._model.updateSelection(G,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(G){return G.source!==this}}return Ce.\u0275fac=function(G){return new(G||Ce)(t.Y36(t.SBq),t.Y36(U._A,8),t.Y36(U.sG,8),t.Y36(Bt.G_,8))},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(G,Pt){1&G&&t.NdJ("input",function(Dt){return Pt._onInput(Dt.target.value)})("change",function(){return Pt._onChange()})("blur",function(){return Pt._onBlur()})("keydown",function(Dt){return Pt._onKeydown(Dt)}),2&G&&(t.Ikx("disabled",Pt.disabled),t.uIk("aria-haspopup",Pt._datepicker?"dialog":null)("aria-owns",(null==Pt._datepicker?null:Pt._datepicker.opened)&&Pt._datepicker.id||null)("min",Pt.min?Pt._dateAdapter.toIso8601(Pt.min):null)("max",Pt.max?Pt._dateAdapter.toIso8601(Pt.max):null)("data-mat-calendar",Pt._datepicker?Pt._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[t._Bn([Se,yn,{provide:bt.Jk,useExisting:Ce}]),t.qOj]}),Ce})(),Ci=(()=>{class Ce{}return Ce.\u0275fac=function(G){return new(G||Ce)},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["","matDatepickerToggleIcon",""]]}),Ce})(),en=(()=>{class Ce{constructor(G,Pt,B){this._intl=G,this._changeDetectorRef=Pt,this._stateChanges=k.w.EMPTY;const Dt=Number(B);this.tabIndex=Dt||0===Dt?Dt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(G){this._disabled=(0,ft.Ig)(G)}ngOnChanges(G){G.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(G){this.datepicker&&!this.disabled&&(this.datepicker.open(),G.stopPropagation())}_watchStateChanges(){const G=this.datepicker?this.datepicker.stateChanges:(0,q.of)(),Pt=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,q.of)(),B=this.datepicker?(0,O.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,q.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,O.T)(this._intl.changes,G,Pt,B).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Ce.\u0275fac=function(G){return new(G||Ce)(t.Y36(Ye),t.Y36(t.sBO),t.$8M("tabindex"))},Ce.\u0275cmp=t.Xpm({type:Ce,selectors:[["mat-datepicker-toggle"]],contentQueries:function(G,Pt,B){if(1&G&&t.Suo(B,Ci,5),2&G){let Dt;t.iGM(Dt=t.CRH())&&(Pt._customIcon=Dt.first)}},viewQuery:function(G,Pt){if(1&G&&t.Gf(Ie,5),2&G){let B;t.iGM(B=t.CRH())&&(Pt._button=B.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(G,Pt){1&G&&t.NdJ("click",function(Dt){return Pt._open(Dt)}),2&G&&(t.uIk("tabindex",null)("data-mat-calendar",Pt.datepicker?Pt.datepicker.id:null),t.ekj("mat-datepicker-toggle-active",Pt.datepicker&&Pt.datepicker.opened)("mat-accent",Pt.datepicker&&"accent"===Pt.datepicker.color)("mat-warn",Pt.datepicker&&"warn"===Pt.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[t.TTD],ngContentSelectors:Kt,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(G,Pt){1&G&&(t.F$t(fe),t.TgZ(0,"button",0,1),t.YNc(2,Rt,2,0,"svg",2),t.Hsn(3),t.qZA()),2&G&&(t.Q6J("disabled",Pt.disabled)("disableRipple",Pt.disableRipple),t.uIk("aria-haspopup",Pt.datepicker?"dialog":null)("aria-label",Pt.ariaLabel||Pt._intl.openCalendarLabel)("tabindex",Pt.disabled?-1:Pt.tabIndex),t.xp6(2),t.Q6J("ngIf",!Pt._customIcon))},dependencies:[h.O5,x.lW],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),Ce})(),ke=(()=>{class Ce{}return Ce.\u0275fac=function(G){return new(G||Ce)},Ce.\u0275mod=t.oAB({type:Ce}),Ce.\u0275inj=t.cJS({providers:[Ye,$e],imports:[h.ez,x.ot,u.U8,l.rt,g.eL,U.BQ,T.ZD]}),Ce})()},65412:(K,W,_)=>{"use strict";_.d(W,{WI:()=>ue,uw:()=>hn,H8:()=>oi,ZT:()=>_n,xY:()=>si,Is:()=>ze,so:()=>fe,uh:()=>Kn});var l=_(12687),u=_(98184),g=_(83353),h=_(84080),t=_(36895),x=_(94650),T=_(29521),U=_(8929),D=_(88514),k=_(21086),O=_(40445),q=_(1059);function Y(Wt,J){}class ${constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let at=(()=>{class Wt extends h.en{constructor(j,Q,Ct,Yt,ie,re,tn,Cn){super(),this._elementRef=j,this._focusTrapFactory=Q,this._config=Yt,this._interactivityChecker=ie,this._ngZone=re,this._overlayRef=tn,this._focusMonitor=Cn,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Yn=>{this._portalOutlet.hasAttached();const fi=this._portalOutlet.attachDomPortal(Yn);return this._contentAttached(),fi},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Ct}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(j){this._portalOutlet.hasAttached();const Q=this._portalOutlet.attachComponentPortal(j);return this._contentAttached(),Q}attachTemplatePortal(j){this._portalOutlet.hasAttached();const Q=this._portalOutlet.attachTemplatePortal(j);return this._contentAttached(),Q}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(j,Q){this._interactivityChecker.isFocusable(j)||(j.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ct=()=>{j.removeEventListener("blur",Ct),j.removeEventListener("mousedown",Ct),j.removeAttribute("tabindex")};j.addEventListener("blur",Ct),j.addEventListener("mousedown",Ct)})),j.focus(Q)}_focusByCssSelector(j,Q){let Ct=this._elementRef.nativeElement.querySelector(j);Ct&&this._forceFocus(Ct,Q)}_trapFocus(){const j=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||j.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Q=>{Q||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const j=this._config.restoreFocus;let Q=null;if("string"==typeof j?Q=this._document.querySelector(j):"boolean"==typeof j?Q=j?this._elementFocusedBeforeDialogWasOpened:null:j&&(Q=j),this._config.restoreFocus&&Q&&"function"==typeof Q.focus){const Ct=(0,g.ht)(),Yt=this._elementRef.nativeElement;(!Ct||Ct===this._document.body||Ct===Yt||Yt.contains(Ct))&&(this._focusMonitor?(this._focusMonitor.focusVia(Q,this._closeInteractionType),this._closeInteractionType=null):Q.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const j=this._elementRef.nativeElement,Q=(0,g.ht)();return j===Q||j.contains(Q)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,g.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return Wt.\u0275fac=function(j){return new(j||Wt)(x.Y36(x.SBq),x.Y36(l.qV),x.Y36(t.K0,8),x.Y36($),x.Y36(l.ic),x.Y36(x.R0b),x.Y36(u.Iu),x.Y36(l.tE))},Wt.\u0275cmp=x.Xpm({type:Wt,selectors:[["cdk-dialog-container"]],viewQuery:function(j,Q){if(1&j&&x.Gf(h.Pl,7),2&j){let Ct;x.iGM(Ct=x.CRH())&&(Q._portalOutlet=Ct.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(j,Q){2&j&&x.uIk("id",Q._config.id||null)("role",Q._config.role)("aria-modal",Q._config.ariaModal)("aria-labelledby",Q._config.ariaLabel?null:Q._ariaLabelledBy)("aria-label",Q._config.ariaLabel)("aria-describedby",Q._config.ariaDescribedBy||null)},features:[x.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(j,Q){1&j&&x.YNc(0,Y,0,0,"ng-template",0)},dependencies:[h.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),Wt})();class rt{constructor(J,j){this.overlayRef=J,this.config=j,this.closed=new U.xQ,this.disableClose=j.disableClose,this.backdropClick=J.backdropClick(),this.keydownEvents=J.keydownEvents(),this.outsidePointerEvents=J.outsidePointerEvents(),this.id=j.id,this.keydownEvents.subscribe(Q=>{Q.keyCode===T.hY&&!this.disableClose&&!(0,T.Vb)(Q)&&(Q.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(J,j){if(this.containerInstance){const Q=this.closed;this.containerInstance._closeInteractionType=j?.focusOrigin||"program",this.overlayRef.dispose(),Q.next(J),Q.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(J="",j=""){return this.overlayRef.updateSize({width:J,height:j}),this}addPanelClass(J){return this.overlayRef.addPanelClass(J),this}removePanelClass(J){return this.overlayRef.removePanelClass(J),this}}const ft=new x.OlP("DialogScrollStrategy"),Tt=new x.OlP("DialogData"),qt=new x.OlP("DefaultDialogConfig"),Bt={provide:ft,deps:[u.aV],useFactory:function Vt(Wt){return()=>Wt.scrollStrategies.block()}};let bt=0,xt=(()=>{class Wt{constructor(j,Q,Ct,Yt,ie,re){this._overlay=j,this._injector=Q,this._defaultOptions=Ct,this._parentDialog=Yt,this._overlayContainer=ie,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new U.xQ,this._afterOpenedAtThisLevel=new U.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,D.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,q.O)(void 0))),this._scrollStrategy=re}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(j,Q){(Q={...this._defaultOptions||new $,...Q}).id=Q.id||"cdk-dialog-"+bt++,Q.id&&this.getDialogById(Q.id);const Yt=this._getOverlayConfig(Q),ie=this._overlay.create(Yt),re=new rt(ie,Q),tn=this._attachContainer(ie,re,Q);return re.containerInstance=tn,this._attachDialogContent(j,re,tn,Q),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(re),re.closed.subscribe(()=>this._removeOpenDialog(re,!0)),this.afterOpened.next(re),re}closeAll(){ht(this.openDialogs,j=>j.close())}getDialogById(j){return this.openDialogs.find(Q=>Q.id===j)}ngOnDestroy(){ht(this._openDialogsAtThisLevel,j=>{!1===j.config.closeOnDestroy&&this._removeOpenDialog(j,!1)}),ht(this._openDialogsAtThisLevel,j=>j.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(j){const Q=new u.X_({positionStrategy:j.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:j.scrollStrategy||this._scrollStrategy(),panelClass:j.panelClass,hasBackdrop:j.hasBackdrop,direction:j.direction,minWidth:j.minWidth,minHeight:j.minHeight,maxWidth:j.maxWidth,maxHeight:j.maxHeight,width:j.width,height:j.height,disposeOnNavigation:j.closeOnNavigation});return j.backdropClass&&(Q.backdropClass=j.backdropClass),Q}_attachContainer(j,Q,Ct){const Yt=Ct.injector||Ct.viewContainerRef?.injector,ie=[{provide:$,useValue:Ct},{provide:rt,useValue:Q},{provide:u.Iu,useValue:j}];let re;Ct.container?"function"==typeof Ct.container?re=Ct.container:(re=Ct.container.type,ie.push(...Ct.container.providers(Ct))):re=at;const tn=new h.C5(re,Ct.viewContainerRef,x.zs3.create({parent:Yt||this._injector,providers:ie}),Ct.componentFactoryResolver);return j.attach(tn).instance}_attachDialogContent(j,Q,Ct,Yt){if(j instanceof x.Rgc){const ie=this._createInjector(Yt,Q,Ct,void 0);let re={$implicit:Yt.data,dialogRef:Q};Yt.templateContext&&(re={...re,..."function"==typeof Yt.templateContext?Yt.templateContext():Yt.templateContext}),Ct.attachTemplatePortal(new h.UE(j,null,re,ie))}else{const ie=this._createInjector(Yt,Q,Ct,this._injector),re=Ct.attachComponentPortal(new h.C5(j,Yt.viewContainerRef,ie,Yt.componentFactoryResolver));Q.componentInstance=re.instance}}_createInjector(j,Q,Ct,Yt){const ie=j.injector||j.viewContainerRef?.injector,re=[{provide:Tt,useValue:j.data},{provide:rt,useValue:Q}];return j.providers&&("function"==typeof j.providers?re.push(...j.providers(Q,j,Ct)):re.push(...j.providers)),j.direction&&(!ie||!ie.get(O.Is,null,x.XFs.Optional))&&re.push({provide:O.Is,useValue:{value:j.direction,change:(0,k.of)()}}),x.zs3.create({parent:ie||Yt,providers:re})}_removeOpenDialog(j,Q){const Ct=this.openDialogs.indexOf(j);Ct>-1&&(this.openDialogs.splice(Ct,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Yt,ie)=>{Yt?ie.setAttribute("aria-hidden",Yt):ie.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Q&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const j=this._overlayContainer.getContainerElement();if(j.parentElement){const Q=j.parentElement.children;for(let Ct=Q.length-1;Ct>-1;Ct--){const Yt=Q[Ct];Yt!==j&&"SCRIPT"!==Yt.nodeName&&"STYLE"!==Yt.nodeName&&!Yt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Yt,Yt.getAttribute("aria-hidden")),Yt.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const j=this._parentDialog;return j?j._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return Wt.\u0275fac=function(j){return new(j||Wt)(x.LFG(u.aV),x.LFG(x.zs3),x.LFG(qt,8),x.LFG(Wt,12),x.LFG(u.Xj),x.LFG(ft))},Wt.\u0275prov=x.Yz7({token:Wt,factory:Wt.\u0275fac}),Wt})();function ht(Wt,J){let j=Wt.length;for(;j--;)J(Wt[j])}let ut=(()=>{class Wt{}return Wt.\u0275fac=function(j){return new(j||Wt)},Wt.\u0275mod=x.oAB({type:Wt}),Wt.\u0275inj=x.cJS({providers:[xt,Bt],imports:[u.U8,h.eL,l.rt,h.eL]}),Wt})();var Mt=_(3238),It=_(36787),wt=_(92198),ee=_(72986),Ft=_(37340);function _e(Wt,J){}const pe={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Ze={dialogContainer:(0,Ft.X$)("dialogContainer",[(0,Ft.SB)("void, exit",(0,Ft.oB)({opacity:0,transform:"scale(0.7)"})),(0,Ft.SB)("enter",(0,Ft.oB)({transform:"none"})),(0,Ft.eR)("* => enter",(0,Ft.ru)([(0,Ft.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Ft.oB)({transform:"none",opacity:1})),(0,Ft.IO)("@*",(0,Ft.pV)(),{optional:!0})]),pe),(0,Ft.eR)("* => void, * => exit",(0,Ft.ru)([(0,Ft.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Ft.oB)({opacity:0})),(0,Ft.IO)("@*",(0,Ft.pV)(),{optional:!0})]),pe)])};class Oe{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=pe.params.enterAnimationDuration,this.exitAnimationDuration=pe.params.exitAnimationDuration}}let Ie=(()=>{class Wt extends at{constructor(j,Q,Ct,Yt,ie,re,tn,Cn){super(j,Q,Ct,Yt,ie,re,tn,Cn),this._animationStateChanged=new x.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(j){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:j})}}return Wt.\u0275fac=function(j){return new(j||Wt)(x.Y36(x.SBq),x.Y36(l.qV),x.Y36(t.K0,8),x.Y36(Oe),x.Y36(l.ic),x.Y36(x.R0b),x.Y36(u.Iu),x.Y36(l.tE))},Wt.\u0275cmp=x.Xpm({type:Wt,selectors:[["ng-component"]],features:[x.qOj],decls:0,vars:0,template:function(j,Q){},encapsulation:2}),Wt})(),Rt=(()=>{class Wt extends Ie{constructor(j,Q,Ct,Yt,ie,re,tn,Cn,Yn){super(j,Q,Ct,Yt,ie,re,tn,Yn),this._changeDetectorRef=Cn,this._state="enter"}_onAnimationDone({toState:j,totalTime:Q}){"enter"===j?this._openAnimationDone(Q):"exit"===j&&this._animationStateChanged.next({state:"closed",totalTime:Q})}_onAnimationStart({toState:j,totalTime:Q}){"enter"===j?this._animationStateChanged.next({state:"opening",totalTime:Q}):("exit"===j||"void"===j)&&this._animationStateChanged.next({state:"closing",totalTime:Q})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||pe.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||pe.params.exitAnimationDuration}}}}return Wt.\u0275fac=function(j){return new(j||Wt)(x.Y36(x.SBq),x.Y36(l.qV),x.Y36(t.K0,8),x.Y36(Oe),x.Y36(l.ic),x.Y36(x.R0b),x.Y36(u.Iu),x.Y36(x.sBO),x.Y36(l.tE))},Wt.\u0275cmp=x.Xpm({type:Wt,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(j,Q){1&j&&x.WFA("@dialogContainer.start",function(Yt){return Q._onAnimationStart(Yt)})("@dialogContainer.done",function(Yt){return Q._onAnimationDone(Yt)}),2&j&&(x.Ikx("id",Q._config.id),x.uIk("aria-modal",Q._config.ariaModal)("role",Q._config.role)("aria-labelledby",Q._config.ariaLabel?null:Q._ariaLabelledBy)("aria-label",Q._config.ariaLabel)("aria-describedby",Q._config.ariaDescribedBy||null),x.d8E("@dialogContainer",Q._getAnimationState()))},features:[x.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(j,Q){1&j&&x.YNc(0,_e,0,0,"ng-template",0)},dependencies:[h.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Ze.dialogContainer]}}),Wt})();class fe{constructor(J,j,Q){this._ref=J,this._containerInstance=Q,this._afterOpened=new U.xQ,this._beforeClosed=new U.xQ,this._state=0,this.disableClose=j.disableClose,this.id=J.id,Q._animationStateChanged.pipe((0,wt.h)(Ct=>"opened"===Ct.state),(0,ee.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Q._animationStateChanged.pipe((0,wt.h)(Ct=>"closed"===Ct.state),(0,ee.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),J.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,It.T)(this.backdropClick(),this.keydownEvents().pipe((0,wt.h)(Ct=>Ct.keyCode===T.hY&&!this.disableClose&&!(0,T.Vb)(Ct)))).subscribe(Ct=>{this.disableClose||(Ct.preventDefault(),Kt(this,"keydown"===Ct.type?"keyboard":"mouse"))})}close(J){this._result=J,this._containerInstance._animationStateChanged.pipe((0,wt.h)(j=>"closing"===j.state),(0,ee.q)(1)).subscribe(j=>{this._beforeClosed.next(J),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),j.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(J){let j=this._ref.config.positionStrategy;return J&&(J.left||J.right)?J.left?j.left(J.left):j.right(J.right):j.centerHorizontally(),J&&(J.top||J.bottom)?J.top?j.top(J.top):j.bottom(J.bottom):j.centerVertically(),this._ref.updatePosition(),this}updateSize(J="",j=""){return this._ref.updateSize(J,j),this}addPanelClass(J){return this._ref.addPanelClass(J),this}removePanelClass(J){return this._ref.removePanelClass(J),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function Kt(Wt,J,j){return Wt._closeInteractionType=J,Wt.close(j)}const ue=new x.OlP("MatDialogData"),ce=new x.OlP("mat-dialog-default-options"),je=new x.OlP("mat-dialog-scroll-strategy"),fn={provide:je,deps:[u.aV],useFactory:function Ye(Wt){return()=>Wt.scrollStrategies.block()}};let An=0,xe=(()=>{class Wt{constructor(j,Q,Ct,Yt,ie,re,tn,Cn,Yn,fi){this._overlay=j,this._defaultOptions=Ct,this._parentDialog=Yt,this._dialogRefConstructor=tn,this._dialogContainerType=Cn,this._dialogDataToken=Yn,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new U.xQ,this._afterOpenedAtThisLevel=new U.xQ,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,D.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,q.O)(void 0))),this._scrollStrategy=re,this._dialog=Q.get(xt)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const j=this._parentDialog;return j?j._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(j,Q){let Ct;(Q={...this._defaultOptions||new Oe,...Q}).id=Q.id||`${this._idPrefix}${An++}`,Q.scrollStrategy=Q.scrollStrategy||this._scrollStrategy();const Yt=this._dialog.open(j,{...Q,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Oe,useValue:Q},{provide:$,useValue:Q}]},templateContext:()=>({dialogRef:Ct}),providers:(ie,re,tn)=>(Ct=new this._dialogRefConstructor(ie,Q,tn),Ct.updatePosition(Q?.position),[{provide:this._dialogContainerType,useValue:tn},{provide:this._dialogDataToken,useValue:re.data},{provide:this._dialogRefConstructor,useValue:Ct}])});return Ct.componentInstance=Yt.componentInstance,this.openDialogs.push(Ct),this.afterOpened.next(Ct),Ct.afterClosed().subscribe(()=>{const ie=this.openDialogs.indexOf(Ct);ie>-1&&(this.openDialogs.splice(ie,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Ct}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(j){return this.openDialogs.find(Q=>Q.id===j)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(j){let Q=j.length;for(;Q--;)j[Q].close()}}return Wt.\u0275fac=function(j){x.$Z()},Wt.\u0275prov=x.Yz7({token:Wt,factory:Wt.\u0275fac}),Wt})(),hn=(()=>{class Wt extends xe{constructor(j,Q,Ct,Yt,ie,re,tn,Cn){super(j,Q,Yt,re,tn,ie,fe,Rt,ue,Cn)}}return Wt.\u0275fac=function(j){return new(j||Wt)(x.LFG(u.aV),x.LFG(x.zs3),x.LFG(t.Ye,8),x.LFG(ce,8),x.LFG(je),x.LFG(Wt,12),x.LFG(u.Xj),x.LFG(x.QbO,8))},Wt.\u0275prov=x.Yz7({token:Wt,factory:Wt.\u0275fac}),Wt})(),Re=0,_n=(()=>{class Wt{constructor(j,Q,Ct){this.dialogRef=j,this._elementRef=Q,this._dialog=Ct,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Vn(this._elementRef,this._dialog.openDialogs))}ngOnChanges(j){const Q=j._matDialogClose||j._matDialogCloseResult;Q&&(this.dialogResult=Q.currentValue)}_onButtonClick(j){Kt(this.dialogRef,0===j.screenX&&0===j.screenY?"keyboard":"mouse",this.dialogResult)}}return Wt.\u0275fac=function(j){return new(j||Wt)(x.Y36(fe,8),x.Y36(x.SBq),x.Y36(hn))},Wt.\u0275dir=x.lG2({type:Wt,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(j,Q){1&j&&x.NdJ("click",function(Yt){return Q._onButtonClick(Yt)}),2&j&&x.uIk("aria-label",Q.ariaLabel||null)("type",Q.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[x.TTD]}),Wt})(),Kn=(()=>{class Wt{constructor(j,Q,Ct){this._dialogRef=j,this._elementRef=Q,this._dialog=Ct,this.id="mat-dialog-title-"+Re++}ngOnInit(){this._dialogRef||(this._dialogRef=Vn(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const j=this._dialogRef._containerInstance;j&&!j._ariaLabelledBy&&(j._ariaLabelledBy=this.id)})}}return Wt.\u0275fac=function(j){return new(j||Wt)(x.Y36(fe,8),x.Y36(x.SBq),x.Y36(hn))},Wt.\u0275dir=x.lG2({type:Wt,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(j,Q){2&j&&x.Ikx("id",Q.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Wt})(),si=(()=>{class Wt{}return Wt.\u0275fac=function(j){return new(j||Wt)},Wt.\u0275dir=x.lG2({type:Wt,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Wt})(),oi=(()=>{class Wt{constructor(){this.align="start"}}return Wt.\u0275fac=function(j){return new(j||Wt)},Wt.\u0275dir=x.lG2({type:Wt,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(j,Q){2&j&&x.ekj("mat-dialog-actions-align-center","center"===Q.align)("mat-dialog-actions-align-end","end"===Q.align)},inputs:{align:"align"}}),Wt})();function Vn(Wt,J){let j=Wt.nativeElement.parentElement;for(;j&&!j.classList.contains("mat-dialog-container");)j=j.parentElement;return j?J.find(Q=>Q.id===j.id):null}let ze=(()=>{class Wt{}return Wt.\u0275fac=function(j){return new(j||Wt)},Wt.\u0275mod=x.oAB({type:Wt}),Wt.\u0275inj=x.cJS({providers:[hn,fn],imports:[ut,u.U8,h.eL,Mt.BQ,Mt.BQ]}),Wt})()},44850:(K,W,_)=>{"use strict";_.d(W,{d:()=>h,t:()=>t});var l=_(94650),u=_(21281),g=_(3238);let h=(()=>{class x{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(U){this._vertical=(0,u.Ig)(U)}get inset(){return this._inset}set inset(U){this._inset=(0,u.Ig)(U)}}return x.\u0275fac=function(U){return new(U||x)},x.\u0275cmp=l.Xpm({type:x,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(U,D){2&U&&(l.uIk("aria-orientation",D.vertical?"vertical":"horizontal"),l.ekj("mat-divider-vertical",D.vertical)("mat-divider-horizontal",!D.vertical)("mat-divider-inset",D.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(U,D){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),x})(),t=(()=>{class x{}return x.\u0275fac=function(U){return new(U||x)},x.\u0275mod=l.oAB({type:x}),x.\u0275inj=l.cJS({imports:[g.BQ,g.BQ]}),x})()},37084:(K,W,_)=>{"use strict";_.d(W,{pp:()=>fn,To:()=>An,ib:()=>fe,u4:()=>Te,yz:()=>je,yK:()=>Ye});var l=_(94650),u=_(95017),g=_(21281),h=_(8929),t=_(42654);let x=0;const T=new l.OlP("CdkAccordion");let U=(()=>{class xe{constructor(){this._stateChanges=new h.xQ,this._openCloseAllActions=new h.xQ,this.id="cdk-accordion-"+x++,this._multi=!1}get multi(){return this._multi}set multi(Re){this._multi=(0,g.Ig)(Re)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(Re){this._stateChanges.next(Re)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return xe.\u0275fac=function(Re){return new(Re||xe)},xe.\u0275dir=l.lG2({type:xe,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[l._Bn([{provide:T,useExisting:xe}]),l.TTD]}),xe})(),D=0,k=(()=>{class xe{constructor(Re,_n,Kn){this.accordion=Re,this._changeDetectorRef=_n,this._expansionDispatcher=Kn,this._openCloseAllSubscription=t.w.EMPTY,this.closed=new l.vpe,this.opened=new l.vpe,this.destroyed=new l.vpe,this.expandedChange=new l.vpe,this.id="cdk-accordion-child-"+D++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Kn.listen((si,oi)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===oi&&this.id!==si&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(Re){Re=(0,g.Ig)(Re),this._expanded!==Re&&(this._expanded=Re,this.expandedChange.emit(Re),Re?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(Re){this._disabled=(0,g.Ig)(Re)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(Re=>{this.disabled||(this.expanded=Re)})}}return xe.\u0275fac=function(Re){return new(Re||xe)(l.Y36(T,12),l.Y36(l.sBO),l.Y36(u.A8))},xe.\u0275dir=l.lG2({type:xe,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[l._Bn([{provide:T,useValue:void 0}])]}),xe})(),O=(()=>{class xe{}return xe.\u0275fac=function(Re){return new(Re||xe)},xe.\u0275mod=l.oAB({type:xe}),xe.\u0275inj=l.cJS({}),xe})();var q=_(84080),Y=_(36895),$=_(3238),X=_(12687),at=_(75778),rt=_(1059),ft=_(92198),Tt=_(72986),qt=_(29521),Vt=_(68896),Bt=_(36787),bt=_(37340);const xt=["body"];function ht(xe,hn){}const ut=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Mt=["mat-expansion-panel-header","*","mat-action-row"];function It(xe,hn){if(1&xe&&l._UZ(0,"span",2),2&xe){const Re=l.oxw();l.Q6J("@indicatorRotate",Re._getExpandedState())}}const wt=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],ee=["mat-panel-title","mat-panel-description","*"],Ft=new l.OlP("MAT_ACCORDION"),_e="225ms cubic-bezier(0.4,0.0,0.2,1)",pe={indicatorRotate:(0,bt.X$)("indicatorRotate",[(0,bt.SB)("collapsed, void",(0,bt.oB)({transform:"rotate(0deg)"})),(0,bt.SB)("expanded",(0,bt.oB)({transform:"rotate(180deg)"})),(0,bt.eR)("expanded <=> collapsed, void => collapsed",(0,bt.jt)(_e))]),bodyExpansion:(0,bt.X$)("bodyExpansion",[(0,bt.SB)("collapsed, void",(0,bt.oB)({height:"0px",visibility:"hidden"})),(0,bt.SB)("expanded",(0,bt.oB)({height:"*",visibility:"visible"})),(0,bt.eR)("expanded <=> collapsed, void => collapsed",(0,bt.jt)(_e))])},Ze=new l.OlP("MAT_EXPANSION_PANEL");let Oe=(()=>{class xe{constructor(Re,_n){this._template=Re,this._expansionPanel=_n}}return xe.\u0275fac=function(Re){return new(Re||xe)(l.Y36(l.Rgc),l.Y36(Ze,8))},xe.\u0275dir=l.lG2({type:xe,selectors:[["ng-template","matExpansionPanelContent",""]]}),xe})(),Ie=0;const Rt=new l.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let fe=(()=>{class xe extends k{constructor(Re,_n,Kn,si,oi,Vn,ze){super(Re,_n,Kn),this._viewContainerRef=si,this._animationMode=Vn,this._hideToggle=!1,this.afterExpand=new l.vpe,this.afterCollapse=new l.vpe,this._inputChanges=new h.xQ,this._headerId="mat-expansion-panel-header-"+Ie++,this._bodyAnimationDone=new h.xQ,this.accordion=Re,this._document=oi,this._bodyAnimationDone.pipe((0,at.x)((Wt,J)=>Wt.fromState===J.fromState&&Wt.toState===J.toState)).subscribe(Wt=>{"void"!==Wt.fromState&&("expanded"===Wt.toState?this.afterExpand.emit():"collapsed"===Wt.toState&&this.afterCollapse.emit())}),ze&&(this.hideToggle=ze.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(Re){this._hideToggle=(0,g.Ig)(Re)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(Re){this._togglePosition=Re}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,rt.O)(null),(0,ft.h)(()=>this.expanded&&!this._portal),(0,Tt.q)(1)).subscribe(()=>{this._portal=new q.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(Re){this._inputChanges.next(Re)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const Re=this._document.activeElement,_n=this._body.nativeElement;return Re===_n||_n.contains(Re)}return!1}}return xe.\u0275fac=function(Re){return new(Re||xe)(l.Y36(Ft,12),l.Y36(l.sBO),l.Y36(u.A8),l.Y36(l.s_b),l.Y36(Y.K0),l.Y36(l.QbO,8),l.Y36(Rt,8))},xe.\u0275cmp=l.Xpm({type:xe,selectors:[["mat-expansion-panel"]],contentQueries:function(Re,_n,Kn){if(1&Re&&l.Suo(Kn,Oe,5),2&Re){let si;l.iGM(si=l.CRH())&&(_n._lazyContent=si.first)}},viewQuery:function(Re,_n){if(1&Re&&l.Gf(xt,5),2&Re){let Kn;l.iGM(Kn=l.CRH())&&(_n._body=Kn.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Re,_n){2&Re&&l.ekj("mat-expanded",_n.expanded)("_mat-animation-noopable","NoopAnimations"===_n._animationMode)("mat-expansion-panel-spacing",_n._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[l._Bn([{provide:Ft,useValue:void 0},{provide:Ze,useExisting:xe}]),l.qOj,l.TTD],ngContentSelectors:Mt,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Re,_n){1&Re&&(l.F$t(ut),l.Hsn(0),l.TgZ(1,"div",0,1),l.NdJ("@bodyExpansion.done",function(si){return _n._bodyAnimationDone.next(si)}),l.TgZ(3,"div",2),l.Hsn(4,1),l.YNc(5,ht,0,0,"ng-template",3),l.qZA(),l.Hsn(6,2),l.qZA()),2&Re&&(l.xp6(1),l.Q6J("@bodyExpansion",_n._getExpandedState())("id",_n.id),l.uIk("aria-labelledby",_n._headerId),l.xp6(4),l.Q6J("cdkPortalOutlet",_n._portal))},dependencies:[q.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[pe.bodyExpansion]},changeDetection:0}),xe})();class ue{}const ce=(0,$.sb)(ue);let je=(()=>{class xe extends ce{constructor(Re,_n,Kn,si,oi,Vn,ze){super(),this.panel=Re,this._element=_n,this._focusMonitor=Kn,this._changeDetectorRef=si,this._animationMode=Vn,this._parentChangeSubscription=t.w.EMPTY;const Wt=Re.accordion?Re.accordion._stateChanges.pipe((0,ft.h)(J=>!(!J.hideToggle&&!J.togglePosition))):Vt.E;this.tabIndex=parseInt(ze||"")||0,this._parentChangeSubscription=(0,Bt.T)(Re.opened,Re.closed,Wt,Re._inputChanges.pipe((0,ft.h)(J=>!!(J.hideToggle||J.disabled||J.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),Re.closed.pipe((0,ft.h)(()=>Re._containsFocus())).subscribe(()=>Kn.focusVia(_n,"program")),oi&&(this.expandedHeight=oi.expandedHeight,this.collapsedHeight=oi.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const Re=this._isExpanded();return Re&&this.expandedHeight?this.expandedHeight:!Re&&this.collapsedHeight?this.collapsedHeight:null}_keydown(Re){switch(Re.keyCode){case qt.L_:case qt.K5:(0,qt.Vb)(Re)||(Re.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(Re))}}focus(Re,_n){Re?this._focusMonitor.focusVia(this._element,Re,_n):this._element.nativeElement.focus(_n)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(Re=>{Re&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return xe.\u0275fac=function(Re){return new(Re||xe)(l.Y36(fe,1),l.Y36(l.SBq),l.Y36(X.tE),l.Y36(l.sBO),l.Y36(Rt,8),l.Y36(l.QbO,8),l.$8M("tabindex"))},xe.\u0275cmp=l.Xpm({type:xe,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Re,_n){1&Re&&l.NdJ("click",function(){return _n._toggle()})("keydown",function(si){return _n._keydown(si)}),2&Re&&(l.uIk("id",_n.panel._headerId)("tabindex",_n.tabIndex)("aria-controls",_n._getPanelId())("aria-expanded",_n._isExpanded())("aria-disabled",_n.panel.disabled),l.Udp("height",_n._getHeaderHeight()),l.ekj("mat-expanded",_n._isExpanded())("mat-expansion-toggle-indicator-after","after"===_n._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===_n._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===_n._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[l.qOj],ngContentSelectors:ee,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(Re,_n){1&Re&&(l.F$t(wt),l.TgZ(0,"span",0),l.Hsn(1),l.Hsn(2,1),l.Hsn(3,2),l.qZA(),l.YNc(4,It,1,1,"span",1)),2&Re&&(l.ekj("mat-content-hide-toggle",!_n._showToggle()),l.xp6(4),l.Q6J("ngIf",_n._showToggle()))},dependencies:[Y.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[pe.indicatorRotate]},changeDetection:0}),xe})(),Te=(()=>{class xe{}return xe.\u0275fac=function(Re){return new(Re||xe)},xe.\u0275dir=l.lG2({type:xe,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),xe})(),Ye=(()=>{class xe{}return xe.\u0275fac=function(Re){return new(Re||xe)},xe.\u0275dir=l.lG2({type:xe,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),xe})(),fn=(()=>{class xe extends U{constructor(){super(...arguments),this._ownHeaders=new l.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(Re){this._hideToggle=(0,g.Ig)(Re)}ngAfterContentInit(){this._headers.changes.pipe((0,rt.O)(this._headers)).subscribe(Re=>{this._ownHeaders.reset(Re.filter(_n=>_n.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new X.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(Re){this._keyManager.onKeydown(Re)}_handleHeaderFocus(Re){this._keyManager.updateActiveItem(Re)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return xe.\u0275fac=function(){let hn;return function(_n){return(hn||(hn=l.n5z(xe)))(_n||xe)}}(),xe.\u0275dir=l.lG2({type:xe,selectors:[["mat-accordion"]],contentQueries:function(Re,_n,Kn){if(1&Re&&l.Suo(Kn,je,5),2&Re){let si;l.iGM(si=l.CRH())&&(_n._headers=si)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Re,_n){2&Re&&l.ekj("mat-accordion-multi",_n.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[l._Bn([{provide:Ft,useExisting:xe}]),l.qOj]}),xe})(),An=(()=>{class xe{}return xe.\u0275fac=function(Re){return new(Re||xe)},xe.\u0275mod=l.oAB({type:xe}),xe.\u0275inj=l.cJS({imports:[Y.ez,$.BQ,O,q.eL]}),xe})()},59549:(K,W,_)=>{"use strict";_.d(W,{Eo:()=>Oe,G_:()=>oi,KE:()=>Vn,R9:()=>xe,TO:()=>pe,bx:()=>ce,hX:()=>je,lN:()=>ze,o2:()=>si,qo:()=>fn});var l=_(49643),u=_(36895),g=_(94650),h=_(3238),t=_(40445),x=_(21281),T=_(8929),U=_(36787),D=_(23753),k=_(1059),O=_(7625),q=_(72986),Y=_(37340),$=_(83353);const X=["connectionContainer"],at=["inputContainer"],rt=["label"];function ft(Wt,J){1&Wt&&(g.ynx(0),g.TgZ(1,"div",14),g._UZ(2,"div",15)(3,"div",16)(4,"div",17),g.qZA(),g.TgZ(5,"div",18),g._UZ(6,"div",15)(7,"div",16)(8,"div",17),g.qZA(),g.BQk())}function Tt(Wt,J){if(1&Wt){const j=g.EpF();g.TgZ(0,"div",19),g.NdJ("cdkObserveContent",function(){g.CHM(j);const Ct=g.oxw();return g.KtG(Ct.updateOutlineGap())}),g.Hsn(1,1),g.qZA()}if(2&Wt){const j=g.oxw();g.Q6J("cdkObserveContentDisabled","outline"!=j.appearance)}}function qt(Wt,J){if(1&Wt&&(g.ynx(0),g.Hsn(1,2),g.TgZ(2,"span"),g._uU(3),g.qZA(),g.BQk()),2&Wt){const j=g.oxw(2);g.xp6(3),g.Oqu(j._control.placeholder)}}function Vt(Wt,J){1&Wt&&g.Hsn(0,3,["*ngSwitchCase","true"])}function Bt(Wt,J){1&Wt&&(g.TgZ(0,"span",23),g._uU(1," *"),g.qZA())}function bt(Wt,J){if(1&Wt){const j=g.EpF();g.TgZ(0,"label",20,21),g.NdJ("cdkObserveContent",function(){g.CHM(j);const Ct=g.oxw();return g.KtG(Ct.updateOutlineGap())}),g.YNc(2,qt,4,1,"ng-container",12),g.YNc(3,Vt,1,0,"ng-content",12),g.YNc(4,Bt,2,0,"span",22),g.qZA()}if(2&Wt){const j=g.oxw();g.ekj("mat-empty",j._control.empty&&!j._shouldAlwaysFloat())("mat-form-field-empty",j._control.empty&&!j._shouldAlwaysFloat())("mat-accent","accent"==j.color)("mat-warn","warn"==j.color),g.Q6J("cdkObserveContentDisabled","outline"!=j.appearance)("id",j._labelId)("ngSwitch",j._hasLabel()),g.uIk("for",j._control.id)("aria-owns",j._control.id),g.xp6(2),g.Q6J("ngSwitchCase",!1),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngIf",!j.hideRequiredMarker&&j._control.required&&!j._control.disabled)}}function xt(Wt,J){1&Wt&&(g.TgZ(0,"div",24),g.Hsn(1,4),g.qZA())}function ht(Wt,J){if(1&Wt&&(g.TgZ(0,"div",25),g._UZ(1,"span",26),g.qZA()),2&Wt){const j=g.oxw();g.xp6(1),g.ekj("mat-accent","accent"==j.color)("mat-warn","warn"==j.color)}}function ut(Wt,J){if(1&Wt&&(g.TgZ(0,"div"),g.Hsn(1,5),g.qZA()),2&Wt){const j=g.oxw();g.Q6J("@transitionMessages",j._subscriptAnimationState)}}function Mt(Wt,J){if(1&Wt&&(g.TgZ(0,"div",30),g._uU(1),g.qZA()),2&Wt){const j=g.oxw(2);g.Q6J("id",j._hintLabelId),g.xp6(1),g.Oqu(j.hintLabel)}}function It(Wt,J){if(1&Wt&&(g.TgZ(0,"div",27),g.YNc(1,Mt,2,2,"div",28),g.Hsn(2,6),g._UZ(3,"div",29),g.Hsn(4,7),g.qZA()),2&Wt){const j=g.oxw();g.Q6J("@transitionMessages",j._subscriptAnimationState),g.xp6(1),g.Q6J("ngIf",j.hintLabel)}}const wt=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ee=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Ft=0;const _e=new g.OlP("MatError");let pe=(()=>{class Wt{constructor(j,Q){this.id="mat-error-"+Ft++,j||Q.nativeElement.setAttribute("aria-live","polite")}}return Wt.\u0275fac=function(j){return new(j||Wt)(g.$8M("aria-live"),g.Y36(g.SBq))},Wt.\u0275dir=g.lG2({type:Wt,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(j,Q){2&j&&g.uIk("id",Q.id)},inputs:{id:"id"},features:[g._Bn([{provide:_e,useExisting:Wt}])]}),Wt})();const Ze={transitionMessages:(0,Y.X$)("transitionMessages",[(0,Y.SB)("enter",(0,Y.oB)({opacity:1,transform:"translateY(0%)"})),(0,Y.eR)("void => enter",[(0,Y.oB)({opacity:0,transform:"translateY(-5px)"}),(0,Y.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Oe=(()=>{class Wt{}return Wt.\u0275fac=function(j){return new(j||Wt)},Wt.\u0275dir=g.lG2({type:Wt}),Wt})(),Kt=0;const ue=new g.OlP("MatHint");let ce=(()=>{class Wt{constructor(){this.align="start",this.id="mat-hint-"+Kt++}}return Wt.\u0275fac=function(j){return new(j||Wt)},Wt.\u0275dir=g.lG2({type:Wt,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(j,Q){2&j&&(g.uIk("id",Q.id)("align",null),g.ekj("mat-form-field-hint-end","end"===Q.align))},inputs:{align:"align",id:"id"},features:[g._Bn([{provide:ue,useExisting:Wt}])]}),Wt})(),je=(()=>{class Wt{}return Wt.\u0275fac=function(j){return new(j||Wt)},Wt.\u0275dir=g.lG2({type:Wt,selectors:[["mat-label"]]}),Wt})(),Te=(()=>{class Wt{}return Wt.\u0275fac=function(j){return new(j||Wt)},Wt.\u0275dir=g.lG2({type:Wt,selectors:[["mat-placeholder"]]}),Wt})();const Ye=new g.OlP("MatPrefix");let fn=(()=>{class Wt{}return Wt.\u0275fac=function(j){return new(j||Wt)},Wt.\u0275dir=g.lG2({type:Wt,selectors:[["","matPrefix",""]],features:[g._Bn([{provide:Ye,useExisting:Wt}])]}),Wt})();const An=new g.OlP("MatSuffix");let xe=(()=>{class Wt{}return Wt.\u0275fac=function(j){return new(j||Wt)},Wt.\u0275dir=g.lG2({type:Wt,selectors:[["","matSuffix",""]],features:[g._Bn([{provide:An,useExisting:Wt}])]}),Wt})(),hn=0;const Kn=(0,h.pj)(class{constructor(Wt){this._elementRef=Wt}},"primary"),si=new g.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),oi=new g.OlP("MatFormField");let Vn=(()=>{class Wt extends Kn{constructor(j,Q,Ct,Yt,ie,re,tn){super(j),this._changeDetectorRef=Q,this._dir=Ct,this._defaults=Yt,this._platform=ie,this._ngZone=re,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new T.xQ,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+hn++,this._labelId="mat-form-field-label-"+hn++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==tn,this.appearance=Yt?.appearance||"legacy",Yt&&(this._hideRequiredMarker=Boolean(Yt.hideRequiredMarker),Yt.color&&(this.color=this.defaultColor=Yt.color))}get appearance(){return this._appearance}set appearance(j){const Q=this._appearance;this._appearance=j||this._defaults?.appearance||"legacy","outline"===this._appearance&&Q!==j&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(j){this._hideRequiredMarker=(0,x.Ig)(j)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(j){this._hintLabel=j,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(j){j!==this._floatLabel&&(this._floatLabel=j||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(j){this._explicitFormFieldControl=j}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const j=this._control;j.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${j.controlType}`),j.stateChanges.pipe((0,k.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),j.ngControl&&j.ngControl.valueChanges&&j.ngControl.valueChanges.pipe((0,O.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,U.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,k.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,k.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,O.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(j){const Q=this._control?this._control.ngControl:null;return Q&&Q[j]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,D.R)(this._label.nativeElement,"transitionend").pipe((0,q.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let j=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&j.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Q=this._hintChildren?this._hintChildren.find(Yt=>"start"===Yt.align):null,Ct=this._hintChildren?this._hintChildren.find(Yt=>"end"===Yt.align):null;Q?j.push(Q.id):this._hintLabel&&j.push(this._hintLabelId),Ct&&j.push(Ct.id)}else this._errorChildren&&j.push(...this._errorChildren.map(Q=>Q.id));this._control.setDescribedByIds(j)}}_validateControlChild(){}updateOutlineGap(){const j=this._label?this._label.nativeElement:null,Q=this._connectionContainerRef.nativeElement,Ct=".mat-form-field-outline-start",Yt=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!j||!j.children.length||!j.textContent.trim()){const Yn=Q.querySelectorAll(`${Ct}, ${Yt}`);for(let fi=0;fi0?.75*Sn+10:0}for(let Yn=0;Yn{class Wt{}return Wt.\u0275fac=function(j){return new(j||Wt)},Wt.\u0275mod=g.oAB({type:Wt}),Wt.\u0275inj=g.cJS({imports:[u.ez,h.BQ,l.Q8,h.BQ]}),Wt})()},90782:(K,W,_)=>{"use strict";_.d(W,{DX:()=>q,Il:()=>ht,N6:()=>ut});var l=_(94650),u=_(3238),g=_(21281),h=_(40445);const t=["*"];class D{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const wt=Math.max(...this.tracker);return wt>1?this.rowCount+wt-1:this.rowCount}update(wt,ee){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(wt),this.tracker.fill(0,0,this.tracker.length),this.positions=ee.map(Ft=>this._trackTile(Ft))}_trackTile(wt){const ee=this._findMatchingGap(wt.colspan);return this._markTilePosition(ee,wt),this.columnIndex=ee+wt.colspan,new k(this.rowIndex,ee)}_findMatchingGap(wt){let ee=-1,Ft=-1;do{this.columnIndex+wt>this.tracker.length?(this._nextRow(),ee=this.tracker.indexOf(0,this.columnIndex),Ft=this._findGapEndIndex(ee)):(ee=this.tracker.indexOf(0,this.columnIndex),-1!=ee?(Ft=this._findGapEndIndex(ee),this.columnIndex=ee+1):(this._nextRow(),ee=this.tracker.indexOf(0,this.columnIndex),Ft=this._findGapEndIndex(ee)))}while(Ft-ee{class It{constructor(ee,Ft){this._element=ee,this._gridList=Ft,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(ee){this._rowspan=Math.round((0,g.su)(ee))}get colspan(){return this._colspan}set colspan(ee){this._colspan=Math.round((0,g.su)(ee))}_setStyle(ee,Ft){this._element.nativeElement.style[ee]=Ft}}return It.\u0275fac=function(ee){return new(ee||It)(l.Y36(l.SBq),l.Y36(O,8))},It.\u0275cmp=l.Xpm({type:It,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(ee,Ft){2&ee&&l.uIk("rowspan",Ft.rowspan)("colspan",Ft.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:t,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(ee,Ft){1&ee&&(l.F$t(),l.TgZ(0,"div",0),l.Hsn(1),l.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),It})();const rt=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class ft{constructor(){this._rows=0,this._rowspan=0}init(wt,ee,Ft,_e){this._gutterSize=bt(wt),this._rows=ee.rowCount,this._rowspan=ee.rowspan,this._cols=Ft,this._direction=_e}getBaseTileSize(wt,ee){return`(${wt}% - (${this._gutterSize} * ${ee}))`}getTilePosition(wt,ee){return 0===ee?"0":Bt(`(${wt} + ${this._gutterSize}) * ${ee}`)}getTileSize(wt,ee){return`(${wt} * ${ee}) + (${ee-1} * ${this._gutterSize})`}setStyle(wt,ee,Ft){let _e=100/this._cols,pe=(this._cols-1)/this._cols;this.setColStyles(wt,Ft,_e,pe),this.setRowStyles(wt,ee,_e,pe)}setColStyles(wt,ee,Ft,_e){let pe=this.getBaseTileSize(Ft,_e);wt._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(pe,ee)),wt._setStyle("width",Bt(this.getTileSize(pe,wt.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(wt){return`${this._rowspan} * ${this.getTileSize(wt,1)}`}getComputedHeight(){return null}}class Tt extends ft{constructor(wt){super(),this.fixedRowHeight=wt}init(wt,ee,Ft,_e){super.init(wt,ee,Ft,_e),this.fixedRowHeight=bt(this.fixedRowHeight),rt.test(this.fixedRowHeight)}setRowStyles(wt,ee){wt._setStyle("top",this.getTilePosition(this.fixedRowHeight,ee)),wt._setStyle("height",Bt(this.getTileSize(this.fixedRowHeight,wt.rowspan)))}getComputedHeight(){return["height",Bt(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(wt){wt._setListStyle(["height",null]),wt._tiles&&wt._tiles.forEach(ee=>{ee._setStyle("top",null),ee._setStyle("height",null)})}}class qt extends ft{constructor(wt){super(),this._parseRatio(wt)}setRowStyles(wt,ee,Ft,_e){this.baseTileHeight=this.getBaseTileSize(Ft/this.rowHeightRatio,_e),wt._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,ee)),wt._setStyle("paddingTop",Bt(this.getTileSize(this.baseTileHeight,wt.rowspan)))}getComputedHeight(){return["paddingBottom",Bt(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(wt){wt._setListStyle(["paddingBottom",null]),wt._tiles.forEach(ee=>{ee._setStyle("marginTop",null),ee._setStyle("paddingTop",null)})}_parseRatio(wt){const ee=wt.split(":");this.rowHeightRatio=parseFloat(ee[0])/parseFloat(ee[1])}}class Vt extends ft{setRowStyles(wt,ee){let pe=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);wt._setStyle("top",this.getTilePosition(pe,ee)),wt._setStyle("height",Bt(this.getTileSize(pe,wt.rowspan)))}reset(wt){wt._tiles&&wt._tiles.forEach(ee=>{ee._setStyle("top",null),ee._setStyle("height",null)})}}function Bt(It){return`calc(${It})`}function bt(It){return It.match(/([A-Za-z%]+)$/)?It:`${It}px`}let ht=(()=>{class It{constructor(ee,Ft){this._element=ee,this._dir=Ft,this._gutter="1px"}get cols(){return this._cols}set cols(ee){this._cols=Math.max(1,Math.round((0,g.su)(ee)))}get gutterSize(){return this._gutter}set gutterSize(ee){this._gutter=`${ee??""}`}get rowHeight(){return this._rowHeight}set rowHeight(ee){const Ft=`${ee??""}`;Ft!==this._rowHeight&&(this._rowHeight=Ft,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(ee){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===ee?new Vt:ee&&ee.indexOf(":")>-1?new qt(ee):new Tt(ee)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new D);const ee=this._tileCoordinator,Ft=this._tiles.filter(pe=>!pe._gridList||pe._gridList===this),_e=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,Ft),this._tileStyler.init(this.gutterSize,ee,this.cols,_e),Ft.forEach((pe,Ze)=>{const Oe=ee.positions[Ze];this._tileStyler.setStyle(pe,Oe.row,Oe.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(ee){ee&&(this._element.nativeElement.style[ee[0]]=ee[1])}}return It.\u0275fac=function(ee){return new(ee||It)(l.Y36(l.SBq),l.Y36(h.Is,8))},It.\u0275cmp=l.Xpm({type:It,selectors:[["mat-grid-list"]],contentQueries:function(ee,Ft,_e){if(1&ee&&l.Suo(_e,q,5),2&ee){let pe;l.iGM(pe=l.CRH())&&(Ft._tiles=pe)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(ee,Ft){2&ee&&l.uIk("cols",Ft.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[l._Bn([{provide:O,useExisting:It}])],ngContentSelectors:t,decls:2,vars:0,template:function(ee,Ft){1&ee&&(l.F$t(),l.TgZ(0,"div"),l.Hsn(1),l.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),It})(),ut=(()=>{class It{}return It.\u0275fac=function(ee){return new(ee||It)},It.\u0275mod=l.oAB({type:It}),It.\u0275inj=l.cJS({imports:[u.uc,u.BQ,u.uc,u.BQ]}),It})()},97392:(K,W,_)=>{"use strict";_.d(W,{Hw:()=>Kt,Ps:()=>ue});var l=_(94650),u=_(3238),g=_(21281),h=_(36895),t=_(21086),x=_(61737),T=_(30567),U=_(42654),D=_(22868),k=_(24850),O=_(27221),q=_(40537),Y=_(12474),$=_(72986),X=_(80529),at=_(11481);const rt=["*"];let ft;function qt(ce){return function Tt(){if(void 0===ft&&(ft=null,typeof window<"u")){const ce=window;void 0!==ce.trustedTypes&&(ft=ce.trustedTypes.createPolicy("angular#components",{createHTML:je=>je}))}return ft}()?.createHTML(ce)||ce}function Vt(ce){return Error(`Unable to find icon with the name "${ce}"`)}function bt(ce){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${ce}".`)}function xt(ce){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${ce}".`)}class ht{constructor(je,Te,Ye){this.url=je,this.svgText=Te,this.options=Ye}}let ut=(()=>{class ce{constructor(Te,Ye,fn,An){this._httpClient=Te,this._sanitizer=Ye,this._errorHandler=An,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=fn}addSvgIcon(Te,Ye,fn){return this.addSvgIconInNamespace("",Te,Ye,fn)}addSvgIconLiteral(Te,Ye,fn){return this.addSvgIconLiteralInNamespace("",Te,Ye,fn)}addSvgIconInNamespace(Te,Ye,fn,An){return this._addSvgIconConfig(Te,Ye,new ht(fn,null,An))}addSvgIconResolver(Te){return this._resolvers.push(Te),this}addSvgIconLiteralInNamespace(Te,Ye,fn,An){const xe=this._sanitizer.sanitize(l.q3G.HTML,fn);if(!xe)throw xt(fn);const hn=qt(xe);return this._addSvgIconConfig(Te,Ye,new ht("",hn,An))}addSvgIconSet(Te,Ye){return this.addSvgIconSetInNamespace("",Te,Ye)}addSvgIconSetLiteral(Te,Ye){return this.addSvgIconSetLiteralInNamespace("",Te,Ye)}addSvgIconSetInNamespace(Te,Ye,fn){return this._addSvgIconSetConfig(Te,new ht(Ye,null,fn))}addSvgIconSetLiteralInNamespace(Te,Ye,fn){const An=this._sanitizer.sanitize(l.q3G.HTML,Ye);if(!An)throw xt(Ye);const xe=qt(An);return this._addSvgIconSetConfig(Te,new ht("",xe,fn))}registerFontClassAlias(Te,Ye=Te){return this._fontCssClassesByAlias.set(Te,Ye),this}classNameForFontAlias(Te){return this._fontCssClassesByAlias.get(Te)||Te}setDefaultFontSetClass(...Te){return this._defaultFontSetClass=Te,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Te){const Ye=this._sanitizer.sanitize(l.q3G.RESOURCE_URL,Te);if(!Ye)throw bt(Te);const fn=this._cachedIconsByUrl.get(Ye);return fn?(0,t.of)(wt(fn)):this._loadSvgIconFromConfig(new ht(Te,null)).pipe((0,D.b)(An=>this._cachedIconsByUrl.set(Ye,An)),(0,k.U)(An=>wt(An)))}getNamedSvgIcon(Te,Ye=""){const fn=ee(Ye,Te);let An=this._svgIconConfigs.get(fn);if(An)return this._getSvgFromConfig(An);if(An=this._getIconConfigFromResolvers(Ye,Te),An)return this._svgIconConfigs.set(fn,An),this._getSvgFromConfig(An);const xe=this._iconSetConfigs.get(Ye);return xe?this._getSvgFromIconSetConfigs(Te,xe):(0,x._)(Vt(fn))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Te){return Te.svgText?(0,t.of)(wt(this._svgElementFromConfig(Te))):this._loadSvgIconFromConfig(Te).pipe((0,k.U)(Ye=>wt(Ye)))}_getSvgFromIconSetConfigs(Te,Ye){const fn=this._extractIconWithNameFromAnySet(Te,Ye);if(fn)return(0,t.of)(fn);const An=Ye.filter(xe=>!xe.svgText).map(xe=>this._loadSvgIconSetFromConfig(xe).pipe((0,O.K)(hn=>{const _n=`Loading icon set URL: ${this._sanitizer.sanitize(l.q3G.RESOURCE_URL,xe.url)} failed: ${hn.message}`;return this._errorHandler.handleError(new Error(_n)),(0,t.of)(null)})));return(0,T.D)(An).pipe((0,k.U)(()=>{const xe=this._extractIconWithNameFromAnySet(Te,Ye);if(!xe)throw Vt(Te);return xe}))}_extractIconWithNameFromAnySet(Te,Ye){for(let fn=Ye.length-1;fn>=0;fn--){const An=Ye[fn];if(An.svgText&&An.svgText.toString().indexOf(Te)>-1){const xe=this._svgElementFromConfig(An),hn=this._extractSvgIconFromSet(xe,Te,An.options);if(hn)return hn}}return null}_loadSvgIconFromConfig(Te){return this._fetchIcon(Te).pipe((0,D.b)(Ye=>Te.svgText=Ye),(0,k.U)(()=>this._svgElementFromConfig(Te)))}_loadSvgIconSetFromConfig(Te){return Te.svgText?(0,t.of)(null):this._fetchIcon(Te).pipe((0,D.b)(Ye=>Te.svgText=Ye))}_extractSvgIconFromSet(Te,Ye,fn){const An=Te.querySelector(`[id="${Ye}"]`);if(!An)return null;const xe=An.cloneNode(!0);if(xe.removeAttribute("id"),"svg"===xe.nodeName.toLowerCase())return this._setSvgAttributes(xe,fn);if("symbol"===xe.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(xe),fn);const hn=this._svgElementFromString(qt(""));return hn.appendChild(xe),this._setSvgAttributes(hn,fn)}_svgElementFromString(Te){const Ye=this._document.createElement("DIV");Ye.innerHTML=Te;const fn=Ye.querySelector("svg");if(!fn)throw Error(" tag not found");return fn}_toSvgElement(Te){const Ye=this._svgElementFromString(qt("")),fn=Te.attributes;for(let An=0;Anqt(_n)),(0,q.x)(()=>this._inProgressUrlFetches.delete(xe)),(0,Y.B)());return this._inProgressUrlFetches.set(xe,Re),Re}_addSvgIconConfig(Te,Ye,fn){return this._svgIconConfigs.set(ee(Te,Ye),fn),this}_addSvgIconSetConfig(Te,Ye){const fn=this._iconSetConfigs.get(Te);return fn?fn.push(Ye):this._iconSetConfigs.set(Te,[Ye]),this}_svgElementFromConfig(Te){if(!Te.svgElement){const Ye=this._svgElementFromString(Te.svgText);this._setSvgAttributes(Ye,Te.options),Te.svgElement=Ye}return Te.svgElement}_getIconConfigFromResolvers(Te,Ye){for(let fn=0;fnje?je.pathname+je.search:""}}}),Ie=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Rt=Ie.map(ce=>`[${ce}]`).join(", "),fe=/^url\(['"]?#(.*?)['"]?\)$/;let Kt=(()=>{class ce extends _e{constructor(Te,Ye,fn,An,xe,hn){super(Te),this._iconRegistry=Ye,this._location=An,this._errorHandler=xe,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=U.w.EMPTY,hn&&(hn.color&&(this.color=this.defaultColor=hn.color),hn.fontSet&&(this.fontSet=hn.fontSet)),fn||Te.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Te){this._inline=(0,g.Ig)(Te)}get svgIcon(){return this._svgIcon}set svgIcon(Te){Te!==this._svgIcon&&(Te?this._updateSvgIcon(Te):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Te)}get fontSet(){return this._fontSet}set fontSet(Te){const Ye=this._cleanupFontValue(Te);Ye!==this._fontSet&&(this._fontSet=Ye,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Te){const Ye=this._cleanupFontValue(Te);Ye!==this._fontIcon&&(this._fontIcon=Ye,this._updateFontIconClasses())}_splitIconName(Te){if(!Te)return["",""];const Ye=Te.split(":");switch(Ye.length){case 1:return["",Ye[0]];case 2:return Ye;default:throw Error(`Invalid icon name: "${Te}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Te=this._elementsWithExternalReferences;if(Te&&Te.size){const Ye=this._location.getPathname();Ye!==this._previousPath&&(this._previousPath=Ye,this._prependPathToReferences(Ye))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Te){this._clearSvgElement();const Ye=this._location.getPathname();this._previousPath=Ye,this._cacheChildrenWithExternalReferences(Te),this._prependPathToReferences(Ye),this._elementRef.nativeElement.appendChild(Te)}_clearSvgElement(){const Te=this._elementRef.nativeElement;let Ye=Te.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Ye--;){const fn=Te.childNodes[Ye];(1!==fn.nodeType||"svg"===fn.nodeName.toLowerCase())&&fn.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Te=this._elementRef.nativeElement,Ye=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(fn=>fn.length>0);this._previousFontSetClass.forEach(fn=>Te.classList.remove(fn)),Ye.forEach(fn=>Te.classList.add(fn)),this._previousFontSetClass=Ye,this.fontIcon!==this._previousFontIconClass&&!Ye.includes("mat-ligature-font")&&(this._previousFontIconClass&&Te.classList.remove(this._previousFontIconClass),this.fontIcon&&Te.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Te){return"string"==typeof Te?Te.trim().split(" ")[0]:Te}_prependPathToReferences(Te){const Ye=this._elementsWithExternalReferences;Ye&&Ye.forEach((fn,An)=>{fn.forEach(xe=>{An.setAttribute(xe.name,`url('${Te}#${xe.value}')`)})})}_cacheChildrenWithExternalReferences(Te){const Ye=Te.querySelectorAll(Rt),fn=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let An=0;An{const hn=Ye[An],Re=hn.getAttribute(xe),_n=Re?Re.match(fe):null;if(_n){let Kn=fn.get(hn);Kn||(Kn=[],fn.set(hn,Kn)),Kn.push({name:xe,value:_n[1]})}})}_updateSvgIcon(Te){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Te){const[Ye,fn]=this._splitIconName(Te);Ye&&(this._svgNamespace=Ye),fn&&(this._svgName=fn),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(fn,Ye).pipe((0,$.q)(1)).subscribe(An=>this._setSvgElement(An),An=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Ye}:${fn}! ${An.message}`))})}}}return ce.\u0275fac=function(Te){return new(Te||ce)(l.Y36(l.SBq),l.Y36(ut),l.$8M("aria-hidden"),l.Y36(Ze),l.Y36(l.qLn),l.Y36(pe,8))},ce.\u0275cmp=l.Xpm({type:ce,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(Te,Ye){2&Te&&(l.uIk("data-mat-icon-type",Ye._usingFontIcon()?"font":"svg")("data-mat-icon-name",Ye._svgName||Ye.fontIcon)("data-mat-icon-namespace",Ye._svgNamespace||Ye.fontSet)("fontIcon",Ye._usingFontIcon()?Ye.fontIcon:null),l.ekj("mat-icon-inline",Ye.inline)("mat-icon-no-color","primary"!==Ye.color&&"accent"!==Ye.color&&"warn"!==Ye.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[l.qOj],ngContentSelectors:rt,decls:1,vars:0,template:function(Te,Ye){1&Te&&(l.F$t(),l.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),ce})(),ue=(()=>{class ce{}return ce.\u0275fac=function(Te){return new(Te||ce)},ce.\u0275mod=l.oAB({type:ce}),ce.\u0275inj=l.cJS({imports:[u.BQ,u.BQ]}),ce})()},284:(K,W,_)=>{"use strict";_.d(W,{Jk:()=>k,Nt:()=>$,c:()=>X});var l=_(21281),u=_(83353),g=_(39349),h=_(94650),t=_(24006),x=_(3238),T=_(59549),U=_(8929);const k=new h.OlP("MAT_INPUT_VALUE_ACCESSOR"),O=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let q=0;const Y=(0,x.FD)(class{constructor(at,rt,ft,Tt){this._defaultErrorStateMatcher=at,this._parentForm=rt,this._parentFormGroup=ft,this.ngControl=Tt,this.stateChanges=new U.xQ}});let $=(()=>{class at extends Y{constructor(ft,Tt,qt,Vt,Bt,bt,xt,ht,ut,Mt){super(bt,Vt,Bt,qt),this._elementRef=ft,this._platform=Tt,this._autofillMonitor=ht,this._formField=Mt,this._uid="mat-input-"+q++,this.focused=!1,this.stateChanges=new U.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(ee=>(0,u.qK)().has(ee)),this._iOSKeyupListener=ee=>{const Ft=ee.target;!Ft.value&&0===Ft.selectionStart&&0===Ft.selectionEnd&&(Ft.setSelectionRange(1,1),Ft.setSelectionRange(0,0))};const It=this._elementRef.nativeElement,wt=It.nodeName.toLowerCase();this._inputValueAccessor=xt||It,this._previousNativeValue=this.value,this.id=this.id,Tt.IOS&&ut.runOutsideAngular(()=>{ft.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===wt,this._isTextarea="textarea"===wt,this._isInFormField=!!Mt,this._isNativeSelect&&(this.controlType=It.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(ft){this._disabled=(0,l.Ig)(ft),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(ft){this._id=ft||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(t.kI.required)??!1}set required(ft){this._required=(0,l.Ig)(ft)}get type(){return this._type}set type(ft){this._type=ft||"text",this._validateType(),!this._isTextarea&&(0,u.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(ft){ft!==this.value&&(this._inputValueAccessor.value=ft,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(ft){this._readonly=(0,l.Ig)(ft)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(ft=>{this.autofilled=ft.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(ft){this._elementRef.nativeElement.focus(ft)}_focusChanged(ft){ft!==this.focused&&(this.focused=ft,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const ft=this._formField,Tt=ft&&"legacy"===ft.appearance&&!ft._hasLabel?.()?null:this.placeholder;if(Tt!==this._previousPlaceholder){const qt=this._elementRef.nativeElement;this._previousPlaceholder=Tt,Tt?qt.setAttribute("placeholder",Tt):qt.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const ft=this._elementRef.nativeElement.value;this._previousNativeValue!==ft&&(this._previousNativeValue=ft,this.stateChanges.next())}_validateType(){O.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let ft=this._elementRef.nativeElement.validity;return ft&&ft.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const ft=this._elementRef.nativeElement,Tt=ft.options[0];return this.focused||ft.multiple||!this.empty||!!(ft.selectedIndex>-1&&Tt&&Tt.label)}return this.focused||!this.empty}setDescribedByIds(ft){ft.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ft.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const ft=this._elementRef.nativeElement;return this._isNativeSelect&&(ft.multiple||ft.size>1)}}return at.\u0275fac=function(ft){return new(ft||at)(h.Y36(h.SBq),h.Y36(u.t4),h.Y36(t.a5,10),h.Y36(t.F,8),h.Y36(t.sg,8),h.Y36(x.rD),h.Y36(k,10),h.Y36(g.Lq),h.Y36(h.R0b),h.Y36(T.G_,8))},at.\u0275dir=h.lG2({type:at,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(ft,Tt){1&ft&&h.NdJ("focus",function(){return Tt._focusChanged(!0)})("blur",function(){return Tt._focusChanged(!1)})("input",function(){return Tt._onInput()}),2&ft&&(h.Ikx("disabled",Tt.disabled)("required",Tt.required),h.uIk("id",Tt.id)("data-placeholder",Tt.placeholder)("name",Tt.name||null)("readonly",Tt.readonly&&!Tt._isNativeSelect||null)("aria-invalid",Tt.empty&&Tt.required?null:Tt.errorState)("aria-required",Tt.required),h.ekj("mat-input-server",Tt._isServer)("mat-native-select-inline",Tt._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[h._Bn([{provide:T.Eo,useExisting:at}]),h.qOj,h.TTD]}),at})(),X=(()=>{class at{}return at.\u0275fac=function(ft){return new(ft||at)},at.\u0275mod=h.oAB({type:at}),at.\u0275inj=h.cJS({providers:[x.rD],imports:[g.Ky,T.lN,x.BQ,g.Ky,T.lN]}),at})()},96338:(K,W,_)=>{"use strict";_.d(W,{Hk:()=>ht,Nh:()=>It,Tg:()=>ee,gs:()=>wt,i$:()=>ut,ie:()=>Rt});var l=_(36895),u=_(94650),g=_(3238),h=_(21281),t=_(8929),x=_(7625),q=(_(1059),_(12687),_(95017),_(29521),_(24006),_(44850));const Y=["*"],X=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],at=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Vt=(0,g.Id)((0,g.Kr)(class{})),Bt=(0,g.Kr)(class{}),bt=new u.OlP("MatList"),xt=new u.OlP("MatNavList");let ht=(()=>{class fe extends Vt{constructor(){super(...arguments),this._stateChanges=new t.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return fe.\u0275fac=function(){let Kt;return function(ce){return(Kt||(Kt=u.n5z(fe)))(ce||fe)}}(),fe.\u0275cmp=u.Xpm({type:fe,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[u._Bn([{provide:xt,useExisting:fe}]),u.qOj,u.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(ue,ce){1&ue&&(u.F$t(),u.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),fe})(),ut=(()=>{class fe extends Vt{constructor(ue){super(),this._elementRef=ue,this._stateChanges=new t.xQ,"action-list"===this._getListType()&&(ue.nativeElement.classList.add("mat-action-list"),ue.nativeElement.setAttribute("role","group"))}_getListType(){const ue=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===ue?"list":"mat-action-list"===ue?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return fe.\u0275fac=function(ue){return new(ue||fe)(u.Y36(u.SBq))},fe.\u0275cmp=u.Xpm({type:fe,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[u._Bn([{provide:bt,useExisting:fe}]),u.qOj,u.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(ue,ce){1&ue&&(u.F$t(),u.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),fe})(),Mt=(()=>{class fe{}return fe.\u0275fac=function(ue){return new(ue||fe)},fe.\u0275dir=u.lG2({type:fe,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),fe})(),It=(()=>{class fe{}return fe.\u0275fac=function(ue){return new(ue||fe)},fe.\u0275dir=u.lG2({type:fe,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),fe})(),wt=(()=>{class fe{}return fe.\u0275fac=function(ue){return new(ue||fe)},fe.\u0275dir=u.lG2({type:fe,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),fe})(),ee=(()=>{class fe extends Bt{constructor(ue,ce,je,Te){super(),this._element=ue,this._isInteractiveList=!1,this._destroyed=new t.xQ,this._disabled=!1,this._isInteractiveList=!!(je||Te&&"action-list"===Te._getListType()),this._list=je||Te;const Ye=this._getHostElement();"button"===Ye.nodeName.toLowerCase()&&!Ye.hasAttribute("type")&&Ye.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,x.R)(this._destroyed)).subscribe(()=>{ce.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(ue){this._disabled=(0,h.Ig)(ue)}ngAfterContentInit(){(0,g.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return fe.\u0275fac=function(ue){return new(ue||fe)(u.Y36(u.SBq),u.Y36(u.sBO),u.Y36(xt,8),u.Y36(bt,8))},fe.\u0275cmp=u.Xpm({type:fe,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(ue,ce,je){if(1&ue&&(u.Suo(je,Mt,5),u.Suo(je,It,5),u.Suo(je,g.X2,5)),2&ue){let Te;u.iGM(Te=u.CRH())&&(ce._avatar=Te.first),u.iGM(Te=u.CRH())&&(ce._icon=Te.first),u.iGM(Te=u.CRH())&&(ce._lines=Te)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(ue,ce){2&ue&&u.ekj("mat-list-item-disabled",ce.disabled)("mat-list-item-with-avatar",ce._avatar||ce._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[u.qOj],ngContentSelectors:at,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(ue,ce){1&ue&&(u.F$t(X),u.TgZ(0,"span",0),u._UZ(1,"span",1),u.Hsn(2),u.TgZ(3,"span",2),u.Hsn(4,1),u.qZA(),u.Hsn(5,2),u.qZA()),2&ue&&(u.xp6(1),u.Q6J("matRippleTrigger",ce._getHostElement())("matRippleDisabled",ce._isRippleDisabled()))},dependencies:[g.wG],encapsulation:2,changeDetection:0}),fe})(),Rt=(()=>{class fe{}return fe.\u0275fac=function(ue){return new(ue||fe)},fe.\u0275mod=u.oAB({type:fe}),fe.\u0275inj=u.cJS({imports:[g.uc,g.si,g.BQ,g.us,l.ez,g.uc,g.BQ,g.us,q.t]}),fe})()},28255:(K,W,_)=>{"use strict";_.d(W,{OP:()=>Kt,Tx:()=>si,VK:()=>Ye,p6:()=>Kn});var l=_(12687),u=_(21281),g=_(29521),h=_(94650),t=_(8929),x=_(42654),T=_(36787),U=_(21086),D=_(8139),k=_(1059),O=_(87545),q=_(72986),Y=_(7625),$=_(92198),X=_(18583),at=_(37340),rt=_(84080),ft=_(36895),Tt=_(3238),qt=_(40445),Vt=_(98184),Bt=_(83353),bt=_(67376);const xt=["mat-menu-item",""];function ht(oi,Vn){1&oi&&(h.O4$(),h.TgZ(0,"svg",2),h._UZ(1,"polygon",3),h.qZA())}const ut=["*"];function Mt(oi,Vn){if(1&oi){const ze=h.EpF();h.TgZ(0,"div",0),h.NdJ("keydown",function(J){h.CHM(ze);const j=h.oxw();return h.KtG(j._handleKeydown(J))})("click",function(){h.CHM(ze);const J=h.oxw();return h.KtG(J.closed.emit("click"))})("@transformMenu.start",function(J){h.CHM(ze);const j=h.oxw();return h.KtG(j._onAnimationStart(J))})("@transformMenu.done",function(J){h.CHM(ze);const j=h.oxw();return h.KtG(j._onAnimationDone(J))}),h.TgZ(1,"div",1),h.Hsn(2),h.qZA()()}if(2&oi){const ze=h.oxw();h.Q6J("id",ze.panelId)("ngClass",ze._classList)("@transformMenu",ze._panelAnimationState),h.uIk("aria-label",ze.ariaLabel||null)("aria-labelledby",ze.ariaLabelledby||null)("aria-describedby",ze.ariaDescribedby||null)}}const It={transformMenu:(0,at.X$)("transformMenu",[(0,at.SB)("void",(0,at.oB)({opacity:0,transform:"scale(0.8)"})),(0,at.eR)("void => enter",(0,at.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,at.oB)({opacity:1,transform:"scale(1)"}))),(0,at.eR)("* => void",(0,at.jt)("100ms 25ms linear",(0,at.oB)({opacity:0})))]),fadeInItems:(0,at.X$)("fadeInItems",[(0,at.SB)("showing",(0,at.oB)({opacity:1})),(0,at.eR)("void => *",[(0,at.oB)({opacity:0}),(0,at.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ft=new h.OlP("MatMenuContent"),Rt=new h.OlP("MAT_MENU_PANEL"),fe=(0,Tt.Kr)((0,Tt.Id)(class{}));let Kt=(()=>{class oi extends fe{constructor(ze,Wt,J,j,Q){super(),this._elementRef=ze,this._document=Wt,this._focusMonitor=J,this._parentMenu=j,this._changeDetectorRef=Q,this.role="menuitem",this._hovered=new t.xQ,this._focused=new t.xQ,this._highlighted=!1,this._triggersSubmenu=!1,j?.addItem?.(this)}focus(ze,Wt){this._focusMonitor&&ze?this._focusMonitor.focusVia(this._getHostElement(),ze,Wt):this._getHostElement().focus(Wt),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(ze){this.disabled&&(ze.preventDefault(),ze.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const ze=this._elementRef.nativeElement.cloneNode(!0),Wt=ze.querySelectorAll("mat-icon, .material-icons");for(let J=0;J{class oi{constructor(ze,Wt,J,j){this._elementRef=ze,this._ngZone=Wt,this._defaultOptions=J,this._changeDetectorRef=j,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new h.n_E,this._tabSubscription=x.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new t.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new h.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+je++}get xPosition(){return this._xPosition}set xPosition(ze){this._xPosition=ze,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ze){this._yPosition=ze,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ze){this._overlapTrigger=(0,u.Ig)(ze)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ze){this._hasBackdrop=(0,u.Ig)(ze)}set panelClass(ze){const Wt=this._previousPanelClass;Wt&&Wt.length&&Wt.split(" ").forEach(J=>{this._classList[J]=!1}),this._previousPanelClass=ze,ze&&ze.length&&(ze.split(" ").forEach(J=>{this._classList[J]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ze){this.panelClass=ze}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new l.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,k.O)(this._directDescendantItems),(0,O.w)(ze=>(0,T.T)(...ze.map(Wt=>Wt._focused)))).subscribe(ze=>this._keyManager.updateActiveItem(ze)),this._directDescendantItems.changes.subscribe(ze=>{const Wt=this._keyManager;if("enter"===this._panelAnimationState&&Wt.activeItem?._hasFocus()){const J=ze.toArray(),j=Math.max(0,Math.min(J.length-1,Wt.activeItemIndex||0));J[j]&&!J[j].disabled?Wt.setActiveItem(j):Wt.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,k.O)(this._directDescendantItems),(0,O.w)(Wt=>(0,T.T)(...Wt.map(J=>J._hovered))))}addItem(ze){}removeItem(ze){}_handleKeydown(ze){const Wt=ze.keyCode,J=this._keyManager;switch(Wt){case g.hY:(0,g.Vb)(ze)||(ze.preventDefault(),this.closed.emit("keydown"));break;case g.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case g.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Wt===g.LH||Wt===g.JH)&&J.setFocusOrigin("keyboard"),void J.onKeydown(ze)}ze.stopPropagation()}focusFirstItem(ze="program"){this._ngZone.onStable.pipe((0,q.q)(1)).subscribe(()=>{let Wt=null;if(this._directDescendantItems.length&&(Wt=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!Wt||!Wt.contains(document.activeElement)){const J=this._keyManager;J.setFocusOrigin(ze).setFirstItemActive(),!J.activeItem&&Wt&&Wt.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ze){const Wt=Math.min(this._baseElevation+ze,24),J=`${this._elevationPrefix}${Wt}`,j=Object.keys(this._classList).find(Q=>Q.startsWith(this._elevationPrefix));(!j||j===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[J]=!0,this._previousElevation=J)}setPositionClasses(ze=this.xPosition,Wt=this.yPosition){const J=this._classList;J["mat-menu-before"]="before"===ze,J["mat-menu-after"]="after"===ze,J["mat-menu-above"]="above"===Wt,J["mat-menu-below"]="below"===Wt,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ze){this._animationDone.next(ze),this._isAnimating=!1}_onAnimationStart(ze){this._isAnimating=!0,"enter"===ze.toState&&0===this._keyManager.activeItemIndex&&(ze.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,k.O)(this._allItems)).subscribe(ze=>{this._directDescendantItems.reset(ze.filter(Wt=>Wt._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return oi.\u0275fac=function(ze){return new(ze||oi)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(ue),h.Y36(h.sBO))},oi.\u0275dir=h.lG2({type:oi,contentQueries:function(ze,Wt,J){if(1&ze&&(h.Suo(J,Ft,5),h.Suo(J,Kt,5),h.Suo(J,Kt,4)),2&ze){let j;h.iGM(j=h.CRH())&&(Wt.lazyContent=j.first),h.iGM(j=h.CRH())&&(Wt._allItems=j),h.iGM(j=h.CRH())&&(Wt.items=j)}},viewQuery:function(ze,Wt){if(1&ze&&h.Gf(h.Rgc,5),2&ze){let J;h.iGM(J=h.CRH())&&(Wt.templateRef=J.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),oi})(),Ye=(()=>{class oi extends Te{constructor(ze,Wt,J,j){super(ze,Wt,J,j),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return oi.\u0275fac=function(ze){return new(ze||oi)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(ue),h.Y36(h.sBO))},oi.\u0275cmp=h.Xpm({type:oi,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ze,Wt){2&ze&&h.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[h._Bn([{provide:Rt,useExisting:oi}]),h.qOj],ngContentSelectors:ut,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(ze,Wt){1&ze&&(h.F$t(),h.YNc(0,Mt,3,6,"ng-template"))},dependencies:[ft.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[It.transformMenu,It.fadeInItems]},changeDetection:0}),oi})();const fn=new h.OlP("mat-menu-scroll-strategy"),xe={provide:fn,deps:[Vt.aV],useFactory:function An(oi){return()=>oi.scrollStrategies.reposition()}},Re=(0,Bt.i$)({passive:!0});let _n=(()=>{class oi{constructor(ze,Wt,J,j,Q,Ct,Yt,ie,re){this._overlay=ze,this._element=Wt,this._viewContainerRef=J,this._menuItemInstance=Ct,this._dir=Yt,this._focusMonitor=ie,this._ngZone=re,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=x.w.EMPTY,this._hoverSubscription=x.w.EMPTY,this._menuCloseSubscription=x.w.EMPTY,this._handleTouchStart=tn=>{(0,l.yG)(tn)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new h.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new h.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=j,this._parentMaterialMenu=Q instanceof Te?Q:void 0,Wt.nativeElement.addEventListener("touchstart",this._handleTouchStart,Re),Ct&&(Ct._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ze){this.menu=ze}get menu(){return this._menu}set menu(ze){ze!==this._menu&&(this._menu=ze,this._menuCloseSubscription.unsubscribe(),ze&&(this._menuCloseSubscription=ze.close.subscribe(Wt=>{this._destroyMenu(Wt),("click"===Wt||"tab"===Wt)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Wt)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Re),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const ze=this.menu;if(this._menuOpen||!ze)return;const Wt=this._createOverlay(ze),J=Wt.getConfig(),j=J.positionStrategy;this._setPosition(ze,j),J.hasBackdrop=ze.hasBackdrop??!this.triggersSubmenu(),Wt.attach(this._getPortal(ze)),ze.lazyContent&&ze.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(ze),ze instanceof Te&&(ze._startAnimation(),ze._directDescendantItems.changes.pipe((0,Y.R)(ze.close)).subscribe(()=>{j.withLockedPosition(!1).reapplyLastPosition(),j.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(ze,Wt){this._focusMonitor&&ze?this._focusMonitor.focusVia(this._element,ze,Wt):this._element.nativeElement.focus(Wt)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(ze){if(!this._overlayRef||!this.menuOpen)return;const Wt=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ze||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Wt instanceof Te?(Wt._resetAnimation(),Wt.lazyContent?Wt._animationDone.pipe((0,$.h)(J=>"void"===J.toState),(0,q.q)(1),(0,Y.R)(Wt.lazyContent._attached)).subscribe({next:()=>Wt.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Wt?.lazyContent?.detach())}_initMenu(ze){ze.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,ze.direction=this.dir,this._setMenuElevation(ze),ze.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(ze){if(ze.setElevation){let Wt=0,J=ze.parentMenu;for(;J;)Wt++,J=J.parentMenu;ze.setElevation(Wt)}}_setIsMenuOpen(ze){this._menuOpen=ze,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ze)}_createOverlay(ze){if(!this._overlayRef){const Wt=this._getOverlayConfig(ze);this._subscribeToPositions(ze,Wt.positionStrategy),this._overlayRef=this._overlay.create(Wt),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(ze){return new Vt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:ze.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:ze.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(ze,Wt){ze.setPositionClasses&&Wt.positionChanges.subscribe(J=>{const j="start"===J.connectionPair.overlayX?"after":"before",Q="top"===J.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>ze.setPositionClasses(j,Q)):ze.setPositionClasses(j,Q)})}_setPosition(ze,Wt){let[J,j]="before"===ze.xPosition?["end","start"]:["start","end"],[Q,Ct]="above"===ze.yPosition?["bottom","top"]:["top","bottom"],[Yt,ie]=[Q,Ct],[re,tn]=[J,j],Cn=0;if(this.triggersSubmenu()){if(tn=J="before"===ze.xPosition?"start":"end",j=re="end"===J?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const Yn=this._parentMaterialMenu.items.first;this._parentInnerPadding=Yn?Yn._getHostElement().offsetTop:0}Cn="bottom"===Q?this._parentInnerPadding:-this._parentInnerPadding}}else ze.overlapTrigger||(Yt="top"===Q?"bottom":"top",ie="top"===Ct?"bottom":"top");Wt.withPositions([{originX:J,originY:Yt,overlayX:re,overlayY:Q,offsetY:Cn},{originX:j,originY:Yt,overlayX:tn,overlayY:Q,offsetY:Cn},{originX:J,originY:ie,overlayX:re,overlayY:Ct,offsetY:-Cn},{originX:j,originY:ie,overlayX:tn,overlayY:Ct,offsetY:-Cn}])}_menuClosingActions(){const ze=this._overlayRef.backdropClick(),Wt=this._overlayRef.detachments(),J=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,U.of)(),j=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,$.h)(Q=>Q!==this._menuItemInstance),(0,$.h)(()=>this._menuOpen)):(0,U.of)();return(0,T.T)(ze,J,j,Wt)}_handleMousedown(ze){(0,l.X6)(ze)||(this._openedBy=0===ze.button?"mouse":void 0,this.triggersSubmenu()&&ze.preventDefault())}_handleKeydown(ze){const Wt=ze.keyCode;(Wt===g.K5||Wt===g.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Wt===g.SV&&"ltr"===this.dir||Wt===g.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(ze){this.triggersSubmenu()?(ze.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,$.h)(ze=>ze===this._menuItemInstance&&!ze.disabled),(0,X.g)(0,D.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Te&&this.menu._isAnimating?this.menu._animationDone.pipe((0,q.q)(1),(0,X.g)(0,D.E),(0,Y.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(ze){return(!this._portal||this._portal.templateRef!==ze.templateRef)&&(this._portal=new rt.UE(ze.templateRef,this._viewContainerRef)),this._portal}}return oi.\u0275fac=function(ze){return new(ze||oi)(h.Y36(Vt.aV),h.Y36(h.SBq),h.Y36(h.s_b),h.Y36(fn),h.Y36(Rt,8),h.Y36(Kt,10),h.Y36(qt.Is,8),h.Y36(l.tE),h.Y36(h.R0b))},oi.\u0275dir=h.lG2({type:oi,hostVars:3,hostBindings:function(ze,Wt){1&ze&&h.NdJ("click",function(j){return Wt._handleClick(j)})("mousedown",function(j){return Wt._handleMousedown(j)})("keydown",function(j){return Wt._handleKeydown(j)}),2&ze&&h.uIk("aria-haspopup",Wt.menu?"menu":null)("aria-expanded",Wt.menuOpen||null)("aria-controls",Wt.menuOpen?Wt.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),oi})(),Kn=(()=>{class oi extends _n{}return oi.\u0275fac=function(){let Vn;return function(Wt){return(Vn||(Vn=h.n5z(oi)))(Wt||oi)}}(),oi.\u0275dir=h.lG2({type:oi,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[h.qOj]}),oi})(),si=(()=>{class oi{}return oi.\u0275fac=function(ze){return new(ze||oi)},oi.\u0275mod=h.oAB({type:oi}),oi.\u0275inj=h.cJS({providers:[xe],imports:[ft.ez,Tt.BQ,Tt.si,Vt.U8,bt.ZD,Tt.BQ]}),oi})()},98739:(K,W,_)=>{"use strict";_.d(W,{NW:()=>xt,TU:()=>ht});var l=_(36895),u=_(94650),g=_(3238),h=_(4859),t=_(84385),x=_(10266),T=_(21281),U=_(8929),D=_(59549);function k(ut,Mt){if(1&ut&&(u.TgZ(0,"mat-option",19),u._uU(1),u.qZA()),2&ut){const It=Mt.$implicit;u.Q6J("value",It),u.xp6(1),u.hij(" ",It," ")}}function O(ut,Mt){if(1&ut){const It=u.EpF();u.TgZ(0,"mat-form-field",16)(1,"mat-select",17),u.NdJ("selectionChange",function(ee){u.CHM(It);const Ft=u.oxw(2);return u.KtG(Ft._changePageSize(ee.value))}),u.YNc(2,k,2,2,"mat-option",18),u.qZA()()}if(2&ut){const It=u.oxw(2);u.Q6J("appearance",It._formFieldAppearance)("color",It.color),u.xp6(1),u.Q6J("value",It.pageSize)("disabled",It.disabled)("panelClass",It.selectConfig.panelClass||"")("disableOptionCentering",It.selectConfig.disableOptionCentering)("aria-label",It._intl.itemsPerPageLabel),u.xp6(1),u.Q6J("ngForOf",It._displayedPageSizeOptions)}}function q(ut,Mt){if(1&ut&&(u.TgZ(0,"div",20),u._uU(1),u.qZA()),2&ut){const It=u.oxw(2);u.xp6(1),u.Oqu(It.pageSize)}}function Y(ut,Mt){if(1&ut&&(u.TgZ(0,"div",12)(1,"div",13),u._uU(2),u.qZA(),u.YNc(3,O,3,8,"mat-form-field",14),u.YNc(4,q,2,1,"div",15),u.qZA()),2&ut){const It=u.oxw();u.xp6(2),u.hij(" ",It._intl.itemsPerPageLabel," "),u.xp6(1),u.Q6J("ngIf",It._displayedPageSizeOptions.length>1),u.xp6(1),u.Q6J("ngIf",It._displayedPageSizeOptions.length<=1)}}function $(ut,Mt){if(1&ut){const It=u.EpF();u.TgZ(0,"button",21),u.NdJ("click",function(){u.CHM(It);const ee=u.oxw();return u.KtG(ee.firstPage())}),u.O4$(),u.TgZ(1,"svg",7),u._UZ(2,"path",22),u.qZA()()}if(2&ut){const It=u.oxw();u.Q6J("matTooltip",It._intl.firstPageLabel)("matTooltipDisabled",It._previousButtonsDisabled())("matTooltipPosition","above")("disabled",It._previousButtonsDisabled()),u.uIk("aria-label",It._intl.firstPageLabel)}}function X(ut,Mt){if(1&ut){const It=u.EpF();u.O4$(),u.kcU(),u.TgZ(0,"button",23),u.NdJ("click",function(){u.CHM(It);const ee=u.oxw();return u.KtG(ee.lastPage())}),u.O4$(),u.TgZ(1,"svg",7),u._UZ(2,"path",24),u.qZA()()}if(2&ut){const It=u.oxw();u.Q6J("matTooltip",It._intl.lastPageLabel)("matTooltipDisabled",It._nextButtonsDisabled())("matTooltipPosition","above")("disabled",It._nextButtonsDisabled()),u.uIk("aria-label",It._intl.lastPageLabel)}}let at=(()=>{class ut{constructor(){this.changes=new U.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(It,wt,ee)=>{if(0==ee||0==wt)return`0 of ${ee}`;const Ft=It*wt;return`${Ft+1} \u2013 ${Ft<(ee=Math.max(ee,0))?Math.min(Ft+wt,ee):Ft+wt} of ${ee}`}}}return ut.\u0275fac=function(It){return new(It||ut)},ut.\u0275prov=u.Yz7({token:ut,factory:ut.\u0275fac,providedIn:"root"}),ut})();const ft={provide:at,deps:[[new u.FiY,new u.tp0,at]],useFactory:function rt(ut){return ut||new at}},Vt=new u.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Bt=(0,g.Id)((0,g.dB)(class{}));let bt=(()=>{class ut extends Bt{constructor(It,wt,ee){if(super(),this._intl=It,this._changeDetectorRef=wt,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new u.vpe,this._intlChanges=It.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),ee){const{pageSize:Ft,pageSizeOptions:_e,hidePageSize:pe,showFirstLastButtons:Ze}=ee;null!=Ft&&(this._pageSize=Ft),null!=_e&&(this._pageSizeOptions=_e),null!=pe&&(this._hidePageSize=pe),null!=Ze&&(this._showFirstLastButtons=Ze)}}get pageIndex(){return this._pageIndex}set pageIndex(It){this._pageIndex=Math.max((0,T.su)(It),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(It){this._length=(0,T.su)(It),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(It){this._pageSize=Math.max((0,T.su)(It),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(It){this._pageSizeOptions=(It||[]).map(wt=>(0,T.su)(wt)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(It){this._hidePageSize=(0,T.Ig)(It)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(It){this._showFirstLastButtons=(0,T.Ig)(It)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const It=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(It)}previousPage(){if(!this.hasPreviousPage())return;const It=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(It)}firstPage(){if(!this.hasPreviousPage())return;const It=this.pageIndex;this.pageIndex=0,this._emitPageEvent(It)}lastPage(){if(!this.hasNextPage())return;const It=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(It)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const It=this.getNumberOfPages()-1;return this.pageIndexIt-wt),this._changeDetectorRef.markForCheck())}_emitPageEvent(It){this.page.emit({previousPageIndex:It,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ut.\u0275fac=function(It){u.$Z()},ut.\u0275dir=u.lG2({type:ut,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[u.qOj]}),ut})(),xt=(()=>{class ut extends bt{constructor(It,wt,ee){super(It,wt,ee),ee&&null!=ee.formFieldAppearance&&(this._formFieldAppearance=ee.formFieldAppearance)}}return ut.\u0275fac=function(It){return new(It||ut)(u.Y36(at),u.Y36(u.sBO),u.Y36(Vt,8))},ut.\u0275cmp=u.Xpm({type:ut,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[u.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(It,wt){1&It&&(u.TgZ(0,"div",0)(1,"div",1),u.YNc(2,Y,5,3,"div",2),u.TgZ(3,"div",3)(4,"div",4),u._uU(5),u.qZA(),u.YNc(6,$,3,5,"button",5),u.TgZ(7,"button",6),u.NdJ("click",function(){return wt.previousPage()}),u.O4$(),u.TgZ(8,"svg",7),u._UZ(9,"path",8),u.qZA()(),u.kcU(),u.TgZ(10,"button",9),u.NdJ("click",function(){return wt.nextPage()}),u.O4$(),u.TgZ(11,"svg",7),u._UZ(12,"path",10),u.qZA()(),u.YNc(13,X,3,5,"button",11),u.qZA()()()),2&It&&(u.xp6(2),u.Q6J("ngIf",!wt.hidePageSize),u.xp6(3),u.hij(" ",wt._intl.getRangeLabel(wt.pageIndex,wt.pageSize,wt.length)," "),u.xp6(1),u.Q6J("ngIf",wt.showFirstLastButtons),u.xp6(1),u.Q6J("matTooltip",wt._intl.previousPageLabel)("matTooltipDisabled",wt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",wt._previousButtonsDisabled()),u.uIk("aria-label",wt._intl.previousPageLabel),u.xp6(3),u.Q6J("matTooltip",wt._intl.nextPageLabel)("matTooltipDisabled",wt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",wt._nextButtonsDisabled()),u.uIk("aria-label",wt._intl.nextPageLabel),u.xp6(3),u.Q6J("ngIf",wt.showFirstLastButtons))},dependencies:[l.sg,l.O5,h.lW,D.KE,t.gD,g.ey,x.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),ut})(),ht=(()=>{class ut{}return ut.\u0275fac=function(It){return new(It||ut)},ut.\u0275mod=u.oAB({type:ut}),ut.\u0275inj=u.cJS({providers:[ft],imports:[l.ez,h.ot,t.LD,x.AV,g.BQ]}),ut})()},73162:(K,W,_)=>{"use strict";_.d(W,{Cv:()=>at,pW:()=>$});var l=_(94650),u=_(36895),g=_(3238),h=_(21281),t=_(42654),x=_(23753),T=_(92198);const U=["primaryValueBar"],D=(0,g.pj)(class{constructor(rt){this._elementRef=rt}},"primary"),k=new l.OlP("mat-progress-bar-location",{providedIn:"root",factory:function O(){const rt=(0,l.f3M)(u.K0),ft=rt?rt.location:null;return{getPathname:()=>ft?ft.pathname+ft.search:""}}}),q=new l.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let Y=0,$=(()=>{class rt extends D{constructor(Tt,qt,Vt,Bt,bt,xt){super(Tt),this._ngZone=qt,this._animationMode=Vt,this._changeDetectorRef=xt,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new l.vpe,this._animationEndSubscription=t.w.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+Y++;const ht=Bt?Bt.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${ht}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===Vt,bt&&(bt.color&&(this.color=this.defaultColor=bt.color),this.mode=bt.mode||this.mode)}get value(){return this._value}set value(Tt){this._value=X((0,h.su)(Tt)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(Tt){this._bufferValue=X(Tt||0),this._changeDetectorRef?.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const Tt=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,x.R)(Tt,"transitionend").pipe((0,T.h)(qt=>qt.target===Tt)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return rt.\u0275fac=function(Tt){return new(Tt||rt)(l.Y36(l.SBq),l.Y36(l.R0b),l.Y36(l.QbO,8),l.Y36(k,8),l.Y36(q,8),l.Y36(l.sBO))},rt.\u0275cmp=l.Xpm({type:rt,selectors:[["mat-progress-bar"]],viewQuery:function(Tt,qt){if(1&Tt&&l.Gf(U,5),2&Tt){let Vt;l.iGM(Vt=l.CRH())&&(qt._primaryValueBar=Vt.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(Tt,qt){2&Tt&&(l.uIk("aria-valuenow","indeterminate"===qt.mode||"query"===qt.mode?null:qt.value)("mode",qt.mode),l.ekj("_mat-animation-noopable",qt._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[l.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(Tt,qt){1&Tt&&(l.TgZ(0,"div",0),l.O4$(),l.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),l._UZ(4,"circle",3),l.qZA()(),l._UZ(5,"rect",4),l.qZA(),l.kcU(),l._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),l.qZA()),2&Tt&&(l.xp6(3),l.Q6J("id",qt.progressbarId),l.xp6(2),l.uIk("fill",qt._rectangleFillValue),l.xp6(1),l.Q6J("ngStyle",qt._bufferTransform()),l.xp6(1),l.Q6J("ngStyle",qt._primaryTransform()))},dependencies:[u.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0}),rt})();function X(rt,ft=0,Tt=100){return Math.max(ft,Math.min(Tt,rt))}let at=(()=>{class rt{}return rt.\u0275fac=function(Tt){return new(Tt||rt)},rt.\u0275mod=l.oAB({type:rt}),rt.\u0275inj=l.cJS({imports:[u.ez,g.BQ,g.BQ]}),rt})()},51572:(K,W,_)=>{"use strict";_.d(W,{Cq:()=>rt,Ou:()=>at});var l=_(21281),u=_(83353),g=_(67376),h=_(36895),t=_(94650),x=_(3238),T=_(42654);function U(Tt,qt){if(1&Tt&&(t.O4$(),t._UZ(0,"circle",4)),2&Tt){const Vt=t.oxw(),Bt=t.MAs(1);t.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+Vt._spinnerAnimationLabel)("stroke-dashoffset",Vt._getStrokeDashOffset(),"px")("stroke-dasharray",Vt._getStrokeCircumference(),"px")("stroke-width",Vt._getCircleStrokeWidth(),"%")("transform-origin",Vt._getCircleTransformOrigin(Bt)),t.uIk("r",Vt._getCircleRadius())}}function D(Tt,qt){if(1&Tt&&(t.O4$(),t._UZ(0,"circle",4)),2&Tt){const Vt=t.oxw(),Bt=t.MAs(1);t.Udp("stroke-dashoffset",Vt._getStrokeDashOffset(),"px")("stroke-dasharray",Vt._getStrokeCircumference(),"px")("stroke-width",Vt._getCircleStrokeWidth(),"%")("transform-origin",Vt._getCircleTransformOrigin(Bt)),t.uIk("r",Vt._getCircleRadius())}}const q=(0,x.pj)(class{constructor(Tt){this._elementRef=Tt}},"primary"),Y=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function $(){return{diameter:100}}});class at extends q{constructor(qt,Vt,Bt,bt,xt,ht,ut,Mt){super(qt),this._document=Bt,this._diameter=100,this._value=0,this._resizeSubscription=T.w.EMPTY,this.mode="determinate";const It=at._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),It.has(Bt.head)||It.set(Bt.head,new Set([100])),this._noopAnimations="NoopAnimations"===bt&&!!xt&&!xt._forceAnimations,"mat-spinner"===qt.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),xt&&(xt.color&&(this.color=this.defaultColor=xt.color),xt.diameter&&(this.diameter=xt.diameter),xt.strokeWidth&&(this.strokeWidth=xt.strokeWidth)),Vt.isBrowser&&Vt.SAFARI&&ut&&ht&&Mt&&(this._resizeSubscription=ut.change(150).subscribe(()=>{"indeterminate"===this.mode&&Mt.run(()=>ht.markForCheck())}))}get diameter(){return this._diameter}set diameter(qt){this._diameter=(0,l.su)(qt),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(qt){this._strokeWidth=(0,l.su)(qt)}get value(){return"determinate"===this.mode?this._value:0}set value(qt){this._value=Math.max(0,Math.min(100,(0,l.su)(qt)))}ngOnInit(){const qt=this._elementRef.nativeElement;this._styleRoot=(0,u.kV)(qt)||this._document.head,this._attachStyleNode(),qt.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const qt=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${qt} ${qt}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(qt){const Vt=50*(qt.currentScale??1);return`${Vt}% ${Vt}%`}_attachStyleNode(){const qt=this._styleRoot,Vt=this._diameter,Bt=at._diameters;let bt=Bt.get(qt);if(!bt||!bt.has(Vt)){const xt=this._document.createElement("style");xt.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),xt.textContent=this._getAnimationText(),qt.appendChild(xt),bt||(bt=new Set,Bt.set(qt,bt)),bt.add(Vt)}}_getAnimationText(){const qt=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*qt).replace(/END_VALUE/g,""+.2*qt).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}at._diameters=new WeakMap,at.\u0275fac=function(qt){return new(qt||at)(t.Y36(t.SBq),t.Y36(u.t4),t.Y36(h.K0,8),t.Y36(t.QbO,8),t.Y36(Y),t.Y36(t.sBO),t.Y36(g.rL),t.Y36(t.R0b))},at.\u0275cmp=t.Xpm({type:at,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(qt,Vt){2&qt&&(t.uIk("aria-valuemin","determinate"===Vt.mode?0:null)("aria-valuemax","determinate"===Vt.mode?100:null)("aria-valuenow","determinate"===Vt.mode?Vt.value:null)("mode",Vt.mode),t.Udp("width",Vt.diameter,"px")("height",Vt.diameter,"px"),t.ekj("_mat-animation-noopable",Vt._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[t.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(qt,Vt){1&qt&&(t.O4$(),t.TgZ(0,"svg",0,1),t.YNc(2,U,1,11,"circle",2),t.YNc(3,D,1,9,"circle",3),t.qZA()),2&qt&&(t.Udp("width",Vt.diameter,"px")("height",Vt.diameter,"px"),t.Q6J("ngSwitch","indeterminate"===Vt.mode),t.uIk("viewBox",Vt._getViewBox()),t.xp6(2),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngSwitchCase",!1))},dependencies:[h.RF,h.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let rt=(()=>{class Tt{}return Tt.\u0275fac=function(Vt){return new(Vt||Tt)},Tt.\u0275mod=t.oAB({type:Tt}),Tt.\u0275inj=t.cJS({imports:[x.BQ,h.ez,x.BQ]}),Tt})()},71948:(K,W,_)=>{"use strict";_.d(W,{Fk:()=>Bt,U0:()=>Vt,VQ:()=>rt});var l=_(94650),u=_(3238),g=_(12687),h=_(21281),t=_(95017),x=_(24006);const T=["input"],U=function(bt){return{enterDuration:bt}},D=["*"],k=new l.OlP("mat-radio-default-options",{providedIn:"root",factory:function O(){return{color:"accent"}}});let q=0;const Y={provide:x.JU,useExisting:(0,l.Gpc)(()=>rt),multi:!0};class ${constructor(xt,ht){this.source=xt,this.value=ht}}const X=new l.OlP("MatRadioGroup");let at=(()=>{class bt{constructor(ht){this._changeDetector=ht,this._value=null,this._name="mat-radio-group-"+q++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new l.vpe}get name(){return this._name}set name(ht){this._name=ht,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(ht){this._labelPosition="before"===ht?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(ht){this._value!==ht&&(this._value=ht,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(ht){this._selected=ht,this.value=ht?ht.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(ht){this._disabled=(0,h.Ig)(ht),this._markRadiosForCheck()}get required(){return this._required}set required(ht){this._required=(0,h.Ig)(ht),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(ht=>{ht.name=this.name,ht._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(ut=>{ut.checked=this.value===ut.value,ut.checked&&(this._selected=ut)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new $(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(ht=>ht._markForCheck())}writeValue(ht){this.value=ht,this._changeDetector.markForCheck()}registerOnChange(ht){this._controlValueAccessorChangeFn=ht}registerOnTouched(ht){this.onTouched=ht}setDisabledState(ht){this.disabled=ht,this._changeDetector.markForCheck()}}return bt.\u0275fac=function(ht){return new(ht||bt)(l.Y36(l.sBO))},bt.\u0275dir=l.lG2({type:bt,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),bt})(),rt=(()=>{class bt extends at{}return bt.\u0275fac=function(){let xt;return function(ut){return(xt||(xt=l.n5z(bt)))(ut||bt)}}(),bt.\u0275dir=l.lG2({type:bt,selectors:[["mat-radio-group"]],contentQueries:function(ht,ut,Mt){if(1&ht&&l.Suo(Mt,Vt,5),2&ht){let It;l.iGM(It=l.CRH())&&(ut._radios=It)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[l._Bn([Y,{provide:X,useExisting:bt}]),l.qOj]}),bt})();class ft{constructor(xt){this._elementRef=xt}}const Tt=(0,u.Kr)((0,u.sb)(ft));let qt=(()=>{class bt extends Tt{constructor(ht,ut,Mt,It,wt,ee,Ft,_e){super(ut),this._changeDetector=Mt,this._focusMonitor=It,this._radioDispatcher=wt,this._providerOverride=Ft,this._uniqueId="mat-radio-"+ ++q,this.id=this._uniqueId,this.change=new l.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=ht,this._noopAnimations="NoopAnimations"===ee,_e&&(this.tabIndex=(0,h.su)(_e,0)),this._removeUniqueSelectionListener=wt.listen((pe,Ze)=>{pe!==this.id&&Ze===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(ht){const ut=(0,h.Ig)(ht);this._checked!==ut&&(this._checked=ut,ut&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!ut&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),ut&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(ht){this._value!==ht&&(this._value=ht,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===ht),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(ht){this._labelPosition=ht}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(ht){this._setDisabled((0,h.Ig)(ht))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(ht){this._required=(0,h.Ig)(ht)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(ht){this._color=ht}get inputId(){return`${this.id||this._uniqueId}-input`}focus(ht,ut){ut?this._focusMonitor.focusVia(this._inputElement,ut,ht):this._inputElement.nativeElement.focus(ht)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ht=>{!ht&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new $(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(ht){ht.stopPropagation()}_onInputInteraction(ht){if(ht.stopPropagation(),!this.checked&&!this.disabled){const ut=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),ut&&this.radioGroup._emitChangeEvent())}}_setDisabled(ht){this._disabled!==ht&&(this._disabled=ht,this._changeDetector.markForCheck())}_updateTabIndex(){const ht=this.radioGroup;let ut;if(ut=ht&&ht.selected&&!this.disabled?ht.selected===this?this.tabIndex:-1:this.tabIndex,ut!==this._previousTabIndex){const Mt=this._inputElement?.nativeElement;Mt&&(Mt.setAttribute("tabindex",ut+""),this._previousTabIndex=ut)}}}return bt.\u0275fac=function(ht){l.$Z()},bt.\u0275dir=l.lG2({type:bt,viewQuery:function(ht,ut){if(1&ht&&l.Gf(T,5),2&ht){let Mt;l.iGM(Mt=l.CRH())&&(ut._inputElement=Mt.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[l.qOj]}),bt})(),Vt=(()=>{class bt extends qt{constructor(ht,ut,Mt,It,wt,ee,Ft,_e){super(ht,ut,Mt,It,wt,ee,Ft,_e)}}return bt.\u0275fac=function(ht){return new(ht||bt)(l.Y36(X,8),l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(g.tE),l.Y36(t.A8),l.Y36(l.QbO,8),l.Y36(k,8),l.$8M("tabindex"))},bt.\u0275cmp=l.Xpm({type:bt,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(ht,ut){1&ht&&l.NdJ("focus",function(){return ut._inputElement.nativeElement.focus()}),2&ht&&(l.uIk("tabindex",null)("id",ut.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),l.ekj("mat-radio-checked",ut.checked)("mat-radio-disabled",ut.disabled)("_mat-animation-noopable",ut._noopAnimations)("mat-primary","primary"===ut.color)("mat-accent","accent"===ut.color)("mat-warn","warn"===ut.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[l.qOj],ngContentSelectors:D,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(ht,ut){if(1&ht&&(l.F$t(),l.TgZ(0,"label",0,1)(2,"span",2),l._UZ(3,"span",3)(4,"span",4),l.TgZ(5,"input",5,6),l.NdJ("change",function(It){return ut._onInputInteraction(It)})("click",function(It){return ut._onInputClick(It)}),l.qZA(),l.TgZ(7,"span",7),l._UZ(8,"span",8),l.qZA()(),l.TgZ(9,"span",9)(10,"span",10),l._uU(11,"\xa0"),l.qZA(),l.Hsn(12),l.qZA()()),2&ht){const Mt=l.MAs(1);l.uIk("for",ut.inputId),l.xp6(5),l.Q6J("id",ut.inputId)("checked",ut.checked)("disabled",ut.disabled)("required",ut.required),l.uIk("name",ut.name)("value",ut.value)("aria-label",ut.ariaLabel)("aria-labelledby",ut.ariaLabelledby)("aria-describedby",ut.ariaDescribedby),l.xp6(2),l.Q6J("matRippleTrigger",Mt)("matRippleDisabled",ut._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",l.VKq(17,U,ut._noopAnimations?0:150)),l.xp6(2),l.ekj("mat-radio-label-before","before"==ut.labelPosition)}},dependencies:[u.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),bt})(),Bt=(()=>{class bt{}return bt.\u0275fac=function(ht){return new(ht||bt)},bt.\u0275mod=l.oAB({type:bt}),bt.\u0275inj=l.cJS({imports:[u.si,u.BQ,u.BQ]}),bt})()},84385:(K,W,_)=>{"use strict";_.d(W,{LD:()=>Vn,gD:()=>oi});var l=_(98184),u=_(36895),g=_(94650),h=_(3238),t=_(59549),x=_(67376),T=_(12687),U=_(40445),D=_(21281),k=_(95017),O=_(29521),q=_(24006),Y=_(8929),$=_(88514),X=_(36787),at=_(1059),rt=_(87545),ft=_(72986),Tt=_(92198),qt=_(24850),Vt=_(75778),Bt=_(7625),bt=_(37340);const xt=["trigger"],ht=["panel"];function ut(ze,Wt){if(1&ze&&(g.TgZ(0,"span",8),g._uU(1),g.qZA()),2&ze){const J=g.oxw();g.xp6(1),g.Oqu(J.placeholder)}}function Mt(ze,Wt){if(1&ze&&(g.TgZ(0,"span",12),g._uU(1),g.qZA()),2&ze){const J=g.oxw(2);g.xp6(1),g.Oqu(J.triggerValue)}}function It(ze,Wt){1&ze&&g.Hsn(0,0,["*ngSwitchCase","true"])}function wt(ze,Wt){if(1&ze&&(g.TgZ(0,"span",9),g.YNc(1,Mt,2,1,"span",10),g.YNc(2,It,1,0,"ng-content",11),g.qZA()),2&ze){const J=g.oxw();g.Q6J("ngSwitch",!!J.customTrigger),g.xp6(2),g.Q6J("ngSwitchCase",!0)}}function ee(ze,Wt){if(1&ze){const J=g.EpF();g.TgZ(0,"div",13)(1,"div",14,15),g.NdJ("@transformPanel.done",function(Q){g.CHM(J);const Ct=g.oxw();return g.KtG(Ct._panelDoneAnimatingStream.next(Q.toState))})("keydown",function(Q){g.CHM(J);const Ct=g.oxw();return g.KtG(Ct._handleKeydown(Q))}),g.Hsn(3,1),g.qZA()()}if(2&ze){const J=g.oxw();g.Q6J("@transformPanelWrap",void 0),g.xp6(1),g.Gre("mat-select-panel ",J._getPanelTheme(),""),g.Udp("transform-origin",J._transformOrigin)("font-size",J._triggerFontSize,"px"),g.Q6J("ngClass",J.panelClass)("@transformPanel",J.multiple?"showing-multiple":"showing"),g.uIk("id",J.id+"-panel")("aria-multiselectable",J.multiple)("aria-label",J.ariaLabel||null)("aria-labelledby",J._getPanelAriaLabelledby())}}const Ft=[[["mat-select-trigger"]],"*"],_e=["mat-select-trigger","*"],pe={transformPanelWrap:(0,bt.X$)("transformPanelWrap",[(0,bt.eR)("* => void",(0,bt.IO)("@transformPanel",[(0,bt.pV)()],{optional:!0}))]),transformPanel:(0,bt.X$)("transformPanel",[(0,bt.SB)("void",(0,bt.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,bt.SB)("showing",(0,bt.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,bt.SB)("showing-multiple",(0,bt.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,bt.eR)("void => *",(0,bt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,bt.eR)("* => void",(0,bt.jt)("100ms 25ms linear",(0,bt.oB)({opacity:0})))])};let Rt=0;const Ye=new g.OlP("mat-select-scroll-strategy"),An=new g.OlP("MAT_SELECT_CONFIG"),xe={provide:Ye,deps:[l.aV],useFactory:function fn(ze){return()=>ze.scrollStrategies.reposition()}};class hn{constructor(Wt,J){this.source=Wt,this.value=J}}const Re=(0,h.Kr)((0,h.sb)((0,h.Id)((0,h.FD)(class{constructor(ze,Wt,J,j,Q){this._elementRef=ze,this._defaultErrorStateMatcher=Wt,this._parentForm=J,this._parentFormGroup=j,this.ngControl=Q,this.stateChanges=new Y.xQ}})))),_n=new g.OlP("MatSelectTrigger");let si=(()=>{class ze extends Re{constructor(J,j,Q,Ct,Yt,ie,re,tn,Cn,Yn,fi,Fi,Bn,Sn){super(Yt,Ct,re,tn,Yn),this._viewportRuler=J,this._changeDetectorRef=j,this._ngZone=Q,this._dir=ie,this._parentFormField=Cn,this._liveAnnouncer=Bn,this._defaultOptions=Sn,this._panelOpen=!1,this._compareWith=(On,He)=>On===He,this._uid="mat-select-"+Rt++,this._triggerAriaLabelledBy=null,this._destroy=new Y.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Rt++,this._panelDoneAnimatingStream=new Y.xQ,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,$.P)(()=>{const On=this.options;return On?On.changes.pipe((0,at.O)(On),(0,rt.w)(()=>(0,X.T)(...On.map(He=>He.onSelectionChange)))):this._ngZone.onStable.pipe((0,ft.q)(1),(0,rt.w)(()=>this.optionSelectionChanges))}),this.openedChange=new g.vpe,this._openedStream=this.openedChange.pipe((0,Tt.h)(On=>On),(0,qt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Tt.h)(On=>!On),(0,qt.U)(()=>{})),this.selectionChange=new g.vpe,this.valueChange=new g.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Sn?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Sn.typeaheadDebounceInterval),this._scrollStrategyFactory=Fi,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(fi)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(J){this._placeholder=J,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(q.kI.required)??!1}set required(J){this._required=(0,D.Ig)(J),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(J){this._multiple=(0,D.Ig)(J)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(J){this._disableOptionCentering=(0,D.Ig)(J)}get compareWith(){return this._compareWith}set compareWith(J){this._compareWith=J,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(J){this._assignValue(J)&&this._onChange(J)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(J){this._typeaheadDebounceInterval=(0,D.su)(J)}get id(){return this._id}set id(J){this._id=J||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new k.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Vt.x)(),(0,Bt.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Bt.R)(this._destroy)).subscribe(J=>{J.added.forEach(j=>j.select()),J.removed.forEach(j=>j.deselect())}),this.options.changes.pipe((0,at.O)(null),(0,Bt.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const J=this._getTriggerAriaLabelledby(),j=this.ngControl;if(J!==this._triggerAriaLabelledBy){const Q=this._elementRef.nativeElement;this._triggerAriaLabelledBy=J,J?Q.setAttribute("aria-labelledby",J):Q.removeAttribute("aria-labelledby")}j&&(this._previousControl!==j.control&&(void 0!==this._previousControl&&null!==j.disabled&&j.disabled!==this.disabled&&(this.disabled=j.disabled),this._previousControl=j.control),this.updateErrorState())}ngOnChanges(J){(J.disabled||J.userAriaDescribedBy)&&this.stateChanges.next(),J.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(J){this._assignValue(J)}registerOnChange(J){this._onChange=J}registerOnTouched(J){this._onTouched=J}setDisabledState(J){this.disabled=J,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const J=this._selectionModel.selected.map(j=>j.viewValue);return this._isRtl()&&J.reverse(),J.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(J){this.disabled||(this.panelOpen?this._handleOpenKeydown(J):this._handleClosedKeydown(J))}_handleClosedKeydown(J){const j=J.keyCode,Q=j===O.JH||j===O.LH||j===O.oh||j===O.SV,Ct=j===O.K5||j===O.L_,Yt=this._keyManager;if(!Yt.isTyping()&&Ct&&!(0,O.Vb)(J)||(this.multiple||J.altKey)&&Q)J.preventDefault(),this.open();else if(!this.multiple){const ie=this.selected;Yt.onKeydown(J);const re=this.selected;re&&ie!==re&&this._liveAnnouncer.announce(re.viewValue,1e4)}}_handleOpenKeydown(J){const j=this._keyManager,Q=J.keyCode,Ct=Q===O.JH||Q===O.LH,Yt=j.isTyping();if(Ct&&J.altKey)J.preventDefault(),this.close();else if(Yt||Q!==O.K5&&Q!==O.L_||!j.activeItem||(0,O.Vb)(J))if(!Yt&&this._multiple&&Q===O.A&&J.ctrlKey){J.preventDefault();const ie=this.options.some(re=>!re.disabled&&!re.selected);this.options.forEach(re=>{re.disabled||(ie?re.select():re.deselect())})}else{const ie=j.activeItemIndex;j.onKeydown(J),this._multiple&&Ct&&J.shiftKey&&j.activeItem&&j.activeItemIndex!==ie&&j.activeItem._selectViaInteraction()}else J.preventDefault(),j.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,ft.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(J){if(this._selectionModel.selected.forEach(j=>j.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&J)Array.isArray(J),J.forEach(j=>this._selectOptionByValue(j)),this._sortValues();else{const j=this._selectOptionByValue(J);j?this._keyManager.updateActiveItem(j):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(J){const j=this.options.find(Q=>{if(this._selectionModel.isSelected(Q))return!1;try{return null!=Q.value&&this._compareWith(Q.value,J)}catch{return!1}});return j&&this._selectionModel.select(j),j}_assignValue(J){return!!(J!==this._value||this._multiple&&Array.isArray(J))&&(this.options&&this._setSelectionByValue(J),this._value=J,!0)}_initKeyManager(){this._keyManager=new T.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,Bt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,Bt.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const J=(0,X.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Bt.R)(J)).subscribe(j=>{this._onSelect(j.source,j.isUserInput),j.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,X.T)(...this.options.map(j=>j._stateChanges)).pipe((0,Bt.R)(J)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(J,j){const Q=this._selectionModel.isSelected(J);null!=J.value||this._multiple?(Q!==J.selected&&(J.selected?this._selectionModel.select(J):this._selectionModel.deselect(J)),j&&this._keyManager.setActiveItem(J),this.multiple&&(this._sortValues(),j&&this.focus())):(J.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(J.value)),Q!==this._selectionModel.isSelected(J)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const J=this.options.toArray();this._selectionModel.sort((j,Q)=>this.sortComparator?this.sortComparator(j,Q,J):J.indexOf(j)-J.indexOf(Q)),this.stateChanges.next()}}_propagateChanges(J){let j=null;j=this.multiple?this.selected.map(Q=>Q.value):this.selected?this.selected.value:J,this._value=j,this.valueChange.emit(j),this._onChange(j),this.selectionChange.emit(this._getChangeEvent(j)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(J){this._elementRef.nativeElement.focus(J)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const J=this._parentFormField?.getLabelId();return this.ariaLabelledby?(J?J+" ":"")+this.ariaLabelledby:J}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const J=this._parentFormField?.getLabelId();let j=(J?J+" ":"")+this._valueId;return this.ariaLabelledby&&(j+=" "+this.ariaLabelledby),j}_panelDoneAnimating(J){this.openedChange.emit(J)}setDescribedByIds(J){J.length?this._elementRef.nativeElement.setAttribute("aria-describedby",J.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return ze.\u0275fac=function(J){return new(J||ze)(g.Y36(x.rL),g.Y36(g.sBO),g.Y36(g.R0b),g.Y36(h.rD),g.Y36(g.SBq),g.Y36(U.Is,8),g.Y36(q.F,8),g.Y36(q.sg,8),g.Y36(t.G_,8),g.Y36(q.a5,10),g.$8M("tabindex"),g.Y36(Ye),g.Y36(T.Kd),g.Y36(An,8))},ze.\u0275dir=g.lG2({type:ze,viewQuery:function(J,j){if(1&J&&(g.Gf(xt,5),g.Gf(ht,5),g.Gf(l.pI,5)),2&J){let Q;g.iGM(Q=g.CRH())&&(j.trigger=Q.first),g.iGM(Q=g.CRH())&&(j.panel=Q.first),g.iGM(Q=g.CRH())&&(j._overlayDir=Q.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[g.qOj,g.TTD]}),ze})(),oi=(()=>{class ze extends si{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(J,j,Q){const Ct=this._getItemHeight();return Math.min(Math.max(0,Ct*J-j+Ct/2),Q)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Bt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,ft.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(J){const j=(0,h.CB)(J,this.options,this.optionGroups),Q=this._getItemHeight();this.panel.nativeElement.scrollTop=0===J&&1===j?0:(0,h.jH)((J+j)*Q,Q,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(J){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(J)}_getChangeEvent(J){return new hn(this,J)}_calculateOverlayOffsetX(){const J=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),j=this._viewportRuler.getViewportSize(),Q=this._isRtl(),Ct=this.multiple?56:32;let Yt;if(this.multiple)Yt=40;else if(this.disableOptionCentering)Yt=16;else{let tn=this._selectionModel.selected[0]||this.options.first;Yt=tn&&tn.group?32:16}Q||(Yt*=-1);const ie=0-(J.left+Yt-(Q?Ct:0)),re=J.right+Yt-j.width+(Q?0:Ct);ie>0?Yt+=ie+8:re>0&&(Yt-=re+8),this._overlayDir.offsetX=Math.round(Yt),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(J,j,Q){const Ct=this._getItemHeight(),Yt=(Ct-this._triggerRect.height)/2,ie=Math.floor(256/Ct);let re;return this.disableOptionCentering?0:(re=0===this._scrollTop?J*Ct:this._scrollTop===Q?(J-(this._getItemCount()-ie))*Ct+(Ct-(this._getItemCount()*Ct-256)%Ct):j-Ct/2,Math.round(-1*re-Yt))}_checkOverlayWithinViewport(J){const j=this._getItemHeight(),Q=this._viewportRuler.getViewportSize(),Ct=this._triggerRect.top-8,Yt=Q.height-this._triggerRect.bottom-8,ie=Math.abs(this._offsetY),tn=Math.min(this._getItemCount()*j,256)-ie-this._triggerRect.height;tn>Yt?this._adjustPanelUp(tn,Yt):ie>Ct?this._adjustPanelDown(ie,Ct,J):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(J,j){const Q=Math.round(J-j);this._scrollTop-=Q,this._offsetY-=Q,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(J,j,Q){const Ct=Math.round(J-j);if(this._scrollTop+=Ct,this._offsetY+=Ct,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Q)return this._scrollTop=Q,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const J=this._getItemHeight(),j=this._getItemCount(),Q=Math.min(j*J,256),Yt=j*J-Q;let ie;ie=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),ie+=(0,h.CB)(ie,this.options,this.optionGroups);const re=Q/2;this._scrollTop=this._calculateOverlayScroll(ie,re,Yt),this._offsetY=this._calculateOverlayOffsetY(ie,re,Yt),this._checkOverlayWithinViewport(Yt)}_getOriginBasedOnOption(){const J=this._getItemHeight(),j=(J-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-j+J/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return ze.\u0275fac=function(){let Wt;return function(j){return(Wt||(Wt=g.n5z(ze)))(j||ze)}}(),ze.\u0275cmp=g.Xpm({type:ze,selectors:[["mat-select"]],contentQueries:function(J,j,Q){if(1&J&&(g.Suo(Q,_n,5),g.Suo(Q,h.ey,5),g.Suo(Q,h.K7,5)),2&J){let Ct;g.iGM(Ct=g.CRH())&&(j.customTrigger=Ct.first),g.iGM(Ct=g.CRH())&&(j.options=Ct),g.iGM(Ct=g.CRH())&&(j.optionGroups=Ct)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(J,j){1&J&&g.NdJ("keydown",function(Ct){return j._handleKeydown(Ct)})("focus",function(){return j._onFocus()})("blur",function(){return j._onBlur()}),2&J&&(g.uIk("id",j.id)("tabindex",j.tabIndex)("aria-controls",j.panelOpen?j.id+"-panel":null)("aria-expanded",j.panelOpen)("aria-label",j.ariaLabel||null)("aria-required",j.required.toString())("aria-disabled",j.disabled.toString())("aria-invalid",j.errorState)("aria-activedescendant",j._getAriaActiveDescendant()),g.ekj("mat-select-disabled",j.disabled)("mat-select-invalid",j.errorState)("mat-select-required",j.required)("mat-select-empty",j.empty)("mat-select-multiple",j.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[g._Bn([{provide:t.Eo,useExisting:ze},{provide:h.HF,useExisting:ze}]),g.qOj],ngContentSelectors:_e,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(J,j){if(1&J&&(g.F$t(Ft),g.TgZ(0,"div",0,1),g.NdJ("click",function(){return j.toggle()}),g.TgZ(3,"div",2),g.YNc(4,ut,2,1,"span",3),g.YNc(5,wt,3,2,"span",4),g.qZA(),g.TgZ(6,"div",5),g._UZ(7,"div",6),g.qZA()(),g.YNc(8,ee,4,14,"ng-template",7),g.NdJ("backdropClick",function(){return j.close()})("attach",function(){return j._onAttached()})("detach",function(){return j.close()})),2&J){const Q=g.MAs(1);g.uIk("aria-owns",j.panelOpen?j.id+"-panel":null),g.xp6(3),g.Q6J("ngSwitch",j.empty),g.uIk("id",j._valueId),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1),g.xp6(3),g.Q6J("cdkConnectedOverlayPanelClass",j._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",j._scrollStrategy)("cdkConnectedOverlayOrigin",Q)("cdkConnectedOverlayOpen",j.panelOpen)("cdkConnectedOverlayPositions",j._positions)("cdkConnectedOverlayMinWidth",null==j._triggerRect?null:j._triggerRect.width)("cdkConnectedOverlayOffsetY",j._offsetY)}},dependencies:[u.mk,u.RF,u.n9,u.ED,l.pI,l.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[pe.transformPanelWrap,pe.transformPanel]},changeDetection:0}),ze})(),Vn=(()=>{class ze{}return ze.\u0275fac=function(J){return new(J||ze)},ze.\u0275mod=g.oAB({type:ze}),ze.\u0275inj=g.cJS({providers:[xe],imports:[u.ez,l.U8,h.Ng,h.BQ,x.ZD,t.lN,h.Ng,h.BQ]}),ze})()},23267:(K,W,_)=>{"use strict";_.d(W,{JX:()=>je,Rh:()=>ce,SJ:()=>Ye,TM:()=>Te});var l=_(67376),u=_(36895),g=_(94650),h=_(3238),t=_(12687),x=_(40445),T=_(21281),U=_(29521),D=_(83353),k=_(8929),O=_(23753),q=_(36787),Y=_(92198),$=_(24850),X=_(77604),at=_(7625),rt=_(75778),ft=_(72986),Tt=_(1059),qt=_(80013),Vt=_(37340);const Bt=["*"],bt=["content"];function xt(fn,An){if(1&fn){const xe=g.EpF();g.TgZ(0,"div",2),g.NdJ("click",function(){g.CHM(xe);const Re=g.oxw();return g.KtG(Re._onBackdropClicked())}),g.qZA()}if(2&fn){const xe=g.oxw();g.ekj("mat-drawer-shown",xe._isShowingBackdrop())}}function ht(fn,An){1&fn&&(g.TgZ(0,"mat-drawer-content"),g.Hsn(1,2),g.qZA())}const ut=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Mt=["mat-drawer","mat-drawer-content","*"];function It(fn,An){if(1&fn){const xe=g.EpF();g.TgZ(0,"div",2),g.NdJ("click",function(){g.CHM(xe);const Re=g.oxw();return g.KtG(Re._onBackdropClicked())}),g.qZA()}if(2&fn){const xe=g.oxw();g.ekj("mat-drawer-shown",xe._isShowingBackdrop())}}function wt(fn,An){1&fn&&(g.TgZ(0,"mat-sidenav-content"),g.Hsn(1,2),g.qZA())}const ee=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Ft=["mat-sidenav","mat-sidenav-content","*"],pe={transformDrawer:(0,Vt.X$)("transform",[(0,Vt.SB)("open, open-instant",(0,Vt.oB)({transform:"none",visibility:"visible"})),(0,Vt.SB)("void",(0,Vt.oB)({"box-shadow":"none",visibility:"hidden"})),(0,Vt.eR)("void => open-instant",(0,Vt.jt)("0ms")),(0,Vt.eR)("void <=> open, open-instant => void",(0,Vt.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Oe=new g.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Rt(){return!1}}),Ie=new g.OlP("MAT_DRAWER_CONTAINER");let fe=(()=>{class fn extends l.PQ{constructor(xe,hn,Re,_n,Kn){super(Re,_n,Kn),this._changeDetectorRef=xe,this._container=hn}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return fn.\u0275fac=function(xe){return new(xe||fn)(g.Y36(g.sBO),g.Y36((0,g.Gpc)(()=>ue)),g.Y36(g.SBq),g.Y36(l.mF),g.Y36(g.R0b))},fn.\u0275cmp=g.Xpm({type:fn,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(xe,hn){2&xe&&g.Udp("margin-left",hn._container._contentMargins.left,"px")("margin-right",hn._container._contentMargins.right,"px")},features:[g._Bn([{provide:l.PQ,useExisting:fn}]),g.qOj],ngContentSelectors:Bt,decls:1,vars:0,template:function(xe,hn){1&xe&&(g.F$t(),g.Hsn(0))},encapsulation:2,changeDetection:0}),fn})(),Kt=(()=>{class fn{constructor(xe,hn,Re,_n,Kn,si,oi,Vn){this._elementRef=xe,this._focusTrapFactory=hn,this._focusMonitor=Re,this._platform=_n,this._ngZone=Kn,this._interactivityChecker=si,this._doc=oi,this._container=Vn,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new k.xQ,this._animationEnd=new k.xQ,this._animationState="void",this.openedChange=new g.vpe(!0),this._openedStream=this.openedChange.pipe((0,Y.h)(ze=>ze),(0,$.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,Y.h)(ze=>ze.fromState!==ze.toState&&0===ze.toState.indexOf("open")),(0,X.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Y.h)(ze=>!ze),(0,$.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,Y.h)(ze=>ze.fromState!==ze.toState&&"void"===ze.toState),(0,X.h)(void 0)),this._destroyed=new k.xQ,this.onPositionChanged=new g.vpe,this._modeChanged=new k.xQ,this.openedChange.subscribe(ze=>{ze?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,O.R)(this._elementRef.nativeElement,"keydown").pipe((0,Y.h)(ze=>ze.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(ze)),(0,at.R)(this._destroyed)).subscribe(ze=>this._ngZone.run(()=>{this.close(),ze.stopPropagation(),ze.preventDefault()}))}),this._animationEnd.pipe((0,rt.x)((ze,Wt)=>ze.fromState===Wt.fromState&&ze.toState===Wt.toState)).subscribe(ze=>{const{fromState:Wt,toState:J}=ze;(0===J.indexOf("open")&&"void"===Wt||"void"===J&&0===Wt.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(xe){(xe="end"===xe?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(xe),this._position=xe,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(xe){this._mode=xe,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(xe){this._disableClose=(0,T.Ig)(xe)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(xe){("true"===xe||"false"===xe||null==xe)&&(xe=(0,T.Ig)(xe)),this._autoFocus=xe}get opened(){return this._opened}set opened(xe){this.toggle((0,T.Ig)(xe))}_forceFocus(xe,hn){this._interactivityChecker.isFocusable(xe)||(xe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Re=()=>{xe.removeEventListener("blur",Re),xe.removeEventListener("mousedown",Re),xe.removeAttribute("tabindex")};xe.addEventListener("blur",Re),xe.addEventListener("mousedown",Re)})),xe.focus(hn)}_focusByCssSelector(xe,hn){let Re=this._elementRef.nativeElement.querySelector(xe);Re&&this._forceFocus(Re,hn)}_takeFocus(){if(!this._focusTrap)return;const xe=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(hn=>{!hn&&"function"==typeof this._elementRef.nativeElement.focus&&xe.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(xe){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,xe):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const xe=this._doc.activeElement;return!!xe&&this._elementRef.nativeElement.contains(xe)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(xe){return this.toggle(!0,xe)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(xe=!this.opened,hn){xe&&hn&&(this._openedVia=hn);const Re=this._setOpen(xe,!xe&&this._isFocusWithinDrawer(),this._openedVia||"program");return xe||(this._openedVia=null),Re}_setOpen(xe,hn,Re){return this._opened=xe,xe?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",hn&&this._restoreFocus(Re)),this._updateFocusTrapState(),new Promise(_n=>{this.openedChange.pipe((0,ft.q)(1)).subscribe(Kn=>_n(Kn?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(xe){const hn=this._elementRef.nativeElement,Re=hn.parentNode;"end"===xe?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Re.insertBefore(this._anchor,hn)),Re.appendChild(hn)):this._anchor&&this._anchor.parentNode.insertBefore(hn,this._anchor)}}return fn.\u0275fac=function(xe){return new(xe||fn)(g.Y36(g.SBq),g.Y36(t.qV),g.Y36(t.tE),g.Y36(D.t4),g.Y36(g.R0b),g.Y36(t.ic),g.Y36(u.K0,8),g.Y36(Ie,8))},fn.\u0275cmp=g.Xpm({type:fn,selectors:[["mat-drawer"]],viewQuery:function(xe,hn){if(1&xe&&g.Gf(bt,5),2&xe){let Re;g.iGM(Re=g.CRH())&&(hn._content=Re.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(xe,hn){1&xe&&g.WFA("@transform.start",function(_n){return hn._animationStarted.next(_n)})("@transform.done",function(_n){return hn._animationEnd.next(_n)}),2&xe&&(g.uIk("align",null),g.d8E("@transform",hn._animationState),g.ekj("mat-drawer-end","end"===hn.position)("mat-drawer-over","over"===hn.mode)("mat-drawer-push","push"===hn.mode)("mat-drawer-side","side"===hn.mode)("mat-drawer-opened",hn.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Bt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(xe,hn){1&xe&&(g.F$t(),g.TgZ(0,"div",0,1),g.Hsn(2),g.qZA())},dependencies:[l.PQ],encapsulation:2,data:{animation:[pe.transformDrawer]},changeDetection:0}),fn})(),ue=(()=>{class fn{constructor(xe,hn,Re,_n,Kn,si=!1,oi){this._dir=xe,this._element=hn,this._ngZone=Re,this._changeDetectorRef=_n,this._animationMode=oi,this._drawers=new g.n_E,this.backdropClick=new g.vpe,this._destroyed=new k.xQ,this._doCheckSubject=new k.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new k.xQ,xe&&xe.change.pipe((0,at.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Kn.change().pipe((0,at.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=si}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(xe){this._autosize=(0,T.Ig)(xe)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(xe){this._backdropOverride=null==xe?null:(0,T.Ig)(xe)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Tt.O)(this._allDrawers),(0,at.R)(this._destroyed)).subscribe(xe=>{this._drawers.reset(xe.filter(hn=>!hn._container||hn._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Tt.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(xe=>{this._watchDrawerToggle(xe),this._watchDrawerPosition(xe),this._watchDrawerMode(xe)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,qt.b)(10),(0,at.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(xe=>xe.open())}close(){this._drawers.forEach(xe=>xe.close())}updateContentMargins(){let xe=0,hn=0;if(this._left&&this._left.opened)if("side"==this._left.mode)xe+=this._left._getWidth();else if("push"==this._left.mode){const Re=this._left._getWidth();xe+=Re,hn-=Re}if(this._right&&this._right.opened)if("side"==this._right.mode)hn+=this._right._getWidth();else if("push"==this._right.mode){const Re=this._right._getWidth();hn+=Re,xe-=Re}xe=xe||null,hn=hn||null,(xe!==this._contentMargins.left||hn!==this._contentMargins.right)&&(this._contentMargins={left:xe,right:hn},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(xe){xe._animationStarted.pipe((0,Y.h)(hn=>hn.fromState!==hn.toState),(0,at.R)(this._drawers.changes)).subscribe(hn=>{"open-instant"!==hn.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==xe.mode&&xe.openedChange.pipe((0,at.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(xe.opened))}_watchDrawerPosition(xe){!xe||xe.onPositionChanged.pipe((0,at.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,ft.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(xe){xe&&xe._modeChanged.pipe((0,at.R)((0,q.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(xe){const hn=this._element.nativeElement.classList,Re="mat-drawer-container-has-open";xe?hn.add(Re):hn.remove(Re)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(xe=>{"end"==xe.position?this._end=xe:this._start=xe}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(xe=>xe&&!xe.disableClose&&this._canHaveBackdrop(xe)).forEach(xe=>xe._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(xe){return"side"!==xe.mode||!!this._backdropOverride}_isDrawerOpen(xe){return null!=xe&&xe.opened}}return fn.\u0275fac=function(xe){return new(xe||fn)(g.Y36(x.Is,8),g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(g.sBO),g.Y36(l.rL),g.Y36(Oe),g.Y36(g.QbO,8))},fn.\u0275cmp=g.Xpm({type:fn,selectors:[["mat-drawer-container"]],contentQueries:function(xe,hn,Re){if(1&xe&&(g.Suo(Re,fe,5),g.Suo(Re,Kt,5)),2&xe){let _n;g.iGM(_n=g.CRH())&&(hn._content=_n.first),g.iGM(_n=g.CRH())&&(hn._allDrawers=_n)}},viewQuery:function(xe,hn){if(1&xe&&g.Gf(fe,5),2&xe){let Re;g.iGM(Re=g.CRH())&&(hn._userContent=Re.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(xe,hn){2&xe&&g.ekj("mat-drawer-container-explicit-backdrop",hn._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[g._Bn([{provide:Ie,useExisting:fn}])],ngContentSelectors:Mt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(xe,hn){1&xe&&(g.F$t(ut),g.YNc(0,xt,1,2,"div",0),g.Hsn(1),g.Hsn(2,1),g.YNc(3,ht,2,0,"mat-drawer-content",1)),2&xe&&(g.Q6J("ngIf",hn.hasBackdrop),g.xp6(3),g.Q6J("ngIf",!hn._content))},dependencies:[u.O5,fe],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),fn})(),ce=(()=>{class fn extends fe{constructor(xe,hn,Re,_n,Kn){super(xe,hn,Re,_n,Kn)}}return fn.\u0275fac=function(xe){return new(xe||fn)(g.Y36(g.sBO),g.Y36((0,g.Gpc)(()=>Te)),g.Y36(g.SBq),g.Y36(l.mF),g.Y36(g.R0b))},fn.\u0275cmp=g.Xpm({type:fn,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(xe,hn){2&xe&&g.Udp("margin-left",hn._container._contentMargins.left,"px")("margin-right",hn._container._contentMargins.right,"px")},features:[g._Bn([{provide:l.PQ,useExisting:fn}]),g.qOj],ngContentSelectors:Bt,decls:1,vars:0,template:function(xe,hn){1&xe&&(g.F$t(),g.Hsn(0))},encapsulation:2,changeDetection:0}),fn})(),je=(()=>{class fn extends Kt{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(xe){this._fixedInViewport=(0,T.Ig)(xe)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(xe){this._fixedTopGap=(0,T.su)(xe)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(xe){this._fixedBottomGap=(0,T.su)(xe)}}return fn.\u0275fac=function(){let An;return function(hn){return(An||(An=g.n5z(fn)))(hn||fn)}}(),fn.\u0275cmp=g.Xpm({type:fn,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(xe,hn){2&xe&&(g.uIk("align",null),g.Udp("top",hn.fixedInViewport?hn.fixedTopGap:null,"px")("bottom",hn.fixedInViewport?hn.fixedBottomGap:null,"px"),g.ekj("mat-drawer-end","end"===hn.position)("mat-drawer-over","over"===hn.mode)("mat-drawer-push","push"===hn.mode)("mat-drawer-side","side"===hn.mode)("mat-drawer-opened",hn.opened)("mat-sidenav-fixed",hn.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[g.qOj],ngContentSelectors:Bt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(xe,hn){1&xe&&(g.F$t(),g.TgZ(0,"div",0,1),g.Hsn(2),g.qZA())},dependencies:[l.PQ],encapsulation:2,data:{animation:[pe.transformDrawer]},changeDetection:0}),fn})(),Te=(()=>{class fn extends ue{}return fn.\u0275fac=function(){let An;return function(hn){return(An||(An=g.n5z(fn)))(hn||fn)}}(),fn.\u0275cmp=g.Xpm({type:fn,selectors:[["mat-sidenav-container"]],contentQueries:function(xe,hn,Re){if(1&xe&&(g.Suo(Re,ce,5),g.Suo(Re,je,5)),2&xe){let _n;g.iGM(_n=g.CRH())&&(hn._content=_n.first),g.iGM(_n=g.CRH())&&(hn._allDrawers=_n)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(xe,hn){2&xe&&g.ekj("mat-drawer-container-explicit-backdrop",hn._backdropOverride)},exportAs:["matSidenavContainer"],features:[g._Bn([{provide:Ie,useExisting:fn}]),g.qOj],ngContentSelectors:Ft,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(xe,hn){1&xe&&(g.F$t(ee),g.YNc(0,It,1,2,"div",0),g.Hsn(1),g.Hsn(2,1),g.YNc(3,wt,2,0,"mat-sidenav-content",1)),2&xe&&(g.Q6J("ngIf",hn.hasBackdrop),g.xp6(3),g.Q6J("ngIf",!hn._content))},dependencies:[u.O5,ce],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),fn})(),Ye=(()=>{class fn{}return fn.\u0275fac=function(xe){return new(xe||fn)},fn.\u0275mod=g.oAB({type:fn}),fn.\u0275inj=g.cJS({imports:[u.ez,h.BQ,l.ZD,l.ZD,h.BQ]}),fn})()},90455:(K,W,_)=>{"use strict";_.d(W,{Rr:()=>at,rP:()=>qt});var l=_(49643),u=_(94650),g=_(3238),h=_(12687),t=_(21281),x=_(24006);const T=["input"],U=function(Vt){return{enterDuration:Vt}},D=["*"],k=new u.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let O=0;const q={provide:x.JU,useExisting:(0,u.Gpc)(()=>at),multi:!0};class Y{constructor(Bt,bt){this.source=Bt,this.checked=bt}}const $=(0,g.sb)((0,g.pj)((0,g.Kr)((0,g.Id)(class{constructor(Vt){this._elementRef=Vt}}))));let X=(()=>{class Vt extends ${constructor(bt,xt,ht,ut,Mt,It,wt){super(bt),this._focusMonitor=xt,this._changeDetectorRef=ht,this.defaults=Mt,this._onChange=ee=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new u.vpe,this.toggleChange=new u.vpe,this.tabIndex=parseInt(ut)||0,this.color=this.defaultColor=Mt.color||"accent",this._noopAnimations="NoopAnimations"===It,this.id=this._uniqueId=`${wt}${++O}`}get required(){return this._required}set required(bt){this._required=(0,t.Ig)(bt)}get checked(){return this._checked}set checked(bt){this._checked=(0,t.Ig)(bt),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(bt=>{"keyboard"===bt||"program"===bt?this._focused=!0:bt||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(bt){this.checked=!!bt}registerOnChange(bt){this._onChange=bt}registerOnTouched(bt){this._onTouched=bt}setDisabledState(bt){this.disabled=bt,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return Vt.\u0275fac=function(bt){u.$Z()},Vt.\u0275dir=u.lG2({type:Vt,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[u.qOj]}),Vt})(),at=(()=>{class Vt extends X{constructor(bt,xt,ht,ut,Mt,It){super(bt,xt,ht,ut,Mt,It,"mat-slide-toggle-")}_createChangeEvent(bt){return new Y(this,bt)}_onChangeEvent(bt){bt.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(bt){bt.stopPropagation()}focus(bt,xt){xt?this._focusMonitor.focusVia(this._inputElement,xt,bt):this._inputElement.nativeElement.focus(bt)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return Vt.\u0275fac=function(bt){return new(bt||Vt)(u.Y36(u.SBq),u.Y36(h.tE),u.Y36(u.sBO),u.$8M("tabindex"),u.Y36(k),u.Y36(u.QbO,8))},Vt.\u0275cmp=u.Xpm({type:Vt,selectors:[["mat-slide-toggle"]],viewQuery:function(bt,xt){if(1&bt&&u.Gf(T,5),2&bt){let ht;u.iGM(ht=u.CRH())&&(xt._inputElement=ht.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(bt,xt){2&bt&&(u.Ikx("id",xt.id),u.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),u.ekj("mat-checked",xt.checked)("mat-disabled",xt.disabled)("mat-slide-toggle-label-before","before"==xt.labelPosition)("_mat-animation-noopable",xt._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[u._Bn([q]),u.qOj],ngContentSelectors:D,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(bt,xt){if(1&bt&&(u.F$t(),u.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),u.NdJ("change",function(ut){return xt._onChangeEvent(ut)})("click",function(ut){return xt._onInputClick(ut)}),u.qZA(),u.TgZ(5,"span",5),u._UZ(6,"span",6),u.TgZ(7,"span",7),u._UZ(8,"span",8),u.qZA()()(),u.TgZ(9,"span",9,10),u.NdJ("cdkObserveContent",function(){return xt._onLabelTextChange()}),u.TgZ(11,"span",11),u._uU(12,"\xa0"),u.qZA(),u.Hsn(13),u.qZA()()),2&bt){const ht=u.MAs(1),ut=u.MAs(10);u.uIk("for",xt.inputId),u.xp6(2),u.ekj("mat-slide-toggle-bar-no-side-margin",!ut.textContent||!ut.textContent.trim()),u.xp6(1),u.Q6J("id",xt.inputId)("required",xt.required)("tabIndex",xt.tabIndex)("checked",xt.checked)("disabled",xt.disabled),u.uIk("name",xt.name)("aria-checked",xt.checked)("aria-label",xt.ariaLabel)("aria-labelledby",xt.ariaLabelledby)("aria-describedby",xt.ariaDescribedby),u.xp6(4),u.Q6J("matRippleTrigger",ht)("matRippleDisabled",xt.disableRipple||xt.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",u.VKq(18,U,xt._noopAnimations?0:150))}},dependencies:[g.wG,l.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),Vt})(),Tt=(()=>{class Vt{}return Vt.\u0275fac=function(bt){return new(bt||Vt)},Vt.\u0275mod=u.oAB({type:Vt}),Vt.\u0275inj=u.cJS({}),Vt})(),qt=(()=>{class Vt{}return Vt.\u0275fac=function(bt){return new(bt||Vt)},Vt.\u0275mod=u.oAB({type:Vt}),Vt.\u0275inj=u.cJS({imports:[Tt,g.si,g.BQ,l.Q8,Tt,g.BQ]}),Vt})()},17009:(K,W,_)=>{"use strict";_.d(W,{ZX:()=>xt,ux:()=>It});var l=_(98184),u=_(84080),g=_(36895),h=_(94650),t=_(3238),x=_(4859),T=_(8929),U=_(83353),D=_(72986),k=_(7625),O=_(37340),q=_(12687),Y=_(62289);function $(wt,ee){if(1&wt){const Ft=h.EpF();h.TgZ(0,"div",2)(1,"button",3),h.NdJ("click",function(){h.CHM(Ft);const pe=h.oxw();return h.KtG(pe.action())}),h._uU(2),h.qZA()()}if(2&wt){const Ft=h.oxw();h.xp6(2),h.Oqu(Ft.data.action)}}function X(wt,ee){}const at=new h.OlP("MatSnackBarData");class rt{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const ft=Math.pow(2,31)-1;class Tt{constructor(ee,Ft){this._overlayRef=Ft,this._afterDismissed=new T.xQ,this._afterOpened=new T.xQ,this._onAction=new T.xQ,this._dismissedByAction=!1,this.containerInstance=ee,ee._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(ee){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(ee,ft))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let qt=(()=>{class wt{constructor(Ft,_e){this.snackBarRef=Ft,this.data=_e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return wt.\u0275fac=function(Ft){return new(Ft||wt)(h.Y36(Tt),h.Y36(at))},wt.\u0275cmp=h.Xpm({type:wt,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(Ft,_e){1&Ft&&(h.TgZ(0,"span",0),h._uU(1),h.qZA(),h.YNc(2,$,3,1,"div",1)),2&Ft&&(h.xp6(1),h.Oqu(_e.data.message),h.xp6(1),h.Q6J("ngIf",_e.hasAction))},dependencies:[g.O5,x.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),wt})();const Vt={snackBarState:(0,O.X$)("state",[(0,O.SB)("void, hidden",(0,O.oB)({transform:"scale(0.8)",opacity:0})),(0,O.SB)("visible",(0,O.oB)({transform:"scale(1)",opacity:1})),(0,O.eR)("* => visible",(0,O.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,O.eR)("* => void, * => hidden",(0,O.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,O.oB)({opacity:0})))])};let Bt=(()=>{class wt extends u.en{constructor(Ft,_e,pe,Ze,Oe){super(),this._ngZone=Ft,this._elementRef=_e,this._changeDetectorRef=pe,this._platform=Ze,this.snackBarConfig=Oe,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new T.xQ,this._onExit=new T.xQ,this._onEnter=new T.xQ,this._animationState="void",this.attachDomPortal=Ie=>{this._assertNotAttached();const Rt=this._portalOutlet.attachDomPortal(Ie);return this._afterPortalAttached(),Rt},this._live="assertive"!==Oe.politeness||Oe.announcementMessage?"off"===Oe.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(Ft){this._assertNotAttached();const _e=this._portalOutlet.attachComponentPortal(Ft);return this._afterPortalAttached(),_e}attachTemplatePortal(Ft){this._assertNotAttached();const _e=this._portalOutlet.attachTemplatePortal(Ft);return this._afterPortalAttached(),_e}onAnimationEnd(Ft){const{fromState:_e,toState:pe}=Ft;if(("void"===pe&&"void"!==_e||"hidden"===pe)&&this._completeExit(),"visible"===pe){const Ze=this._onEnter;this._ngZone.run(()=>{Ze.next(),Ze.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,D.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const Ft=this._elementRef.nativeElement,_e=this.snackBarConfig.panelClass;_e&&(Array.isArray(_e)?_e.forEach(pe=>Ft.classList.add(pe)):Ft.classList.add(_e))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const Ft=this._elementRef.nativeElement.querySelector("[aria-hidden]"),_e=this._elementRef.nativeElement.querySelector("[aria-live]");if(Ft&&_e){let pe=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&Ft.contains(document.activeElement)&&(pe=document.activeElement),Ft.removeAttribute("aria-hidden"),_e.appendChild(Ft),pe?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return wt.\u0275fac=function(Ft){return new(Ft||wt)(h.Y36(h.R0b),h.Y36(h.SBq),h.Y36(h.sBO),h.Y36(U.t4),h.Y36(rt))},wt.\u0275dir=h.lG2({type:wt,viewQuery:function(Ft,_e){if(1&Ft&&h.Gf(u.Pl,7),2&Ft){let pe;h.iGM(pe=h.CRH())&&(_e._portalOutlet=pe.first)}},features:[h.qOj]}),wt})(),bt=(()=>{class wt extends Bt{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return wt.\u0275fac=function(){let ee;return function(_e){return(ee||(ee=h.n5z(wt)))(_e||wt)}}(),wt.\u0275cmp=h.Xpm({type:wt,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(Ft,_e){1&Ft&&h.WFA("@state.done",function(Ze){return _e.onAnimationEnd(Ze)}),2&Ft&&h.d8E("@state",_e._animationState)},features:[h.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(Ft,_e){1&Ft&&(h.TgZ(0,"div",0),h.YNc(1,X,0,0,"ng-template",1),h.qZA(),h._UZ(2,"div")),2&Ft&&(h.xp6(2),h.uIk("aria-live",_e._live)("role",_e._role))},dependencies:[u.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[Vt.snackBarState]}}),wt})(),xt=(()=>{class wt{}return wt.\u0275fac=function(Ft){return new(Ft||wt)},wt.\u0275mod=h.oAB({type:wt}),wt.\u0275inj=h.cJS({imports:[l.U8,u.eL,g.ez,x.ot,t.BQ,t.BQ]}),wt})();const ht=new h.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function ut(){return new rt}});let Mt=(()=>{class wt{constructor(Ft,_e,pe,Ze,Oe,Ie){this._overlay=Ft,this._live=_e,this._injector=pe,this._breakpointObserver=Ze,this._parentSnackBar=Oe,this._defaultConfig=Ie,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const Ft=this._parentSnackBar;return Ft?Ft._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(Ft){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=Ft:this._snackBarRefAtThisLevel=Ft}openFromComponent(Ft,_e){return this._attach(Ft,_e)}openFromTemplate(Ft,_e){return this._attach(Ft,_e)}open(Ft,_e="",pe){const Ze={...this._defaultConfig,...pe};return Ze.data={message:Ft,action:_e},Ze.announcementMessage===Ft&&(Ze.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Ze)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(Ft,_e){const Ze=h.zs3.create({parent:_e&&_e.viewContainerRef&&_e.viewContainerRef.injector||this._injector,providers:[{provide:rt,useValue:_e}]}),Oe=new u.C5(this.snackBarContainerComponent,_e.viewContainerRef,Ze),Ie=Ft.attach(Oe);return Ie.instance.snackBarConfig=_e,Ie.instance}_attach(Ft,_e){const pe={...new rt,...this._defaultConfig,..._e},Ze=this._createOverlay(pe),Oe=this._attachSnackBarContainer(Ze,pe),Ie=new Tt(Oe,Ze);if(Ft instanceof h.Rgc){const Rt=new u.UE(Ft,null,{$implicit:pe.data,snackBarRef:Ie});Ie.instance=Oe.attachTemplatePortal(Rt)}else{const Rt=this._createInjector(pe,Ie),fe=new u.C5(Ft,void 0,Rt),Kt=Oe.attachComponentPortal(fe);Ie.instance=Kt.instance}return this._breakpointObserver.observe(Y.u3.HandsetPortrait).pipe((0,k.R)(Ze.detachments())).subscribe(Rt=>{Ze.overlayElement.classList.toggle(this.handsetCssClass,Rt.matches)}),pe.announcementMessage&&Oe._onAnnounce.subscribe(()=>{this._live.announce(pe.announcementMessage,pe.politeness)}),this._animateSnackBar(Ie,pe),this._openedSnackBarRef=Ie,this._openedSnackBarRef}_animateSnackBar(Ft,_e){Ft.afterDismissed().subscribe(()=>{this._openedSnackBarRef==Ft&&(this._openedSnackBarRef=null),_e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{Ft.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):Ft.containerInstance.enter(),_e.duration&&_e.duration>0&&Ft.afterOpened().subscribe(()=>Ft._dismissAfter(_e.duration))}_createOverlay(Ft){const _e=new l.X_;_e.direction=Ft.direction;let pe=this._overlay.position().global();const Ze="rtl"===Ft.direction,Oe="left"===Ft.horizontalPosition||"start"===Ft.horizontalPosition&&!Ze||"end"===Ft.horizontalPosition&&Ze,Ie=!Oe&&"center"!==Ft.horizontalPosition;return Oe?pe.left("0"):Ie?pe.right("0"):pe.centerHorizontally(),"top"===Ft.verticalPosition?pe.top("0"):pe.bottom("0"),_e.positionStrategy=pe,this._overlay.create(_e)}_createInjector(Ft,_e){return h.zs3.create({parent:Ft&&Ft.viewContainerRef&&Ft.viewContainerRef.injector||this._injector,providers:[{provide:Tt,useValue:_e},{provide:at,useValue:Ft.data}]})}}return wt.\u0275fac=function(Ft){return new(Ft||wt)(h.LFG(l.aV),h.LFG(q.Kd),h.LFG(h.zs3),h.LFG(Y.Yg),h.LFG(wt,12),h.LFG(ht))},wt.\u0275prov=h.Yz7({token:wt,factory:wt.\u0275fac}),wt})(),It=(()=>{class wt extends Mt{constructor(Ft,_e,pe,Ze,Oe,Ie){super(Ft,_e,pe,Ze,Oe,Ie),this.simpleSnackBarComponent=qt,this.snackBarContainerComponent=bt,this.handsetCssClass="mat-snack-bar-handset"}}return wt.\u0275fac=function(Ft){return new(Ft||wt)(h.LFG(l.aV),h.LFG(q.Kd),h.LFG(h.zs3),h.LFG(Y.Yg),h.LFG(wt,12),h.LFG(ht))},wt.\u0275prov=h.Yz7({token:wt,factory:wt.\u0275fac,providedIn:xt}),wt})()},96308:(K,W,_)=>{"use strict";_.d(W,{JX:()=>It,YE:()=>Tt,nU:()=>Mt});var l=_(94650),u=_(12687),g=_(21281),h=_(29521),t=_(3238),x=_(8929),T=_(36787),U=_(37340),D=_(36895);const k=["mat-sort-header",""];function O(wt,ee){if(1&wt){const Ft=l.EpF();l.TgZ(0,"div",3),l.NdJ("@arrowPosition.start",function(){l.CHM(Ft);const pe=l.oxw();return l.KtG(pe._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){l.CHM(Ft);const pe=l.oxw();return l.KtG(pe._disableViewStateAnimation=!1)}),l._UZ(1,"div",4),l.TgZ(2,"div",5),l._UZ(3,"div",6)(4,"div",7)(5,"div",8),l.qZA()()}if(2&wt){const Ft=l.oxw();l.Q6J("@arrowOpacity",Ft._getArrowViewState())("@arrowPosition",Ft._getArrowViewState())("@allowChildren",Ft._getArrowDirectionState()),l.xp6(2),l.Q6J("@indicator",Ft._getArrowDirectionState()),l.xp6(1),l.Q6J("@leftPointer",Ft._getArrowDirectionState()),l.xp6(1),l.Q6J("@rightPointer",Ft._getArrowDirectionState())}}const q=["*"],rt=new l.OlP("MAT_SORT_DEFAULT_OPTIONS"),ft=(0,t.dB)((0,t.Id)(class{}));let Tt=(()=>{class wt extends ft{constructor(Ft){super(),this._defaultOptions=Ft,this.sortables=new Map,this._stateChanges=new x.xQ,this.start="asc",this._direction="",this.sortChange=new l.vpe}get direction(){return this._direction}set direction(Ft){this._direction=Ft}get disableClear(){return this._disableClear}set disableClear(Ft){this._disableClear=(0,g.Ig)(Ft)}register(Ft){this.sortables.set(Ft.id,Ft)}deregister(Ft){this.sortables.delete(Ft.id)}sort(Ft){this.active!=Ft.id?(this.active=Ft.id,this.direction=Ft.start?Ft.start:this.start):this.direction=this.getNextSortDirection(Ft),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(Ft){if(!Ft)return"";let pe=function qt(wt,ee){let Ft=["asc","desc"];return"desc"==wt&&Ft.reverse(),ee||Ft.push(""),Ft}(Ft.start||this.start,Ft?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),Ze=pe.indexOf(this.direction)+1;return Ze>=pe.length&&(Ze=0),pe[Ze]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return wt.\u0275fac=function(Ft){return new(Ft||wt)(l.Y36(rt,8))},wt.\u0275dir=l.lG2({type:wt,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[l.qOj,l.TTD]}),wt})();const Vt=t.mZ.ENTERING+" "+t.yN.STANDARD_CURVE,Bt={indicator:(0,U.X$)("indicator",[(0,U.SB)("active-asc, asc",(0,U.oB)({transform:"translateY(0px)"})),(0,U.SB)("active-desc, desc",(0,U.oB)({transform:"translateY(10px)"})),(0,U.eR)("active-asc <=> active-desc",(0,U.jt)(Vt))]),leftPointer:(0,U.X$)("leftPointer",[(0,U.SB)("active-asc, asc",(0,U.oB)({transform:"rotate(-45deg)"})),(0,U.SB)("active-desc, desc",(0,U.oB)({transform:"rotate(45deg)"})),(0,U.eR)("active-asc <=> active-desc",(0,U.jt)(Vt))]),rightPointer:(0,U.X$)("rightPointer",[(0,U.SB)("active-asc, asc",(0,U.oB)({transform:"rotate(45deg)"})),(0,U.SB)("active-desc, desc",(0,U.oB)({transform:"rotate(-45deg)"})),(0,U.eR)("active-asc <=> active-desc",(0,U.jt)(Vt))]),arrowOpacity:(0,U.X$)("arrowOpacity",[(0,U.SB)("desc-to-active, asc-to-active, active",(0,U.oB)({opacity:1})),(0,U.SB)("desc-to-hint, asc-to-hint, hint",(0,U.oB)({opacity:.54})),(0,U.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,U.oB)({opacity:0})),(0,U.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,U.jt)("0ms")),(0,U.eR)("* <=> *",(0,U.jt)(Vt))]),arrowPosition:(0,U.X$)("arrowPosition",[(0,U.eR)("* => desc-to-hint, * => desc-to-active",(0,U.jt)(Vt,(0,U.F4)([(0,U.oB)({transform:"translateY(-25%)"}),(0,U.oB)({transform:"translateY(0)"})]))),(0,U.eR)("* => hint-to-desc, * => active-to-desc",(0,U.jt)(Vt,(0,U.F4)([(0,U.oB)({transform:"translateY(0)"}),(0,U.oB)({transform:"translateY(25%)"})]))),(0,U.eR)("* => asc-to-hint, * => asc-to-active",(0,U.jt)(Vt,(0,U.F4)([(0,U.oB)({transform:"translateY(25%)"}),(0,U.oB)({transform:"translateY(0)"})]))),(0,U.eR)("* => hint-to-asc, * => active-to-asc",(0,U.jt)(Vt,(0,U.F4)([(0,U.oB)({transform:"translateY(0)"}),(0,U.oB)({transform:"translateY(-25%)"})]))),(0,U.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,U.oB)({transform:"translateY(0)"})),(0,U.SB)("hint-to-desc, active-to-desc, desc",(0,U.oB)({transform:"translateY(-25%)"})),(0,U.SB)("hint-to-asc, active-to-asc, asc",(0,U.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,U.X$)("allowChildren",[(0,U.eR)("* <=> *",[(0,U.IO)("@*",(0,U.pV)(),{optional:!0})])])};let bt=(()=>{class wt{constructor(){this.changes=new x.xQ}}return wt.\u0275fac=function(Ft){return new(Ft||wt)},wt.\u0275prov=l.Yz7({token:wt,factory:wt.\u0275fac,providedIn:"root"}),wt})();const ht={provide:bt,deps:[[new l.FiY,new l.tp0,bt]],useFactory:function xt(wt){return wt||new bt}},ut=(0,t.Id)(class{});let Mt=(()=>{class wt extends ut{constructor(Ft,_e,pe,Ze,Oe,Ie,Rt,fe){super(),this._intl=Ft,this._changeDetectorRef=_e,this._sort=pe,this._columnDef=Ze,this._focusMonitor=Oe,this._elementRef=Ie,this._ariaDescriber=Rt,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",fe?.arrowPosition&&(this.arrowPosition=fe?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(Ft){this._updateSortActionDescription(Ft)}get disableClear(){return this._disableClear}set disableClear(Ft){this._disableClear=(0,g.Ig)(Ft)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Ft=>{const _e=!!Ft;_e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(_e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(Ft){this._isDisabled()&&Ft||(this._showIndicatorHint=Ft,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(Ft){this._viewState=Ft||{},this._disableViewStateAnimation&&(this._viewState={toState:Ft.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(Ft){!this._isDisabled()&&(Ft.keyCode===h.L_||Ft.keyCode===h.K5)&&(Ft.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const Ft=this._viewState.fromState;return(Ft?`${Ft}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(Ft){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,Ft)),this._sortActionDescription=Ft}_handleStateChanges(){this._rerenderSubscription=(0,T.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return wt.\u0275fac=function(Ft){return new(Ft||wt)(l.Y36(bt),l.Y36(l.sBO),l.Y36(Tt,8),l.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),l.Y36(u.tE),l.Y36(l.SBq),l.Y36(u.$s,8),l.Y36(rt,8))},wt.\u0275cmp=l.Xpm({type:wt,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(Ft,_e){1&Ft&&l.NdJ("click",function(){return _e._handleClick()})("keydown",function(Ze){return _e._handleKeydown(Ze)})("mouseenter",function(){return _e._setIndicatorHintVisible(!0)})("mouseleave",function(){return _e._setIndicatorHintVisible(!1)}),2&Ft&&(l.uIk("aria-sort",_e._getAriaSortAttribute()),l.ekj("mat-sort-header-disabled",_e._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[l.qOj],attrs:k,ngContentSelectors:q,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(Ft,_e){1&Ft&&(l.F$t(),l.TgZ(0,"div",0)(1,"div",1),l.Hsn(2),l.qZA(),l.YNc(3,O,6,6,"div",2),l.qZA()),2&Ft&&(l.ekj("mat-sort-header-sorted",_e._isSorted())("mat-sort-header-position-before","before"===_e.arrowPosition),l.uIk("tabindex",_e._isDisabled()?null:0)("role",_e._isDisabled()?null:"button"),l.xp6(3),l.Q6J("ngIf",_e._renderArrow()))},dependencies:[D.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Bt.indicator,Bt.leftPointer,Bt.rightPointer,Bt.arrowOpacity,Bt.arrowPosition,Bt.allowChildren]},changeDetection:0}),wt})(),It=(()=>{class wt{}return wt.\u0275fac=function(Ft){return new(Ft||wt)},wt.\u0275mod=l.oAB({type:wt}),wt.\u0275inj=l.cJS({providers:[ht],imports:[D.ez,t.BQ]}),wt})()},58425:(K,W,_)=>{"use strict";_.d(W,{C0:()=>si,Ic:()=>Vn,T5:()=>Wt,VY:()=>ce,Vq:()=>oi,fd:()=>ze,z9:()=>_n});var l=_(84080),u=_(12138),g=_(36895),h=_(94650),t=_(4859),x=_(3238),T=_(97392),U=_(12687),D=_(8929),k=_(42654),O=_(40445),q=_(87545),Y=_(24850),$=_(1059),X=_(7625),at=_(75778),rt=_(37340);function ft(J,j){if(1&J&&h.GkF(0,8),2&J){const Q=h.oxw();h.Q6J("ngTemplateOutlet",Q.iconOverrides[Q.state])("ngTemplateOutletContext",Q._getIconContext())}}function Tt(J,j){if(1&J&&(h.TgZ(0,"span",13),h._uU(1),h.qZA()),2&J){const Q=h.oxw(2);h.xp6(1),h.Oqu(Q._getDefaultTextForState(Q.state))}}function qt(J,j){if(1&J&&(h.TgZ(0,"span",14),h._uU(1),h.qZA()),2&J){const Q=h.oxw(2);h.xp6(1),h.Oqu(Q._intl.completedLabel)}}function Vt(J,j){if(1&J&&(h.TgZ(0,"span",14),h._uU(1),h.qZA()),2&J){const Q=h.oxw(2);h.xp6(1),h.Oqu(Q._intl.editableLabel)}}function Bt(J,j){if(1&J&&(h.TgZ(0,"mat-icon",13),h._uU(1),h.qZA()),2&J){const Q=h.oxw(2);h.xp6(1),h.Oqu(Q._getDefaultTextForState(Q.state))}}function bt(J,j){if(1&J&&(h.ynx(0,9),h.YNc(1,Tt,2,1,"span",10),h.YNc(2,qt,2,1,"span",11),h.YNc(3,Vt,2,1,"span",11),h.YNc(4,Bt,2,1,"mat-icon",12),h.BQk()),2&J){const Q=h.oxw();h.Q6J("ngSwitch",Q.state),h.xp6(1),h.Q6J("ngSwitchCase","number"),h.xp6(1),h.Q6J("ngIf","done"===Q.state),h.xp6(1),h.Q6J("ngIf","edit"===Q.state)}}function xt(J,j){if(1&J&&(h.TgZ(0,"div",15),h.GkF(1,16),h.qZA()),2&J){const Q=h.oxw();h.xp6(1),h.Q6J("ngTemplateOutlet",Q._templateLabel().template)}}function ht(J,j){if(1&J&&(h.TgZ(0,"div",15),h._uU(1),h.qZA()),2&J){const Q=h.oxw();h.xp6(1),h.Oqu(Q.label)}}function ut(J,j){if(1&J&&(h.TgZ(0,"div",17),h._uU(1),h.qZA()),2&J){const Q=h.oxw();h.xp6(1),h.Oqu(Q._intl.optionalLabel)}}function Mt(J,j){if(1&J&&(h.TgZ(0,"div",18),h._uU(1),h.qZA()),2&J){const Q=h.oxw();h.xp6(1),h.Oqu(Q.errorMessage)}}function It(J,j){}function wt(J,j){if(1&J&&(h.Hsn(0),h.YNc(1,It,0,0,"ng-template",0)),2&J){const Q=h.oxw();h.xp6(1),h.Q6J("cdkPortalOutlet",Q._portal)}}const ee=["*"];function Ft(J,j){1&J&&h._UZ(0,"div",11)}const _e=function(J,j){return{step:J,i:j}};function pe(J,j){if(1&J&&(h.ynx(0),h.GkF(1,9),h.YNc(2,Ft,1,0,"div",10),h.BQk()),2&J){const Q=j.$implicit,Ct=j.index,Yt=j.last;h.oxw(2);const ie=h.MAs(4);h.xp6(1),h.Q6J("ngTemplateOutlet",ie)("ngTemplateOutletContext",h.WLB(3,_e,Q,Ct)),h.xp6(1),h.Q6J("ngIf",!Yt)}}const Ze=function(J){return{animationDuration:J}},Oe=function(J,j){return{value:J,params:j}};function Ie(J,j){if(1&J){const Q=h.EpF();h.TgZ(0,"div",12),h.NdJ("@horizontalStepTransition.done",function(Yt){h.CHM(Q);const ie=h.oxw(2);return h.KtG(ie._animationDone.next(Yt))}),h.GkF(1,13),h.qZA()}if(2&J){const Q=j.$implicit,Ct=j.index,Yt=h.oxw(2);h.ekj("mat-horizontal-stepper-content-inactive",Yt.selectedIndex!==Ct),h.Q6J("@horizontalStepTransition",h.WLB(8,Oe,Yt._getAnimationDirection(Ct),h.VKq(6,Ze,Yt._getAnimationDuration())))("id",Yt._getStepContentId(Ct)),h.uIk("aria-labelledby",Yt._getStepLabelId(Ct)),h.xp6(1),h.Q6J("ngTemplateOutlet",Q.content)}}function Rt(J,j){if(1&J&&(h.TgZ(0,"div",4)(1,"div",5),h.YNc(2,pe,3,6,"ng-container",6),h.qZA(),h.TgZ(3,"div",7),h.YNc(4,Ie,2,11,"div",8),h.qZA()()),2&J){const Q=h.oxw();h.xp6(2),h.Q6J("ngForOf",Q.steps),h.xp6(2),h.Q6J("ngForOf",Q.steps)}}function fe(J,j){if(1&J){const Q=h.EpF();h.TgZ(0,"div",15),h.GkF(1,9),h.TgZ(2,"div",16)(3,"div",17),h.NdJ("@verticalStepTransition.done",function(Yt){h.CHM(Q);const ie=h.oxw(2);return h.KtG(ie._animationDone.next(Yt))}),h.TgZ(4,"div",18),h.GkF(5,13),h.qZA()()()()}if(2&J){const Q=j.$implicit,Ct=j.index,Yt=j.last,ie=h.oxw(2),re=h.MAs(4);h.xp6(1),h.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",h.WLB(10,_e,Q,Ct)),h.xp6(1),h.ekj("mat-stepper-vertical-line",!Yt),h.xp6(1),h.ekj("mat-vertical-stepper-content-inactive",ie.selectedIndex!==Ct),h.Q6J("@verticalStepTransition",h.WLB(15,Oe,ie._getAnimationDirection(Ct),h.VKq(13,Ze,ie._getAnimationDuration())))("id",ie._getStepContentId(Ct)),h.uIk("aria-labelledby",ie._getStepLabelId(Ct)),h.xp6(2),h.Q6J("ngTemplateOutlet",Q.content)}}function Kt(J,j){if(1&J&&(h.ynx(0),h.YNc(1,fe,6,18,"div",14),h.BQk()),2&J){const Q=h.oxw();h.xp6(1),h.Q6J("ngForOf",Q.steps)}}function ue(J,j){if(1&J){const Q=h.EpF();h.TgZ(0,"mat-step-header",19),h.NdJ("click",function(){const ie=h.CHM(Q).step;return h.KtG(ie.select())})("keydown",function(Yt){h.CHM(Q);const ie=h.oxw();return h.KtG(ie._onKeydown(Yt))}),h.qZA()}if(2&J){const Q=j.step,Ct=j.i,Yt=h.oxw();h.ekj("mat-horizontal-stepper-header","horizontal"===Yt.orientation)("mat-vertical-stepper-header","vertical"===Yt.orientation),h.Q6J("tabIndex",Yt._getFocusIndex()===Ct?0:-1)("id",Yt._getStepLabelId(Ct))("index",Ct)("state",Yt._getIndicatorType(Ct,Q.state))("label",Q.stepLabel||Q.label)("selected",Yt.selectedIndex===Ct)("active",Yt._stepIsNavigable(Ct,Q))("optional",Q.optional)("errorMessage",Q.errorMessage)("iconOverrides",Yt._iconOverrides)("disableRipple",Yt.disableRipple||!Yt._stepIsNavigable(Ct,Q))("color",Q.color||Yt.color),h.uIk("aria-posinset",Ct+1)("aria-setsize",Yt.steps.length)("aria-controls",Yt._getStepContentId(Ct))("aria-selected",Yt.selectedIndex==Ct)("aria-label",Q.ariaLabel||null)("aria-labelledby",!Q.ariaLabel&&Q.ariaLabelledby?Q.ariaLabelledby:null)("aria-disabled",!Yt._stepIsNavigable(Ct,Q)||null)}}let ce=(()=>{class J extends u.u6{}return J.\u0275fac=function(){let j;return function(Ct){return(j||(j=h.n5z(J)))(Ct||J)}}(),J.\u0275dir=h.lG2({type:J,selectors:[["","matStepLabel",""]],features:[h.qOj]}),J})(),je=(()=>{class J{constructor(){this.changes=new D.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return J.\u0275fac=function(Q){return new(Q||J)},J.\u0275prov=h.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();const Ye={provide:je,deps:[[new h.FiY,new h.tp0,je]],useFactory:function Te(J){return J||new je}},fn=(0,x.pj)(class extends u.KL{constructor(j){super(j)}},"primary");let An=(()=>{class J extends fn{constructor(Q,Ct,Yt,ie){super(Yt),this._intl=Q,this._focusMonitor=Ct,this._intlSubscription=Q.changes.subscribe(()=>ie.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(Q,Ct){Q?this._focusMonitor.focusVia(this._elementRef,Q,Ct):this._elementRef.nativeElement.focus(Ct)}_stringLabel(){return this.label instanceof ce?null:this.label}_templateLabel(){return this.label instanceof ce?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(Q){return"number"==Q?`${this.index+1}`:"edit"==Q?"create":"error"==Q?"warning":Q}}return J.\u0275fac=function(Q){return new(Q||J)(h.Y36(je),h.Y36(U.tE),h.Y36(h.SBq),h.Y36(h.sBO))},J.\u0275cmp=h.Xpm({type:J,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[h.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(Q,Ct){1&Q&&(h._UZ(0,"div",0),h.TgZ(1,"div")(2,"div",1),h.YNc(3,ft,1,2,"ng-container",2),h.YNc(4,bt,5,4,"ng-container",3),h.qZA()(),h.TgZ(5,"div",4),h.YNc(6,xt,2,1,"div",5),h.YNc(7,ht,2,1,"div",5),h.YNc(8,ut,2,1,"div",6),h.YNc(9,Mt,2,1,"div",7),h.qZA()),2&Q&&(h.Q6J("matRippleTrigger",Ct._getHostElement())("matRippleDisabled",Ct.disableRipple),h.xp6(1),h.Gre("mat-step-icon-state-",Ct.state," mat-step-icon"),h.ekj("mat-step-icon-selected",Ct.selected),h.xp6(1),h.Q6J("ngSwitch",!(!Ct.iconOverrides||!Ct.iconOverrides[Ct.state])),h.xp6(1),h.Q6J("ngSwitchCase",!0),h.xp6(2),h.ekj("mat-step-label-active",Ct.active)("mat-step-label-selected",Ct.selected)("mat-step-label-error","error"==Ct.state),h.xp6(1),h.Q6J("ngIf",Ct._templateLabel()),h.xp6(1),h.Q6J("ngIf",Ct._stringLabel()),h.xp6(1),h.Q6J("ngIf",Ct.optional&&"error"!=Ct.state),h.xp6(1),h.Q6J("ngIf","error"==Ct.state))},dependencies:[g.O5,g.tP,g.RF,g.n9,g.ED,T.Hw,x.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),J})();const Re={horizontalStepTransition:(0,rt.X$)("horizontalStepTransition",[(0,rt.SB)("previous",(0,rt.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,rt.SB)("current",(0,rt.oB)({transform:"none",visibility:"inherit"})),(0,rt.SB)("next",(0,rt.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,rt.eR)("* => *",(0,rt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,rt.X$)("verticalStepTransition",[(0,rt.SB)("previous",(0,rt.oB)({height:"0px",visibility:"hidden"})),(0,rt.SB)("next",(0,rt.oB)({height:"0px",visibility:"hidden"})),(0,rt.SB)("current",(0,rt.oB)({height:"*",visibility:"inherit"})),(0,rt.eR)("* <=> current",(0,rt.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let _n=(()=>{class J{constructor(Q){this.templateRef=Q}}return J.\u0275fac=function(Q){return new(Q||J)(h.Y36(h.Rgc))},J.\u0275dir=h.lG2({type:J,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),J})(),Kn=(()=>{class J{constructor(Q){this._template=Q}}return J.\u0275fac=function(Q){return new(Q||J)(h.Y36(h.Rgc))},J.\u0275dir=h.lG2({type:J,selectors:[["ng-template","matStepContent",""]]}),J})(),si=(()=>{class J extends u.be{constructor(Q,Ct,Yt,ie){super(Q,ie),this._errorStateMatcher=Ct,this._viewContainerRef=Yt,this._isSelected=k.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,q.w)(()=>this._stepper.selectionChange.pipe((0,Y.U)(Q=>Q.selectedStep===this),(0,$.O)(this._stepper.selected===this)))).subscribe(Q=>{Q&&this._lazyContent&&!this._portal&&(this._portal=new l.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(Q,Ct){return this._errorStateMatcher.isErrorState(Q,Ct)||!!(Q&&Q.invalid&&this.interacted)}}return J.\u0275fac=function(Q){return new(Q||J)(h.Y36((0,h.Gpc)(()=>oi)),h.Y36(x.rD,4),h.Y36(h.s_b),h.Y36(u.gx,8))},J.\u0275cmp=h.Xpm({type:J,selectors:[["mat-step"]],contentQueries:function(Q,Ct,Yt){if(1&Q&&(h.Suo(Yt,ce,5),h.Suo(Yt,Kn,5)),2&Q){let ie;h.iGM(ie=h.CRH())&&(Ct.stepLabel=ie.first),h.iGM(ie=h.CRH())&&(Ct._lazyContent=ie.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[h._Bn([{provide:x.rD,useExisting:J},{provide:u.be,useExisting:J}]),h.qOj],ngContentSelectors:ee,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(Q,Ct){1&Q&&(h.F$t(),h.YNc(0,wt,2,1,"ng-template"))},dependencies:[l.Pl],encapsulation:2,changeDetection:0}),J})(),oi=(()=>{class J extends u.B8{constructor(Q,Ct,Yt){super(Q,Ct,Yt),this.steps=new h.n_E,this.animationDone=new h.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new D.xQ,this._animationDuration="";const ie=Yt.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===ie?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(Q){this._animationDuration=/^\d+$/.test(Q)?Q+"ms":Q}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:Q,templateRef:Ct})=>this._iconOverrides[Q]=Ct),this.steps.changes.pipe((0,X.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,at.x)((Q,Ct)=>Q.fromState===Ct.fromState&&Q.toState===Ct.toState),(0,X.R)(this._destroyed)).subscribe(Q=>{"current"===Q.toState&&this.animationDone.emit()})}_stepIsNavigable(Q,Ct){return Ct.completed||this.selectedIndex===Q||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return J.\u0275fac=function(Q){return new(Q||J)(h.Y36(O.Is,8),h.Y36(h.sBO),h.Y36(h.SBq))},J.\u0275cmp=h.Xpm({type:J,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(Q,Ct,Yt){if(1&Q&&(h.Suo(Yt,si,5),h.Suo(Yt,_n,5)),2&Q){let ie;h.iGM(ie=h.CRH())&&(Ct._steps=ie),h.iGM(ie=h.CRH())&&(Ct._icons=ie)}},viewQuery:function(Q,Ct){if(1&Q&&h.Gf(An,5),2&Q){let Yt;h.iGM(Yt=h.CRH())&&(Ct._stepHeader=Yt)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(Q,Ct){2&Q&&(h.uIk("aria-orientation",Ct.orientation),h.ekj("mat-stepper-horizontal","horizontal"===Ct.orientation)("mat-stepper-vertical","vertical"===Ct.orientation)("mat-stepper-label-position-end","horizontal"===Ct.orientation&&"end"==Ct.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Ct.orientation&&"bottom"==Ct.labelPosition)("mat-stepper-header-position-bottom","bottom"===Ct.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[h._Bn([{provide:u.B8,useExisting:J}]),h.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(Q,Ct){1&Q&&(h.ynx(0,0),h.YNc(1,Rt,5,2,"div",1),h.YNc(2,Kt,2,1,"ng-container",2),h.BQk(),h.YNc(3,ue,1,23,"ng-template",null,3,h.W1O)),2&Q&&(h.Q6J("ngSwitch",Ct.orientation),h.xp6(1),h.Q6J("ngSwitchCase","horizontal"),h.xp6(1),h.Q6J("ngSwitchCase","vertical"))},dependencies:[g.sg,g.O5,g.tP,g.RF,g.n9,An],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Re.horizontalStepTransition,Re.verticalStepTransition]},changeDetection:0}),J})(),Vn=(()=>{class J extends u.st{}return J.\u0275fac=function(){let j;return function(Ct){return(j||(j=h.n5z(J)))(Ct||J)}}(),J.\u0275dir=h.lG2({type:J,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(Q,Ct){2&Q&&h.Ikx("type",Ct.type)},inputs:{type:"type"},features:[h.qOj]}),J})(),ze=(()=>{class J extends u.po{}return J.\u0275fac=function(){let j;return function(Ct){return(j||(j=h.n5z(J)))(Ct||J)}}(),J.\u0275dir=h.lG2({type:J,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(Q,Ct){2&Q&&h.Ikx("type",Ct.type)},inputs:{type:"type"},features:[h.qOj]}),J})(),Wt=(()=>{class J{}return J.\u0275fac=function(Q){return new(Q||J)},J.\u0275mod=h.oAB({type:J}),J.\u0275inj=h.cJS({providers:[Ye,x.rD],imports:[x.BQ,g.ez,l.eL,t.ot,u.U5,T.Ps,x.si,x.BQ]}),J})()},30671:(K,W,_)=>{"use strict";_.d(W,{ev:()=>Se,Dz:()=>Xe,w1:()=>ye,yh:()=>ve,mD:()=>kt,Q2:()=>an,Ke:()=>pi,ge:()=>Nt,fO:()=>me,XQ:()=>en,as:()=>yn,Gk:()=>Be,nj:()=>Ci,BZ:()=>sn,by:()=>qo,p0:()=>Hi});var l=_(94650),u=_(40445),g=_(21281),h=_(95017),t=_(83353),x=_(67376),T=_(36895),U=_(8929),D=_(5254),k=_(591),O=_(54715),q=_(21086),Y=_(7625),$=_(72986);const X=[[["caption"]],[["colgroup"],["col"]]],at=["caption","colgroup, col"];function Tt(Pe){return class extends Pe{constructor(...wn){super(...wn),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(wn){const ke=this._sticky;this._sticky=(0,g.Ig)(wn),this._hasStickyChanged=ke!==this._sticky}hasStickyChanged(){const wn=this._hasStickyChanged;return this._hasStickyChanged=!1,wn}resetStickyChanged(){this._hasStickyChanged=!1}}}const qt=new l.OlP("CDK_TABLE");let Bt=(()=>{class Pe{constructor(ke){this.template=ke}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(l.Rgc))},Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","cdkCellDef",""]]}),Pe})(),bt=(()=>{class Pe{constructor(ke){this.template=ke}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(l.Rgc))},Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","cdkHeaderCellDef",""]]}),Pe})(),xt=(()=>{class Pe{constructor(ke){this.template=ke}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(l.Rgc))},Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","cdkFooterCellDef",""]]}),Pe})();class ht{}const ut=Tt(ht);let Mt=(()=>{class Pe extends ut{constructor(ke){super(),this._table=ke,this._stickyEnd=!1}get name(){return this._name}set name(ke){this._setNameInput(ke)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ke){const Ce=this._stickyEnd;this._stickyEnd=(0,g.Ig)(ke),this._hasStickyChanged=Ce!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ke){ke&&(this._name=ke,this.cssClassFriendlyName=ke.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(qt,8))},Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","cdkColumnDef",""]],contentQueries:function(ke,Ce,We){if(1&ke&&(l.Suo(We,Bt,5),l.Suo(We,bt,5),l.Suo(We,xt,5)),2&ke){let G;l.iGM(G=l.CRH())&&(Ce.cell=G.first),l.iGM(G=l.CRH())&&(Ce.headerCell=G.first),l.iGM(G=l.CRH())&&(Ce.footerCell=G.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[l._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Pe}]),l.qOj]}),Pe})();class It{constructor(wn,ke){ke.nativeElement.classList.add(...wn._columnCssClassName)}}let wt=(()=>{class Pe extends It{constructor(ke,Ce){super(ke,Ce)}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(Mt),l.Y36(l.SBq))},Pe.\u0275dir=l.lG2({type:Pe,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[l.qOj]}),Pe})(),ee=(()=>{class Pe extends It{constructor(ke,Ce){if(super(ke,Ce),1===ke._table?._elementRef.nativeElement.nodeType){const We=ke._table._elementRef.nativeElement.getAttribute("role");Ce.nativeElement.setAttribute("role","grid"===We||"treegrid"===We?"gridcell":"cell")}}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(Mt),l.Y36(l.SBq))},Pe.\u0275dir=l.lG2({type:Pe,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[l.qOj]}),Pe})(),Ft=(()=>{class Pe extends It{constructor(ke,Ce){if(super(ke,Ce),1===ke._table?._elementRef.nativeElement.nodeType){const We=ke._table._elementRef.nativeElement.getAttribute("role");Ce.nativeElement.setAttribute("role","grid"===We||"treegrid"===We?"gridcell":"cell")}}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(Mt),l.Y36(l.SBq))},Pe.\u0275dir=l.lG2({type:Pe,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[l.qOj]}),Pe})();class _e{constructor(){this.tasks=[],this.endTasks=[]}}const pe=new l.OlP("_COALESCED_STYLE_SCHEDULER");let Ze=(()=>{class Pe{constructor(ke){this._ngZone=ke,this._currentSchedule=null,this._destroyed=new U.xQ}schedule(ke){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ke)}scheduleEnd(ke){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ke)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new _e,this._getScheduleObservable().pipe((0,Y.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ke=this._currentSchedule;this._currentSchedule=new _e;for(const Ce of ke.tasks)Ce();for(const Ce of ke.endTasks)Ce()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,D.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,$.q)(1))}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.LFG(l.R0b))},Pe.\u0275prov=l.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),Ie=(()=>{class Pe{constructor(ke,Ce){this.template=ke,this._differs=Ce}ngOnChanges(ke){if(!this._columnsDiffer){const Ce=ke.columns&&ke.columns.currentValue||[];this._columnsDiffer=this._differs.find(Ce).create(),this._columnsDiffer.diff(Ce)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ke){return this instanceof Kt?ke.headerCell.template:this instanceof je?ke.footerCell.template:ke.cell.template}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(l.Rgc),l.Y36(l.ZZ4))},Pe.\u0275dir=l.lG2({type:Pe,features:[l.TTD]}),Pe})();class Rt extends Ie{}const fe=Tt(Rt);let Kt=(()=>{class Pe extends fe{constructor(ke,Ce,We){super(ke,Ce),this._table=We}ngOnChanges(ke){super.ngOnChanges(ke)}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(l.Rgc),l.Y36(l.ZZ4),l.Y36(qt,8))},Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[l.qOj,l.TTD]}),Pe})();class ue extends Ie{}const ce=Tt(ue);let je=(()=>{class Pe extends ce{constructor(ke,Ce,We){super(ke,Ce),this._table=We}ngOnChanges(ke){super.ngOnChanges(ke)}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(l.Rgc),l.Y36(l.ZZ4),l.Y36(qt,8))},Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[l.qOj,l.TTD]}),Pe})(),Te=(()=>{class Pe extends Ie{constructor(ke,Ce,We){super(ke,Ce),this._table=We}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(l.Rgc),l.Y36(l.ZZ4),l.Y36(qt,8))},Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[l.qOj]}),Pe})(),Ye=(()=>{class Pe{constructor(ke){this._viewContainer=ke,Pe.mostRecentCellOutlet=this}ngOnDestroy(){Pe.mostRecentCellOutlet===this&&(Pe.mostRecentCellOutlet=null)}}return Pe.mostRecentCellOutlet=null,Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(l.s_b))},Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","cdkCellOutlet",""]]}),Pe})(),fn=(()=>{class Pe{}return Pe.\u0275fac=function(ke){return new(ke||Pe)},Pe.\u0275cmp=l.Xpm({type:Pe,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ke,Ce){1&ke&&l.GkF(0,0)},dependencies:[Ye],encapsulation:2}),Pe})(),An=(()=>{class Pe{}return Pe.\u0275fac=function(ke){return new(ke||Pe)},Pe.\u0275cmp=l.Xpm({type:Pe,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ke,Ce){1&ke&&l.GkF(0,0)},dependencies:[Ye],encapsulation:2}),Pe})(),xe=(()=>{class Pe{}return Pe.\u0275fac=function(ke){return new(ke||Pe)},Pe.\u0275cmp=l.Xpm({type:Pe,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ke,Ce){1&ke&&l.GkF(0,0)},dependencies:[Ye],encapsulation:2}),Pe})(),hn=(()=>{class Pe{constructor(ke){this.templateRef=ke,this._contentClassName="cdk-no-data-row"}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(l.Rgc))},Pe.\u0275dir=l.lG2({type:Pe,selectors:[["ng-template","cdkNoDataRow",""]]}),Pe})();const Re=["top","bottom","left","right"];class _n{constructor(wn,ke,Ce,We,G=!0,Pt=!0,B){this._isNativeHtmlTable=wn,this._stickCellCss=ke,this.direction=Ce,this._coalescedStyleScheduler=We,this._isBrowser=G,this._needsPositionStickyOnElement=Pt,this._positionListener=B,this._cachedCellWidths=[],this._borderCellCss={top:`${ke}-border-elem-top`,bottom:`${ke}-border-elem-bottom`,left:`${ke}-border-elem-left`,right:`${ke}-border-elem-right`}}clearStickyPositioning(wn,ke){const Ce=[];for(const We of wn)if(We.nodeType===We.ELEMENT_NODE){Ce.push(We);for(let G=0;G{for(const We of Ce)this._removeStickyStyle(We,ke)})}updateStickyColumns(wn,ke,Ce,We=!0){if(!wn.length||!this._isBrowser||!ke.some(Yi=>Yi)&&!Ce.some(Yi=>Yi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const G=wn[0],Pt=G.children.length,B=this._getCellWidths(G,We),Dt=this._getStickyStartColumnPositions(B,ke),Le=this._getStickyEndColumnPositions(B,Ce),kn=ke.lastIndexOf(!0),Zi=Ce.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Yi="rtl"===this.direction,Ta=Yi?"right":"left",Aa=Yi?"left":"right";for(const Xa of wn)for(let oa=0;oake[oa]?Xa:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Zi?[]:B.slice(Zi).map((Xa,oa)=>Ce[oa+Zi]?Xa:null).reverse()}))})}stickRows(wn,ke,Ce){if(!this._isBrowser)return;const We="bottom"===Ce?wn.slice().reverse():wn,G="bottom"===Ce?ke.slice().reverse():ke,Pt=[],B=[],Dt=[];for(let kn=0,Zi=0;kn{for(let kn=0;kn{ke.some(We=>!We)?this._removeStickyStyle(Ce,["bottom"]):this._addStickyStyle(Ce,"bottom",0,!1)})}_removeStickyStyle(wn,ke){for(const We of ke)wn.style[We]="",wn.classList.remove(this._borderCellCss[We]);Re.some(We=>-1===ke.indexOf(We)&&wn.style[We])?wn.style.zIndex=this._getCalculatedZIndex(wn):(wn.style.zIndex="",this._needsPositionStickyOnElement&&(wn.style.position=""),wn.classList.remove(this._stickCellCss))}_addStickyStyle(wn,ke,Ce,We){wn.classList.add(this._stickCellCss),We&&wn.classList.add(this._borderCellCss[ke]),wn.style[ke]=`${Ce}px`,wn.style.zIndex=this._getCalculatedZIndex(wn),this._needsPositionStickyOnElement&&(wn.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(wn){const ke={top:100,bottom:10,left:1,right:1};let Ce=0;for(const We of Re)wn.style[We]&&(Ce+=ke[We]);return Ce?`${Ce}`:""}_getCellWidths(wn,ke=!0){if(!ke&&this._cachedCellWidths.length)return this._cachedCellWidths;const Ce=[],We=wn.children;for(let G=0;G0;G--)ke[G]&&(Ce[G]=We,We+=wn[G]);return Ce}}const Q=new l.OlP("CDK_SPL");let Yt=(()=>{class Pe{constructor(ke,Ce){this.viewContainer=ke,this.elementRef=Ce}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(l.s_b),l.Y36(l.SBq))},Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","rowOutlet",""]]}),Pe})(),ie=(()=>{class Pe{constructor(ke,Ce){this.viewContainer=ke,this.elementRef=Ce}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(l.s_b),l.Y36(l.SBq))},Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","headerRowOutlet",""]]}),Pe})(),re=(()=>{class Pe{constructor(ke,Ce){this.viewContainer=ke,this.elementRef=Ce}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(l.s_b),l.Y36(l.SBq))},Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","footerRowOutlet",""]]}),Pe})(),tn=(()=>{class Pe{constructor(ke,Ce){this.viewContainer=ke,this.elementRef=Ce}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(l.s_b),l.Y36(l.SBq))},Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","noDataRowOutlet",""]]}),Pe})(),fi=(()=>{class Pe{constructor(ke,Ce,We,G,Pt,B,Dt,Le,kn,Zi,Yi,Ta){this._differs=ke,this._changeDetectorRef=Ce,this._elementRef=We,this._dir=Pt,this._platform=Dt,this._viewRepeater=Le,this._coalescedStyleScheduler=kn,this._viewportRuler=Zi,this._stickyPositioningListener=Yi,this._ngZone=Ta,this._onDestroy=new U.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new l.vpe,this.viewChange=new k.X({start:0,end:Number.MAX_VALUE}),G||this._elementRef.nativeElement.setAttribute("role","table"),this._document=B,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(ke){this._trackByFn=ke}get dataSource(){return this._dataSource}set dataSource(ke){this._dataSource!==ke&&this._switchDataSource(ke)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ke){this._multiTemplateDataRows=(0,g.Ig)(ke),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ke){this._fixedLayout=(0,g.Ig)(ke),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ke,Ce)=>this.trackBy?this.trackBy(Ce.dataIndex,Ce.data):Ce),this._viewportRuler.change().pipe((0,Y.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Ce=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Ce,this._forceRecalculateCellWidths=Ce,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(ke=>{ke.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,h.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ke=this._dataDiffer.diff(this._renderRows);if(!ke)return this._updateNoDataRow(),void this.contentChanged.next();const Ce=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ke,Ce,(We,G,Pt)=>this._getEmbeddedViewArgs(We.item,Pt),We=>We.item.data,We=>{1===We.operation&&We.context&&this._renderCellTemplateForItem(We.record.item.rowDef,We.context)}),this._updateRowIndexContext(),ke.forEachIdentityChange(We=>{Ce.get(We.currentIndex).context.$implicit=We.item.data}),this._updateNoDataRow(),this._ngZone&&l.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,$.q)(1),(0,Y.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ke){this._customColumnDefs.add(ke)}removeColumnDef(ke){this._customColumnDefs.delete(ke)}addRowDef(ke){this._customRowDefs.add(ke)}removeRowDef(ke){this._customRowDefs.delete(ke)}addHeaderRowDef(ke){this._customHeaderRowDefs.add(ke),this._headerRowDefChanged=!0}removeHeaderRowDef(ke){this._customHeaderRowDefs.delete(ke),this._headerRowDefChanged=!0}addFooterRowDef(ke){this._customFooterRowDefs.add(ke),this._footerRowDefChanged=!0}removeFooterRowDef(ke){this._customFooterRowDefs.delete(ke),this._footerRowDefChanged=!0}setNoDataRow(ke){this._customNoDataRow=ke}updateStickyHeaderRowStyles(){const ke=this._getRenderedRows(this._headerRowOutlet),We=this._elementRef.nativeElement.querySelector("thead");We&&(We.style.display=ke.length?"":"none");const G=this._headerRowDefs.map(Pt=>Pt.sticky);this._stickyStyler.clearStickyPositioning(ke,["top"]),this._stickyStyler.stickRows(ke,G,"top"),this._headerRowDefs.forEach(Pt=>Pt.resetStickyChanged())}updateStickyFooterRowStyles(){const ke=this._getRenderedRows(this._footerRowOutlet),We=this._elementRef.nativeElement.querySelector("tfoot");We&&(We.style.display=ke.length?"":"none");const G=this._footerRowDefs.map(Pt=>Pt.sticky);this._stickyStyler.clearStickyPositioning(ke,["bottom"]),this._stickyStyler.stickRows(ke,G,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,G),this._footerRowDefs.forEach(Pt=>Pt.resetStickyChanged())}updateStickyColumnStyles(){const ke=this._getRenderedRows(this._headerRowOutlet),Ce=this._getRenderedRows(this._rowOutlet),We=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ke,...Ce,...We],["left","right"]),this._stickyColumnStylesNeedReset=!1),ke.forEach((G,Pt)=>{this._addStickyColumnStyles([G],this._headerRowDefs[Pt])}),this._rowDefs.forEach(G=>{const Pt=[];for(let B=0;B{this._addStickyColumnStyles([G],this._footerRowDefs[Pt])}),Array.from(this._columnDefsByName.values()).forEach(G=>G.resetStickyChanged())}_getAllRenderRows(){const ke=[],Ce=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let We=0;We{const B=We&&We.has(Pt)?We.get(Pt):[];if(B.length){const Dt=B.shift();return Dt.dataIndex=Ce,Dt}return{data:ke,rowDef:Pt,dataIndex:Ce}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Fi(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Ce=>{this._columnDefsByName.has(Ce.name),this._columnDefsByName.set(Ce.name,Ce)})}_cacheRowDefs(){this._headerRowDefs=Fi(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Fi(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Fi(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ke=this._rowDefs.filter(Ce=>!Ce.when);this._defaultRowDef=ke[0]}_renderUpdatedColumns(){const ke=(Pt,B)=>Pt||!!B.getColumnsDiff(),Ce=this._rowDefs.reduce(ke,!1);Ce&&this._forceRenderDataRows();const We=this._headerRowDefs.reduce(ke,!1);We&&this._forceRenderHeaderRows();const G=this._footerRowDefs.reduce(ke,!1);return G&&this._forceRenderFooterRows(),Ce||We||G}_switchDataSource(ke){this._data=[],(0,h.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ke||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ke}_observeRenderChanges(){if(!this.dataSource)return;let ke;(0,h.Z9)(this.dataSource)?ke=this.dataSource.connect(this):(0,O.b)(this.dataSource)?ke=this.dataSource:Array.isArray(this.dataSource)&&(ke=(0,q.of)(this.dataSource)),this._renderChangeSubscription=ke.pipe((0,Y.R)(this._onDestroy)).subscribe(Ce=>{this._data=Ce||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ke,Ce)=>this._renderRow(this._headerRowOutlet,ke,Ce)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ke,Ce)=>this._renderRow(this._footerRowOutlet,ke,Ce)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ke,Ce){const We=Array.from(Ce.columns||[]).map(B=>this._columnDefsByName.get(B)),G=We.map(B=>B.sticky),Pt=We.map(B=>B.stickyEnd);this._stickyStyler.updateStickyColumns(ke,G,Pt,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ke){const Ce=[];for(let We=0;We!G.when||G.when(Ce,ke));else{let G=this._rowDefs.find(Pt=>Pt.when&&Pt.when(Ce,ke))||this._defaultRowDef;G&&We.push(G)}return We}_getEmbeddedViewArgs(ke,Ce){return{templateRef:ke.rowDef.template,context:{$implicit:ke.data},index:Ce}}_renderRow(ke,Ce,We,G={}){const Pt=ke.viewContainer.createEmbeddedView(Ce.template,G,We);return this._renderCellTemplateForItem(Ce,G),Pt}_renderCellTemplateForItem(ke,Ce){for(let We of this._getCellTemplates(ke))Ye.mostRecentCellOutlet&&Ye.mostRecentCellOutlet._viewContainer.createEmbeddedView(We,Ce);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ke=this._rowOutlet.viewContainer;for(let Ce=0,We=ke.length;Ce{const We=this._columnDefsByName.get(Ce);return ke.extractCellTemplate(We)}):[]}_applyNativeTableSections(){const ke=this._document.createDocumentFragment(),Ce=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const We of Ce){const G=this._document.createElement(We.tag);G.setAttribute("role","rowgroup");for(const Pt of We.outlets)G.appendChild(Pt.elementRef.nativeElement);ke.appendChild(G)}this._elementRef.nativeElement.appendChild(ke)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ke=(Ce,We)=>Ce||We.hasStickyChanged();this._headerRowDefs.reduce(ke,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ke,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ke,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new _n(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,q.of)()).pipe((0,Y.R)(this._onDestroy)).subscribe(Ce=>{this._stickyStyler.direction=Ce,this.updateStickyColumnStyles()})}_getOwnDefs(ke){return ke.filter(Ce=>!Ce._table||Ce._table===this)}_updateNoDataRow(){const ke=this._customNoDataRow||this._noDataRow;if(!ke)return;const Ce=0===this._rowOutlet.viewContainer.length;if(Ce===this._isShowingNoDataRow)return;const We=this._noDataRowOutlet.viewContainer;if(Ce){const G=We.createEmbeddedView(ke.templateRef),Pt=G.rootNodes[0];1===G.rootNodes.length&&Pt?.nodeType===this._document.ELEMENT_NODE&&(Pt.setAttribute("role","row"),Pt.classList.add(ke._contentClassName))}else We.clear();this._isShowingNoDataRow=Ce}}return Pe.\u0275fac=function(ke){return new(ke||Pe)(l.Y36(l.ZZ4),l.Y36(l.sBO),l.Y36(l.SBq),l.$8M("role"),l.Y36(u.Is,8),l.Y36(T.K0),l.Y36(t.t4),l.Y36(h.k),l.Y36(pe),l.Y36(x.rL),l.Y36(Q,12),l.Y36(l.R0b,8))},Pe.\u0275cmp=l.Xpm({type:Pe,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ke,Ce,We){if(1&ke&&(l.Suo(We,hn,5),l.Suo(We,Mt,5),l.Suo(We,Te,5),l.Suo(We,Kt,5),l.Suo(We,je,5)),2&ke){let G;l.iGM(G=l.CRH())&&(Ce._noDataRow=G.first),l.iGM(G=l.CRH())&&(Ce._contentColumnDefs=G),l.iGM(G=l.CRH())&&(Ce._contentRowDefs=G),l.iGM(G=l.CRH())&&(Ce._contentHeaderRowDefs=G),l.iGM(G=l.CRH())&&(Ce._contentFooterRowDefs=G)}},viewQuery:function(ke,Ce){if(1&ke&&(l.Gf(Yt,7),l.Gf(ie,7),l.Gf(re,7),l.Gf(tn,7)),2&ke){let We;l.iGM(We=l.CRH())&&(Ce._rowOutlet=We.first),l.iGM(We=l.CRH())&&(Ce._headerRowOutlet=We.first),l.iGM(We=l.CRH())&&(Ce._footerRowOutlet=We.first),l.iGM(We=l.CRH())&&(Ce._noDataRowOutlet=We.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ke,Ce){2&ke&&l.ekj("cdk-table-fixed-layout",Ce.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[l._Bn([{provide:qt,useExisting:Pe},{provide:h.k,useClass:h.yy},{provide:pe,useClass:Ze},{provide:Q,useValue:null}])],ngContentSelectors:at,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ke,Ce){1&ke&&(l.F$t(X),l.Hsn(0),l.Hsn(1,1),l.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[Yt,ie,re,tn],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Pe})();function Fi(Pe,wn){return Pe.concat(Array.from(wn))}let On=(()=>{class Pe{}return Pe.\u0275fac=function(ke){return new(ke||Pe)},Pe.\u0275mod=l.oAB({type:Pe}),Pe.\u0275inj=l.cJS({imports:[x.Cl]}),Pe})();var He=_(3238),cn=_(36787),qe=_(23426),we=_(24850);const Qe=[[["caption"]],[["colgroup"],["col"]]],te=["caption","colgroup, col"];let sn=(()=>{class Pe extends fi{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Pe.\u0275fac=function(){let wn;return function(Ce){return(wn||(wn=l.n5z(Pe)))(Ce||Pe)}}(),Pe.\u0275cmp=l.Xpm({type:Pe,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(ke,Ce){2&ke&&l.ekj("mat-table-fixed-layout",Ce.fixedLayout)},exportAs:["matTable"],features:[l._Bn([{provide:h.k,useClass:h.yy},{provide:fi,useExisting:Pe},{provide:qt,useExisting:Pe},{provide:pe,useClass:Ze},{provide:Q,useValue:null}]),l.qOj],ngContentSelectors:te,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ke,Ce){1&ke&&(l.F$t(Qe),l.Hsn(0),l.Hsn(1,1),l.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[Yt,ie,re,tn],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Pe})(),Xe=(()=>{class Pe extends Bt{}return Pe.\u0275fac=function(){let wn;return function(Ce){return(wn||(wn=l.n5z(Pe)))(Ce||Pe)}}(),Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","matCellDef",""]],features:[l._Bn([{provide:Bt,useExisting:Pe}]),l.qOj]}),Pe})(),me=(()=>{class Pe extends bt{}return Pe.\u0275fac=function(){let wn;return function(Ce){return(wn||(wn=l.n5z(Pe)))(Ce||Pe)}}(),Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","matHeaderCellDef",""]],features:[l._Bn([{provide:bt,useExisting:Pe}]),l.qOj]}),Pe})(),kt=(()=>{class Pe extends xt{}return Pe.\u0275fac=function(){let wn;return function(Ce){return(wn||(wn=l.n5z(Pe)))(Ce||Pe)}}(),Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","matFooterCellDef",""]],features:[l._Bn([{provide:xt,useExisting:Pe}]),l.qOj]}),Pe})(),ye=(()=>{class Pe extends Mt{get name(){return this._name}set name(ke){this._setNameInput(ke)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Pe.\u0275fac=function(){let wn;return function(Ce){return(wn||(wn=l.n5z(Pe)))(Ce||Pe)}}(),Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[l._Bn([{provide:Mt,useExisting:Pe},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Pe}]),l.qOj]}),Pe})(),Nt=(()=>{class Pe extends wt{}return Pe.\u0275fac=function(){let wn;return function(Ce){return(wn||(wn=l.n5z(Pe)))(Ce||Pe)}}(),Pe.\u0275dir=l.lG2({type:Pe,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[l.qOj]}),Pe})(),ve=(()=>{class Pe extends ee{}return Pe.\u0275fac=function(){let wn;return function(Ce){return(wn||(wn=l.n5z(Pe)))(Ce||Pe)}}(),Pe.\u0275dir=l.lG2({type:Pe,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[l.qOj]}),Pe})(),Se=(()=>{class Pe extends Ft{}return Pe.\u0275fac=function(){let wn;return function(Ce){return(wn||(wn=l.n5z(Pe)))(Ce||Pe)}}(),Pe.\u0275dir=l.lG2({type:Pe,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[l.qOj]}),Pe})(),yn=(()=>{class Pe extends Kt{}return Pe.\u0275fac=function(){let wn;return function(Ce){return(wn||(wn=l.n5z(Pe)))(Ce||Pe)}}(),Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[l._Bn([{provide:Kt,useExisting:Pe}]),l.qOj]}),Pe})(),pi=(()=>{class Pe extends je{}return Pe.\u0275fac=function(){let wn;return function(Ce){return(wn||(wn=l.n5z(Pe)))(Ce||Pe)}}(),Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[l._Bn([{provide:je,useExisting:Pe}]),l.qOj]}),Pe})(),Ci=(()=>{class Pe extends Te{}return Pe.\u0275fac=function(){let wn;return function(Ce){return(wn||(wn=l.n5z(Pe)))(Ce||Pe)}}(),Pe.\u0275dir=l.lG2({type:Pe,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[l._Bn([{provide:Te,useExisting:Pe}]),l.qOj]}),Pe})(),en=(()=>{class Pe extends fn{}return Pe.\u0275fac=function(){let wn;return function(Ce){return(wn||(wn=l.n5z(Pe)))(Ce||Pe)}}(),Pe.\u0275cmp=l.Xpm({type:Pe,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[l._Bn([{provide:fn,useExisting:Pe}]),l.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ke,Ce){1&ke&&l.GkF(0,0)},dependencies:[Ye],encapsulation:2}),Pe})(),an=(()=>{class Pe extends An{}return Pe.\u0275fac=function(){let wn;return function(Ce){return(wn||(wn=l.n5z(Pe)))(Ce||Pe)}}(),Pe.\u0275cmp=l.Xpm({type:Pe,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[l._Bn([{provide:An,useExisting:Pe}]),l.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ke,Ce){1&ke&&l.GkF(0,0)},dependencies:[Ye],encapsulation:2}),Pe})(),Be=(()=>{class Pe extends xe{}return Pe.\u0275fac=function(){let wn;return function(Ce){return(wn||(wn=l.n5z(Pe)))(Ce||Pe)}}(),Pe.\u0275cmp=l.Xpm({type:Pe,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[l._Bn([{provide:xe,useExisting:Pe}]),l.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ke,Ce){1&ke&&l.GkF(0,0)},dependencies:[Ye],encapsulation:2}),Pe})(),Hi=(()=>{class Pe{}return Pe.\u0275fac=function(ke){return new(ke||Pe)},Pe.\u0275mod=l.oAB({type:Pe}),Pe.\u0275inj=l.cJS({imports:[On,He.BQ,He.BQ]}),Pe})();class Uo extends h.o2{constructor(wn=[]){super(),this._renderData=new k.X([]),this._filter=new k.X(""),this._internalPageChanges=new U.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(ke,Ce)=>{const We=ke[Ce];if((0,g.t6)(We)){const G=Number(We);return G<9007199254740991?G:We}return We},this.sortData=(ke,Ce)=>{const We=Ce.active,G=Ce.direction;return We&&""!=G?ke.sort((Pt,B)=>{let Dt=this.sortingDataAccessor(Pt,We),Le=this.sortingDataAccessor(B,We);const kn=typeof Dt,Zi=typeof Le;kn!==Zi&&("number"===kn&&(Dt+=""),"number"===Zi&&(Le+=""));let Yi=0;return null!=Dt&&null!=Le?Dt>Le?Yi=1:Dt{const We=Object.keys(ke).reduce((Pt,B)=>Pt+ke[B]+"\u25ec","").toLowerCase(),G=Ce.trim().toLowerCase();return-1!=We.indexOf(G)},this._data=new k.X(wn),this._updateChangeSubscription()}get data(){return this._data.value}set data(wn){wn=Array.isArray(wn)?wn:[],this._data.next(wn),this._renderChangesSubscription||this._filterData(wn)}get filter(){return this._filter.value}set filter(wn){this._filter.next(wn),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(wn){this._sort=wn,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(wn){this._paginator=wn,this._updateChangeSubscription()}_updateChangeSubscription(){const wn=this._sort?(0,cn.T)(this._sort.sortChange,this._sort.initialized):(0,q.of)(null),ke=this._paginator?(0,cn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,q.of)(null),We=(0,qe.aj)([this._data,this._filter]).pipe((0,we.U)(([B])=>this._filterData(B))),G=(0,qe.aj)([We,wn]).pipe((0,we.U)(([B])=>this._orderData(B))),Pt=(0,qe.aj)([G,ke]).pipe((0,we.U)(([B])=>this._pageData(B)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Pt.subscribe(B=>this._renderData.next(B))}_filterData(wn){return this.filteredData=null==this.filter||""===this.filter?wn:wn.filter(ke=>this.filterPredicate(ke,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(wn){return this.sort?this.sortData(wn.slice(),this.sort):wn}_pageData(wn){if(!this.paginator)return wn;const ke=this.paginator.pageIndex*this.paginator.pageSize;return wn.slice(ke,ke+this.paginator.pageSize)}_updatePaginator(wn){Promise.resolve().then(()=>{const ke=this.paginator;if(ke&&(ke.length=wn,ke.pageIndex>0)){const Ce=Math.ceil(ke.length/ke.pageSize)-1||0,We=Math.min(ke.pageIndex,Ce);We!==ke.pageIndex&&(ke.pageIndex=We,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class qo extends Uo{}},3848:(K,W,_)=>{"use strict";_.d(W,{BU:()=>Ee,Nh:()=>me,Nj:()=>sn,SP:()=>we,uD:()=>oi,uX:()=>Wt});var l=_(12687),u=_(49643),g=_(84080),h=_(36895),t=_(94650),x=_(3238),T=_(72986),U=_(1059),D=_(75778),k=_(7625),O=_(87545),q=_(31307),Y=_(92198),$=_(8929),X=_(42654),at=_(23753),rt=_(21086),ft=_(36787),Tt=_(68896),qt=_(56498),Vt=_(98723),Bt=_(40445),bt=_(37340),xt=_(21281),ht=_(67376),ut=_(83353),Mt=_(29521);function It(kt,ye){1&kt&&t.Hsn(0)}const wt=["*"];function ee(kt,ye){}const Ft=function(kt){return{animationDuration:kt}},_e=function(kt,ye){return{value:kt,params:ye}},pe=["tabListContainer"],Ze=["tabList"],Oe=["tabListInner"],Ie=["nextPaginator"],Rt=["previousPaginator"],fe=["tabBodyWrapper"],Kt=["tabHeader"];function ue(kt,ye){}function ce(kt,ye){if(1&kt&&t.YNc(0,ue,0,0,"ng-template",10),2&kt){const Nt=t.oxw().$implicit;t.Q6J("cdkPortalOutlet",Nt.templateLabel)}}function je(kt,ye){if(1&kt&&t._uU(0),2&kt){const Nt=t.oxw().$implicit;t.Oqu(Nt.textLabel)}}function Te(kt,ye){if(1&kt){const Nt=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){const Se=t.CHM(Nt),yn=Se.$implicit,pi=Se.index,Ci=t.oxw(),en=t.MAs(1);return t.KtG(Ci._handleClick(yn,en,pi))})("cdkFocusChange",function(Se){const pi=t.CHM(Nt).index,Ci=t.oxw();return t.KtG(Ci._tabFocusChanged(Se,pi))}),t.TgZ(1,"div",7),t.YNc(2,ce,1,1,"ng-template",8),t.YNc(3,je,1,1,"ng-template",null,9,t.W1O),t.qZA()()}if(2&kt){const Nt=ye.$implicit,ve=ye.index,Se=t.MAs(4),yn=t.oxw();t.ekj("mat-tab-label-active",yn.selectedIndex===ve),t.Q6J("id",yn._getTabLabelId(ve))("ngClass",Nt.labelClass)("disabled",Nt.disabled)("matRippleDisabled",Nt.disabled||yn.disableRipple),t.uIk("tabIndex",yn._getTabIndex(Nt,ve))("aria-posinset",ve+1)("aria-setsize",yn._tabs.length)("aria-controls",yn._getTabContentId(ve))("aria-selected",yn.selectedIndex===ve)("aria-label",Nt.ariaLabel||null)("aria-labelledby",!Nt.ariaLabel&&Nt.ariaLabelledby?Nt.ariaLabelledby:null),t.xp6(2),t.Q6J("ngIf",Nt.templateLabel)("ngIfElse",Se)}}function Ye(kt,ye){if(1&kt){const Nt=t.EpF();t.TgZ(0,"mat-tab-body",11),t.NdJ("_onCentered",function(){t.CHM(Nt);const Se=t.oxw();return t.KtG(Se._removeTabBodyWrapperHeight())})("_onCentering",function(Se){t.CHM(Nt);const yn=t.oxw();return t.KtG(yn._setTabBodyWrapperHeight(Se))}),t.qZA()}if(2&kt){const Nt=ye.$implicit,ve=ye.index,Se=t.oxw();t.ekj("mat-tab-body-active",Se.selectedIndex===ve),t.Q6J("id",Se._getTabContentId(ve))("ngClass",Nt.bodyClass)("content",Nt.content)("position",Nt.position)("origin",Nt.origin)("animationDuration",Se.animationDuration)("preserveContent",Se.preserveContent),t.uIk("tabindex",null!=Se.contentTabIndex&&Se.selectedIndex===ve?Se.contentTabIndex:null)("aria-labelledby",Se._getTabLabelId(ve))}}const fn=["mat-tab-nav-bar",""],An=new t.OlP("MatInkBarPositioner",{providedIn:"root",factory:function xe(){return ye=>({left:ye?(ye.offsetLeft||0)+"px":"0",width:ye?(ye.offsetWidth||0)+"px":"0"})}});let hn=(()=>{class kt{constructor(Nt,ve,Se,yn){this._elementRef=Nt,this._ngZone=ve,this._inkBarPositioner=Se,this._animationMode=yn}alignToElement(Nt){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(()=>{const ve=this._inkBarPositioner(Nt),Se=this._elementRef.nativeElement;Se.style.left=ve.left,Se.style.width=ve.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return kt.\u0275fac=function(Nt){return new(Nt||kt)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(An),t.Y36(t.QbO,8))},kt.\u0275dir=t.lG2({type:kt,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Nt,ve){2&Nt&&t.ekj("_mat-animation-noopable","NoopAnimations"===ve._animationMode)}}),kt})();const Re=new t.OlP("MatTabContent"),Kn=new t.OlP("MatTabLabel"),si=new t.OlP("MAT_TAB");let oi=(()=>{class kt extends g.ig{constructor(Nt,ve,Se){super(Nt,ve),this._closestTab=Se}}return kt.\u0275fac=function(Nt){return new(Nt||kt)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(si,8))},kt.\u0275dir=t.lG2({type:kt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[t._Bn([{provide:Kn,useExisting:kt}]),t.qOj]}),kt})();const Vn=(0,x.Id)(class{}),ze=new t.OlP("MAT_TAB_GROUP");let Wt=(()=>{class kt extends Vn{constructor(Nt,ve){super(),this._viewContainerRef=Nt,this._closestTabGroup=ve,this.textLabel="",this._contentPortal=null,this._stateChanges=new $.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(Nt){this._setTemplateLabelInput(Nt)}get content(){return this._contentPortal}ngOnChanges(Nt){(Nt.hasOwnProperty("textLabel")||Nt.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new g.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Nt){Nt&&Nt._closestTab===this&&(this._templateLabel=Nt)}}return kt.\u0275fac=function(Nt){return new(Nt||kt)(t.Y36(t.s_b),t.Y36(ze,8))},kt.\u0275cmp=t.Xpm({type:kt,selectors:[["mat-tab"]],contentQueries:function(Nt,ve,Se){if(1&Nt&&(t.Suo(Se,Kn,5),t.Suo(Se,Re,7,t.Rgc)),2&Nt){let yn;t.iGM(yn=t.CRH())&&(ve.templateLabel=yn.first),t.iGM(yn=t.CRH())&&(ve._explicitContent=yn.first)}},viewQuery:function(Nt,ve){if(1&Nt&&t.Gf(t.Rgc,7),2&Nt){let Se;t.iGM(Se=t.CRH())&&(ve._implicitContent=Se.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[t._Bn([{provide:si,useExisting:kt}]),t.qOj,t.TTD],ngContentSelectors:wt,decls:1,vars:0,template:function(Nt,ve){1&Nt&&(t.F$t(),t.YNc(0,It,1,0,"ng-template"))},encapsulation:2}),kt})();const J={translateTab:(0,bt.X$)("translateTab",[(0,bt.SB)("center, void, left-origin-center, right-origin-center",(0,bt.oB)({transform:"none"})),(0,bt.SB)("left",(0,bt.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,bt.SB)("right",(0,bt.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,bt.eR)("* => left, * => right, left => center, right => center",(0,bt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,bt.eR)("void => left-origin-center",[(0,bt.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,bt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,bt.eR)("void => right-origin-center",[(0,bt.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,bt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let j=(()=>{class kt extends g.Pl{constructor(Nt,ve,Se,yn){super(Nt,ve,yn),this._host=Se,this._centeringSub=X.w.EMPTY,this._leavingSub=X.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,U.O)(this._host._isCenterPosition(this._host._position))).subscribe(Nt=>{Nt&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return kt.\u0275fac=function(Nt){return new(Nt||kt)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36((0,t.Gpc)(()=>Ct)),t.Y36(h.K0))},kt.\u0275dir=t.lG2({type:kt,selectors:[["","matTabBodyHost",""]],features:[t.qOj]}),kt})(),Q=(()=>{class kt{constructor(Nt,ve,Se){this._elementRef=Nt,this._dir=ve,this._dirChangeSubscription=X.w.EMPTY,this._translateTabComplete=new $.xQ,this._onCentering=new t.vpe,this._beforeCentering=new t.vpe,this._afterLeavingCenter=new t.vpe,this._onCentered=new t.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,ve&&(this._dirChangeSubscription=ve.change.subscribe(yn=>{this._computePositionAnimationState(yn),Se.markForCheck()})),this._translateTabComplete.pipe((0,D.x)((yn,pi)=>yn.fromState===pi.fromState&&yn.toState===pi.toState)).subscribe(yn=>{this._isCenterPosition(yn.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(yn.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(Nt){this._positionIndex=Nt,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Nt){const ve=this._isCenterPosition(Nt.toState);this._beforeCentering.emit(ve),ve&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Nt){return"center"==Nt||"left-origin-center"==Nt||"right-origin-center"==Nt}_computePositionAnimationState(Nt=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Nt?"left":"right":this._positionIndex>0?"ltr"==Nt?"right":"left":"center"}_computePositionFromOrigin(Nt){const ve=this._getLayoutDirection();return"ltr"==ve&&Nt<=0||"rtl"==ve&&Nt>0?"left-origin-center":"right-origin-center"}}return kt.\u0275fac=function(Nt){return new(Nt||kt)(t.Y36(t.SBq),t.Y36(Bt.Is,8),t.Y36(t.sBO))},kt.\u0275dir=t.lG2({type:kt,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),kt})(),Ct=(()=>{class kt extends Q{constructor(Nt,ve,Se){super(Nt,ve,Se)}}return kt.\u0275fac=function(Nt){return new(Nt||kt)(t.Y36(t.SBq),t.Y36(Bt.Is,8),t.Y36(t.sBO))},kt.\u0275cmp=t.Xpm({type:kt,selectors:[["mat-tab-body"]],viewQuery:function(Nt,ve){if(1&Nt&&t.Gf(g.Pl,5),2&Nt){let Se;t.iGM(Se=t.CRH())&&(ve._portalHost=Se.first)}},hostAttrs:[1,"mat-tab-body"],features:[t.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Nt,ve){1&Nt&&(t.TgZ(0,"div",0,1),t.NdJ("@translateTab.start",function(yn){return ve._onTranslateTabStarted(yn)})("@translateTab.done",function(yn){return ve._translateTabComplete.next(yn)}),t.YNc(2,ee,0,0,"ng-template",2),t.qZA()),2&Nt&&t.Q6J("@translateTab",t.WLB(3,_e,ve._position,t.VKq(1,Ft,ve.animationDuration)))},dependencies:[j],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[J.translateTab]}}),kt})();const Yt=new t.OlP("MAT_TABS_CONFIG"),ie=(0,x.Id)(class{});let re=(()=>{class kt extends ie{constructor(Nt){super(),this.elementRef=Nt}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return kt.\u0275fac=function(Nt){return new(Nt||kt)(t.Y36(t.SBq))},kt.\u0275dir=t.lG2({type:kt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Nt,ve){2&Nt&&(t.uIk("aria-disabled",!!ve.disabled),t.ekj("mat-tab-disabled",ve.disabled))},inputs:{disabled:"disabled"},features:[t.qOj]}),kt})();const tn=(0,ut.i$)({passive:!0});let Fi=(()=>{class kt{constructor(Nt,ve,Se,yn,pi,Ci,en){this._elementRef=Nt,this._changeDetectorRef=ve,this._viewportRuler=Se,this._dir=yn,this._ngZone=pi,this._platform=Ci,this._animationMode=en,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new $.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new $.xQ,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new t.vpe,this.indexFocused=new t.vpe,pi.runOutsideAngular(()=>{(0,at.R)(Nt.nativeElement,"mouseleave").pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(Nt){this._disablePagination=(0,xt.Ig)(Nt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Nt){Nt=(0,xt.su)(Nt),this._selectedIndex!=Nt&&(this._selectedIndexChanged=!0,this._selectedIndex=Nt,this._keyManager&&this._keyManager.updateActiveItem(Nt))}ngAfterViewInit(){(0,at.R)(this._previousPaginator.nativeElement,"touchstart",tn).pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,at.R)(this._nextPaginator.nativeElement,"touchstart",tn).pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Nt=this._dir?this._dir.change:(0,rt.of)("ltr"),ve=this._viewportRuler.change(150),Se=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new l.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(Se),(0,ft.T)(Nt,ve,this._items.changes,this._itemsResized()).pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Se()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,k.R)(this._destroyed)).subscribe(yn=>{this.indexFocused.emit(yn),this._setTabFocus(yn)})}_itemsResized(){return"function"!=typeof ResizeObserver?Tt.E:this._items.changes.pipe((0,U.O)(this._items),(0,O.w)(Nt=>new qt.y(ve=>this._ngZone.runOutsideAngular(()=>{const Se=new ResizeObserver(yn=>ve.next(yn));return Nt.forEach(yn=>Se.observe(yn.elementRef.nativeElement)),()=>{Se.disconnect()}}))),(0,q.T)(1),(0,Y.h)(Nt=>Nt.some(ve=>ve.contentRect.width>0&&ve.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Nt){if(!(0,Mt.Vb)(Nt))switch(Nt.keyCode){case Mt.K5:case Mt.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Nt));break;default:this._keyManager.onKeydown(Nt)}}_onContentChanges(){const Nt=this._elementRef.nativeElement.textContent;Nt!==this._currentTextContent&&(this._currentTextContent=Nt||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(Nt){!this._isValidIndex(Nt)||this.focusIndex===Nt||!this._keyManager||this._keyManager.setActiveItem(Nt)}_isValidIndex(Nt){if(!this._items)return!0;const ve=this._items?this._items.toArray()[Nt]:null;return!!ve&&!ve.disabled}_setTabFocus(Nt){if(this._showPaginationControls&&this._scrollToLabel(Nt),this._items&&this._items.length){this._items.toArray()[Nt].focus();const ve=this._tabListContainer.nativeElement;ve.scrollLeft="ltr"==this._getLayoutDirection()?0:ve.scrollWidth-ve.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Nt=this.scrollDistance,ve="ltr"===this._getLayoutDirection()?-Nt:Nt;this._tabList.nativeElement.style.transform=`translateX(${Math.round(ve)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Nt){this._scrollTo(Nt)}_scrollHeader(Nt){return this._scrollTo(this._scrollDistance+("before"==Nt?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Nt){this._stopInterval(),this._scrollHeader(Nt)}_scrollToLabel(Nt){if(this.disablePagination)return;const ve=this._items?this._items.toArray()[Nt]:null;if(!ve)return;const Se=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:yn,offsetWidth:pi}=ve.elementRef.nativeElement;let Ci,en;"ltr"==this._getLayoutDirection()?(Ci=yn,en=Ci+pi):(en=this._tabListInner.nativeElement.offsetWidth-yn,Ci=en-pi);const an=this.scrollDistance,Be=this.scrollDistance+Se;CiBe&&(this.scrollDistance+=en-Be+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Nt=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Nt||(this.scrollDistance=0),Nt!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Nt}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const Nt=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,ve=Nt?Nt.elementRef.nativeElement:null;ve?this._inkBar.alignToElement(ve):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Nt,ve){ve&&null!=ve.button&&0!==ve.button||(this._stopInterval(),(0,Vt.H)(650,100).pipe((0,k.R)((0,ft.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Se,distance:yn}=this._scrollHeader(Nt);(0===yn||yn>=Se)&&this._stopInterval()}))}_scrollTo(Nt){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const ve=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(ve,Nt)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:ve,distance:this._scrollDistance}}}return kt.\u0275fac=function(Nt){return new(Nt||kt)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ht.rL),t.Y36(Bt.Is,8),t.Y36(t.R0b),t.Y36(ut.t4),t.Y36(t.QbO,8))},kt.\u0275dir=t.lG2({type:kt,inputs:{disablePagination:"disablePagination"}}),kt})(),Bn=(()=>{class kt extends Fi{constructor(Nt,ve,Se,yn,pi,Ci,en){super(Nt,ve,Se,yn,pi,Ci,en),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Nt){this._disableRipple=(0,xt.Ig)(Nt)}_itemSelected(Nt){Nt.preventDefault()}}return kt.\u0275fac=function(Nt){return new(Nt||kt)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ht.rL),t.Y36(Bt.Is,8),t.Y36(t.R0b),t.Y36(ut.t4),t.Y36(t.QbO,8))},kt.\u0275dir=t.lG2({type:kt,inputs:{disableRipple:"disableRipple"},features:[t.qOj]}),kt})(),Sn=(()=>{class kt extends Bn{constructor(Nt,ve,Se,yn,pi,Ci,en){super(Nt,ve,Se,yn,pi,Ci,en)}}return kt.\u0275fac=function(Nt){return new(Nt||kt)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ht.rL),t.Y36(Bt.Is,8),t.Y36(t.R0b),t.Y36(ut.t4),t.Y36(t.QbO,8))},kt.\u0275cmp=t.Xpm({type:kt,selectors:[["mat-tab-header"]],contentQueries:function(Nt,ve,Se){if(1&Nt&&t.Suo(Se,re,4),2&Nt){let yn;t.iGM(yn=t.CRH())&&(ve._items=yn)}},viewQuery:function(Nt,ve){if(1&Nt&&(t.Gf(hn,7),t.Gf(pe,7),t.Gf(Ze,7),t.Gf(Oe,7),t.Gf(Ie,5),t.Gf(Rt,5)),2&Nt){let Se;t.iGM(Se=t.CRH())&&(ve._inkBar=Se.first),t.iGM(Se=t.CRH())&&(ve._tabListContainer=Se.first),t.iGM(Se=t.CRH())&&(ve._tabList=Se.first),t.iGM(Se=t.CRH())&&(ve._tabListInner=Se.first),t.iGM(Se=t.CRH())&&(ve._nextPaginator=Se.first),t.iGM(Se=t.CRH())&&(ve._previousPaginator=Se.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Nt,ve){2&Nt&&t.ekj("mat-tab-header-pagination-controls-enabled",ve._showPaginationControls)("mat-tab-header-rtl","rtl"==ve._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[t.qOj],ngContentSelectors:wt,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Nt,ve){1&Nt&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return ve._handlePaginatorClick("before")})("mousedown",function(yn){return ve._handlePaginatorPress("before",yn)})("touchend",function(){return ve._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(yn){return ve._handleKeydown(yn)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return ve._onContentChanges()}),t.TgZ(7,"div",7,8),t.Hsn(9),t.qZA(),t._UZ(10,"mat-ink-bar"),t.qZA()(),t.TgZ(11,"button",9,10),t.NdJ("mousedown",function(yn){return ve._handlePaginatorPress("after",yn)})("click",function(){return ve._handlePaginatorClick("after")})("touchend",function(){return ve._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&Nt&&(t.ekj("mat-tab-header-pagination-disabled",ve._disableScrollBefore),t.Q6J("matRippleDisabled",ve._disableScrollBefore||ve.disableRipple)("disabled",ve._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===ve._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",ve._disableScrollAfter),t.Q6J("matRippleDisabled",ve._disableScrollAfter||ve.disableRipple)("disabled",ve._disableScrollAfter||null))},dependencies:[x.wG,u.wD,hn],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),kt})(),On=0;class He{}const cn=(0,x.pj)((0,x.Kr)(class{constructor(kt){this._elementRef=kt}}),"primary");let qe=(()=>{class kt extends cn{constructor(Nt,ve,Se,yn){super(Nt),this._changeDetectorRef=ve,this._animationMode=yn,this._tabs=new t.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=X.w.EMPTY,this._tabLabelSubscription=X.w.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new t.vpe,this.focusChange=new t.vpe,this.animationDone=new t.vpe,this.selectedTabChange=new t.vpe(!0),this._groupId=On++,this.animationDuration=Se&&Se.animationDuration?Se.animationDuration:"500ms",this.disablePagination=!(!Se||null==Se.disablePagination)&&Se.disablePagination,this.dynamicHeight=!(!Se||null==Se.dynamicHeight)&&Se.dynamicHeight,this.contentTabIndex=Se?.contentTabIndex??null,this.preserveContent=!!Se?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Nt){this._dynamicHeight=(0,xt.Ig)(Nt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Nt){this._indexToSelect=(0,xt.su)(Nt,null)}get animationDuration(){return this._animationDuration}set animationDuration(Nt){this._animationDuration=/^\d+$/.test(Nt+"")?Nt+"ms":Nt}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Nt){this._contentTabIndex=(0,xt.su)(Nt,null)}get disablePagination(){return this._disablePagination}set disablePagination(Nt){this._disablePagination=(0,xt.Ig)(Nt)}get preserveContent(){return this._preserveContent}set preserveContent(Nt){this._preserveContent=(0,xt.Ig)(Nt)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Nt){const ve=this._elementRef.nativeElement;ve.classList.remove(`mat-background-${this.backgroundColor}`),Nt&&ve.classList.add(`mat-background-${Nt}`),this._backgroundColor=Nt}ngAfterContentChecked(){const Nt=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Nt){const ve=null==this._selectedIndex;if(!ve){this.selectedTabChange.emit(this._createChangeEvent(Nt));const Se=this._tabBodyWrapper.nativeElement;Se.style.minHeight=Se.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Se,yn)=>Se.isActive=yn===Nt),ve||(this.selectedIndexChange.emit(Nt),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((ve,Se)=>{ve.position=Se-Nt,null!=this._selectedIndex&&0==ve.position&&!ve.origin&&(ve.origin=Nt-this._selectedIndex)}),this._selectedIndex!==Nt&&(this._selectedIndex=Nt,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Nt=this._clampTabIndex(this._indexToSelect);if(Nt===this._selectedIndex){const ve=this._tabs.toArray();let Se;for(let yn=0;yn{ve[Nt].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Nt))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,U.O)(this._allTabs)).subscribe(Nt=>{this._tabs.reset(Nt.filter(ve=>ve._closestTabGroup===this||!ve._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(Nt){const ve=this._tabHeader;ve&&(ve.focusIndex=Nt)}_focusChanged(Nt){this._lastFocusedTabIndex=Nt,this.focusChange.emit(this._createChangeEvent(Nt))}_createChangeEvent(Nt){const ve=new He;return ve.index=Nt,this._tabs&&this._tabs.length&&(ve.tab=this._tabs.toArray()[Nt]),ve}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,ft.T)(...this._tabs.map(Nt=>Nt._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Nt){return Math.min(this._tabs.length-1,Math.max(Nt||0,0))}_getTabLabelId(Nt){return`mat-tab-label-${this._groupId}-${Nt}`}_getTabContentId(Nt){return`mat-tab-content-${this._groupId}-${Nt}`}_setTabBodyWrapperHeight(Nt){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const ve=this._tabBodyWrapper.nativeElement;ve.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(ve.style.height=Nt+"px")}_removeTabBodyWrapperHeight(){const Nt=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Nt.clientHeight,Nt.style.height="",this.animationDone.emit()}_handleClick(Nt,ve,Se){Nt.disabled||(this.selectedIndex=ve.focusIndex=Se)}_getTabIndex(Nt,ve){return Nt.disabled?null:ve===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(Nt,ve){Nt&&"mouse"!==Nt&&"touch"!==Nt&&(this._tabHeader.focusIndex=ve)}}return kt.\u0275fac=function(Nt){return new(Nt||kt)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Yt,8),t.Y36(t.QbO,8))},kt.\u0275dir=t.lG2({type:kt,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[t.qOj]}),kt})(),we=(()=>{class kt extends qe{constructor(Nt,ve,Se,yn){super(Nt,ve,Se,yn)}}return kt.\u0275fac=function(Nt){return new(Nt||kt)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Yt,8),t.Y36(t.QbO,8))},kt.\u0275cmp=t.Xpm({type:kt,selectors:[["mat-tab-group"]],contentQueries:function(Nt,ve,Se){if(1&Nt&&t.Suo(Se,Wt,5),2&Nt){let yn;t.iGM(yn=t.CRH())&&(ve._allTabs=yn)}},viewQuery:function(Nt,ve){if(1&Nt&&(t.Gf(fe,5),t.Gf(Kt,5)),2&Nt){let Se;t.iGM(Se=t.CRH())&&(ve._tabBodyWrapper=Se.first),t.iGM(Se=t.CRH())&&(ve._tabHeader=Se.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Nt,ve){2&Nt&&t.ekj("mat-tab-group-dynamic-height",ve.dynamicHeight)("mat-tab-group-inverted-header","below"===ve.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[t._Bn([{provide:ze,useExisting:kt}]),t.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(Nt,ve){1&Nt&&(t.TgZ(0,"mat-tab-header",0,1),t.NdJ("indexFocused",function(yn){return ve._focusChanged(yn)})("selectFocusedIndex",function(yn){return ve.selectedIndex=yn}),t.YNc(2,Te,5,15,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.YNc(5,Ye,1,11,"mat-tab-body",5),t.qZA()),2&Nt&&(t.Q6J("selectedIndex",ve.selectedIndex||0)("disableRipple",ve.disableRipple)("disablePagination",ve.disablePagination),t.xp6(2),t.Q6J("ngForOf",ve._tabs),t.xp6(1),t.ekj("_mat-animation-noopable","NoopAnimations"===ve._animationMode),t.xp6(2),t.Q6J("ngForOf",ve._tabs))},dependencies:[h.mk,h.sg,h.O5,g.Pl,x.wG,l.kH,re,Ct,Sn],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),kt})(),Qe=0,te=(()=>{class kt extends Fi{constructor(Nt,ve,Se,yn,pi,Ci,en){super(Nt,yn,pi,ve,Se,Ci,en),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(Nt){const ve=this._elementRef.nativeElement.classList;ve.remove(`mat-background-${this.backgroundColor}`),Nt&&ve.add(`mat-background-${Nt}`),this._backgroundColor=Nt}get disableRipple(){return this._disableRipple}set disableRipple(Nt){this._disableRipple=(0,xt.Ig)(Nt)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,U.O)(null),(0,k.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const Nt=this._items.toArray();for(let ve=0;ve{class kt extends te{constructor(Nt,ve,Se,yn,pi,Ci,en){super(Nt,ve,Se,yn,pi,Ci,en)}}return kt.\u0275fac=function(Nt){return new(Nt||kt)(t.Y36(t.SBq),t.Y36(Bt.Is,8),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(ht.rL),t.Y36(ut.t4),t.Y36(t.QbO,8))},kt.\u0275cmp=t.Xpm({type:kt,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(Nt,ve,Se){if(1&Nt&&t.Suo(Se,sn,5),2&Nt){let yn;t.iGM(yn=t.CRH())&&(ve._items=yn)}},viewQuery:function(Nt,ve){if(1&Nt&&(t.Gf(hn,7),t.Gf(pe,7),t.Gf(Ze,7),t.Gf(Oe,7),t.Gf(Ie,5),t.Gf(Rt,5)),2&Nt){let Se;t.iGM(Se=t.CRH())&&(ve._inkBar=Se.first),t.iGM(Se=t.CRH())&&(ve._tabListContainer=Se.first),t.iGM(Se=t.CRH())&&(ve._tabList=Se.first),t.iGM(Se=t.CRH())&&(ve._tabListInner=Se.first),t.iGM(Se=t.CRH())&&(ve._nextPaginator=Se.first),t.iGM(Se=t.CRH())&&(ve._previousPaginator=Se.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(Nt,ve){2&Nt&&(t.uIk("role",ve._getRole()),t.ekj("mat-tab-header-pagination-controls-enabled",ve._showPaginationControls)("mat-tab-header-rtl","rtl"==ve._getLayoutDirection())("mat-primary","warn"!==ve.color&&"accent"!==ve.color)("mat-accent","accent"===ve.color)("mat-warn","warn"===ve.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[t.qOj],attrs:fn,ngContentSelectors:wt,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Nt,ve){1&Nt&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return ve._handlePaginatorClick("before")})("mousedown",function(yn){return ve._handlePaginatorPress("before",yn)})("touchend",function(){return ve._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(yn){return ve._handleKeydown(yn)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return ve._onContentChanges()}),t.TgZ(7,"div",7,8),t.Hsn(9),t.qZA(),t._UZ(10,"mat-ink-bar"),t.qZA()(),t.TgZ(11,"button",9,10),t.NdJ("mousedown",function(yn){return ve._handlePaginatorPress("after",yn)})("click",function(){return ve._handlePaginatorClick("after")})("touchend",function(){return ve._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&Nt&&(t.ekj("mat-tab-header-pagination-disabled",ve._disableScrollBefore),t.Q6J("matRippleDisabled",ve._disableScrollBefore||ve.disableRipple)("disabled",ve._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===ve._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",ve._disableScrollAfter),t.Q6J("matRippleDisabled",ve._disableScrollAfter||ve.disableRipple)("disabled",ve._disableScrollAfter||null))},dependencies:[x.wG,u.wD,hn],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2}),kt})();const $t=(0,x.sb)((0,x.Kr)((0,x.Id)(class{})));let $e=(()=>{class kt extends $t{constructor(Nt,ve,Se,yn,pi,Ci){super(),this._tabNavBar=Nt,this.elementRef=ve,this._focusMonitor=pi,this._isActive=!1,this.id="mat-tab-link-"+Qe++,this.rippleConfig=Se||{},this.tabIndex=parseInt(yn)||0,"NoopAnimations"===Ci&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(Nt){const ve=(0,xt.Ig)(Nt);ve!==this._isActive&&(this._isActive=ve,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(Nt){this._tabNavBar.tabPanel&&Nt.keyCode===Mt.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}return kt.\u0275fac=function(Nt){return new(Nt||kt)(t.Y36(te),t.Y36(t.SBq),t.Y36(x.Y2,8),t.$8M("tabindex"),t.Y36(l.tE),t.Y36(t.QbO,8))},kt.\u0275dir=t.lG2({type:kt,inputs:{active:"active",id:"id"},features:[t.qOj]}),kt})(),sn=(()=>{class kt extends $e{constructor(Nt,ve,Se,yn,pi,Ci,en,an){super(Nt,ve,pi,Ci,en,an),this._tabLinkRipple=new x.IR(this,Se,ve,yn),this._tabLinkRipple.setupTriggerEvents(ve.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return kt.\u0275fac=function(Nt){return new(Nt||kt)(t.Y36(Ee),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(ut.t4),t.Y36(x.Y2,8),t.$8M("tabindex"),t.Y36(l.tE),t.Y36(t.QbO,8))},kt.\u0275dir=t.lG2({type:kt,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(Nt,ve){1&Nt&&t.NdJ("focus",function(){return ve._handleFocus()})("keydown",function(yn){return ve._handleKeydown(yn)}),2&Nt&&(t.uIk("aria-controls",ve._getAriaControls())("aria-current",ve._getAriaCurrent())("aria-disabled",ve.disabled)("aria-selected",ve._getAriaSelected())("id",ve.id)("tabIndex",ve._getTabIndex())("role",ve._getRole()),t.ekj("mat-tab-disabled",ve.disabled)("mat-tab-label-active",ve.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[t.qOj]}),kt})(),me=(()=>{class kt{}return kt.\u0275fac=function(Nt){return new(Nt||kt)},kt.\u0275mod=t.oAB({type:kt}),kt.\u0275inj=t.cJS({imports:[h.ez,x.BQ,g.eL,x.si,u.Q8,l.rt,x.BQ]}),kt})()},83683:(K,W,_)=>{"use strict";_.d(W,{Ye:()=>D,g0:()=>O});var l=_(94650),u=_(3238),g=_(83353),h=_(36895);const t=["*",[["mat-toolbar-row"]]],x=["*","mat-toolbar-row"],T=(0,u.pj)(class{constructor(q){this._elementRef=q}});let U=(()=>{class q{}return q.\u0275fac=function($){return new($||q)},q.\u0275dir=l.lG2({type:q,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),q})(),D=(()=>{class q extends T{constructor($,X,at){super($),this._platform=X,this._document=at}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return q.\u0275fac=function($){return new($||q)(l.Y36(l.SBq),l.Y36(g.t4),l.Y36(h.K0))},q.\u0275cmp=l.Xpm({type:q,selectors:[["mat-toolbar"]],contentQueries:function($,X,at){if(1&$&&l.Suo(at,U,5),2&$){let rt;l.iGM(rt=l.CRH())&&(X._toolbarRows=rt)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function($,X){2&$&&l.ekj("mat-toolbar-multiple-rows",X._toolbarRows.length>0)("mat-toolbar-single-row",0===X._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[l.qOj],ngContentSelectors:x,decls:2,vars:0,template:function($,X){1&$&&(l.F$t(t),l.Hsn(0),l.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),q})(),O=(()=>{class q{}return q.\u0275fac=function($){return new($||q)},q.\u0275mod=l.oAB({type:q}),q.\u0275inj=l.cJS({imports:[u.BQ,u.BQ]}),q})()},10266:(K,W,_)=>{"use strict";_.d(W,{AV:()=>pe,gM:()=>ee});var l=_(98184),u=_(12687),g=_(36895),h=_(94650),t=_(3238),x=_(67376),T=_(40445),U=_(21281),D=_(29521),k=_(62289),O=_(83353),q=_(84080),Y=_(8929),$=_(7625),X=_(72986);_(37340);const rt=["tooltip"],qt="tooltip-panel",Vt=(0,O.i$)({passive:!0}),xt=new h.OlP("mat-tooltip-scroll-strategy"),ut={provide:xt,deps:[l.aV],useFactory:function ht(Oe){return()=>Oe.scrollStrategies.reposition({scrollThrottle:20})}},Mt=new h.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function It(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let wt=(()=>{class Oe{constructor(Rt,fe,Kt,ue,ce,je,Te,Ye,fn,An,xe,hn){this._overlay=Rt,this._elementRef=fe,this._scrollDispatcher=Kt,this._viewContainerRef=ue,this._ngZone=ce,this._platform=je,this._ariaDescriber=Te,this._focusMonitor=Ye,this._dir=An,this._defaultOptions=xe,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Y.xQ,this._scrollStrategy=fn,this._document=hn,xe&&(xe.position&&(this.position=xe.position),xe.touchGestures&&(this.touchGestures=xe.touchGestures)),An.change.pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(Rt){Rt!==this._position&&(this._position=Rt,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(Rt){this._disabled=(0,U.Ig)(Rt),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Rt){this._showDelay=(0,U.su)(Rt)}get hideDelay(){return this._hideDelay}set hideDelay(Rt){this._hideDelay=(0,U.su)(Rt),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(Rt){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Rt?String(Rt).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(Rt){this._tooltipClass=Rt,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,$.R)(this._destroyed)).subscribe(Rt=>{Rt?"keyboard"===Rt&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Rt=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([fe,Kt])=>{Rt.removeEventListener(fe,Kt,Vt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Rt,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Rt)}show(Rt=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const fe=this._createOverlay();this._detach(),this._portal=this._portal||new q.C5(this._tooltipComponent,this._viewContainerRef);const Kt=this._tooltipInstance=fe.attach(this._portal).instance;Kt._triggerElement=this._elementRef.nativeElement,Kt._mouseLeaveHideDelay=this._hideDelay,Kt.afterHidden().pipe((0,$.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Kt.show(Rt)}hide(Rt=this.hideDelay){const fe=this._tooltipInstance;fe&&(fe.isVisible()?fe.hide(Rt):(fe._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const Rt=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),fe=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Rt);return fe.positionChanges.pipe((0,$.R)(this._destroyed)).subscribe(Kt=>{this._updateCurrentPositionClass(Kt.connectionPair),this._tooltipInstance&&Kt.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:fe,panelClass:`${this._cssClassPrefix}-${qt}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,$.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,$.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,$.R)(this._destroyed)).subscribe(Kt=>{this._isTooltipVisible()&&Kt.keyCode===D.hY&&!(0,D.Vb)(Kt)&&(Kt.preventDefault(),Kt.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(Rt){const fe=Rt.getConfig().positionStrategy,Kt=this._getOrigin(),ue=this._getOverlayPosition();fe.withPositions([this._addOffset({...Kt.main,...ue.main}),this._addOffset({...Kt.fallback,...ue.fallback})])}_addOffset(Rt){return Rt}_getOrigin(){const Rt=!this._dir||"ltr"==this._dir.value,fe=this.position;let Kt;"above"==fe||"below"==fe?Kt={originX:"center",originY:"above"==fe?"top":"bottom"}:"before"==fe||"left"==fe&&Rt||"right"==fe&&!Rt?Kt={originX:"start",originY:"center"}:("after"==fe||"right"==fe&&Rt||"left"==fe&&!Rt)&&(Kt={originX:"end",originY:"center"});const{x:ue,y:ce}=this._invertPosition(Kt.originX,Kt.originY);return{main:Kt,fallback:{originX:ue,originY:ce}}}_getOverlayPosition(){const Rt=!this._dir||"ltr"==this._dir.value,fe=this.position;let Kt;"above"==fe?Kt={overlayX:"center",overlayY:"bottom"}:"below"==fe?Kt={overlayX:"center",overlayY:"top"}:"before"==fe||"left"==fe&&Rt||"right"==fe&&!Rt?Kt={overlayX:"end",overlayY:"center"}:("after"==fe||"right"==fe&&Rt||"left"==fe&&!Rt)&&(Kt={overlayX:"start",overlayY:"center"});const{x:ue,y:ce}=this._invertPosition(Kt.overlayX,Kt.overlayY);return{main:Kt,fallback:{overlayX:ue,overlayY:ce}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,X.q)(1),(0,$.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Rt){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Rt,this._tooltipInstance._markForCheck())}_invertPosition(Rt,fe){return"above"===this.position||"below"===this.position?"top"===fe?fe="bottom":"bottom"===fe&&(fe="top"):"end"===Rt?Rt="start":"start"===Rt&&(Rt="end"),{x:Rt,y:fe}}_updateCurrentPositionClass(Rt){const{overlayY:fe,originX:Kt,originY:ue}=Rt;let ce;if(ce="center"===fe?this._dir&&"rtl"===this._dir.value?"end"===Kt?"left":"right":"start"===Kt?"left":"right":"bottom"===fe&&"top"===ue?"above":"below",ce!==this._currentPosition){const je=this._overlayRef;if(je){const Te=`${this._cssClassPrefix}-${qt}-`;je.removePanelClass(Te+this._currentPosition),je.addPanelClass(Te+ce)}this._currentPosition=ce}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Rt=[];if(this._platformSupportsMouseEvents())Rt.push(["mouseleave",fe=>{const Kt=fe.relatedTarget;(!Kt||!this._overlayRef?.overlayElement.contains(Kt))&&this.hide()}],["wheel",fe=>this._wheelListener(fe)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const fe=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Rt.push(["touchend",fe],["touchcancel",fe])}this._addListeners(Rt),this._passiveListeners.push(...Rt)}_addListeners(Rt){Rt.forEach(([fe,Kt])=>{this._elementRef.nativeElement.addEventListener(fe,Kt,Vt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Rt){if(this._isTooltipVisible()){const fe=this._document.elementFromPoint(Rt.clientX,Rt.clientY),Kt=this._elementRef.nativeElement;fe!==Kt&&!Kt.contains(fe)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Rt=this.touchGestures;if("off"!==Rt){const fe=this._elementRef.nativeElement,Kt=fe.style;("on"===Rt||"INPUT"!==fe.nodeName&&"TEXTAREA"!==fe.nodeName)&&(Kt.userSelect=Kt.msUserSelect=Kt.webkitUserSelect=Kt.MozUserSelect="none"),("on"===Rt||!fe.draggable)&&(Kt.webkitUserDrag="none"),Kt.touchAction="none",Kt.webkitTapHighlightColor="transparent"}}}return Oe.\u0275fac=function(Rt){h.$Z()},Oe.\u0275dir=h.lG2({type:Oe,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),Oe})(),ee=(()=>{class Oe extends wt{constructor(Rt,fe,Kt,ue,ce,je,Te,Ye,fn,An,xe,hn){super(Rt,fe,Kt,ue,ce,je,Te,Ye,fn,An,xe,hn),this._tooltipComponent=_e}}return Oe.\u0275fac=function(Rt){return new(Rt||Oe)(h.Y36(l.aV),h.Y36(h.SBq),h.Y36(x.mF),h.Y36(h.s_b),h.Y36(h.R0b),h.Y36(O.t4),h.Y36(u.$s),h.Y36(u.tE),h.Y36(xt),h.Y36(T.Is,8),h.Y36(Mt,8),h.Y36(g.K0))},Oe.\u0275dir=h.lG2({type:Oe,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[h.qOj]}),Oe})(),Ft=(()=>{class Oe{constructor(Rt,fe){this._changeDetectorRef=Rt,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Y.xQ,this._animationsDisabled="NoopAnimations"===fe}show(Rt){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Rt)}hide(Rt){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Rt)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:Rt}){(!Rt||!this._triggerElement.contains(Rt))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:Rt}){(Rt===this._showAnimation||Rt===this._hideAnimation)&&this._finalizeAnimation(Rt===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Rt){Rt?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Rt){const fe=this._tooltip.nativeElement,Kt=this._showAnimation,ue=this._hideAnimation;if(fe.classList.remove(Rt?ue:Kt),fe.classList.add(Rt?Kt:ue),this._isVisible=Rt,Rt&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const ce=getComputedStyle(fe);("0s"===ce.getPropertyValue("animation-duration")||"none"===ce.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Rt&&this._onShow(),this._animationsDisabled&&(fe.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Rt))}}return Oe.\u0275fac=function(Rt){return new(Rt||Oe)(h.Y36(h.sBO),h.Y36(h.QbO,8))},Oe.\u0275dir=h.lG2({type:Oe}),Oe})(),_e=(()=>{class Oe extends Ft{constructor(Rt,fe,Kt){super(Rt,Kt),this._breakpointObserver=fe,this._isHandset=this._breakpointObserver.observe(k.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return Oe.\u0275fac=function(Rt){return new(Rt||Oe)(h.Y36(h.sBO),h.Y36(k.Yg),h.Y36(h.QbO,8))},Oe.\u0275cmp=h.Xpm({type:Oe,selectors:[["mat-tooltip-component"]],viewQuery:function(Rt,fe){if(1&Rt&&h.Gf(rt,7),2&Rt){let Kt;h.iGM(Kt=h.CRH())&&(fe._tooltip=Kt.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(Rt,fe){1&Rt&&h.NdJ("mouseleave",function(ue){return fe._handleMouseLeave(ue)}),2&Rt&&h.Udp("zoom",fe.isVisible()?1:null)},features:[h.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(Rt,fe){if(1&Rt&&(h.TgZ(0,"div",0,1),h.NdJ("animationend",function(ue){return fe._handleAnimationEnd(ue)}),h.ALo(2,"async"),h._uU(3),h.qZA()),2&Rt){let Kt;h.ekj("mat-tooltip-handset",null==(Kt=h.lcZ(2,4,fe._isHandset))?null:Kt.matches),h.Q6J("ngClass",fe.tooltipClass),h.xp6(3),h.Oqu(fe.message)}},dependencies:[g.mk,g.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),Oe})(),pe=(()=>{class Oe{}return Oe.\u0275fac=function(Rt){return new(Rt||Oe)},Oe.\u0275mod=h.oAB({type:Oe}),Oe.\u0275inj=h.cJS({providers:[ut],imports:[u.rt,g.ez,l.U8,t.BQ,t.BQ,x.ZD]}),Oe})()},35423:(K,W,_)=>{"use strict";_.d(W,{Ar:()=>X,GZ:()=>Y,JZ:()=>qt,WX:()=>Bt,ah:()=>$,dp:()=>Tt,eu:()=>rt,fQ:()=>q,gi:()=>at,kc:()=>Vt,uo:()=>O});var l=_(57851),u=_(94650),g=_(3238),h=_(21281),t=_(95017),x=_(591),T=_(36787),U=_(72986),D=_(24850);const k=(0,g.sb)((0,g.Id)(l.Hs));let O=(()=>{class bt extends k{constructor(ht,ut,Mt){super(ht,ut),this.tabIndex=Number(Mt)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return bt.\u0275fac=function(ht){return new(ht||bt)(u.Y36(u.SBq),u.Y36(l._0),u.$8M("tabindex"))},bt.\u0275dir=u.lG2({type:bt,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[u._Bn([{provide:l.Hs,useExisting:bt}]),u.qOj]}),bt})(),q=(()=>{class bt extends l.rO{}return bt.\u0275fac=function(){let xt;return function(ut){return(xt||(xt=u.n5z(bt)))(ut||bt)}}(),bt.\u0275dir=u.lG2({type:bt,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[u._Bn([{provide:l.rO,useExisting:bt}]),u.qOj]}),bt})(),Y=(()=>{class bt extends l.Xx{constructor(ht,ut,Mt,It){super(ht,ut,Mt),this._disabled=!1,this.tabIndex=Number(It)||0}get disabled(){return this._disabled}set disabled(ht){this._disabled=(0,h.Ig)(ht)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ht){this._tabIndex=ht??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return bt.\u0275fac=function(ht){return new(ht||bt)(u.Y36(u.SBq),u.Y36(l._0),u.Y36(u.ZZ4),u.$8M("tabindex"))},bt.\u0275dir=u.lG2({type:bt,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[u._Bn([{provide:l.Xx,useExisting:bt},{provide:l.Hs,useExisting:bt},{provide:l.HI,useExisting:bt}]),u.qOj]}),bt})(),$=(()=>{class bt extends l.XJ{get level(){return this._level}set level(ht){this._setLevelInput(ht)}get indent(){return this._indent}set indent(ht){this._setIndentInput(ht)}}return bt.\u0275fac=function(){let xt;return function(ut){return(xt||(xt=u.n5z(bt)))(ut||bt)}}(),bt.\u0275dir=u.lG2({type:bt,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[u._Bn([{provide:l.XJ,useExisting:bt}]),u.qOj]}),bt})(),X=(()=>{class bt{constructor(ht,ut){this.viewContainer=ht,this._node=ut}}return bt.\u0275fac=function(ht){return new(ht||bt)(u.Y36(u.s_b),u.Y36(l.HI,8))},bt.\u0275dir=u.lG2({type:bt,selectors:[["","matTreeNodeOutlet",""]],features:[u._Bn([{provide:l.cu,useExisting:bt}])]}),bt})(),at=(()=>{class bt extends l._0{}return bt.\u0275fac=function(){let xt;return function(ut){return(xt||(xt=u.n5z(bt)))(ut||bt)}}(),bt.\u0275cmp=u.Xpm({type:bt,selectors:[["mat-tree"]],viewQuery:function(ht,ut){if(1&ht&&u.Gf(X,7),2&ht){let Mt;u.iGM(Mt=u.CRH())&&(ut._nodeOutlet=Mt.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[u._Bn([{provide:l._0,useExisting:bt}]),u.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(ht,ut){1&ht&&u.GkF(0,0)},dependencies:[X],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),bt})(),rt=(()=>{class bt extends l.Ud{}return bt.\u0275fac=function(){let xt;return function(ut){return(xt||(xt=u.n5z(bt)))(ut||bt)}}(),bt.\u0275dir=u.lG2({type:bt,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[u._Bn([{provide:l.Ud,useExisting:bt}]),u.qOj]}),bt})(),Tt=(()=>{class bt{}return bt.\u0275fac=function(ht){return new(ht||bt)},bt.\u0275mod=u.oAB({type:bt}),bt.\u0275inj=u.cJS({imports:[l.nZ,g.BQ,g.BQ]}),bt})();class qt{constructor(xt,ht,ut,Mt){this.transformFunction=xt,this.getLevel=ht,this.isExpandable=ut,this.getChildren=Mt}_flattenNode(xt,ht,ut,Mt){const It=this.transformFunction(xt,ht);if(ut.push(It),this.isExpandable(It)){const wt=this.getChildren(xt);wt&&(Array.isArray(wt)?this._flattenChildren(wt,ht,ut,Mt):wt.pipe((0,U.q)(1)).subscribe(ee=>{this._flattenChildren(ee,ht,ut,Mt)}))}return ut}_flattenChildren(xt,ht,ut,Mt){xt.forEach((It,wt)=>{let ee=Mt.slice();ee.push(wt!=xt.length-1),this._flattenNode(It,ht+1,ut,ee)})}flattenNodes(xt){let ht=[];return xt.forEach(ut=>this._flattenNode(ut,0,ht,[])),ht}expandFlattenedNodes(xt,ht){let ut=[],Mt=[];return Mt[0]=!0,xt.forEach(It=>{let wt=!0;for(let ee=0;ee<=this.getLevel(It);ee++)wt=wt&&Mt[ee];wt&&ut.push(It),this.isExpandable(It)&&(Mt[this.getLevel(It)+1]=ht.isExpanded(It))}),ut}}class Vt extends t.o2{constructor(xt,ht,ut){super(),this._treeControl=xt,this._treeFlattener=ht,this._flattenedData=new x.X([]),this._expandedData=new x.X([]),this._data=new x.X([]),ut&&(this.data=ut)}get data(){return this._data.value}set data(xt){this._data.next(xt),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(xt){return(0,T.T)(xt.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,D.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class Bt extends t.o2{constructor(){super(...arguments),this._data=new x.X([])}get data(){return this._data.value}set data(xt){this._data.next(xt)}connect(xt){return(0,T.T)(xt.viewChange,this._data).pipe((0,D.U)(()=>this.data))}disconnect(){}}},11481:(K,W,_)=>{"use strict";_.d(W,{Dx:()=>Yt,H7:()=>Se,b2:()=>Wt,q6:()=>si,se:()=>Ft});var l=_(36895),u=_(94650);class g extends l.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class h extends g{static makeCurrent(){(0,l.HT)(new h)}onAndCancel(an,Be,In){return an.addEventListener(Be,In,!1),()=>{an.removeEventListener(Be,In,!1)}}dispatchEvent(an,Be){an.dispatchEvent(Be)}remove(an){an.parentNode&&an.parentNode.removeChild(an)}createElement(an,Be){return(Be=Be||this.getDefaultDocument()).createElement(an)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(an){return an.nodeType===Node.ELEMENT_NODE}isShadowRoot(an){return an instanceof DocumentFragment}getGlobalEventTarget(an,Be){return"window"===Be?window:"document"===Be?an:"body"===Be?an.body:null}getBaseHref(an){const Be=function x(){return t=t||document.querySelector("base"),t?t.getAttribute("href"):null}();return null==Be?null:function U(en){T=T||document.createElement("a"),T.setAttribute("href",en);const an=T.pathname;return"/"===an.charAt(0)?an:`/${an}`}(Be)}resetBaseElement(){t=null}getUserAgent(){return window.navigator.userAgent}getCookie(an){return(0,l.Mx)(document.cookie,an)}}let T,t=null;const D=new u.OlP("TRANSITION_ID"),O=[{provide:u.ip1,useFactory:function k(en,an,Be){return()=>{Be.get(u.CZH).donePromise.then(()=>{const In=(0,l.q)(),Wn=an.querySelectorAll(`style[ng-transition="${en}"]`);for(let ki=0;ki{class en{build(){return new XMLHttpRequest}}return en.\u0275fac=function(Be){return new(Be||en)},en.\u0275prov=u.Yz7({token:en,factory:en.\u0275fac}),en})();const $=new u.OlP("EventManagerPlugins");let X=(()=>{class en{constructor(Be,In){this._zone=In,this._eventNameToPlugin=new Map,Be.forEach(Wn=>Wn.manager=this),this._plugins=Be.slice().reverse()}addEventListener(Be,In,Wn){return this._findPluginFor(In).addEventListener(Be,In,Wn)}addGlobalEventListener(Be,In,Wn){return this._findPluginFor(In).addGlobalEventListener(Be,In,Wn)}getZone(){return this._zone}_findPluginFor(Be){const In=this._eventNameToPlugin.get(Be);if(In)return In;const Wn=this._plugins;for(let ki=0;ki{class en{constructor(){this._stylesSet=new Set}addStyles(Be){const In=new Set;Be.forEach(Wn=>{this._stylesSet.has(Wn)||(this._stylesSet.add(Wn),In.add(Wn))}),this.onStylesAdded(In)}onStylesAdded(Be){}getAllStyles(){return Array.from(this._stylesSet)}}return en.\u0275fac=function(Be){return new(Be||en)},en.\u0275prov=u.Yz7({token:en,factory:en.\u0275fac}),en})(),ft=(()=>{class en extends rt{constructor(Be){super(),this._doc=Be,this._hostNodes=new Map,this._hostNodes.set(Be.head,[])}_addStylesToHost(Be,In,Wn){Be.forEach(ki=>{const Hi=this._doc.createElement("style");Hi.textContent=ki,Wn.push(In.appendChild(Hi))})}addHost(Be){const In=[];this._addStylesToHost(this._stylesSet,Be,In),this._hostNodes.set(Be,In)}removeHost(Be){const In=this._hostNodes.get(Be);In&&In.forEach(Tt),this._hostNodes.delete(Be)}onStylesAdded(Be){this._hostNodes.forEach((In,Wn)=>{this._addStylesToHost(Be,Wn,In)})}ngOnDestroy(){this._hostNodes.forEach(Be=>Be.forEach(Tt))}}return en.\u0275fac=function(Be){return new(Be||en)(u.LFG(l.K0))},en.\u0275prov=u.Yz7({token:en,factory:en.\u0275fac}),en})();function Tt(en){(0,l.q)().remove(en)}const qt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Vt=/%COMP%/g;function It(en,an,Be){for(let In=0;In{if("__ngUnwrap__"===an)return en;!1===en(an)&&(an.preventDefault(),an.returnValue=!1)}}let Ft=(()=>{class en{constructor(Be,In,Wn){this.eventManager=Be,this.sharedStylesHost=In,this.appId=Wn,this.rendererByCompId=new Map,this.defaultRenderer=new _e(Be)}createRenderer(Be,In){if(!Be||!In)return this.defaultRenderer;switch(In.encapsulation){case u.ifc.Emulated:{let Wn=this.rendererByCompId.get(In.id);return Wn||(Wn=new Ie(this.eventManager,this.sharedStylesHost,In,this.appId),this.rendererByCompId.set(In.id,Wn)),Wn.applyToHost(Be),Wn}case 1:case u.ifc.ShadowDom:return new Rt(this.eventManager,this.sharedStylesHost,Be,In);default:if(!this.rendererByCompId.has(In.id)){const Wn=It(In.id,In.styles,[]);this.sharedStylesHost.addStyles(Wn),this.rendererByCompId.set(In.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return en.\u0275fac=function(Be){return new(Be||en)(u.LFG(X),u.LFG(ft),u.LFG(u.AFp))},en.\u0275prov=u.Yz7({token:en,factory:en.\u0275fac}),en})();class _e{constructor(an){this.eventManager=an,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(an,Be){return Be?document.createElementNS(qt[Be]||Be,an):document.createElement(an)}createComment(an){return document.createComment(an)}createText(an){return document.createTextNode(an)}appendChild(an,Be){(Oe(an)?an.content:an).appendChild(Be)}insertBefore(an,Be,In){an&&(Oe(an)?an.content:an).insertBefore(Be,In)}removeChild(an,Be){an&&an.removeChild(Be)}selectRootElement(an,Be){let In="string"==typeof an?document.querySelector(an):an;if(!In)throw new Error(`The selector "${an}" did not match any elements`);return Be||(In.textContent=""),In}parentNode(an){return an.parentNode}nextSibling(an){return an.nextSibling}setAttribute(an,Be,In,Wn){if(Wn){Be=Wn+":"+Be;const ki=qt[Wn];ki?an.setAttributeNS(ki,Be,In):an.setAttribute(Be,In)}else an.setAttribute(Be,In)}removeAttribute(an,Be,In){if(In){const Wn=qt[In];Wn?an.removeAttributeNS(Wn,Be):an.removeAttribute(`${In}:${Be}`)}else an.removeAttribute(Be)}addClass(an,Be){an.classList.add(Be)}removeClass(an,Be){an.classList.remove(Be)}setStyle(an,Be,In,Wn){Wn&(u.JOm.DashCase|u.JOm.Important)?an.style.setProperty(Be,In,Wn&u.JOm.Important?"important":""):an.style[Be]=In}removeStyle(an,Be,In){In&u.JOm.DashCase?an.style.removeProperty(Be):an.style[Be]=""}setProperty(an,Be,In){an[Be]=In}setValue(an,Be){an.nodeValue=Be}listen(an,Be,In){return"string"==typeof an?this.eventManager.addGlobalEventListener(an,Be,wt(In)):this.eventManager.addEventListener(an,Be,wt(In))}}function Oe(en){return"TEMPLATE"===en.tagName&&void 0!==en.content}class Ie extends _e{constructor(an,Be,In,Wn){super(an),this.component=In;const ki=It(Wn+"-"+In.id,In.styles,[]);Be.addStyles(ki),this.contentAttr=function ut(en){return"_ngcontent-%COMP%".replace(Vt,en)}(Wn+"-"+In.id),this.hostAttr=function Mt(en){return"_nghost-%COMP%".replace(Vt,en)}(Wn+"-"+In.id)}applyToHost(an){super.setAttribute(an,this.hostAttr,"")}createElement(an,Be){const In=super.createElement(an,Be);return super.setAttribute(In,this.contentAttr,""),In}}class Rt extends _e{constructor(an,Be,In,Wn){super(an),this.sharedStylesHost=Be,this.hostEl=In,this.shadowRoot=In.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ki=It(Wn.id,Wn.styles,[]);for(let Hi=0;Hi{class en extends at{constructor(Be){super(Be)}supports(Be){return!0}addEventListener(Be,In,Wn){return Be.addEventListener(In,Wn,!1),()=>this.removeEventListener(Be,In,Wn)}removeEventListener(Be,In,Wn){return Be.removeEventListener(In,Wn)}}return en.\u0275fac=function(Be){return new(Be||en)(u.LFG(l.K0))},en.\u0275prov=u.Yz7({token:en,factory:en.\u0275fac}),en})();const Kt=["alt","control","meta","shift"],ue={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ce={alt:en=>en.altKey,control:en=>en.ctrlKey,meta:en=>en.metaKey,shift:en=>en.shiftKey};let je=(()=>{class en extends at{constructor(Be){super(Be)}supports(Be){return null!=en.parseEventName(Be)}addEventListener(Be,In,Wn){const ki=en.parseEventName(In),Hi=en.eventCallback(ki.fullKey,Wn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,l.q)().onAndCancel(Be,ki.domEventName,Hi))}static parseEventName(Be){const In=Be.toLowerCase().split("."),Wn=In.shift();if(0===In.length||"keydown"!==Wn&&"keyup"!==Wn)return null;const ki=en._normalizeKey(In.pop());let Hi="",Ji=In.indexOf("code");if(Ji>-1&&(In.splice(Ji,1),Hi="code."),Kt.forEach(qo=>{const Pe=In.indexOf(qo);Pe>-1&&(In.splice(Pe,1),Hi+=qo+".")}),Hi+=ki,0!=In.length||0===ki.length)return null;const Uo={};return Uo.domEventName=Wn,Uo.fullKey=Hi,Uo}static matchEventFullKeyCode(Be,In){let Wn=ue[Be.key]||Be.key,ki="";return In.indexOf("code.")>-1&&(Wn=Be.code,ki="code."),!(null==Wn||!Wn)&&(Wn=Wn.toLowerCase()," "===Wn?Wn="space":"."===Wn&&(Wn="dot"),Kt.forEach(Hi=>{Hi!==Wn&&(0,ce[Hi])(Be)&&(ki+=Hi+".")}),ki+=Wn,ki===In)}static eventCallback(Be,In,Wn){return ki=>{en.matchEventFullKeyCode(ki,Be)&&Wn.runGuarded(()=>In(ki))}}static _normalizeKey(Be){return"esc"===Be?"escape":Be}}return en.\u0275fac=function(Be){return new(Be||en)(u.LFG(l.K0))},en.\u0275prov=u.Yz7({token:en,factory:en.\u0275fac}),en})();const si=(0,u.eFA)(u._c5,"browser",[{provide:u.Lbi,useValue:l.bD},{provide:u.g9A,useValue:function hn(){h.makeCurrent()},multi:!0},{provide:l.K0,useFactory:function _n(){return(0,u.RDi)(document),document},deps:[]}]),oi=new u.OlP(""),Vn=[{provide:u.rWj,useClass:class q{addToWindow(an){u.dqk.getAngularTestability=(In,Wn=!0)=>{const ki=an.findTestabilityInTree(In,Wn);if(null==ki)throw new Error("Could not find testability for element.");return ki},u.dqk.getAllAngularTestabilities=()=>an.getAllTestabilities(),u.dqk.getAllAngularRootElements=()=>an.getAllRootElements(),u.dqk.frameworkStabilizers||(u.dqk.frameworkStabilizers=[]),u.dqk.frameworkStabilizers.push(In=>{const Wn=u.dqk.getAllAngularTestabilities();let ki=Wn.length,Hi=!1;const Ji=function(Uo){Hi=Hi||Uo,ki--,0==ki&&In(Hi)};Wn.forEach(function(Uo){Uo.whenStable(Ji)})})}findTestabilityInTree(an,Be,In){return null==Be?null:an.getTestability(Be)??(In?(0,l.q)().isShadowRoot(Be)?this.findTestabilityInTree(an,Be.host,!0):this.findTestabilityInTree(an,Be.parentElement,!0):null)}},deps:[]},{provide:u.lri,useClass:u.dDg,deps:[u.R0b,u.eoX,u.rWj]},{provide:u.dDg,useClass:u.dDg,deps:[u.R0b,u.eoX,u.rWj]}],ze=[{provide:u.zSh,useValue:"root"},{provide:u.qLn,useFactory:function Re(){return new u.qLn},deps:[]},{provide:$,useClass:fe,multi:!0,deps:[l.K0,u.R0b,u.Lbi]},{provide:$,useClass:je,multi:!0,deps:[l.K0]},{provide:Ft,useClass:Ft,deps:[X,ft,u.AFp]},{provide:u.FYo,useExisting:Ft},{provide:rt,useExisting:ft},{provide:ft,useClass:ft,deps:[l.K0]},{provide:X,useClass:X,deps:[$,u.R0b]},{provide:l.JF,useClass:Y,deps:[]},[]];let Wt=(()=>{class en{constructor(Be){}static withServerTransition(Be){return{ngModule:en,providers:[{provide:u.AFp,useValue:Be.appId},{provide:D,useExisting:u.AFp},O]}}}return en.\u0275fac=function(Be){return new(Be||en)(u.LFG(oi,12))},en.\u0275mod=u.oAB({type:en}),en.\u0275inj=u.cJS({providers:[...ze,...Vn],imports:[l.ez,u.hGG]}),en})(),Yt=(()=>{class en{constructor(Be){this._doc=Be}getTitle(){return this._doc.title}setTitle(Be){this._doc.title=Be||""}}return en.\u0275fac=function(Be){return new(Be||en)(u.LFG(l.K0))},en.\u0275prov=u.Yz7({token:en,factory:function(Be){let In=null;return In=Be?new Be:function Ct(){return new Yt((0,u.LFG)(l.K0))}(),In},providedIn:"root"}),en})();typeof window<"u"&&window;let Se=(()=>{class en{}return en.\u0275fac=function(Be){return new(Be||en)},en.\u0275prov=u.Yz7({token:en,factory:function(Be){let In=null;return In=Be?new(Be||en):u.LFG(pi),In},providedIn:"root"}),en})(),pi=(()=>{class en extends Se{constructor(Be){super(),this._doc=Be}sanitize(Be,In){if(null==In)return null;switch(Be){case u.q3G.NONE:return In;case u.q3G.HTML:return(0,u.qzn)(In,"HTML")?(0,u.z3N)(In):(0,u.EiD)(this._doc,String(In)).toString();case u.q3G.STYLE:return(0,u.qzn)(In,"Style")?(0,u.z3N)(In):In;case u.q3G.SCRIPT:if((0,u.qzn)(In,"Script"))return(0,u.z3N)(In);throw new Error("unsafe value used in a script context");case u.q3G.URL:return(0,u.qzn)(In,"URL")?(0,u.z3N)(In):(0,u.mCW)(String(In));case u.q3G.RESOURCE_URL:if((0,u.qzn)(In,"ResourceURL"))return(0,u.z3N)(In);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${Be} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(Be){return(0,u.JVY)(Be)}bypassSecurityTrustStyle(Be){return(0,u.L6k)(Be)}bypassSecurityTrustScript(Be){return(0,u.eBb)(Be)}bypassSecurityTrustUrl(Be){return(0,u.LAX)(Be)}bypassSecurityTrustResourceUrl(Be){return(0,u.pB0)(Be)}}return en.\u0275fac=function(Be){return new(Be||en)(u.LFG(l.K0))},en.\u0275prov=u.Yz7({token:en,factory:function(Be){let In=null;return In=Be?new Be:function yn(en){return new pi(en.get(l.K0))}(u.LFG(u.zs3)),In},providedIn:"root"}),en})()},83689:(K,W,_)=>{"use strict";_.d(W,{gz:()=>kr,m2:()=>La,wN:()=>jn,F0:()=>na,rH:()=>Il,Od:()=>qu,yS:()=>Js,Bz:()=>Ap,lC:()=>Xo});var l=_(94650),u=_(5254),g=_(21086),h=_(591),t=_(84450),x=_(23426),T=_(61221),U=_(88514),D=_(4843),k=_(61737),O=_(56498),q=_(68896),Y=_(71762),$=_(8929),X=_(36895),at=_(24850),rt=_(87545),ft=_(72986),Tt=_(1059),qt=_(92198),Vt=_(61709),Bt=_(87224),bt=_(21406),xt=_(22868),ht=_(27221),ut=_(43489);function Mt(pt,mt){let ot=!1;return arguments.length>=2&&(ot=!0),function(jt){return jt.lift(new It(pt,mt,ot))}}class It{constructor(mt,ot,Zt=!1){this.accumulator=mt,this.seed=ot,this.hasSeed=Zt}call(mt,ot){return ot.subscribe(new wt(mt,this.accumulator,this.seed,this.hasSeed))}}class wt extends ut.L{constructor(mt,ot,Zt,jt){super(mt),this.accumulator=ot,this._seed=Zt,this.hasSeed=jt,this.index=0}get seed(){return this._seed}set seed(mt){this.hasSeed=!0,this._seed=mt}_next(mt){if(this.hasSeed)return this._tryNext(mt);this.seed=mt,this.destination.next(mt)}_tryNext(mt){const ot=this.index++;let Zt;try{Zt=this.accumulator(this.seed,mt,ot)}catch(jt){this.destination.error(jt)}this.seed=Zt,this.destination.next(Zt)}}var ee=_(94231);function Ft(pt){return function(ot){return 0===pt?(0,q.c)():ot.lift(new _e(pt))}}class _e{constructor(mt){if(this.total=mt,this.total<0)throw new ee.W}call(mt,ot){return ot.subscribe(new pe(mt,this.total))}}class pe extends ut.L{constructor(mt,ot){super(mt),this.total=ot,this.ring=new Array,this.count=0}_next(mt){const ot=this.ring,Zt=this.total,jt=this.count++;ot.length0){const Zt=this.count>=this.total?this.total:this.count,jt=this.ring;for(let se=0;se=2;return Zt=>Zt.pipe(pt?(0,qt.h)((jt,se)=>pt(jt,se,Zt)):Ie.y,Ft(1),ot?(0,Oe.d)(mt):(0,Ze.T)(()=>new t.K))}var fe=_(44290),Kt=_(77604),ue=_(40537),ce=_(74327),je=_(89146),Te=_(11481);const Ye="primary",fn=Symbol("RouteTitle");class An{constructor(mt){this.params=mt||{}}has(mt){return Object.prototype.hasOwnProperty.call(this.params,mt)}get(mt){if(this.has(mt)){const ot=this.params[mt];return Array.isArray(ot)?ot[0]:ot}return null}getAll(mt){if(this.has(mt)){const ot=this.params[mt];return Array.isArray(ot)?ot:[ot]}return[]}get keys(){return Object.keys(this.params)}}function xe(pt){return new An(pt)}function hn(pt,mt,ot){const Zt=ot.path.split("/");if(Zt.length>pt.length||"full"===ot.pathMatch&&(mt.hasChildren()||Zt.lengthZt[se]===jt)}return pt===mt}function si(pt){return Array.prototype.concat.apply([],pt)}function oi(pt){return pt.length>0?pt[pt.length-1]:null}function ze(pt,mt){for(const ot in pt)pt.hasOwnProperty(ot)&&mt(pt[ot],ot)}function Wt(pt){return(0,l.CqO)(pt)?pt:(0,l.QGY)(pt)?(0,u.D)(Promise.resolve(pt)):(0,g.of)(pt)}const J=!1,Q={exact:function re(pt,mt,ot){if(!He(pt.segments,mt.segments)||!fi(pt.segments,mt.segments,ot)||pt.numberOfChildren!==mt.numberOfChildren)return!1;for(const Zt in mt.children)if(!pt.children[Zt]||!re(pt.children[Zt],mt.children[Zt],ot))return!1;return!0},subset:Cn},Ct={exact:function ie(pt,mt){return _n(pt,mt)},subset:function tn(pt,mt){return Object.keys(mt).length<=Object.keys(pt).length&&Object.keys(mt).every(ot=>Kn(pt[ot],mt[ot]))},ignored:()=>!0};function Yt(pt,mt,ot){return Q[ot.paths](pt.root,mt.root,ot.matrixParams)&&Ct[ot.queryParams](pt.queryParams,mt.queryParams)&&!("exact"===ot.fragment&&pt.fragment!==mt.fragment)}function Cn(pt,mt,ot){return Yn(pt,mt,mt.segments,ot)}function Yn(pt,mt,ot,Zt){if(pt.segments.length>ot.length){const jt=pt.segments.slice(0,ot.length);return!(!He(jt,ot)||mt.hasChildren()||!fi(jt,ot,Zt))}if(pt.segments.length===ot.length){if(!He(pt.segments,ot)||!fi(pt.segments,ot,Zt))return!1;for(const jt in mt.children)if(!pt.children[jt]||!Cn(pt.children[jt],mt.children[jt],Zt))return!1;return!0}{const jt=ot.slice(0,pt.segments.length),se=ot.slice(pt.segments.length);return!!(He(pt.segments,jt)&&fi(pt.segments,jt,Zt)&&pt.children[Ye])&&Yn(pt.children[Ye],mt,se,Zt)}}function fi(pt,mt,ot){return mt.every((Zt,jt)=>Ct[ot](pt[jt].parameters,Zt.parameters))}class Fi{constructor(mt,ot,Zt){this.root=mt,this.queryParams=ot,this.fragment=Zt}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return Qe.serialize(this)}}class Bn{constructor(mt,ot){this.segments=mt,this.children=ot,this.parent=null,ze(ot,(Zt,jt)=>Zt.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return te(this)}}class Sn{constructor(mt,ot){this.path=mt,this.parameters=ot}get parameterMap(){return this._parameterMap||(this._parameterMap=xe(this.parameters)),this._parameterMap}toString(){return ye(this)}}function He(pt,mt){return pt.length===mt.length&&pt.every((ot,Zt)=>ot.path===mt[Zt].path)}let qe=(()=>{class pt{}return pt.\u0275fac=function(ot){return new(ot||pt)},pt.\u0275prov=l.Yz7({token:pt,factory:function(){return new we},providedIn:"root"}),pt})();class we{parse(mt){const ot=new Be(mt);return new Fi(ot.parseRootSegment(),ot.parseQueryParams(),ot.parseFragment())}serialize(mt){const ot=`/${Ee(mt.root,!0)}`,Zt=function ve(pt){const mt=Object.keys(pt).map(ot=>{const Zt=pt[ot];return Array.isArray(Zt)?Zt.map(jt=>`${$e(ot)}=${$e(jt)}`).join("&"):`${$e(ot)}=${$e(Zt)}`}).filter(ot=>!!ot);return mt.length?`?${mt.join("&")}`:""}(mt.queryParams);return`${ot}${Zt}${"string"==typeof mt.fragment?`#${function sn(pt){return encodeURI(pt)}(mt.fragment)}`:""}`}}const Qe=new we;function te(pt){return pt.segments.map(mt=>ye(mt)).join("/")}function Ee(pt,mt){if(!pt.hasChildren())return te(pt);if(mt){const ot=pt.children[Ye]?Ee(pt.children[Ye],!1):"",Zt=[];return ze(pt.children,(jt,se)=>{se!==Ye&&Zt.push(`${se}:${Ee(jt,!1)}`)}),Zt.length>0?`${ot}(${Zt.join("//")})`:ot}{const ot=function cn(pt,mt){let ot=[];return ze(pt.children,(Zt,jt)=>{jt===Ye&&(ot=ot.concat(mt(Zt,jt)))}),ze(pt.children,(Zt,jt)=>{jt!==Ye&&(ot=ot.concat(mt(Zt,jt)))}),ot}(pt,(Zt,jt)=>jt===Ye?[Ee(pt.children[Ye],!1)]:[`${jt}:${Ee(Zt,!1)}`]);return 1===Object.keys(pt.children).length&&null!=pt.children[Ye]?`${te(pt)}/${ot[0]}`:`${te(pt)}/(${ot.join("//")})`}}function $t(pt){return encodeURIComponent(pt).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function $e(pt){return $t(pt).replace(/%3B/gi,";")}function Xe(pt){return $t(pt).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function me(pt){return decodeURIComponent(pt)}function kt(pt){return me(pt.replace(/\+/g,"%20"))}function ye(pt){return`${Xe(pt.path)}${function Nt(pt){return Object.keys(pt).map(mt=>`;${Xe(mt)}=${Xe(pt[mt])}`).join("")}(pt.parameters)}`}const Se=/^[^\/()?;=#]+/;function yn(pt){const mt=pt.match(Se);return mt?mt[0]:""}const pi=/^[^=?&#]+/,en=/^[^&#]+/;class Be{constructor(mt){this.url=mt,this.remaining=mt}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Bn([],{}):new Bn([],this.parseChildren())}parseQueryParams(){const mt={};if(this.consumeOptional("?"))do{this.parseQueryParam(mt)}while(this.consumeOptional("&"));return mt}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const mt=[];for(this.peekStartsWith("(")||mt.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),mt.push(this.parseSegment());let ot={};this.peekStartsWith("/(")&&(this.capture("/"),ot=this.parseParens(!0));let Zt={};return this.peekStartsWith("(")&&(Zt=this.parseParens(!1)),(mt.length>0||Object.keys(ot).length>0)&&(Zt[Ye]=new Bn(mt,ot)),Zt}parseSegment(){const mt=yn(this.remaining);if(""===mt&&this.peekStartsWith(";"))throw new l.vHH(4009,J);return this.capture(mt),new Sn(me(mt),this.parseMatrixParams())}parseMatrixParams(){const mt={};for(;this.consumeOptional(";");)this.parseParam(mt);return mt}parseParam(mt){const ot=yn(this.remaining);if(!ot)return;this.capture(ot);let Zt="";if(this.consumeOptional("=")){const jt=yn(this.remaining);jt&&(Zt=jt,this.capture(Zt))}mt[me(ot)]=me(Zt)}parseQueryParam(mt){const ot=function Ci(pt){const mt=pt.match(pi);return mt?mt[0]:""}(this.remaining);if(!ot)return;this.capture(ot);let Zt="";if(this.consumeOptional("=")){const ne=function an(pt){const mt=pt.match(en);return mt?mt[0]:""}(this.remaining);ne&&(Zt=ne,this.capture(Zt))}const jt=kt(ot),se=kt(Zt);if(mt.hasOwnProperty(jt)){let ne=mt[jt];Array.isArray(ne)||(ne=[ne],mt[jt]=ne),ne.push(se)}else mt[jt]=se}parseParens(mt){const ot={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Zt=yn(this.remaining),jt=this.remaining[Zt.length];if("/"!==jt&&")"!==jt&&";"!==jt)throw new l.vHH(4010,J);let se;Zt.indexOf(":")>-1?(se=Zt.slice(0,Zt.indexOf(":")),this.capture(se),this.capture(":")):mt&&(se=Ye);const ne=this.parseChildren();ot[se]=1===Object.keys(ne).length?ne[Ye]:new Bn([],ne),this.consumeOptional("//")}return ot}peekStartsWith(mt){return this.remaining.startsWith(mt)}consumeOptional(mt){return!!this.peekStartsWith(mt)&&(this.remaining=this.remaining.substring(mt.length),!0)}capture(mt){if(!this.consumeOptional(mt))throw new l.vHH(4011,J)}}function In(pt){return pt.segments.length>0?new Bn([],{[Ye]:pt}):pt}function Wn(pt){const mt={};for(const Zt of Object.keys(pt.children)){const se=Wn(pt.children[Zt]);(se.segments.length>0||se.hasChildren())&&(mt[Zt]=se)}return function ki(pt){if(1===pt.numberOfChildren&&pt.children[Ye]){const mt=pt.children[Ye];return new Bn(pt.segments.concat(mt.segments),mt.children)}return pt}(new Bn(pt.segments,mt))}function Hi(pt){return pt instanceof Fi}function wn(pt,mt,ot,Zt,jt){if(0===ot.length)return We(mt.root,mt.root,mt.root,Zt,jt);const se=function B(pt){if("string"==typeof pt[0]&&1===pt.length&&"/"===pt[0])return new Pt(!0,0,pt);let mt=0,ot=!1;const Zt=pt.reduce((jt,se,ne)=>{if("object"==typeof se&&null!=se){if(se.outlets){const Ht={};return ze(se.outlets,(pn,gi)=>{Ht[gi]="string"==typeof pn?pn.split("/"):pn}),[...jt,{outlets:Ht}]}if(se.segmentPath)return[...jt,se.segmentPath]}return"string"!=typeof se?[...jt,se]:0===ne?(se.split("/").forEach((Ht,pn)=>{0==pn&&"."===Ht||(0==pn&&""===Ht?ot=!0:".."===Ht?mt++:""!=Ht&&jt.push(Ht))}),jt):[...jt,se]},[]);return new Pt(ot,mt,Zt)}(ot);return se.toRoot()?We(mt.root,mt.root,new Bn([],{}),Zt,jt):function ne(pn){const gi=function kn(pt,mt,ot,Zt){if(pt.isAbsolute)return new Dt(mt.root,!0,0);if(-1===Zt)return new Dt(ot,ot===mt.root,0);return function Zi(pt,mt,ot){let Zt=pt,jt=mt,se=ot;for(;se>jt;){if(se-=jt,Zt=Zt.parent,!Zt)throw new l.vHH(4005,!1);jt=Zt.segments.length}return new Dt(Zt,!1,jt-se)}(ot,Zt+(ke(pt.commands[0])?0:1),pt.numberOfDoubleDots)}(se,mt,pt.snapshot?._urlSegment,pn),qi=gi.processChildren?Aa(gi.segmentGroup,gi.index,se.commands):Ta(gi.segmentGroup,gi.index,se.commands);return We(mt.root,gi.segmentGroup,qi,Zt,jt)}(pt.snapshot?._lastPathIndex)}function ke(pt){return"object"==typeof pt&&null!=pt&&!pt.outlets&&!pt.segmentPath}function Ce(pt){return"object"==typeof pt&&null!=pt&&pt.outlets}function We(pt,mt,ot,Zt,jt){let ne,se={};Zt&&ze(Zt,(pn,gi)=>{se[gi]=Array.isArray(pn)?pn.map(qi=>`${qi}`):`${pn}`}),ne=pt===mt?ot:G(pt,mt,ot);const Ht=In(Wn(ne));return new Fi(Ht,se,jt)}function G(pt,mt,ot){const Zt={};return ze(pt.children,(jt,se)=>{Zt[se]=jt===mt?ot:G(jt,mt,ot)}),new Bn(pt.segments,Zt)}class Pt{constructor(mt,ot,Zt){if(this.isAbsolute=mt,this.numberOfDoubleDots=ot,this.commands=Zt,mt&&Zt.length>0&&ke(Zt[0]))throw new l.vHH(4003,!1);const jt=Zt.find(Ce);if(jt&&jt!==oi(Zt))throw new l.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Dt{constructor(mt,ot,Zt){this.segmentGroup=mt,this.processChildren=ot,this.index=Zt}}function Ta(pt,mt,ot){if(pt||(pt=new Bn([],{})),0===pt.segments.length&&pt.hasChildren())return Aa(pt,mt,ot);const Zt=function Xa(pt,mt,ot){let Zt=0,jt=mt;const se={match:!1,pathIndex:0,commandIndex:0};for(;jt=ot.length)return se;const ne=pt.segments[jt],Ht=ot[Zt];if(Ce(Ht))break;const pn=`${Ht}`,gi=Zt0&&void 0===pn)break;if(pn&&gi&&"object"==typeof gi&&void 0===gi.outlets){if(!ma(pn,gi,ne))return se;Zt+=2}else{if(!ma(pn,{},ne))return se;Zt++}jt++}return{match:!0,pathIndex:jt,commandIndex:Zt}}(pt,mt,ot),jt=ot.slice(Zt.commandIndex);if(Zt.match&&Zt.pathIndex{"string"==typeof se&&(se=[se]),null!==se&&(jt[ne]=Ta(pt.children[ne],mt,se))}),ze(pt.children,(se,ne)=>{void 0===Zt[ne]&&(jt[ne]=se)}),new Bn(pt.segments,jt)}}function oa(pt,mt,ot){const Zt=pt.segments.slice(0,mt);let jt=0;for(;jt{"string"==typeof ot&&(ot=[ot]),null!==ot&&(mt[Zt]=oa(new Bn([],{}),0,ot))}),mt}function ls(pt){const mt={};return ze(pt,(ot,Zt)=>mt[Zt]=`${ot}`),mt}function ma(pt,mt,ot){return pt==ot.path&&_n(mt,ot.parameters)}class dr{constructor(mt,ot){this.id=mt,this.url=ot}}class Oa extends dr{constructor(mt,ot,Zt="imperative",jt=null){super(mt,ot),this.type=0,this.navigationTrigger=Zt,this.restoredState=jt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class La extends dr{constructor(mt,ot,Zt){super(mt,ot),this.urlAfterRedirects=Zt,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ds extends dr{constructor(mt,ot,Zt,jt){super(mt,ot),this.reason=Zt,this.code=jt,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class vc extends dr{constructor(mt,ot,Zt,jt){super(mt,ot),this.error=Zt,this.target=jt,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Gr extends dr{constructor(mt,ot,Zt,jt){super(mt,ot),this.urlAfterRedirects=Zt,this.state=jt,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sr extends dr{constructor(mt,ot,Zt,jt){super(mt,ot),this.urlAfterRedirects=Zt,this.state=jt,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jr extends dr{constructor(mt,ot,Zt,jt,se){super(mt,ot),this.urlAfterRedirects=Zt,this.state=jt,this.shouldActivate=se,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ps extends dr{constructor(mt,ot,Zt,jt){super(mt,ot),this.urlAfterRedirects=Zt,this.state=jt,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pr extends dr{constructor(mt,ot,Zt,jt){super(mt,ot),this.urlAfterRedirects=Zt,this.state=jt,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zr{constructor(mt){this.route=mt,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Su{constructor(mt){this.route=mt,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ia{constructor(mt){this.snapshot=mt,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class au{constructor(mt){this.snapshot=mt,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ku{constructor(mt){this.snapshot=mt,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rs{constructor(mt){this.snapshot=mt,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class us{constructor(mt,ot,Zt){this.routerEvent=mt,this.position=ot,this.anchor=Zt,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Hs{constructor(mt){this._root=mt}get root(){return this._root.value}parent(mt){const ot=this.pathFromRoot(mt);return ot.length>1?ot[ot.length-2]:null}children(mt){const ot=Ys(mt,this._root);return ot?ot.children.map(Zt=>Zt.value):[]}firstChild(mt){const ot=Ys(mt,this._root);return ot&&ot.children.length>0?ot.children[0].value:null}siblings(mt){const ot=Wr(mt,this._root);return ot.length<2?[]:ot[ot.length-2].children.map(jt=>jt.value).filter(jt=>jt!==mt)}pathFromRoot(mt){return Wr(mt,this._root).map(ot=>ot.value)}}function Ys(pt,mt){if(pt===mt.value)return mt;for(const ot of mt.children){const Zt=Ys(pt,ot);if(Zt)return Zt}return null}function Wr(pt,mt){if(pt===mt.value)return[mt];for(const ot of mt.children){const Zt=Wr(pt,ot);if(Zt.length)return Zt.unshift(mt),Zt}return[]}class bs{constructor(mt,ot){this.value=mt,this.children=ot}toString(){return`TreeNode(${this.value})`}}function $r(pt){const mt={};return pt&&pt.children.forEach(ot=>mt[ot.value.outlet]=ot),mt}class ic extends Hs{constructor(mt,ot){super(mt),this.snapshot=ot,Cc(this,mt)}toString(){return this.snapshot.toString()}}function ql(pt,mt){const ot=function qc(pt,mt){const ne=new zs([],{},{},"",{},Ye,mt,null,pt.root,-1,{});return new Kr("",new bs(ne,[]))}(pt,mt),Zt=new h.X([new Sn("",{})]),jt=new h.X({}),se=new h.X({}),ne=new h.X({}),Ht=new h.X(""),pn=new kr(Zt,jt,ne,Ht,se,Ye,mt,ot.root);return pn.snapshot=ot.root,new ic(new bs(pn,[]),ot)}class kr{constructor(mt,ot,Zt,jt,se,ne,Ht,pn){this.url=mt,this.params=ot,this.queryParams=Zt,this.fragment=jt,this.data=se,this.outlet=ne,this.component=Ht,this.title=this.data?.pipe((0,at.U)(gi=>gi[fn]))??(0,g.of)(void 0),this._futureSnapshot=pn}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,at.U)(mt=>xe(mt)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,at.U)(mt=>xe(mt)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function bc(pt,mt="emptyOnly"){const ot=pt.pathFromRoot;let Zt=0;if("always"!==mt)for(Zt=ot.length-1;Zt>=1;){const jt=ot[Zt],se=ot[Zt-1];if(jt.routeConfig&&""===jt.routeConfig.path)Zt--;else{if(se.component)break;Zt--}}return function Vr(pt){return pt.reduce((mt,ot)=>({params:{...mt.params,...ot.params},data:{...mt.data,...ot.data},resolve:{...ot.data,...mt.resolve,...ot.routeConfig?.data,...ot._resolvedData}}),{params:{},data:{},resolve:{}})}(ot.slice(Zt))}class zs{constructor(mt,ot,Zt,jt,se,ne,Ht,pn,gi,qi,ri,ra){this.url=mt,this.params=ot,this.queryParams=Zt,this.fragment=jt,this.data=se,this.outlet=ne,this.component=Ht,this.title=this.data?.[fn],this.routeConfig=pn,this._urlSegment=gi,this._lastPathIndex=qi,this._correctedLastPathIndex=ra??qi,this._resolve=ri}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=xe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Zt=>Zt.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Kr extends Hs{constructor(mt,ot){super(ot),this.url=mt,Cc(this,ot)}toString(){return jc(this._root)}}function Cc(pt,mt){mt.value._routerState=pt,mt.children.forEach(ot=>Cc(pt,ot))}function jc(pt){const mt=pt.children.length>0?` { ${pt.children.map(jc).join(", ")} } `:"";return`${pt.value}${mt}`}function Ec(pt){if(pt.snapshot){const mt=pt.snapshot,ot=pt._futureSnapshot;pt.snapshot=ot,_n(mt.queryParams,ot.queryParams)||pt.queryParams.next(ot.queryParams),mt.fragment!==ot.fragment&&pt.fragment.next(ot.fragment),_n(mt.params,ot.params)||pt.params.next(ot.params),function Re(pt,mt){if(pt.length!==mt.length)return!1;for(let ot=0;ot_n(ot.parameters,mt[Zt].parameters))}(pt.url,mt.url);return ot&&!(!pt.parent!=!mt.parent)&&(!pt.parent||So(pt.parent,mt.parent))}function Cs(pt,mt,ot){if(ot&&pt.shouldReuseRoute(mt.value,ot.value.snapshot)){const Zt=ot.value;Zt._futureSnapshot=mt.value;const jt=function cl(pt,mt,ot){return mt.children.map(Zt=>{for(const jt of ot.children)if(pt.shouldReuseRoute(Zt.value,jt.value.snapshot))return Cs(pt,Zt,jt);return Cs(pt,Zt)})}(pt,mt,ot);return new bs(Zt,jt)}{if(pt.shouldAttach(mt.value)){const se=pt.retrieve(mt.value);if(null!==se){const ne=se.route;return ne.value._futureSnapshot=mt.value,ne.children=mt.children.map(Ht=>Cs(pt,Ht)),ne}}const Zt=function El(pt){return new kr(new h.X(pt.url),new h.X(pt.params),new h.X(pt.queryParams),new h.X(pt.fragment),new h.X(pt.data),pt.outlet,pt.component,pt)}(mt.value),jt=mt.children.map(se=>Cs(pt,se));return new bs(Zt,jt)}}const jo="ngNavigationCancelingError";function Wc(pt,mt){const{redirectTo:ot,navigationBehaviorOptions:Zt}=Hi(mt)?{redirectTo:mt,navigationBehaviorOptions:void 0}:mt,jt=Ar(!1,0,mt);return jt.url=ot,jt.navigationBehaviorOptions=Zt,jt}function Ar(pt,mt,ot){const Zt=new Error("NavigationCancelingError: "+(pt||""));return Zt[jo]=!0,Zt.cancellationCode=mt,ot&&(Zt.url=ot),Zt}function Ur(pt){return Nc(pt)&&Hi(pt.url)}function Nc(pt){return pt&&pt[jo]}class Fa{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ps,this.attachRef=null}}let ps=(()=>{class pt{constructor(){this.contexts=new Map}onChildOutletCreated(ot,Zt){const jt=this.getOrCreateContext(ot);jt.outlet=Zt,this.contexts.set(ot,jt)}onChildOutletDestroyed(ot){const Zt=this.getContext(ot);Zt&&(Zt.outlet=null,Zt.attachRef=null)}onOutletDeactivated(){const ot=this.contexts;return this.contexts=new Map,ot}onOutletReAttached(ot){this.contexts=ot}getOrCreateContext(ot){let Zt=this.getContext(ot);return Zt||(Zt=new Fa,this.contexts.set(ot,Zt)),Zt}getContext(ot){return this.contexts.get(ot)||null}}return pt.\u0275fac=function(ot){return new(ot||pt)},pt.\u0275prov=l.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),pt})();const Ko=!1;let Xo=(()=>{class pt{constructor(ot,Zt,jt,se,ne){this.parentContexts=ot,this.location=Zt,this.changeDetector=se,this.environmentInjector=ne,this.activated=null,this._activatedRoute=null,this.activateEvents=new l.vpe,this.deactivateEvents=new l.vpe,this.attachEvents=new l.vpe,this.detachEvents=new l.vpe,this.name=jt||Ye,ot.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const ot=this.parentContexts.getContext(this.name);ot&&ot.route&&(ot.attachRef?this.attach(ot.attachRef,ot.route):this.activateWith(ot.route,ot.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new l.vHH(4012,Ko);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new l.vHH(4012,Ko);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new l.vHH(4012,Ko);this.location.detach();const ot=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(ot.instance),ot}attach(ot,Zt){this.activated=ot,this._activatedRoute=Zt,this.location.insert(ot.hostView),this.attachEvents.emit(ot.instance)}deactivate(){if(this.activated){const ot=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(ot)}}activateWith(ot,Zt){if(this.isActivated)throw new l.vHH(4013,Ko);this._activatedRoute=ot;const jt=this.location,ne=ot._futureSnapshot.component,Ht=this.parentContexts.getOrCreateContext(this.name).children,pn=new qa(ot,Ht,jt.injector);if(Zt&&function Pa(pt){return!!pt.resolveComponentFactory}(Zt)){const gi=Zt.resolveComponentFactory(ne);this.activated=jt.createComponent(gi,jt.length,pn)}else this.activated=jt.createComponent(ne,{index:jt.length,injector:pn,environmentInjector:Zt??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return pt.\u0275fac=function(ot){return new(ot||pt)(l.Y36(ps),l.Y36(l.s_b),l.$8M("name"),l.Y36(l.sBO),l.Y36(l.lqb))},pt.\u0275dir=l.lG2({type:pt,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),pt})();class qa{constructor(mt,ot,Zt){this.route=mt,this.childContexts=ot,this.parent=Zt}get(mt,ot){return mt===kr?this.route:mt===ps?this.childContexts:this.parent.get(mt,ot)}}let ar=(()=>{class pt{}return pt.\u0275fac=function(ot){return new(ot||pt)},pt.\u0275cmp=l.Xpm({type:pt,selectors:[["ng-component"]],standalone:!0,features:[l.jDz],decls:1,vars:0,template:function(ot,Zt){1&ot&&l._UZ(0,"router-outlet")},dependencies:[Xo],encapsulation:2}),pt})();function qn(pt,mt){return pt.providers&&!pt._injector&&(pt._injector=(0,l.MMx)(pt.providers,mt,`Route: ${pt.path}`)),pt._injector??mt}function Lr(pt){const mt=pt.children&&pt.children.map(Lr),ot=mt?{...pt,children:mt}:{...pt};return!ot.component&&!ot.loadComponent&&(mt||ot.loadChildren)&&ot.outlet&&ot.outlet!==Ye&&(ot.component=ar),ot}function ta(pt){return pt.outlet||Ye}function Si(pt,mt){const ot=pt.filter(Zt=>ta(Zt)===mt);return ot.push(...pt.filter(Zt=>ta(Zt)!==mt)),ot}function Ra(pt){if(!pt)return null;if(pt.routeConfig?._injector)return pt.routeConfig._injector;for(let mt=pt.parent;mt;mt=mt.parent){const ot=mt.routeConfig;if(ot?._loadedInjector)return ot._loadedInjector;if(ot?._injector)return ot._injector}return null}class Ga{constructor(mt,ot,Zt,jt){this.routeReuseStrategy=mt,this.futureState=ot,this.currState=Zt,this.forwardEvent=jt}activate(mt){const ot=this.futureState._root,Zt=this.currState?this.currState._root:null;this.deactivateChildRoutes(ot,Zt,mt),Ec(this.futureState.root),this.activateChildRoutes(ot,Zt,mt)}deactivateChildRoutes(mt,ot,Zt){const jt=$r(ot);mt.children.forEach(se=>{const ne=se.value.outlet;this.deactivateRoutes(se,jt[ne],Zt),delete jt[ne]}),ze(jt,(se,ne)=>{this.deactivateRouteAndItsChildren(se,Zt)})}deactivateRoutes(mt,ot,Zt){const jt=mt.value,se=ot?ot.value:null;if(jt===se)if(jt.component){const ne=Zt.getContext(jt.outlet);ne&&this.deactivateChildRoutes(mt,ot,ne.children)}else this.deactivateChildRoutes(mt,ot,Zt);else se&&this.deactivateRouteAndItsChildren(ot,Zt)}deactivateRouteAndItsChildren(mt,ot){mt.value.component&&this.routeReuseStrategy.shouldDetach(mt.value.snapshot)?this.detachAndStoreRouteSubtree(mt,ot):this.deactivateRouteAndOutlet(mt,ot)}detachAndStoreRouteSubtree(mt,ot){const Zt=ot.getContext(mt.value.outlet),jt=Zt&&mt.value.component?Zt.children:ot,se=$r(mt);for(const ne of Object.keys(se))this.deactivateRouteAndItsChildren(se[ne],jt);if(Zt&&Zt.outlet){const ne=Zt.outlet.detach(),Ht=Zt.children.onOutletDeactivated();this.routeReuseStrategy.store(mt.value.snapshot,{componentRef:ne,route:mt,contexts:Ht})}}deactivateRouteAndOutlet(mt,ot){const Zt=ot.getContext(mt.value.outlet),jt=Zt&&mt.value.component?Zt.children:ot,se=$r(mt);for(const ne of Object.keys(se))this.deactivateRouteAndItsChildren(se[ne],jt);Zt&&Zt.outlet&&(Zt.outlet.deactivate(),Zt.children.onOutletDeactivated(),Zt.attachRef=null,Zt.resolver=null,Zt.route=null)}activateChildRoutes(mt,ot,Zt){const jt=$r(ot);mt.children.forEach(se=>{this.activateRoutes(se,jt[se.value.outlet],Zt),this.forwardEvent(new Rs(se.value.snapshot))}),mt.children.length&&this.forwardEvent(new au(mt.value.snapshot))}activateRoutes(mt,ot,Zt){const jt=mt.value,se=ot?ot.value:null;if(Ec(jt),jt===se)if(jt.component){const ne=Zt.getOrCreateContext(jt.outlet);this.activateChildRoutes(mt,ot,ne.children)}else this.activateChildRoutes(mt,ot,Zt);else if(jt.component){const ne=Zt.getOrCreateContext(jt.outlet);if(this.routeReuseStrategy.shouldAttach(jt.snapshot)){const Ht=this.routeReuseStrategy.retrieve(jt.snapshot);this.routeReuseStrategy.store(jt.snapshot,null),ne.children.onOutletReAttached(Ht.contexts),ne.attachRef=Ht.componentRef,ne.route=Ht.route.value,ne.outlet&&ne.outlet.attach(Ht.componentRef,Ht.route.value),Ec(Ht.route.value),this.activateChildRoutes(mt,null,ne.children)}else{const Ht=Ra(jt.snapshot),pn=Ht?.get(l._Vd)??null;ne.attachRef=null,ne.route=jt,ne.resolver=pn,ne.injector=Ht,ne.outlet&&ne.outlet.activateWith(jt,ne.injector),this.activateChildRoutes(mt,null,ne.children)}}else this.activateChildRoutes(mt,null,Zt)}}class Ss{constructor(mt){this.path=mt,this.route=this.path[this.path.length-1]}}class oc{constructor(mt,ot){this.component=mt,this.route=ot}}function xs(pt,mt,ot){const Zt=pt._root;return Ti(Zt,mt?mt._root:null,ot,[Zt.value])}function _r(pt,mt){const ot=Symbol(),Zt=mt.get(pt,ot);return Zt===ot?"function"!=typeof pt||(0,l.Z0I)(pt)?mt.get(pt):pt:Zt}function Ti(pt,mt,ot,Zt,jt={canDeactivateChecks:[],canActivateChecks:[]}){const se=$r(mt);return pt.children.forEach(ne=>{(function xo(pt,mt,ot,Zt,jt={canDeactivateChecks:[],canActivateChecks:[]}){const se=pt.value,ne=mt?mt.value:null,Ht=ot?ot.getContext(pt.value.outlet):null;if(ne&&se.routeConfig===ne.routeConfig){const pn=function fa(pt,mt,ot){if("function"==typeof ot)return ot(pt,mt);switch(ot){case"pathParamsChange":return!He(pt.url,mt.url);case"pathParamsOrQueryParamsChange":return!He(pt.url,mt.url)||!_n(pt.queryParams,mt.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!So(pt,mt)||!_n(pt.queryParams,mt.queryParams);default:return!So(pt,mt)}}(ne,se,se.routeConfig.runGuardsAndResolvers);pn?jt.canActivateChecks.push(new Ss(Zt)):(se.data=ne.data,se._resolvedData=ne._resolvedData),Ti(pt,mt,se.component?Ht?Ht.children:null:ot,Zt,jt),pn&&Ht&&Ht.outlet&&Ht.outlet.isActivated&&jt.canDeactivateChecks.push(new oc(Ht.outlet.component,ne))}else ne&&tr(mt,Ht,jt),jt.canActivateChecks.push(new Ss(Zt)),Ti(pt,null,se.component?Ht?Ht.children:null:ot,Zt,jt)})(ne,se[ne.value.outlet],ot,Zt.concat([ne.value]),jt),delete se[ne.value.outlet]}),ze(se,(ne,Ht)=>tr(ne,ot.getContext(Ht),jt)),jt}function tr(pt,mt,ot){const Zt=$r(pt),jt=pt.value;ze(Zt,(se,ne)=>{tr(se,jt.component?mt?mt.children.getContext(ne):null:mt,ot)}),ot.canDeactivateChecks.push(new oc(jt.component&&mt&&mt.outlet&&mt.outlet.isActivated?mt.outlet.component:null,jt))}function aa(pt){return"function"==typeof pt}function ks(pt){return pt instanceof t.K||"EmptyError"===pt?.name}const Ha=Symbol("INITIAL_VALUE");function Ya(){return(0,rt.w)(pt=>(0,x.aj)(pt.map(mt=>mt.pipe((0,ft.q)(1),(0,Tt.O)(Ha)))).pipe((0,at.U)(mt=>{for(const ot of mt)if(!0!==ot){if(ot===Ha)return Ha;if(!1===ot||ot instanceof Fi)return ot}return!0}),(0,qt.h)(mt=>mt!==Ha),(0,ft.q)(1)))}function Ls(pt){return(0,D.z)((0,xt.b)(mt=>{if(Hi(mt))throw Wc(0,mt)}),(0,at.U)(mt=>!0===mt))}const Md={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function xc(pt,mt,ot,Zt,jt){const se=ys(pt,mt,ot);return se.matched?function ac(pt,mt,ot,Zt){const jt=mt.canMatch;if(!jt||0===jt.length)return(0,g.of)(!0);const se=jt.map(ne=>{const Ht=_r(ne,pt);return Wt(function Xi(pt){return pt&&aa(pt.canMatch)}(Ht)?Ht.canMatch(mt,ot):pt.runInContext(()=>Ht(mt,ot)))});return(0,g.of)(se).pipe(Ya(),Ls())}(Zt=qn(mt,Zt),mt,ot).pipe((0,at.U)(ne=>!0===ne?se:{...Md})):(0,g.of)(se)}function ys(pt,mt,ot){if(""===mt.path)return"full"===mt.pathMatch&&(pt.hasChildren()||ot.length>0)?{...Md}:{matched:!0,consumedSegments:[],remainingSegments:ot,parameters:{},positionalParamSegments:{}};const jt=(mt.matcher||hn)(ot,pt,mt);if(!jt)return{...Md};const se={};ze(jt.posParams,(Ht,pn)=>{se[pn]=Ht.path});const ne=jt.consumed.length>0?{...se,...jt.consumed[jt.consumed.length-1].parameters}:se;return{matched:!0,consumedSegments:jt.consumed,remainingSegments:ot.slice(jt.consumed.length),parameters:ne,positionalParamSegments:jt.posParams??{}}}function yi(pt,mt,ot,Zt,jt="corrected"){if(ot.length>0&&function Fc(pt,mt,ot){return ot.some(Zt=>rc(pt,mt,Zt)&&ta(Zt)!==Ye)}(pt,ot,Zt)){const ne=new Bn(mt,function Kc(pt,mt,ot,Zt){const jt={};jt[Ye]=Zt,Zt._sourceSegment=pt,Zt._segmentIndexShift=mt.length;for(const se of ot)if(""===se.path&&ta(se)!==Ye){const ne=new Bn([],{});ne._sourceSegment=pt,ne._segmentIndexShift=mt.length,jt[ta(se)]=ne}return jt}(pt,mt,Zt,new Bn(ot,pt.children)));return ne._sourceSegment=pt,ne._segmentIndexShift=mt.length,{segmentGroup:ne,slicedSegments:[]}}if(0===ot.length&&function No(pt,mt,ot){return ot.some(Zt=>rc(pt,mt,Zt))}(pt,ot,Zt)){const ne=new Bn(pt.segments,function st(pt,mt,ot,Zt,jt,se){const ne={};for(const Ht of Zt)if(rc(pt,ot,Ht)&&!jt[ta(Ht)]){const pn=new Bn([],{});pn._sourceSegment=pt,pn._segmentIndexShift="legacy"===se?pt.segments.length:mt.length,ne[ta(Ht)]=pn}return{...jt,...ne}}(pt,mt,ot,Zt,pt.children,jt));return ne._sourceSegment=pt,ne._segmentIndexShift=mt.length,{segmentGroup:ne,slicedSegments:ot}}const se=new Bn(pt.segments,pt.children);return se._sourceSegment=pt,se._segmentIndexShift=mt.length,{segmentGroup:se,slicedSegments:ot}}function rc(pt,mt,ot){return(!(pt.hasChildren()||mt.length>0)||"full"!==ot.pathMatch)&&""===ot.path}function Ua(pt,mt,ot,Zt){return!!(ta(pt)===Zt||Zt!==Ye&&rc(mt,ot,pt))&&("**"===pt.path||ys(mt,pt,ot).matched)}function za(pt,mt,ot){return 0===mt.length&&!pt.children[ot]}const vr=!1;class Ho{constructor(mt){this.segmentGroup=mt||null}}class li{constructor(mt){this.urlTree=mt}}function Nl(pt){return(0,k._)(new Ho(pt))}function Ii(pt){return(0,k._)(new li(pt))}class ci{constructor(mt,ot,Zt,jt,se){this.injector=mt,this.configLoader=ot,this.urlSerializer=Zt,this.urlTree=jt,this.config=se,this.allowRedirects=!0}apply(){const mt=yi(this.urlTree.root,[],[],this.config).segmentGroup,ot=new Bn(mt.segments,mt.children);return this.expandSegmentGroup(this.injector,this.config,ot,Ye).pipe((0,at.U)(se=>this.createUrlTree(Wn(se),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,ht.K)(se=>{if(se instanceof li)return this.allowRedirects=!1,this.match(se.urlTree);throw se instanceof Ho?this.noMatchError(se):se}))}match(mt){return this.expandSegmentGroup(this.injector,this.config,mt.root,Ye).pipe((0,at.U)(jt=>this.createUrlTree(Wn(jt),mt.queryParams,mt.fragment))).pipe((0,ht.K)(jt=>{throw jt instanceof Ho?this.noMatchError(jt):jt}))}noMatchError(mt){return new l.vHH(4002,vr)}createUrlTree(mt,ot,Zt){const jt=In(mt);return new Fi(jt,ot,Zt)}expandSegmentGroup(mt,ot,Zt,jt){return 0===Zt.segments.length&&Zt.hasChildren()?this.expandChildren(mt,ot,Zt).pipe((0,at.U)(se=>new Bn([],se))):this.expandSegment(mt,Zt,ot,Zt.segments,jt,!0)}expandChildren(mt,ot,Zt){const jt=[];for(const se of Object.keys(Zt.children))"primary"===se?jt.unshift(se):jt.push(se);return(0,u.D)(jt).pipe((0,bt.b)(se=>{const ne=Zt.children[se],Ht=Si(ot,se);return this.expandSegmentGroup(mt,Ht,ne,se).pipe((0,at.U)(pn=>({segment:pn,outlet:se})))}),Mt((se,ne)=>(se[ne.outlet]=ne.segment,se),{}),Rt())}expandSegment(mt,ot,Zt,jt,se,ne){return(0,u.D)(Zt).pipe((0,bt.b)(Ht=>this.expandSegmentAgainstRoute(mt,ot,Zt,Ht,jt,se,ne).pipe((0,ht.K)(gi=>{if(gi instanceof Ho)return(0,g.of)(null);throw gi}))),(0,Bt.P)(Ht=>!!Ht),(0,ht.K)((Ht,pn)=>{if(ks(Ht))return za(ot,jt,se)?(0,g.of)(new Bn([],{})):Nl(ot);throw Ht}))}expandSegmentAgainstRoute(mt,ot,Zt,jt,se,ne,Ht){return Ua(jt,ot,se,ne)?void 0===jt.redirectTo?this.matchSegmentAgainstRoute(mt,ot,jt,se,ne):Ht&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(mt,ot,Zt,jt,se,ne):Nl(ot):Nl(ot)}expandSegmentAgainstRouteUsingRedirect(mt,ot,Zt,jt,se,ne){return"**"===jt.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(mt,Zt,jt,ne):this.expandRegularSegmentAgainstRouteUsingRedirect(mt,ot,Zt,jt,se,ne)}expandWildCardWithParamsAgainstRouteUsingRedirect(mt,ot,Zt,jt){const se=this.applyRedirectCommands([],Zt.redirectTo,{});return Zt.redirectTo.startsWith("/")?Ii(se):this.lineralizeSegments(Zt,se).pipe((0,Vt.zg)(ne=>{const Ht=new Bn(ne,{});return this.expandSegment(mt,Ht,ot,ne,jt,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(mt,ot,Zt,jt,se,ne){const{matched:Ht,consumedSegments:pn,remainingSegments:gi,positionalParamSegments:qi}=ys(ot,jt,se);if(!Ht)return Nl(ot);const ri=this.applyRedirectCommands(pn,jt.redirectTo,qi);return jt.redirectTo.startsWith("/")?Ii(ri):this.lineralizeSegments(jt,ri).pipe((0,Vt.zg)(ra=>this.expandSegment(mt,ot,Zt,ra.concat(gi),ne,!1)))}matchSegmentAgainstRoute(mt,ot,Zt,jt,se){return"**"===Zt.path?(mt=qn(Zt,mt),Zt.loadChildren?(Zt._loadedRoutes?(0,g.of)({routes:Zt._loadedRoutes,injector:Zt._loadedInjector}):this.configLoader.loadChildren(mt,Zt)).pipe((0,at.U)(Ht=>(Zt._loadedRoutes=Ht.routes,Zt._loadedInjector=Ht.injector,new Bn(jt,{})))):(0,g.of)(new Bn(jt,{}))):xc(ot,Zt,jt,mt).pipe((0,rt.w)(({matched:ne,consumedSegments:Ht,remainingSegments:pn})=>ne?this.getChildConfig(mt=Zt._injector??mt,Zt,jt).pipe((0,Vt.zg)(qi=>{const ri=qi.injector??mt,ra=qi.routes,{segmentGroup:Qs,slicedSegments:hl}=yi(ot,Ht,pn,ra),Gs=new Bn(Qs.segments,Qs.children);if(0===hl.length&&Gs.hasChildren())return this.expandChildren(ri,ra,Gs).pipe((0,at.U)(Eu=>new Bn(Ht,Eu)));if(0===ra.length&&0===hl.length)return(0,g.of)(new Bn(Ht,{}));const cc=ta(Zt)===se;return this.expandSegment(ri,Gs,ra,hl,cc?Ye:se,!0).pipe((0,at.U)(Nr=>new Bn(Ht.concat(Nr.segments),Nr.children)))})):Nl(ot)))}getChildConfig(mt,ot,Zt){return ot.children?(0,g.of)({routes:ot.children,injector:mt}):ot.loadChildren?void 0!==ot._loadedRoutes?(0,g.of)({routes:ot._loadedRoutes,injector:ot._loadedInjector}):function Os(pt,mt,ot,Zt){const jt=mt.canLoad;if(void 0===jt||0===jt.length)return(0,g.of)(!0);const se=jt.map(ne=>{const Ht=_r(ne,pt);return Wt(function Jt(pt){return pt&&aa(pt.canLoad)}(Ht)?Ht.canLoad(mt,ot):pt.runInContext(()=>Ht(mt,ot)))});return(0,g.of)(se).pipe(Ya(),Ls())}(mt,ot,Zt).pipe((0,Vt.zg)(jt=>jt?this.configLoader.loadChildren(mt,ot).pipe((0,xt.b)(se=>{ot._loadedRoutes=se.routes,ot._loadedInjector=se.injector})):function zn(pt){return(0,k._)(Ar(vr,3))}())):(0,g.of)({routes:[],injector:mt})}lineralizeSegments(mt,ot){let Zt=[],jt=ot.root;for(;;){if(Zt=Zt.concat(jt.segments),0===jt.numberOfChildren)return(0,g.of)(Zt);if(jt.numberOfChildren>1||!jt.children[Ye])return(0,k._)(new l.vHH(4e3,vr));jt=jt.children[Ye]}}applyRedirectCommands(mt,ot,Zt){return this.applyRedirectCreateUrlTree(ot,this.urlSerializer.parse(ot),mt,Zt)}applyRedirectCreateUrlTree(mt,ot,Zt,jt){const se=this.createSegmentGroup(mt,ot.root,Zt,jt);return new Fi(se,this.createQueryParams(ot.queryParams,this.urlTree.queryParams),ot.fragment)}createQueryParams(mt,ot){const Zt={};return ze(mt,(jt,se)=>{if("string"==typeof jt&&jt.startsWith(":")){const Ht=jt.substring(1);Zt[se]=ot[Ht]}else Zt[se]=jt}),Zt}createSegmentGroup(mt,ot,Zt,jt){const se=this.createSegments(mt,ot.segments,Zt,jt);let ne={};return ze(ot.children,(Ht,pn)=>{ne[pn]=this.createSegmentGroup(mt,Ht,Zt,jt)}),new Bn(se,ne)}createSegments(mt,ot,Zt,jt){return ot.map(se=>se.path.startsWith(":")?this.findPosParam(mt,se,jt):this.findOrReturn(se,Zt))}findPosParam(mt,ot,Zt){const jt=Zt[ot.path.substring(1)];if(!jt)throw new l.vHH(4001,vr);return jt}findOrReturn(mt,ot){let Zt=0;for(const jt of ot){if(jt.path===mt.path)return ot.splice(Zt),jt;Zt++}return mt}}class la{}class sc{constructor(mt,ot,Zt,jt,se,ne,Ht,pn){this.injector=mt,this.rootComponentType=ot,this.config=Zt,this.urlTree=jt,this.url=se,this.paramsInheritanceStrategy=ne,this.relativeLinkResolution=Ht,this.urlSerializer=pn}recognize(){const mt=yi(this.urlTree.root,[],[],this.config.filter(ot=>void 0===ot.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,mt,Ye).pipe((0,at.U)(ot=>{if(null===ot)return null;const Zt=new zs([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ye,this.rootComponentType,null,this.urlTree.root,-1,{}),jt=new bs(Zt,ot),se=new Kr(this.url,jt);return this.inheritParamsAndData(se._root),se}))}inheritParamsAndData(mt){const ot=mt.value,Zt=bc(ot,this.paramsInheritanceStrategy);ot.params=Object.freeze(Zt.params),ot.data=Object.freeze(Zt.data),mt.children.forEach(jt=>this.inheritParamsAndData(jt))}processSegmentGroup(mt,ot,Zt,jt){return 0===Zt.segments.length&&Zt.hasChildren()?this.processChildren(mt,ot,Zt):this.processSegment(mt,ot,Zt,Zt.segments,jt)}processChildren(mt,ot,Zt){return(0,u.D)(Object.keys(Zt.children)).pipe((0,bt.b)(jt=>{const se=Zt.children[jt],ne=Si(ot,jt);return this.processSegmentGroup(mt,ne,se,jt)}),Mt((jt,se)=>jt&&se?(jt.push(...se),jt):null),(0,fe.o)(jt=>null!==jt),(0,Oe.d)(null),Rt(),(0,at.U)(jt=>{if(null===jt)return null;const se=dl(jt);return function ul(pt){pt.sort((mt,ot)=>mt.value.outlet===Ye?-1:ot.value.outlet===Ye?1:mt.value.outlet.localeCompare(ot.value.outlet))}(se),se}))}processSegment(mt,ot,Zt,jt,se){return(0,u.D)(ot).pipe((0,bt.b)(ne=>this.processSegmentAgainstRoute(ne._injector??mt,ne,Zt,jt,se)),(0,Bt.P)(ne=>!!ne),(0,ht.K)(ne=>{if(ks(ne))return za(Zt,jt,se)?(0,g.of)([]):(0,g.of)(null);throw ne}))}processSegmentAgainstRoute(mt,ot,Zt,jt,se){if(ot.redirectTo||!Ua(ot,Zt,jt,se))return(0,g.of)(null);let ne;if("**"===ot.path){const Ht=jt.length>0?oi(jt).parameters:{},pn=At(Zt)+jt.length,gi=new zs(jt,Ht,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Et(ot),ta(ot),ot.component??ot._loadedComponent??null,ot,Fl(Zt),pn,Ne(ot),pn);ne=(0,g.of)({snapshot:gi,consumedSegments:[],remainingSegments:[]})}else ne=xc(Zt,ot,jt,mt).pipe((0,at.U)(({matched:Ht,consumedSegments:pn,remainingSegments:gi,parameters:qi})=>{if(!Ht)return null;const ri=At(Zt)+pn.length;return{snapshot:new zs(pn,qi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Et(ot),ta(ot),ot.component??ot._loadedComponent??null,ot,Fl(Zt),ri,Ne(ot),ri),consumedSegments:pn,remainingSegments:gi}}));return ne.pipe((0,rt.w)(Ht=>{if(null===Ht)return(0,g.of)(null);const{snapshot:pn,consumedSegments:gi,remainingSegments:qi}=Ht;mt=ot._injector??mt;const ri=ot._loadedInjector??mt,ra=function ua(pt){return pt.children?pt.children:pt.loadChildren?pt._loadedRoutes:[]}(ot),{segmentGroup:Qs,slicedSegments:hl}=yi(Zt,gi,qi,ra.filter(cc=>void 0===cc.redirectTo),this.relativeLinkResolution);if(0===hl.length&&Qs.hasChildren())return this.processChildren(ri,ra,Qs).pipe((0,at.U)(cc=>null===cc?null:[new bs(pn,cc)]));if(0===ra.length&&0===hl.length)return(0,g.of)([new bs(pn,[])]);const Gs=ta(ot)===se;return this.processSegment(ri,ra,Qs,hl,Gs?Ye:se).pipe((0,at.U)(cc=>null===cc?null:[new bs(pn,cc)]))}))}}function ts(pt){const mt=pt.value.routeConfig;return mt&&""===mt.path&&void 0===mt.redirectTo}function dl(pt){const mt=[],ot=new Set;for(const Zt of pt){if(!ts(Zt)){mt.push(Zt);continue}const jt=mt.find(se=>Zt.value.routeConfig===se.value.routeConfig);void 0!==jt?(jt.children.push(...Zt.children),ot.add(jt)):mt.push(Zt)}for(const Zt of ot){const jt=dl(Zt.children);mt.push(new bs(Zt.value,jt))}return mt.filter(Zt=>!ot.has(Zt))}function Fl(pt){let mt=pt;for(;mt._sourceSegment;)mt=mt._sourceSegment;return mt}function At(pt){let mt=pt,ot=mt._segmentIndexShift??0;for(;mt._sourceSegment;)mt=mt._sourceSegment,ot+=mt._segmentIndexShift??0;return ot-1}function Et(pt){return pt.data||{}}function Ne(pt){return pt.resolve||{}}function En(pt){return"string"==typeof pt.title||null===pt.title}function Nn(pt){return(0,rt.w)(mt=>{const ot=pt(mt);return ot?(0,u.D)(ot).pipe((0,at.U)(()=>mt)):(0,g.of)(mt)})}let ti=(()=>{class pt{buildTitle(ot){let Zt,jt=ot.root;for(;void 0!==jt;)Zt=this.getResolvedTitleForRoute(jt)??Zt,jt=jt.children.find(se=>se.outlet===Ye);return Zt}getResolvedTitleForRoute(ot){return ot.data[fn]}}return pt.\u0275fac=function(ot){return new(ot||pt)},pt.\u0275prov=l.Yz7({token:pt,factory:function(){return(0,l.f3M)(ii)},providedIn:"root"}),pt})(),ii=(()=>{class pt extends ti{constructor(ot){super(),this.title=ot}updateTitle(ot){const Zt=this.buildTitle(ot);void 0!==Zt&&this.title.setTitle(Zt)}}return pt.\u0275fac=function(ot){return new(ot||pt)(l.LFG(Te.Dx))},pt.\u0275prov=l.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),pt})();class jn{}class yo extends class vi{shouldDetach(mt){return!1}store(mt,ot){}shouldAttach(mt){return!1}retrieve(mt){return null}shouldReuseRoute(mt,ot){return mt.routeConfig===ot.routeConfig}}{}const Do=new l.OlP("",{providedIn:"root",factory:()=>({})}),br=new l.OlP("ROUTES");let Mr=(()=>{class pt{constructor(ot,Zt){this.injector=ot,this.compiler=Zt,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(ot){if(this.componentLoaders.get(ot))return this.componentLoaders.get(ot);if(ot._loadedComponent)return(0,g.of)(ot._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(ot);const Zt=Wt(ot.loadComponent()).pipe((0,xt.b)(se=>{this.onLoadEndListener&&this.onLoadEndListener(ot),ot._loadedComponent=se}),(0,ue.x)(()=>{this.componentLoaders.delete(ot)})),jt=new Y.c(Zt,()=>new $.xQ).pipe((0,ce.x)());return this.componentLoaders.set(ot,jt),jt}loadChildren(ot,Zt){if(this.childrenLoaders.get(Zt))return this.childrenLoaders.get(Zt);if(Zt._loadedRoutes)return(0,g.of)({routes:Zt._loadedRoutes,injector:Zt._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Zt);const se=this.loadModuleFactoryOrRoutes(Zt.loadChildren).pipe((0,at.U)(Ht=>{this.onLoadEndListener&&this.onLoadEndListener(Zt);let pn,gi,qi=!1;Array.isArray(Ht)?gi=Ht:(pn=Ht.create(ot).injector,gi=si(pn.get(br,[],l.XFs.Self|l.XFs.Optional)));return{routes:gi.map(Lr),injector:pn}}),(0,ue.x)(()=>{this.childrenLoaders.delete(Zt)})),ne=new Y.c(se,()=>new $.xQ).pipe((0,ce.x)());return this.childrenLoaders.set(Zt,ne),ne}loadModuleFactoryOrRoutes(ot){return Wt(ot()).pipe((0,Vt.zg)(Zt=>Zt instanceof l.YKP||Array.isArray(Zt)?(0,g.of)(Zt):(0,u.D)(this.compiler.compileModuleAsync(Zt))))}}return pt.\u0275fac=function(ot){return new(ot||pt)(l.LFG(l.zs3),l.LFG(l.Sil))},pt.\u0275prov=l.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),pt})();class nr{}class ja{shouldProcessUrl(mt){return!0}extract(mt){return mt}merge(mt,ot){return mt}}function es(pt){throw pt}function ns(pt,mt,ot){return mt.parse("/")}const Dr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Lu={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function mo(){const pt=(0,l.f3M)(qe),mt=(0,l.f3M)(ps),ot=(0,l.f3M)(X.Ye),Zt=(0,l.f3M)(l.zs3),jt=(0,l.f3M)(l.Sil),se=(0,l.f3M)(br,{optional:!0})??[],ne=(0,l.f3M)(Do,{optional:!0})??{},Ht=(0,l.f3M)(ii),pn=(0,l.f3M)(ti,{optional:!0}),gi=(0,l.f3M)(nr,{optional:!0}),qi=(0,l.f3M)(jn,{optional:!0}),ri=new na(null,pt,mt,ot,Zt,jt,si(se));return gi&&(ri.urlHandlingStrategy=gi),qi&&(ri.routeReuseStrategy=qi),ri.titleStrategy=pn??Ht,function ha(pt,mt){pt.errorHandler&&(mt.errorHandler=pt.errorHandler),pt.malformedUriErrorHandler&&(mt.malformedUriErrorHandler=pt.malformedUriErrorHandler),pt.onSameUrlNavigation&&(mt.onSameUrlNavigation=pt.onSameUrlNavigation),pt.paramsInheritanceStrategy&&(mt.paramsInheritanceStrategy=pt.paramsInheritanceStrategy),pt.relativeLinkResolution&&(mt.relativeLinkResolution=pt.relativeLinkResolution),pt.urlUpdateStrategy&&(mt.urlUpdateStrategy=pt.urlUpdateStrategy),pt.canceledNavigationResolution&&(mt.canceledNavigationResolution=pt.canceledNavigationResolution)}(ne,ri),ri}let na=(()=>{class pt{constructor(ot,Zt,jt,se,ne,Ht,pn){this.rootComponentType=ot,this.urlSerializer=Zt,this.rootContexts=jt,this.location=se,this.config=pn,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new $.xQ,this.errorHandler=es,this.malformedUriErrorHandler=ns,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,g.of)(void 0),this.urlHandlingStrategy=new ja,this.routeReuseStrategy=new yo,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=ne.get(Mr),this.configLoader.onLoadEndListener=ra=>this.triggerEvent(new Su(ra)),this.configLoader.onLoadStartListener=ra=>this.triggerEvent(new zr(ra)),this.ngModule=ne.get(l.h0i),this.console=ne.get(l.c2e);const ri=ne.get(l.R0b);this.isNgZoneEnabled=ri instanceof l.R0b&&l.R0b.isInAngularZone(),this.resetConfig(pn),this.currentUrlTree=function j(){return new Fi(new Bn([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ql(this.currentUrlTree,this.rootComponentType),this.transitions=new h.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(ot){const Zt=this.events;return ot.pipe((0,qt.h)(jt=>0!==jt.id),(0,at.U)(jt=>({...jt,extractedUrl:this.urlHandlingStrategy.extract(jt.rawUrl)})),(0,rt.w)(jt=>{let se=!1,ne=!1;return(0,g.of)(jt).pipe((0,xt.b)(Ht=>{this.currentNavigation={id:Ht.id,initialUrl:Ht.rawUrl,extractedUrl:Ht.extractedUrl,trigger:Ht.source,extras:Ht.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,rt.w)(Ht=>{const pn=this.browserUrlTree.toString(),gi=!this.navigated||Ht.extractedUrl.toString()!==pn||pn!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||gi)&&this.urlHandlingStrategy.shouldProcessUrl(Ht.rawUrl))return cd(Ht.source)&&(this.browserUrlTree=Ht.extractedUrl),(0,g.of)(Ht).pipe((0,rt.w)(ri=>{const ra=this.transitions.getValue();return Zt.next(new Oa(ri.id,this.serializeUrl(ri.extractedUrl),ri.source,ri.restoredState)),ra!==this.transitions.getValue()?q.E:Promise.resolve(ri)}),function Gi(pt,mt,ot,Zt){return(0,rt.w)(jt=>function ui(pt,mt,ot,Zt,jt){return new ci(pt,mt,ot,Zt,jt).apply()}(pt,mt,ot,jt.extractedUrl,Zt).pipe((0,at.U)(se=>({...jt,urlAfterRedirects:se}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,xt.b)(ri=>{this.currentNavigation={...this.currentNavigation,finalUrl:ri.urlAfterRedirects},jt.urlAfterRedirects=ri.urlAfterRedirects}),function Un(pt,mt,ot,Zt,jt,se){return(0,Vt.zg)(ne=>function co(pt,mt,ot,Zt,jt,se,ne="emptyOnly",Ht="legacy"){return new sc(pt,mt,ot,Zt,jt,ne,Ht,se).recognize().pipe((0,rt.w)(pn=>null===pn?function wa(pt){return new O.y(mt=>mt.error(pt))}(new la):(0,g.of)(pn)))}(pt,mt,ot,ne.urlAfterRedirects,Zt.serialize(ne.urlAfterRedirects),Zt,jt,se).pipe((0,at.U)(Ht=>({...ne,targetSnapshot:Ht}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,xt.b)(ri=>{if(jt.targetSnapshot=ri.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!ri.extras.skipLocationChange){const Qs=this.urlHandlingStrategy.merge(ri.urlAfterRedirects,ri.rawUrl);this.setBrowserUrl(Qs,ri)}this.browserUrlTree=ri.urlAfterRedirects}const ra=new Gr(ri.id,this.serializeUrl(ri.extractedUrl),this.serializeUrl(ri.urlAfterRedirects),ri.targetSnapshot);Zt.next(ra)}));if(gi&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:ra,extractedUrl:Qs,source:hl,restoredState:Gs,extras:cc}=Ht,N1=new Oa(ra,this.serializeUrl(Qs),hl,Gs);Zt.next(N1);const Nr=ql(Qs,this.rootComponentType).snapshot;return jt={...Ht,targetSnapshot:Nr,urlAfterRedirects:Qs,extras:{...cc,skipLocationChange:!1,replaceUrl:!1}},(0,g.of)(jt)}return this.rawUrlTree=Ht.rawUrl,Ht.resolve(null),q.E}),(0,xt.b)(Ht=>{const pn=new Sr(Ht.id,this.serializeUrl(Ht.extractedUrl),this.serializeUrl(Ht.urlAfterRedirects),Ht.targetSnapshot);this.triggerEvent(pn)}),(0,at.U)(Ht=>jt={...Ht,guards:xs(Ht.targetSnapshot,Ht.currentSnapshot,this.rootContexts)}),function ll(pt,mt){return(0,Vt.zg)(ot=>{const{targetSnapshot:Zt,currentSnapshot:jt,guards:{canActivateChecks:se,canDeactivateChecks:ne}}=ot;return 0===ne.length&&0===se.length?(0,g.of)({...ot,guardsResult:!0}):function ea(pt,mt,ot,Zt){return(0,u.D)(pt).pipe((0,Vt.zg)(jt=>function $c(pt,mt,ot,Zt,jt){const se=mt&&mt.routeConfig?mt.routeConfig.canDeactivate:null;if(!se||0===se.length)return(0,g.of)(!0);const ne=se.map(Ht=>{const pn=Ra(mt)??jt,gi=_r(Ht,pn);return Wt(function ai(pt){return pt&&aa(pt.canDeactivate)}(gi)?gi.canDeactivate(pt,mt,ot,Zt):pn.runInContext(()=>gi(pt,mt,ot,Zt))).pipe((0,Bt.P)())});return(0,g.of)(ne).pipe(Ya())}(jt.component,jt.route,ot,mt,Zt)),(0,Bt.P)(jt=>!0!==jt,!0))}(ne,Zt,jt,pt).pipe((0,Vt.zg)(Ht=>Ht&&function Xt(pt){return"boolean"==typeof pt}(Ht)?function Bs(pt,mt,ot,Zt){return(0,u.D)(mt).pipe((0,bt.b)(jt=>(0,T.z)(function su(pt,mt){return null!==pt&&mt&&mt(new Ia(pt)),(0,g.of)(!0)}(jt.route.parent,Zt),function rd(pt,mt){return null!==pt&&mt&&mt(new ku(pt)),(0,g.of)(!0)}(jt.route,Zt),function Ou(pt,mt,ot){const Zt=mt[mt.length-1],se=mt.slice(0,mt.length-1).reverse().map(ne=>function ru(pt){const mt=pt.routeConfig?pt.routeConfig.canActivateChild:null;return mt&&0!==mt.length?{node:pt,guards:mt}:null}(ne)).filter(ne=>null!==ne).map(ne=>(0,U.P)(()=>{const Ht=ne.guards.map(pn=>{const gi=Ra(ne.node)??ot,qi=_r(pn,gi);return Wt(function et(pt){return pt&&aa(pt.canActivateChild)}(qi)?qi.canActivateChild(Zt,pt):gi.runInContext(()=>qi(Zt,pt))).pipe((0,Bt.P)())});return(0,g.of)(Ht).pipe(Ya())}));return(0,g.of)(se).pipe(Ya())}(pt,jt.path,ot),function sd(pt,mt,ot){const Zt=mt.routeConfig?mt.routeConfig.canActivate:null;if(!Zt||0===Zt.length)return(0,g.of)(!0);const jt=Zt.map(se=>(0,U.P)(()=>{const ne=Ra(mt)??ot,Ht=_r(se,ne);return Wt(function St(pt){return pt&&aa(pt.canActivate)}(Ht)?Ht.canActivate(mt,pt):ne.runInContext(()=>Ht(mt,pt))).pipe((0,Bt.P)())}));return(0,g.of)(jt).pipe(Ya())}(pt,jt.route,ot))),(0,Bt.P)(jt=>!0!==jt,!0))}(Zt,se,pt,mt):(0,g.of)(Ht)),(0,at.U)(Ht=>({...ot,guardsResult:Ht})))})}(this.ngModule.injector,Ht=>this.triggerEvent(Ht)),(0,xt.b)(Ht=>{if(jt.guardsResult=Ht.guardsResult,Hi(Ht.guardsResult))throw Wc(0,Ht.guardsResult);const pn=new jr(Ht.id,this.serializeUrl(Ht.extractedUrl),this.serializeUrl(Ht.urlAfterRedirects),Ht.targetSnapshot,!!Ht.guardsResult);this.triggerEvent(pn)}),(0,qt.h)(Ht=>!!Ht.guardsResult||(this.restoreHistory(Ht),this.cancelNavigationTransition(Ht,"",3),!1)),Nn(Ht=>{if(Ht.guards.canActivateChecks.length)return(0,g.of)(Ht).pipe((0,xt.b)(pn=>{const gi=new Ps(pn.id,this.serializeUrl(pn.extractedUrl),this.serializeUrl(pn.urlAfterRedirects),pn.targetSnapshot);this.triggerEvent(gi)}),(0,rt.w)(pn=>{let gi=!1;return(0,g.of)(pn).pipe(function Ut(pt,mt){return(0,Vt.zg)(ot=>{const{targetSnapshot:Zt,guards:{canActivateChecks:jt}}=ot;if(!jt.length)return(0,g.of)(ot);let se=0;return(0,u.D)(jt).pipe((0,bt.b)(ne=>function oe(pt,mt,ot,Zt){const jt=pt.routeConfig,se=pt._resolve;return void 0!==jt?.title&&!En(jt)&&(se[fn]=jt.title),function he(pt,mt,ot,Zt){const jt=function Je(pt){return[...Object.keys(pt),...Object.getOwnPropertySymbols(pt)]}(pt);if(0===jt.length)return(0,g.of)({});const se={};return(0,u.D)(jt).pipe((0,Vt.zg)(ne=>function mn(pt,mt,ot,Zt){const jt=Ra(mt)??Zt,se=_r(pt,jt);return Wt(se.resolve?se.resolve(mt,ot):jt.runInContext(()=>se(mt,ot)))}(pt[ne],mt,ot,Zt).pipe((0,Bt.P)(),(0,xt.b)(Ht=>{se[ne]=Ht}))),Ft(1),(0,Kt.h)(se),(0,ht.K)(ne=>ks(ne)?q.E:(0,k._)(ne)))}(se,pt,mt,Zt).pipe((0,at.U)(ne=>(pt._resolvedData=ne,pt.data=bc(pt,ot).resolve,jt&&En(jt)&&(pt.data[fn]=jt.title),null)))}(ne.route,Zt,pt,mt)),(0,xt.b)(()=>se++),Ft(1),(0,Vt.zg)(ne=>se===jt.length?(0,g.of)(ot):q.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,xt.b)({next:()=>gi=!0,complete:()=>{gi||(this.restoreHistory(pn),this.cancelNavigationTransition(pn,"",2))}}))}),(0,xt.b)(pn=>{const gi=new pr(pn.id,this.serializeUrl(pn.extractedUrl),this.serializeUrl(pn.urlAfterRedirects),pn.targetSnapshot);this.triggerEvent(gi)}))}),Nn(Ht=>{const pn=gi=>{const qi=[];gi.routeConfig?.loadComponent&&!gi.routeConfig._loadedComponent&&qi.push(this.configLoader.loadComponent(gi.routeConfig).pipe((0,xt.b)(ri=>{gi.component=ri}),(0,at.U)(()=>{})));for(const ri of gi.children)qi.push(...pn(ri));return qi};return(0,x.aj)(pn(Ht.targetSnapshot.root)).pipe((0,Oe.d)(),(0,ft.q)(1))}),Nn(()=>this.afterPreactivation()),(0,at.U)(Ht=>{const pn=function _a(pt,mt,ot){const Zt=Cs(pt,mt._root,ot?ot._root:void 0);return new ic(Zt,mt)}(this.routeReuseStrategy,Ht.targetSnapshot,Ht.currentRouterState);return jt={...Ht,targetRouterState:pn}}),(0,xt.b)(Ht=>{this.currentUrlTree=Ht.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Ht.urlAfterRedirects,Ht.rawUrl),this.routerState=Ht.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Ht.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Ht),this.browserUrlTree=Ht.urlAfterRedirects)}),((pt,mt,ot)=>(0,at.U)(Zt=>(new Ga(mt,Zt.targetRouterState,Zt.currentRouterState,ot).activate(pt),Zt)))(this.rootContexts,this.routeReuseStrategy,Ht=>this.triggerEvent(Ht)),(0,xt.b)({next(){se=!0},complete(){se=!0}}),(0,ue.x)(()=>{se||ne||this.cancelNavigationTransition(jt,"",1),this.currentNavigation?.id===jt.id&&(this.currentNavigation=null)}),(0,ht.K)(Ht=>{if(ne=!0,Nc(Ht)){Ur(Ht)||(this.navigated=!0,this.restoreHistory(jt,!0));const pn=new Ds(jt.id,this.serializeUrl(jt.extractedUrl),Ht.message,Ht.cancellationCode);if(Zt.next(pn),Ur(Ht)){const gi=this.urlHandlingStrategy.merge(Ht.url,this.rawUrlTree),qi={skipLocationChange:jt.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||cd(jt.source)};this.scheduleNavigation(gi,"imperative",null,qi,{resolve:jt.resolve,reject:jt.reject,promise:jt.promise})}else jt.resolve(!1)}else{this.restoreHistory(jt,!0);const pn=new vc(jt.id,this.serializeUrl(jt.extractedUrl),Ht,jt.targetSnapshot??void 0);Zt.next(pn);try{jt.resolve(this.errorHandler(Ht))}catch(gi){jt.reject(gi)}}return q.E}))}))}resetRootComponentType(ot){this.rootComponentType=ot,this.routerState.root.component=this.rootComponentType}setTransition(ot){this.transitions.next({...this.transitions.value,...ot})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(ot=>{const Zt="popstate"===ot.type?"popstate":"hashchange";"popstate"===Zt&&setTimeout(()=>{const jt={replaceUrl:!0},se=ot.state?.navigationId?ot.state:null;if(se){const Ht={...se};delete Ht.navigationId,delete Ht.\u0275routerPageId,0!==Object.keys(Ht).length&&(jt.state=Ht)}const ne=this.parseUrl(ot.url);this.scheduleNavigation(ne,Zt,se,jt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(ot){this.events.next(ot)}resetConfig(ot){this.config=ot.map(Lr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(ot,Zt={}){const{relativeTo:jt,queryParams:se,fragment:ne,queryParamsHandling:Ht,preserveFragment:pn}=Zt,gi=jt||this.routerState.root,qi=pn?this.currentUrlTree.fragment:ne;let ri=null;switch(Ht){case"merge":ri={...this.currentUrlTree.queryParams,...se};break;case"preserve":ri=this.currentUrlTree.queryParams;break;default:ri=se||null}return null!==ri&&(ri=this.removeEmptyProps(ri)),wn(gi,this.currentUrlTree,ot,ri,qi??null)}navigateByUrl(ot,Zt={skipLocationChange:!1}){const jt=Hi(ot)?ot:this.parseUrl(ot),se=this.urlHandlingStrategy.merge(jt,this.rawUrlTree);return this.scheduleNavigation(se,"imperative",null,Zt)}navigate(ot,Zt={skipLocationChange:!1}){return function Dd(pt){for(let mt=0;mt{const se=ot[jt];return null!=se&&(Zt[jt]=se),Zt},{})}processNavigations(){this.navigations.subscribe(ot=>{this.navigated=!0,this.lastSuccessfulId=ot.id,this.currentPageId=ot.targetPageId,this.events.next(new La(ot.id,this.serializeUrl(ot.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),ot.resolve(!0)},ot=>{this.console.warn(`Unhandled Navigation Error: ${ot}`)})}scheduleNavigation(ot,Zt,jt,se,ne){if(this.disposed)return Promise.resolve(!1);let Ht,pn,gi;ne?(Ht=ne.resolve,pn=ne.reject,gi=ne.promise):gi=new Promise((ra,Qs)=>{Ht=ra,pn=Qs});const qi=++this.navigationId;let ri;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(jt=this.location.getState()),ri=jt&&jt.\u0275routerPageId?jt.\u0275routerPageId:se.replaceUrl||se.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):ri=0,this.setTransition({id:qi,targetPageId:ri,source:Zt,restoredState:jt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:ot,extras:se,resolve:Ht,reject:pn,promise:gi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),gi.catch(ra=>Promise.reject(ra))}setBrowserUrl(ot,Zt){const jt=this.urlSerializer.serialize(ot),se={...Zt.extras.state,...this.generateNgRouterState(Zt.id,Zt.targetPageId)};this.location.isCurrentPathEqualTo(jt)||Zt.extras.replaceUrl?this.location.replaceState(jt,"",se):this.location.go(jt,"",se)}restoreHistory(ot,Zt=!1){if("computed"===this.canceledNavigationResolution){const jt=this.currentPageId-ot.targetPageId;"popstate"!==ot.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===jt?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===jt&&(this.resetState(ot),this.browserUrlTree=ot.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(jt)}else"replace"===this.canceledNavigationResolution&&(Zt&&this.resetState(ot),this.resetUrlToCurrentUrlTree())}resetState(ot){this.routerState=ot.currentRouterState,this.currentUrlTree=ot.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,ot.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(ot,Zt,jt){const se=new Ds(ot.id,this.serializeUrl(ot.extractedUrl),Zt,jt);this.triggerEvent(se),ot.resolve(!1)}generateNgRouterState(ot,Zt){return"computed"===this.canceledNavigationResolution?{navigationId:ot,\u0275routerPageId:Zt}:{navigationId:ot}}}return pt.\u0275fac=function(ot){l.$Z()},pt.\u0275prov=l.Yz7({token:pt,factory:function(){return mo()},providedIn:"root"}),pt})();function cd(pt){return"imperative"!==pt}let Il=(()=>{class pt{constructor(ot,Zt,jt,se,ne){this.router=ot,this.route=Zt,this.tabIndexAttribute=jt,this.renderer=se,this.el=ne,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new $.xQ,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(ot){this._preserveFragment=(0,l.D6c)(ot)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(ot){this._skipLocationChange=(0,l.D6c)(ot)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(ot){this._replaceUrl=(0,l.D6c)(ot)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(ot){if(null!=this.tabIndexAttribute)return;const Zt=this.renderer,jt=this.el.nativeElement;null!==ot?Zt.setAttribute(jt,"tabindex",ot):Zt.removeAttribute(jt,"tabindex")}ngOnChanges(ot){this.onChanges.next(this)}set routerLink(ot){null!=ot?(this.commands=Array.isArray(ot)?ot:[ot],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return pt.\u0275fac=function(ot){return new(ot||pt)(l.Y36(na),l.Y36(kr),l.$8M("tabindex"),l.Y36(l.Qsj),l.Y36(l.SBq))},pt.\u0275dir=l.lG2({type:pt,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(ot,Zt){1&ot&&l.NdJ("click",function(){return Zt.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[l.TTD]}),pt})(),Js=(()=>{class pt{constructor(ot,Zt,jt){this.router=ot,this.route=Zt,this.locationStrategy=jt,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new $.xQ,this.subscription=ot.events.subscribe(se=>{se instanceof La&&this.updateTargetUrlAndHref()})}set preserveFragment(ot){this._preserveFragment=(0,l.D6c)(ot)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(ot){this._skipLocationChange=(0,l.D6c)(ot)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(ot){this._replaceUrl=(0,l.D6c)(ot)}get replaceUrl(){return this._replaceUrl}set routerLink(ot){this.commands=null!=ot?Array.isArray(ot)?ot:[ot]:null}ngOnChanges(ot){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(ot,Zt,jt,se,ne){return!!(0!==ot||Zt||jt||se||ne||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return pt.\u0275fac=function(ot){return new(ot||pt)(l.Y36(na),l.Y36(kr),l.Y36(X.S$))},pt.\u0275dir=l.lG2({type:pt,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(ot,Zt){1&ot&&l.NdJ("click",function(se){return Zt.onClick(se.button,se.ctrlKey,se.shiftKey,se.altKey,se.metaKey)}),2&ot&&l.uIk("target",Zt.target)("href",Zt.href,l.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[l.TTD]}),pt})(),qu=(()=>{class pt{constructor(ot,Zt,jt,se,ne,Ht){this.router=ot,this.element=Zt,this.renderer=jt,this.cdr=se,this.link=ne,this.linkWithHref=Ht,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new l.vpe,this.routerEventsSubscription=ot.events.subscribe(pn=>{pn instanceof La&&this.update()})}ngAfterContentInit(){(0,g.of)(this.links.changes,this.linksWithHrefs.changes,(0,g.of)(null)).pipe((0,je.J)()).subscribe(ot=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const ot=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(Zt=>!!Zt).map(Zt=>Zt.onChanges);this.linkInputChangesSubscription=(0,u.D)(ot).pipe((0,je.J)()).subscribe(Zt=>{this.isActive!==this.isLinkActive(this.router)(Zt)&&this.update()})}set routerLinkActive(ot){const Zt=Array.isArray(ot)?ot:ot.split(" ");this.classes=Zt.filter(jt=>!!jt)}ngOnChanges(ot){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const ot=this.hasActiveLinks();this.isActive!==ot&&(this.isActive=ot,this.cdr.markForCheck(),this.classes.forEach(Zt=>{ot?this.renderer.addClass(this.element.nativeElement,Zt):this.renderer.removeClass(this.element.nativeElement,Zt)}),ot&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(ot))})}isLinkActive(ot){const Zt=function Pd(pt){return!!pt.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return jt=>!!jt.urlTree&&ot.isActive(jt.urlTree,Zt)}hasActiveLinks(){const ot=this.isLinkActive(this.router);return this.link&&ot(this.link)||this.linkWithHref&&ot(this.linkWithHref)||this.links.some(ot)||this.linksWithHrefs.some(ot)}}return pt.\u0275fac=function(ot){return new(ot||pt)(l.Y36(na),l.Y36(l.SBq),l.Y36(l.Qsj),l.Y36(l.sBO),l.Y36(Il,8),l.Y36(Js,8))},pt.\u0275dir=l.lG2({type:pt,selectors:[["","routerLinkActive",""]],contentQueries:function(ot,Zt,jt){if(1&ot&&(l.Suo(jt,Il,5),l.Suo(jt,Js,5)),2&ot){let se;l.iGM(se=l.CRH())&&(Zt.links=se),l.iGM(se=l.CRH())&&(Zt.linksWithHrefs=se)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[l.TTD]}),pt})();class pl{}let _l=(()=>{class pt{constructor(ot,Zt,jt,se,ne){this.router=ot,this.injector=jt,this.preloadingStrategy=se,this.loader=ne}setUpPreloading(){this.subscription=this.router.events.pipe((0,qt.h)(ot=>ot instanceof La),(0,bt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(ot,Zt){const jt=[];for(const se of Zt){se.providers&&!se._injector&&(se._injector=(0,l.MMx)(se.providers,ot,`Route: ${se.path}`));const ne=se._injector??ot,Ht=se._loadedInjector??ne;se.loadChildren&&!se._loadedRoutes&&void 0===se.canLoad||se.loadComponent&&!se._loadedComponent?jt.push(this.preloadConfig(ne,se)):(se.children||se._loadedRoutes)&&jt.push(this.processRoutes(Ht,se.children??se._loadedRoutes))}return(0,u.D)(jt).pipe((0,je.J)())}preloadConfig(ot,Zt){return this.preloadingStrategy.preload(Zt,()=>{let jt;jt=Zt.loadChildren&&void 0===Zt.canLoad?this.loader.loadChildren(ot,Zt):(0,g.of)(null);const se=jt.pipe((0,Vt.zg)(ne=>null===ne?(0,g.of)(void 0):(Zt._loadedRoutes=ne.routes,Zt._loadedInjector=ne.injector,this.processRoutes(ne.injector??ot,ne.routes))));if(Zt.loadComponent&&!Zt._loadedComponent){const ne=this.loader.loadComponent(Zt);return(0,u.D)([se,ne]).pipe((0,je.J)())}return se})}}return pt.\u0275fac=function(ot){return new(ot||pt)(l.LFG(na),l.LFG(l.Sil),l.LFG(l.lqb),l.LFG(pl),l.LFG(Mr))},pt.\u0275prov=l.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),pt})();const ms=new l.OlP("");let Ic=(()=>{class pt{constructor(ot,Zt,jt={}){this.router=ot,this.viewportScroller=Zt,this.options=jt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},jt.scrollPositionRestoration=jt.scrollPositionRestoration||"disabled",jt.anchorScrolling=jt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(ot=>{ot instanceof Oa?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=ot.navigationTrigger,this.restoredId=ot.restoredState?ot.restoredState.navigationId:0):ot instanceof La&&(this.lastId=ot.id,this.scheduleScrollEvent(ot,this.router.parseUrl(ot.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(ot=>{ot instanceof us&&(ot.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(ot.position):ot.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(ot.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(ot,Zt){this.router.triggerEvent(new us(ot,"popstate"===this.lastSource?this.store[this.restoredId]:null,Zt))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return pt.\u0275fac=function(ot){l.$Z()},pt.\u0275prov=l.Yz7({token:pt,factory:pt.\u0275fac}),pt})();function yc(pt,mt){return{\u0275kind:pt,\u0275providers:mt}}function Tn(pt){return[{provide:br,multi:!0,useValue:pt}]}function Di(){const pt=(0,l.f3M)(l.zs3);return mt=>{const ot=pt.get(l.z2F);if(mt!==ot.components[0])return;const Zt=pt.get(na),jt=pt.get(Ke);1===pt.get(R)&&Zt.initialNavigation(),pt.get(Tp,null,l.XFs.Optional)?.setUpPreloading(),pt.get(ms,null,l.XFs.Optional)?.init(),Zt.resetRootComponentType(ot.componentTypes[0]),jt.closed||(jt.next(),jt.unsubscribe())}}const Ke=new l.OlP("",{factory:()=>new $.xQ}),R=new l.OlP("",{providedIn:"root",factory:()=>1});const Tp=new l.OlP("");function Kd(pt){return yc(0,[{provide:Tp,useExisting:_l},{provide:pl,useExisting:pt}])}const Er=new l.OlP("ROUTER_FORROOT_GUARD"),Xd=[X.Ye,{provide:qe,useClass:we},{provide:na,useFactory:mo},ps,{provide:kr,useFactory:function Wa(pt){return pt.routerState.root},deps:[na]},Mr];function ld(){return new l.PXZ("Router",na)}let Ap=(()=>{class pt{constructor(ot){}static forRoot(ot,Zt){return{ngModule:pt,providers:[Xd,[],Tn(ot),{provide:Er,useFactory:fl,deps:[[na,new l.FiY,new l.tp0]]},{provide:Do,useValue:Zt||{}},Zt?.useHash?{provide:X.S$,useClass:X.Do}:{provide:X.S$,useClass:X.b0},{provide:ms,useFactory:()=>{const pt=(0,l.f3M)(na),mt=(0,l.f3M)(X.EM),ot=(0,l.f3M)(Do);return ot.scrollOffset&&mt.setOffset(ot.scrollOffset),new Ic(pt,mt,ot)}},Zt?.preloadingStrategy?Kd(Zt.preloadingStrategy).\u0275providers:[],{provide:l.PXZ,multi:!0,useFactory:ld},Zt?.initialNavigation?Hl(Zt):[],[{provide:Yl,useFactory:Di},{provide:l.tb,multi:!0,useExisting:Yl}]]}}static forChild(ot){return{ngModule:pt,providers:[Tn(ot)]}}}return pt.\u0275fac=function(ot){return new(ot||pt)(l.LFG(Er,8))},pt.\u0275mod=l.oAB({type:pt}),pt.\u0275inj=l.cJS({imports:[ar]}),pt})();function fl(pt){return"guarded"}function Hl(pt){return["disabled"===pt.initialNavigation?yc(3,[{provide:l.ip1,multi:!0,useFactory:()=>{const mt=(0,l.f3M)(na);return()=>{mt.setUpLocationChangeListener()}}},{provide:R,useValue:2}]).\u0275providers:[],"enabledBlocking"===pt.initialNavigation?yc(2,[{provide:R,useValue:0},{provide:l.ip1,multi:!0,deps:[l.zs3],useFactory:mt=>{const ot=mt.get(X.V_,Promise.resolve());let Zt=!1;return()=>ot.then(()=>new Promise(se=>{const ne=mt.get(na),Ht=mt.get(Ke);(function jt(se){mt.get(na).events.pipe((0,qt.h)(Ht=>Ht instanceof La||Ht instanceof Ds||Ht instanceof vc),(0,at.U)(Ht=>Ht instanceof La||Ht instanceof Ds&&(0===Ht.code||1===Ht.code)&&null),(0,qt.h)(Ht=>null!==Ht),(0,ft.q)(1)).subscribe(()=>{se()})})(()=>{se(!0),Zt=!0}),ne.afterPreactivation=()=>(se(!0),Zt||Ht.closed?(0,g.of)(void 0):Ht),ne.initialNavigation()}))}}]).\u0275providers:[]]}const Yl=new l.OlP("")},92216:(K,W,_)=>{"use strict";_.d(W,{BN:()=>ba,by:()=>ua,uH:()=>Un});var l=_(94650);function u(Ut,oe){var he=Object.keys(Ut);if(Object.getOwnPropertySymbols){var Je=Object.getOwnPropertySymbols(Ut);oe&&(Je=Je.filter(function(mn){return Object.getOwnPropertyDescriptor(Ut,mn).enumerable})),he.push.apply(he,Je)}return he}function g(Ut){for(var oe=1;oeUt.length)&&(oe=Ut.length);for(var he=0,Je=new Array(oe);he0;)oe+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return oe}function ve(Ut){for(var oe=[],he=(Ut||[]).length>>>0;he--;)oe[he]=Ut[he];return oe}function Se(Ut){return Ut.classList?ve(Ut.classList):(Ut.getAttribute("class")||"").split(" ").filter(function(oe){return oe})}function yn(Ut){return"".concat(Ut).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Ci(Ut){return Object.keys(Ut||{}).reduce(function(oe,he){return oe+"".concat(he,": ").concat(Ut[he].trim(),";")},"")}function en(Ut){return Ut.size!==me.size||Ut.x!==me.x||Ut.y!==me.y||Ut.rotate!==me.rotate||Ut.flipX||Ut.flipY}function Wn(){var oe=fn,he=$t.cssPrefix,Je=$t.replacementClass,mn=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==he||Je!==oe){var En=new RegExp("\\.".concat("fa","\\-"),"g"),Nn=new RegExp("\\--".concat("fa","\\-"),"g"),ti=new RegExp("\\.".concat(oe),"g");mn=mn.replace(En,".".concat(he,"-")).replace(Nn,"--".concat(he,"-")).replace(ti,".".concat(Je))}return mn}var ki=!1;function Hi(){$t.autoAddCss&&!ki&&(function kt(Ut){if(Ut&&Oe){var oe=Ft.createElement("style");oe.setAttribute("type","text/css"),oe.innerHTML=Ut;for(var he=Ft.head.childNodes,Je=null,mn=he.length-1;mn>-1;mn--){var En=he[mn],Nn=(En.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(Nn)>-1&&(Je=En)}Ft.head.insertBefore(oe,Je)}}(Wn()),ki=!0)}var Ji={mixout:function(){return{dom:{css:Wn,insertCss:Hi}}},hooks:function(){return{beforeDOMElementCreation:function(){Hi()},beforeI2svg:function(){Hi()}}}},Uo=ee||{};Uo[je]||(Uo[je]={}),Uo[je].styles||(Uo[je].styles={}),Uo[je].hooks||(Uo[je].hooks={}),Uo[je].shims||(Uo[je].shims=[]);var qo=Uo[je],Pe=[],ke=!1;function Ce(Ut){!Oe||(ke?setTimeout(Ut,0):Pe.push(Ut))}function We(Ut){var oe=Ut.tag,he=Ut.attributes,Je=void 0===he?{}:he,mn=Ut.children,En=void 0===mn?[]:mn;return"string"==typeof Ut?yn(Ut):"<".concat(oe," ").concat(function pi(Ut){return Object.keys(Ut||{}).reduce(function(oe,he){return oe+"".concat(he,'="').concat(yn(Ut[he]),'" ')},"").trim()}(Je),">").concat(En.map(We).join(""),"")}function G(Ut,oe,he){if(Ut&&Ut[oe]&&Ut[oe][he])return{prefix:oe,iconName:he,icon:Ut[oe][he]}}Oe&&((ke=(Ft.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ft.readyState))||Ft.addEventListener("DOMContentLoaded",function Ut(){Ft.removeEventListener("DOMContentLoaded",Ut),ke=1,Pe.map(function(oe){return oe()})}));var B=function(oe,he,Je,mn){var ii,Ri,jn,En=Object.keys(oe),Nn=En.length,ti=void 0!==mn?function(oe,he){return function(Je,mn,En,Nn){return oe.call(he,Je,mn,En,Nn)}}(he,mn):he;for(void 0===Je?(ii=1,jn=oe[En[0]]):(ii=0,jn=Je);ii=55296&&mn<=56319&&he2&&void 0!==arguments[2]?arguments[2]:{},Je=he.skipHooks,mn=void 0!==Je&&Je,En=Zi(oe);"function"!=typeof qo.hooks.addPack||mn?qo.styles[Ut]=g(g({},qo.styles[Ut]||{}),En):qo.hooks.addPack(Ut,Zi(oe)),"fas"===Ut&&Yi("fa",oe)}var Aa,Xa,oa,Ja=qo.styles,ls=qo.shims,ma=(D(Aa={},ze,Object.values(Yt[ze])),D(Aa,Wt,Object.values(Yt[Wt])),Aa),dr=null,Oa={},La={},Ds={},vc={},Gr={},Sr=(D(Xa={},ze,Object.keys(Q[ze])),D(Xa,Wt,Object.keys(Q[Wt])),Xa);function Ps(Ut,oe){var he=oe.split("-"),Je=he[0],mn=he.slice(1).join("-");return Je!==Ut||""===mn||function jr(Ut){return~He.indexOf(Ut)}(mn)?null:mn}var pr=function(){var oe=function(En){return B(Ja,function(Nn,ti,ii){return Nn[ii]=B(ti,En,{}),Nn},{})};Oa=oe(function(mn,En,Nn){return En[3]&&(mn[En[3]]=Nn),En[2]&&En[2].filter(function(ii){return"number"==typeof ii}).forEach(function(ii){mn[ii.toString(16)]=Nn}),mn}),La=oe(function(mn,En,Nn){return mn[Nn]=Nn,En[2]&&En[2].filter(function(ii){return"string"==typeof ii}).forEach(function(ii){mn[ii]=Nn}),mn}),Gr=oe(function(mn,En,Nn){var ti=En[2];return mn[Nn]=Nn,ti.forEach(function(ii){mn[ii]=Nn}),mn});var he="far"in Ja||$t.autoFetchSvg,Je=B(ls,function(mn,En){var Nn=En[0],ti=En[1],ii=En[2];return"far"===ti&&!he&&(ti="fas"),"string"==typeof Nn&&(mn.names[Nn]={prefix:ti,iconName:ii}),"number"==typeof Nn&&(mn.unicodes[Nn.toString(16)]={prefix:ti,iconName:ii}),mn},{names:{},unicodes:{}});Ds=Je.names,vc=Je.unicodes,dr=ds($t.styleDefault,{family:$t.familyDefault})};function zr(Ut,oe){return(Oa[Ut]||{})[oe]}function Ia(Ut,oe){return(Gr[Ut]||{})[oe]}function au(Ut){return Ds[Ut]||{prefix:null,iconName:null}}function Rs(){return dr}function ds(Ut){var oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},he=oe.family,Je=void 0===he?ze:he,mn=Q[Je][Ut],En=Ct[Je][Ut]||Ct[Je][mn],Nn=Ut in qo.styles?Ut:null;return En||Nn||null}(function sn(Ut){$e.push(Ut)})(function(Ut){dr=ds(Ut.styleDefault,{family:$t.familyDefault})}),pr();var Hs=(D(oa={},ze,Object.keys(Yt[ze])),D(oa,Wt,Object.keys(Yt[Wt])),oa);function Ys(Ut){var oe,he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Je=he.skipLookups,mn=void 0!==Je&&Je,En=(D(oe={},ze,"".concat($t.cssPrefix,"-").concat(ze)),D(oe,Wt,"".concat($t.cssPrefix,"-").concat(Wt)),oe),Nn=null,ti=ze;(Ut.includes(En[ze])||Ut.some(function(Ri){return Hs[ze].includes(Ri)}))&&(ti=ze),(Ut.includes(En[Wt])||Ut.some(function(Ri){return Hs[Wt].includes(Ri)}))&&(ti=Wt);var ii=Ut.reduce(function(Ri,jn){var vi=Ps($t.cssPrefix,jn);if(Ja[jn]?(jn=ma[ti].includes(jn)?ie[ti][jn]:jn,Nn=jn,Ri.prefix=jn):Sr[ti].indexOf(jn)>-1?(Nn=jn,Ri.prefix=ds(jn,{family:ti})):vi?Ri.iconName=vi:jn!==$t.replacementClass&&jn!==En[ze]&&jn!==En[Wt]&&Ri.rest.push(jn),!mn&&Ri.prefix&&Ri.iconName){var yo="fa"===Nn?au(Ri.iconName):{},po=Ia(Ri.prefix,Ri.iconName);yo.prefix&&(Nn=null),Ri.iconName=yo.iconName||po||Ri.iconName,Ri.prefix=yo.prefix||Ri.prefix,"far"===Ri.prefix&&!Ja.far&&Ja.fas&&!$t.autoFetchSvg&&(Ri.prefix="fas")}return Ri},{prefix:null,iconName:null,rest:[]});return(Ut.includes("fa-brands")||Ut.includes("fab"))&&(ii.prefix="fab"),(Ut.includes("fa-duotone")||Ut.includes("fad"))&&(ii.prefix="fad"),!ii.prefix&&ti===Wt&&(Ja.fass||$t.autoFetchSvg)&&(ii.prefix="fass",ii.iconName=Ia(ii.prefix,ii.iconName)||ii.iconName),("fa"===ii.prefix||"fa"===Nn)&&(ii.prefix=Rs()||"fas"),ii}var Wr=function(){function Ut(){(function x(Ut,oe){if(!(Ut instanceof oe))throw new TypeError("Cannot call a class as a function")})(this,Ut),this.definitions={}}return function U(Ut,oe,he){oe&&T(Ut.prototype,oe),he&&T(Ut,he),Object.defineProperty(Ut,"prototype",{writable:!1})}(Ut,[{key:"add",value:function(){for(var he=this,Je=arguments.length,mn=new Array(Je),En=0;En0&&jn.forEach(function(vi){"string"==typeof vi&&(he[ti][vi]=Ri)}),he[ti][ii]=Ri}),he}}]),Ut}(),bs=[],$r={},ic={},ql=Object.keys(ic);function kr(Ut,oe){for(var he=arguments.length,Je=new Array(he>2?he-2:0),mn=2;mn1?oe-1:0),Je=1;Je0&&void 0!==arguments[0]?arguments[0]:{};return Oe?(bc("beforeI2svg",oe),Vr("pseudoElements2svg",oe),Vr("i2svg",oe)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},he=oe.autoReplaceSvgRoot;!1===$t.autoReplaceSvg&&($t.autoReplaceSvg=!0),$t.observeMutations=!0,Ce(function(){_a({autoReplaceSvgRoot:he}),bc("watch",oe)})}},So={noAuto:function(){$t.autoReplaceSvg=!1,$t.observeMutations=!1,bc("noAuto")},config:$t,dom:jc,parse:{icon:function(oe){if(null===oe)return null;if("object"===h(oe)&&oe.prefix&&oe.iconName)return{prefix:oe.prefix,iconName:Ia(oe.prefix,oe.iconName)||oe.iconName};if(Array.isArray(oe)&&2===oe.length){var he=0===oe[1].indexOf("fa-")?oe[1].slice(3):oe[1],Je=ds(oe[0]);return{prefix:Je,iconName:Ia(Je,he)||he}}if("string"==typeof oe&&(oe.indexOf("".concat($t.cssPrefix,"-"))>-1||oe.match(re))){var mn=Ys(oe.split(" "),{skipLookups:!0});return{prefix:mn.prefix||Rs(),iconName:Ia(mn.prefix,mn.iconName)||mn.iconName}}if("string"==typeof oe){var En=Rs();return{prefix:En,iconName:Ia(En,oe)||oe}}}},library:Kr,findIconDefinition:zs,toHtml:We},_a=function(){var oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},he=oe.autoReplaceSvgRoot,Je=void 0===he?Ft:he;(Object.keys(qo.styles).length>0||$t.autoFetchSvg)&&Oe&&$t.autoReplaceSvg&&So.dom.i2svg({node:Je})};function Cs(Ut,oe){return Object.defineProperty(Ut,"abstract",{get:oe}),Object.defineProperty(Ut,"html",{get:function(){return Ut.abstract.map(function(Je){return We(Je)})}}),Object.defineProperty(Ut,"node",{get:function(){if(Oe){var Je=Ft.createElement("div");return Je.innerHTML=Ut.html,Je.children}}}),Ut}function jo(Ut){var oe=Ut.icons,he=oe.main,Je=oe.mask,mn=Ut.prefix,En=Ut.iconName,Nn=Ut.transform,ti=Ut.symbol,ii=Ut.title,Ri=Ut.maskId,jn=Ut.titleId,vi=Ut.extra,yo=Ut.watchable,po=void 0!==yo&&yo,Do=Je.found?Je:he,er=Do.width,br=Do.height,Mr="fak"===mn,nr=[$t.replacementClass,En?"".concat($t.cssPrefix,"-").concat(En):""].filter(function(ha){return-1===vi.classes.indexOf(ha)}).filter(function(ha){return""!==ha||!!ha}).concat(vi.classes).join(" "),ja={children:[],attributes:g(g({},vi.attributes),{},{"data-prefix":mn,"data-icon":En,class:nr,role:vi.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(er," ").concat(br)})},sr=Mr&&!~vi.classes.indexOf("fa-fw")?{width:"".concat(er/br*16*.0625,"em")}:{};po&&(ja.attributes[An]=""),ii&&(ja.children.push({tag:"title",attributes:{id:ja.attributes["aria-labelledby"]||"title-".concat(jn||Nt())},children:[ii]}),delete ja.attributes.title);var es=g(g({},ja),{},{prefix:mn,iconName:En,main:he,mask:Je,maskId:Ri,transform:Nn,symbol:ti,styles:g(g({},sr),vi.styles)}),ns=Je.found&&he.found?Vr("generateAbstractMask",es)||{children:[],attributes:{}}:Vr("generateAbstractIcon",es)||{children:[],attributes:{}},Lu=ns.attributes;return es.children=ns.children,es.attributes=Lu,ti?function El(Ut){var he=Ut.iconName,Je=Ut.children,mn=Ut.attributes,En=Ut.symbol,Nn=!0===En?"".concat(Ut.prefix,"-").concat($t.cssPrefix,"-").concat(he):En;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:g(g({},mn),{},{id:Nn}),children:Je}]}]}(es):function cl(Ut){var oe=Ut.children,he=Ut.main,Je=Ut.mask,mn=Ut.attributes,En=Ut.styles,Nn=Ut.transform;if(en(Nn)&&he.found&&!Je.found){var Ri={x:he.width/he.height/2,y:.5};mn.style=Ci(g(g({},En),{},{"transform-origin":"".concat(Ri.x+Nn.x/16,"em ").concat(Ri.y+Nn.y/16,"em")}))}return[{tag:"svg",attributes:mn,children:oe}]}(es)}function Wc(Ut){var oe=Ut.content,he=Ut.width,Je=Ut.height,mn=Ut.transform,En=Ut.title,Nn=Ut.extra,ti=Ut.watchable,ii=void 0!==ti&&ti,Ri=g(g(g({},Nn.attributes),En?{title:En}:{}),{},{class:Nn.classes.join(" ")});ii&&(Ri[An]="");var jn=g({},Nn.styles);en(mn)&&(jn.transform=function Be(Ut){var oe=Ut.transform,he=Ut.width,mn=Ut.height,En=void 0===mn?16:mn,Nn=Ut.startCentered,ti=void 0!==Nn&&Nn,ii="";return ii+=ti&&Ie?"translate(".concat(oe.x/16-(void 0===he?16:he)/2,"em, ").concat(oe.y/16-En/2,"em) "):ti?"translate(calc(-50% + ".concat(oe.x/16,"em), calc(-50% + ").concat(oe.y/16,"em)) "):"translate(".concat(oe.x/16,"em, ").concat(oe.y/16,"em) "),(ii+="scale(".concat(oe.size/16*(oe.flipX?-1:1),", ").concat(oe.size/16*(oe.flipY?-1:1),") "))+"rotate(".concat(oe.rotate,"deg) ")}({transform:mn,startCentered:!0,width:he,height:Je}),jn["-webkit-transform"]=jn.transform);var vi=Ci(jn);vi.length>0&&(Ri.style=vi);var yo=[];return yo.push({tag:"span",attributes:Ri,children:[oe]}),En&&yo.push({tag:"span",attributes:{class:"sr-only"},children:[En]}),yo}function Ar(Ut){var oe=Ut.content,he=Ut.title,Je=Ut.extra,mn=g(g(g({},Je.attributes),he?{title:he}:{}),{},{class:Je.classes.join(" ")}),En=Ci(Je.styles);En.length>0&&(mn.style=En);var Nn=[];return Nn.push({tag:"span",attributes:mn,children:[oe]}),he&&Nn.push({tag:"span",attributes:{class:"sr-only"},children:[he]}),Nn}var Ur=qo.styles;function Nc(Ut){var oe=Ut[0],he=Ut[1],En=q(Ut.slice(4),1)[0];return{found:!0,width:oe,height:he,icon:Array.isArray(En)?{tag:"g",attributes:{class:"".concat($t.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat($t.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:En[0]}},{tag:"path",attributes:{class:"".concat($t.cssPrefix,"-").concat("primary"),fill:"currentColor",d:En[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:En}}}}var Fa={found:!1,width:512,height:512};function Ko(Ut,oe){var he=oe;return"fa"===oe&&null!==$t.styleDefault&&(oe=Rs()),new Promise(function(Je,mn){if(Vr("missingIconAbstract"),"fa"===he){var Nn=au(Ut)||{};Ut=Nn.iconName||Ut,oe=Nn.prefix||oe}if(Ut&&oe&&Ur[oe]&&Ur[oe][Ut])return Je(Nc(Ur[oe][Ut]));(function ps(Ut,oe){!Vn&&!$t.showMissingIcons&&Ut&&console.error('Icon with name "'.concat(Ut,'" and prefix "').concat(oe,'" is missing.'))})(Ut,oe),Je(g(g({},Fa),{},{icon:$t.showMissingIcons&&Ut&&Vr("missingIconAbstract")||{}}))})}var Xo=function(){},qa=$t.measurePerformance&&pe&&pe.mark&&pe.measure?pe:{mark:Xo,measure:Xo},Pa='FA "6.2.1"',Br_begin=function(oe){return qa.mark("".concat(Pa," ").concat(oe," begins")),function(){return function(oe){qa.mark("".concat(Pa," ").concat(oe," ends")),qa.measure("".concat(Pa," ").concat(oe),"".concat(Pa," ").concat(oe," begins"),"".concat(Pa," ").concat(oe," ends"))}(oe)}},mr=function(){};function Fo(Ut){return"string"==typeof(Ut.getAttribute?Ut.getAttribute(An):null)}function Or(Ut){return Ft.createElementNS("http://www.w3.org/2000/svg",Ut)}function Xr(Ut){return Ft.createElement(Ut)}function Lr(Ut){var oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},he=oe.ceFn,Je=void 0===he?"svg"===Ut.tag?Or:Xr:he;if("string"==typeof Ut)return Ft.createTextNode(Ut);var mn=Je(Ut.tag);Object.keys(Ut.attributes||[]).forEach(function(Nn){mn.setAttribute(Nn,Ut.attributes[Nn])});var En=Ut.children||[];return En.forEach(function(Nn){mn.appendChild(Lr(Nn,{ceFn:Je}))}),mn}var Si={replace:function(oe){var he=oe[0];if(he.parentNode)if(oe[1].forEach(function(mn){he.parentNode.insertBefore(Lr(mn),he)}),null===he.getAttribute(An)&&$t.keepOriginalSource){var Je=Ft.createComment(function ta(Ut){var oe=" ".concat(Ut.outerHTML," ");return"".concat(oe,"Font Awesome fontawesome.com ")}(he));he.parentNode.replaceChild(Je,he)}else he.remove()},nest:function(oe){var he=oe[0],Je=oe[1];if(~Se(he).indexOf($t.replacementClass))return Si.replace(oe);var mn=new RegExp("".concat($t.cssPrefix,"-.*"));if(delete Je[0].attributes.id,Je[0].attributes.class){var En=Je[0].attributes.class.split(" ").reduce(function(ti,ii){return ii===$t.replacementClass||ii.match(mn)?ti.toSvg.push(ii):ti.toNode.push(ii),ti},{toNode:[],toSvg:[]});Je[0].attributes.class=En.toSvg.join(" "),0===En.toNode.length?he.removeAttribute("class"):he.setAttribute("class",En.toNode.join(" "))}var Nn=Je.map(function(ti){return We(ti)}).join("\n");he.setAttribute(An,""),he.innerHTML=Nn}};function Ra(Ut){Ut()}function va(Ut,oe){var he="function"==typeof oe?oe:mr;if(0===Ut.length)he();else{var Je=Ra;"async"===$t.mutateApproach&&(Je=ee.requestAnimationFrame||Ra),Je(function(){var mn=function wr(){return!0===$t.autoReplaceSvg?Si.replace:Si[$t.autoReplaceSvg]||Si.replace}(),En=Br_begin("mutate");Ut.map(mn),En(),he()})}}var Ga=!1;function Ss(){Ga=!0}function oc(){Ga=!1}var xs=null;function ru(Ut){if(_e&&$t.observeMutations){var oe=Ut.treeCallback,he=void 0===oe?mr:oe,Je=Ut.nodeCallback,mn=void 0===Je?mr:Je,En=Ut.pseudoElementsCallback,Nn=void 0===En?mr:En,ti=Ut.observeMutationsRoot,ii=void 0===ti?Ft:ti;xs=new _e(function(Ri){if(!Ga){var jn=Rs();ve(Ri).forEach(function(vi){if("childList"===vi.type&&vi.addedNodes.length>0&&!Fo(vi.addedNodes[0])&&($t.searchPseudoElements&&Nn(vi.target),he(vi.target)),"attributes"===vi.type&&vi.target.parentNode&&$t.searchPseudoElements&&Nn(vi.target.parentNode),"attributes"===vi.type&&Fo(vi.target)&&~Bn.indexOf(vi.attributeName))if("class"===vi.attributeName&&function rr(Ut){var oe=Ut.getAttribute?Ut.getAttribute(Re):null,he=Ut.getAttribute?Ut.getAttribute(_n):null;return oe&&he}(vi.target)){var yo=Ys(Se(vi.target)),Do=yo.iconName;vi.target.setAttribute(Re,yo.prefix||jn),Do&&vi.target.setAttribute(_n,Do)}else(function Zr(Ut){return Ut&&Ut.classList&&Ut.classList.contains&&Ut.classList.contains($t.replacementClass)})(vi.target)&&mn(vi.target)})}}),Oe&&xs.observe(ii,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Ti(Ut){var oe=Ut.getAttribute("style"),he=[];return oe&&(he=oe.split(";").reduce(function(Je,mn){var En=mn.split(":"),Nn=En[0],ti=En.slice(1);return Nn&&ti.length>0&&(Je[Nn]=ti.join(":").trim()),Je},{})),he}function xo(Ut){var oe=Ut.getAttribute("data-prefix"),he=Ut.getAttribute("data-icon"),Je=void 0!==Ut.innerText?Ut.innerText.trim():"",mn=Ys(Se(Ut));return mn.prefix||(mn.prefix=Rs()),oe&&he&&(mn.prefix=oe,mn.iconName=he),mn.iconName&&mn.prefix||(mn.prefix&&Je.length>0&&(mn.iconName=function Su(Ut,oe){return(La[Ut]||{})[oe]}(mn.prefix,Ut.innerText)||zr(mn.prefix,Le(Ut.innerText))),!mn.iconName&&$t.autoFetchSvg&&Ut.firstChild&&Ut.firstChild.nodeType===Node.TEXT_NODE&&(mn.iconName=Ut.firstChild.data)),mn}function fa(Ut){var oe=ve(Ut.attributes).reduce(function(mn,En){return"class"!==mn.name&&"style"!==mn.name&&(mn[En.name]=En.value),mn},{}),he=Ut.getAttribute("title"),Je=Ut.getAttribute("data-fa-title-id");return $t.autoA11y&&(he?oe["aria-labelledby"]="".concat($t.replacementClass,"-title-").concat(Je||Nt()):(oe["aria-hidden"]="true",oe.focusable="false")),oe}function aa(Ut){var oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},he=xo(Ut),Je=he.iconName,mn=he.prefix,En=he.rest,Nn=fa(Ut),ti=kr("parseNodeAttributes",{},Ut),ii=oe.styleParser?Ti(Ut):[];return g({iconName:Je,title:Ut.getAttribute("title"),titleId:Ut.getAttribute("data-fa-title-id"),prefix:mn,transform:me,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:En,styles:ii,attributes:Nn}},ti)}var Xt=qo.styles;function Jt(Ut){var oe="nest"===$t.autoReplaceSvg?aa(Ut,{styleParser:!1}):aa(Ut);return~oe.extra.classes.indexOf(tn)?Vr("generateLayersText",Ut,oe):Vr("generateSvgReplacementMutation",Ut,oe)}var St=new Set;function et(Ut){var oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Oe)return Promise.resolve();var he=Ft.documentElement.classList,Je=function(vi){return he.add("".concat(Kn,"-").concat(vi))},mn=function(vi){return he.remove("".concat(Kn,"-").concat(vi))},En=$t.autoFetchSvg?St:J.map(function(jn){return"fa-".concat(jn)}).concat(Object.keys(Xt));En.includes("fa")||En.push("fa");var Nn=[".".concat(tn,":not([").concat(An,"])")].concat(En.map(function(jn){return".".concat(jn,":not([").concat(An,"])")})).join(", ");if(0===Nn.length)return Promise.resolve();var ti=[];try{ti=ve(Ut.querySelectorAll(Nn))}catch{}if(!(ti.length>0))return Promise.resolve();Je("pending"),mn("complete");var ii=Br_begin("onTree"),Ri=ti.reduce(function(jn,vi){try{var yo=Jt(vi);yo&&jn.push(yo)}catch(po){Vn||"MissingIcon"===po.name&&console.error(po)}return jn},[]);return new Promise(function(jn,vi){Promise.all(Ri).then(function(yo){va(yo,function(){Je("active"),Je("complete"),mn("pending"),"function"==typeof oe&&oe(),ii(),jn()})}).catch(function(yo){ii(),vi(yo)})})}function ai(Ut){var oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Jt(Ut).then(function(he){he&&va([he],oe)})}J.map(function(Ut){St.add("fa-".concat(Ut))}),Object.keys(Q[ze]).map(St.add.bind(St)),Object.keys(Q[Wt]).map(St.add.bind(St)),St=Y(St);var Eo=function(oe){var he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Je=he.transform,mn=void 0===Je?me:Je,En=he.symbol,Nn=void 0!==En&&En,ti=he.mask,ii=void 0===ti?null:ti,Ri=he.maskId,jn=void 0===Ri?null:Ri,vi=he.title,yo=void 0===vi?null:vi,po=he.titleId,Do=void 0===po?null:po,er=he.classes,br=void 0===er?[]:er,Mr=he.attributes,nr=void 0===Mr?{}:Mr,ja=he.styles,sr=void 0===ja?{}:ja;if(oe){var es=oe.prefix,ns=oe.iconName,Dr=oe.icon;return Cs(g({type:"icon"},oe),function(){return bc("beforeDOMElementCreation",{iconDefinition:oe,params:he}),$t.autoA11y&&(yo?nr["aria-labelledby"]="".concat($t.replacementClass,"-title-").concat(Do||Nt()):(nr["aria-hidden"]="true",nr.focusable="false")),jo({icons:{main:Nc(Dr),mask:ii?Nc(ii.icon):{found:!1,width:null,height:null,icon:{}}},prefix:es,iconName:ns,transform:g(g({},me),mn),symbol:Nn,title:yo,maskId:jn,titleId:Do,extra:{attributes:nr,styles:sr,classes:br}})})}},Vs={mixout:function(){return{icon:(Ut=Eo,function(oe){var he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Je=(oe||{}).icon?oe:zs(oe||{}),mn=he.mask;return mn&&(mn=(mn||{}).icon?mn:zs(mn||{})),Ut(Je,g(g({},he),{},{mask:mn}))})};var Ut},hooks:function(){return{mutationObserverCallbacks:function(he){return he.treeCallback=et,he.nodeCallback=ai,he}}},provides:function(oe){oe.i2svg=function(he){var Je=he.node,En=he.callback;return et(void 0===Je?Ft:Je,void 0===En?function(){}:En)},oe.generateSvgReplacementMutation=function(he,Je){var mn=Je.iconName,En=Je.title,Nn=Je.titleId,ti=Je.prefix,ii=Je.transform,Ri=Je.symbol,jn=Je.mask,vi=Je.maskId,yo=Je.extra;return new Promise(function(po,Do){Promise.all([Ko(mn,ti),jn.iconName?Ko(jn.iconName,jn.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(er){var br=q(er,2);po([he,jo({icons:{main:br[0],mask:br[1]},prefix:ti,iconName:mn,transform:ii,symbol:Ri,maskId:vi,title:En,titleId:Nn,extra:yo,watchable:!0})])}).catch(Do)})},oe.generateAbstractIcon=function(he){var Ri,Je=he.children,mn=he.attributes,En=he.main,Nn=he.transform,ii=Ci(he.styles);return ii.length>0&&(mn.style=ii),en(Nn)&&(Ri=Vr("generateAbstractTransformGrouping",{main:En,transform:Nn,containerWidth:En.width,iconWidth:En.width})),Je.push(Ri||En.icon),{children:Je,attributes:mn}}}},ks={mixout:function(){return{layer:function(he){var Je=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},mn=Je.classes,En=void 0===mn?[]:mn;return Cs({type:"layer"},function(){bc("beforeDOMElementCreation",{assembler:he,params:Je});var Nn=[];return he(function(ti){Array.isArray(ti)?ti.map(function(ii){Nn=Nn.concat(ii.abstract)}):Nn=Nn.concat(ti.abstract)}),[{tag:"span",attributes:{class:["".concat($t.cssPrefix,"-layers")].concat(Y(En)).join(" ")},children:Nn}]})}}}},Ha={mixout:function(){return{counter:function(he){var Je=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},mn=Je.title,En=void 0===mn?null:mn,Nn=Je.classes,ti=void 0===Nn?[]:Nn,ii=Je.attributes,Ri=void 0===ii?{}:ii,jn=Je.styles,vi=void 0===jn?{}:jn;return Cs({type:"counter",content:he},function(){return bc("beforeDOMElementCreation",{content:he,params:Je}),Ar({content:he.toString(),title:En,extra:{attributes:Ri,styles:vi,classes:["".concat($t.cssPrefix,"-layers-counter")].concat(Y(ti))}})})}}}},Ya={mixout:function(){return{text:function(he){var Je=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},mn=Je.transform,En=void 0===mn?me:mn,Nn=Je.title,ti=void 0===Nn?null:Nn,ii=Je.classes,Ri=void 0===ii?[]:ii,jn=Je.attributes,vi=void 0===jn?{}:jn,yo=Je.styles,po=void 0===yo?{}:yo;return Cs({type:"text",content:he},function(){return bc("beforeDOMElementCreation",{content:he,params:Je}),Wc({content:he,transform:g(g({},me),En),title:ti,extra:{attributes:vi,styles:po,classes:["".concat($t.cssPrefix,"-layers-text")].concat(Y(Ri))}})})}}},provides:function(oe){oe.generateLayersText=function(he,Je){var mn=Je.title,En=Je.transform,Nn=Je.extra,ti=null,ii=null;if(Ie){var Ri=parseInt(getComputedStyle(he).fontSize,10),jn=he.getBoundingClientRect();ti=jn.width/Ri,ii=jn.height/Ri}return $t.autoA11y&&!mn&&(Nn.attributes["aria-hidden"]="true"),Promise.resolve([he,Wc({content:he.innerHTML,width:ti,height:ii,transform:En,title:mn,extra:Nn,watchable:!0})])}}},ll=new RegExp('"',"ug"),ea=[1105920,1112319];function rd(Ut,oe){var he="".concat("data-fa-pseudo-element-pending").concat(oe.replace(":","-"));return new Promise(function(Je,mn){if(null!==Ut.getAttribute(he))return Je();var Nn=ve(Ut.children).filter(function(Dr){return Dr.getAttribute(xe)===oe})[0],ti=ee.getComputedStyle(Ut,oe),ii=ti.getPropertyValue("font-family").match(Cn),Ri=ti.getPropertyValue("font-weight"),jn=ti.getPropertyValue("content");if(Nn&&!ii)return Ut.removeChild(Nn),Je();if(ii&&"none"!==jn&&""!==jn){var vi=ti.getPropertyValue("content"),yo=~["Sharp"].indexOf(ii[2])?Wt:ze,po=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(ii[2])?Ct[yo][ii[2].toLowerCase()]:Yn[yo][Ri],Do=function Bs(Ut){var oe=Ut.replace(ll,""),he=function kn(Ut,oe){var mn,he=Ut.length,Je=Ut.charCodeAt(oe);return Je>=55296&&Je<=56319&&he>oe+1&&(mn=Ut.charCodeAt(oe+1))>=56320&&mn<=57343?1024*(Je-55296)+mn-56320+65536:Je}(oe,0),Je=he>=ea[0]&&he<=ea[1],mn=2===oe.length&&oe[0]===oe[1];return{value:Le(mn?oe[0]:oe),isSecondary:Je||mn}}(vi),er=Do.value,br=Do.isSecondary,Mr=ii[0].startsWith("FontAwesome"),nr=zr(po,er),ja=nr;if(Mr){var sr=function ku(Ut){var oe=vc[Ut],he=zr("fas",Ut);return oe||(he?{prefix:"fas",iconName:he}:null)||{prefix:null,iconName:null}}(er);sr.iconName&&sr.prefix&&(nr=sr.iconName,po=sr.prefix)}if(!nr||br||Nn&&Nn.getAttribute(Re)===po&&Nn.getAttribute(_n)===ja)Je();else{Ut.setAttribute(he,ja),Nn&&Ut.removeChild(Nn);var es=function tr(){return{iconName:null,title:null,titleId:null,prefix:null,transform:me,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),ns=es.extra;ns.attributes[xe]=oe,Ko(nr,po).then(function(Dr){var Lu=jo(g(g({},es),{},{icons:{main:Dr,mask:{prefix:null,iconName:null,rest:[]}},prefix:po,iconName:ja,extra:ns,watchable:!0})),ha=Ft.createElement("svg");"::before"===oe?Ut.insertBefore(ha,Ut.firstChild):Ut.appendChild(ha),ha.outerHTML=Lu.map(function(mo){return We(mo)}).join("\n"),Ut.removeAttribute(he),Je()}).catch(mn)}}else Je()})}function su(Ut){return Promise.all([rd(Ut,"::before"),rd(Ut,"::after")])}function sd(Ut){return!(Ut.parentNode===document.head||~oi.indexOf(Ut.tagName.toUpperCase())||Ut.getAttribute(xe)||Ut.parentNode&&"svg"===Ut.parentNode.tagName)}function Ou(Ut){if(Oe)return new Promise(function(oe,he){var Je=ve(Ut.querySelectorAll("*")).filter(sd).map(su),mn=Br_begin("searchPseudoElements");Ss(),Promise.all(Je).then(function(){mn(),oc(),oe()}).catch(function(){mn(),oc(),he()})})}var Os=!1,ac=function(oe){return oe.toLowerCase().split(" ").reduce(function(Je,mn){var En=mn.toLowerCase().split("-"),Nn=En[0],ti=En.slice(1).join("-");if(Nn&&"h"===ti)return Je.flipX=!0,Je;if(Nn&&"v"===ti)return Je.flipY=!0,Je;if(ti=parseFloat(ti),isNaN(ti))return Je;switch(Nn){case"grow":Je.size=Je.size+ti;break;case"shrink":Je.size=Je.size-ti;break;case"left":Je.x=Je.x-ti;break;case"right":Je.x=Je.x+ti;break;case"up":Je.y=Je.y-ti;break;case"down":Je.y=Je.y+ti;break;case"rotate":Je.rotate=Je.rotate+ti}return Je},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},xc={x:0,y:0,width:"100%",height:"100%"};function ys(Ut){var oe=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ut.attributes&&(Ut.attributes.fill||oe)&&(Ut.attributes.fill="black"),Ut}!function qc(Ut,oe){var he=oe.mixoutsTo;bs=Ut,$r={},Object.keys(ic).forEach(function(Je){-1===ql.indexOf(Je)&&delete ic[Je]}),bs.forEach(function(Je){var mn=Je.mixout?Je.mixout():{};if(Object.keys(mn).forEach(function(Nn){"function"==typeof mn[Nn]&&(he[Nn]=mn[Nn]),"object"===h(mn[Nn])&&Object.keys(mn[Nn]).forEach(function(ti){he[Nn]||(he[Nn]={}),he[Nn][ti]=mn[Nn][ti]})}),Je.hooks){var En=Je.hooks();Object.keys(En).forEach(function(Nn){$r[Nn]||($r[Nn]=[]),$r[Nn].push(En[Nn])})}Je.provides&&Je.provides(ic)})}([Ji,Vs,ks,Ha,Ya,{hooks:function(){return{mutationObserverCallbacks:function(he){return he.pseudoElementsCallback=Ou,he}}},provides:function(oe){oe.pseudoElements2svg=function(he){var Je=he.node;$t.searchPseudoElements&&Ou(void 0===Je?Ft:Je)}}},{mixout:function(){return{dom:{unwatch:function(){Ss(),Os=!0}}}},hooks:function(){return{bootstrap:function(){ru(kr("mutationObserverCallbacks",{}))},noAuto:function(){!function _r(){!xs||xs.disconnect()}()},watch:function(he){var Je=he.observeMutationsRoot;Os?oc():ru(kr("mutationObserverCallbacks",{observeMutationsRoot:Je}))}}}},{mixout:function(){return{parse:{transform:function(he){return ac(he)}}}},hooks:function(){return{parseNodeAttributes:function(he,Je){var mn=Je.getAttribute("data-fa-transform");return mn&&(he.transform=ac(mn)),he}}},provides:function(oe){oe.generateAbstractTransformGrouping=function(he){var Je=he.main,mn=he.transform,Nn=he.iconWidth,ti={transform:"translate(".concat(he.containerWidth/2," 256)")},ii="translate(".concat(32*mn.x,", ").concat(32*mn.y,") "),Ri="scale(".concat(mn.size/16*(mn.flipX?-1:1),", ").concat(mn.size/16*(mn.flipY?-1:1),") "),jn="rotate(".concat(mn.rotate," 0 0)"),po={outer:ti,inner:{transform:"".concat(ii," ").concat(Ri," ").concat(jn)},path:{transform:"translate(".concat(Nn/2*-1," -256)")}};return{tag:"g",attributes:g({},po.outer),children:[{tag:"g",attributes:g({},po.inner),children:[{tag:Je.icon.tag,children:Je.icon.children,attributes:g(g({},Je.icon.attributes),po.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(he,Je){var mn=Je.getAttribute("data-fa-mask"),En=mn?Ys(mn.split(" ").map(function(Nn){return Nn.trim()})):{prefix:null,iconName:null,rest:[]};return En.prefix||(En.prefix=Rs()),he.mask=En,he.maskId=Je.getAttribute("data-fa-mask-id"),he}}},provides:function(oe){oe.generateAbstractMask=function(he){var Ut,Je=he.children,mn=he.attributes,En=he.main,Nn=he.mask,ti=he.maskId,jn=En.icon,yo=Nn.icon,po=function an(Ut){var oe=Ut.transform,Je=Ut.iconWidth,mn={transform:"translate(".concat(Ut.containerWidth/2," 256)")},En="translate(".concat(32*oe.x,", ").concat(32*oe.y,") "),Nn="scale(".concat(oe.size/16*(oe.flipX?-1:1),", ").concat(oe.size/16*(oe.flipY?-1:1),") "),ti="rotate(".concat(oe.rotate," 0 0)");return{outer:mn,inner:{transform:"".concat(En," ").concat(Nn," ").concat(ti)},path:{transform:"translate(".concat(Je/2*-1," -256)")}}}({transform:he.transform,containerWidth:Nn.width,iconWidth:En.width}),Do={tag:"rect",attributes:g(g({},xc),{},{fill:"white"})},er=jn.children?{children:jn.children.map(ys)}:{},br={tag:"g",attributes:g({},po.inner),children:[ys(g({tag:jn.tag,attributes:g(g({},jn.attributes),po.path)},er))]},Mr={tag:"g",attributes:g({},po.outer),children:[br]},nr="mask-".concat(ti||Nt()),ja="clip-".concat(ti||Nt()),sr={tag:"mask",attributes:g(g({},xc),{},{id:nr,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[Do,Mr]},es={tag:"defs",children:[{tag:"clipPath",attributes:{id:ja},children:(Ut=yo,"g"===Ut.tag?Ut.children:[Ut])},sr]};return Je.push(es,{tag:"rect",attributes:g({fill:"currentColor","clip-path":"url(#".concat(ja,")"),mask:"url(#".concat(nr,")")},xc)}),{children:Je,attributes:mn}}}},{provides:function(oe){var he=!1;ee.matchMedia&&(he=ee.matchMedia("(prefers-reduced-motion: reduce)").matches),oe.missingIconAbstract=function(){var Je=[],mn={fill:"currentColor"},En={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Je.push({tag:"path",attributes:g(g({},mn),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var Nn=g(g({},En),{},{attributeName:"opacity"}),ti={tag:"circle",attributes:g(g({},mn),{},{cx:"256",cy:"364",r:"28"}),children:[]};return he||ti.children.push({tag:"animate",attributes:g(g({},En),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:g(g({},Nn),{},{values:"1;0;1;1;0;1;"})}),Je.push(ti),Je.push({tag:"path",attributes:g(g({},mn),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:he?[]:[{tag:"animate",attributes:g(g({},Nn),{},{values:"1;0;0;0;0;1;"})}]}),he||Je.push({tag:"path",attributes:g(g({},mn),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:g(g({},Nn),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:Je}}}},{hooks:function(){return{parseNodeAttributes:function(he,Je){var mn=Je.getAttribute("data-fa-symbol");return he.symbol=null!==mn&&(""===mn||mn),he}}}}],{mixoutsTo:So});var Ho=So.parse,Ii=So.icon,ci=_(11481);const Gi=["*"],wa=Ut=>{const oe={"fa-spin":Ut.spin,"fa-pulse":Ut.pulse,"fa-fw":Ut.fixedWidth,"fa-border":Ut.border,"fa-inverse":Ut.inverse,"fa-layers-counter":Ut.counter,"fa-flip-horizontal":"horizontal"===Ut.flip||"both"===Ut.flip,"fa-flip-vertical":"vertical"===Ut.flip||"both"===Ut.flip,[`fa-${Ut.size}`]:null!==Ut.size,[`fa-rotate-${Ut.rotate}`]:null!==Ut.rotate,[`fa-pull-${Ut.pull}`]:null!==Ut.pull,[`fa-stack-${Ut.stackItemSize}`]:null!=Ut.stackItemSize};return Object.keys(oe).map(he=>oe[he]?he:null).filter(he=>he)};let ul=(()=>{class Ut{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return Ut.\u0275fac=function(he){return new(he||Ut)},Ut.\u0275prov=l.Yz7({token:Ut,factory:Ut.\u0275fac,providedIn:"root"}),Ut})(),ua=(()=>{class Ut{constructor(){this.definitions={}}addIcons(...he){for(const Je of he){Je.prefix in this.definitions||(this.definitions[Je.prefix]={}),this.definitions[Je.prefix][Je.iconName]=Je;for(const mn of Je.icon[2])"string"==typeof mn&&(this.definitions[Je.prefix][mn]=Je)}}addIconPacks(...he){for(const Je of he){const mn=Object.keys(Je).map(En=>Je[En]);this.addIcons(...mn)}}getIconDefinition(he,Je){return he in this.definitions&&Je in this.definitions[he]?this.definitions[he][Je]:null}}return Ut.\u0275fac=function(he){return new(he||Ut)},Ut.\u0275prov=l.Yz7({token:Ut,factory:Ut.\u0275fac,providedIn:"root"}),Ut})(),ts=(()=>{class Ut{constructor(){this.stackItemSize="1x"}ngOnChanges(he){if("size"in he)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return Ut.\u0275fac=function(he){return new(he||Ut)},Ut.\u0275dir=l.lG2({type:Ut,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[l.TTD]}),Ut})(),dl=(()=>{class Ut{constructor(he,Je){this.renderer=he,this.elementRef=Je}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(he){"size"in he&&(null!=he.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${he.size.currentValue}`),null!=he.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${he.size.previousValue}`))}}return Ut.\u0275fac=function(he){return new(he||Ut)(l.Y36(l.Qsj),l.Y36(l.SBq))},Ut.\u0275cmp=l.Xpm({type:Ut,selectors:[["fa-stack"]],inputs:{size:"size"},features:[l.TTD],ngContentSelectors:Gi,decls:1,vars:0,template:function(he,Je){1&he&&(l.F$t(),l.Hsn(0))},encapsulation:2}),Ut})(),ba=(()=>{class Ut{constructor(he,Je,mn,En,Nn){this.sanitizer=he,this.config=Je,this.iconLibrary=mn,this.stackItem=En,this.classes=[],null!=Nn&&null==En&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(he){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let Je=null;if(Je=this.icon??this.config.fallbackIcon,he){const mn=this.findIconDefinition(Je);if(null!=mn){const En=this.buildParams();this.renderIcon(mn,En)}}}render(){this.ngOnChanges({})}findIconDefinition(he){const Je=((Ut,oe)=>(Ut=>void 0!==Ut.prefix&&void 0!==Ut.iconName)(Ut)?Ut:Array.isArray(Ut)&&2===Ut.length?{prefix:Ut[0],iconName:Ut[1]}:"string"==typeof Ut?{prefix:oe,iconName:Ut}:void 0)(he,this.config.defaultPrefix);return"icon"in Je?Je:this.iconLibrary.getIconDefinition(Je.prefix,Je.iconName)??((Ut=>{throw new Error(`Could not find icon with iconName=${Ut.iconName} and prefix=${Ut.prefix} in the icon library.`)})(Je),null)}buildParams(){const he={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},Je="string"==typeof this.transform?Ho.transform(this.transform):this.transform;return{title:this.title,transform:Je,classes:[...wa(he),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(he,Je){const mn=Ii(he,Je);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(mn.html.join("\n"))}}return Ut.\u0275fac=function(he){return new(he||Ut)(l.Y36(ci.H7),l.Y36(ul),l.Y36(ua),l.Y36(ts,8),l.Y36(dl,8))},Ut.\u0275cmp=l.Xpm({type:Ut,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(he,Je){2&he&&(l.Ikx("innerHTML",Je.renderedIconHTML,l.oJD),l.uIk("title",Je.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[l.TTD],decls:0,vars:0,template:function(he,Je){},encapsulation:2}),Ut})(),Un=(()=>{class Ut{}return Ut.\u0275fac=function(he){return new(he||Ut)},Ut.\u0275mod=l.oAB({type:Ut}),Ut.\u0275inj=l.cJS({}),Ut})()}},K=>{K(K.s=99233)}]); \ No newline at end of file diff --git a/src_app_savings_savings_module_ts.js b/src_app_savings_savings_module_ts.js index 273218b87..800428949 100644 --- a/src_app_savings_savings_module_ts.js +++ b/src_app_savings_savings_module_ts.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["src_app_savings_savings_module_ts"],{16987:(Ir,X,m)=>{m.r(X),m.d(X,{SavingsModule:()=>Dr});var l=m(83689),J=m(13450),t=m(94650),f=m(65412),T=m(4859);const Tt=function(){return{confirm:!0}};let Zt=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-calculate-interest-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Calculate Interest"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6,"Are you sure you want to calculate interest ?"),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(14),t.Q6J("mat-dialog-close",t.DdM(1,Tt)))},dependencies:[T.lW,f.ZT,f.uh,f.xY,f.H8]}),n})();const Ct=function(){return{confirm:!0}};let xt=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-post-interest-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Post Interest"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6,"Are you sure you want to post interest ?"),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(14),t.Q6J("mat-dialog-close",t.DdM(1,Ct)))},dependencies:[T.lW,f.ZT,f.uh,f.xY,f.H8]}),n})();const bt=function(){return{confirm:!0}};let K=(()=>{class n{constructor(e,a){this.dialogRef=e,this.data=a}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.so),t.Y36(f.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-toggle-withhold-tax-dialog"]],decls:18,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","",3,"color","mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(1),t.hij("",a.data.isEnable?"Enable":"Disable"," Withhold Tax"),t.xp6(5),t.hij("Are you sure you want to ",a.data.isEnable?"enable":"disable"," withhold tax for this account ?"),t.xp6(8),t.s9C("color",a.data.isEnable?"accent":"warn"),t.Q6J("mat-dialog-close",t.DdM(4,bt)))},dependencies:[T.lW,f.ZT,f.uh,f.xY,f.H8]}),n})();class St{constructor(o,e){this.setOptions(o),this.setButtons(o,e)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(o,e){switch(o){case"Active":this.buttonsArray=[],e.block?this.buttonsArray=[{name:"Unblock Account",icon:"lock-open",taskPermissionName:"UNBLOCK_SAVINGSACCOUNT"}]:(e.blockCredit?this.buttonsArray.push({name:"Unblock Deposit",icon:"lock-open",taskPermissionName:"UNBLOCKDEPOSIT_SAVINGSACCOUNT"}):this.buttonsArray.push({name:"Deposit",icon:"arrow-up",taskPermissionName:"DEPOSIT_SAVINGSACCOUNT"},{name:"Block Deposit",icon:"lock",taskPermissionName:"BLOCKDEPOSIT_SAVINGSACCOUNT"}),e.blockDebit?this.buttonsArray.push({name:"Unblock Withdrawal",icon:"lock-open",taskPermissionName:"UNBLOCKWITHDRAWAL_SAVINGSACCOUNT"}):this.buttonsArray.push({name:"Withdrawal",icon:"arrow-down",taskPermissionName:"WITHDRAWAL_SAVINGSACCOUNT"},{name:"Block Withdrawal",icon:"lock",taskPermissionName:"BLOCKWITHDRAWAL_SAVINGSACCOUNT"}),this.buttonsArray=this.buttonsArray.concat([{name:"Block Account",icon:"lock",taskPermissionName:"BLOCK_SAVINGSACCOUNT"},{name:"Hold Amount",icon:"lock",taskPermissionName:"HOLDAMOUNT_SAVINGSACCOUNT"},{name:"Calculate Interest",icon:"table",taskPermissionName:"CALCULATEINTEREST_SAVINGSACCOUNT"},{name:"Post Interest As On",icon:"arrow-right",taskPermissionName:"POSTINTEREST_SAVINGSACCOUNT"}]));break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"pen",taskPermissionName:"UPDATE_SAVINGSACCOUNT"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_SAVINGSACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_SAVINGSACCOUNT"},{name:"Activate",icon:"check",taskPermissionName:"ACTIVATE_SAVINGSACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"}];break;default:this.buttonsArray=[]}}setOptions(o){switch(o){case"Active":this.optionArray=[{name:"Post Interest",taskPermissionName:"POSTINTEREST_SAVINGSACCOUNT"},{name:"Add Charge",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"},{name:"Close",taskPermissionName:"CLOSE_SAVINGSACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",taskPermissionName:"REJECT_SAVINGSACCOUNT"},{name:"Withdraw By Client",taskPermissionName:"WITHDRAW_SAVINGSACCOUNT"},{name:"Add Charge",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"},{name:"Delete",taskPermissionName:"DELETE_SAVINGSACCOUNT"}];break;default:this.optionArray=[]}}addOption(o){this.optionArray.push(o)}}var qt=m(89517),U=m(59349),A=m(36895),q=m(92216),u=m(1576),tt=m(55829),d=m(73546),yt=m(97392),Dt=m(96338),G=m(28255),Q=m(3848),M=m(10266),nt=m(5510),It=m(15705),w=m(30998),S=m(31195),et=m(87197),I=m(35769),B=m(39122);function Nt(n,o){if(1&n&&(t._UZ(0,"i",27),t.ALo(1,"statusLookup")),2&n){const e=t.oxw();t.Q6J("ngClass",t.lcZ(1,2,e.savingsAccountData.status.code))("matTooltip",e.savingsAccountData.status.value)}}function wt(n,o){if(1&n&&(t._UZ(0,"i",27),t.ALo(1,"statusLookup")),2&n){const e=t.oxw();t.Q6J("ngClass",t.lcZ(1,2,e.savingsAccountData.subStatus.value))("matTooltip",e.savingsAccountData.subStatus.value)}}function Ot(n,o){if(1&n&&(t.TgZ(0,"span",9),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("(",e.savingsAccountData.clientAccountNo,")")}}function Ft(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",9),t._uU(4),t.ALo(5,"number"),t.qZA(),t._UZ(6,"br"),t._uU(7),t.ALo(8,"translate"),t.TgZ(9,"span",9),t._uU(10),t.ALo(11,"number"),t.qZA(),t._uU(12,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.AsE("\n ",t.lcZ(2,6,"labels.inputs.Current Balances")," :\n ",e.savingsAccountData.currency.displaySymbol,""),t.xp6(3),t.Oqu(t.lcZ(5,8,e.savingsAccountData.summary.accountBalance)),t.xp6(3),t.AsE("\n ",t.lcZ(8,10,"labels.inputs.Available Balance")," :\n ",e.savingsAccountData.currency.displaySymbol,""),t.xp6(3),t.Oqu(t.lcZ(11,12,e.savingsAccountData.summary.availableBalance))}}function Pt(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,c=t.oxw();return t.KtG(c.doAction(i.name))}),t._uU(1,"\n "),t.TgZ(2,"mat-icon",30),t._uU(3,"\n "),t._UZ(4,"fa-icon",31),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"span"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.xp6(4),t.s9C("icon",e.icon),t.xp6(4),t.hij(" ",t.lcZ(9,2,"labels.menus."+e.name)," ")}}function Lt(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Pt,11,4,"button",28),t._uU(3,"\n "),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission",e.taskPermissionName)}}function kt(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,c=t.oxw(2);return t.KtG(c.doAction(i.name))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.menus."+e.name))}}function Yt(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,kt,3,3,"button",28),t._uU(3,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission",e.taskPermissionName)}}function Mt(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"button",32),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-menu",null,33),t._uU(8,"\n "),t.YNc(9,Yt,4,1,"span",18),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n "),t.BQk()),2&n){const e=t.MAs(7),a=t.oxw();t.xp6(2),t.Q6J("matMenuTriggerFor",e),t.xp6(1),t.Oqu(t.lcZ(4,3,"labels.menus.More")),t.xp6(6),t.Q6J("ngForOf",a.buttonConfig.options)}}function Jt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Total Withdrawls")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalWithdrawals,e.currencyCode,"symbol-narrow","1.2-2"))}}function Qt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Withdrawals Fees")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalWithdrawalFees,e.currencyCode,"symbol-narrow","1.2-2"))}}function Rt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Annual Fees")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalAnnualFees,e.currencyCode,"symbol-narrow","1.2-2"))}}function Et(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Earned")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalInterestEarned,e.currencyCode,"symbol-narrow","1.2-2"))}}function Gt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Posted")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalInterestPosted,e.currencyCode,"symbol-narrow","1.2-2"))}}function Bt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Earned Not Posted")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.interestNotPosted,e.currencyCode,"symbol-narrow","1.2-2"))}}function Ht(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest On Overdraft")),t.xp6(4),t.hij("\n ",t.gM2(8,4,e.savingsAccountData.summary.totalOverdraftInterestDerived,e.currencyCode,"symbol-narrow","1.2-2"),"")}}function Vt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Overdraft Interest Not Posted")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.interestNotPosted,e.currencyCode,"symbol-narrow","1.2-2"))}}function Wt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Nominal Interest Rate")),t.xp6(4),t.hij("",t.lcZ(8,4,e.savingsAccountData.nominalAnnualInterestRate)," %")}}function jt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Withdrawal Fee")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.withdrawalFee.amount,e.currencyCode,"symbol-narrow","1.2-2"))}}function zt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Last Active Transaction Date")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.lastActiveTransactionDate))}}function $t(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Substatus")),t.xp6(4),t.Oqu(e.savingsAccountData.subStatus.value)}}function Xt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Days to Inactive")),t.xp6(4),t.Oqu(e.savingsAccountData.daysToInactive)}}function Kt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Days to Dormancy")),t.xp6(4),t.Oqu(e.savingsAccountData.daysToDormancy)}}function tn(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Days to Escheat")),t.xp6(4),t.Oqu(e.savingsAccountData.daysToEscheat)}}function nn(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Annual Fee")),t.xp6(4),t.hij("",t.gM2(8,4,e.savingsAccountData.annualFee.amount,e.currencyCode,"symbol-narrow","1.2-2"),"\n ")}}function en(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Over Draft Limit")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.overdraftLimit,e.currencyCode,"symbol-narrow","1.2-2"))}}function an(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Min Overdraft Required for Interest Calculation")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.minOverdraftForInterestCalculation,e.currencyCode,"symbol-narrow","1.2-2"))}}function on(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Min Balance Required for Interest Calculation")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.minBalanceForInterestCalculation))}}function sn(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Minimum Required Balance")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.minRequiredBalance))}}function cn(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Enforce Minimum Required Balance")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.enforceMinRequiredBalance))}}function rn(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Recalculation Date")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.summary.lastInterestCalculationDate))}}function un(n,o){if(1&n&&(t.TgZ(0,"a"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(t.gM2(2,1,e.savingsAccountData.onHoldFunds,e.currencyCode,"symbol-narrow","1.2-2"))}}function ln(n,o){1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t.YNc(7,un,3,6,"a",36),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.On Hold Funds")),t.xp6(4),t.Q6J("mifosxHasPermission","READ_SAVINGSACCOUNT"))}function mn(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Withhold Tax Group")),t.xp6(4),t.Oqu(e.savingsAccountData.taxGroup.name)}}function _n(n,o){if(1&n&&(t.TgZ(0,"div",34),t._uU(1,"\n "),t.TgZ(2,"h4",35),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.YNc(10,Jt,10,9,"tr",16),t._uU(11,"\n "),t.YNc(12,Qt,10,9,"tr",16),t._uU(13,"\n "),t.YNc(14,Rt,10,9,"tr",16),t._uU(15,"\n "),t.YNc(16,Et,10,9,"tr",16),t._uU(17,"\n "),t.YNc(18,Gt,10,9,"tr",16),t._uU(19,"\n "),t.YNc(20,Bt,10,9,"tr",16),t._uU(21,"\n "),t.YNc(22,Ht,10,9,"tr",16),t._uU(23,"\n "),t.YNc(24,Vt,10,9,"tr",16),t._uU(25,"\n "),t.YNc(26,Wt,10,6,"tr",16),t._uU(27,"\n "),t.TgZ(28,"tr"),t._uU(29,"\n "),t.TgZ(30,"td"),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n "),t.TgZ(34,"td"),t._uU(35),t.qZA(),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"tr"),t._uU(39,"\n "),t.TgZ(40,"td"),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43,"\n "),t.TgZ(44,"td"),t._uU(45),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"tr"),t._uU(49,"\n "),t.TgZ(50,"td"),t._uU(51),t.ALo(52,"translate"),t.qZA(),t._uU(53,"\n "),t.TgZ(54,"td"),t._uU(55),t.qZA(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n "),t.TgZ(58,"tr"),t._uU(59,"\n "),t.TgZ(60,"td"),t._uU(61),t.ALo(62,"translate"),t.qZA(),t._uU(63,"\n "),t.TgZ(64,"td"),t._uU(65),t.qZA(),t._uU(66,"\n "),t.qZA(),t._uU(67,"\n "),t.YNc(68,jt,10,9,"tr",16),t._uU(69,"\n "),t.YNc(70,zt,10,6,"tr",16),t._uU(71,"\n "),t.YNc(72,$t,9,4,"tr",16),t._uU(73,"\n "),t.YNc(74,Xt,9,4,"tr",16),t._uU(75,"\n "),t.YNc(76,Kt,9,4,"tr",16),t._uU(77,"\n "),t.YNc(78,tn,9,4,"tr",16),t._uU(79,"\n "),t.YNc(80,nn,10,9,"tr",16),t._uU(81,"\n "),t.YNc(82,en,10,9,"tr",16),t._uU(83,"\n "),t.YNc(84,an,10,9,"tr",16),t._uU(85,"\n "),t.YNc(86,on,10,6,"tr",16),t._uU(87,"\n "),t.YNc(88,sn,10,6,"tr",16),t._uU(89,"\n "),t.YNc(90,cn,10,6,"tr",16),t._uU(91,"\n "),t.YNc(92,rn,10,6,"tr",16),t._uU(93,"\n "),t.YNc(94,ln,9,4,"tr",16),t._uU(95,"\n "),t.YNc(96,mn,9,4,"tr",16),t._uU(97,"\n "),t.qZA(),t._uU(98,"\n "),t.qZA(),t._uU(99,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,33,"labels.heading.Account Summary")),t.xp6(7),t.Q6J("ngIf",e.savingsAccountData.summary.totalWithdrawals),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalWithdrawalFees),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalAnnualFees),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalInterestEarned>=0),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalInterestPosted),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.interestNotPosted>=0),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalOverdraftInterestDerived),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.interestNotPosted<0),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.nominalAnnualInterestRate),t.xp6(5),t.Oqu(t.lcZ(32,35,"labels.inputs.Interest Compounding Period")),t.xp6(4),t.Oqu(e.savingsAccountData.interestCompoundingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(42,37,"labels.inputs.Interest Posting Period")),t.xp6(4),t.Oqu(e.savingsAccountData.interestPostingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(52,39,"labels.inputs.Interest Calculated Using")),t.xp6(4),t.Oqu(e.savingsAccountData.interestCalculationType.value),t.xp6(6),t.hij("# ",t.lcZ(62,41,"labels.inputs.Days in Year"),""),t.xp6(4),t.Oqu(e.savingsAccountData.interestCalculationDaysInYearType.value),t.xp6(3),t.Q6J("ngIf",e.savingsAccountData.withdrawalFee),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.lastActiveTransactionDate),t.xp6(2),t.Q6J("ngIf",0!==e.savingsAccountData.subStatus.id),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.daysToInactive),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.daysToDormancy),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.daysToEscheat),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.annualFee),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.allowOverdraft),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.allowOverdraft),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.minBalanceForInterestCalculation),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.minRequiredBalance),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.enforceMinRequiredBalance),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.lastInterestCalculationDate),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.onHoldFunds),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.withHoldTax)}}function gn(n,o){if(1&n&&(t.TgZ(0,"td"),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",37),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(2),t.s9C("externalId",e.savingsAccountData.externalId)}}function pn(n,o){1&n&&(t.TgZ(0,"td"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.inputs.Not Provided")))}function dn(n,o){if(1&n&&(t._uU(0,"\n "),t.TgZ(1,"div",34),t._uU(2,"\n "),t.TgZ(3,"h4",35),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"table"),t._uU(8,"\n "),t.TgZ(9,"tbody"),t._uU(10,"\n "),t.TgZ(11,"tr"),t._uU(12,"\n "),t.TgZ(13,"td"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"td"),t._uU(18),t.ALo(19,"dateFormat"),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.TgZ(22,"tr"),t._uU(23,"\n "),t.TgZ(24,"td"),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t.TgZ(28,"td"),t._uU(29),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.TgZ(32,"tr"),t._uU(33,"\n "),t.TgZ(34,"td"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37,"\n "),t.YNc(38,gn,4,1,"td",16),t._uU(39,"\n "),t.YNc(40,pn,3,3,"td",16),t._uU(41,"\n "),t.qZA(),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n "),t.qZA(),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n ")),2&n){const e=t.oxw();t.xp6(4),t.Oqu(t.lcZ(5,9,"labels.heading.Account Summary")),t.xp6(10),t.Oqu(t.lcZ(15,11,"labels.inputs.Activated On")),t.xp6(4),t.Oqu(e.savingsAccountData.timeline.activatedOnDate?t.lcZ(19,13,e.savingsAccountData.timeline.activatedOnDate):"Not Activated"),t.xp6(7),t.Oqu(t.lcZ(26,15,"labels.inputs.Currency")),t.xp6(4),t.AsE("",e.savingsAccountData.currency.name," [",e.savingsAccountData.currency.code,"]"),t.xp6(6),t.Oqu(t.lcZ(36,17,"labels.inputs.External Id")),t.xp6(3),t.Q6J("ngIf",e.savingsAccountData.externalId),t.xp6(2),t.Q6J("ngIf",!e.savingsAccountData.externalId)}}function fn(n,o){if(1&n&&(t.TgZ(0,"td"),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",37),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(2),t.s9C("externalId",e.savingsAccountData.externalId)}}function An(n,o){1&n&&(t.TgZ(0,"td"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.inputs.Not Provided")))}function vn(n,o){if(1&n&&(t.TgZ(0,"div"),t._uU(1,"\n "),t.TgZ(2,"h4",35),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"td"),t._uU(17),t.ALo(18,"dateFormat"),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"tr"),t._uU(22,"\n "),t.TgZ(23,"td"),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n "),t.TgZ(27,"td"),t._uU(28),t.qZA(),t._uU(29,"\n "),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"tr"),t._uU(32,"\n "),t.TgZ(33,"td"),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._uU(36,"\n "),t.YNc(37,fn,4,1,"td",16),t._uU(38,"\n "),t.YNc(39,An,3,3,"td",16),t._uU(40," "),t.qZA(),t._uU(41,"\n "),t.TgZ(42,"tr"),t._uU(43,"\n "),t.TgZ(44,"td"),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"td"),t._uU(49),t.qZA(),t._uU(50,"\n "),t.qZA(),t._uU(51,"\n "),t.TgZ(52,"tr"),t._uU(53,"\n "),t.TgZ(54,"td"),t._uU(55),t.ALo(56,"translate"),t.qZA(),t._uU(57,"\n "),t.TgZ(58,"td"),t._uU(59),t.ALo(60,"formatNumber"),t.qZA(),t._uU(61,"\n "),t.qZA(),t._uU(62,"\n "),t.qZA(),t._uU(63,"\n "),t.qZA(),t._uU(64,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,13,"labels.heading.Savings Details")),t.xp6(10),t.Oqu(t.lcZ(14,15,"labels.inputs.Activated On")),t.xp6(4),t.Oqu(e.savingsAccountData.timeline.activatedOnDate?t.lcZ(18,17,e.savingsAccountData.timeline.activatedOnDate):"Not Activated"),t.xp6(7),t.Oqu(t.lcZ(25,19,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(e.savingsAccountData.fieldOfficerName?e.savingsAccountData.fieldOfficerName:"Unassigned"),t.xp6(6),t.Oqu(t.lcZ(35,21,"labels.inputs.External Id")),t.xp6(3),t.Q6J("ngIf",e.savingsAccountData.externalId),t.xp6(2),t.Q6J("ngIf",!e.savingsAccountData.externalId),t.xp6(6),t.Oqu(t.lcZ(46,23,"labels.inputs.Currency")),t.xp6(4),t.AsE("",e.savingsAccountData.currency.name," [",e.savingsAccountData.currency.code,"]"),t.xp6(6),t.Oqu(t.lcZ(56,25,"labels.inputs.Nominal Interest Rate")),t.xp6(4),t.hij("",t.lcZ(60,27,e.savingsAccountData.nominalAnnualInterestRate)," %")}}function Un(n,o){if(1&n&&(t._uU(0,"\n "),t.TgZ(1,"div"),t._uU(2,"\n "),t.TgZ(3,"h4",35),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"table"),t._uU(8,"\n "),t.TgZ(9,"tbody"),t._uU(10,"\n "),t.TgZ(11,"tr"),t._uU(12,"\n "),t.TgZ(13,"td"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"td"),t._uU(18),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"tr"),t._uU(22,"\n "),t.TgZ(23,"td"),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n "),t.TgZ(27,"td"),t._uU(28),t.qZA(),t._uU(29,"\n "),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA(),t._uU(33,"\n ")),2&n){const e=t.oxw();t.xp6(4),t.Oqu(t.lcZ(5,5,"labels.heading.Savings Details")),t.xp6(10),t.Oqu(t.lcZ(15,7,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(e.savingsAccountData.fieldOfficerName?e.savingsAccountData.fieldOfficerName:"Unassigned"),t.xp6(6),t.Oqu(t.lcZ(25,9,"labels.inputs.Balance")),t.xp6(4),t.Oqu(e.savingsAccountData.summary.accountBalance)}}function hn(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"number"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.inputs.Total Deposits")),t.xp6(4),t.AsE("",e.savingsAccountData.currency.displaySymbol,"\xa0",t.lcZ(8,5,e.savingsAccountData.summary.totalDeposits),"")}}function Tn(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.inputs.Total Interest Earned")),t.xp6(4),t.AsE("",e.savingsAccountData.currency.displaySymbol,"\xa0",t.lcZ(8,5,e.savingsAccountData.summary.totalInterestEarned),"")}}function Zn(n,o){if(1&n&&(t.TgZ(0,"div"),t._uU(1,"\n "),t.TgZ(2,"h4",35),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.YNc(10,hn,10,7,"tr",16),t._uU(11,"\n "),t.YNc(12,Tn,10,7,"tr",16),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n "),t.qZA(),t._uU(15,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.heading.Performance History")),t.xp6(7),t.Q6J("ngIf",e.savingsAccountData.summary.totalDeposits),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalInterestEarned>=0)}}const Cn=function(){return["./notes"]};function xn(n,o){if(1&n&&(t.TgZ(0,"a",39,44),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&n){const e=t.MAs(1);t.Q6J("routerLink",t.DdM(5,Cn))("active",e.isActive),t.xp6(2),t.hij("\n ",t.lcZ(3,3,"labels.inputs.Notes"),"\n ")}}const bn=function(){return["./standing-instructions"]};function Sn(n,o){if(1&n&&(t.TgZ(0,"a",39,46),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&n){const e=t.MAs(1);t.Q6J("routerLink",t.DdM(5,bn))("active",e.isActive),t.xp6(2),t.hij("\n ",t.lcZ(3,3,"labels.inputs.Standing Instructions"),"\n ")}}function qn(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Sn,4,6,"a",45),t._uU(3,"\n "),t.BQk()),2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.clientId)}}const yn=function(n){return["./datatables",n]};function Dn(n,o){if(1&n&&(t.TgZ(0,"a",39,47),t._uU(2),t.qZA()),2&n){const e=t.MAs(1),a=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(3,yn,a.registeredTableName))("active",e.isActive),t.xp6(2),t.hij("\n ",a.registeredTableName,"\n ")}}function In(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Dn,3,5,"a",43),t._uU(3,"\n "),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission","READ_"+e.registeredTableName)}}const Nn=function(){return["./transactions"]},wn=function(){return["./charges"]},On=function(){return["./documents"]};function Fn(n,o){if(1&n&&(t.TgZ(0,"nav",38),t._uU(1,"\n "),t.TgZ(2,"a",39,40),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"a",39,41),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._uU(11,"\n "),t.TgZ(12,"a",39,42),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.YNc(17,xn,4,6,"a",43),t._uU(18,"\n "),t.YNc(19,qn,4,1,"ng-container",36),t._uU(20,"\n "),t.YNc(21,In,4,1,"ng-container",18),t._uU(22,"\n "),t.qZA()),2&n){const e=t.MAs(3),a=t.MAs(8),i=t.MAs(13),c=t.oxw();t.xp6(2),t.Q6J("routerLink",t.DdM(18,Nn))("active",e.isActive),t.xp6(2),t.hij("\n ",t.lcZ(5,12,"labels.inputs.Transactions"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(19,wn))("active",a.isActive),t.xp6(2),t.hij("\n ",t.lcZ(10,14,"labels.inputs.Charges"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(20,On))("active",i.isActive),t.xp6(2),t.hij("\n ",t.lcZ(15,16,"labels.inputs.Savings Documents"),"\n "),t.xp6(3),t.Q6J("mifosxHasPermission","READ_SAVINGSNOTE"),t.xp6(2),t.Q6J("mifosxHasPermission","READ_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("ngForOf",c.savingsDatatables)}}let Pn=(()=>{class n{constructor(e,a,i,c){this.route=e,this.router=a,this.savingsService=i,this.dialog=c,this.isActive=!1,this.route.data.subscribe(r=>{this.savingsAccountData=r.savingsAccountData,this.currencyCode=this.savingsAccountData.currency.code,this.savingsDatatables=r.savingsDatatables}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}ngOnInit(){this.setConditionalButtons()}setConditionalButtons(){const e=this.savingsAccountData.status.value;this.isActive="Active"===e,this.buttonConfig=new St(e,this.savingsAccountData.subStatus),this.savingsAccountData.clientId&&this.buttonConfig.addOption({name:"Transfer Funds",taskPermissionName:"CREATE_ACCOUNTTRANSFER"}),this.buttonConfig.addOption(this.savingsAccountData.fieldOfficerId?{name:"Unassign Staff",taskPermissionName:"REMOVESAVINGSOFFICER_SAVINGSACCOUNT"}:{name:"Assign Staff",taskPermissionName:"UPDATESAVINGSOFFICER_SAVINGSACCOUNT"}),this.savingsAccountData.charges&&this.savingsAccountData.charges.forEach(c=>{"Annual fee - INR"===c.name&&this.buttonConfig.addOption({name:"Apply Annual Fees",taskPermissionName:"APPLYANNUALFEE_SAVINGSACCOUNT"})}),this.savingsAccountData.taxGroup&&this.buttonConfig.addOption(this.savingsAccountData.withHoldTax?{name:"Disable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"}:{name:"Enable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"})}reload(){const e=this.router.url,a=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(a,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}doAction(e){switch(e){case"Approve":case"Reject":case"Deposit":case"Activate":case"Close":case"Undo Approval":case"Post Interest As On":case"Assign Staff":case"Add Charge":case"Hold Amount":case"Block Account":case"Block Deposit":case"Block Withdrawal":case"Unassign Staff":case"Withdraw By Client":case"Apply Annual Fees":this.router.navigate([`actions/${e}`],{relativeTo:this.route});break;case"Withdrawal":this.router.navigate(["actions/Withdrawal"],{relativeTo:this.route});break;case"Modify Application":this.router.navigate(["edit"],{relativeTo:this.route});break;case"Delete":this.deleteSavingsAccount();break;case"Calculate Interest":this.calculateInterest();break;case"Post Interest":this.postInterest();break;case"Enable Withhold Tax":this.enableWithHoldTax();break;case"Disable Withhold Tax":this.disableWithHoldTax();break;case"Transfer Funds":this.router.navigate(["transfer-funds/make-account-transfer"],{relativeTo:this.route,queryParams:{savingsId:this.savingsAccountData.id,accountType:"fromsavings"}});break;case"Unblock Account":case"Unblock Deposit":case"Unblock Withdrawal":this.unblockSavingsAccount(e)}}deleteSavingsAccount(){this.dialog.open(J.F,{data:{deleteContext:`savings account with id: ${this.savingsAccountData.id}`}}).afterClosed().subscribe(a=>{a.delete&&this.savingsService.deleteSavingsAccount(this.savingsAccountData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}calculateInterest(){this.dialog.open(Zt).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,"calculateInterest",{}).subscribe(()=>{this.reload()})})}postInterest(){this.dialog.open(xt).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,"postInterest",{}).subscribe(()=>{this.reload()})})}enableWithHoldTax(){this.dialog.open(K,{data:{isEnable:!0}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.savingsAccountData.id,"updateWithHoldTax",{withHoldTax:!0}).subscribe(()=>{this.reload()})})}disableWithHoldTax(){this.dialog.open(K,{data:{isEnable:!1}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.savingsAccountData.id,"updateWithHoldTax",{withHoldTax:!1}).subscribe(()=>{this.reload()})})}unblockSavingsAccount(e){const a=this.dialog.open(qt.z,{data:{heading:"Savings Account",dialogContext:"Are you sure you want "+e+" this Savings Account"}});let i="unblock";"Unblock Deposit"===e&&(i="unblockCredit"),"Unblock Withdrawal"===e&&(i="unblockDebit"),a.afterClosed().subscribe(c=>{c.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,i,{}).subscribe(()=>{this.reload()})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(U.d),t.Y36(f.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-view"]],decls:92,vars:27,consts:[[1,"savings-account-card"],["fxLayout","column",1,"header"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","",1,"profile-image",3,"matTooltip","src"],[1,"mat-typography","account-card-title"],["fxLayout","row","fxLayout.lt-md","column"],["fxFlex","95%"],["class","fa fa-stop",3,"ngClass","matTooltip",4,"ngIf"],[1,"m-l-10"],[3,"accountNo"],["fxFlex","5%"],["mat-icon-button","","aria-label","Loan account actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["class","m-l-10",4,"ngIf"],[4,"ngIf"],["accountMenu","matMenu"],[4,"ngFor","ngForOf"],[1,"content"],["fxLayout","row","fxLayoutGap","2%",1,"savings-account-tables"],["fxFlex","49%",4,"ngIf","ngIfElse"],["alternateSummary",""],["fxFlex","49%","fxLayout","column","fxLayoutGap","4%"],[4,"ngIf","ngIfElse"],["alternateDetails",""],["mat-tab-nav-bar","","class","navigation-tabs",4,"ngIf"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click"],["matListIcon",""],["size","sm",3,"icon"],["mat-menu-item","",3,"matMenuTriggerFor"],["More","matMenu"],["fxFlex","49%"],[1,"table-headers"],[4,"mifosxHasPermission"],[3,"externalId"],["mat-tab-nav-bar","",1,"navigation-tabs"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["transactions","routerLinkActive"],["charges","routerLinkActive"],["savingsDocuments","routerLinkActive"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],["notes","routerLinkActive"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"ngIf"],["standingInstructions","routerLinkActive"],["datatable","routerLinkActive"]],template:function(e,a){if(1&e&&(t.TgZ(0,"mat-card",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card-header",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-card-title-group",2),t._uU(5,"\n\n "),t.TgZ(6,"div",3),t._uU(7,"\n "),t.TgZ(8,"div"),t._uU(9,"\n "),t._UZ(10,"img",4),t.ALo(11,"translate"),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.TgZ(15,"div",5),t._uU(16,"\n "),t.TgZ(17,"mat-card-title",6),t._uU(18,"\n "),t.TgZ(19,"h3",7),t._uU(20,"\n "),t.YNc(21,Nt,2,4,"i",8),t._uU(22,"\n "),t.YNc(23,wt,2,4,"i",8),t._uU(24),t.ALo(25,"translate"),t.TgZ(26,"span",9),t._uU(27,"\n "),t._UZ(28,"mifosx-account-number",10),t.qZA(),t._uU(29,"\n "),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"div",11),t._uU(32,"\n "),t.TgZ(33,"button",12),t._uU(34,"\n "),t.TgZ(35,"mat-icon",13),t._uU(36,"\n "),t._UZ(37,"fa-icon",14),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n "),t.qZA(),t._uU(41,"\n "),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"mat-card-subtitle"),t._uU(44,"\n "),t.TgZ(45,"p"),t._uU(46),t.ALo(47,"translate"),t.YNc(48,Ot,2,1,"span",15),t._UZ(49,"br"),t._uU(50,"\n "),t.YNc(51,Ft,13,14,"span",16),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n "),t.qZA(),t._uU(54,"\n "),t.qZA(),t._uU(55,"\n\n "),t.TgZ(56,"mat-menu",null,17),t._uU(58,"\n "),t.YNc(59,Lt,4,1,"ng-container",18),t._uU(60,"\n\n "),t.YNc(61,Mt,12,5,"ng-container",16),t._uU(62,"\n "),t.qZA(),t._uU(63,"\n\n "),t.qZA(),t._uU(64,"\n\n "),t.qZA(),t._uU(65,"\n\n "),t.TgZ(66,"mat-card-content",19),t._uU(67,"\n\n "),t.TgZ(68,"div",20),t._uU(69,"\n\n "),t.YNc(70,_n,100,43,"div",21),t._uU(71,"\n\n "),t.YNc(72,dn,46,19,"ng-template",null,22,t.W1O),t._uU(74,"\n\n "),t.TgZ(75,"div",23),t._uU(76,"\n\n "),t.YNc(77,vn,65,29,"div",24),t._uU(78,"\n\n "),t.YNc(79,Un,34,11,"ng-template",null,25,t.W1O),t._uU(81,"\n\n "),t.YNc(82,Zn,16,5,"div",16),t._uU(83,"\n\n "),t.qZA(),t._uU(84,"\n\n "),t.qZA(),t._uU(85,"\n\n "),t.YNc(86,Fn,23,21,"nav",26),t._uU(87,"\n\n "),t._UZ(88,"router-outlet"),t._uU(89,"\n\n "),t.qZA(),t._uU(90,"\n\n"),t.qZA(),t._uU(91,"\n")),2&e){const i=t.MAs(57),c=t.MAs(73),r=t.MAs(80);t.xp6(10),t.s9C("matTooltip",t.lcZ(11,21,"tooltips.Savings Account")),t.Q6J("src","assets/images/savings_account_placeholder.png",t.LSH),t.xp6(11),t.Q6J("ngIf",!a.savingsAccountData.subStatus.block),t.xp6(2),t.Q6J("ngIf",a.savingsAccountData.subStatus.block),t.xp6(1),t.AsE("\n ",t.lcZ(25,23,"labels.inputs.Savings Product")," : ",a.savingsAccountData.savingsProductName,""),t.xp6(4),t.s9C("accountNo",a.savingsAccountData.accountNo),t.xp6(5),t.Q6J("matMenuTriggerFor",i),t.xp6(13),t.lnq("\n ",a.entityType," ",t.lcZ(47,25,"labels.inputs.name"),": ",a.savingsAccountData.clientName||a.savingsAccountData.groupName,"\n "),t.xp6(2),t.Q6J("ngIf",a.savingsAccountData.clientAccountNo),t.xp6(3),t.Q6J("ngIf",!a.savingsAccountData.status.rejected&&!a.savingsAccountData.status.submittedAndPendingApproval),t.xp6(8),t.Q6J("ngForOf",a.buttonConfig.singleButtons),t.xp6(2),t.Q6J("ngIf",a.buttonConfig.options&&!a.savingsAccountData.subStatus.block),t.xp6(9),t.Q6J("ngIf",a.isActive)("ngIfElse",c),t.xp6(7),t.Q6J("ngIf",!a.savingsAccountData.status.rejected&&!a.savingsAccountData.status.submittedAndPendingApproval)("ngIfElse",r),t.xp6(5),t.Q6J("ngIf",!a.savingsAccountData.status.rejected&&!a.savingsAccountData.status.submittedAndPendingApproval),t.xp6(4),t.Q6J("ngIf",a.isActive)}},dependencies:[A.mk,A.sg,A.O5,q.BN,u.xw,u.SQ,u.yH,tt.oO,T.lW,d.a8,d.dk,d.C1,d.dn,d.n5,d.$j,d.nc,yt.Hw,Dt.Nh,G.VK,G.OP,G.p6,Q.BU,Q.Nj,M.gM,nt.e,It.t,w.A,l.lC,l.yS,l.Od,A.JJ,A.H9,S.X$,et.F,I.E,B.w],styles:[".savings-account-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0}.savings-account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding:1%}.savings-account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .account-card-title[_ngcontent-%COMP%]{color:#fff;width:90%}.savings-account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .account-card-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff}.savings-account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%]{margin:1%}.savings-account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%] .profile-image[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;border-radius:20px}.savings-account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .account-actions[_ngcontent-%COMP%]{align-self:flex-end;margin:0 1%}.savings-account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .account-actions[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-bottom:2px;margin-right:4px}.savings-account-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{background-color:#f2f2f2;overflow:auto}.savings-account-card[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .savings-account-tables[_ngcontent-%COMP%]{padding:1%;margin:1%}.savings-account-card[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .savings-account-tables[_ngcontent-%COMP%] .table-headers[_ngcontent-%COMP%]{margin:0;padding:6px}.savings-account-card[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .savings-account-tables[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:3px}.savings-account-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .savings-account-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),n})();var R=m(98739),H=m(96308),p=m(30671);const Ln=function(){return["/accounting","journal-entries"]},kn=function(){return["export"]};function Yn(n,o){1&n&&(t.TgZ(0,"div",26),t._uU(1,"\n "),t.TgZ(2,"button",27),t._uU(3,"View Journal Entries"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"button",27),t._uU(6,"Export"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("routerLink",t.DdM(2,Ln)),t.xp6(3),t.Q6J("routerLink",t.DdM(3,kn)))}function Mn(n,o){1&n&&(t.TgZ(0,"th",28),t._uU(1," Id "),t.qZA())}function Jn(n,o){if(1&n&&(t.TgZ(0,"td",29),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Qn(n,o){1&n&&(t.TgZ(0,"th",30),t._uU(1," Transaction Date "),t.qZA())}function Rn(n,o){if(1&n&&(t.TgZ(0,"td",29),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.date)," ")}}function En(n,o){1&n&&(t.TgZ(0,"th",31),t._uU(1," Transaction Type "),t.qZA())}function Gn(n,o){if(1&n&&(t.TgZ(0,"td",29),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.transactionType.value," ")}}function Bn(n,o){1&n&&(t.TgZ(0,"th",32),t._uU(1," Debit "),t.qZA())}function Hn(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.ALo(2,"formatNumber"),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.xp6(1),t.hij(" ",a.isDebit(e.transactionType)?t.lcZ(2,1,e.amount):"N/A"," ")}}function Vn(n,o){1&n&&(t.TgZ(0,"th",32),t._uU(1," Credit "),t.qZA())}function Wn(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.ALo(2,"formatNumber"),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.xp6(1),t.hij(" ",a.isDebit(e.transactionType)?"N/A":t.lcZ(2,1,e.amount)," ")}}function jn(n,o){1&n&&(t.TgZ(0,"th",32),t._uU(1," Balance "),t.qZA())}function zn(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.ALo(2,"formatNumber"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.runningBalance)," ")}}function $n(n,o){1&n&&(t.TgZ(0,"th",31),t._uU(1," Actions "),t.qZA())}const Xn=function(n){return[n,"reciept"]},Kn=function(n){return["/","journal-entry","view",n]};function te(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",34),t._uU(1,"\n "),t.TgZ(2,"button",35),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw();return t.KtG(c.routeEdit(i))}),t._uU(3,"\n "),t._UZ(4,"i",36),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"button",37),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw();return t.KtG(c.routeEdit(i))}),t._uU(8,"\n "),t._UZ(9,"i",38),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n "),t.qZA()}if(2&n){const e=o.$implicit;t.xp6(2),t.Q6J("routerLink",t.VKq(2,Xn,e.id)),t.xp6(5),t.Q6J("routerLink",t.VKq(4,Kn,"S"+e.id))}}function ne(n,o){1&n&&t._UZ(0,"tr",39)}function ee(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"tr",40),t.NdJ("click",function(){const c=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.showTransactions(c))}),t.qZA()}}const ae=function(){return[50,100,200]};let oe=(()=>{class n{constructor(e,a){this.route=e,this.router=a,this.displayedColumns=["id","date","transactionType","debit","credit","balance","actions"],this.accountWithTransactions=!1,this.route.parent.parent.data.subscribe(i=>{this.transactionsData=i.savingsAccountData.transactions?.filter(c=>!c.reversed),this.status=i.savingsAccountData.status.value})}ngOnInit(){this.dataSource=new p.by(this.transactionsData),this.accountWithTransactions=this.transactionsData&&this.transactionsData.length>0,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}isDebit(e){return!0===e.withdrawal||!0===e.feeDeduction||!0===e.overdraftInterest||!0===e.withholdTax}checkStatus(){return"Active"===this.status||"Closed"===this.status||"Transfer in progress"===this.status||"Transfer on hold"===this.status||"Premature Closed"===this.status||"Matured"===this.status}showTransactions(e){this.router.navigate(e.transfer?[`../transfer-funds/account-transfers/${e.transfer.id}`]:[e.id,"general"],{relativeTo:this.route})}routeEdit(e){e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-transactions-tab"]],viewQuery:function(e,a){if(1&e&&(t.Gf(R.NW,7),t.Gf(H.YE,7)),2&e){let i;t.iGM(i=t.CRH())&&(a.paginator=i.first),t.iGM(i=t.CRH())&&(a.sort=i.first)}},decls:83,vars:9,consts:[[1,"tab-container","mat-typography"],[1,"mat-elevation-z1","m-b-25",3,"hidden"],["fxLayout","row","fxLayoutAlign","start"],[1,"m-b-10"],["class","action-button m-b-20","fxLayout","row","fxLayoutGap","20px",4,"ngIf"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","date"],["mat-header-cell","","class","center","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","transactionType"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["matColumnDef","debit"],["mat-header-cell","","class","r-amount",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",4,"matCellDef"],["matColumnDef","credit"],["matColumnDef","balance"],["matColumnDef","actions"],["mat-cell","","class","center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSize","pageSizeOptions"],[1,"alert",3,"hidden"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"],["fxLayout","row","fxLayoutGap","20px",1,"action-button","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","",1,"center"],["mat-header-cell","",1,"center"],["mat-header-cell","",1,"r-amount"],["mat-cell","",1,"r-amount"],["mat-cell","",1,"center"],["mat-raised-button","","color","primary",1,"account-action-button",3,"routerLink","click"],["matTooltip","View Reciept",1,"fa","fa-file"],["mat-raised-button","","color","primary","matTooltip","View Journal Entries","matTooltipPosition","left",1,"account-action-button",3,"routerLink","click"],[1,"fa","fa-arrow-circle-right"],["mat-header-row",""],["mat-row","",1,"select-row",3,"click"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"div",3),t._uU(7,"\n "),t.TgZ(8,"h3"),t._uU(9,"All Transactions"),t.qZA(),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n "),t.YNc(12,Yn,8,4,"div",4),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.TgZ(15,"table",5),t._uU(16,"\n\n "),t.ynx(17,6),t._uU(18,"\n "),t.YNc(19,Mn,2,0,"th",7),t._uU(20,"\n "),t.YNc(21,Jn,2,1,"td",8),t._uU(22,"\n "),t.BQk(),t._uU(23,"\n\n "),t.ynx(24,9),t._uU(25,"\n "),t.YNc(26,Qn,2,0,"th",10),t._uU(27,"\n "),t.YNc(28,Rn,3,3,"td",8),t._uU(29,"\n "),t.BQk(),t._uU(30,"\n\n "),t.ynx(31,11),t._uU(32,"\n "),t.YNc(33,En,2,0,"th",12),t._uU(34,"\n "),t.YNc(35,Gn,2,1,"td",8),t._uU(36,"\n "),t.BQk(),t._uU(37,"\n\n "),t.ynx(38,13),t._uU(39,"\n "),t.YNc(40,Bn,2,0,"th",14),t._uU(41,"\n "),t.YNc(42,Hn,3,3,"td",15),t._uU(43,"\n "),t.BQk(),t._uU(44,"\n\n "),t.ynx(45,16),t._uU(46,"\n "),t.YNc(47,Vn,2,0,"th",14),t._uU(48,"\n "),t.YNc(49,Wn,3,3,"td",15),t._uU(50,"\n "),t.BQk(),t._uU(51,"\n\n "),t.ynx(52,17),t._uU(53,"\n "),t.YNc(54,jn,2,0,"th",14),t._uU(55,"\n "),t.YNc(56,zn,3,3,"td",15),t._uU(57,"\n "),t.BQk(),t._uU(58,"\n\n "),t.ynx(59,18),t._uU(60,"\n "),t.YNc(61,$n,2,0,"th",12),t._uU(62,"\n "),t.YNc(63,te,12,6,"td",19),t._uU(64,"\n "),t.BQk(),t._uU(65,"\n\n "),t.YNc(66,ne,1,0,"tr",20),t._uU(67,"\n "),t.YNc(68,ee,1,0,"tr",21),t._uU(69,"\n\n "),t.qZA(),t._uU(70,"\n\n "),t._UZ(71,"mat-paginator",22),t._uU(72,"\n\n "),t.qZA(),t._uU(73,"\n\n "),t.TgZ(74,"div",23),t._uU(75,"\n "),t.TgZ(76,"div",24),t._uU(77,"\n "),t._UZ(78,"i",25),t._uU(79,"\n No transaction was found\n "),t.qZA(),t._uU(80,"\n "),t.qZA(),t._uU(81,"\n"),t.qZA(),t._uU(82,"\n")),2&e&&(t.xp6(2),t.Q6J("hidden",!a.accountWithTransactions),t.xp6(10),t.Q6J("ngIf",a.checkStatus()),t.xp6(3),t.Q6J("dataSource",a.dataSource),t.xp6(51),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(3),t.Q6J("pageSize",50)("pageSizeOptions",t.DdM(8,ae)),t.xp6(3),t.Q6J("hidden",a.accountWithTransactions))},dependencies:[A.O5,u.xw,u.SQ,u.Wh,T.lW,R.NW,H.YE,H.nU,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,M.gM,l.rH,I.E,B.w],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 10%;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),n})();var at=m(45063);let ie=(()=>{class n{constructor(e){this.route=e,this.entityId=this.route.parent.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(a=>{this.entityDatatable=a.transactionDatatable,this.multiRowDatatableFlag="id"===this.entityDatatable.columnHeaders[0].columnName})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-datatable-transaction-tab"]],decls:5,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Saving Account Transaction",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.TgZ(2,"mifosx-entity-datatable-tab",1),t._uU(3,"\n "),t.qZA(),t._uU(4,"\n"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("entityId",a.entityId)("multiRowDatatableFlag",a.multiRowDatatableFlag)("entityDatatable",a.entityDatatable))},dependencies:[at.j]}),n})();var s=m(24006),Z=m(99639),C=m(73426),y=m(3238),v=m(99602),g=m(59549),O=m(39349),b=m(284),D=m(84385),V=m(90455);function se(n,o){1&n&&(t.TgZ(0,"h2",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.heading.Withdraw Money From Saving Account")))}function ce(n,o){1&n&&(t.TgZ(0,"h2",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.heading.Deposit Money To Saving Account")))}function re(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function ue(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function le(n,o){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function me(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",25),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Account Number")))}function _e(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",26),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Cheque")))}function ge(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",27),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Routing Code")))}function pe(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",28),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Receipt Number")))}function de(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",29),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Bank")))}const fe=function(){return["../../transactions"]};let Ae=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.route=a,this.router=i,this.dateUtils=c,this.savingsService=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.addPaymentDetailsFlag=!1,this.transactionType={deposit:!1,withdrawal:!1},this.route.data.subscribe(h=>{this.paymentTypeOptions=h.savingsAccountActionData.paymentTypeOptions}),this.transactionCommand=this.route.snapshot.params.name.toLowerCase(),this.transactionType[this.transactionCommand]=!0,this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingAccountTransactionForm()}createSavingAccountTransactionForm(){this.savingAccountTransactionForm=this.formBuilder.group({transactionDate:[this.settingsService.businessDate,s.kI.required],transactionAmount:[0,s.kI.required],paymentTypeId:[""],note:[""]})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.savingAccountTransactionForm.addControl("accountNumber",new s.p4("")),this.savingAccountTransactionForm.addControl("checkNumber",new s.p4("")),this.savingAccountTransactionForm.addControl("routingCode",new s.p4("")),this.savingAccountTransactionForm.addControl("receiptNumber",new s.p4("")),this.savingAccountTransactionForm.addControl("bankNumber",new s.p4(""))):(this.savingAccountTransactionForm.removeControl("accountNumber"),this.savingAccountTransactionForm.removeControl("checkNumber"),this.savingAccountTransactionForm.removeControl("routingCode"),this.savingAccountTransactionForm.removeControl("receiptNumber"),this.savingAccountTransactionForm.removeControl("bankNumber"))}submit(){const e=this.savingAccountTransactionForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(this.savingAccountTransactionForm.value.transactionDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,this.transactionCommand,r).subscribe(_=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(C.L),t.Y36(U.d),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-transactions"]],inputs:{currencyCode:"currencyCode"},decls:106,vars:41,consts:[[1,"container","mat-elevation-z8"],["mat-title","",4,"ngIf"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],[4,"ngIf"],["appearance","fill"],["matTextSuffix","",1,"m-l-10"],["fxFlex","auto"],["type","number","formControlName","transactionAmount","required","","matInput","",1,"right-input"],["required","","formControlName","paymentTypeId"],[3,"value",4,"ngFor","ngForOf"],["fxFlexFill",""],["fxFlex","75%",1,"expandcollapsebutton","m-l-10","m-t-40",3,"click"],[3,"className"],[1,"m-l-10"],["formControlName","note","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["mat-title",""],[3,"value"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.YNc(4,se,3,3,"h2",1),t._uU(5,"\n "),t.YNc(6,ce,3,3,"h2",1),t._uU(7,"\n\n "),t.TgZ(8,"form",2),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(9,"\n\n "),t.TgZ(10,"mat-card-content",3),t._uU(11,"\n\n "),t.TgZ(12,"mat-form-field",4),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(23);return t.KtG(r.open())}),t._uU(13,"\n "),t.TgZ(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._uU(17,"\n "),t._UZ(18,"input",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker-toggle",6),t._uU(21,"\n "),t._UZ(22,"mat-datepicker",null,7),t._uU(24,"\n "),t.YNc(25,re,8,9,"mat-error",8),t._uU(26,"\n "),t.qZA(),t._uU(27,"\n\n "),t.TgZ(28,"mat-form-field",9),t._uU(29,"\n "),t.TgZ(30,"mat-label"),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n "),t.TgZ(34,"span",10),t._uU(35),t.qZA(),t._uU(36,"\n "),t._UZ(37,"span",11),t._uU(38,"\n "),t._UZ(39,"input",12),t._uU(40,"\n "),t.YNc(41,ue,8,9,"mat-error",8),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n\n "),t.TgZ(44,"mat-form-field"),t._uU(45,"\n "),t.TgZ(46,"mat-label"),t._uU(47),t.ALo(48,"translate"),t.qZA(),t._uU(49,"\n "),t.TgZ(50,"mat-select",13),t._uU(51,"\n "),t.YNc(52,le,2,2,"mat-option",14),t._uU(53,"\n "),t.qZA(),t._uU(54,"\n "),t.qZA(),t._uU(55,"\n\n "),t.TgZ(56,"div",15),t._uU(57,"\n "),t.TgZ(58,"span",16),t.NdJ("click",function(){return a.addPaymentDetails()}),t._uU(59,"\n "),t.TgZ(60,"mat-slide-toggle"),t._uU(61,"\n "),t.TgZ(62,"div",17),t._uU(63,"\n "),t.TgZ(64,"span",18),t._uU(65),t.ALo(66,"translate"),t.qZA(),t._uU(67,"\n "),t.qZA(),t._uU(68,"\n "),t.qZA(),t._uU(69,"\n "),t.qZA(),t._uU(70,"\n "),t.qZA(),t._uU(71,"\n\n "),t.YNc(72,me,8,3,"mat-form-field",8),t._uU(73,"\n\n "),t.YNc(74,_e,8,3,"mat-form-field",8),t._uU(75,"\n\n "),t.YNc(76,ge,8,3,"mat-form-field",8),t._uU(77,"\n\n "),t.YNc(78,pe,8,3,"mat-form-field",8),t._uU(79,"\n\n "),t.YNc(80,de,8,3,"mat-form-field",8),t._uU(81,"\n\n "),t.TgZ(82,"mat-form-field"),t._uU(83,"\n "),t.TgZ(84,"mat-label"),t._uU(85),t.ALo(86,"translate"),t.qZA(),t._uU(87,"\n "),t._UZ(88,"textarea",19),t._uU(89,"\n "),t.qZA(),t._uU(90,"\n\n "),t.TgZ(91,"mat-card-actions",20),t._uU(92,"\n "),t.TgZ(93,"button",21),t._uU(94),t.ALo(95,"translate"),t.qZA(),t._uU(96,"\n "),t.TgZ(97,"button",22),t._uU(98),t.ALo(99,"translate"),t.qZA(),t._uU(100,"\n "),t.qZA(),t._uU(101,"\n\n "),t.qZA(),t._uU(102,"\n\n "),t.qZA(),t._uU(103,"\n\n "),t.qZA(),t._uU(104,"\n\n"),t.qZA(),t._uU(105,"\n")}if(2&e){const i=t.MAs(23);t.xp6(4),t.Q6J("ngIf",a.transactionType.withdrawal),t.xp6(2),t.Q6J("ngIf",a.transactionType.deposit),t.xp6(2),t.Q6J("formGroup",a.savingAccountTransactionForm),t.xp6(7),t.Oqu(t.lcZ(16,26,"labels.inputs.Transaction Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.savingAccountTransactionForm.controls.transactionDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(32,28,"labels.inputs.Transaction Amount")),t.xp6(4),t.Oqu(a.currencyCode),t.xp6(6),t.Q6J("ngIf",a.savingAccountTransactionForm.controls.transactionAmount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(48,30,"labels.inputs.Payment Type")),t.xp6(5),t.Q6J("ngForOf",a.paymentTypeOptions),t.xp6(10),t.Q6J("className",a.addPaymentDetailsFlag?"enabled":"disabled"),t.xp6(3),t.Oqu(t.lcZ(66,32,"labels.inputs.Show Payment Details")),t.xp6(7),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(2),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(2),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(2),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(2),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(5),t.Oqu(t.lcZ(86,34,"labels.inputs.Notes")),t.xp6(8),t.Q6J("routerLink",t.DdM(40,fe)),t.xp6(1),t.Oqu(t.lcZ(95,36,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.savingAccountTransactionForm.valid),t.xp6(1),t.Oqu(t.lcZ(99,38,"labels.buttons.Submit"))}},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,u.s9,u.yH,y.ey,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,O.IC,b.Nt,D.gD,V.Rr,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.container[_ngcontent-%COMP%]{max-width:37rem}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}"]}),n})();function ve(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Approved On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Ue=function(){return["../../"]};let he=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApproveSavingsAccountForm()}createApproveSavingsAccountForm(){this.approveSavingsAccountForm=this.formBuilder.group({approvedOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.approveSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.approvedOnDate instanceof Date&&(e.approvedOnDate=this.dateUtils.formatDate(this.approveSavingsAccountForm.value.approvedOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"approve",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-approve-savings-account"]],decls:51,vars:21,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","approvedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["approvedOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,ve,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.approveSavingsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Approved On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.approveSavingsAccountForm.controls.approvedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,Ue)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.approveSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,O.IC,b.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function Te(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Rejected On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Ze=function(){return["../../"]};let Ce=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectSavingsAccountForm()}createRejectSavingsAccountForm(){this.rejectSavingsAccountForm=this.formBuilder.group({rejectedOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.rejectSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.rejectedOnDate instanceof Date&&(e.rejectedOnDate=this.dateUtils.formatDate(this.rejectSavingsAccountForm.value.rejectedOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"reject",r).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-reject-savings-account"]],decls:51,vars:21,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","rejectedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["rejectedOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,Te,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.rejectSavingsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Rejected On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.rejectSavingsAccountForm.controls.rejectedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,Ze)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.rejectSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,O.IC,b.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function xe(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Activated On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const be=function(){return["../../transactions"]};let Se=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateSavingsAccountForm()}createActivateSavingsAccountForm(){this.activateSavingsAccountForm=this.formBuilder.group({activatedOnDate:["",s.kI.required]})}submit(){const e=this.activateSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.activatedOnDate instanceof Date&&(e.activatedOnDate=this.dateUtils.formatDate(this.activateSavingsAccountForm.value.activatedOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"activate",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-activate-savings-account"]],decls:39,vars:18,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","activatedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["activatedOnDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(19);return t.KtG(r.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",3),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,5),t._uU(20,"\n "),t.YNc(21,xe,8,9,"mat-error",6),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-card-actions",7),t._uU(26,"\n "),t.TgZ(27,"button",8),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"button",9),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n"),t.qZA(),t._uU(38,"\n")}if(2&e){const i=t.MAs(19);t.xp6(4),t.Q6J("formGroup",a.activateSavingsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,11,"labels.inputs.Activated On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.activateSavingsAccountForm.controls.activatedOnDate.hasError("required")),t.xp6(6),t.Q6J("routerLink",t.DdM(17,be)),t.xp6(1),t.Oqu(t.lcZ(29,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.activateSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(33,15,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,u.yH,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();const qe=function(){return["../../"]};let ye=(()=>{class n{constructor(e,a,i,c){this.formBuilder=e,this.savingsService=a,this.route=i,this.router=c,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.createUndoApprovalSavingsAccountForm()}createUndoApprovalSavingsAccountForm(){this.undoApprovalSavingsAccountForm=this.formBuilder.group({note:[""]})}submit(){const e={...this.undoApprovalSavingsAccountForm.value};this.savingsService.executeSavingsAccountCommand(this.accountId,"undoapproval",e).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(l.gz),t.Y36(l.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-undo-approval-savings-account"]],decls:32,vars:13,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxFlex",""],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"textarea",3),t._uU(15,"\n "),t.qZA(),t._uU(16,"\n\n "),t.qZA(),t._uU(17,"\n\n "),t.TgZ(18,"mat-card-actions",4),t._uU(19,"\n "),t.TgZ(20,"button",5),t._uU(21),t.ALo(22,"translate"),t.qZA(),t._uU(23,"\n "),t.TgZ(24,"button",6),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.qZA(),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n"),t.qZA(),t._uU(31,"\n")),2&e&&(t.xp6(4),t.Q6J("formGroup",a.undoApprovalSavingsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,6,"labels.inputs.Note")),t.xp6(9),t.Q6J("routerLink",t.DdM(12,qe)),t.xp6(1),t.Oqu(t.lcZ(22,8,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.undoApprovalSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(26,10,"labels.buttons.Confirm")))},dependencies:[u.xw,u.SQ,u.Wh,u.yH,T.lW,d.a8,d.dn,d.hq,g.KE,g.hX,O.IC,b.Nt,s._Y,s.Fj,s.JJ,s.JL,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function De(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Ie=function(){return["../../"]};let Ne=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createPostInterestSavingsAccountForm()}createPostInterestSavingsAccountForm(){this.postInterestSavingsAccountForm=this.formBuilder.group({transactionDate:["",s.kI.required]})}submit(){const e=this.postInterestSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(this.postInterestSavingsAccountForm.value.transactionDate,i));const r={...e,IsPostInterestAsOn:!0,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"postInterestAsOn",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-post-interest-as-on-savings-account"]],decls:39,vars:18,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["transactionDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(19);return t.KtG(r.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",3),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,5),t._uU(20,"\n "),t.YNc(21,De,8,9,"mat-error",6),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-card-actions",7),t._uU(26,"\n "),t.TgZ(27,"button",8),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"button",9),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n"),t.qZA(),t._uU(38,"\n")}if(2&e){const i=t.MAs(19);t.xp6(4),t.Q6J("formGroup",a.postInterestSavingsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,11,"labels.inputs.Transaction Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.postInterestSavingsAccountForm.controls.transactionDate.hasError("required")),t.xp6(6),t.Q6J("routerLink",t.DdM(17,Ie)),t.xp6(1),t.Oqu(t.lcZ(29,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.postInterestSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(33,15,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,u.yH,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function we(n,o){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.displayName,"\n ")}}function Oe(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Assignment Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Fe=function(){return["../../"]};let Pe=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId,this.route.data.subscribe(h=>{this.savingsAccountData=h.savingsAccountActionData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.fieldOfficerData=this.savingsAccountData.fieldOfficerOptions,this.createSavingsAssignStaffForm()}createSavingsAssignStaffForm(){this.savingsAssignStaffForm=this.formBuilder.group({toSavingsOfficerId:[""],assignmentDate:["",s.kI.required]})}submit(){const e=this.savingsAssignStaffForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.assignmentDate instanceof Date&&(e.assignmentDate=this.dateUtils.formatDate(this.savingsAssignStaffForm.value.assignmentDate,i));const r={...e,fromSavingsOfficerId:"",dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"assignSavingsOfficer",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-assign-staff"]],decls:54,vars:22,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["fxFlex","48%"],["formControlName","toSavingsOfficerId"],[3,"value",4,"ngFor","ngForOf"],[3,"click"],["matInput","","required","","formControlName","assignmentDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["assignmentDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"mat-select",4),t._uU(17,"\n "),t.YNc(18,we,2,2,"mat-option",5),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.TgZ(22,"mat-form-field",6),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(33);return t.KtG(r.open())}),t._uU(23,"\n "),t.TgZ(24,"mat-label"),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t._UZ(28,"input",7),t._uU(29,"\n "),t._UZ(30,"mat-datepicker-toggle",8),t._uU(31,"\n "),t._UZ(32,"mat-datepicker",null,9),t._uU(34,"\n "),t.YNc(35,Oe,8,9,"mat-error",10),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.qZA(),t._uU(39,"\n\n "),t.TgZ(40,"mat-card-actions",11),t._uU(41,"\n "),t.TgZ(42,"button",12),t._uU(43),t.ALo(44,"translate"),t.qZA(),t._uU(45,"\n "),t.TgZ(46,"button",13),t._uU(47),t.ALo(48,"translate"),t.qZA(),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n\n "),t.qZA(),t._uU(51,"\n\n "),t.qZA(),t._uU(52,"\n\n"),t.qZA(),t._uU(53,"\n")}if(2&e){const i=t.MAs(33);t.xp6(4),t.Q6J("formGroup",a.savingsAssignStaffForm),t.xp6(9),t.Oqu(t.lcZ(14,13,"labels.inputs.To Savings Officer")),t.xp6(5),t.Q6J("ngForOf",a.fieldOfficerData),t.xp6(7),t.Oqu(t.lcZ(26,15,"labels.inputs.Assignment Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.savingsAssignStaffForm.controls.assignmentDate.hasError("required")),t.xp6(7),t.Q6J("routerLink",t.DdM(21,Fe)),t.xp6(1),t.Oqu(t.lcZ(44,17,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.savingsAssignStaffForm.valid),t.xp6(1),t.Oqu(t.lcZ(48,19,"labels.buttons.Confirm"))}},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,u.yH,y.ey,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,D.gD,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function Le(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Unassignment Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const ke=function(){return["../../"]};let Ye=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingsUnassignStaffForm()}createSavingsUnassignStaffForm(){this.savingsUnassignStaffForm=this.formBuilder.group({unassignedDate:["",s.kI.required]})}submit(){const e=this.savingsUnassignStaffForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.unassignedDate instanceof Date&&(e.unassignedDate=this.dateUtils.formatDate(this.savingsUnassignStaffForm.value.unassignedDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"unassignSavingsOfficer",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-unassign-staff"]],decls:39,vars:18,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","unassignedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["unassignedDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(19);return t.KtG(r.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",3),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,5),t._uU(20,"\n "),t.YNc(21,Le,8,9,"mat-error",6),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-card-actions",7),t._uU(26,"\n "),t.TgZ(27,"button",8),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"button",9),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n"),t.qZA(),t._uU(38,"\n")}if(2&e){const i=t.MAs(19);t.xp6(4),t.Q6J("formGroup",a.savingsUnassignStaffForm),t.xp6(7),t.Oqu(t.lcZ(12,11,"labels.inputs.Unassignment Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.savingsUnassignStaffForm.controls.unassignedDate.hasError("required")),t.xp6(6),t.Q6J("routerLink",t.DdM(17,ke)),t.xp6(1),t.Oqu(t.lcZ(29,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.savingsUnassignStaffForm.valid),t.xp6(1),t.Oqu(t.lcZ(33,15,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,u.yH,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function Me(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Withdrawn On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Je=function(){return["../../"]};let Qe=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createWithdrawSavingsAccountForm()}createWithdrawSavingsAccountForm(){this.withdrawSavingsAccountForm=this.formBuilder.group({withdrawnOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.withdrawSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.withdrawnOnDate instanceof Date&&(e.withdrawnOnDate=this.dateUtils.formatDate(this.withdrawSavingsAccountForm.value.withdrawnOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"withdrawnByApplicant",r).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-withdraw-by-client-savings-account"]],decls:51,vars:21,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","withdrawnOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["withdrawnOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,Me,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.withdrawSavingsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Withdrawn On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.withdrawSavingsAccountForm.controls.withdrawnOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,Je)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.withdrawSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,O.IC,b.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function Re(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name+" ("+e.currency.name+")","\n ")}}function Ee(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Charge")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Ge(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Be(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function He(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function Ve(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due for collection on")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function We(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",15),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(11);return t.KtG(i.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",16),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",17),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,18),t._uU(12,"\n "),t.YNc(13,Ve,8,9,"mat-error",5),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),a=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Due for collection on")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(5),t.Q6J("ngIf",a.savingsChargeForm.controls.dueDate.hasError("required"))}}function je(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function ze(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",15),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(11);return t.KtG(i.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",19),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",17),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,20),t._uU(12,"\n "),t.YNc(13,je,8,9,"mat-error",5),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),a=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Due On")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(5),t.Q6J("ngIf",a.savingsChargeForm.controls.feeOnMonthDay.hasError("required"))}}function $e(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",21),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Repeats Every")))}function Xe(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field"),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t._UZ(8,"input",11),t._uU(9,"\n "),t.YNc(10,Ge,8,9,"mat-error",5),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"mat-form-field"),t._uU(14,"\n "),t.TgZ(15,"mat-label"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t.TgZ(19,"mat-select",12),t._uU(20,"\n "),t.YNc(21,Be,2,2,"mat-option",4),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-form-field"),t._uU(26,"\n "),t.TgZ(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"mat-select",13),t._uU(32,"\n "),t.YNc(33,He,2,2,"mat-option",4),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.YNc(37,We,15,8,"mat-form-field",14),t._uU(38,"\n\n "),t.YNc(39,ze,15,8,"mat-form-field",14),t._uU(40,"\n\n "),t.YNc(41,$e,8,3,"mat-form-field",5),t._uU(42,"\n\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(5),t.Oqu(t.lcZ(6,9,"labels.inputs.Amount")),t.xp6(5),t.Q6J("ngIf",e.savingsChargeForm.controls.amount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(17,11,"labels.inputs.Charge Calculation")),t.xp6(5),t.Q6J("ngForOf",e.chargeDetails.chargeCalculationTypeOptions),t.xp6(7),t.Oqu(t.lcZ(29,13,"labels.inputs.Charge time type")),t.xp6(5),t.Q6J("ngForOf",e.chargeDetails.chargeTimeTypeOptions),t.xp6(4),t.Q6J("ngIf",e.savingsChargeForm.contains("dueDate")),t.xp6(2),t.Q6J("ngIf",e.savingsChargeForm.contains("feeOnMonthDay")),t.xp6(2),t.Q6J("ngIf",e.savingsChargeForm.contains("feeInterval"))}}const Ke=function(){return["../../transactions"]};let ta=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.route=a,this.router=i,this.dateUtils=c,this.savingsService=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(h=>{this.savingsChargeOptions=h.savingsAccountActionData.chargeOptions}),this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingsChargeForm(),this.buildDependencies()}buildDependencies(){this.savingsChargeForm.controls.chargeId.valueChanges.subscribe(e=>{this.savingsService.getChargeTemplate(e).subscribe(a=>{this.chargeDetails=a;const i=a.chargeTimeType.id;("Withdrawal Fee"===a.chargeTimeType.value||"Saving No Activity Fee"===a.chargeTimeType.value)&&(this.chargeDetails.dueDateNotRequired=!0),("Annual Fee"===a.chargeTimeType.value||"Monthly Fee"===a.chargeTimeType.value)&&(this.chargeDetails.chargeTimeTypeAnnualOrMonth=!0),this.chargeDetails.dueDateNotRequired||this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.savingsChargeForm.removeControl("dueDate"):this.savingsChargeForm.addControl("dueDate",new s.p4("",s.kI.required)),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.savingsChargeForm.addControl("feeOnMonthDay",new s.p4("",s.kI.required)):this.savingsChargeForm.removeControl("feeOnMonthDay"),"Monthly Fee"===i.value?this.savingsChargeForm.addControl("feeInterval",new s.p4(a.feeInterval,s.kI.required)):this.savingsChargeForm.removeControl("feeInterval"),this.savingsChargeForm.patchValue({amount:a.amount,chargeCalculationType:a.chargeCalculationType.id,chargeTimeType:a.chargeTimeType.id})})})}createSavingsChargeForm(){this.savingsChargeForm=this.formBuilder.group({chargeId:["",s.kI.required],amount:["",s.kI.required],chargeCalculationType:[{value:"",disabled:!0}],chargeTimeType:[{value:"",disabled:!0}]})}submit(){const e=this.savingsChargeForm.value;if(e.locale=this.settingsService.language.code,e.feeInterval||(e.feeInterval=this.chargeDetails.feeInterval),!0!==this.chargeDetails.dueDateNotRequired)if(!0===this.chargeDetails.chargeTimeTypeAnnualOrMonth){const a="MMMM-dd";e.monthDayFormat=a,e.feeOnMonthDay&&(e.feeOnMonthDay=this.dateUtils.formatDate(this.savingsChargeForm.value.feeOnMonthDay,a))}else{const a=this.settingsService.dateFormat;e.dateFormat=a,e.dueDate&&(e.dueDate=this.dateUtils.formatDate(this.savingsChargeForm.value.dueDate,a))}this.savingsService.createSavingsCharge(this.savingAccountId,"charges",e).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(C.L),t.Y36(U.d),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-add-charge-savings-account"]],decls:42,vars:16,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["required","","formControlName","chargeId"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","chargeCalculationType"],["formControlName","chargeTimeType"],[3,"click",4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["feeOnMonthDayPicker",""],["matInput","","formControlName","feeInterval"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n "),t.TgZ(10,"mat-form-field"),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"mat-select",3),t._uU(17,"\n "),t.YNc(18,Re,2,2,"mat-option",4),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.YNc(21,Ee,8,9,"mat-error",5),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.YNc(24,Xe,43,15,"div",6),t._uU(25,"\n\n "),t.qZA(),t._uU(26,"\n\n "),t.TgZ(27,"mat-card-actions",7),t._uU(28,"\n "),t.TgZ(29,"button",8),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._uU(32,"\n "),t.TgZ(33,"button",9),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.qZA(),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&e&&(t.xp6(4),t.Q6J("formGroup",a.savingsChargeForm),t.xp6(9),t.Oqu(t.lcZ(14,9,"labels.inputs.Charge")),t.xp6(5),t.Q6J("ngForOf",a.savingsChargeOptions),t.xp6(3),t.Q6J("ngIf",a.savingsChargeForm.controls.chargeId.hasError("required")),t.xp6(3),t.Q6J("ngIf",a.chargeDetails),t.xp6(5),t.Q6J("routerLink",t.DdM(15,Ke)),t.xp6(1),t.Oqu(t.lcZ(31,11,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.savingsChargeForm.valid),t.xp6(1),t.Oqu(t.lcZ(35,13,"labels.buttons.Submit")))},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,y.ey,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,D.gD,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),n})();var W=m(56709);function na(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Closed On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function ea(n,o){1&n&&(t.TgZ(0,"mat-form-field",20),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",21),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Transaction Amount")))}function aa(n,o){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function oa(n,o){if(1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",22),t._uU(7,"\n "),t.YNc(8,aa,2,2,"mat-option",23),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Payment Type")),t.xp6(5),t.Q6J("ngForOf",e.paymentTypeOptions)}}function ia(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",25),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Account Number")))}function sa(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",26),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Cheque")))}function ca(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",27),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Routing Code")))}function ra(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",28),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Receipt Number")))}function ua(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",29),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Bank")))}function la(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",2),t._uU(1,"\n\n "),t.YNc(2,ea,8,3,"mat-form-field",15),t._uU(3,"\n\n "),t.YNc(4,oa,11,4,"mat-form-field",7),t._uU(5,"\n\n "),t.TgZ(6,"div",16),t._uU(7,"\n "),t.TgZ(8,"span",17),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.addPaymentDetails())}),t._uU(9,"\n "),t.TgZ(10,"mat-slide-toggle"),t._uU(11,"\n "),t.TgZ(12,"div",18),t._uU(13,"\n "),t.TgZ(14,"span",19),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._uU(17,"\n "),t.qZA(),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.YNc(22,ia,8,3,"mat-form-field",7),t._uU(23,"\n\n "),t.YNc(24,sa,8,3,"mat-form-field",7),t._uU(25,"\n\n "),t.YNc(26,ca,8,3,"mat-form-field",7),t._uU(27,"\n\n "),t.YNc(28,ra,8,3,"mat-form-field",7),t._uU(29,"\n\n "),t.YNc(30,ua,8,3,"mat-form-field",7),t._uU(31,"\n\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.amount),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.paymentTypeId),t.xp6(8),t.Q6J("className",e.showPaymentDetails?"enabled":"disabled"),t.xp6(3),t.Oqu(t.lcZ(16,9,"labels.inputs.Show Payment Details")),t.xp6(7),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.accountNumber),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.checkNumber),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.routingCode),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.receiptNumber),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.bankNumber)}}const ma=function(){return["../../"]};let _a=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.addPaymentDetailsFlag=!1,this.route.data.subscribe(h=>{this.paymentTypeOptions=h.savingsAccountActionData[0].paymentTypeOptions,this.transactionAmount=h.savingsAccountActionData[1].summary.accountBalance}),this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseSavingsAccountForm(),this.buildDependencies()}createCloseSavingsAccountForm(){this.closeSavingsAccountForm=this.formBuilder.group({closedOnDate:["",s.kI.required],withdrawBalance:[!1],postInterestValidationOnClosure:[!1],note:[""]})}buildDependencies(){this.closeSavingsAccountForm.get("withdrawBalance").valueChanges.subscribe(e=>{e?(this.closeSavingsAccountForm.addControl("amount",new s.p4({value:this.transactionAmount,disabled:!0})),this.closeSavingsAccountForm.addControl("paymentTypeId",new s.p4(""))):(this.closeSavingsAccountForm.removeControl("amount"),this.closeSavingsAccountForm.removeControl("paymentTypeId"))})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.closeSavingsAccountForm.addControl("accountNumber",new s.p4("")),this.closeSavingsAccountForm.addControl("checkNumber",new s.p4("")),this.closeSavingsAccountForm.addControl("routingCode",new s.p4("")),this.closeSavingsAccountForm.addControl("receiptNumber",new s.p4("")),this.closeSavingsAccountForm.addControl("bankNumber",new s.p4(""))):(this.closeSavingsAccountForm.removeControl("accountNumber"),this.closeSavingsAccountForm.removeControl("checkNumber"),this.closeSavingsAccountForm.removeControl("routingCode"),this.closeSavingsAccountForm.removeControl("receiptNumber"),this.closeSavingsAccountForm.removeControl("bankNumber"))}submit(){const e=this.closeSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(this.closeSavingsAccountForm.value.closedOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"close",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-close-savings-account"]],decls:61,vars:28,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["closedOnDatePicker",""],[4,"ngIf"],["formControlName","withdrawBalance",1,"m-b-25","m-t-15"],["formControlName","postInterestValidationOnClosure"],["fxLayout","column",4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"],["class","m-t-20",4,"ngIf"],["fxFlexFill",""],["fxFlex","75%",1,"expandcollapsebutton","m-l-10","m-t-40",3,"click"],[3,"className"],[1,"m-l-10"],[1,"m-t-20"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","paymentTypeId"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,na,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-checkbox",8),t._uU(27),t.ALo(28,"translate"),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"mat-checkbox",9),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n\n "),t.YNc(34,la,32,11,"div",10),t._uU(35,"\n\n "),t.TgZ(36,"mat-form-field"),t._uU(37,"\n "),t.TgZ(38,"mat-label"),t._uU(39),t.ALo(40,"translate"),t.qZA(),t._uU(41,"\n "),t._UZ(42,"textarea",11),t._uU(43,"\n "),t.qZA(),t._uU(44,"\n\n "),t.qZA(),t._uU(45,"\n\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"mat-card-actions",12),t._uU(48,"\n "),t.TgZ(49,"button",13),t._uU(50),t.ALo(51,"translate"),t.qZA(),t._uU(52,"\n "),t.TgZ(53,"button",14),t._uU(54),t.ALo(55,"translate"),t.qZA(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n\n "),t.qZA(),t._uU(58,"\n\n "),t.qZA(),t._uU(59,"\n\n"),t.qZA(),t._uU(60,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.closeSavingsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,15,"labels.inputs.Closed On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.closeSavingsAccountForm.controls.closedOnDate.hasError("required")),t.xp6(4),t.hij("\n ",t.lcZ(28,17,"labels.inputs.Withdraw Balance"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(32,19,"labels.inputs.Is Interest Posting required on closure date"),"?\n "),t.xp6(3),t.Q6J("ngIf",a.closeSavingsAccountForm.controls.withdrawBalance.value),t.xp6(5),t.Oqu(t.lcZ(40,21,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(27,ma)),t.xp6(1),t.Oqu(t.lcZ(51,23,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.closeSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(55,25,"labels.buttons.Confirm"))}},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,u.s9,u.yH,y.ey,T.lW,d.a8,d.dn,d.hq,W.oG,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,O.IC,b.Nt,D.gD,V.Rr,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function ga(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function pa(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const da=function(){return["../../"]};let fa=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId,this.route.data.subscribe(h=>{this.savingsAccountData=h.savingsAccountActionData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApplyAnnualFeesForm(),this.applyCharge()}createApplyAnnualFeesForm(){this.applyAnnualFeesForm=this.formBuilder.group({dueDate:["",s.kI.required],amount:[""]})}applyCharge(){this.savingsAccountData.charges.forEach(a=>{"Annual fee - INR"===a.name&&(this.chargeId=a.id,this.applyAnnualFeesForm.get("amount").patchValue(a.amount))})}submit(){const e=this.applyAnnualFeesForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.dueDate instanceof Date&&(e.dueDate=this.dateUtils.formatDate(this.applyAnnualFeesForm.value.dueDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountChargesCommand(this.accountId,"paycharge",r,this.chargeId).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-apply-annual-fees-savings-account"]],decls:53,vars:22,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],[4,"ngIf"],["type","number","formControlName","amount","required","","matInput",""],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,ga,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"input",8),t._uU(33,"\n "),t.YNc(34,pa,8,9,"mat-error",7),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.TgZ(39,"mat-card-actions",9),t._uU(40,"\n "),t.TgZ(41,"button",10),t._uU(42),t.ALo(43,"translate"),t.qZA(),t._uU(44,"\n "),t.TgZ(45,"button",11),t._uU(46),t.ALo(47,"translate"),t.qZA(),t._uU(48,"\n "),t.qZA(),t._uU(49,"\n\n "),t.qZA(),t._uU(50,"\n\n "),t.qZA(),t._uU(51,"\n\n"),t.qZA(),t._uU(52,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.applyAnnualFeesForm),t.xp6(9),t.Oqu(t.lcZ(14,13,"labels.inputs.Annual Fees Transaction Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.applyAnnualFeesForm.controls.dueDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,15,"labels.inputs.Amount")),t.xp6(5),t.Q6J("ngIf",a.applyAnnualFeesForm.controls.amount.hasError("required")),t.xp6(7),t.Q6J("routerLink",t.DdM(21,da)),t.xp6(1),t.Oqu(t.lcZ(43,17,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.applyAnnualFeesForm.valid),t.xp6(1),t.Oqu(t.lcZ(47,19,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();var Aa=m(41659);function va(n,o){1&n&&(t.TgZ(0,"h2",11),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.heading.Hold Amount")))}function Ua(n,o){1&n&&(t.TgZ(0,"h2",11),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.heading.Block Savings Account")))}function ha(n,o){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function Ta(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Reason")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Za(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Ca(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",13),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(11);return t.KtG(i.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",14),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",15),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,16),t._uU(12,"\n "),t.YNc(13,Za,8,9,"mat-error",6),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),a=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Transaction Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(5),t.Q6J("ngIf",a.manageSavingsAccountForm.controls.transactionDate.hasError("required"))}}function xa(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function ba(n,o){if(1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",17),t._uU(7,"\n "),t.YNc(8,xa,8,9,"mat-error",6),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Transaction Amount")),t.xp6(5),t.Q6J("ngIf",e.manageSavingsAccountForm.controls.transactionAmount.hasError("required"))}}const Sa=function(){return["../../transactions"]};let qa=(()=>{class n{constructor(e,a,i,c,r,_,h){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.systemService=_,this.settingsService=h,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.reasonOptions=[],this.transactionType={holdamount:!1,blockaccount:!1,blockdeposit:!1,blockwithdrawal:!1},this.transactionCommand=this.route.snapshot.params.name.toLowerCase().replaceAll(" ",""),this.transactionType[this.transactionCommand]=!0,this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createManageSavingsAccountForm(),(this.transactionType.holdamount||this.transactionType.blockaccount||this.transactionType.blockdeposit||this.transactionType.blockwithdrawal)&&this.getCodeValues()}getCodeValues(){let e="SavingsTransactionFreezeReasons";this.transactionType.blockaccount?e="SavingsAccountBlockReasons":this.transactionType.blockdeposit?e="CreditTransactionFreezeReasons":this.transactionType.blockwithdrawal&&(e="DebitTransactionFreezeReasons"),this.systemService.getCodes().subscribe(a=>{a.some(i=>(i.name===e&&this.systemService.getCodeValues(i.id).subscribe(c=>(this.reasonOptions=c,!0)),!1))})}createManageSavingsAccountForm(){this.manageSavingsAccountForm=this.formBuilder.group(this.transactionType.holdamount?{reasonForBlock:["",s.kI.required],transactionDate:["",s.kI.required],transactionAmount:[0,s.kI.required]}:{reasonForBlock:["",s.kI.required]})}submit(){let e="",a={};if(this.transactionType.holdamount){const i=this.manageSavingsAccountForm.value,c=this.settingsService.language.code,r=this.settingsService.dateFormat,_=this.manageSavingsAccountForm.value.transactionDate;i.transactionDate instanceof Date&&(i.transactionDate=this.dateUtils.formatDate(_,r)),a={...i,dateFormat:r,locale:c},e="holdAmount",this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,e,a).subscribe(h=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}else a={...this.manageSavingsAccountForm.value},e="block",this.transactionType.blockdeposit?e="blockCredit":this.transactionType.blockwithdrawal&&(e="blockDebit"),this.savingsService.executeSavingsAccountCommand(this.savingAccountId,e,a).subscribe(i=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Aa.o),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-manage-savings-account"]],decls:45,vars:19,consts:[[1,"container","mat-elevation-z8"],["mat-title","",4,"ngIf"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["required","","formControlName","reasonForBlock"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxFlex","",3,"click",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["mat-title",""],[3,"value"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["transactionDatePicker",""],["type","number","formControlName","transactionAmount","required","","matInput",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.YNc(4,va,3,3,"h2",1),t._uU(5,"\n "),t.YNc(6,Ua,3,3,"h2",1),t._uU(7,"\n\n "),t.TgZ(8,"form",2),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(9,"\n\n "),t.TgZ(10,"mat-card-content",3),t._uU(11,"\n\n "),t.TgZ(12,"mat-form-field"),t._uU(13,"\n "),t.TgZ(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._uU(17,"\n "),t.TgZ(18,"mat-select",4),t._uU(19,"\n "),t.YNc(20,ha,2,2,"mat-option",5),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n "),t.YNc(23,Ta,8,9,"mat-error",6),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.YNc(26,Ca,15,8,"mat-form-field",7),t._uU(27,"\n\n "),t.YNc(28,ba,10,4,"mat-form-field",6),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n "),t.TgZ(31,"mat-card-actions",8),t._uU(32,"\n "),t.TgZ(33,"button",9),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._uU(36,"\n "),t.TgZ(37,"button",10),t._uU(38),t.ALo(39,"translate"),t.qZA(),t._uU(40,"\n "),t.qZA(),t._uU(41,"\n\n "),t.qZA(),t._uU(42,"\n\n "),t.qZA(),t._uU(43,"\n\n"),t.qZA(),t._uU(44,"\n")),2&e&&(t.xp6(4),t.Q6J("ngIf",a.transactionType.holdamount),t.xp6(2),t.Q6J("ngIf",a.transactionType.blockaccount),t.xp6(2),t.Q6J("formGroup",a.manageSavingsAccountForm),t.xp6(7),t.Oqu(t.lcZ(16,12,"labels.inputs.Reason")),t.xp6(5),t.Q6J("ngForOf",a.reasonOptions),t.xp6(3),t.Q6J("ngIf",a.manageSavingsAccountForm.controls.reasonForBlock.hasError("required")),t.xp6(3),t.Q6J("ngIf",a.transactionType.holdamount),t.xp6(2),t.Q6J("ngIf",a.transactionType.holdamount),t.xp6(5),t.Q6J("routerLink",t.DdM(18,Sa)),t.xp6(1),t.Oqu(t.lcZ(35,14,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.manageSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(39,16,"labels.buttons.Confirm")))},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,u.yH,y.ey,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,D.gD,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),n})();function ya(n,o){1&n&&t._UZ(0,"mifosx-approve-savings-account")}function Da(n,o){1&n&&t._UZ(0,"mifosx-reject-savings-account")}function Ia(n,o){1&n&&t._UZ(0,"mifosx-activate-savings-account")}function Na(n,o){1&n&&t._UZ(0,"mifosx-undo-approval-savings-account")}function wa(n,o){1&n&&t._UZ(0,"mifosx-post-interest-as-on-savings-account")}function Oa(n,o){1&n&&t._UZ(0,"mifosx-savings-account-assign-staff")}function Fa(n,o){1&n&&t._UZ(0,"mifosx-savings-account-unassign-staff")}function Pa(n,o){1&n&&t._UZ(0,"mifosx-withdraw-by-client-savings-account")}function La(n,o){1&n&&t._UZ(0,"mifosx-add-charge-savings-account")}function ka(n,o){if(1&n&&t._UZ(0,"mifosx-savings-transactions",2),2&n){const e=t.oxw();t.Q6J("currencyCode",e.currencyCode)}}function Ya(n,o){1&n&&t._UZ(0,"mifosx-close-savings-account")}function Ma(n,o){1&n&&t._UZ(0,"mifosx-apply-annual-fees-savings-account")}function Ja(n,o){1&n&&t._UZ(0,"mifosx-manage-savings-account")}let Qa=(()=>{class n{constructor(e){this.route=e,this.actions={Approve:!1,Reject:!1,Withdrawal:!1,Deposit:!1,Activate:!1,Close:!1,"Undo Approval":!1,"Post Interest As On":!1,"Assign Staff":!1,"Add Charge":!1,"Unassign Staff":!1,"Withdraw By Client":!1,"Apply Annual Fees":!1,"Hold Amount":!1,"Block Account":!1,"Unblock Account":!1,"Block Deposit":!1,"Unblock Deposit":!1,"Block Withdrawal":!1,"Unblock Withdrawal":!1},this.route.data.subscribe(i=>{i.savingsAccountActionData&&(this.currencyCode=i.savingsAccountActionData.currency.code)}),this.actions[this.route.snapshot.params.name]=!0}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-saving-account-actions"]],decls:26,vars:13,consts:[[4,"ngIf"],[3,"currencyCode",4,"ngIf"],[3,"currencyCode"]],template:function(e,a){1&e&&(t.YNc(0,ya,1,0,"mifosx-approve-savings-account",0),t._uU(1,"\n"),t.YNc(2,Da,1,0,"mifosx-reject-savings-account",0),t._uU(3,"\n"),t.YNc(4,Ia,1,0,"mifosx-activate-savings-account",0),t._uU(5,"\n"),t.YNc(6,Na,1,0,"mifosx-undo-approval-savings-account",0),t._uU(7,"\n"),t.YNc(8,wa,1,0,"mifosx-post-interest-as-on-savings-account",0),t._uU(9,"\n"),t.YNc(10,Oa,1,0,"mifosx-savings-account-assign-staff",0),t._uU(11,"\n"),t.YNc(12,Fa,1,0,"mifosx-savings-account-unassign-staff",0),t._uU(13,"\n"),t.YNc(14,Pa,1,0,"mifosx-withdraw-by-client-savings-account",0),t._uU(15,"\n"),t.YNc(16,La,1,0,"mifosx-add-charge-savings-account",0),t._uU(17,"\n"),t.YNc(18,ka,1,1,"mifosx-savings-transactions",1),t._uU(19,"\n"),t.YNc(20,Ya,1,0,"mifosx-close-savings-account",0),t._uU(21,"\n"),t.YNc(22,Ma,1,0,"mifosx-apply-annual-fees-savings-account",0),t._uU(23,"\n"),t.YNc(24,Ja,1,0,"mifosx-manage-savings-account",0),t._uU(25,"\n")),2&e&&(t.Q6J("ngIf",a.actions.Approve),t.xp6(2),t.Q6J("ngIf",a.actions.Reject),t.xp6(2),t.Q6J("ngIf",a.actions.Activate),t.xp6(2),t.Q6J("ngIf",a.actions["Undo Approval"]),t.xp6(2),t.Q6J("ngIf",a.actions["Post Interest As On"]),t.xp6(2),t.Q6J("ngIf",a.actions["Assign Staff"]),t.xp6(2),t.Q6J("ngIf",a.actions["Unassign Staff"]),t.xp6(2),t.Q6J("ngIf",a.actions["Withdraw By Client"]),t.xp6(2),t.Q6J("ngIf",a.actions["Add Charge"]),t.xp6(2),t.Q6J("ngIf",a.actions.Withdrawal||a.actions.Deposit),t.xp6(2),t.Q6J("ngIf",a.actions.Close),t.xp6(2),t.Q6J("ngIf",a.actions["Apply Annual Fees"]),t.xp6(2),t.Q6J("ngIf",a.actions["Hold Amount"]||a.actions["Block Account"]||a.actions["Block Deposit"]||a.actions["Block Withdrawal"]))},dependencies:[A.O5,Ae,he,Ce,Se,ye,Ne,Pe,Ye,Qe,ta,_a,fa,qa]}),n})();var N=m(34417);const Ra=function(){return{confirm:!0}};let ot=(()=>{class n{constructor(e,a){this.dialogRef=e,this.data=a}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.so),t.Y36(f.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-waive-charge-dialog"]],decls:18,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Waive Charge"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(6),t.hij("Are you sure you want to waive charge with id: ",a.data.id," ?"),t.xp6(8),t.Q6J("mat-dialog-close",t.DdM(2,Ra)))},dependencies:[T.lW,f.ZT,f.uh,f.xY,f.H8]}),n})();const Ea=function(){return{confirm:!0}};let it=(()=>{class n{constructor(e,a){this.dialogRef=e,this.data=a}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.so),t.Y36(f.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-inactivate-charge-dialog"]],decls:18,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Inactivate Charge"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(6),t.hij("Are you sure you want to inactivate charge with id: ",a.data.id," ?"),t.xp6(8),t.Q6J("mat-dialog-close",t.DdM(2,Ea)))},dependencies:[T.lW,f.ZT,f.uh,f.xY,f.H8]}),n})();var F=m(68830),j=m(23107);const Ga=["chargesTable"];function Ba(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",22),t._uU(1,"\n "),t.TgZ(2,"button",23),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.toggleCharges())}),t._uU(3),t.qZA(),t._uU(4,"\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.hij("\n ",e.showInactiveCharges?"View Active Charges":"View Inactive Charges","")}}function Ha(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Name "),t.qZA())}function Va(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function Wa(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Fee/Penalty "),t.qZA())}function ja(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",!0===e.penalty?"Penalty":"Fee"," ")}}function za(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Payment Due At "),t.qZA())}function $a(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.chargeTimeType.value," ")}}function Xa(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Due As Of "),t.qZA())}function Ka(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.dueDate)," ")}}function to(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Repeats On (M/d) "),t.qZA())}function no(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.feeOnMonthDay?e.feeOnMonthDay.join("/"):""," ")}}function eo(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Calculation Type "),t.qZA())}function ao(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.chargeCalculationType.value," ")}}function oo(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Due "),t.qZA())}function io(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.gM2(2,1,e.amount,e.currency.code,"symbol-narrow","1.2-2")," ")}}function so(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Paid "),t.qZA())}function co(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.gM2(2,1,e.amountPaid,e.currency.code,"symbol-narrow","1.2-2")," ")}}function ro(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Waived "),t.qZA())}function uo(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.gM2(2,1,e.amountWaived,e.currency.code,"symbol-narrow","1.2-2")," ")}}function lo(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Outstanding "),t.qZA())}function mo(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.gM2(2,1,e.amountOutstanding,e.currency.code,"symbol-narrow","1.2-2")," ")}}function _o(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Actions "),t.qZA())}function go(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.editCharge(c))}),t._uU(1,"\n "),t._UZ(2,"i",30),t._uU(3,"\n "),t.qZA()}}function po(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.deleteCharge(c.id))}),t._uU(1,"\n "),t._UZ(2,"i",32),t._uU(3,"\n "),t.qZA()}}function fo(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,go,4,0,"button",27),t._uU(3,"\n "),t.YNc(4,po,4,0,"button",28),t._uU(5,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}function Ao(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.payCharge(c.id))}),t._uU(1,"\n "),t._UZ(2,"i",36),t._uU(3,"\n "),t.qZA()}}function vo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",37),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.waiveCharge(c.id))}),t._uU(1,"\n "),t._UZ(2,"i",38),t._uU(3,"\n "),t.qZA()}}function Uo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(3).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.inactivateCharge(c.id))}),t._uU(1,"\n "),t._UZ(2,"i",41),t._uU(3,"\n "),t.qZA()}}function ho(n,o){1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Uo,4,0,"button",39),t._uU(3,"\n "),t.BQk()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE"))}function To(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ao,4,0,"button",33),t._uU(3,"\n "),t.YNc(4,vo,4,0,"button",34),t._uU(5,"\n "),t.YNc(6,ho,4,1,"ng-container",26),t._uU(7,"\n "),t.qZA()),2&n){const e=t.oxw().$implicit,a=t.oxw();t.xp6(2),t.Q6J("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("ngIf",a.isRecurringCharge(e))}}function Zo(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1,"\n "),t.YNc(2,fo,6,2,"span",26),t._uU(3,"\n "),t.YNc(4,To,8,3,"span",26),t._uU(5,"\n "),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.xp6(2),t.Q6J("ngIf","Submitted and pending approval"===a.savingsAccountData.status.value),t.xp6(2),t.Q6J("ngIf","Active"===a.savingsAccountData.status.value&&0!==e.amountOutstanding)}}function Co(n,o){1&n&&t._UZ(0,"tr",42)}const xo=function(n){return[n]};function bo(n,o){1&n&&t._UZ(0,"tr",43),2&n&&t.Q6J("routerLink",t.VKq(1,xo,o.$implicit.id))}let So=(()=>{class n{constructor(e,a,i,c,r,_){this.savingsService=e,this.route=a,this.dateUtils=i,this.router=c,this.dialog=r,this.settingsService=_,this.showInactiveCharges=!1,this.displayedColumns=["name","feeOrPenalty","paymentDueAt","dueAsOf","repeatsOn","calculationType","due","paid","waived","outstanding","actions"],this.route.parent.data.subscribe(h=>{this.savingsAccountData=h.savingsAccountData,this.chargesData=this.savingsAccountData.charges})}ngOnInit(){const e=this.chargesData?this.chargesData.filter(a=>a.isActive):[];this.dataSource=new p.by(e)}toggleCharges(){if(this.showInactiveCharges=!this.showInactiveCharges,this.showInactiveCharges){const e=this.chargesData.filter(a=>!a.isActive);this.dataSource.data=e}else{const e=this.chargesData.filter(a=>a.isActive);this.dataSource.data=e}this.chargesTableRef.renderRows()}payCharge(e){const a=[new F.M({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new j.d({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})];this.dialog.open(N.E,{data:{title:`Pay Charge ${e}`,layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){const _=this.settingsService.language.code,h=this.settingsService.dateFormat,Y={...r.data.value,dueDate:this.dateUtils.formatDate(r.data.value.dueDate,h),dateFormat:h,locale:_};this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"paycharge",Y,e).subscribe(()=>{this.reload()})}})}waiveCharge(e){this.dialog.open(ot,{data:{id:e}}).afterClosed().subscribe(i=>{i.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"waive",{},e).subscribe(()=>{this.reload()})})}inactivateCharge(e){this.dialog.open(it,{data:{id:e}}).afterClosed().subscribe(i=>{i.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"inactivate",{},e).subscribe(()=>{this.reload()})})}editCharge(e){const a=[new F.M({controlName:"amount",label:"Amount",value:e.amount||e.amountOrPercentage,type:"number",required:!0})];this.dialog.open(N.E,{data:{title:`Edit Charge ${e.id}`,layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){const Y={...r.data.value,dateFormat:this.settingsService.dateFormat,locale:this.settingsService.language.code};this.savingsService.editSavingsAccountCharge(this.savingsAccountData.id,Y,e.id).subscribe(()=>{this.reload()})}})}deleteCharge(e){this.dialog.open(J.F,{data:{deleteContext:`charge id:${e}`}}).afterClosed().subscribe(i=>{i.delete&&this.savingsService.deleteSavingsAccountCharge(this.savingsAccountData.id,e).subscribe(()=>{this.reload()})})}isRecurringCharge(e){return"Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value}routeEdit(e){e.stopPropagation()}reload(){const e=this.router.url,a=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(a,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.d),t.Y36(l.gz),t.Y36(C.L),t.Y36(l.F0),t.Y36(f.uw),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-charges-tab"]],viewQuery:function(e,a){if(1&e&&t.Gf(Ga,7),2&e){let i;t.iGM(i=t.CRH())&&(a.chargesTableRef=i.first)}},decls:102,vars:4,consts:[[1,"tab-container","mat-typography"],["fxLayout","row","fxLayoutAlign","start"],[1,"m-b-10"],["class","action-button m-b-20",4,"ngIf"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["chargesTable",""],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","feeOrPenalty"],["matColumnDef","paymentDueAt"],["matColumnDef","dueAsOf"],["matColumnDef","repeatsOn"],["matColumnDef","calculationType"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],[1,"action-button","m-b-20"],["mat-raised-button","","color","primary",3,"click"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Edit Charge",3,"click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","warn","matTooltip","Delete Charge",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Edit Charge",1,"account-action-button",3,"click"],[1,"fa","fa-pencil"],["mat-raised-button","","color","warn","matTooltip","Delete Charge",1,"account-action-button",3,"click"],[1,"fa","fa-trash"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Pay Charge",3,"click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Waive Charge",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Pay Charge",1,"account-action-button",3,"click"],[1,"fa","fa-dollar"],["mat-raised-button","","color","primary","matTooltip","Waive Charge",1,"account-action-button",3,"click"],[1,"fa","fa-flag"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Inactivate Charge",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Inactivate Charge",1,"account-action-button",3,"click"],[1,"fa","fa-ban"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"h3"),t._uU(7,"All Charges"),t.qZA(),t._uU(8,"\n "),t.qZA(),t._uU(9,"\n "),t.YNc(10,Ba,5,1,"div",3),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"div",4),t._uU(14,"\n\n "),t.TgZ(15,"table",5,6),t._uU(17,"\n\n "),t.ynx(18,7),t._uU(19,"\n "),t.YNc(20,Ha,2,0,"th",8),t._uU(21,"\n "),t.YNc(22,Va,2,1,"td",9),t._uU(23,"\n "),t.BQk(),t._uU(24,"\n\n "),t.ynx(25,10),t._uU(26,"\n "),t.YNc(27,Wa,2,0,"th",8),t._uU(28,"\n "),t.YNc(29,ja,2,1,"td",9),t._uU(30,"\n "),t.BQk(),t._uU(31,"\n\n "),t.ynx(32,11),t._uU(33,"\n "),t.YNc(34,za,2,0,"th",8),t._uU(35,"\n "),t.YNc(36,$a,2,1,"td",9),t._uU(37,"\n "),t.BQk(),t._uU(38,"\n\n "),t.ynx(39,12),t._uU(40,"\n "),t.YNc(41,Xa,2,0,"th",8),t._uU(42,"\n "),t.YNc(43,Ka,3,3,"td",9),t._uU(44,"\n "),t.BQk(),t._uU(45,"\n\n "),t.ynx(46,13),t._uU(47,"\n "),t.YNc(48,to,2,0,"th",8),t._uU(49,"\n "),t.YNc(50,no,2,1,"td",9),t._uU(51,"\n "),t.BQk(),t._uU(52,"\n\n "),t.ynx(53,14),t._uU(54,"\n "),t.YNc(55,eo,2,0,"th",8),t._uU(56,"\n "),t.YNc(57,ao,2,1,"td",9),t._uU(58,"\n "),t.BQk(),t._uU(59,"\n\n "),t.ynx(60,15),t._uU(61,"\n "),t.YNc(62,oo,2,0,"th",8),t._uU(63,"\n "),t.YNc(64,io,3,6,"td",9),t._uU(65,"\n "),t.BQk(),t._uU(66,"\n\n "),t.ynx(67,16),t._uU(68,"\n "),t.YNc(69,so,2,0,"th",8),t._uU(70,"\n "),t.YNc(71,co,3,6,"td",9),t._uU(72,"\n "),t.BQk(),t._uU(73,"\n\n "),t.ynx(74,17),t._uU(75,"\n "),t.YNc(76,ro,2,0,"th",8),t._uU(77,"\n "),t.YNc(78,uo,3,6,"td",9),t._uU(79,"\n "),t.BQk(),t._uU(80,"\n\n "),t.ynx(81,18),t._uU(82,"\n "),t.YNc(83,lo,2,0,"th",8),t._uU(84,"\n "),t.YNc(85,mo,3,6,"td",9),t._uU(86,"\n "),t.BQk(),t._uU(87,"\n\n "),t.ynx(88,19),t._uU(89,"\n "),t.YNc(90,_o,2,0,"th",8),t._uU(91,"\n "),t.YNc(92,Zo,6,2,"td",9),t._uU(93,"\n "),t.BQk(),t._uU(94,"\n\n "),t.YNc(95,Co,1,0,"tr",20),t._uU(96,"\n "),t.YNc(97,bo,1,3,"tr",21),t._uU(98,"\n\n "),t.qZA(),t._uU(99,"\n\n "),t.qZA(),t._uU(100,"\n\n"),t.qZA(),t._uU(101,"\n")),2&e&&(t.xp6(10),t.Q6J("ngIf",a.chargesData),t.xp6(5),t.Q6J("dataSource",a.dataSource),t.xp6(80),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",a.displayedColumns))},dependencies:[A.O5,u.xw,u.Wh,T.lW,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,M.gM,w.A,l.rH,A.H9,I.E],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),n})();var qo=m(35023);const yo=["instructionsTable"];function Do(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Client "),t.qZA())}function Io(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.fromClient.displayName,"-",e.fromClient.id,"")}}function No(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," From Account "),t.qZA())}function wo(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.fromAccount.accountNo," (",e.fromAccountType.value,")")}}function Oo(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Beneficiary "),t.qZA())}function Fo(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Oqu(e.toClient.displayName)}}function Po(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," To Account "),t.qZA())}function Lo(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.toAccount.accountNo," (",e.toAccountType.value,")")}}function ko(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Amount "),t.qZA())}function Yo(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.instructionType.value,"/",e.amount,"")}}function Mo(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Validity "),t.qZA())}function Jo(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.ALo(2,"dateFormat"),t.ALo(3,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",t.lcZ(2,2,e.validFrom)," to ",t.lcZ(3,4,e.validTill),"")}}function Qo(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Actions "),t.qZA())}function Ro(n,o){1&n&&(t.TgZ(0,"button",21),t._uU(1,"\n "),t._UZ(2,"i",22),t._uU(3,"\n "),t.qZA())}function Eo(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ro,4,0,"button",20),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function Go(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2).$implicit,c=t.oxw();return t.KtG(c.deleteStandingInstruction(i.id))}),t._uU(1,"\n "),t._UZ(2,"i",25),t._uU(3,"\n "),t.qZA()}}function Bo(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Go,4,0,"button",23),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}function Ho(n,o){1&n&&(t.TgZ(0,"button",26),t._uU(1,"\n "),t._UZ(2,"i",27),t._uU(3,"\n "),t.qZA())}function Vo(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1,"\n "),t.YNc(2,Eo,4,1,"span",18),t._uU(3,"\n "),t.YNc(4,Bo,4,1,"span",18),t._uU(5,"\n "),t.YNc(6,Ho,4,0,"button",19),t._uU(7,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Deleted"!==e.status.value),t.xp6(2),t.Q6J("ngIf","Deleted"!==e.status.value),t.xp6(2),t.Q6J("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function Wo(n,o){1&n&&t._UZ(0,"tr",28)}function jo(n,o){1&n&&t._UZ(0,"tr",29)}let zo=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.savingsService=a,this.dialog=i,this.accountTransfersService=c,this.settingsService=r,this.dataSource=new p.by,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.parent.data.subscribe(_=>{this.savingsData=_.savingsAccountData})}ngOnInit(){this.getStandingInstructions()}getStandingInstructions(){this.savingsService.getStandingInstructions(this.savingsData.clientId,this.savingsData.clientName,this.savingsData.id,this.settingsService.language.code,this.settingsService.dateFormat).subscribe(_=>{this.instructionsData=_.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(e){this.dialog.open(J.F,{data:{deleteContext:`standing instruction id: ${e}`}}).afterClosed().subscribe(i=>{i.delete&&this.accountTransfersService.deleteStandingInstrucions(e).subscribe(()=>{})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(U.d),t.Y36(f.uw),t.Y36(qo.o),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-standing-instructions-tab"]],viewQuery:function(e,a){if(1&e&&t.Gf(yo,7),2&e){let i;t.iGM(i=t.CRH())&&(a.instructionTableRef=i.first)}},decls:69,vars:3,consts:[[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["instructionsTable",""],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","View Standing Instruction",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Edit Standing Instruction",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Edit Standing Instruction",1,"account-action-button"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn","matTooltip","Delete Standing Instruction",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn","matTooltip","Delete Standing Instruction",1,"account-action-button",3,"click"],[1,"fa","fa-times"],["mat-raised-button","","color","primary","matTooltip","View Standing Instruction",1,"account-action-button"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"h3"),t._uU(5,"All Standing Instructions"),t.qZA(),t._uU(6,"\n "),t.qZA(),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"table",3,4),t._uU(12,"\n\n "),t.ynx(13,5),t._uU(14,"\n "),t.YNc(15,Do,2,0,"th",6),t._uU(16,"\n "),t.YNc(17,Io,2,2,"td",7),t._uU(18,"\n "),t.BQk(),t._uU(19,"\n\n "),t.ynx(20,8),t._uU(21,"\n "),t.YNc(22,No,2,0,"th",6),t._uU(23,"\n "),t.YNc(24,wo,2,2,"td",7),t._uU(25,"\n "),t.BQk(),t._uU(26,"\n\n "),t.ynx(27,9),t._uU(28,"\n "),t.YNc(29,Oo,2,0,"th",6),t._uU(30,"\n "),t.YNc(31,Fo,2,1,"td",7),t._uU(32,"\n "),t.BQk(),t._uU(33,"\n\n "),t.ynx(34,10),t._uU(35,"\n "),t.YNc(36,Po,2,0,"th",6),t._uU(37,"\n "),t.YNc(38,Lo,2,2,"td",7),t._uU(39,"\n "),t.BQk(),t._uU(40,"\n\n "),t.ynx(41,11),t._uU(42,"\n "),t.YNc(43,ko,2,0,"th",6),t._uU(44,"\n "),t.YNc(45,Yo,2,2,"td",7),t._uU(46,"\n "),t.BQk(),t._uU(47,"\n\n "),t.ynx(48,12),t._uU(49,"\n "),t.YNc(50,Mo,2,0,"th",6),t._uU(51,"\n "),t.YNc(52,Jo,4,6,"td",7),t._uU(53,"\n "),t.BQk(),t._uU(54,"\n\n "),t.ynx(55,13),t._uU(56,"\n "),t.YNc(57,Qo,2,0,"th",6),t._uU(58,"\n "),t.YNc(59,Vo,8,3,"td",7),t._uU(60,"\n "),t.BQk(),t._uU(61,"\n\n "),t.YNc(62,Wo,1,0,"tr",14),t._uU(63,"\n "),t.YNc(64,jo,1,0,"tr",15),t._uU(65,"\n\n "),t.qZA(),t._uU(66,"\n\n "),t.qZA(),t._uU(67,"\n\n"),t.qZA(),t._uU(68,"\n")),2&e&&(t.xp6(10),t.Q6J("dataSource",a.dataSource),t.xp6(52),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",a.displayedColumns))},dependencies:[A.O5,T.lW,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,M.gM,w.A,I.E],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]}),n})(),$o=(()=>{class n{constructor(e){this.route=e,this.entityId=this.route.parent.parent.snapshot.paramMap.get("savingAccountId"),this.route.data.subscribe(a=>{this.entityDatatable=a.savingsDatatable,this.multiRowDatatableFlag="id"===this.entityDatatable.columnHeaders[0].columnName})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-datatable-tabs"]],decls:6,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Savings",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.TgZ(2,"mifosx-entity-datatable-tab",1),t._uU(3,"\n "),t.qZA(),t._uU(4,"\n"),t.qZA(),t._uU(5,"\n")),2&e&&(t.xp6(2),t.Q6J("entityId",a.entityId)("multiRowDatatableFlag",a.multiRowDatatableFlag)("entityDatatable",a.entityDatatable))},dependencies:[at.j]}),n})();var x=m(58425);function Xo(n,o){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function Ko(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",13),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(10);return t.KtG(i.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Submitted On"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",14),t._uU(6,"\n "),t._UZ(7,"mat-datepicker-toggle",15),t._uU(8,"\n "),t._UZ(9,"mat-datepicker",null,16),t._uU(11,"\n "),t.TgZ(12,"mat-error"),t._uU(13,"\n Submission Date is "),t.TgZ(14,"strong"),t._uU(15,"required"),t.qZA(),t._uU(16,"\n "),t.qZA(),t._uU(17,"\n "),t.qZA()}if(2&n){const e=t.MAs(10),a=t.oxw();t.xp6(5),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e)}}function ti(n,o){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.displayName,"\n ")}}function ni(n,o){if(1&n&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Field Officer"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"mat-select",17),t._uU(6,"\n "),t.YNc(7,ti,2,2,"mat-option",4),t._uU(8,"\n "),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(7),t.Q6J("ngForOf",e.fieldOfficerData)}}function ei(n,o){1&n&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"External ID"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",18),t._uU(6,"\n "),t.qZA())}let P=(()=>{class n{constructor(e,a,i){this.formBuilder=e,this.savingsService=a,this.settingsService=i,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isFieldOfficerPatched=!1,this.savingsProductSelected=!1,this.savingsAccountProductTemplate=new t.vpe,this.createSavingsAccountDetailsForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.buildDependencies(),this.savingsAccountTemplate&&(this.productData=this.savingsAccountTemplate.productOptions,this.savingsAccountDetailsForm.patchValue(this.savingsAccountTemplate.savingsProductId?{productId:this.savingsAccountTemplate.savingsProductId,submittedOnDate:this.savingsAccountTemplate.timeline.submittedOnDate&&new Date(this.savingsAccountTemplate.timeline.submittedOnDate),externalId:this.savingsAccountTemplate.externalId}:{submittedOnDate:new Date}))}createSavingsAccountDetailsForm(){this.savingsAccountDetailsForm=this.formBuilder.group({productId:["",s.kI.required],submittedOnDate:["",s.kI.required],fieldOfficerId:[""],externalId:[""]})}buildDependencies(){const e=this.savingsAccountTemplate.clientId||this.savingsAccountTemplate.groupId;this.savingsAccountDetailsForm.get("productId").valueChanges.subscribe(a=>{this.savingsService.getSavingsAccountTemplate(e,a,!!this.savingsAccountTemplate.groupId).subscribe(i=>{this.savingsAccountProductTemplate.emit(i),this.fieldOfficerData=i.fieldOfficerOptions,this.savingsProductSelected=!0,!this.isFieldOfficerPatched&&this.savingsAccountTemplate.fieldOfficerId?(this.savingsAccountDetailsForm.get("fieldOfficerId").patchValue(this.savingsAccountTemplate.fieldOfficerId),this.isFieldOfficerPatched=!0):this.savingsAccountDetailsForm.get("fieldOfficerId").patchValue("")})})}get savingsAccountDetails(){return this.savingsAccountDetailsForm.getRawValue()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-details-step"]],inputs:{savingsAccountTemplate:"savingsAccountTemplate"},outputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate"},decls:42,vars:5,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["formControlName","productId","required",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48%",3,"click",4,"ngIf"],["fxFlex","48%",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlex","48%",3,"click"],["matInput","","formControlName","submittedOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["submittedOnDatePicker",""],["formControlName","fieldOfficerId"],["matInput","","formControlName","externalId"]],template:function(e,a){1&e&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7,"Product Name"),t.qZA(),t._uU(8,"\n "),t.TgZ(9,"mat-select",3),t._uU(10,"\n "),t.YNc(11,Xo,2,2,"mat-option",4),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"mat-error"),t._uU(15,"\n Product Name is "),t.TgZ(16,"strong"),t._uU(17,"required"),t.qZA(),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n\n "),t.YNc(21,Ko,18,4,"mat-form-field",5),t._uU(22,"\n\n "),t.YNc(23,ni,10,1,"mat-form-field",6),t._uU(24,"\n\n "),t.YNc(25,ei,7,0,"mat-form-field",6),t._uU(26,"\n\n "),t.qZA(),t._uU(27,"\n\n "),t.TgZ(28,"div",7),t._uU(29,"\n "),t.TgZ(30,"button",8),t._uU(31,"\n "),t._UZ(32,"fa-icon",9),t._uU(33,"\n Previous\n "),t.qZA(),t._uU(34,"\n "),t.TgZ(35,"button",10),t._uU(36,"\n Next\n "),t._UZ(37,"fa-icon",11),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&e&&(t.Q6J("formGroup",a.savingsAccountDetailsForm),t.xp6(11),t.Q6J("ngForOf",a.productData),t.xp6(10),t.Q6J("ngIf",a.savingsProductSelected),t.xp6(2),t.Q6J("ngIf",a.savingsProductSelected),t.xp6(2),t.Q6J("ngIf",a.savingsProductSelected))},dependencies:[A.sg,A.O5,q.BN,u.xw,u.SQ,u.Wh,u.yH,y.ey,T.lW,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,D.gD,x.Ic,x.fd,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u]}),n})();var st=m(44850);function ai(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function oi(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function ii(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function si(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function ci(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function ri(n,o){1&n&&(t.TgZ(0,"div",29),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field",30),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5,"Minimum Overdraft Required for Interest Calculation"),t.qZA(),t._uU(6,"\n "),t._UZ(7,"input",31),t._uU(8,"\n "),t.qZA(),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",30),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13,"Nominal Annual Interest for Overdraft"),t.qZA(),t._uU(14,"\n "),t._UZ(15,"input",32),t._uU(16,"\n "),t.qZA(),t._uU(17,"\n\n "),t.TgZ(18,"mat-form-field",30),t._uU(19,"\n "),t.TgZ(20,"mat-label"),t._uU(21,"Maximum Overdraft Amount Limit"),t.qZA(),t._uU(22,"\n "),t._UZ(23,"input",33),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.qZA())}function ui(n,o){1&n&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Balance Required for Interest Calculation"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",34),t._uU(6,"\n "),t.qZA())}let L=(()=>{class n{constructor(e,a){this.formBuilder=e,this.settingsService=a,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createSavingsAccountTermsForm(),this.buildDependencies()}ngOnChanges(){this.savingsAccountProductTemplate&&(this.savingsAccountTermsForm.patchValue({currencyCode:this.savingsAccountProductTemplate.currency.code,decimal:this.savingsAccountProductTemplate.currency.decimalPlaces,minBalanceForInterestCalculation:this.savingsAccountProductTemplate.minBalanceForInterestCalculation,nominalAnnualInterestRate:this.savingsAccountProductTemplate.nominalAnnualInterestRate,interestCompoundingPeriodType:this.savingsAccountProductTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.savingsAccountProductTemplate.interestPostingPeriodType.id,interestCalculationType:this.savingsAccountProductTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.savingsAccountProductTemplate.interestCalculationDaysInYearType.id,minRequiredOpeningBalance:this.savingsAccountProductTemplate.minRequiredOpeningBalance,allowOverdraft:this.savingsAccountProductTemplate.allowOverdraft,overdraftLimit:this.savingsAccountProductTemplate.overdraftLimit,enforceMinRequiredBalance:this.savingsAccountProductTemplate.enforceMinRequiredBalance,minOverdraftForInterestCalculation:this.savingsAccountProductTemplate.minOverdraftForInterestCalculation,nominalAnnualInterestRateOverdraft:this.savingsAccountProductTemplate.nominalAnnualInterestRateOverdraft,minRequiredBalance:this.savingsAccountProductTemplate.minRequiredBalance,withdrawalFeeForTransfers:this.savingsAccountProductTemplate.withdrawalFeeForTransfers}),this.setOptions())}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.savingsAccountTemplate&&this.savingsAccountTermsForm.patchValue({nominalAnnualInterestRate:this.savingsAccountTemplate.nominalAnnualInterestRate,interestCompoundingPeriodType:this.savingsAccountTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.savingsAccountTemplate.interestPostingPeriodType.id,interestCalculationType:this.savingsAccountTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.savingsAccountTemplate.interestCalculationDaysInYearType.id,minRequiredOpeningBalance:this.savingsAccountTemplate.minRequiredOpeningBalance,withdrawalFeeForTransfers:this.savingsAccountTemplate.withdrawalFeeForTransfers,lockinPeriodFrequency:this.savingsAccountTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.savingsAccountTemplate.lockinPeriodFrequencyType&&this.savingsAccountTemplate.lockinPeriodFrequencyType.id,allowOverdraft:this.savingsAccountTemplate.allowOverdraft,enforceMinRequiredBalance:this.savingsAccountTemplate.enforceMinRequiredBalance,minRequiredBalance:this.savingsAccountTemplate.minRequiredBalance})}createSavingsAccountTermsForm(){this.savingsAccountTermsForm=this.formBuilder.group({currencyCode:[{value:"",disabled:!0}],decimal:[{value:"",disabled:!0}],nominalAnnualInterestRate:["",s.kI.required],interestCompoundingPeriodType:["",s.kI.required],interestPostingPeriodType:["",s.kI.required],interestCalculationType:["",s.kI.required],interestCalculationDaysInYearType:["",s.kI.required],minRequiredOpeningBalance:[""],withdrawalFeeForTransfers:[!1],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],allowOverdraft:[!1],enforceMinRequiredBalance:[!1],minRequiredBalance:[""],minBalanceForInterestCalculation:[{value:"",disabled:!0}]})}setOptions(){this.lockinPeriodFrequencyTypeData=this.savingsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,this.interestCompoundingPeriodTypeData=this.savingsAccountProductTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.savingsAccountProductTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.savingsAccountProductTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.savingsAccountProductTemplate.interestCalculationDaysInYearTypeOptions}buildDependencies(){this.savingsAccountTermsForm.get("allowOverdraft").valueChanges.subscribe(e=>{e?(this.savingsAccountTermsForm.addControl("minOverdraftForInterestCalculation",new s.p4("")),this.savingsAccountTermsForm.addControl("nominalAnnualInterestRateOverdraft",new s.p4("")),this.savingsAccountTermsForm.addControl("overdraftLimit",new s.p4(""))):(this.savingsAccountTermsForm.removeControl("minOverdraftForInterestCalculation"),this.savingsAccountTermsForm.removeControl("nominalAnnualInterestRateOverdraft"),this.savingsAccountTermsForm.removeControl("overdraftLimit"))})}get savingsAccountTerms(){const e=this.savingsAccountTermsForm.getRawValue();return delete e.currencyCode,delete e.decimal,delete e.minBalanceForInterestCalculation,e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-terms-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate"},features:[t.TTD],decls:175,vars:8,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column","fxLayoutAlign.gt-sm","start center"],["fxFlex","48%"],["matInput","","formControlName","currencyCode"],["type","number","matInput","","formControlName","decimal"],["type","number","matInput","","formControlName","nominalAnnualInterestRate","required",""],["formControlName","interestCompoundingPeriodType","required",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","interestPostingPeriodType","required",""],["formControlName","interestCalculationType","required",""],["formControlName","interestCalculationDaysInYearType","required",""],["type","number","matInput","","formControlName","minRequiredOpeningBalance"],["fxFlex","48%","labelPosition","before","formControlName","withdrawalFeeForTransfers",1,"margin-v"],["fxFlex","98%",1,"mat-h4"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],["fxFlex","98%"],["fxFlex","23%",1,"mat-h3"],["fxFlex","73%","labelPosition","before","formControlName","allowOverdraft",1,"margin-b"],["fxFlexFill","","fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column",4,"ngIf"],["fxFlex","48%","labelPosition","before","formControlName","enforceMinRequiredBalance",1,"margin-v"],["type","number","matInput","","formControlName","minRequiredBalance"],["fxFlex","48%",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlexFill","","fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","31%"],["type","number","matInput","","formControlName","minOverdraftForInterestCalculation"],["type","number","matInput","","formControlName","nominalAnnualInterestRateOverdraft"],["type","number","matInput","","formControlName","overdraftLimit"],["type","number","matInput","","formControlName","minBalanceForInterestCalculation"]],template:function(e,a){1&e&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7,"Currency"),t.qZA(),t._uU(8,"\n "),t._UZ(9,"input",3),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n\n "),t.TgZ(12,"mat-form-field",2),t._uU(13,"\n "),t.TgZ(14,"mat-label"),t._uU(15,"Decimal Places"),t.qZA(),t._uU(16,"\n "),t._UZ(17,"input",4),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"mat-form-field",2),t._uU(21,"\n "),t.TgZ(22,"mat-label"),t._uU(23,"Nominal Annual Interest Rate"),t.qZA(),t._uU(24,"\n "),t._UZ(25,"input",5),t._uU(26,"\n "),t.TgZ(27,"mat-error"),t._uU(28,"\n Nominal Annual Interest is "),t.TgZ(29,"strong"),t._uU(30,"required"),t.qZA(),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA(),t._uU(33,"\n\n "),t.TgZ(34,"mat-form-field",2),t._uU(35,"\n "),t.TgZ(36,"mat-label"),t._uU(37,"Interest Compounding Period"),t.qZA(),t._uU(38,"\n "),t.TgZ(39,"mat-select",6),t._uU(40,"\n "),t.YNc(41,ai,2,2,"mat-option",7),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n "),t.TgZ(44,"mat-error"),t._uU(45,"\n Interest Compounding Period is "),t.TgZ(46,"strong"),t._uU(47,"required"),t.qZA(),t._uU(48,"\n "),t.qZA(),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n\n "),t.TgZ(51,"mat-form-field",2),t._uU(52,"\n "),t.TgZ(53,"mat-label"),t._uU(54,"Interest Posting Period"),t.qZA(),t._uU(55,"\n "),t.TgZ(56,"mat-select",8),t._uU(57,"\n "),t.YNc(58,oi,2,2,"mat-option",7),t._uU(59,"\n "),t.qZA(),t._uU(60,"\n "),t.TgZ(61,"mat-error"),t._uU(62,"\n Interest Posting Period is "),t.TgZ(63,"strong"),t._uU(64,"required"),t.qZA(),t._uU(65,"\n "),t.qZA(),t._uU(66,"\n "),t.qZA(),t._uU(67,"\n\n "),t.TgZ(68,"mat-form-field",2),t._uU(69,"\n "),t.TgZ(70,"mat-label"),t._uU(71,"Interest Calculated using"),t.qZA(),t._uU(72,"\n "),t.TgZ(73,"mat-select",9),t._uU(74,"\n "),t.YNc(75,ii,2,2,"mat-option",7),t._uU(76,"\n "),t.qZA(),t._uU(77,"\n "),t.TgZ(78,"mat-error"),t._uU(79,"\n Interest Calculated using is "),t.TgZ(80,"strong"),t._uU(81,"required"),t.qZA(),t._uU(82,"\n "),t.qZA(),t._uU(83,"\n "),t.qZA(),t._uU(84,"\n\n "),t.TgZ(85,"mat-form-field",2),t._uU(86,"\n "),t.TgZ(87,"mat-label"),t._uU(88,"Days in Year"),t.qZA(),t._uU(89,"\n "),t.TgZ(90,"mat-select",10),t._uU(91,"\n "),t.YNc(92,si,2,2,"mat-option",7),t._uU(93,"\n "),t.qZA(),t._uU(94,"\n "),t.TgZ(95,"mat-error"),t._uU(96,"\n Days in Year is "),t.TgZ(97,"strong"),t._uU(98,"required"),t.qZA(),t._uU(99,"\n "),t.qZA(),t._uU(100,"\n "),t.qZA(),t._uU(101,"\n\n "),t.TgZ(102,"mat-form-field",2),t._uU(103,"\n "),t.TgZ(104,"mat-label"),t._uU(105,"Minimum Opening Balance"),t.qZA(),t._uU(106,"\n "),t._UZ(107,"input",11),t._uU(108,"\n "),t.qZA(),t._uU(109,"\n\n "),t.TgZ(110,"mat-checkbox",12),t._uU(111,"\n Apply Withdrawal Fee for Transfers\n "),t.qZA(),t._uU(112,"\n\n "),t.TgZ(113,"h4",13),t._uU(114,"Lock-in Period"),t.qZA(),t._uU(115,"\n\n "),t.TgZ(116,"mat-form-field",2),t._uU(117,"\n "),t.TgZ(118,"mat-label"),t._uU(119,"Frequency"),t.qZA(),t._uU(120,"\n "),t._UZ(121,"input",14),t._uU(122,"\n "),t.qZA(),t._uU(123,"\n\n "),t.TgZ(124,"mat-form-field",2),t._uU(125,"\n "),t.TgZ(126,"mat-label"),t._uU(127,"Type"),t.qZA(),t._uU(128,"\n "),t.TgZ(129,"mat-select",15),t._uU(130,"\n "),t.YNc(131,ci,2,2,"mat-option",7),t._uU(132,"\n "),t.qZA(),t._uU(133,"\n "),t.qZA(),t._uU(134,"\n\n "),t._UZ(135,"mat-divider",16),t._uU(136,"\n\n "),t.TgZ(137,"h3",17),t._uU(138,"Overdraft"),t.qZA(),t._uU(139,"\n\n "),t.TgZ(140,"mat-checkbox",18),t._uU(141,"\n Is Overdraft Allowed?\n "),t.qZA(),t._uU(142,"\n\n "),t.YNc(143,ri,26,0,"div",19),t._uU(144,"\n\n "),t._UZ(145,"mat-divider",16),t._uU(146,"\n\n "),t.TgZ(147,"mat-checkbox",20),t._uU(148,"\n Enforce Minimum Balance\n "),t.qZA(),t._uU(149,"\n\n "),t.TgZ(150,"mat-form-field",2),t._uU(151,"\n "),t.TgZ(152,"mat-label"),t._uU(153,"Minimum Balance"),t.qZA(),t._uU(154,"\n "),t._UZ(155,"input",21),t._uU(156,"\n "),t.qZA(),t._uU(157,"\n\n "),t.YNc(158,ui,7,0,"mat-form-field",22),t._uU(159,"\n\n "),t.qZA(),t._uU(160,"\n\n "),t.TgZ(161,"div",23),t._uU(162,"\n "),t.TgZ(163,"button",24),t._uU(164,"\n "),t._UZ(165,"fa-icon",25),t._uU(166,"\n Previous\n "),t.qZA(),t._uU(167,"\n "),t.TgZ(168,"button",26),t._uU(169,"\n Next\n "),t._UZ(170,"fa-icon",27),t._uU(171,"\n "),t.qZA(),t._uU(172,"\n "),t.qZA(),t._uU(173,"\n\n"),t.qZA(),t._uU(174,"\n")),2&e&&(t.Q6J("formGroup",a.savingsAccountTermsForm),t.xp6(41),t.Q6J("ngForOf",a.interestCompoundingPeriodTypeData),t.xp6(17),t.Q6J("ngForOf",a.interestPostingPeriodTypeData),t.xp6(17),t.Q6J("ngForOf",a.interestCalculationTypeData),t.xp6(17),t.Q6J("ngForOf",a.interestCalculationDaysInYearTypeData),t.xp6(39),t.Q6J("ngForOf",a.lockinPeriodFrequencyTypeData),t.xp6(12),t.Q6J("ngIf",a.savingsAccountTermsForm.value.allowOverdraft),t.xp6(15),t.Q6J("ngIf",a.savingsAccountTermsForm.controls.minBalanceForInterestCalculation.value))},dependencies:[A.sg,A.O5,q.BN,u.xw,u.SQ,u.Wh,u.s9,u.yH,y.ey,T.lW,W.oG,st.d,g.TO,g.KE,g.hX,b.Nt,D.gD,x.Ic,x.fd,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();var li=m(63613);function mi(n,o){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function _i(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Name "),t.qZA())}function gi(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.name+", "+e.currency.displaySymbol,"\n ")}}function pi(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Type "),t.qZA())}function di(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeCalculationType.value,"\n ")}}function fi(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Amount "),t.qZA())}function Ai(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",28),t._uU(1),t.TgZ(2,"button",29),t.NdJ("click",function(){const c=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.editChargeAmount(c))}),t._uU(3,"\n "),t._UZ(4,"fa-icon",30),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.qZA()}if(2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.amount,"\n ")}}function vi(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Collected On "),t.qZA())}function Ui(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeTimeType.value,"\n ")}}function hi(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Date "),t.qZA())}function Ti(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.dueDate)||"Unassigned","\n ")}}function Zi(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.feeOnMonthDay)||"Unassigned","\n ")}}function Ci(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n N/A\n "),t.qZA())}function xi(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,c=t.oxw(2);return t.KtG(c.editChargeDate(i))}),t._uU(1,"\n "),t._UZ(2,"fa-icon",30),t._uU(3,"\n "),t.qZA()}}function bi(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1,"\n "),t.YNc(2,Ti,3,3,"span",31),t._uU(3,"\n "),t.YNc(4,Zi,3,3,"span",31),t._uU(5,"\n "),t.YNc(6,Ci,2,0,"span",31),t._uU(7,"\n "),t.YNc(8,xi,4,0,"button",32),t._uU(9,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf","Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf",!("Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value)),t.xp6(2),t.Q6J("ngIf","Weekly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value)}}function Si(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Repayments Every "),t.qZA())}function qi(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,c=t.oxw(2);return t.KtG(c.editChargeFeeInterval(i))}),t._uU(1,"\n "),t._UZ(2,"fa-icon",30),t._uU(3,"\n "),t.qZA()}}function yi(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.YNc(2,qi,4,0,"button",32),t._uU(3,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.feeInterval||"Not Provided","\n "),t.xp6(1),t.Q6J("ngIf","Weekly Fee"===e.chargeTimeType.value||"Monthly Fee"===e.chargeTimeType.value)}}function Di(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Actions "),t.qZA())}function Ii(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",28),t._uU(1,"\n "),t.TgZ(2,"button",33),t.NdJ("click",function(){const c=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.deleteCharge(c))}),t._uU(3,"\n "),t._UZ(4,"fa-icon",34),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.qZA()}}function Ni(n,o){1&n&&t._UZ(0,"tr",35)}function wi(n,o){1&n&&t._UZ(0,"tr",36)}function Oi(n,o){if(1&n&&(t.TgZ(0,"table",15),t._uU(1,"\n\n "),t.ynx(2,16),t._uU(3,"\n "),t.YNc(4,_i,2,0,"th",17),t._uU(5,"\n "),t.YNc(6,gi,2,1,"td",18),t._uU(7,"\n "),t.BQk(),t._uU(8,"\n\n "),t.ynx(9,19),t._uU(10,"\n "),t.YNc(11,pi,2,0,"th",17),t._uU(12,"\n "),t.YNc(13,di,2,1,"td",18),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,20),t._uU(17,"\n "),t.YNc(18,fi,2,0,"th",17),t._uU(19,"\n "),t.YNc(20,Ai,7,1,"td",18),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,21),t._uU(24,"\n "),t.YNc(25,vi,2,0,"th",17),t._uU(26,"\n "),t.YNc(27,Ui,2,1,"td",18),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,22),t._uU(31,"\n "),t.YNc(32,hi,2,0,"th",17),t._uU(33,"\n "),t.YNc(34,bi,10,4,"td",18),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,23),t._uU(38,"\n "),t.YNc(39,Si,2,0,"th",17),t._uU(40,"\n "),t.YNc(41,yi,4,2,"td",18),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.ynx(44,24),t._uU(45,"\n "),t.YNc(46,Di,2,0,"th",17),t._uU(47,"\n "),t.YNc(48,Ii,7,0,"td",18),t._uU(49,"\n "),t.BQk(),t._uU(50,"\n\n "),t.YNc(51,Ni,1,0,"tr",25),t._uU(52,"\n "),t.YNc(53,wi,1,0,"tr",26),t._uU(54,"\n\n "),t.qZA()),2&n){const e=t.oxw();t.Q6J("dataSource",e.chargesDataSource),t.xp6(51),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",e.displayedColumns)}}function Fi(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"th",27),t._uU(1,"\n "),t.TgZ(2,"mat-checkbox",41),t.NdJ("change",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.toggleSelects())})("ngModelChange",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.selectAllItems=i)}),t.qZA(),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngModel",e.selectAllItems)}}function Pi(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",28),t._uU(1,"\n "),t.TgZ(2,"mat-checkbox",41),t.NdJ("change",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.toggleSelect())})("ngModelChange",function(i){const r=t.CHM(e).$implicit;return t.KtG(r.selected=i)}),t.qZA(),t._uU(3,"\n "),t.qZA()}if(2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngModel",e.selected)}}function Li(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Client ID "),t.qZA())}function ki(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Yi(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Client Name "),t.qZA())}function Mi(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.displayName," ")}}function Ji(n,o){1&n&&t._UZ(0,"tr",35)}function Qi(n,o){1&n&&t._UZ(0,"tr",36)}function Ri(n,o){if(1&n&&(t.TgZ(0,"div",37),t._uU(1,"\n "),t.TgZ(2,"table",38),t._uU(3,"\n\n "),t._uU(4,"\n "),t.ynx(5,39),t._uU(6,"\n "),t.YNc(7,Fi,4,1,"th",17),t._uU(8,"\n "),t.YNc(9,Pi,4,1,"td",18),t._uU(10,"\n "),t.BQk(),t._uU(11,"\n\n "),t._uU(12,"\n "),t.ynx(13,40),t._uU(14,"\n "),t.YNc(15,Li,2,0,"th",17),t._uU(16,"\n "),t.YNc(17,ki,2,1,"td",18),t._uU(18,"\n "),t.BQk(),t._uU(19,"\n\n "),t._uU(20,"\n "),t.ynx(21,16),t._uU(22,"\n "),t.YNc(23,Yi,2,0,"th",17),t._uU(24,"\n "),t.YNc(25,Mi,2,1,"td",18),t._uU(26,"\n "),t.BQk(),t._uU(27,"\n\n\n "),t.YNc(28,Ji,1,0,"tr",25),t._uU(29,"\n "),t.YNc(30,Qi,1,0,"tr",26),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(26),t.Q6J("matHeaderRowDef",e.displayedColumn),t.xp6(2),t.Q6J("matRowDefColumns",e.displayedColumn)}}let k=(()=>{class n{constructor(e,a){this.dialog=e,this.dateUtils=a,this.chargeData=[],this.chargesDataSource=[],this.pristine=!0,this.isChargesPatched=!1,this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery","action"],this.selectAllItems=!1,this.loanPurposeOptions=[],this.displayedColumn=["check","id","name"]}ngOnInit(){this.savingsAccountTemplate&&(!this.isChargesPatched&&this.savingsAccountTemplate.charges?(this.chargesDataSource=this.savingsAccountProductTemplate.charges.map(e=>({...e,id:e.chargeId}))||[],this.isChargesPatched=!0):this.chargesDataSource=[],this.dataSource=new p.by(this.activeClientMembers))}ngOnChanges(){this.savingsAccountProductTemplate&&(this.chargeData=this.savingsAccountProductTemplate.chargeOptions,this.chargesDataSource=this.savingsAccountProductTemplate.charges.map(e=>({...e,id:e.chargeId}))||[])}addCharge(e){this.chargesDataSource=this.chargesDataSource.concat([e.value]),e.value="",this.pristine=!1}editChargeAmount(e){const a=[new F.M({controlName:"amount",label:"Amount",value:e.amount,type:"number",required:!1})];this.dialog.open(N.E,{data:{title:"Edit Charge Amount",layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){const _={...e,amount:r.data.value.amount};this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,_),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeDate(e){const a=[new j.d({controlName:"date",label:"Date",value:e.dueDate||e.feeOnMonthDay||"",type:"datetime-local",required:!1})];this.dialog.open(N.E,{data:{title:"Edit Charge Date",layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){let _;const Y=this.dateUtils.formatDate(r.data.value.date,"dd MMMM yyyy");switch(e.chargeTimeType.value){case"Specified due date":case"Weekly Fee":_={...e,dueDate:Y};break;case"Annual Fee":_={...e,feeOnMonthDay:Y}}this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,_),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeFeeInterval(e){const a=[new F.M({controlName:"feeInterval",label:"Fee Interval",value:e.feeInterval,type:"text",required:!1})];this.dialog.open(N.E,{data:{title:"Edit Charge Fee Interval",layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){const _={...e,feeInterval:r.data.value.feeInterval};this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,_),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}deleteCharge(e){this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1}get savingsAccountCharges(){return{charges:this.chargesDataSource}}get selectedClientMembers(){return{selectedMembers:this.activeClientMembers.filter(e=>e.selected)}}toggleSelects(){for(const e of this.activeClientMembers)e.selected=this.selectAllItems}toggleSelect(){const e=this.activeClientMembers.length;this.selectAllItems=0!==e&&this.activeClientMembers.filter(a=>a.selected).length===e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.uw),t.Y36(C.L))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-charges-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate",currencyCode:"currencyCode",activeClientMembers:"activeClientMembers"},features:[t.TTD],decls:41,vars:8,consts:[["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["charge",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48%","fxFlexAlign","center"],["type","button","mat-raised-button","","color","primary",3,"disabled","click"],["icon","plus",1,"m-r-10"],["fxFlex","98%","class","mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["fxFlex","98%",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlex","98%","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],[4,"ngIf"],["mat-icon-button","","color","primary",3,"click",4,"ngIf"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""],["fxFlex","98%"],["fxFlex","98%","mat-table","",3,"dataSource"],["matColumnDef","check"],["matColumnDef","id"],[3,"ngModel","change","ngModelChange"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field",1),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5,"Charge"),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"mat-select",null,2),t._uU(9,"\n "),t.YNc(10,mi,2,2,"mat-option",3),t.ALo(11,"chargesFilter"),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.TgZ(15,"div",4),t._uU(16,"\n "),t.TgZ(17,"button",5),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(8);return t.KtG(a.addCharge(r))}),t._uU(18,"\n "),t._UZ(19,"fa-icon",6),t._uU(20,"\n Add\n "),t.qZA(),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n\n "),t.YNc(23,Oi,55,3,"table",7),t._uU(24,"\n\n "),t.YNc(25,Ri,33,3,"div",8),t._uU(26,"\n\n\n"),t.qZA(),t._uU(27,"\n\n"),t.TgZ(28,"div",9),t._uU(29,"\n "),t.TgZ(30,"button",10),t._uU(31,"\n "),t._UZ(32,"fa-icon",11),t._uU(33,"\n Previous\n "),t.qZA(),t._uU(34,"\n "),t.TgZ(35,"button",12),t._uU(36,"\n Next\n "),t._UZ(37,"fa-icon",13),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n"),t.qZA(),t._uU(40,"\n")}if(2&e){const i=t.MAs(8);t.xp6(10),t.Q6J("ngForOf",t.Dn7(11,4,a.chargeData,a.chargesDataSource,a.currencyCode.value)),t.xp6(7),t.Q6J("disabled",!i.value),t.xp6(6),t.Q6J("ngIf",a.chargesDataSource.length>0),t.xp6(2),t.Q6J("ngIf",a.activeClientMembers)}},dependencies:[A.sg,A.O5,q.BN,u.xw,u.SQ,u.Wh,u.XD,u.yH,y.ey,T.lW,W.oG,g.KE,g.hX,D.gD,x.Ic,x.fd,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,s.JJ,s.On,li.A,I.E],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();var Ei=m(27676),Gi=m(30637);function Bi(n,o){if(1&n&&(t.TgZ(0,"span",4),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",13),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.s9C("externalId",e.savingsAccount.externalId)}}function Hi(n,o){1&n&&(t.TgZ(0,"span",4),t._uU(1,"\n Unassigned\n "),t.qZA())}function Vi(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3,"Minimum Opening Balance:"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"span",4),t._uU(6),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(e.savingsAccount.minRequiredOpeningBalance)}}function Wi(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3,"Lock-in Period:"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"span",4),t._uU(6),t.ALo(7,"find"),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(e.savingsAccount.lockinPeriodFrequency+" "+t.gM2(7,1,e.savingsAccount.lockinPeriodFrequencyType,e.savingsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,"id","value"))}}function ji(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3,"Minimum Overdraft Required for Interest Calculation:"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"span",4),t._uU(6),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(e.savingsAccount.minOverdraftForInterestCalculation)}}function zi(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3,"Nominal Annual Interest for Overdraft:"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"span",4),t._uU(6),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(e.savingsAccount.nominalAnnualInterestRateOverdraft)}}function $i(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3,"Maximum Overdraft Amount Limit:"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"span",4),t._uU(6),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(e.savingsAccount.overdraftLimit)}}function Xi(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3,"Minimum Balance:"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"span",4),t._uU(6),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(e.savingsAccount.minRequiredBalance)}}function Ki(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1," Name "),t.qZA())}function ts(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.name+", "+e.currency.displaySymbol,"\n ")}}function ns(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1," Type "),t.qZA())}function es(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeCalculationType.value,"\n ")}}function as(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1," Amount "),t.qZA())}function os(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.amount,"\n ")}}function is(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1," Date "),t.qZA())}function ss(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.dueDate)||"Unassigned","\n ")}}function cs(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.feeOnMonthDay)||"Unassigned","\n ")}}function rs(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n N/A\n "),t.qZA())}function us(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1,"\n "),t.YNc(2,ss,3,3,"span",28),t._uU(3,"\n "),t.YNc(4,cs,3,3,"span",28),t._uU(5,"\n "),t.YNc(6,rs,2,0,"span",28),t._uU(7,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf","Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf",!("Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value))}}function ls(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1," Repayments Every "),t.qZA())}function ms(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.feeInterval||"Not Provided","\n ")}}function _s(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1," Collected On "),t.qZA())}function gs(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeTimeType.value,"\n ")}}function ps(n,o){1&n&&t._UZ(0,"tr",29)}function ds(n,o){1&n&&t._UZ(0,"tr",30)}function fs(n,o){if(1&n&&(t.TgZ(0,"div",14),t._uU(1,"\n\n "),t.TgZ(2,"h3",1),t._uU(3,"Charges"),t.qZA(),t._uU(4,"\n\n "),t._UZ(5,"mat-divider",2),t._uU(6,"\n\n "),t.TgZ(7,"table",15),t._uU(8,"\n\n "),t.ynx(9,16),t._uU(10,"\n "),t.YNc(11,Ki,2,0,"th",17),t._uU(12,"\n "),t.YNc(13,ts,2,1,"td",18),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,19),t._uU(17,"\n "),t.YNc(18,ns,2,0,"th",17),t._uU(19,"\n "),t.YNc(20,es,2,1,"td",18),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,20),t._uU(24,"\n "),t.YNc(25,as,2,0,"th",17),t._uU(26,"\n "),t.YNc(27,os,2,1,"td",18),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,21),t._uU(31,"\n "),t.YNc(32,is,2,0,"th",17),t._uU(33,"\n "),t.YNc(34,us,8,3,"td",18),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,22),t._uU(38,"\n "),t.YNc(39,ls,2,0,"th",17),t._uU(40,"\n "),t.YNc(41,ms,2,1,"td",18),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.ynx(44,23),t._uU(45,"\n "),t.YNc(46,_s,2,0,"th",17),t._uU(47,"\n "),t.YNc(48,gs,2,1,"td",18),t._uU(49,"\n "),t.BQk(),t._uU(50,"\n\n "),t.YNc(51,ps,1,0,"tr",24),t._uU(52,"\n "),t.YNc(53,ds,1,0,"tr",25),t._uU(54,"\n\n "),t.qZA(),t._uU(55,"\n\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(7),t.Q6J("dataSource",e.savingsAccount.charges),t.xp6(44),t.Q6J("matHeaderRowDef",e.chargesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",e.chargesDisplayedColumns)}}const As=function(){return["../"]};let z=(()=>{class n{constructor(){this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery"],this.submit=new t.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-preview-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate",savingsAccountTermsForm:"savingsAccountTermsForm",savingsAccount:"savingsAccount"},outputs:{submit:"submit"},decls:178,vars:62,consts:[["fxLayout","row wrap","fxLayout.lt-md","column"],["fxFlexFill","",1,"mat-h3"],["fxFlexFill",""],["fxFlex","40%"],["fxFlex","60%"],["fxFlex","60%",4,"ngIf"],["fxFlexFill","",4,"ngIf"],["fxFlexFill","","fxLayout","row wrap","fxLayout.lt-md","column",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],[3,"externalId"],["fxFlexFill","","fxLayout","row wrap","fxLayout.lt-md","column"],["fxFlexFill","","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","chargeTimeType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"h3",1),t._uU(3,"Details"),t.qZA(),t._uU(4,"\n\n "),t._UZ(5,"mat-divider",2),t._uU(6,"\n\n "),t.TgZ(7,"div",2),t._uU(8,"\n "),t.TgZ(9,"span",3),t._uU(10,"Product"),t.qZA(),t._uU(11,"\n "),t.TgZ(12,"span",4),t._uU(13),t.ALo(14,"find"),t.qZA(),t._uU(15,"\n "),t.qZA(),t._uU(16,"\n\n "),t.TgZ(17,"div",2),t._uU(18,"\n "),t.TgZ(19,"span",3),t._uU(20,"Submitted On"),t.qZA(),t._uU(21,"\n "),t.TgZ(22,"span",4),t._uU(23),t.ALo(24,"dateFormat"),t.qZA(),t._uU(25,"\n "),t.qZA(),t._uU(26,"\n\n "),t.TgZ(27,"div",2),t._uU(28,"\n "),t.TgZ(29,"span",3),t._uU(30,"External Id"),t.qZA(),t._uU(31,"\n "),t.YNc(32,Bi,4,1,"span",5),t._uU(33,"\n "),t.YNc(34,Hi,2,0,"span",5),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"div",2),t._uU(38,"\n "),t.TgZ(39,"span",3),t._uU(40,"Field Officer"),t.qZA(),t._uU(41,"\n "),t.TgZ(42,"span",4),t._uU(43),t.ALo(44,"find"),t.qZA(),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"h3",1),t._uU(48,"Terms"),t.qZA(),t._uU(49,"\n\n "),t._UZ(50,"mat-divider",2),t._uU(51,"\n\n "),t.TgZ(52,"div",2),t._uU(53,"\n "),t.TgZ(54,"span",3),t._uU(55,"Currency"),t.qZA(),t._uU(56,"\n "),t.TgZ(57,"span",4),t._uU(58),t.qZA(),t._uU(59,"\n "),t.qZA(),t._uU(60,"\n\n "),t.TgZ(61,"div",2),t._uU(62,"\n "),t.TgZ(63,"span",3),t._uU(64,"Decimal Places"),t.qZA(),t._uU(65,"\n "),t.TgZ(66,"span",4),t._uU(67),t.qZA(),t._uU(68,"\n "),t.qZA(),t._uU(69,"\n\n "),t.TgZ(70,"div",2),t._uU(71,"\n "),t.TgZ(72,"span",3),t._uU(73,"Nominal Annual Interest Rate:"),t.qZA(),t._uU(74,"\n "),t.TgZ(75,"span",4),t._uU(76),t.qZA(),t._uU(77,"\n "),t.qZA(),t._uU(78,"\n\n "),t.TgZ(79,"div",2),t._uU(80,"\n "),t.TgZ(81,"span",3),t._uU(82,"Interest Compounding Period:"),t.qZA(),t._uU(83,"\n "),t.TgZ(84,"span",4),t._uU(85),t.ALo(86,"find"),t.qZA(),t._uU(87,"\n "),t.qZA(),t._uU(88,"\n\n "),t.TgZ(89,"div",2),t._uU(90,"\n "),t.TgZ(91,"span",3),t._uU(92,"Interest Posting Period:"),t.qZA(),t._uU(93,"\n "),t.TgZ(94,"span",4),t._uU(95),t.ALo(96,"find"),t.qZA(),t._uU(97,"\n "),t.qZA(),t._uU(98,"\n\n "),t.TgZ(99,"div",2),t._uU(100,"\n "),t.TgZ(101,"span",3),t._uU(102,"Interest Calculated using:"),t.qZA(),t._uU(103,"\n "),t.TgZ(104,"span",4),t._uU(105),t.ALo(106,"find"),t.qZA(),t._uU(107,"\n "),t.qZA(),t._uU(108,"\n\n "),t.TgZ(109,"div",2),t._uU(110,"\n "),t.TgZ(111,"span",3),t._uU(112,"Days in Year:"),t.qZA(),t._uU(113,"\n "),t.TgZ(114,"span",4),t._uU(115),t.ALo(116,"find"),t.qZA(),t._uU(117,"\n "),t.qZA(),t._uU(118,"\n\n "),t.YNc(119,Vi,8,1,"div",6),t._uU(120,"\n\n "),t.TgZ(121,"div",2),t._uU(122,"\n "),t.TgZ(123,"span",3),t._uU(124,"Apply Withdrawal Fee for Transfers:"),t.qZA(),t._uU(125,"\n "),t.TgZ(126,"span",4),t._uU(127),t.ALo(128,"yesNo"),t.qZA(),t._uU(129,"\n "),t.qZA(),t._uU(130,"\n\n "),t.YNc(131,Wi,9,6,"div",6),t._uU(132,"\n\n "),t.TgZ(133,"div",2),t._uU(134,"\n "),t.TgZ(135,"span",3),t._uU(136,"Is Overdraft Allowed:"),t.qZA(),t._uU(137,"\n "),t.TgZ(138,"span",4),t._uU(139),t.ALo(140,"yesNo"),t.qZA(),t._uU(141,"\n "),t.qZA(),t._uU(142,"\n\n "),t.YNc(143,ji,8,1,"div",6),t._uU(144,"\n\n "),t.YNc(145,zi,8,1,"div",6),t._uU(146,"\n\n "),t.YNc(147,$i,8,1,"div",6),t._uU(148,"\n\n "),t.TgZ(149,"div",2),t._uU(150,"\n "),t.TgZ(151,"span",3),t._uU(152,"Enforce Minimum Balance:"),t.qZA(),t._uU(153,"\n "),t.TgZ(154,"span",4),t._uU(155),t.ALo(156,"yesNo"),t.qZA(),t._uU(157,"\n "),t.qZA(),t._uU(158,"\n\n "),t.YNc(159,Xi,8,1,"div",6),t._uU(160,"\n\n "),t.YNc(161,fs,56,3,"div",7),t._uU(162,"\n\n"),t.qZA(),t._uU(163,"\n\n"),t.TgZ(164,"div",8),t._uU(165,"\n "),t.TgZ(166,"button",9),t._uU(167,"\n "),t._UZ(168,"fa-icon",10),t._uU(169,"\n Previous\n "),t.qZA(),t._uU(170,"\n "),t.TgZ(171,"button",11),t._uU(172,"\n Cancel\n "),t.qZA(),t._uU(173,"\n "),t.TgZ(174,"button",12),t.NdJ("click",function(){return a.submit.emit()}),t._uU(175,"\n Submit\n "),t.qZA(),t._uU(176,"\n"),t.qZA(),t._uU(177,"\n")),2&e&&(t.xp6(13),t.Oqu(t.gM2(14,23,a.savingsAccount.productId,a.savingsAccountTemplate.productOptions,"id","name")),t.xp6(10),t.Oqu(t.lcZ(24,28,a.savingsAccount.submittedOnDate)),t.xp6(9),t.Q6J("ngIf",a.savingsAccount.externalId),t.xp6(2),t.Q6J("ngIf",!a.savingsAccount.externalId),t.xp6(9),t.Oqu(t.gM2(44,30,a.savingsAccount.fieldOfficerId,a.savingsAccountProductTemplate.fieldOfficerOptions,"id","displayName")),t.xp6(15),t.Oqu(a.savingsAccountTermsForm.get("currencyCode").value),t.xp6(9),t.Oqu(a.savingsAccountTermsForm.get("decimal").value),t.xp6(9),t.Oqu(a.savingsAccount.nominalAnnualInterestRate),t.xp6(9),t.Oqu(t.gM2(86,35,a.savingsAccount.interestCompoundingPeriodType,a.savingsAccountProductTemplate.interestCompoundingPeriodTypeOptions,"id","value")),t.xp6(10),t.Oqu(t.gM2(96,40,a.savingsAccount.interestPostingPeriodType,a.savingsAccountProductTemplate.interestPostingPeriodTypeOptions,"id","value")),t.xp6(10),t.Oqu(t.gM2(106,45,a.savingsAccount.interestCalculationType,a.savingsAccountProductTemplate.interestCalculationTypeOptions,"id","value")),t.xp6(10),t.Oqu(t.gM2(116,50,a.savingsAccount.interestCalculationDaysInYearType,a.savingsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,"id","value")),t.xp6(4),t.Q6J("ngIf",a.savingsAccount.minRequiredOpeningBalance),t.xp6(8),t.Oqu(t.lcZ(128,55,a.savingsAccount.withdrawalFeeForTransfers)),t.xp6(4),t.Q6J("ngIf",a.savingsAccount.lockinPeriodFrequency),t.xp6(8),t.Oqu(t.lcZ(140,57,a.savingsAccount.allowOverdraft)),t.xp6(4),t.Q6J("ngIf",a.savingsAccount.minOverdraftForInterestCalculation),t.xp6(2),t.Q6J("ngIf",a.savingsAccount.nominalAnnualInterestRateOverdraft),t.xp6(2),t.Q6J("ngIf",a.savingsAccount.overdraftLimit),t.xp6(8),t.Oqu(t.lcZ(156,59,a.savingsAccount.enforceMinRequiredBalance)),t.xp6(4),t.Q6J("ngIf",a.savingsAccount.minRequiredBalance),t.xp6(2),t.Q6J("ngIf",a.savingsAccount.charges.length),t.xp6(10),t.Q6J("routerLink",t.DdM(61,As)))},dependencies:[A.O5,q.BN,u.xw,u.SQ,u.Wh,u.s9,u.yH,T.lW,st.d,x.fd,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,nt.e,l.rH,Ei.Z,I.E,Gi.D],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();function vs(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function Us(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function hs(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function Ts(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function Zs(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",17),t._uU(2,"\n "))}function Cs(n,o){1&n&&t._uU(0,"DETAILS")}function xs(n,o){1&n&&t._uU(0,"TERMS")}function bs(n,o){1&n&&t._uU(0,"CHARGES")}function Ss(n,o){1&n&&t._uU(0,"PREVIEW")}function qs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",18),t._uU(1,"\n\n "),t.YNc(2,Ss,1,0,"ng-template",9),t._uU(3,"\n\n "),t.TgZ(4,"mifosx-savings-account-preview-step",19),t.NdJ("submit",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)}}let ys=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.router=a,this.dateUtils=i,this.savingsService=c,this.settingsService=r,this.route.data.subscribe(_=>{this.savingsAccountTemplate=_.savingsAccountTemplate})}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get savingsAccountFormValid(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid}get savingsAccount(){return{...this.savingsAccountDetailsStep.savingsAccountDetails,...this.savingsAccountTermsStep.savingsAccountTerms,...this.savingsAccountChargesStep.savingsAccountCharges}}submit(){const e=this.settingsService.language.code,a=this.settingsService.dateFormat,c={...this.savingsAccount,charges:this.savingsAccount.charges.map(r=>({chargeId:r.id,amount:r.amount,dueDate:r.dueDate,feeOnMonthDay:r.feeOnMonthDay,feeInterval:r.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,a),dateFormat:a,monthDayFormat:"dd MMMM",locale:e};this.savingsAccountTemplate.clientId?c.clientId=this.savingsAccountTemplate.clientId:c.groupId=this.savingsAccountTemplate.groupId,this.savingsService.createSavingsAccount(c).subscribe(r=>{this.router.navigate(["../",r.resourceId],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(C.L),t.Y36(U.d),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-create-savings-account"]],viewQuery:function(e,a){if(1&e&&(t.Gf(P,7),t.Gf(L,7),t.Gf(k,7)),2&e){let i;t.iGM(i=t.CRH())&&(a.savingsAccountDetailsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountTermsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountChargesStep=i.first)}},decls:42,vars:8,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["savingProductStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountTemplate","savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode"],["completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["completed",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount","submit"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n\n "),t.YNc(5,vs,3,0,"ng-template",3),t._uU(6,"\n\n "),t.YNc(7,Us,3,0,"ng-template",4),t._uU(8,"\n\n "),t.YNc(9,hs,3,0,"ng-template",5),t._uU(10,"\n\n "),t.YNc(11,Ts,3,0,"ng-template",6),t._uU(12,"\n\n "),t.YNc(13,Zs,3,0,"ng-template",7),t._uU(14,"\n\n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n\n "),t.YNc(17,Cs,1,0,"ng-template",9),t._uU(18,"\n\n "),t.TgZ(19,"mifosx-savings-account-details-step",10),t.NdJ("savingsAccountProductTemplate",function(c){return a.setTemplate(c)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n\n "),t.YNc(25,xs,1,0,"ng-template",9),t._uU(26,"\n\n "),t._UZ(27,"mifosx-savings-account-terms-step",11),t._uU(28,"\n\n "),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"mat-step"),t._uU(31,"\n\n "),t.YNc(32,bs,1,0,"ng-template",9),t._uU(33,"\n\n "),t.TgZ(34,"mifosx-savings-account-charges-step",12),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n "),t.YNc(38,qs,7,4,"mat-step",13),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&e&&(t.xp6(15),t.Q6J("stepControl",a.savingsAccountDetailsForm),t.xp6(4),t.Q6J("savingsAccountTemplate",a.savingsAccountTemplate),t.xp6(4),t.Q6J("stepControl",a.savingsAccountTermsForm),t.xp6(4),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate),t.xp6(7),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate)("savingsAccountTemplate",a.savingsAccountTemplate)("currencyCode",a.savingsAccountTermsForm.get("currencyCode")),t.xp6(4),t.Q6J("ngIf",a.savingsAccountFormValid))},dependencies:[A.O5,q.BN,x.C0,x.VY,x.Vq,x.z9,P,k,L,z]}),n})();function Ds(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function Is(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function Ns(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function ws(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function Os(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",17),t._uU(2,"\n "))}function Fs(n,o){1&n&&t._uU(0,"DETAILS")}function Ps(n,o){1&n&&t._uU(0,"TERMS")}function Ls(n,o){1&n&&t._uU(0,"CHARGES")}function ks(n,o){1&n&&t._uU(0,"PREVIEW")}function Ys(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",18),t._uU(1,"\n\n "),t.YNc(2,ks,1,0,"ng-template",9),t._uU(3,"\n\n "),t.TgZ(4,"mifosx-savings-account-preview-step",19),t.NdJ("submit",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountAndTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)}}let Ms=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.router=a,this.dateUtils=i,this.savingsService=c,this.settingsService=r,this.route.data.subscribe(_=>{this.savingsAccountAndTemplate=_.savingsAccountAndTemplate})}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get savingsAccountFormValidAndNotPristine(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid&&(!this.savingsAccountDetailsForm.pristine||!this.savingsAccountTermsForm.pristine||!this.savingsAccountChargesStep.pristine)}get savingsAccount(){return{...this.savingsAccountDetailsStep.savingsAccountDetails,...this.savingsAccountTermsStep.savingsAccountTerms,...this.savingsAccountChargesStep.savingsAccountCharges}}submit(){const e=this.settingsService.language.code,a=this.settingsService.dateFormat,c={...this.savingsAccount,charges:this.savingsAccount.charges.map(r=>({chargeId:r.id,amount:r.amount,dueDate:this.dateUtils.formatDate(r.dueDate,a),feeOnMonthDay:this.dateUtils.formatDate(r.feeOnMonthDay,a),feeInterval:r.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,a),dateFormat:a,monthDayFormat:"dd MMMM",locale:e};this.savingsAccountAndTemplate.clientId?c.clientId=this.savingsAccountAndTemplate.clientId:c.groupId=this.savingsAccountAndTemplate.groupId,this.savingsService.updateSavingsAccount(this.savingsAccountAndTemplate.id,c).subscribe(r=>{this.router.navigate(["../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(C.L),t.Y36(U.d),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-edit-savings-account"]],viewQuery:function(e,a){if(1&e&&(t.Gf(P,7),t.Gf(L,7),t.Gf(k,7)),2&e){let i;t.iGM(i=t.CRH())&&(a.savingsAccountDetailsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountTermsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountChargesStep=i.first)}},decls:42,vars:9,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["savingProductStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountTemplate","savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode"],["completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["completed",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount","submit"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n\n "),t.YNc(5,Ds,3,0,"ng-template",3),t._uU(6,"\n\n "),t.YNc(7,Is,3,0,"ng-template",4),t._uU(8,"\n\n "),t.YNc(9,Ns,3,0,"ng-template",5),t._uU(10,"\n\n "),t.YNc(11,ws,3,0,"ng-template",6),t._uU(12,"\n\n "),t.YNc(13,Os,3,0,"ng-template",7),t._uU(14,"\n\n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n\n "),t.YNc(17,Fs,1,0,"ng-template",9),t._uU(18,"\n\n "),t.TgZ(19,"mifosx-savings-account-details-step",10),t.NdJ("savingsAccountProductTemplate",function(c){return a.setTemplate(c)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n\n "),t.YNc(25,Ps,1,0,"ng-template",9),t._uU(26,"\n\n "),t._UZ(27,"mifosx-savings-account-terms-step",11),t._uU(28,"\n\n "),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"mat-step"),t._uU(31,"\n\n "),t.YNc(32,Ls,1,0,"ng-template",9),t._uU(33,"\n\n "),t.TgZ(34,"mifosx-savings-account-charges-step",12),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n "),t.YNc(38,Ys,7,4,"mat-step",13),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&e&&(t.xp6(15),t.Q6J("stepControl",a.savingsAccountDetailsForm),t.xp6(4),t.Q6J("savingsAccountTemplate",a.savingsAccountAndTemplate),t.xp6(4),t.Q6J("stepControl",a.savingsAccountTermsForm),t.xp6(4),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate)("savingsAccountTemplate",a.savingsAccountAndTemplate),t.xp6(7),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate)("savingsAccountTemplate",a.savingsAccountAndTemplate)("currencyCode",a.savingsAccountTermsForm.get("currencyCode")),t.xp6(4),t.Q6J("ngIf",a.savingsAccountFormValidAndNotPristine))},dependencies:[A.O5,q.BN,x.C0,x.VY,x.Vq,x.z9,P,k,L,z]}),n})();const Js=function(n){return["./datatables",n]};function Qs(n,o){if(1&n&&(t.TgZ(0,"a",2,6),t._uU(2),t.qZA()),2&n){const e=t.MAs(1),a=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(3,Js,a.registeredTableName))("active",e.isActive),t.xp6(2),t.hij("\n ",a.registeredTableName,"\n ")}}function Rs(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Qs,3,5,"a",5),t._uU(3,"\n "),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission","READ_"+e.registeredTableName)}}const Es=function(){return["./general"]};let Gs=(()=>{class n{constructor(e,a){this.route=e,this.dialog=a,this.route.data.subscribe(i=>{this.accountId=this.route.snapshot.params.savingAccountId,this.entityDatatables=i.transactionDatatables})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(f.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-view-transaction"]],decls:14,vars:4,consts:[[1,"container"],["mat-tab-nav-bar","",1,"navigation-tabs"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["general","routerLinkActive"],[4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],["datatable","routerLinkActive"]],template:function(e,a){if(1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.TgZ(2,"nav",1),t._uU(3,"\n "),t.TgZ(4,"a",2,3),t._uU(6,"\n General\n "),t.qZA(),t._uU(7,"\n "),t.YNc(8,Rs,4,1,"ng-container",4),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n\n "),t._UZ(11,"router-outlet"),t._uU(12,"\n\n"),t.qZA(),t._uU(13,"\n")),2&e){const i=t.MAs(5);t.xp6(4),t.Q6J("routerLink",t.DdM(3,Es))("active",i.isActive),t.xp6(4),t.Q6J("ngForOf",a.entityDatatables)}},dependencies:[A.sg,Q.BU,Q.Nj,w.A,l.lC,l.yS,l.Od],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]}),n})();function Bs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.payCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",12),t._uU(3,"\n Pay\n "),t.qZA()}}function Hs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.waiveCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",14),t._uU(3,"\n Waive\n "),t.qZA()}}function Vs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.inactivateCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",17),t._uU(3,"\n Inactivate\n "),t.qZA()}}function Ws(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Vs,4,0,"button",15),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE"))}function js(n,o){if(1&n&&(t.TgZ(0,"div",7),t._uU(1,"\n "),t.YNc(2,Bs,4,0,"button",8),t._uU(3,"\n "),t.YNc(4,Hs,4,0,"button",9),t._uU(5,"\n "),t.YNc(6,Ws,4,1,"span",10),t._uU(7,"\n"),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("ngIf",e.isRecurringCharge())}}function zs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.editCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",18),t._uU(3,"\n Edit\n "),t.qZA()}}function $s(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.deleteCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",17),t._uU(3,"\n Delete\n "),t.qZA()}}function Xs(n,o){1&n&&(t.TgZ(0,"div",7),t._uU(1,"\n "),t.YNc(2,zs,4,0,"button",9),t._uU(3,"\n "),t.YNc(4,$s,4,0,"button",15),t._uU(5,"\n"),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}const Ks=function(){return["../"]};let tc=(()=>{class n{constructor(e,a,i,c,r,_){this.savingsService=e,this.route=a,this.dateUtils=i,this.router=c,this.dialog=r,this.settingsService=_,this.route.data.subscribe(h=>{this.chargeData=h.savingsAccountCharge}),this.route.data.subscribe(h=>{this.savingsAccountData=h.savingsAccountData})}payCharge(){const e=[new F.M({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new j.d({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})];this.dialog.open(N.E,{data:{title:"Pay Charge",layout:{addButtonText:"Confirm"},formfields:e}}).afterClosed().subscribe(c=>{if(c.data){const r=this.settingsService.language.code,_=this.settingsService.dateFormat,h={...c.data.value,dueDate:this.dateUtils.formatDate(c.data.value.dueDate,_),dateFormat:_,locale:r};this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"pay",h,this.chargeData.id).subscribe(()=>{this.reload()})}})}waiveCharge(){this.dialog.open(ot,{data:{id:this.chargeData.id}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"waive",{},this.chargeData.id).subscribe(()=>{this.reload()})})}inactivateCharge(){this.dialog.open(it,{data:{id:this.chargeData.id}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"inactivate",{},this.chargeData.id).subscribe(()=>{this.reload()})})}editCharge(){const e=[new F.M({controlName:"amount",label:"Amount",value:this.chargeData.amount||this.chargeData.amountOrPercentage,type:"number",required:!0})];this.dialog.open(N.E,{data:{title:"Edit Charge",layout:{addButtonText:"Confirm"},formfields:e}}).afterClosed().subscribe(c=>{if(c.data){const h={...c.data.value,dateFormat:this.settingsService.dateFormat,locale:this.settingsService.language.code};this.savingsService.editSavingsAccountCharge(this.chargeData.accountId,h,this.chargeData.id).subscribe(()=>{this.reload()})}})}deleteCharge(){this.dialog.open(J.F,{data:{deleteContext:`charge id:${this.chargeData.id}`}}).afterClosed().subscribe(a=>{a.delete&&this.savingsService.deleteSavingsAccountCharge(this.chargeData.accountId,this.chargeData.id).subscribe(()=>{this.reload()})})}isRecurringCharge(){const e=this.chargeData.chargeTimeType.value;return"Monthly Fee"===e||"Annual Fee"===e||"Weekly Fee"===e}reload(){const e=this.router.url.replace(`/${this.chargeData.id}`,""),a=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(a,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.d),t.Y36(l.gz),t.Y36(C.L),t.Y36(l.F0),t.Y36(f.uw),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-view-charge"]],decls:89,vars:27,consts:[["fxLayout","row","fxLayoutAlign","end","fxLayoutGap","2%","fxLayout.lt-md","column","class","container m-b-20",4,"ngIf"],[1,"container"],["fxLayout","row wrap",1,"content"],["fxFlex","50%",1,"mat-body-strong"],["fxFlex","50%"],["fxLayout","row","fxLayoutAlign","center","fxLayoutGap","2%","fxLayout.lt-md","column"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["fxLayout","row","fxLayoutAlign","end","fxLayoutGap","2%","fxLayout.lt-md","column",1,"container","m-b-20"],["mat-raised-button","","color","accent",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],[4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["icon","dollar-sign",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click"],["icon","flag",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["icon","edit",1,"m-r-10"]],template:function(e,a){1&e&&(t._uU(0,"\n\n"),t.YNc(1,js,8,3,"div",0),t._uU(2,"\n\n"),t.YNc(3,Xs,6,2,"div",0),t._uU(4,"\n\n"),t.TgZ(5,"div",1),t._uU(6,"\n\n "),t.TgZ(7,"mat-card"),t._uU(8,"\n\n "),t.TgZ(9,"mat-card-content"),t._uU(10,"\n\n "),t.TgZ(11,"div",2),t._uU(12,"\n\n "),t.TgZ(13,"div",3),t._uU(14,"\n Name\n "),t.qZA(),t._uU(15,"\n\n "),t.TgZ(16,"div",4),t._uU(17),t.qZA(),t._uU(18,"\n\n "),t.TgZ(19,"div",3),t._uU(20,"\n Charge Type\n "),t.qZA(),t._uU(21,"\n\n "),t.TgZ(22,"div",4),t._uU(23),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"div",3),t._uU(26,"\n Currency\n "),t.qZA(),t._uU(27,"\n\n "),t.TgZ(28,"div",4),t._uU(29),t.qZA(),t._uU(30,"\n\n "),t.TgZ(31,"div",3),t._uU(32,"\n Payment due at\n "),t.qZA(),t._uU(33,"\n\n "),t.TgZ(34,"div",4),t._uU(35),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"div",3),t._uU(38,"\n Payment due as of\n "),t.qZA(),t._uU(39,"\n\n "),t.TgZ(40,"div",4),t._uU(41),t.ALo(42,"dateFormat"),t.qZA(),t._uU(43,"\n\n "),t.TgZ(44,"div",3),t._uU(45,"\n Calculation Type\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"div",4),t._uU(48),t.qZA(),t._uU(49,"\n\n "),t.TgZ(50,"div",3),t._uU(51,"\n Due\n "),t.qZA(),t._uU(52,"\n\n "),t.TgZ(53,"div",4),t._uU(54),t.ALo(55,"formatNumber"),t.qZA(),t._uU(56,"\n\n "),t.TgZ(57,"div",3),t._uU(58,"\n Paid\n "),t.qZA(),t._uU(59,"\n\n "),t.TgZ(60,"div",4),t._uU(61),t.ALo(62,"formatNumber"),t.qZA(),t._uU(63,"\n\n "),t.TgZ(64,"div",3),t._uU(65,"\n Waived\n "),t.qZA(),t._uU(66,"\n\n "),t.TgZ(67,"div",4),t._uU(68),t.ALo(69,"formatNumber"),t.qZA(),t._uU(70,"\n\n "),t.TgZ(71,"div",3),t._uU(72,"\n Outstanding\n "),t.qZA(),t._uU(73,"\n\n "),t.TgZ(74,"div",4),t._uU(75),t.ALo(76,"formatNumber"),t.qZA(),t._uU(77,"\n\n "),t.qZA(),t._uU(78,"\n\n "),t.TgZ(79,"div",5),t._uU(80,"\n "),t.TgZ(81,"button",6),t._uU(82),t.ALo(83,"translate"),t.qZA(),t._uU(84,"\n "),t.qZA(),t._uU(85,"\n "),t.qZA(),t._uU(86,"\n\n "),t.qZA(),t._uU(87,"\n\n"),t.qZA(),t._uU(88,"\n")),2&e&&(t.xp6(1),t.Q6J("ngIf","Active"===a.savingsAccountData.status.value&&0!==a.chargeData.amountOutstanding),t.xp6(2),t.Q6J("ngIf","Submitted and pending approval"===a.savingsAccountData.status.value),t.xp6(14),t.hij("\n ",a.chargeData.name,"\n "),t.xp6(6),t.hij("\n ",a.chargeData.penalty?"Penalty":"Fees","\n "),t.xp6(6),t.hij("\n ",a.chargeData.currency.displayLabel,"\n "),t.xp6(6),t.hij("\n ",a.chargeData.chargeTimeType.value,"\n "),t.xp6(6),t.hij("\n ",t.lcZ(42,14,a.chargeData.dueDate),"\n "),t.xp6(7),t.hij("\n ",a.chargeData.chargeCalculationType.value,"\n "),t.xp6(6),t.hij("\n ",t.lcZ(55,16,a.chargeData.amount),"\n "),t.xp6(7),t.hij("\n ",t.lcZ(62,18,a.chargeData.amountPaid),"\n "),t.xp6(7),t.hij("\n ",t.lcZ(69,20,a.chargeData.amountWaived),"\n "),t.xp6(7),t.hij("\n ",t.lcZ(76,22,a.chargeData.amountOutstanding),"\n "),t.xp6(6),t.Q6J("routerLink",t.DdM(26,Ks)),t.xp6(1),t.Oqu(t.lcZ(83,24,"Back")))},dependencies:[A.O5,q.BN,u.xw,u.SQ,u.Wh,u.yH,T.lW,d.a8,d.dn,w.A,l.rH,S.X$,I.E,B.w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]}),n})();var ct=m(11481);const nc=function(){return["../../"]};let ec=(()=>{class n{constructor(e,a){this.sanitizer=e,this.route=a,this.route.data.subscribe(i=>{this.transactionRecieptData=i.savingsTransactionReciept})}ngOnInit(){const e=this.transactionRecieptData.headers.get("Content-Type"),a=new Blob([this.transactionRecieptData.body],{type:e}),i=URL.createObjectURL(a);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(i)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ct.H7),t.Y36(l.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-view-reciept"]],decls:13,vars:3,consts:[[1,"container"],[1,"back-button"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["icon","arrow-left",1,"m-r-10"],["frameborder","0","width","100%","height","600px;",3,"src"]],template:function(e,a){1&e&&(t.TgZ(0,"mat-card",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"button",2),t._uU(5,"\n "),t._UZ(6,"fa-icon",3),t._uU(7,"Back"),t.qZA(),t._uU(8,"\n "),t.qZA(),t._uU(9,"\n\n "),t._UZ(10,"iframe",4),t._uU(11,"\n\n"),t.qZA(),t._uU(12,"\n")),2&e&&(t.xp6(4),t.Q6J("routerLink",t.DdM(2,nc)),t.xp6(6),t.Q6J("src",a.pentahoUrl,t.uOi))},dependencies:[q.BN,T.lW,d.a8,l.rH],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}.container[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{max-height:2%;margin-bottom:2%}"]}),n})();var rt=m(78543);function ac(n,o){if(1&n&&t._UZ(0,"iframe",13),2&n){const e=t.oxw();t.Q6J("src",e.pentahoUrl,t.uOi)}}const oc=function(){return["../"]};let ic=(()=>{class n{constructor(e,a,i,c,r,_){this.sanitizer=e,this.reportsService=a,this.formBuilder=i,this.dateUtils=c,this.route=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.hideOutput=!0,this.route.parent.parent.data.subscribe(h=>{this.savingsAccountId=h.savingsAccountData.accountNo})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createTransactionsReportForm()}createTransactionsReportForm(){this.transactionsReportForm=this.formBuilder.group({fromDate:["",s.kI.required],toDate:["",s.kI.required]})}generate(){const e={"output-type":"PDF",R_startDate:this.dateUtils.formatDate(this.transactionsReportForm.value.fromDate,this.settingsService.dateFormat),R_endDate:this.dateUtils.formatDate(this.transactionsReportForm.value.toDate,this.settingsService.dateFormat),R_savingsAccountId:this.savingsAccountId};this.reportsService.getPentahoRunReportData("Client Saving Transactions",e,"default",this.settingsService.language.code,this.settingsService.dateFormat).subscribe(a=>{const i=a.headers.get("Content-Type"),c=new Blob([a.body],{type:i}),r=URL.createObjectURL(c);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(r),this.hideOutput=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ct.H7),t.Y36(rt.F),t.Y36(s.QS),t.Y36(C.L),t.Y36(l.gz),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-export-transactions"]],decls:57,vars:13,consts:[["fxLayout","column",1,"m-t-20",3,"formGroup","ngSubmit"],["fxLayout","row","fxLayoutGap","3%","fxLayoutAlign","center"],["fxFlex","30%",3,"click"],["matInput","","required","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["fromDatePicker",""],["matInput","","required","","formControlName","toDate",3,"min","max","matDatepicker"],["toDatePicker",""],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5%",1,"generate-button"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","cogs",1,"m-r-10"],["frameborder","0","width","100%","height","750px;",3,"src",4,"ngIf"],["frameborder","0","width","100%","height","750px;",3,"src"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"form",0),t.NdJ("ngSubmit",function(){return a.generate()}),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(14);return t.KtG(r.open())}),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7,"From Date"),t.qZA(),t._uU(8,"\n "),t._UZ(9,"input",3),t._uU(10,"\n "),t._UZ(11,"mat-datepicker-toggle",4),t._uU(12,"\n "),t._UZ(13,"mat-datepicker",null,5),t._uU(15,"\n "),t.TgZ(16,"mat-error"),t._uU(17,"\n From date is "),t.TgZ(18,"strong"),t._uU(19,"required"),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(33);return t.KtG(r.open())}),t._uU(24,"\n "),t.TgZ(25,"mat-label"),t._uU(26,"To Date"),t.qZA(),t._uU(27,"\n "),t._UZ(28,"input",6),t._uU(29,"\n "),t._UZ(30,"mat-datepicker-toggle",4),t._uU(31,"\n "),t._UZ(32,"mat-datepicker",null,7),t._uU(34,"\n "),t.TgZ(35,"mat-error"),t._uU(36,"\n To date is "),t.TgZ(37,"strong"),t._uU(38,"required"),t.qZA(),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n "),t.qZA(),t._uU(41,"\n\n "),t.qZA(),t._uU(42,"\n\n "),t.TgZ(43,"div",8),t._uU(44,"\n "),t.TgZ(45,"button",9),t._uU(46,"Cancel"),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"button",10),t._uU(49,"\n "),t._UZ(50,"fa-icon",11),t._uU(51,"Generate Report \xa0"),t.qZA(),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n\n"),t.qZA(),t._uU(54,"\n\n"),t.YNc(55,ac,1,1,"iframe",12),t._uU(56,"\n")}if(2&e){const i=t.MAs(14),c=t.MAs(33);t.Q6J("formGroup",a.transactionsReportForm),t.xp6(9),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(17),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",c),t.xp6(2),t.Q6J("for",c),t.xp6(15),t.Q6J("routerLink",t.DdM(12,oc)),t.xp6(3),t.Q6J("disabled",!a.transactionsReportForm.valid),t.xp6(7),t.Q6J("ngIf",!a.hideOutput)}},dependencies:[A.O5,q.BN,u.xw,u.SQ,u.Wh,u.yH,T.lW,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH],styles:[".generate-button[_ngcontent-%COMP%]{max-height:2%;padding:1% 0 2% 6%;align-self:center}"]}),n})();function sc(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"\n Transaction Date is "),t.TgZ(2,"strong"),t._uU(3,"required"),t.qZA(),t._uU(4,"\n "),t.qZA())}function cc(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"\n Transaction Amount is "),t.TgZ(2,"strong"),t._uU(3,"required"),t.qZA(),t._uU(4,"\n "),t.qZA())}function rc(n,o){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function uc(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Account Number"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",19),t._uU(6,"\n "),t.qZA())}function lc(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Cheque"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",20),t._uU(6,"\n "),t.qZA())}function mc(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Routing Code"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",21),t._uU(6,"\n "),t.qZA())}function _c(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Receipt Number"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",22),t._uU(6,"\n "),t.qZA())}function gc(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Bank"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",23),t._uU(6,"\n "),t.qZA())}const pc=function(){return["../"]};let dc=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.route=a,this.router=i,this.dateUtils=c,this.savingsService=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.showPaymentDetails=!1,this.route.data.subscribe(h=>{this.transactionTemplateData=h.savingsAccountTransactionTemplate,this.paymentTypeOptions=this.transactionTemplateData.paymentTypeOptions}),this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditTransactionForm(),this.editTransactionForm.patchValue({transactionDate:this.transactionTemplateData.date&&new Date(this.transactionTemplateData.date),transactionAmount:this.transactionTemplateData.amount,paymentTypeId:this.transactionTemplateData.paymentTypeId})}createEditTransactionForm(){this.editTransactionForm=this.formBuilder.group({transactionDate:["",s.kI.required],transactionAmount:["",s.kI.required],paymentTypeId:[""]})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.editTransactionForm.addControl("accountNumber",new s.p4("")),this.editTransactionForm.addControl("checkNumber",new s.p4("")),this.editTransactionForm.addControl("routingCode",new s.p4("")),this.editTransactionForm.addControl("receiptNumber",new s.p4("")),this.editTransactionForm.addControl("bankNumber",new s.p4(""))):(this.editTransactionForm.removeControl("accountNumber"),this.editTransactionForm.removeControl("checkNumber"),this.editTransactionForm.removeControl("routingCode"),this.editTransactionForm.removeControl("receiptNumber"),this.editTransactionForm.removeControl("bankNumber"))}submit(){const e=this.editTransactionForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(this.editTransactionForm.value.transactionDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,"modify",r,this.transactionTemplateData.id).subscribe(_=>{this.router.navigate(["../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(C.L),t.Y36(U.d),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-edit-transaction"]],decls:82,vars:17,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],[4,"ngIf"],["type","number","formControlName","transactionAmount","required","","matInput",""],["formControlName","paymentTypeId"],[3,"value",4,"ngFor","ngForOf"],["fxFlexFill",""],["fxFlex","75%",1,"expandcollapsebutton","m-l-10","m-t-40",3,"click"],[3,"className"],[1,"m-l-10"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content",2),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(18);return t.KtG(r.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11,"Transaction Date"),t.qZA(),t._uU(12,"\n "),t._UZ(13,"input",4),t._uU(14,"\n "),t._UZ(15,"mat-datepicker-toggle",5),t._uU(16,"\n "),t._UZ(17,"mat-datepicker",null,6),t._uU(19,"\n "),t.YNc(20,sc,5,0,"mat-error",7),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-form-field"),t._uU(24,"\n "),t.TgZ(25,"mat-label"),t._uU(26,"Transaction Amount"),t.qZA(),t._uU(27,"\n "),t._UZ(28,"input",8),t._uU(29,"\n "),t.YNc(30,cc,5,0,"mat-error",7),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n\n "),t.TgZ(33,"mat-form-field"),t._uU(34,"\n "),t.TgZ(35,"mat-label"),t._uU(36,"Payment Type"),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"mat-select",9),t._uU(39,"\n "),t.YNc(40,rc,2,2,"mat-option",10),t._uU(41,"\n "),t.qZA(),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n\n "),t.TgZ(44,"div",11),t._uU(45,"\n "),t.TgZ(46,"span",12),t.NdJ("click",function(){return a.addPaymentDetails()}),t._uU(47,"\n "),t.TgZ(48,"mat-slide-toggle"),t._uU(49,"\n "),t.TgZ(50,"div",13),t._uU(51,"\n "),t.TgZ(52,"span",14),t._uU(53,"Show Payment Details"),t.qZA(),t._uU(54,"\n "),t.qZA(),t._uU(55,"\n "),t.qZA(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n "),t.qZA(),t._uU(58,"\n\n "),t.YNc(59,uc,7,0,"mat-form-field",7),t._uU(60,"\n\n "),t.YNc(61,lc,7,0,"mat-form-field",7),t._uU(62,"\n\n "),t.YNc(63,mc,7,0,"mat-form-field",7),t._uU(64,"\n\n "),t.YNc(65,_c,7,0,"mat-form-field",7),t._uU(66,"\n\n "),t.YNc(67,gc,7,0,"mat-form-field",7),t._uU(68,"\n\n "),t.TgZ(69,"mat-card-actions",15),t._uU(70,"\n "),t.TgZ(71,"button",16),t._uU(72,"Cancel"),t.qZA(),t._uU(73,"\n "),t.TgZ(74,"button",17),t._uU(75,"Submit"),t.qZA(),t._uU(76,"\n "),t.qZA(),t._uU(77,"\n\n "),t.qZA(),t._uU(78,"\n\n "),t.qZA(),t._uU(79,"\n\n "),t.qZA(),t._uU(80,"\n\n"),t.qZA(),t._uU(81,"\n")}if(2&e){const i=t.MAs(18);t.xp6(4),t.Q6J("formGroup",a.editTransactionForm),t.xp6(9),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.editTransactionForm.controls.transactionDate.hasError("required")),t.xp6(10),t.Q6J("ngIf",a.editTransactionForm.controls.transactionAmount.hasError("required")),t.xp6(10),t.Q6J("ngForOf",a.paymentTypeOptions),t.xp6(10),t.Q6J("className",a.showPaymentDetails?"enabled":"disabled"),t.xp6(9),t.Q6J("ngIf",a.editTransactionForm.controls.accountNumber),t.xp6(2),t.Q6J("ngIf",a.editTransactionForm.controls.checkNumber),t.xp6(2),t.Q6J("ngIf",a.editTransactionForm.controls.routingCode),t.xp6(2),t.Q6J("ngIf",a.editTransactionForm.controls.receiptNumber),t.xp6(2),t.Q6J("ngIf",a.editTransactionForm.controls.bankNumber),t.xp6(4),t.Q6J("routerLink",t.DdM(16,pc)),t.xp6(3),t.Q6J("disabled",!a.editTransactionForm.valid)}},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,u.s9,u.yH,y.ey,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,D.gD,V.Rr,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),n})();function fc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function Ac(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function vc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function Uc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function hc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",17),t._uU(2,"\n "))}function Tc(n,o){1&n&&t._uU(0,"DETAILS")}function Zc(n,o){1&n&&t._uU(0,"TERMS")}function Cc(n,o){1&n&&t._uU(0,"CHARGES")}function xc(n,o){1&n&&t._uU(0,"PREVIEW")}function bc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",18),t._uU(1,"\n \n "),t.YNc(2,xc,1,0,"ng-template",9),t._uU(3,"\n \n "),t.TgZ(4,"mifosx-savings-account-preview-step",19),t.NdJ("submit",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n \n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)}}let Sc=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.router=a,this.dateUtils=i,this.savingsService=c,this.settingsService=r,this.route.data.subscribe(_=>{this.savingsAccountTemplate=_.savingsAccountTemplate,this.dataSource=_.groupsData.activeClientMembers})}ngOnInit(){}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get activeClientMembers(){return this.dataSource}get savingsAccountFormValid(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid}get savingsAccount(){return this.selectedMembers=this.savingsAccountChargesStep.selectedClientMembers,{...this.savingsAccountDetailsStep.savingsAccountDetails,...this.savingsAccountTermsStep.savingsAccountTerms,...this.savingsAccountChargesStep.savingsAccountCharges}}setData(e){const a=this.settingsService.language.code,i=this.settingsService.dateFormat,r={...this.savingsAccount,charges:this.savingsAccount.charges.map(_=>({chargeId:_.id,amount:_.amount})),clientId:e.id,isGSIM:!0,isParentAccount:!0,submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,i),dateFormat:i,monthDayFormat:"dd MMMM",locale:a};return r.groupId=this.savingsAccountTemplate.groupId,r}buildRequestData(){const e=[],a=this.selectedMembers.selectedMembers;for(let i=0;i<1;i++)e.push(this.setData(a[i]));return e}submit(){const a={clientArray:this.buildRequestData()};this.savingsService.createGsimAcccount(a).subscribe(i=>{this.router.navigate(["../",i.resourceId],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(C.L),t.Y36(U.d),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-create-gsim-account"]],viewQuery:function(e,a){if(1&e&&(t.Gf(P,7),t.Gf(L,7),t.Gf(k,7)),2&e){let i;t.iGM(i=t.CRH())&&(a.savingsAccountDetailsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountTermsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountChargesStep=i.first)}},decls:42,vars:9,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["savingProductStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountTemplate","savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode","activeClientMembers"],["completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["completed",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount","submit"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n \n "),t.YNc(5,fc,3,0,"ng-template",3),t._uU(6,"\n \n "),t.YNc(7,Ac,3,0,"ng-template",4),t._uU(8,"\n \n "),t.YNc(9,vc,3,0,"ng-template",5),t._uU(10,"\n \n "),t.YNc(11,Uc,3,0,"ng-template",6),t._uU(12,"\n \n "),t.YNc(13,hc,3,0,"ng-template",7),t._uU(14,"\n \n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n \n "),t.YNc(17,Tc,1,0,"ng-template",9),t._uU(18,"\n \n "),t.TgZ(19,"mifosx-savings-account-details-step",10),t.NdJ("savingsAccountProductTemplate",function(c){return a.setTemplate(c)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n \n "),t.qZA(),t._uU(22,"\n \n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n \n "),t.YNc(25,Zc,1,0,"ng-template",9),t._uU(26,"\n \n "),t._UZ(27,"mifosx-savings-account-terms-step",11),t._uU(28,"\n \n "),t.qZA(),t._uU(29,"\n \n "),t.TgZ(30,"mat-step"),t._uU(31,"\n \n "),t.YNc(32,Cc,1,0,"ng-template",9),t._uU(33,"\n \n "),t.TgZ(34,"mifosx-savings-account-charges-step",12),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n \n "),t.qZA(),t._uU(37,"\n \n "),t.YNc(38,bc,7,4,"mat-step",13),t._uU(39,"\n \n "),t.qZA(),t._uU(40,"\n \n "),t.qZA(),t._uU(41,"\n ")),2&e&&(t.xp6(15),t.Q6J("stepControl",a.savingsAccountDetailsForm),t.xp6(4),t.Q6J("savingsAccountTemplate",a.savingsAccountTemplate),t.xp6(4),t.Q6J("stepControl",a.savingsAccountTermsForm),t.xp6(4),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate),t.xp6(7),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate)("savingsAccountTemplate",a.savingsAccountTemplate)("currencyCode",a.savingsAccountTermsForm.get("currencyCode"))("activeClientMembers",a.activeClientMembers),t.xp6(4),t.Q6J("ngIf",a.savingsAccountFormValid))},dependencies:[A.O5,q.BN,x.C0,x.VY,x.Vq,x.z9,P,k,L,z]}),n})();function qc(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Client Details "),t.qZA())}function yc(n,o){if(1&n&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.displayName," ")}}function Dc(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Saving Account "),t.qZA())}function Ic(n,o){if(1&n&&(t.TgZ(0,"td",14),t._UZ(1,"i",15),t.ALo(2,"statusLookup"),t._uU(3),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("ngClass",t.lcZ(2,3,e.status.code))("matTooltip",e.status.value),t.xp6(2),t.hij(" ",e.accountNo," ")}}function Nc(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Products "),t.qZA())}function wc(n,o){if(1&n&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.productName," ")}}function Oc(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Balance "),t.qZA())}function Fc(n,o){1&n&&(t.TgZ(0,"td",14),t._uU(1," "),t.qZA())}function Pc(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Actions "),t.qZA())}const Lc=function(n){return["../","savings-accounts",n,"actions","Deposit"]};function kc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",18),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,Lc,e.id))}}const Yc=function(n){return["../","savings-accounts",n,"actions","Withdrawal"]};function Mc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",19),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,Yc,e.id))}}const Jc=function(n){return["../","savings-accounts",n,"actions","Approve"]};function Qc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",20),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,Jc,e.id))}}const Rc=function(n){return["../../../","savings-accounts",n,"actions","Undo Approval"]};function Ec(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",21),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,Rc,e.id))}}const Gc=function(n){return["../../",n,"actions","Activate"]};function Bc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",22),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,Gc,e.id))}}function Hc(n,o){if(1&n&&(t.TgZ(0,"td",14),t._uU(1,"\n "),t.YNc(2,kc,4,3,"button",16),t._uU(3,"\n "),t.YNc(4,Mc,4,3,"button",16),t._uU(5,"\n "),t.YNc(6,Qc,4,3,"button",16),t._uU(7,"\n "),t.YNc(8,Ec,4,3,"button",16),t._uU(9,"\n "),t.YNc(10,Bc,4,3,"button",16),t._uU(11,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf",e.status.active),t.xp6(2),t.Q6J("ngIf",e.status.active),t.xp6(2),t.Q6J("ngIf",e.status.submittedAndPendingApproval),t.xp6(2),t.Q6J("ngIf",!e.status.submittedAndPendingApproval&&!e.status.active),t.xp6(2),t.Q6J("ngIf",!e.status.submittedAndPendingApproval&&!e.status.active)}}function Vc(n,o){1&n&&t._UZ(0,"tr",23)}const Wc=function(n){return["../../",n,"transactions"]};function jc(n,o){1&n&&t._UZ(0,"tr",24),2&n&&t.Q6J("routerLink",t.VKq(1,Wc,o.$implicit.id))}const zc=function(){return[10,20,25]};let $c=(()=>{class n{constructor(e,a){this.route=e,this.dialog=a,this.displayedColumns=["clientDetails","savingsAccount","products","balance","Actions"],this.route.data.subscribe(i=>{this.gsimOverviewData=i.gsimData[0].childGSIMAccounts,this.savingAccountData=i.savingAccountData,this.groupsData=i.groupsData})}ngOnInit(){this.setLoanClientChargeOverview()}setLoanClientChargeOverview(){this.dataSource=new p.by(this.gsimOverviewData)}routeEdit(e){e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(f.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-gsim-account"]],viewQuery:function(e,a){if(1&e&&t.Gf(R.NW,7),2&e){let i;t.iGM(i=t.CRH())&&(a.paginator=i.first)}},decls:52,vars:5,consts:[[1,"tab-container","mat-typography"],[2,"margin-top","5px"],["mat-table","",3,"dataSource"],["matColumnDef","clientDetails"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","savingsAccount"],["matColumnDef","products"],["matColumnDef","balance"],["matColumnDef","Actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],[1,"fa","fa-stop",3,"ngClass","matTooltip"],["class","account-action-button","mat-raised-button","","color","primary",3,"routerLink","click",4,"ngIf"],["mat-raised-button","","color","primary",1,"account-action-button",3,"routerLink","click"],["matTooltip","Deposit",1,"fa","fa-arrow-up"],["matTooltip","Withdraw",1,"fa","fa-arrow-down"],["matTooltip","Approve",1,"fa","fa-check"],["matTooltip","Undo Approval",1,"fa","fa-undo"],["matTooltip","Activate",1,"fa","fa-check-circle"],["mat-header-row",""],["mat-row","",3,"routerLink"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n \n "),t.TgZ(4,"h2"),t._uU(5," GSIM Account Overview"),t.qZA(),t._uU(6,"\n \n "),t.TgZ(7,"table",2),t._uU(8,"\n \n "),t.ynx(9,3),t._uU(10,"\n "),t.YNc(11,qc,2,0,"th",4),t._uU(12,"\n "),t.YNc(13,yc,2,1,"td",5),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n \n "),t.ynx(16,6),t._uU(17,"\n "),t.YNc(18,Dc,2,0,"th",4),t._uU(19,"\n "),t.YNc(20,Ic,4,5,"td",5),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n \n "),t.ynx(23,7),t._uU(24,"\n "),t.YNc(25,Nc,2,0,"th",4),t._uU(26,"\n "),t.YNc(27,wc,2,1,"td",5),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n \n "),t.ynx(30,8),t._uU(31,"\n "),t.YNc(32,Oc,2,0,"th",4),t._uU(33,"\n "),t.YNc(34,Fc,2,0,"td",5),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n \n "),t.ynx(37,9),t._uU(38,"\n "),t.YNc(39,Pc,2,0,"th",4),t._uU(40,"\n "),t.YNc(41,Hc,12,5,"td",5),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n \n "),t.YNc(44,Vc,1,0,"tr",10),t._uU(45,"\n "),t.YNc(46,jc,1,3,"tr",11),t._uU(47,"\n \n "),t.qZA(),t._uU(48,"\n \n "),t._UZ(49,"mat-paginator",12),t._uU(50,"\n \n "),t.qZA(),t._uU(51,"\n "),t.qZA()),2&e&&(t.xp6(7),t.Q6J("dataSource",a.dataSource),t.xp6(37),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(3),t.Q6J("pageSizeOptions",t.DdM(4,zc)))},dependencies:[A.mk,A.O5,tt.oO,T.lW,R.NW,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,M.gM,l.rH,et.F],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .group-details-container[_ngcontent-%COMP%]{border:1px solid;padding:1%}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),n})();var E=m(69749),ut=m(89),lt=m(96545);let mt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.parent.paramMap.get("id"),i=e.paramMap.get("datatableName");return this.savingsService.getSavingsTransactionDatatable(a,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),_t=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){return this.savingsService.getSavingsTransactionDatatables()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),$=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.paramMap.get("clientId")||e.paramMap.get("groupId")||e.paramMap.get("centerId"),i=!(!e.paramMap.get("groupId")&&!e.paramMap.get("centerId"));return this.savingsService.getSavingsAccountTemplate(a,void 0,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),gt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.paramMap.get("savingAccountId");return this.savingsService.getSavingsAccountAndTemplate(a,!0)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),pt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId"),i=e.parent.paramMap.get("id");return this.savingsService.getSavingsAccountTransaction(a,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),dt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId"),i=e.paramMap.get("id");return this.savingsService.getSavingsAccountCharge(a,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var Xc=m(30567);let ft=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.paramMap.get("name"),i=e.paramMap.get("savingAccountId")||e.parent.parent.paramMap.get("savingAccountId");switch(a){case"Assign Staff":return this.savingsService.getSavingsAccountAndTemplate(i,!0);case"Add Charge":return this.savingsService.getSavingsChargeTemplateResource(i);case"Withdrawal":case"Deposit":return this.savingsService.getSavingsTransactionTemplateResource(i);case"Close":return(0,Xc.D)([this.savingsService.getSavingsTransactionTemplateResource(i),this.savingsService.getSavingsAccountData(i)]);case"Apply Annual Fees":return this.savingsService.getSavingsAccountData(i);default:return}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),At=(()=>{class n{constructor(e,a){this.reportsService=e,this.settingsService=a}resolve(e){const a=e.paramMap.get("id");return this.reportsService.getPentahoRunReportData("Savings Transaction Receipt",{"output-type":"PDF",R_transactionId:a},"default",this.settingsService.language.code,this.settingsService.dateFormat)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(rt.F),t.LFG(Z.g))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),vt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId"),i=e.paramMap.get("id");return this.savingsService.getSavingsAccountTransactionTemplate(a,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var Kc=m(10009),Ut=m(23325);let ht=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.paramMap.get("groupId"),i=e.paramMap.get("savingAccountId");return this.savingsService.getGSIMAccountData(i,a)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var tr=m(37275),nr=m(10710),er=m(22564);let ar=(()=>{class n{constructor(e,a,i,c){this.route=e,this.savingsService=a,this.settingsService=i,this.dialog=c,this.entityType="savings",this.route.data.subscribe(r=>{this.setSavingsDocumentsData(r.savingsDocuments)}),this.entityId=this.route.parent.snapshot.paramMap.get("savingAccountId")}ngOnInit(){}setSavingsDocumentsData(e){e.forEach(a=>{a.docUrl=this.settingsService.serverUrl+"/savings/"+a.parentEntityId+"/documents/"+a.id+"/attachment?tenantIdentifier="+nr.N.fineractPlatformTenantId,a.fileName&&(-1!==a.fileName.toLowerCase().indexOf(".jpg")||-1!==a.fileName.toLowerCase().indexOf(".jpeg")||-1!==a.fileName.toLowerCase().indexOf(".png"))&&(a.fileIsImage=!0),a.type&&-1!==a.type.toLowerCase().indexOf("image")&&(a.fileIsImage=!0)}),this.entityDocuments=e}downloadDocument(e){this.savingsService.downloadSavingsDocument(this.entityId,e).subscribe(a=>{const i=window.URL.createObjectURL(a);window.open(i)})}uploadDocument(e){return this.savingsService.loadSavingsDocument(this.entityId,e)}deleteDocument(e){this.savingsService.deleteSavingsDocument(this.entityId,e).subscribe(a=>{})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(U.d),t.Y36(Z.g),t.Y36(f.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-documents-tab"]],decls:3,vars:6,consts:[[3,"entityType","entityId","entityDocuments","callbackUpload","callbackDownload","callbackDelete"]],template:function(e,a){1&e&&(t.TgZ(0,"mifosx-entity-documents-tab",0),t._uU(1,"\n"),t.qZA(),t._uU(2,"\n")),2&e&&t.Q6J("entityType",a.entityType)("entityId",a.entityId)("entityDocuments",a.entityDocuments)("callbackUpload",a.uploadDocument)("callbackDownload",a.downloadDocument)("callbackDelete",a.deleteDocument)},dependencies:[er.k]}),n})();var or=m(92317),ir=m(15751);let sr=(()=>{class n{constructor(e,a,i){this.route=e,this.savingsService=a,this.authenticationService=i;const c=this.authenticationService.getCredentials();this.username=c.username,this.entityId=this.route.parent.snapshot.params.savingAccountId,this.route.data.subscribe(r=>{this.entityNotes=r.savingAccountNotes})}ngOnInit(){}addNote(e){this.savingsService.createSavingsNote(this.entityId,e).subscribe(a=>{this.entityNotes.push({id:a.resourceId,createdByUsername:this.username,createdOn:new Date,note:e.note})})}editNote(e,a,i){this.savingsService.editSavingsNote(this.entityId,e,a).subscribe(()=>{this.entityNotes[i].note=a.note})}deleteNote(e,a){this.savingsService.deleteSavingsNote(this.entityId,e).subscribe(()=>{this.entityNotes.splice(a,1)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(U.d),t.Y36(or.$))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-notes-tab"]],decls:3,vars:5,consts:[[3,"entityId","entityNotes","callbackAdd","callbackEdit","callbackDelete"]],template:function(e,a){1&e&&(t.TgZ(0,"mifosx-entity-notes-tab",0),t._uU(1,"\n"),t.qZA(),t._uU(2,"\n")),2&e&&t.Q6J("entityId",a.entityId)("entityNotes",a.entityNotes)("callbackAdd",a.addNote)("callbackEdit",a.editNote)("callbackDelete",a.deleteNote)},dependencies:[ir.P]}),n})(),cr=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId");return this.savingsService.getSavingsNotes(a)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rr=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId");return this.savingsService.getSavingsDocuments(a)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ur=function(){return{confirm:!0}};let lr=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-release-amount-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Release Amount"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6,"Are you sure you want to release this amount ?"),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(14),t.Q6J("mat-dialog-close",t.DdM(1,ur)))},dependencies:[T.lW,f.ZT,f.uh,f.xY,f.H8]}),n})();const mr=function(){return{confirm:!0}};let _r=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-undo-transaction-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Undo Transaction"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6,"Are you sure you want to undo this transaction ?"),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(14),t.Q6J("mat-dialog-close",t.DdM(1,mr)))},dependencies:[T.lW,f.ZT,f.uh,f.xY,f.H8]}),n})();var gr=m(9722);function pr(n,o){1&n&&(t.TgZ(0,"button",11),t._uU(1,"\n "),t._UZ(2,"fa-icon",12),t._uU(3,"Edit\n "),t.qZA()),2&n&&t.Q6J("routerLink","edit")}function dr(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,pr,4,1,"button",10),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngIf","Transfer"==e.transactionData.transactionType.value||"true"==e.transactionData.reversed||3==e.transactionData.transactionType.id||17==e.transactionData.transactionType.id)}}function fr(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,dr,4,1,"span",9),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","ADJUSTTRANSACTION_SAVINGSACCOUNT"))}function Ar(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.releaseAmount())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",15),t._uU(3,"Release Amount\n "),t.qZA()}}function vr(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ar,4,0,"button",13),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","RELEASEAMOUNT_SAVINGSACCOUNT"))}function Ur(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.undoTransaction())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",18),t._uU(3,"Undo\n "),t.qZA()}}function hr(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ur,4,0,"button",16),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UNDOTRANSACTION_SAVINGSACCOUNT"))}function Tr(n,o){if(1&n&&(t.TgZ(0,"mifosx-transaction-payment-detail",19),t._uU(1,"\n "),t.qZA()),2&n){const e=t.oxw();t.Q6J("paymentDetailData",e.transactionData.paymentDetailData)}}const Zr=function(){return["../../"]},xr=[{path:"",data:{title:"All Savings",breadcrumb:"Savings",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Savings Account",breadcrumb:"Create Savings Account"},component:ys,resolve:{savingsAccountTemplate:$}},{path:":savingAccountId",data:{title:"Saving Account View",routeParamBreadcrumb:"savingAccountId"},component:Pn,resolve:{savingsAccountData:E.X,savingsDatatables:lt.N},children:[{path:"",redirectTo:"transactions",pathMatch:"full"},{path:"transactions",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:oe},{path:"export",component:ic}]},{path:"charges",component:So,data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:zo,data:{title:"Savings Account SIH",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"notes",component:sr,data:{title:"Savings Account Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{savingAccountNotes:cr}},{path:"documents",component:ar,data:{title:"Savings Account Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{savingsDocuments:rr}},{path:"datatables",children:[{path:":datatableName",component:$o,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:ut.X}}]}]},{path:":savingAccountId/edit",data:{title:"Edit Savings Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Ms,resolve:{savingsAccountAndTemplate:gt}},{path:":savingAccountId/transactions/:id",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:Gs,resolve:{transactionDatatables:_t},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:(()=>{class n{constructor(e,a,i,c,r,_){this.savingsService=e,this.route=a,this.dateUtils=i,this.router=c,this.dialog=r,this.settingsService=_,this.route.data.subscribe(h=>{this.accountId=this.route.parent.snapshot.params.savingAccountId,this.transactionData=h.savingsAccountTransaction})}ngOnInit(){}allowUndo(){return!(this.transactionData.reversed&&this.transactionData.transactionType.amountHold||this.transactionData.reversed)}releaseAmount(){this.dialog.open(lr).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"releaseAmount",{},this.transactionData.id).subscribe(()=>{this.router.navigate(["../.."],{relativeTo:this.route})})})}undoTransaction(){this.dialog.open(_r).afterClosed().subscribe(a=>{if(a.confirm){const i=this.settingsService.language.code,c=this.settingsService.dateFormat,r={transactionDate:this.dateUtils.formatDate(this.transactionData.date&&new Date(this.transactionData.date),c),transactionAmount:0,dateFormat:c,locale:i};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"undo",r,this.transactionData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.d),t.Y36(l.gz),t.Y36(C.L),t.Y36(l.F0),t.Y36(f.uw),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-transaction-general-tab"]],decls:68,vars:20,consts:[["fxLayoutAlign","end","fxLayoutGap","2%",1,"container","m-b-20"],[4,"ngIf"],[1,"container"],["fxLayout","row wrap",1,"content"],["fxFlex","50%",1,"mat-body-strong"],["fxFlex","50%"],[3,"paymentDetailData",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center","fxLayoutGap","2%","fxLayout.lt-md","column"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],[4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click"],["icon","lock-open",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","undo",1,"m-r-10"],[3,"paymentDetailData"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.YNc(2,fr,4,1,"span",1),t._uU(3,"\n "),t.YNc(4,vr,4,1,"span",1),t._uU(5,"\n "),t.YNc(6,hr,4,1,"span",1),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n\n"),t.TgZ(9,"div",2),t._uU(10,"\n\n "),t.TgZ(11,"mat-card"),t._uU(12,"\n\n "),t.TgZ(13,"mat-card-content"),t._uU(14,"\n\n "),t.TgZ(15,"div",3),t._uU(16,"\n\n "),t.TgZ(17,"div",4),t._uU(18,"\n Transaction Id\n "),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"div",5),t._uU(21),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"div",4),t._uU(24,"\n Type\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"div",5),t._uU(27),t.qZA(),t._uU(28,"\n\n "),t.TgZ(29,"div",4),t._uU(30,"\n Transaction Date\n "),t.qZA(),t._uU(31,"\n\n "),t.TgZ(32,"div",5),t._uU(33),t.ALo(34,"dateFormat"),t.qZA(),t._uU(35,"\n\n "),t.TgZ(36,"div",4),t._uU(37,"\n Currency\n "),t.qZA(),t._uU(38,"\n\n "),t.TgZ(39,"div",5),t._uU(40),t.qZA(),t._uU(41,"\n\n "),t.TgZ(42,"div",4),t._uU(43,"\n Amount\n "),t.qZA(),t._uU(44,"\n\n "),t.TgZ(45,"div",5),t._uU(46),t.ALo(47,"currency"),t.qZA(),t._uU(48,"\n\n "),t.TgZ(49,"div",4),t._uU(50,"\n Note\n "),t.qZA(),t._uU(51,"\n\n "),t.TgZ(52,"div",5),t._uU(53),t.qZA(),t._uU(54,"\n\n "),t.YNc(55,Tr,2,1,"mifosx-transaction-payment-detail",6),t._uU(56,"\n\n "),t.qZA(),t._uU(57,"\n\n "),t.TgZ(58,"div",7),t._uU(59,"\n "),t.TgZ(60,"button",8),t._uU(61),t.ALo(62,"translate"),t.qZA(),t._uU(63,"\n "),t.qZA(),t._uU(64,"\n "),t.qZA(),t._uU(65,"\n\n "),t.qZA(),t._uU(66,"\n\n"),t.qZA(),t._uU(67,"\n")),2&e&&(t.xp6(2),t.Q6J("ngIf",!(!1===a.transactionData.interestedPostedAsOn&&(17===a.transactionData.transactionType.id||3===a.transactionData.transactionType.id))),t.xp6(2),t.Q6J("ngIf",!a.transactionData.reversed&&a.transactionData.transactionType.amountHold),t.xp6(2),t.Q6J("ngIf",a.allowUndo()),t.xp6(15),t.hij("\n ",a.transactionData.id,"\n "),t.xp6(6),t.hij("\n ",a.transactionData.transactionType.value,"\n "),t.xp6(6),t.hij("\n ",t.lcZ(34,13,a.transactionData.date),"\n "),t.xp6(7),t.hij("\n ",a.transactionData.currency.name,"\n "),t.xp6(6),t.AsE("\n ",t.lcZ(47,15,a.transactionData.amount)," ",a.transactionData.currency.code,"\n "),t.xp6(7),t.hij("\n ",a.transactionData.note,"\n "),t.xp6(2),t.Q6J("ngIf",a.transactionData.paymentDetailData),t.xp6(5),t.Q6J("routerLink",t.DdM(19,Zr)),t.xp6(1),t.Oqu(t.lcZ(62,17,"Back")))},dependencies:[A.O5,q.BN,u.xw,u.SQ,u.Wh,u.yH,T.lW,d.a8,d.dn,gr.B,w.A,l.rH,A.H9,S.X$,I.E],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] mifosx-transaction-payment-detail[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}"]}),n})(),resolve:{savingsAccountTransaction:pt}},{path:"datatables",children:[{path:":datatableName",component:ie,data:{title:"View Data table",routeParamBreadcrumb:"datatableName"},resolve:{transactionDatatable:mt}}]}]},{path:"edit",component:dc,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{savingsAccountTransactionTemplate:vt}},{path:"reciept",component:ec,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{savingsTransactionReciept:At}}]},{path:":savingAccountId/charges",data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:tc,resolve:{savingsAccountData:E.X,savingsAccountCharge:dt}}]},{path:":savingAccountId/actions/:name",data:{title:"Savings Account Actions",breadcrumb:"Savings Account Actions",routeParamBreadcrumb:"name"},component:Qa,resolve:{savingsAccountActionData:ft}},{path:":savingAccountId/transfer-funds",loadChildren:()=>m.e("default-src_app_account-transfers_account-transfers_module_ts").then(m.bind(m,69193)).then(n=>n.AccountTransfersModule)},{path:"gsim-account",children:[{path:"create",data:{title:"Create GSIM Application",breadcrumb:"Create GSIM Application"},component:Sc,resolve:{groupsData:tr.p,savingsAccountTemplate:$}},{path:":savingAccountId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},children:[{path:"",component:$c,resolve:{gsimData:ht,savingAccountData:E.X,groupsData:Ut.c}}]}]}]}];let br=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[E.X,lt.N,ut.X,mt,_t,$,gt,pt,dt,ft,At,vt,Kc.a,Ut.c,ht],imports:[l.Bz.forChild(xr),l.Bz]}),n})();var Sr=m(87734),qr=m(35503),yr=m(78434);let Dr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[Sr.m,qr.D,yr.o,br]}),n})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["src_app_savings_savings_module_ts"],{16987:(Ir,X,m)=>{m.r(X),m.d(X,{SavingsModule:()=>Dr});var l=m(83689),J=m(13450),t=m(94650),f=m(65412),T=m(4859);const Tt=function(){return{confirm:!0}};let Zt=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-calculate-interest-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Calculate Interest"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6,"Are you sure you want to calculate interest ?"),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(14),t.Q6J("mat-dialog-close",t.DdM(1,Tt)))},dependencies:[T.lW,f.ZT,f.uh,f.xY,f.H8]}),n})();const Ct=function(){return{confirm:!0}};let xt=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-post-interest-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Post Interest"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6,"Are you sure you want to post interest ?"),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(14),t.Q6J("mat-dialog-close",t.DdM(1,Ct)))},dependencies:[T.lW,f.ZT,f.uh,f.xY,f.H8]}),n})();const bt=function(){return{confirm:!0}};let K=(()=>{class n{constructor(e,a){this.dialogRef=e,this.data=a}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.so),t.Y36(f.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-toggle-withhold-tax-dialog"]],decls:18,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","",3,"color","mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(1),t.hij("",a.data.isEnable?"Enable":"Disable"," Withhold Tax"),t.xp6(5),t.hij("Are you sure you want to ",a.data.isEnable?"enable":"disable"," withhold tax for this account ?"),t.xp6(8),t.s9C("color",a.data.isEnable?"accent":"warn"),t.Q6J("mat-dialog-close",t.DdM(4,bt)))},dependencies:[T.lW,f.ZT,f.uh,f.xY,f.H8]}),n})();class St{constructor(o,e){this.setOptions(o),this.setButtons(o,e)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(o,e){switch(o){case"Active":this.buttonsArray=[],e.block?this.buttonsArray=[{name:"Unblock Account",icon:"lock-open",taskPermissionName:"UNBLOCK_SAVINGSACCOUNT"}]:(e.blockCredit?this.buttonsArray.push({name:"Unblock Deposit",icon:"lock-open",taskPermissionName:"UNBLOCKDEPOSIT_SAVINGSACCOUNT"}):this.buttonsArray.push({name:"Deposit",icon:"arrow-up",taskPermissionName:"DEPOSIT_SAVINGSACCOUNT"},{name:"Block Deposit",icon:"lock",taskPermissionName:"BLOCKDEPOSIT_SAVINGSACCOUNT"}),e.blockDebit?this.buttonsArray.push({name:"Unblock Withdrawal",icon:"lock-open",taskPermissionName:"UNBLOCKWITHDRAWAL_SAVINGSACCOUNT"}):this.buttonsArray.push({name:"Withdrawal",icon:"arrow-down",taskPermissionName:"WITHDRAWAL_SAVINGSACCOUNT"},{name:"Block Withdrawal",icon:"lock",taskPermissionName:"BLOCKWITHDRAWAL_SAVINGSACCOUNT"}),this.buttonsArray=this.buttonsArray.concat([{name:"Block Account",icon:"lock",taskPermissionName:"BLOCK_SAVINGSACCOUNT"},{name:"Hold Amount",icon:"lock",taskPermissionName:"HOLDAMOUNT_SAVINGSACCOUNT"},{name:"Calculate Interest",icon:"table",taskPermissionName:"CALCULATEINTEREST_SAVINGSACCOUNT"},{name:"Post Interest As On",icon:"arrow-right",taskPermissionName:"POSTINTEREST_SAVINGSACCOUNT"}]));break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"pen",taskPermissionName:"UPDATE_SAVINGSACCOUNT"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_SAVINGSACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_SAVINGSACCOUNT"},{name:"Activate",icon:"check",taskPermissionName:"ACTIVATE_SAVINGSACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"}];break;default:this.buttonsArray=[]}}setOptions(o){switch(o){case"Active":this.optionArray=[{name:"Post Interest",taskPermissionName:"POSTINTEREST_SAVINGSACCOUNT"},{name:"Add Charge",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"},{name:"Close",taskPermissionName:"CLOSE_SAVINGSACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",taskPermissionName:"REJECT_SAVINGSACCOUNT"},{name:"Withdraw By Client",taskPermissionName:"WITHDRAW_SAVINGSACCOUNT"},{name:"Add Charge",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"},{name:"Delete",taskPermissionName:"DELETE_SAVINGSACCOUNT"}];break;default:this.optionArray=[]}}addOption(o){this.optionArray.push(o)}}var qt=m(89517),U=m(59349),A=m(36895),q=m(92216),u=m(1576),tt=m(55829),d=m(73546),yt=m(97392),Dt=m(96338),G=m(28255),Q=m(3848),M=m(10266),nt=m(5510),It=m(15705),w=m(30998),S=m(31195),et=m(87197),I=m(35769),B=m(39122);function Nt(n,o){if(1&n&&(t._UZ(0,"i",27),t.ALo(1,"statusLookup")),2&n){const e=t.oxw();t.Q6J("ngClass",t.lcZ(1,2,e.savingsAccountData.status.code))("matTooltip",e.savingsAccountData.status.value)}}function wt(n,o){if(1&n&&(t._UZ(0,"i",27),t.ALo(1,"statusLookup")),2&n){const e=t.oxw();t.Q6J("ngClass",t.lcZ(1,2,e.savingsAccountData.subStatus.value))("matTooltip",e.savingsAccountData.subStatus.value)}}function Ot(n,o){if(1&n&&(t.TgZ(0,"span",9),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("(",e.savingsAccountData.clientAccountNo,")")}}function Ft(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",9),t._uU(4),t.ALo(5,"number"),t.qZA(),t._UZ(6,"br"),t._uU(7),t.ALo(8,"translate"),t.TgZ(9,"span",9),t._uU(10),t.ALo(11,"number"),t.qZA(),t._uU(12,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.AsE("\n ",t.lcZ(2,6,"labels.inputs.Current Balances")," :\n ",e.savingsAccountData.currency.displaySymbol,""),t.xp6(3),t.Oqu(t.lcZ(5,8,e.savingsAccountData.summary.accountBalance)),t.xp6(3),t.AsE("\n ",t.lcZ(8,10,"labels.inputs.Available Balance")," :\n ",e.savingsAccountData.currency.displaySymbol,""),t.xp6(3),t.Oqu(t.lcZ(11,12,e.savingsAccountData.summary.availableBalance))}}function Pt(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,c=t.oxw();return t.KtG(c.doAction(i.name))}),t._uU(1,"\n "),t.TgZ(2,"mat-icon",30),t._uU(3,"\n "),t._UZ(4,"fa-icon",31),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"span"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.xp6(4),t.s9C("icon",e.icon),t.xp6(4),t.hij(" ",t.lcZ(9,2,"labels.menus."+e.name)," ")}}function Lt(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Pt,11,4,"button",28),t._uU(3,"\n "),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission",e.taskPermissionName)}}function kt(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,c=t.oxw(2);return t.KtG(c.doAction(i.name))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.menus."+e.name))}}function Yt(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,kt,3,3,"button",28),t._uU(3,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission",e.taskPermissionName)}}function Mt(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"button",32),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-menu",null,33),t._uU(8,"\n "),t.YNc(9,Yt,4,1,"span",18),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n "),t.BQk()),2&n){const e=t.MAs(7),a=t.oxw();t.xp6(2),t.Q6J("matMenuTriggerFor",e),t.xp6(1),t.Oqu(t.lcZ(4,3,"labels.menus.More")),t.xp6(6),t.Q6J("ngForOf",a.buttonConfig.options)}}function Jt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Total Withdrawls")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalWithdrawals,e.currencyCode,"symbol-narrow","1.2-2"))}}function Qt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Withdrawals Fees")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalWithdrawalFees,e.currencyCode,"symbol-narrow","1.2-2"))}}function Rt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Annual Fees")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalAnnualFees,e.currencyCode,"symbol-narrow","1.2-2"))}}function Et(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Earned")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalInterestEarned,e.currencyCode,"symbol-narrow","1.2-2"))}}function Gt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Posted")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalInterestPosted,e.currencyCode,"symbol-narrow","1.2-2"))}}function Bt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Earned Not Posted")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.interestNotPosted,e.currencyCode,"symbol-narrow","1.2-2"))}}function Ht(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest On Overdraft")),t.xp6(4),t.hij("\n ",t.gM2(8,4,e.savingsAccountData.summary.totalOverdraftInterestDerived,e.currencyCode,"symbol-narrow","1.2-2"),"")}}function Vt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Overdraft Interest Not Posted")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.interestNotPosted,e.currencyCode,"symbol-narrow","1.2-2"))}}function Wt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Nominal Interest Rate")),t.xp6(4),t.hij("",t.lcZ(8,4,e.savingsAccountData.nominalAnnualInterestRate)," %")}}function jt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Withdrawal Fee")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.withdrawalFee.amount,e.currencyCode,"symbol-narrow","1.2-2"))}}function zt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Last Active Transaction Date")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.lastActiveTransactionDate))}}function $t(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Substatus")),t.xp6(4),t.Oqu(e.savingsAccountData.subStatus.value)}}function Xt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Days to Inactive")),t.xp6(4),t.Oqu(e.savingsAccountData.daysToInactive)}}function Kt(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Days to Dormancy")),t.xp6(4),t.Oqu(e.savingsAccountData.daysToDormancy)}}function tn(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Days to Escheat")),t.xp6(4),t.Oqu(e.savingsAccountData.daysToEscheat)}}function nn(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Annual Fee")),t.xp6(4),t.hij("",t.gM2(8,4,e.savingsAccountData.annualFee.amount,e.currencyCode,"symbol-narrow","1.2-2"),"\n ")}}function en(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Over Draft Limit")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.overdraftLimit,e.currencyCode,"symbol-narrow","1.2-2"))}}function an(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Min Overdraft Required for Interest Calculation")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.minOverdraftForInterestCalculation,e.currencyCode,"symbol-narrow","1.2-2"))}}function on(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Min Balance Required for Interest Calculation")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.minBalanceForInterestCalculation))}}function sn(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Minimum Required Balance")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.minRequiredBalance))}}function cn(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Enforce Minimum Required Balance")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.enforceMinRequiredBalance))}}function rn(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Recalculation Date")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.summary.lastInterestCalculationDate))}}function un(n,o){if(1&n&&(t.TgZ(0,"a"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(t.gM2(2,1,e.savingsAccountData.onHoldFunds,e.currencyCode,"symbol-narrow","1.2-2"))}}function ln(n,o){1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t.YNc(7,un,3,6,"a",36),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.On Hold Funds")),t.xp6(4),t.Q6J("mifosxHasPermission","READ_SAVINGSACCOUNT"))}function mn(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Withhold Tax Group")),t.xp6(4),t.Oqu(e.savingsAccountData.taxGroup.name)}}function _n(n,o){if(1&n&&(t.TgZ(0,"div",34),t._uU(1,"\n "),t.TgZ(2,"h4",35),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.YNc(10,Jt,10,9,"tr",16),t._uU(11,"\n "),t.YNc(12,Qt,10,9,"tr",16),t._uU(13,"\n "),t.YNc(14,Rt,10,9,"tr",16),t._uU(15,"\n "),t.YNc(16,Et,10,9,"tr",16),t._uU(17,"\n "),t.YNc(18,Gt,10,9,"tr",16),t._uU(19,"\n "),t.YNc(20,Bt,10,9,"tr",16),t._uU(21,"\n "),t.YNc(22,Ht,10,9,"tr",16),t._uU(23,"\n "),t.YNc(24,Vt,10,9,"tr",16),t._uU(25,"\n "),t.YNc(26,Wt,10,6,"tr",16),t._uU(27,"\n "),t.TgZ(28,"tr"),t._uU(29,"\n "),t.TgZ(30,"td"),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n "),t.TgZ(34,"td"),t._uU(35),t.qZA(),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"tr"),t._uU(39,"\n "),t.TgZ(40,"td"),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43,"\n "),t.TgZ(44,"td"),t._uU(45),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"tr"),t._uU(49,"\n "),t.TgZ(50,"td"),t._uU(51),t.ALo(52,"translate"),t.qZA(),t._uU(53,"\n "),t.TgZ(54,"td"),t._uU(55),t.qZA(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n "),t.TgZ(58,"tr"),t._uU(59,"\n "),t.TgZ(60,"td"),t._uU(61),t.ALo(62,"translate"),t.qZA(),t._uU(63,"\n "),t.TgZ(64,"td"),t._uU(65),t.qZA(),t._uU(66,"\n "),t.qZA(),t._uU(67,"\n "),t.YNc(68,jt,10,9,"tr",16),t._uU(69,"\n "),t.YNc(70,zt,10,6,"tr",16),t._uU(71,"\n "),t.YNc(72,$t,9,4,"tr",16),t._uU(73,"\n "),t.YNc(74,Xt,9,4,"tr",16),t._uU(75,"\n "),t.YNc(76,Kt,9,4,"tr",16),t._uU(77,"\n "),t.YNc(78,tn,9,4,"tr",16),t._uU(79,"\n "),t.YNc(80,nn,10,9,"tr",16),t._uU(81,"\n "),t.YNc(82,en,10,9,"tr",16),t._uU(83,"\n "),t.YNc(84,an,10,9,"tr",16),t._uU(85,"\n "),t.YNc(86,on,10,6,"tr",16),t._uU(87,"\n "),t.YNc(88,sn,10,6,"tr",16),t._uU(89,"\n "),t.YNc(90,cn,10,6,"tr",16),t._uU(91,"\n "),t.YNc(92,rn,10,6,"tr",16),t._uU(93,"\n "),t.YNc(94,ln,9,4,"tr",16),t._uU(95,"\n "),t.YNc(96,mn,9,4,"tr",16),t._uU(97,"\n "),t.qZA(),t._uU(98,"\n "),t.qZA(),t._uU(99,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,33,"labels.heading.Account Summary")),t.xp6(7),t.Q6J("ngIf",e.savingsAccountData.summary.totalWithdrawals),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalWithdrawalFees),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalAnnualFees),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalInterestEarned>=0),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalInterestPosted),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.interestNotPosted>=0),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalOverdraftInterestDerived),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.interestNotPosted<0),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.nominalAnnualInterestRate),t.xp6(5),t.Oqu(t.lcZ(32,35,"labels.inputs.Interest Compounding Period")),t.xp6(4),t.Oqu(e.savingsAccountData.interestCompoundingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(42,37,"labels.inputs.Interest Posting Period")),t.xp6(4),t.Oqu(e.savingsAccountData.interestPostingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(52,39,"labels.inputs.Interest Calculated Using")),t.xp6(4),t.Oqu(e.savingsAccountData.interestCalculationType.value),t.xp6(6),t.hij("# ",t.lcZ(62,41,"labels.inputs.Days in Year"),""),t.xp6(4),t.Oqu(e.savingsAccountData.interestCalculationDaysInYearType.value),t.xp6(3),t.Q6J("ngIf",e.savingsAccountData.withdrawalFee),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.lastActiveTransactionDate),t.xp6(2),t.Q6J("ngIf",0!==e.savingsAccountData.subStatus.id),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.daysToInactive),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.daysToDormancy),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.daysToEscheat),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.annualFee),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.allowOverdraft),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.allowOverdraft),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.minBalanceForInterestCalculation),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.minRequiredBalance),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.enforceMinRequiredBalance),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.lastInterestCalculationDate),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.onHoldFunds),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.withHoldTax)}}function gn(n,o){if(1&n&&(t.TgZ(0,"td"),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",37),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(2),t.s9C("externalId",e.savingsAccountData.externalId)}}function pn(n,o){1&n&&(t.TgZ(0,"td"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.inputs.Not Provided")))}function dn(n,o){if(1&n&&(t._uU(0,"\n "),t.TgZ(1,"div",34),t._uU(2,"\n "),t.TgZ(3,"h4",35),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"table"),t._uU(8,"\n "),t.TgZ(9,"tbody"),t._uU(10,"\n "),t.TgZ(11,"tr"),t._uU(12,"\n "),t.TgZ(13,"td"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"td"),t._uU(18),t.ALo(19,"dateFormat"),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.TgZ(22,"tr"),t._uU(23,"\n "),t.TgZ(24,"td"),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t.TgZ(28,"td"),t._uU(29),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.TgZ(32,"tr"),t._uU(33,"\n "),t.TgZ(34,"td"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37,"\n "),t.YNc(38,gn,4,1,"td",16),t._uU(39,"\n "),t.YNc(40,pn,3,3,"td",16),t._uU(41,"\n "),t.qZA(),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n "),t.qZA(),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n ")),2&n){const e=t.oxw();t.xp6(4),t.Oqu(t.lcZ(5,9,"labels.heading.Account Summary")),t.xp6(10),t.Oqu(t.lcZ(15,11,"labels.inputs.Activated On")),t.xp6(4),t.Oqu(e.savingsAccountData.timeline.activatedOnDate?t.lcZ(19,13,e.savingsAccountData.timeline.activatedOnDate):"Not Activated"),t.xp6(7),t.Oqu(t.lcZ(26,15,"labels.inputs.Currency")),t.xp6(4),t.AsE("",e.savingsAccountData.currency.name," [",e.savingsAccountData.currency.code,"]"),t.xp6(6),t.Oqu(t.lcZ(36,17,"labels.inputs.External Id")),t.xp6(3),t.Q6J("ngIf",e.savingsAccountData.externalId),t.xp6(2),t.Q6J("ngIf",!e.savingsAccountData.externalId)}}function fn(n,o){if(1&n&&(t.TgZ(0,"td"),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",37),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(2),t.s9C("externalId",e.savingsAccountData.externalId)}}function An(n,o){1&n&&(t.TgZ(0,"td"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.inputs.Not Provided")))}function vn(n,o){if(1&n&&(t.TgZ(0,"div"),t._uU(1,"\n "),t.TgZ(2,"h4",35),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"td"),t._uU(17),t.ALo(18,"dateFormat"),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"tr"),t._uU(22,"\n "),t.TgZ(23,"td"),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n "),t.TgZ(27,"td"),t._uU(28),t.qZA(),t._uU(29,"\n "),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"tr"),t._uU(32,"\n "),t.TgZ(33,"td"),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._uU(36,"\n "),t.YNc(37,fn,4,1,"td",16),t._uU(38,"\n "),t.YNc(39,An,3,3,"td",16),t._uU(40," "),t.qZA(),t._uU(41,"\n "),t.TgZ(42,"tr"),t._uU(43,"\n "),t.TgZ(44,"td"),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"td"),t._uU(49),t.qZA(),t._uU(50,"\n "),t.qZA(),t._uU(51,"\n "),t.TgZ(52,"tr"),t._uU(53,"\n "),t.TgZ(54,"td"),t._uU(55),t.ALo(56,"translate"),t.qZA(),t._uU(57,"\n "),t.TgZ(58,"td"),t._uU(59),t.ALo(60,"formatNumber"),t.qZA(),t._uU(61,"\n "),t.qZA(),t._uU(62,"\n "),t.qZA(),t._uU(63,"\n "),t.qZA(),t._uU(64,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,13,"labels.heading.Savings Details")),t.xp6(10),t.Oqu(t.lcZ(14,15,"labels.inputs.Activated On")),t.xp6(4),t.Oqu(e.savingsAccountData.timeline.activatedOnDate?t.lcZ(18,17,e.savingsAccountData.timeline.activatedOnDate):"Not Activated"),t.xp6(7),t.Oqu(t.lcZ(25,19,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(e.savingsAccountData.fieldOfficerName?e.savingsAccountData.fieldOfficerName:"Unassigned"),t.xp6(6),t.Oqu(t.lcZ(35,21,"labels.inputs.External Id")),t.xp6(3),t.Q6J("ngIf",e.savingsAccountData.externalId),t.xp6(2),t.Q6J("ngIf",!e.savingsAccountData.externalId),t.xp6(6),t.Oqu(t.lcZ(46,23,"labels.inputs.Currency")),t.xp6(4),t.AsE("",e.savingsAccountData.currency.name," [",e.savingsAccountData.currency.code,"]"),t.xp6(6),t.Oqu(t.lcZ(56,25,"labels.inputs.Nominal Interest Rate")),t.xp6(4),t.hij("",t.lcZ(60,27,e.savingsAccountData.nominalAnnualInterestRate)," %")}}function Un(n,o){if(1&n&&(t._uU(0,"\n "),t.TgZ(1,"div"),t._uU(2,"\n "),t.TgZ(3,"h4",35),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"table"),t._uU(8,"\n "),t.TgZ(9,"tbody"),t._uU(10,"\n "),t.TgZ(11,"tr"),t._uU(12,"\n "),t.TgZ(13,"td"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"td"),t._uU(18),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"tr"),t._uU(22,"\n "),t.TgZ(23,"td"),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n "),t.TgZ(27,"td"),t._uU(28),t.qZA(),t._uU(29,"\n "),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA(),t._uU(33,"\n ")),2&n){const e=t.oxw();t.xp6(4),t.Oqu(t.lcZ(5,5,"labels.heading.Savings Details")),t.xp6(10),t.Oqu(t.lcZ(15,7,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(e.savingsAccountData.fieldOfficerName?e.savingsAccountData.fieldOfficerName:"Unassigned"),t.xp6(6),t.Oqu(t.lcZ(25,9,"labels.inputs.Balance")),t.xp6(4),t.Oqu(e.savingsAccountData.summary.accountBalance)}}function hn(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"number"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.inputs.Total Deposits")),t.xp6(4),t.AsE("",e.savingsAccountData.currency.displaySymbol,"\xa0",t.lcZ(8,5,e.savingsAccountData.summary.totalDeposits),"")}}function Tn(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.inputs.Total Interest Earned")),t.xp6(4),t.AsE("",e.savingsAccountData.currency.displaySymbol,"\xa0",t.lcZ(8,5,e.savingsAccountData.summary.totalInterestEarned),"")}}function Zn(n,o){if(1&n&&(t.TgZ(0,"div"),t._uU(1,"\n "),t.TgZ(2,"h4",35),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.YNc(10,hn,10,7,"tr",16),t._uU(11,"\n "),t.YNc(12,Tn,10,7,"tr",16),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n "),t.qZA(),t._uU(15,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.heading.Performance History")),t.xp6(7),t.Q6J("ngIf",e.savingsAccountData.summary.totalDeposits),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalInterestEarned>=0)}}const Cn=function(){return["./notes"]};function xn(n,o){if(1&n&&(t.TgZ(0,"a",39,44),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&n){const e=t.MAs(1);t.Q6J("routerLink",t.DdM(5,Cn))("active",e.isActive),t.xp6(2),t.hij("\n ",t.lcZ(3,3,"labels.inputs.Notes"),"\n ")}}const bn=function(){return["./standing-instructions"]};function Sn(n,o){if(1&n&&(t.TgZ(0,"a",39,46),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&n){const e=t.MAs(1);t.Q6J("routerLink",t.DdM(5,bn))("active",e.isActive),t.xp6(2),t.hij("\n ",t.lcZ(3,3,"labels.inputs.Standing Instructions"),"\n ")}}function qn(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Sn,4,6,"a",45),t._uU(3,"\n "),t.BQk()),2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.clientId)}}const yn=function(n){return["./datatables",n]};function Dn(n,o){if(1&n&&(t.TgZ(0,"a",39,47),t._uU(2),t.qZA()),2&n){const e=t.MAs(1),a=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(3,yn,a.registeredTableName))("active",e.isActive),t.xp6(2),t.hij("\n ",a.registeredTableName,"\n ")}}function In(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Dn,3,5,"a",43),t._uU(3,"\n "),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission","READ_"+e.registeredTableName)}}const Nn=function(){return["./transactions"]},wn=function(){return["./charges"]},On=function(){return["./documents"]};function Fn(n,o){if(1&n&&(t.TgZ(0,"nav",38),t._uU(1,"\n "),t.TgZ(2,"a",39,40),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"a",39,41),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._uU(11,"\n "),t.TgZ(12,"a",39,42),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.YNc(17,xn,4,6,"a",43),t._uU(18,"\n "),t.YNc(19,qn,4,1,"ng-container",36),t._uU(20,"\n "),t.YNc(21,In,4,1,"ng-container",18),t._uU(22,"\n "),t.qZA()),2&n){const e=t.MAs(3),a=t.MAs(8),i=t.MAs(13),c=t.oxw();t.xp6(2),t.Q6J("routerLink",t.DdM(18,Nn))("active",e.isActive),t.xp6(2),t.hij("\n ",t.lcZ(5,12,"labels.inputs.Transactions"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(19,wn))("active",a.isActive),t.xp6(2),t.hij("\n ",t.lcZ(10,14,"labels.inputs.Charges"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(20,On))("active",i.isActive),t.xp6(2),t.hij("\n ",t.lcZ(15,16,"labels.inputs.Savings Documents"),"\n "),t.xp6(3),t.Q6J("mifosxHasPermission","READ_SAVINGSNOTE"),t.xp6(2),t.Q6J("mifosxHasPermission","READ_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("ngForOf",c.savingsDatatables)}}let Pn=(()=>{class n{constructor(e,a,i,c){this.route=e,this.router=a,this.savingsService=i,this.dialog=c,this.isActive=!1,this.route.data.subscribe(r=>{this.savingsAccountData=r.savingsAccountData,this.currencyCode=this.savingsAccountData.currency.code,this.savingsDatatables=r.savingsDatatables}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}ngOnInit(){this.setConditionalButtons()}setConditionalButtons(){const e=this.savingsAccountData.status.value;this.isActive="Active"===e,this.buttonConfig=new St(e,this.savingsAccountData.subStatus),this.savingsAccountData.clientId&&this.buttonConfig.addOption({name:"Transfer Funds",taskPermissionName:"CREATE_ACCOUNTTRANSFER"}),this.buttonConfig.addOption(this.savingsAccountData.fieldOfficerId?{name:"Unassign Staff",taskPermissionName:"REMOVESAVINGSOFFICER_SAVINGSACCOUNT"}:{name:"Assign Staff",taskPermissionName:"UPDATESAVINGSOFFICER_SAVINGSACCOUNT"}),this.savingsAccountData.charges&&this.savingsAccountData.charges.forEach(c=>{"Annual fee - INR"===c.name&&this.buttonConfig.addOption({name:"Apply Annual Fees",taskPermissionName:"APPLYANNUALFEE_SAVINGSACCOUNT"})}),this.savingsAccountData.taxGroup&&this.buttonConfig.addOption(this.savingsAccountData.withHoldTax?{name:"Disable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"}:{name:"Enable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"})}reload(){const e=this.router.url,a=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(a,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}doAction(e){switch(e){case"Approve":case"Reject":case"Deposit":case"Activate":case"Close":case"Undo Approval":case"Post Interest As On":case"Assign Staff":case"Add Charge":case"Hold Amount":case"Block Account":case"Block Deposit":case"Block Withdrawal":case"Unassign Staff":case"Withdraw By Client":case"Apply Annual Fees":this.router.navigate([`actions/${e}`],{relativeTo:this.route});break;case"Withdrawal":this.router.navigate(["actions/Withdrawal"],{relativeTo:this.route});break;case"Modify Application":this.router.navigate(["edit"],{relativeTo:this.route});break;case"Delete":this.deleteSavingsAccount();break;case"Calculate Interest":this.calculateInterest();break;case"Post Interest":this.postInterest();break;case"Enable Withhold Tax":this.enableWithHoldTax();break;case"Disable Withhold Tax":this.disableWithHoldTax();break;case"Transfer Funds":this.router.navigate(["transfer-funds/make-account-transfer"],{relativeTo:this.route,queryParams:{savingsId:this.savingsAccountData.id,accountType:"fromsavings"}});break;case"Unblock Account":case"Unblock Deposit":case"Unblock Withdrawal":this.unblockSavingsAccount(e)}}deleteSavingsAccount(){this.dialog.open(J.F,{data:{deleteContext:`savings account with id: ${this.savingsAccountData.id}`}}).afterClosed().subscribe(a=>{a.delete&&this.savingsService.deleteSavingsAccount(this.savingsAccountData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}calculateInterest(){this.dialog.open(Zt).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,"calculateInterest",{}).subscribe(()=>{this.reload()})})}postInterest(){this.dialog.open(xt).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,"postInterest",{}).subscribe(()=>{this.reload()})})}enableWithHoldTax(){this.dialog.open(K,{data:{isEnable:!0}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.savingsAccountData.id,"updateWithHoldTax",{withHoldTax:!0}).subscribe(()=>{this.reload()})})}disableWithHoldTax(){this.dialog.open(K,{data:{isEnable:!1}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.savingsAccountData.id,"updateWithHoldTax",{withHoldTax:!1}).subscribe(()=>{this.reload()})})}unblockSavingsAccount(e){const a=this.dialog.open(qt.z,{data:{heading:"Savings Account",dialogContext:"Are you sure you want "+e+" this Savings Account"}});let i="unblock";"Unblock Deposit"===e&&(i="unblockCredit"),"Unblock Withdrawal"===e&&(i="unblockDebit"),a.afterClosed().subscribe(c=>{c.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,i,{}).subscribe(()=>{this.reload()})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(U.d),t.Y36(f.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-view"]],decls:92,vars:27,consts:[[1,"savings-account-card"],["fxLayout","column",1,"header"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","",1,"profile-image",3,"matTooltip","src"],[1,"mat-typography","account-card-title"],["fxLayout","row","fxLayout.lt-md","column"],["fxFlex","95%"],["class","fa fa-stop",3,"ngClass","matTooltip",4,"ngIf"],[1,"m-l-10"],[3,"accountNo"],["fxFlex","5%"],["mat-icon-button","","aria-label","Loan account actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["class","m-l-10",4,"ngIf"],[4,"ngIf"],["accountMenu","matMenu"],[4,"ngFor","ngForOf"],[1,"content"],["fxLayout","row","fxLayoutGap","2%",1,"savings-account-tables"],["fxFlex","49%",4,"ngIf","ngIfElse"],["alternateSummary",""],["fxFlex","49%","fxLayout","column","fxLayoutGap","4%"],[4,"ngIf","ngIfElse"],["alternateDetails",""],["mat-tab-nav-bar","","class","navigation-tabs",4,"ngIf"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click"],["matListIcon",""],["size","sm",3,"icon"],["mat-menu-item","",3,"matMenuTriggerFor"],["More","matMenu"],["fxFlex","49%"],[1,"table-headers"],[4,"mifosxHasPermission"],[3,"externalId"],["mat-tab-nav-bar","",1,"navigation-tabs"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["transactions","routerLinkActive"],["charges","routerLinkActive"],["savingsDocuments","routerLinkActive"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],["notes","routerLinkActive"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"ngIf"],["standingInstructions","routerLinkActive"],["datatable","routerLinkActive"]],template:function(e,a){if(1&e&&(t.TgZ(0,"mat-card",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card-header",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-card-title-group",2),t._uU(5,"\n\n "),t.TgZ(6,"div",3),t._uU(7,"\n "),t.TgZ(8,"div"),t._uU(9,"\n "),t._UZ(10,"img",4),t.ALo(11,"translate"),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.TgZ(15,"div",5),t._uU(16,"\n "),t.TgZ(17,"mat-card-title",6),t._uU(18,"\n "),t.TgZ(19,"h3",7),t._uU(20,"\n "),t.YNc(21,Nt,2,4,"i",8),t._uU(22,"\n "),t.YNc(23,wt,2,4,"i",8),t._uU(24),t.ALo(25,"translate"),t.TgZ(26,"span",9),t._uU(27,"\n "),t._UZ(28,"mifosx-account-number",10),t.qZA(),t._uU(29,"\n "),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"div",11),t._uU(32,"\n "),t.TgZ(33,"button",12),t._uU(34,"\n "),t.TgZ(35,"mat-icon",13),t._uU(36,"\n "),t._UZ(37,"fa-icon",14),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n "),t.qZA(),t._uU(41,"\n "),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"mat-card-subtitle"),t._uU(44,"\n "),t.TgZ(45,"p"),t._uU(46),t.ALo(47,"translate"),t.YNc(48,Ot,2,1,"span",15),t._UZ(49,"br"),t._uU(50,"\n "),t.YNc(51,Ft,13,14,"span",16),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n "),t.qZA(),t._uU(54,"\n "),t.qZA(),t._uU(55,"\n\n "),t.TgZ(56,"mat-menu",null,17),t._uU(58,"\n "),t.YNc(59,Lt,4,1,"ng-container",18),t._uU(60,"\n\n "),t.YNc(61,Mt,12,5,"ng-container",16),t._uU(62,"\n "),t.qZA(),t._uU(63,"\n\n "),t.qZA(),t._uU(64,"\n\n "),t.qZA(),t._uU(65,"\n\n "),t.TgZ(66,"mat-card-content",19),t._uU(67,"\n\n "),t.TgZ(68,"div",20),t._uU(69,"\n\n "),t.YNc(70,_n,100,43,"div",21),t._uU(71,"\n\n "),t.YNc(72,dn,46,19,"ng-template",null,22,t.W1O),t._uU(74,"\n\n "),t.TgZ(75,"div",23),t._uU(76,"\n\n "),t.YNc(77,vn,65,29,"div",24),t._uU(78,"\n\n "),t.YNc(79,Un,34,11,"ng-template",null,25,t.W1O),t._uU(81,"\n\n "),t.YNc(82,Zn,16,5,"div",16),t._uU(83,"\n\n "),t.qZA(),t._uU(84,"\n\n "),t.qZA(),t._uU(85,"\n\n "),t.YNc(86,Fn,23,21,"nav",26),t._uU(87,"\n\n "),t._UZ(88,"router-outlet"),t._uU(89,"\n\n "),t.qZA(),t._uU(90,"\n\n"),t.qZA(),t._uU(91,"\n")),2&e){const i=t.MAs(57),c=t.MAs(73),r=t.MAs(80);t.xp6(10),t.s9C("matTooltip",t.lcZ(11,21,"tooltips.Savings Account")),t.Q6J("src","assets/images/savings_account_placeholder.png",t.LSH),t.xp6(11),t.Q6J("ngIf",!a.savingsAccountData.subStatus.block),t.xp6(2),t.Q6J("ngIf",a.savingsAccountData.subStatus.block),t.xp6(1),t.AsE("\n ",t.lcZ(25,23,"labels.inputs.Savings Product")," : ",a.savingsAccountData.savingsProductName,""),t.xp6(4),t.s9C("accountNo",a.savingsAccountData.accountNo),t.xp6(5),t.Q6J("matMenuTriggerFor",i),t.xp6(13),t.lnq("\n ",a.entityType," ",t.lcZ(47,25,"labels.inputs.name"),": ",a.savingsAccountData.clientName||a.savingsAccountData.groupName,"\n "),t.xp6(2),t.Q6J("ngIf",a.savingsAccountData.clientAccountNo),t.xp6(3),t.Q6J("ngIf",!a.savingsAccountData.status.rejected&&!a.savingsAccountData.status.submittedAndPendingApproval),t.xp6(8),t.Q6J("ngForOf",a.buttonConfig.singleButtons),t.xp6(2),t.Q6J("ngIf",a.buttonConfig.options&&!a.savingsAccountData.subStatus.block),t.xp6(9),t.Q6J("ngIf",a.isActive)("ngIfElse",c),t.xp6(7),t.Q6J("ngIf",!a.savingsAccountData.status.rejected&&!a.savingsAccountData.status.submittedAndPendingApproval)("ngIfElse",r),t.xp6(5),t.Q6J("ngIf",!a.savingsAccountData.status.rejected&&!a.savingsAccountData.status.submittedAndPendingApproval),t.xp6(4),t.Q6J("ngIf",a.isActive)}},dependencies:[A.mk,A.sg,A.O5,q.BN,u.xw,u.SQ,u.yH,tt.oO,T.lW,d.a8,d.dk,d.C1,d.dn,d.n5,d.$j,d.nc,yt.Hw,Dt.Nh,G.VK,G.OP,G.p6,Q.BU,Q.Nj,M.gM,nt.e,It.t,w.A,l.lC,l.yS,l.Od,A.JJ,A.H9,S.X$,et.F,I.E,B.w],styles:[".savings-account-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0}.savings-account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding:1%}.savings-account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .account-card-title[_ngcontent-%COMP%]{color:#fff;width:90%}.savings-account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .account-card-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff}.savings-account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%]{margin:1%}.savings-account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%] .profile-image[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;border-radius:20px}.savings-account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .account-actions[_ngcontent-%COMP%]{align-self:flex-end;margin:0 1%}.savings-account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .account-actions[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-bottom:2px;margin-right:4px}.savings-account-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{background-color:#f2f2f2;overflow:auto}.savings-account-card[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .savings-account-tables[_ngcontent-%COMP%]{padding:1%;margin:1%}.savings-account-card[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .savings-account-tables[_ngcontent-%COMP%] .table-headers[_ngcontent-%COMP%]{margin:0;padding:6px}.savings-account-card[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .savings-account-tables[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:3px}.savings-account-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .savings-account-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),n})();var R=m(98739),H=m(96308),p=m(30671);const Ln=function(){return["/accounting","journal-entries"]},kn=function(){return["export"]};function Yn(n,o){1&n&&(t.TgZ(0,"div",26),t._uU(1,"\n "),t.TgZ(2,"button",27),t._uU(3,"View Journal Entries"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"button",27),t._uU(6,"Export"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("routerLink",t.DdM(2,Ln)),t.xp6(3),t.Q6J("routerLink",t.DdM(3,kn)))}function Mn(n,o){1&n&&(t.TgZ(0,"th",28),t._uU(1," Id "),t.qZA())}function Jn(n,o){if(1&n&&(t.TgZ(0,"td",29),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Qn(n,o){1&n&&(t.TgZ(0,"th",30),t._uU(1," Transaction Date "),t.qZA())}function Rn(n,o){if(1&n&&(t.TgZ(0,"td",29),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.date)," ")}}function En(n,o){1&n&&(t.TgZ(0,"th",31),t._uU(1," Transaction Type "),t.qZA())}function Gn(n,o){if(1&n&&(t.TgZ(0,"td",29),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.transactionType.value," ")}}function Bn(n,o){1&n&&(t.TgZ(0,"th",32),t._uU(1," Debit "),t.qZA())}function Hn(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.ALo(2,"formatNumber"),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.xp6(1),t.hij(" ",a.isDebit(e.transactionType)?t.lcZ(2,1,e.amount):"N/A"," ")}}function Vn(n,o){1&n&&(t.TgZ(0,"th",32),t._uU(1," Credit "),t.qZA())}function Wn(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.ALo(2,"formatNumber"),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.xp6(1),t.hij(" ",a.isDebit(e.transactionType)?"N/A":t.lcZ(2,1,e.amount)," ")}}function jn(n,o){1&n&&(t.TgZ(0,"th",32),t._uU(1," Balance "),t.qZA())}function zn(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.ALo(2,"formatNumber"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.runningBalance)," ")}}function $n(n,o){1&n&&(t.TgZ(0,"th",31),t._uU(1," Actions "),t.qZA())}const Xn=function(n){return[n,"reciept"]},Kn=function(n){return["/","journal-entry","view",n]};function te(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",34),t._uU(1,"\n "),t.TgZ(2,"button",35),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw();return t.KtG(c.routeEdit(i))}),t._uU(3,"\n "),t._UZ(4,"i",36),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"button",37),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw();return t.KtG(c.routeEdit(i))}),t._uU(8,"\n "),t._UZ(9,"i",38),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n "),t.qZA()}if(2&n){const e=o.$implicit;t.xp6(2),t.Q6J("routerLink",t.VKq(2,Xn,e.id)),t.xp6(5),t.Q6J("routerLink",t.VKq(4,Kn,"S"+e.id))}}function ne(n,o){1&n&&t._UZ(0,"tr",39)}function ee(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"tr",40),t.NdJ("click",function(){const c=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.showTransactions(c))}),t.qZA()}}const ae=function(){return[50,100,200]};let oe=(()=>{class n{constructor(e,a){this.route=e,this.router=a,this.displayedColumns=["id","date","transactionType","debit","credit","balance","actions"],this.accountWithTransactions=!1,this.route.parent.parent.data.subscribe(i=>{this.transactionsData=i.savingsAccountData.transactions?.filter(c=>!c.reversed),this.status=i.savingsAccountData.status.value})}ngOnInit(){this.dataSource=new p.by(this.transactionsData),this.accountWithTransactions=this.transactionsData&&this.transactionsData.length>0,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}isDebit(e){return!0===e.withdrawal||!0===e.feeDeduction||!0===e.overdraftInterest||!0===e.withholdTax}checkStatus(){return"Active"===this.status||"Closed"===this.status||"Transfer in progress"===this.status||"Transfer on hold"===this.status||"Premature Closed"===this.status||"Matured"===this.status}showTransactions(e){this.router.navigate(e.transfer?[`../transfer-funds/account-transfers/${e.transfer.id}`]:[e.id,"general"],{relativeTo:this.route})}routeEdit(e){e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-transactions-tab"]],viewQuery:function(e,a){if(1&e&&(t.Gf(R.NW,7),t.Gf(H.YE,7)),2&e){let i;t.iGM(i=t.CRH())&&(a.paginator=i.first),t.iGM(i=t.CRH())&&(a.sort=i.first)}},decls:83,vars:9,consts:[[1,"tab-container","mat-typography"],[1,"mat-elevation-z1","m-b-25",3,"hidden"],["fxLayout","row","fxLayoutAlign","start"],[1,"m-b-10"],["class","action-button m-b-20","fxLayout","row","fxLayoutGap","20px",4,"ngIf"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","date"],["mat-header-cell","","class","center","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","transactionType"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["matColumnDef","debit"],["mat-header-cell","","class","r-amount",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",4,"matCellDef"],["matColumnDef","credit"],["matColumnDef","balance"],["matColumnDef","actions"],["mat-cell","","class","center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSize","pageSizeOptions"],[1,"alert",3,"hidden"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"],["fxLayout","row","fxLayoutGap","20px",1,"action-button","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","",1,"center"],["mat-header-cell","",1,"center"],["mat-header-cell","",1,"r-amount"],["mat-cell","",1,"r-amount"],["mat-cell","",1,"center"],["mat-raised-button","","color","primary",1,"account-action-button",3,"routerLink","click"],["matTooltip","View Reciept",1,"fa","fa-file"],["mat-raised-button","","color","primary","matTooltip","View Journal Entries","matTooltipPosition","left",1,"account-action-button",3,"routerLink","click"],[1,"fa","fa-arrow-circle-right"],["mat-header-row",""],["mat-row","",1,"select-row",3,"click"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"div",3),t._uU(7,"\n "),t.TgZ(8,"h3"),t._uU(9,"All Transactions"),t.qZA(),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n "),t.YNc(12,Yn,8,4,"div",4),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.TgZ(15,"table",5),t._uU(16,"\n\n "),t.ynx(17,6),t._uU(18,"\n "),t.YNc(19,Mn,2,0,"th",7),t._uU(20,"\n "),t.YNc(21,Jn,2,1,"td",8),t._uU(22,"\n "),t.BQk(),t._uU(23,"\n\n "),t.ynx(24,9),t._uU(25,"\n "),t.YNc(26,Qn,2,0,"th",10),t._uU(27,"\n "),t.YNc(28,Rn,3,3,"td",8),t._uU(29,"\n "),t.BQk(),t._uU(30,"\n\n "),t.ynx(31,11),t._uU(32,"\n "),t.YNc(33,En,2,0,"th",12),t._uU(34,"\n "),t.YNc(35,Gn,2,1,"td",8),t._uU(36,"\n "),t.BQk(),t._uU(37,"\n\n "),t.ynx(38,13),t._uU(39,"\n "),t.YNc(40,Bn,2,0,"th",14),t._uU(41,"\n "),t.YNc(42,Hn,3,3,"td",15),t._uU(43,"\n "),t.BQk(),t._uU(44,"\n\n "),t.ynx(45,16),t._uU(46,"\n "),t.YNc(47,Vn,2,0,"th",14),t._uU(48,"\n "),t.YNc(49,Wn,3,3,"td",15),t._uU(50,"\n "),t.BQk(),t._uU(51,"\n\n "),t.ynx(52,17),t._uU(53,"\n "),t.YNc(54,jn,2,0,"th",14),t._uU(55,"\n "),t.YNc(56,zn,3,3,"td",15),t._uU(57,"\n "),t.BQk(),t._uU(58,"\n\n "),t.ynx(59,18),t._uU(60,"\n "),t.YNc(61,$n,2,0,"th",12),t._uU(62,"\n "),t.YNc(63,te,12,6,"td",19),t._uU(64,"\n "),t.BQk(),t._uU(65,"\n\n "),t.YNc(66,ne,1,0,"tr",20),t._uU(67,"\n "),t.YNc(68,ee,1,0,"tr",21),t._uU(69,"\n\n "),t.qZA(),t._uU(70,"\n\n "),t._UZ(71,"mat-paginator",22),t._uU(72,"\n\n "),t.qZA(),t._uU(73,"\n\n "),t.TgZ(74,"div",23),t._uU(75,"\n "),t.TgZ(76,"div",24),t._uU(77,"\n "),t._UZ(78,"i",25),t._uU(79,"\n No transaction was found\n "),t.qZA(),t._uU(80,"\n "),t.qZA(),t._uU(81,"\n"),t.qZA(),t._uU(82,"\n")),2&e&&(t.xp6(2),t.Q6J("hidden",!a.accountWithTransactions),t.xp6(10),t.Q6J("ngIf",a.checkStatus()),t.xp6(3),t.Q6J("dataSource",a.dataSource),t.xp6(51),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(3),t.Q6J("pageSize",50)("pageSizeOptions",t.DdM(8,ae)),t.xp6(3),t.Q6J("hidden",a.accountWithTransactions))},dependencies:[A.O5,u.xw,u.SQ,u.Wh,T.lW,R.NW,H.YE,H.nU,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,M.gM,l.rH,I.E,B.w],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 10%;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),n})();var at=m(45063);let ie=(()=>{class n{constructor(e){this.route=e,this.entityId=this.route.parent.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(a=>{this.entityDatatable=a.transactionDatatable,this.multiRowDatatableFlag="id"===this.entityDatatable.columnHeaders[0].columnName})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-datatable-transaction-tab"]],decls:5,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Saving Account Transaction",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.TgZ(2,"mifosx-entity-datatable-tab",1),t._uU(3,"\n "),t.qZA(),t._uU(4,"\n"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("entityId",a.entityId)("multiRowDatatableFlag",a.multiRowDatatableFlag)("entityDatatable",a.entityDatatable))},dependencies:[at.j]}),n})();var s=m(24006),Z=m(99639),C=m(73426),y=m(3238),v=m(99602),g=m(59549),O=m(39349),b=m(284),D=m(84385),V=m(90455);function se(n,o){1&n&&(t.TgZ(0,"h2",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.heading.Withdraw Money From Saving Account")))}function ce(n,o){1&n&&(t.TgZ(0,"h2",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.heading.Deposit Money To Saving Account")))}function re(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function ue(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function le(n,o){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function me(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",25),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Account Number")))}function _e(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",26),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Cheque")))}function ge(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",27),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Routing Code")))}function pe(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",28),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Receipt Number")))}function de(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",29),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Bank")))}const fe=function(){return["../../transactions"]};let Ae=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.route=a,this.router=i,this.dateUtils=c,this.savingsService=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.addPaymentDetailsFlag=!1,this.transactionType={deposit:!1,withdrawal:!1},this.route.data.subscribe(h=>{this.paymentTypeOptions=h.savingsAccountActionData.paymentTypeOptions}),this.transactionCommand=this.route.snapshot.params.name.toLowerCase(),this.transactionType[this.transactionCommand]=!0,this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingAccountTransactionForm()}createSavingAccountTransactionForm(){this.savingAccountTransactionForm=this.formBuilder.group({transactionDate:[this.settingsService.businessDate,s.kI.required],transactionAmount:[0,s.kI.required],paymentTypeId:[""],note:[""]})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.savingAccountTransactionForm.addControl("accountNumber",new s.p4("")),this.savingAccountTransactionForm.addControl("checkNumber",new s.p4("")),this.savingAccountTransactionForm.addControl("routingCode",new s.p4("")),this.savingAccountTransactionForm.addControl("receiptNumber",new s.p4("")),this.savingAccountTransactionForm.addControl("bankNumber",new s.p4(""))):(this.savingAccountTransactionForm.removeControl("accountNumber"),this.savingAccountTransactionForm.removeControl("checkNumber"),this.savingAccountTransactionForm.removeControl("routingCode"),this.savingAccountTransactionForm.removeControl("receiptNumber"),this.savingAccountTransactionForm.removeControl("bankNumber"))}submit(){const e=this.savingAccountTransactionForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(this.savingAccountTransactionForm.value.transactionDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,this.transactionCommand,r).subscribe(_=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(C.L),t.Y36(U.d),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-transactions"]],inputs:{currencyCode:"currencyCode"},decls:106,vars:41,consts:[[1,"container","mat-elevation-z8"],["mat-title","",4,"ngIf"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],[4,"ngIf"],["appearance","fill"],["matTextSuffix","",1,"m-l-10"],["fxFlex","auto"],["type","number","formControlName","transactionAmount","required","","matInput","",1,"right-input"],["required","","formControlName","paymentTypeId"],[3,"value",4,"ngFor","ngForOf"],["fxFlexFill",""],["fxFlex","75%",1,"expandcollapsebutton","m-l-10","m-t-40",3,"click"],[3,"className"],[1,"m-l-10"],["formControlName","note","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["mat-title",""],[3,"value"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.YNc(4,se,3,3,"h2",1),t._uU(5,"\n "),t.YNc(6,ce,3,3,"h2",1),t._uU(7,"\n\n "),t.TgZ(8,"form",2),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(9,"\n\n "),t.TgZ(10,"mat-card-content",3),t._uU(11,"\n\n "),t.TgZ(12,"mat-form-field",4),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(23);return t.KtG(r.open())}),t._uU(13,"\n "),t.TgZ(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._uU(17,"\n "),t._UZ(18,"input",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker-toggle",6),t._uU(21,"\n "),t._UZ(22,"mat-datepicker",null,7),t._uU(24,"\n "),t.YNc(25,re,8,9,"mat-error",8),t._uU(26,"\n "),t.qZA(),t._uU(27,"\n\n "),t.TgZ(28,"mat-form-field",9),t._uU(29,"\n "),t.TgZ(30,"mat-label"),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n "),t.TgZ(34,"span",10),t._uU(35),t.qZA(),t._uU(36,"\n "),t._UZ(37,"span",11),t._uU(38,"\n "),t._UZ(39,"input",12),t._uU(40,"\n "),t.YNc(41,ue,8,9,"mat-error",8),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n\n "),t.TgZ(44,"mat-form-field"),t._uU(45,"\n "),t.TgZ(46,"mat-label"),t._uU(47),t.ALo(48,"translate"),t.qZA(),t._uU(49,"\n "),t.TgZ(50,"mat-select",13),t._uU(51,"\n "),t.YNc(52,le,2,2,"mat-option",14),t._uU(53,"\n "),t.qZA(),t._uU(54,"\n "),t.qZA(),t._uU(55,"\n\n "),t.TgZ(56,"div",15),t._uU(57,"\n "),t.TgZ(58,"span",16),t.NdJ("click",function(){return a.addPaymentDetails()}),t._uU(59,"\n "),t.TgZ(60,"mat-slide-toggle"),t._uU(61,"\n "),t.TgZ(62,"div",17),t._uU(63,"\n "),t.TgZ(64,"span",18),t._uU(65),t.ALo(66,"translate"),t.qZA(),t._uU(67,"\n "),t.qZA(),t._uU(68,"\n "),t.qZA(),t._uU(69,"\n "),t.qZA(),t._uU(70,"\n "),t.qZA(),t._uU(71,"\n\n "),t.YNc(72,me,8,3,"mat-form-field",8),t._uU(73,"\n\n "),t.YNc(74,_e,8,3,"mat-form-field",8),t._uU(75,"\n\n "),t.YNc(76,ge,8,3,"mat-form-field",8),t._uU(77,"\n\n "),t.YNc(78,pe,8,3,"mat-form-field",8),t._uU(79,"\n\n "),t.YNc(80,de,8,3,"mat-form-field",8),t._uU(81,"\n\n "),t.TgZ(82,"mat-form-field"),t._uU(83,"\n "),t.TgZ(84,"mat-label"),t._uU(85),t.ALo(86,"translate"),t.qZA(),t._uU(87,"\n "),t._UZ(88,"textarea",19),t._uU(89,"\n "),t.qZA(),t._uU(90,"\n\n "),t.TgZ(91,"mat-card-actions",20),t._uU(92,"\n "),t.TgZ(93,"button",21),t._uU(94),t.ALo(95,"translate"),t.qZA(),t._uU(96,"\n "),t.TgZ(97,"button",22),t._uU(98),t.ALo(99,"translate"),t.qZA(),t._uU(100,"\n "),t.qZA(),t._uU(101,"\n\n "),t.qZA(),t._uU(102,"\n\n "),t.qZA(),t._uU(103,"\n\n "),t.qZA(),t._uU(104,"\n\n"),t.qZA(),t._uU(105,"\n")}if(2&e){const i=t.MAs(23);t.xp6(4),t.Q6J("ngIf",a.transactionType.withdrawal),t.xp6(2),t.Q6J("ngIf",a.transactionType.deposit),t.xp6(2),t.Q6J("formGroup",a.savingAccountTransactionForm),t.xp6(7),t.Oqu(t.lcZ(16,26,"labels.inputs.Transaction Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.savingAccountTransactionForm.controls.transactionDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(32,28,"labels.inputs.Transaction Amount")),t.xp6(4),t.Oqu(a.currencyCode),t.xp6(6),t.Q6J("ngIf",a.savingAccountTransactionForm.controls.transactionAmount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(48,30,"labels.inputs.Payment Type")),t.xp6(5),t.Q6J("ngForOf",a.paymentTypeOptions),t.xp6(10),t.Q6J("className",a.addPaymentDetailsFlag?"enabled":"disabled"),t.xp6(3),t.Oqu(t.lcZ(66,32,"labels.inputs.Show Payment Details")),t.xp6(7),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(2),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(2),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(2),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(2),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(5),t.Oqu(t.lcZ(86,34,"labels.inputs.Notes")),t.xp6(8),t.Q6J("routerLink",t.DdM(40,fe)),t.xp6(1),t.Oqu(t.lcZ(95,36,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.savingAccountTransactionForm.valid),t.xp6(1),t.Oqu(t.lcZ(99,38,"labels.buttons.Submit"))}},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,u.s9,u.yH,y.ey,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,O.IC,b.Nt,D.gD,V.Rr,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.container[_ngcontent-%COMP%]{max-width:37rem}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}"]}),n})();function ve(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Approved On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Ue=function(){return["../../"]};let he=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApproveSavingsAccountForm()}createApproveSavingsAccountForm(){this.approveSavingsAccountForm=this.formBuilder.group({approvedOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.approveSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.approvedOnDate instanceof Date&&(e.approvedOnDate=this.dateUtils.formatDate(this.approveSavingsAccountForm.value.approvedOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"approve",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-approve-savings-account"]],decls:51,vars:21,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","approvedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["approvedOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,ve,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.approveSavingsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Approved On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.approveSavingsAccountForm.controls.approvedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,Ue)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.approveSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,O.IC,b.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function Te(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Rejected On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Ze=function(){return["../../"]};let Ce=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectSavingsAccountForm()}createRejectSavingsAccountForm(){this.rejectSavingsAccountForm=this.formBuilder.group({rejectedOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.rejectSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.rejectedOnDate instanceof Date&&(e.rejectedOnDate=this.dateUtils.formatDate(this.rejectSavingsAccountForm.value.rejectedOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"reject",r).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-reject-savings-account"]],decls:51,vars:21,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","rejectedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["rejectedOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,Te,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.rejectSavingsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Rejected On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.rejectSavingsAccountForm.controls.rejectedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,Ze)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.rejectSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,O.IC,b.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function xe(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Activated On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const be=function(){return["../../transactions"]};let Se=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateSavingsAccountForm()}createActivateSavingsAccountForm(){this.activateSavingsAccountForm=this.formBuilder.group({activatedOnDate:["",s.kI.required]})}submit(){const e=this.activateSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.activatedOnDate instanceof Date&&(e.activatedOnDate=this.dateUtils.formatDate(this.activateSavingsAccountForm.value.activatedOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"activate",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-activate-savings-account"]],decls:39,vars:18,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","activatedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["activatedOnDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(19);return t.KtG(r.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",3),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,5),t._uU(20,"\n "),t.YNc(21,xe,8,9,"mat-error",6),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-card-actions",7),t._uU(26,"\n "),t.TgZ(27,"button",8),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"button",9),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n"),t.qZA(),t._uU(38,"\n")}if(2&e){const i=t.MAs(19);t.xp6(4),t.Q6J("formGroup",a.activateSavingsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,11,"labels.inputs.Activated On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.activateSavingsAccountForm.controls.activatedOnDate.hasError("required")),t.xp6(6),t.Q6J("routerLink",t.DdM(17,be)),t.xp6(1),t.Oqu(t.lcZ(29,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.activateSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(33,15,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,u.yH,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();const qe=function(){return["../../"]};let ye=(()=>{class n{constructor(e,a,i,c){this.formBuilder=e,this.savingsService=a,this.route=i,this.router=c,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.createUndoApprovalSavingsAccountForm()}createUndoApprovalSavingsAccountForm(){this.undoApprovalSavingsAccountForm=this.formBuilder.group({note:[""]})}submit(){const e={...this.undoApprovalSavingsAccountForm.value};this.savingsService.executeSavingsAccountCommand(this.accountId,"undoapproval",e).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(l.gz),t.Y36(l.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-undo-approval-savings-account"]],decls:32,vars:13,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxFlex",""],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"textarea",3),t._uU(15,"\n "),t.qZA(),t._uU(16,"\n\n "),t.qZA(),t._uU(17,"\n\n "),t.TgZ(18,"mat-card-actions",4),t._uU(19,"\n "),t.TgZ(20,"button",5),t._uU(21),t.ALo(22,"translate"),t.qZA(),t._uU(23,"\n "),t.TgZ(24,"button",6),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.qZA(),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n"),t.qZA(),t._uU(31,"\n")),2&e&&(t.xp6(4),t.Q6J("formGroup",a.undoApprovalSavingsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,6,"labels.inputs.Note")),t.xp6(9),t.Q6J("routerLink",t.DdM(12,qe)),t.xp6(1),t.Oqu(t.lcZ(22,8,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.undoApprovalSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(26,10,"labels.buttons.Confirm")))},dependencies:[u.xw,u.SQ,u.Wh,u.yH,T.lW,d.a8,d.dn,d.hq,g.KE,g.hX,O.IC,b.Nt,s._Y,s.Fj,s.JJ,s.JL,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function De(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Ie=function(){return["../../"]};let Ne=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createPostInterestSavingsAccountForm()}createPostInterestSavingsAccountForm(){this.postInterestSavingsAccountForm=this.formBuilder.group({transactionDate:["",s.kI.required]})}submit(){const e=this.postInterestSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(this.postInterestSavingsAccountForm.value.transactionDate,i));const r={...e,IsPostInterestAsOn:!0,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"postInterestAsOn",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-post-interest-as-on-savings-account"]],decls:39,vars:18,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["transactionDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(19);return t.KtG(r.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",3),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,5),t._uU(20,"\n "),t.YNc(21,De,8,9,"mat-error",6),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-card-actions",7),t._uU(26,"\n "),t.TgZ(27,"button",8),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"button",9),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n"),t.qZA(),t._uU(38,"\n")}if(2&e){const i=t.MAs(19);t.xp6(4),t.Q6J("formGroup",a.postInterestSavingsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,11,"labels.inputs.Transaction Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.postInterestSavingsAccountForm.controls.transactionDate.hasError("required")),t.xp6(6),t.Q6J("routerLink",t.DdM(17,Ie)),t.xp6(1),t.Oqu(t.lcZ(29,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.postInterestSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(33,15,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,u.yH,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function we(n,o){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.displayName,"\n ")}}function Oe(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Assignment Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Fe=function(){return["../../"]};let Pe=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId,this.route.data.subscribe(h=>{this.savingsAccountData=h.savingsAccountActionData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.fieldOfficerData=this.savingsAccountData.fieldOfficerOptions,this.createSavingsAssignStaffForm()}createSavingsAssignStaffForm(){this.savingsAssignStaffForm=this.formBuilder.group({toSavingsOfficerId:[""],assignmentDate:["",s.kI.required]})}submit(){const e=this.savingsAssignStaffForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.assignmentDate instanceof Date&&(e.assignmentDate=this.dateUtils.formatDate(this.savingsAssignStaffForm.value.assignmentDate,i));const r={...e,fromSavingsOfficerId:"",dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"assignSavingsOfficer",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-assign-staff"]],decls:54,vars:22,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["fxFlex","48%"],["formControlName","toSavingsOfficerId"],[3,"value",4,"ngFor","ngForOf"],[3,"click"],["matInput","","required","","formControlName","assignmentDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["assignmentDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"mat-select",4),t._uU(17,"\n "),t.YNc(18,we,2,2,"mat-option",5),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.TgZ(22,"mat-form-field",6),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(33);return t.KtG(r.open())}),t._uU(23,"\n "),t.TgZ(24,"mat-label"),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t._UZ(28,"input",7),t._uU(29,"\n "),t._UZ(30,"mat-datepicker-toggle",8),t._uU(31,"\n "),t._UZ(32,"mat-datepicker",null,9),t._uU(34,"\n "),t.YNc(35,Oe,8,9,"mat-error",10),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.qZA(),t._uU(39,"\n\n "),t.TgZ(40,"mat-card-actions",11),t._uU(41,"\n "),t.TgZ(42,"button",12),t._uU(43),t.ALo(44,"translate"),t.qZA(),t._uU(45,"\n "),t.TgZ(46,"button",13),t._uU(47),t.ALo(48,"translate"),t.qZA(),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n\n "),t.qZA(),t._uU(51,"\n\n "),t.qZA(),t._uU(52,"\n\n"),t.qZA(),t._uU(53,"\n")}if(2&e){const i=t.MAs(33);t.xp6(4),t.Q6J("formGroup",a.savingsAssignStaffForm),t.xp6(9),t.Oqu(t.lcZ(14,13,"labels.inputs.To Savings Officer")),t.xp6(5),t.Q6J("ngForOf",a.fieldOfficerData),t.xp6(7),t.Oqu(t.lcZ(26,15,"labels.inputs.Assignment Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.savingsAssignStaffForm.controls.assignmentDate.hasError("required")),t.xp6(7),t.Q6J("routerLink",t.DdM(21,Fe)),t.xp6(1),t.Oqu(t.lcZ(44,17,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.savingsAssignStaffForm.valid),t.xp6(1),t.Oqu(t.lcZ(48,19,"labels.buttons.Confirm"))}},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,u.yH,y.ey,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,D.gD,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function Le(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Unassignment Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const ke=function(){return["../../"]};let Ye=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingsUnassignStaffForm()}createSavingsUnassignStaffForm(){this.savingsUnassignStaffForm=this.formBuilder.group({unassignedDate:["",s.kI.required]})}submit(){const e=this.savingsUnassignStaffForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.unassignedDate instanceof Date&&(e.unassignedDate=this.dateUtils.formatDate(this.savingsUnassignStaffForm.value.unassignedDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"unassignSavingsOfficer",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-unassign-staff"]],decls:39,vars:18,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","unassignedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["unassignedDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(19);return t.KtG(r.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",3),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,5),t._uU(20,"\n "),t.YNc(21,Le,8,9,"mat-error",6),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-card-actions",7),t._uU(26,"\n "),t.TgZ(27,"button",8),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"button",9),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n"),t.qZA(),t._uU(38,"\n")}if(2&e){const i=t.MAs(19);t.xp6(4),t.Q6J("formGroup",a.savingsUnassignStaffForm),t.xp6(7),t.Oqu(t.lcZ(12,11,"labels.inputs.Unassignment Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.savingsUnassignStaffForm.controls.unassignedDate.hasError("required")),t.xp6(6),t.Q6J("routerLink",t.DdM(17,ke)),t.xp6(1),t.Oqu(t.lcZ(29,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.savingsUnassignStaffForm.valid),t.xp6(1),t.Oqu(t.lcZ(33,15,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,u.yH,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function Me(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Withdrawn On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Je=function(){return["../../"]};let Qe=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createWithdrawSavingsAccountForm()}createWithdrawSavingsAccountForm(){this.withdrawSavingsAccountForm=this.formBuilder.group({withdrawnOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.withdrawSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.withdrawnOnDate instanceof Date&&(e.withdrawnOnDate=this.dateUtils.formatDate(this.withdrawSavingsAccountForm.value.withdrawnOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"withdrawnByApplicant",r).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-withdraw-by-client-savings-account"]],decls:51,vars:21,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","withdrawnOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["withdrawnOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,Me,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.withdrawSavingsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Withdrawn On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.withdrawSavingsAccountForm.controls.withdrawnOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,Je)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.withdrawSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,O.IC,b.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function Re(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name+" ("+e.currency.name+")","\n ")}}function Ee(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Charge")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Ge(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Be(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function He(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function Ve(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due for collection on")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function We(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",15),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(11);return t.KtG(i.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",16),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",17),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,18),t._uU(12,"\n "),t.YNc(13,Ve,8,9,"mat-error",5),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),a=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Due for collection on")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(5),t.Q6J("ngIf",a.savingsChargeForm.controls.dueDate.hasError("required"))}}function je(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function ze(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",15),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(11);return t.KtG(i.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",19),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",17),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,20),t._uU(12,"\n "),t.YNc(13,je,8,9,"mat-error",5),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),a=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Due On")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(5),t.Q6J("ngIf",a.savingsChargeForm.controls.feeOnMonthDay.hasError("required"))}}function $e(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",21),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Repeats Every")))}function Xe(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field"),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t._UZ(8,"input",11),t._uU(9,"\n "),t.YNc(10,Ge,8,9,"mat-error",5),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"mat-form-field"),t._uU(14,"\n "),t.TgZ(15,"mat-label"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t.TgZ(19,"mat-select",12),t._uU(20,"\n "),t.YNc(21,Be,2,2,"mat-option",4),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-form-field"),t._uU(26,"\n "),t.TgZ(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"mat-select",13),t._uU(32,"\n "),t.YNc(33,He,2,2,"mat-option",4),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.YNc(37,We,15,8,"mat-form-field",14),t._uU(38,"\n\n "),t.YNc(39,ze,15,8,"mat-form-field",14),t._uU(40,"\n\n "),t.YNc(41,$e,8,3,"mat-form-field",5),t._uU(42,"\n\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(5),t.Oqu(t.lcZ(6,9,"labels.inputs.Amount")),t.xp6(5),t.Q6J("ngIf",e.savingsChargeForm.controls.amount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(17,11,"labels.inputs.Charge Calculation")),t.xp6(5),t.Q6J("ngForOf",e.chargeDetails.chargeCalculationTypeOptions),t.xp6(7),t.Oqu(t.lcZ(29,13,"labels.inputs.Charge time type")),t.xp6(5),t.Q6J("ngForOf",e.chargeDetails.chargeTimeTypeOptions),t.xp6(4),t.Q6J("ngIf",e.savingsChargeForm.contains("dueDate")),t.xp6(2),t.Q6J("ngIf",e.savingsChargeForm.contains("feeOnMonthDay")),t.xp6(2),t.Q6J("ngIf",e.savingsChargeForm.contains("feeInterval"))}}const Ke=function(){return["../../transactions"]};let ta=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.route=a,this.router=i,this.dateUtils=c,this.savingsService=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(h=>{this.savingsChargeOptions=h.savingsAccountActionData.chargeOptions}),this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingsChargeForm(),this.buildDependencies()}buildDependencies(){this.savingsChargeForm.controls.chargeId.valueChanges.subscribe(e=>{this.savingsService.getChargeTemplate(e).subscribe(a=>{this.chargeDetails=a;const i=a.chargeTimeType.id;("Withdrawal Fee"===a.chargeTimeType.value||"Saving No Activity Fee"===a.chargeTimeType.value)&&(this.chargeDetails.dueDateNotRequired=!0),("Annual Fee"===a.chargeTimeType.value||"Monthly Fee"===a.chargeTimeType.value)&&(this.chargeDetails.chargeTimeTypeAnnualOrMonth=!0),this.chargeDetails.dueDateNotRequired||this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.savingsChargeForm.removeControl("dueDate"):this.savingsChargeForm.addControl("dueDate",new s.p4("",s.kI.required)),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.savingsChargeForm.addControl("feeOnMonthDay",new s.p4("",s.kI.required)):this.savingsChargeForm.removeControl("feeOnMonthDay"),"Monthly Fee"===i.value?this.savingsChargeForm.addControl("feeInterval",new s.p4(a.feeInterval,s.kI.required)):this.savingsChargeForm.removeControl("feeInterval"),this.savingsChargeForm.patchValue({amount:a.amount,chargeCalculationType:a.chargeCalculationType.id,chargeTimeType:a.chargeTimeType.id})})})}createSavingsChargeForm(){this.savingsChargeForm=this.formBuilder.group({chargeId:["",s.kI.required],amount:["",s.kI.required],chargeCalculationType:[{value:"",disabled:!0}],chargeTimeType:[{value:"",disabled:!0}]})}submit(){const e=this.savingsChargeForm.value;if(e.locale=this.settingsService.language.code,e.feeInterval||(e.feeInterval=this.chargeDetails.feeInterval),!0!==this.chargeDetails.dueDateNotRequired)if(!0===this.chargeDetails.chargeTimeTypeAnnualOrMonth){const a="MMMM-dd";e.monthDayFormat=a,e.feeOnMonthDay&&(e.feeOnMonthDay=this.dateUtils.formatDate(this.savingsChargeForm.value.feeOnMonthDay,a))}else{const a=this.settingsService.dateFormat;e.dateFormat=a,e.dueDate&&(e.dueDate=this.dateUtils.formatDate(this.savingsChargeForm.value.dueDate,a))}this.savingsService.createSavingsCharge(this.savingAccountId,"charges",e).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(C.L),t.Y36(U.d),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-add-charge-savings-account"]],decls:42,vars:16,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["required","","formControlName","chargeId"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","chargeCalculationType"],["formControlName","chargeTimeType"],[3,"click",4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["feeOnMonthDayPicker",""],["matInput","","formControlName","feeInterval"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n "),t.TgZ(10,"mat-form-field"),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"mat-select",3),t._uU(17,"\n "),t.YNc(18,Re,2,2,"mat-option",4),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.YNc(21,Ee,8,9,"mat-error",5),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.YNc(24,Xe,43,15,"div",6),t._uU(25,"\n\n "),t.qZA(),t._uU(26,"\n\n "),t.TgZ(27,"mat-card-actions",7),t._uU(28,"\n "),t.TgZ(29,"button",8),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._uU(32,"\n "),t.TgZ(33,"button",9),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.qZA(),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&e&&(t.xp6(4),t.Q6J("formGroup",a.savingsChargeForm),t.xp6(9),t.Oqu(t.lcZ(14,9,"labels.inputs.Charge")),t.xp6(5),t.Q6J("ngForOf",a.savingsChargeOptions),t.xp6(3),t.Q6J("ngIf",a.savingsChargeForm.controls.chargeId.hasError("required")),t.xp6(3),t.Q6J("ngIf",a.chargeDetails),t.xp6(5),t.Q6J("routerLink",t.DdM(15,Ke)),t.xp6(1),t.Oqu(t.lcZ(31,11,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.savingsChargeForm.valid),t.xp6(1),t.Oqu(t.lcZ(35,13,"labels.buttons.Submit")))},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,y.ey,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,D.gD,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),n})();var W=m(56709);function na(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Closed On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function ea(n,o){1&n&&(t.TgZ(0,"mat-form-field",20),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",21),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Transaction Amount")))}function aa(n,o){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function oa(n,o){if(1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",22),t._uU(7,"\n "),t.YNc(8,aa,2,2,"mat-option",23),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Payment Type")),t.xp6(5),t.Q6J("ngForOf",e.paymentTypeOptions)}}function ia(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",25),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Account Number")))}function sa(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",26),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Cheque")))}function ca(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",27),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Routing Code")))}function ra(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",28),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Receipt Number")))}function ua(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",29),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Bank")))}function la(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",2),t._uU(1,"\n\n "),t.YNc(2,ea,8,3,"mat-form-field",15),t._uU(3,"\n\n "),t.YNc(4,oa,11,4,"mat-form-field",7),t._uU(5,"\n\n "),t.TgZ(6,"div",16),t._uU(7,"\n "),t.TgZ(8,"span",17),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.addPaymentDetails())}),t._uU(9,"\n "),t.TgZ(10,"mat-slide-toggle"),t._uU(11,"\n "),t.TgZ(12,"div",18),t._uU(13,"\n "),t.TgZ(14,"span",19),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._uU(17,"\n "),t.qZA(),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.YNc(22,ia,8,3,"mat-form-field",7),t._uU(23,"\n\n "),t.YNc(24,sa,8,3,"mat-form-field",7),t._uU(25,"\n\n "),t.YNc(26,ca,8,3,"mat-form-field",7),t._uU(27,"\n\n "),t.YNc(28,ra,8,3,"mat-form-field",7),t._uU(29,"\n\n "),t.YNc(30,ua,8,3,"mat-form-field",7),t._uU(31,"\n\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.amount),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.paymentTypeId),t.xp6(8),t.Q6J("className",e.showPaymentDetails?"enabled":"disabled"),t.xp6(3),t.Oqu(t.lcZ(16,9,"labels.inputs.Show Payment Details")),t.xp6(7),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.accountNumber),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.checkNumber),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.routingCode),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.receiptNumber),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.bankNumber)}}const ma=function(){return["../../"]};let _a=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.addPaymentDetailsFlag=!1,this.route.data.subscribe(h=>{this.paymentTypeOptions=h.savingsAccountActionData[0].paymentTypeOptions,this.transactionAmount=h.savingsAccountActionData[1].summary.accountBalance}),this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseSavingsAccountForm(),this.buildDependencies()}createCloseSavingsAccountForm(){this.closeSavingsAccountForm=this.formBuilder.group({closedOnDate:["",s.kI.required],withdrawBalance:[!1],postInterestValidationOnClosure:[!1],note:[""]})}buildDependencies(){this.closeSavingsAccountForm.get("withdrawBalance").valueChanges.subscribe(e=>{e?(this.closeSavingsAccountForm.addControl("amount",new s.p4({value:this.transactionAmount,disabled:!0})),this.closeSavingsAccountForm.addControl("paymentTypeId",new s.p4(""))):(this.closeSavingsAccountForm.removeControl("amount"),this.closeSavingsAccountForm.removeControl("paymentTypeId"))})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.closeSavingsAccountForm.addControl("accountNumber",new s.p4("")),this.closeSavingsAccountForm.addControl("checkNumber",new s.p4("")),this.closeSavingsAccountForm.addControl("routingCode",new s.p4("")),this.closeSavingsAccountForm.addControl("receiptNumber",new s.p4("")),this.closeSavingsAccountForm.addControl("bankNumber",new s.p4(""))):(this.closeSavingsAccountForm.removeControl("accountNumber"),this.closeSavingsAccountForm.removeControl("checkNumber"),this.closeSavingsAccountForm.removeControl("routingCode"),this.closeSavingsAccountForm.removeControl("receiptNumber"),this.closeSavingsAccountForm.removeControl("bankNumber"))}submit(){const e=this.closeSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(this.closeSavingsAccountForm.value.closedOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"close",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-close-savings-account"]],decls:61,vars:28,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["closedOnDatePicker",""],[4,"ngIf"],["formControlName","withdrawBalance",1,"m-b-25","m-t-15"],["formControlName","postInterestValidationOnClosure"],["fxLayout","column",4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"],["class","m-t-20",4,"ngIf"],["fxFlexFill",""],["fxFlex","75%",1,"expandcollapsebutton","m-l-10","m-t-40",3,"click"],[3,"className"],[1,"m-l-10"],[1,"m-t-20"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","paymentTypeId"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,na,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-checkbox",8),t._uU(27),t.ALo(28,"translate"),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"mat-checkbox",9),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n\n "),t.YNc(34,la,32,11,"div",10),t._uU(35,"\n\n "),t.TgZ(36,"mat-form-field"),t._uU(37,"\n "),t.TgZ(38,"mat-label"),t._uU(39),t.ALo(40,"translate"),t.qZA(),t._uU(41,"\n "),t._UZ(42,"textarea",11),t._uU(43,"\n "),t.qZA(),t._uU(44,"\n\n "),t.qZA(),t._uU(45,"\n\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"mat-card-actions",12),t._uU(48,"\n "),t.TgZ(49,"button",13),t._uU(50),t.ALo(51,"translate"),t.qZA(),t._uU(52,"\n "),t.TgZ(53,"button",14),t._uU(54),t.ALo(55,"translate"),t.qZA(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n\n "),t.qZA(),t._uU(58,"\n\n "),t.qZA(),t._uU(59,"\n\n"),t.qZA(),t._uU(60,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.closeSavingsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,15,"labels.inputs.Closed On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.closeSavingsAccountForm.controls.closedOnDate.hasError("required")),t.xp6(4),t.hij("\n ",t.lcZ(28,17,"labels.inputs.Withdraw Balance"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(32,19,"labels.inputs.Is Interest Posting required on closure date"),"?\n "),t.xp6(3),t.Q6J("ngIf",a.closeSavingsAccountForm.controls.withdrawBalance.value),t.xp6(5),t.Oqu(t.lcZ(40,21,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(27,ma)),t.xp6(1),t.Oqu(t.lcZ(51,23,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.closeSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(55,25,"labels.buttons.Confirm"))}},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,u.s9,u.yH,y.ey,T.lW,d.a8,d.dn,d.hq,W.oG,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,O.IC,b.Nt,D.gD,V.Rr,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function ga(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function pa(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const da=function(){return["../../"]};let fa=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId,this.route.data.subscribe(h=>{this.savingsAccountData=h.savingsAccountActionData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApplyAnnualFeesForm(),this.applyCharge()}createApplyAnnualFeesForm(){this.applyAnnualFeesForm=this.formBuilder.group({dueDate:["",s.kI.required],amount:[""]})}applyCharge(){this.savingsAccountData.charges.forEach(a=>{"Annual fee - INR"===a.name&&(this.chargeId=a.id,this.applyAnnualFeesForm.get("amount").patchValue(a.amount))})}submit(){const e=this.applyAnnualFeesForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.dueDate instanceof Date&&(e.dueDate=this.dateUtils.formatDate(this.applyAnnualFeesForm.value.dueDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountChargesCommand(this.accountId,"paycharge",r,this.chargeId).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-apply-annual-fees-savings-account"]],decls:53,vars:22,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],[4,"ngIf"],["type","number","formControlName","amount","required","","matInput",""],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,ga,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"input",8),t._uU(33,"\n "),t.YNc(34,pa,8,9,"mat-error",7),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.TgZ(39,"mat-card-actions",9),t._uU(40,"\n "),t.TgZ(41,"button",10),t._uU(42),t.ALo(43,"translate"),t.qZA(),t._uU(44,"\n "),t.TgZ(45,"button",11),t._uU(46),t.ALo(47,"translate"),t.qZA(),t._uU(48,"\n "),t.qZA(),t._uU(49,"\n\n "),t.qZA(),t._uU(50,"\n\n "),t.qZA(),t._uU(51,"\n\n"),t.qZA(),t._uU(52,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.applyAnnualFeesForm),t.xp6(9),t.Oqu(t.lcZ(14,13,"labels.inputs.Annual Fees Transaction Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.applyAnnualFeesForm.controls.dueDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,15,"labels.inputs.Amount")),t.xp6(5),t.Q6J("ngIf",a.applyAnnualFeesForm.controls.amount.hasError("required")),t.xp6(7),t.Q6J("routerLink",t.DdM(21,da)),t.xp6(1),t.Oqu(t.lcZ(43,17,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.applyAnnualFeesForm.valid),t.xp6(1),t.Oqu(t.lcZ(47,19,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();var Aa=m(41659);function va(n,o){1&n&&(t.TgZ(0,"h2",11),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.heading.Hold Amount")))}function Ua(n,o){1&n&&(t.TgZ(0,"h2",11),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.heading.Block Savings Account")))}function ha(n,o){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function Ta(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Reason")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Za(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Ca(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",13),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(11);return t.KtG(i.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",14),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",15),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,16),t._uU(12,"\n "),t.YNc(13,Za,8,9,"mat-error",6),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),a=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Transaction Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(5),t.Q6J("ngIf",a.manageSavingsAccountForm.controls.transactionDate.hasError("required"))}}function xa(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function ba(n,o){if(1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",17),t._uU(7,"\n "),t.YNc(8,xa,8,9,"mat-error",6),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Transaction Amount")),t.xp6(5),t.Q6J("ngIf",e.manageSavingsAccountForm.controls.transactionAmount.hasError("required"))}}const Sa=function(){return["../../transactions"]};let qa=(()=>{class n{constructor(e,a,i,c,r,_,h){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.systemService=_,this.settingsService=h,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.reasonOptions=[],this.transactionType={holdamount:!1,blockaccount:!1,blockdeposit:!1,blockwithdrawal:!1},this.transactionCommand=this.route.snapshot.params.name.toLowerCase().replaceAll(" ",""),this.transactionType[this.transactionCommand]=!0,this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createManageSavingsAccountForm(),(this.transactionType.holdamount||this.transactionType.blockaccount||this.transactionType.blockdeposit||this.transactionType.blockwithdrawal)&&this.getCodeValues()}getCodeValues(){let e="SavingsTransactionFreezeReasons";this.transactionType.blockaccount?e="SavingsAccountBlockReasons":this.transactionType.blockdeposit?e="CreditTransactionFreezeReasons":this.transactionType.blockwithdrawal&&(e="DebitTransactionFreezeReasons"),this.systemService.getCodes().subscribe(a=>{a.some(i=>(i.name===e&&this.systemService.getCodeValues(i.id).subscribe(c=>(this.reasonOptions=c,!0)),!1))})}createManageSavingsAccountForm(){this.manageSavingsAccountForm=this.formBuilder.group(this.transactionType.holdamount?{reasonForBlock:["",s.kI.required],transactionDate:["",s.kI.required],transactionAmount:[0,s.kI.required]}:{reasonForBlock:["",s.kI.required]})}submit(){let e="",a={};if(this.transactionType.holdamount){const i=this.manageSavingsAccountForm.value,c=this.settingsService.language.code,r=this.settingsService.dateFormat,_=this.manageSavingsAccountForm.value.transactionDate;i.transactionDate instanceof Date&&(i.transactionDate=this.dateUtils.formatDate(_,r)),a={...i,dateFormat:r,locale:c},e="holdAmount",this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,e,a).subscribe(h=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}else a={...this.manageSavingsAccountForm.value},e="block",this.transactionType.blockdeposit?e="blockCredit":this.transactionType.blockwithdrawal&&(e="blockDebit"),this.savingsService.executeSavingsAccountCommand(this.savingAccountId,e,a).subscribe(i=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(C.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Aa.o),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-manage-savings-account"]],decls:45,vars:19,consts:[[1,"container","mat-elevation-z8"],["mat-title","",4,"ngIf"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["required","","formControlName","reasonForBlock"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxFlex","",3,"click",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["mat-title",""],[3,"value"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["transactionDatePicker",""],["type","number","formControlName","transactionAmount","required","","matInput",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.YNc(4,va,3,3,"h2",1),t._uU(5,"\n "),t.YNc(6,Ua,3,3,"h2",1),t._uU(7,"\n\n "),t.TgZ(8,"form",2),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(9,"\n\n "),t.TgZ(10,"mat-card-content",3),t._uU(11,"\n\n "),t.TgZ(12,"mat-form-field"),t._uU(13,"\n "),t.TgZ(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._uU(17,"\n "),t.TgZ(18,"mat-select",4),t._uU(19,"\n "),t.YNc(20,ha,2,2,"mat-option",5),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n "),t.YNc(23,Ta,8,9,"mat-error",6),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.YNc(26,Ca,15,8,"mat-form-field",7),t._uU(27,"\n\n "),t.YNc(28,ba,10,4,"mat-form-field",6),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n "),t.TgZ(31,"mat-card-actions",8),t._uU(32,"\n "),t.TgZ(33,"button",9),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._uU(36,"\n "),t.TgZ(37,"button",10),t._uU(38),t.ALo(39,"translate"),t.qZA(),t._uU(40,"\n "),t.qZA(),t._uU(41,"\n\n "),t.qZA(),t._uU(42,"\n\n "),t.qZA(),t._uU(43,"\n\n"),t.qZA(),t._uU(44,"\n")),2&e&&(t.xp6(4),t.Q6J("ngIf",a.transactionType.holdamount),t.xp6(2),t.Q6J("ngIf",a.transactionType.blockaccount),t.xp6(2),t.Q6J("formGroup",a.manageSavingsAccountForm),t.xp6(7),t.Oqu(t.lcZ(16,12,"labels.inputs.Reason")),t.xp6(5),t.Q6J("ngForOf",a.reasonOptions),t.xp6(3),t.Q6J("ngIf",a.manageSavingsAccountForm.controls.reasonForBlock.hasError("required")),t.xp6(3),t.Q6J("ngIf",a.transactionType.holdamount),t.xp6(2),t.Q6J("ngIf",a.transactionType.holdamount),t.xp6(5),t.Q6J("routerLink",t.DdM(18,Sa)),t.xp6(1),t.Oqu(t.lcZ(35,14,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.manageSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(39,16,"labels.buttons.Confirm")))},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,u.yH,y.ey,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,D.gD,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,S.X$],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),n})();function ya(n,o){1&n&&t._UZ(0,"mifosx-approve-savings-account")}function Da(n,o){1&n&&t._UZ(0,"mifosx-reject-savings-account")}function Ia(n,o){1&n&&t._UZ(0,"mifosx-activate-savings-account")}function Na(n,o){1&n&&t._UZ(0,"mifosx-undo-approval-savings-account")}function wa(n,o){1&n&&t._UZ(0,"mifosx-post-interest-as-on-savings-account")}function Oa(n,o){1&n&&t._UZ(0,"mifosx-savings-account-assign-staff")}function Fa(n,o){1&n&&t._UZ(0,"mifosx-savings-account-unassign-staff")}function Pa(n,o){1&n&&t._UZ(0,"mifosx-withdraw-by-client-savings-account")}function La(n,o){1&n&&t._UZ(0,"mifosx-add-charge-savings-account")}function ka(n,o){if(1&n&&t._UZ(0,"mifosx-savings-transactions",2),2&n){const e=t.oxw();t.Q6J("currencyCode",e.currencyCode)}}function Ya(n,o){1&n&&t._UZ(0,"mifosx-close-savings-account")}function Ma(n,o){1&n&&t._UZ(0,"mifosx-apply-annual-fees-savings-account")}function Ja(n,o){1&n&&t._UZ(0,"mifosx-manage-savings-account")}let Qa=(()=>{class n{constructor(e){this.route=e,this.actions={Approve:!1,Reject:!1,Withdrawal:!1,Deposit:!1,Activate:!1,Close:!1,"Undo Approval":!1,"Post Interest As On":!1,"Assign Staff":!1,"Add Charge":!1,"Unassign Staff":!1,"Withdraw By Client":!1,"Apply Annual Fees":!1,"Hold Amount":!1,"Block Account":!1,"Unblock Account":!1,"Block Deposit":!1,"Unblock Deposit":!1,"Block Withdrawal":!1,"Unblock Withdrawal":!1},this.route.data.subscribe(i=>{i.savingsAccountActionData&&(this.currencyCode=i.savingsAccountActionData.currency.code)}),this.actions[this.route.snapshot.params.name]=!0}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-saving-account-actions"]],decls:26,vars:13,consts:[[4,"ngIf"],[3,"currencyCode",4,"ngIf"],[3,"currencyCode"]],template:function(e,a){1&e&&(t.YNc(0,ya,1,0,"mifosx-approve-savings-account",0),t._uU(1,"\n"),t.YNc(2,Da,1,0,"mifosx-reject-savings-account",0),t._uU(3,"\n"),t.YNc(4,Ia,1,0,"mifosx-activate-savings-account",0),t._uU(5,"\n"),t.YNc(6,Na,1,0,"mifosx-undo-approval-savings-account",0),t._uU(7,"\n"),t.YNc(8,wa,1,0,"mifosx-post-interest-as-on-savings-account",0),t._uU(9,"\n"),t.YNc(10,Oa,1,0,"mifosx-savings-account-assign-staff",0),t._uU(11,"\n"),t.YNc(12,Fa,1,0,"mifosx-savings-account-unassign-staff",0),t._uU(13,"\n"),t.YNc(14,Pa,1,0,"mifosx-withdraw-by-client-savings-account",0),t._uU(15,"\n"),t.YNc(16,La,1,0,"mifosx-add-charge-savings-account",0),t._uU(17,"\n"),t.YNc(18,ka,1,1,"mifosx-savings-transactions",1),t._uU(19,"\n"),t.YNc(20,Ya,1,0,"mifosx-close-savings-account",0),t._uU(21,"\n"),t.YNc(22,Ma,1,0,"mifosx-apply-annual-fees-savings-account",0),t._uU(23,"\n"),t.YNc(24,Ja,1,0,"mifosx-manage-savings-account",0),t._uU(25,"\n")),2&e&&(t.Q6J("ngIf",a.actions.Approve),t.xp6(2),t.Q6J("ngIf",a.actions.Reject),t.xp6(2),t.Q6J("ngIf",a.actions.Activate),t.xp6(2),t.Q6J("ngIf",a.actions["Undo Approval"]),t.xp6(2),t.Q6J("ngIf",a.actions["Post Interest As On"]),t.xp6(2),t.Q6J("ngIf",a.actions["Assign Staff"]),t.xp6(2),t.Q6J("ngIf",a.actions["Unassign Staff"]),t.xp6(2),t.Q6J("ngIf",a.actions["Withdraw By Client"]),t.xp6(2),t.Q6J("ngIf",a.actions["Add Charge"]),t.xp6(2),t.Q6J("ngIf",a.actions.Withdrawal||a.actions.Deposit),t.xp6(2),t.Q6J("ngIf",a.actions.Close),t.xp6(2),t.Q6J("ngIf",a.actions["Apply Annual Fees"]),t.xp6(2),t.Q6J("ngIf",a.actions["Hold Amount"]||a.actions["Block Account"]||a.actions["Block Deposit"]||a.actions["Block Withdrawal"]))},dependencies:[A.O5,Ae,he,Ce,Se,ye,Ne,Pe,Ye,Qe,ta,_a,fa,qa]}),n})();var N=m(34417);const Ra=function(){return{confirm:!0}};let ot=(()=>{class n{constructor(e,a){this.dialogRef=e,this.data=a}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.so),t.Y36(f.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-waive-charge-dialog"]],decls:18,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Waive Charge"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(6),t.hij("Are you sure you want to waive charge with id: ",a.data.id," ?"),t.xp6(8),t.Q6J("mat-dialog-close",t.DdM(2,Ra)))},dependencies:[T.lW,f.ZT,f.uh,f.xY,f.H8]}),n})();const Ea=function(){return{confirm:!0}};let it=(()=>{class n{constructor(e,a){this.dialogRef=e,this.data=a}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.so),t.Y36(f.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-inactivate-charge-dialog"]],decls:18,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Inactivate Charge"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(6),t.hij("Are you sure you want to inactivate charge with id: ",a.data.id," ?"),t.xp6(8),t.Q6J("mat-dialog-close",t.DdM(2,Ea)))},dependencies:[T.lW,f.ZT,f.uh,f.xY,f.H8]}),n})();var F=m(68830),j=m(23107);const Ga=["chargesTable"];function Ba(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",22),t._uU(1,"\n "),t.TgZ(2,"button",23),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.toggleCharges())}),t._uU(3),t.qZA(),t._uU(4,"\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.hij("\n ",e.showInactiveCharges?"View Active Charges":"View Inactive Charges","")}}function Ha(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Name "),t.qZA())}function Va(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function Wa(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Fee/Penalty "),t.qZA())}function ja(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",!0===e.penalty?"Penalty":"Fee"," ")}}function za(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Payment Due At "),t.qZA())}function $a(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.chargeTimeType.value," ")}}function Xa(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Due As Of "),t.qZA())}function Ka(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.dueDate)," ")}}function to(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Repeats On (M/d) "),t.qZA())}function no(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.feeOnMonthDay?e.feeOnMonthDay.join("/"):""," ")}}function eo(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Calculation Type "),t.qZA())}function ao(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.chargeCalculationType.value," ")}}function oo(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Due "),t.qZA())}function io(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.gM2(2,1,e.amount,e.currency.code,"symbol-narrow","1.2-2")," ")}}function so(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Paid "),t.qZA())}function co(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.gM2(2,1,e.amountPaid,e.currency.code,"symbol-narrow","1.2-2")," ")}}function ro(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Waived "),t.qZA())}function uo(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.gM2(2,1,e.amountWaived,e.currency.code,"symbol-narrow","1.2-2")," ")}}function lo(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Outstanding "),t.qZA())}function mo(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.gM2(2,1,e.amountOutstanding,e.currency.code,"symbol-narrow","1.2-2")," ")}}function _o(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Actions "),t.qZA())}function go(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.editCharge(c))}),t._uU(1,"\n "),t._UZ(2,"i",30),t._uU(3,"\n "),t.qZA()}}function po(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.deleteCharge(c.id))}),t._uU(1,"\n "),t._UZ(2,"i",32),t._uU(3,"\n "),t.qZA()}}function fo(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,go,4,0,"button",27),t._uU(3,"\n "),t.YNc(4,po,4,0,"button",28),t._uU(5,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}function Ao(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.payCharge(c.id))}),t._uU(1,"\n "),t._UZ(2,"i",36),t._uU(3,"\n "),t.qZA()}}function vo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",37),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.waiveCharge(c.id))}),t._uU(1,"\n "),t._UZ(2,"i",38),t._uU(3,"\n "),t.qZA()}}function Uo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(3).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.inactivateCharge(c.id))}),t._uU(1,"\n "),t._UZ(2,"i",41),t._uU(3,"\n "),t.qZA()}}function ho(n,o){1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Uo,4,0,"button",39),t._uU(3,"\n "),t.BQk()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE"))}function To(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ao,4,0,"button",33),t._uU(3,"\n "),t.YNc(4,vo,4,0,"button",34),t._uU(5,"\n "),t.YNc(6,ho,4,1,"ng-container",26),t._uU(7,"\n "),t.qZA()),2&n){const e=t.oxw().$implicit,a=t.oxw();t.xp6(2),t.Q6J("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("ngIf",a.isRecurringCharge(e))}}function Zo(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1,"\n "),t.YNc(2,fo,6,2,"span",26),t._uU(3,"\n "),t.YNc(4,To,8,3,"span",26),t._uU(5,"\n "),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.xp6(2),t.Q6J("ngIf","Submitted and pending approval"===a.savingsAccountData.status.value),t.xp6(2),t.Q6J("ngIf","Active"===a.savingsAccountData.status.value&&0!==e.amountOutstanding)}}function Co(n,o){1&n&&t._UZ(0,"tr",42)}const xo=function(n){return[n]};function bo(n,o){1&n&&t._UZ(0,"tr",43),2&n&&t.Q6J("routerLink",t.VKq(1,xo,o.$implicit.id))}let So=(()=>{class n{constructor(e,a,i,c,r,_){this.savingsService=e,this.route=a,this.dateUtils=i,this.router=c,this.dialog=r,this.settingsService=_,this.showInactiveCharges=!1,this.displayedColumns=["name","feeOrPenalty","paymentDueAt","dueAsOf","repeatsOn","calculationType","due","paid","waived","outstanding","actions"],this.route.parent.data.subscribe(h=>{this.savingsAccountData=h.savingsAccountData,this.chargesData=this.savingsAccountData.charges})}ngOnInit(){const e=this.chargesData?this.chargesData.filter(a=>a.isActive):[];this.dataSource=new p.by(e)}toggleCharges(){if(this.showInactiveCharges=!this.showInactiveCharges,this.showInactiveCharges){const e=this.chargesData.filter(a=>!a.isActive);this.dataSource.data=e}else{const e=this.chargesData.filter(a=>a.isActive);this.dataSource.data=e}this.chargesTableRef.renderRows()}payCharge(e){const a=[new F.M({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new j.d({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})];this.dialog.open(N.E,{data:{title:`Pay Charge ${e}`,layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){const _=this.settingsService.language.code,h=this.settingsService.dateFormat,Y={...r.data.value,dueDate:this.dateUtils.formatDate(r.data.value.dueDate,h),dateFormat:h,locale:_};this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"paycharge",Y,e).subscribe(()=>{this.reload()})}})}waiveCharge(e){this.dialog.open(ot,{data:{id:e}}).afterClosed().subscribe(i=>{i.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"waive",{},e).subscribe(()=>{this.reload()})})}inactivateCharge(e){this.dialog.open(it,{data:{id:e}}).afterClosed().subscribe(i=>{i.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"inactivate",{},e).subscribe(()=>{this.reload()})})}editCharge(e){const a=[new F.M({controlName:"amount",label:"Amount",value:e.amount||e.amountOrPercentage,type:"number",required:!0})];this.dialog.open(N.E,{data:{title:`Edit Charge ${e.id}`,layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){const Y={...r.data.value,dateFormat:this.settingsService.dateFormat,locale:this.settingsService.language.code};this.savingsService.editSavingsAccountCharge(this.savingsAccountData.id,Y,e.id).subscribe(()=>{this.reload()})}})}deleteCharge(e){this.dialog.open(J.F,{data:{deleteContext:`charge id:${e}`}}).afterClosed().subscribe(i=>{i.delete&&this.savingsService.deleteSavingsAccountCharge(this.savingsAccountData.id,e).subscribe(()=>{this.reload()})})}isRecurringCharge(e){return"Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value}routeEdit(e){e.stopPropagation()}reload(){const e=this.router.url,a=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(a,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.d),t.Y36(l.gz),t.Y36(C.L),t.Y36(l.F0),t.Y36(f.uw),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-charges-tab"]],viewQuery:function(e,a){if(1&e&&t.Gf(Ga,7),2&e){let i;t.iGM(i=t.CRH())&&(a.chargesTableRef=i.first)}},decls:102,vars:4,consts:[[1,"tab-container","mat-typography"],["fxLayout","row","fxLayoutAlign","start"],[1,"m-b-10"],["class","action-button m-b-20",4,"ngIf"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["chargesTable",""],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","feeOrPenalty"],["matColumnDef","paymentDueAt"],["matColumnDef","dueAsOf"],["matColumnDef","repeatsOn"],["matColumnDef","calculationType"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],[1,"action-button","m-b-20"],["mat-raised-button","","color","primary",3,"click"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Edit Charge",3,"click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","warn","matTooltip","Delete Charge",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Edit Charge",1,"account-action-button",3,"click"],[1,"fa","fa-pencil"],["mat-raised-button","","color","warn","matTooltip","Delete Charge",1,"account-action-button",3,"click"],[1,"fa","fa-trash"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Pay Charge",3,"click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Waive Charge",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Pay Charge",1,"account-action-button",3,"click"],[1,"fa","fa-dollar"],["mat-raised-button","","color","primary","matTooltip","Waive Charge",1,"account-action-button",3,"click"],[1,"fa","fa-flag"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Inactivate Charge",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Inactivate Charge",1,"account-action-button",3,"click"],[1,"fa","fa-ban"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"h3"),t._uU(7,"All Charges"),t.qZA(),t._uU(8,"\n "),t.qZA(),t._uU(9,"\n "),t.YNc(10,Ba,5,1,"div",3),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"div",4),t._uU(14,"\n\n "),t.TgZ(15,"table",5,6),t._uU(17,"\n\n "),t.ynx(18,7),t._uU(19,"\n "),t.YNc(20,Ha,2,0,"th",8),t._uU(21,"\n "),t.YNc(22,Va,2,1,"td",9),t._uU(23,"\n "),t.BQk(),t._uU(24,"\n\n "),t.ynx(25,10),t._uU(26,"\n "),t.YNc(27,Wa,2,0,"th",8),t._uU(28,"\n "),t.YNc(29,ja,2,1,"td",9),t._uU(30,"\n "),t.BQk(),t._uU(31,"\n\n "),t.ynx(32,11),t._uU(33,"\n "),t.YNc(34,za,2,0,"th",8),t._uU(35,"\n "),t.YNc(36,$a,2,1,"td",9),t._uU(37,"\n "),t.BQk(),t._uU(38,"\n\n "),t.ynx(39,12),t._uU(40,"\n "),t.YNc(41,Xa,2,0,"th",8),t._uU(42,"\n "),t.YNc(43,Ka,3,3,"td",9),t._uU(44,"\n "),t.BQk(),t._uU(45,"\n\n "),t.ynx(46,13),t._uU(47,"\n "),t.YNc(48,to,2,0,"th",8),t._uU(49,"\n "),t.YNc(50,no,2,1,"td",9),t._uU(51,"\n "),t.BQk(),t._uU(52,"\n\n "),t.ynx(53,14),t._uU(54,"\n "),t.YNc(55,eo,2,0,"th",8),t._uU(56,"\n "),t.YNc(57,ao,2,1,"td",9),t._uU(58,"\n "),t.BQk(),t._uU(59,"\n\n "),t.ynx(60,15),t._uU(61,"\n "),t.YNc(62,oo,2,0,"th",8),t._uU(63,"\n "),t.YNc(64,io,3,6,"td",9),t._uU(65,"\n "),t.BQk(),t._uU(66,"\n\n "),t.ynx(67,16),t._uU(68,"\n "),t.YNc(69,so,2,0,"th",8),t._uU(70,"\n "),t.YNc(71,co,3,6,"td",9),t._uU(72,"\n "),t.BQk(),t._uU(73,"\n\n "),t.ynx(74,17),t._uU(75,"\n "),t.YNc(76,ro,2,0,"th",8),t._uU(77,"\n "),t.YNc(78,uo,3,6,"td",9),t._uU(79,"\n "),t.BQk(),t._uU(80,"\n\n "),t.ynx(81,18),t._uU(82,"\n "),t.YNc(83,lo,2,0,"th",8),t._uU(84,"\n "),t.YNc(85,mo,3,6,"td",9),t._uU(86,"\n "),t.BQk(),t._uU(87,"\n\n "),t.ynx(88,19),t._uU(89,"\n "),t.YNc(90,_o,2,0,"th",8),t._uU(91,"\n "),t.YNc(92,Zo,6,2,"td",9),t._uU(93,"\n "),t.BQk(),t._uU(94,"\n\n "),t.YNc(95,Co,1,0,"tr",20),t._uU(96,"\n "),t.YNc(97,bo,1,3,"tr",21),t._uU(98,"\n\n "),t.qZA(),t._uU(99,"\n\n "),t.qZA(),t._uU(100,"\n\n"),t.qZA(),t._uU(101,"\n")),2&e&&(t.xp6(10),t.Q6J("ngIf",a.chargesData),t.xp6(5),t.Q6J("dataSource",a.dataSource),t.xp6(80),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",a.displayedColumns))},dependencies:[A.O5,u.xw,u.Wh,T.lW,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,M.gM,w.A,l.rH,A.H9,I.E],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),n})();var qo=m(35023);const yo=["instructionsTable"];function Do(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Client "),t.qZA())}function Io(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.fromClient.displayName,"-",e.fromClient.id,"")}}function No(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," From Account "),t.qZA())}function wo(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.fromAccount.accountNo," (",e.fromAccountType.value,")")}}function Oo(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Beneficiary "),t.qZA())}function Fo(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Oqu(e.toClient.displayName)}}function Po(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," To Account "),t.qZA())}function Lo(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.toAccount.accountNo," (",e.toAccountType.value,")")}}function ko(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Amount "),t.qZA())}function Yo(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.instructionType.value,"/",e.amount,"")}}function Mo(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Validity "),t.qZA())}function Jo(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.ALo(2,"dateFormat"),t.ALo(3,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",t.lcZ(2,2,e.validFrom)," to ",t.lcZ(3,4,e.validTill),"")}}function Qo(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Actions "),t.qZA())}function Ro(n,o){1&n&&(t.TgZ(0,"button",21),t._uU(1,"\n "),t._UZ(2,"i",22),t._uU(3,"\n "),t.qZA())}function Eo(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ro,4,0,"button",20),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function Go(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2).$implicit,c=t.oxw();return t.KtG(c.deleteStandingInstruction(i.id))}),t._uU(1,"\n "),t._UZ(2,"i",25),t._uU(3,"\n "),t.qZA()}}function Bo(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Go,4,0,"button",23),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}function Ho(n,o){1&n&&(t.TgZ(0,"button",26),t._uU(1,"\n "),t._UZ(2,"i",27),t._uU(3,"\n "),t.qZA())}function Vo(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1,"\n "),t.YNc(2,Eo,4,1,"span",18),t._uU(3,"\n "),t.YNc(4,Bo,4,1,"span",18),t._uU(5,"\n "),t.YNc(6,Ho,4,0,"button",19),t._uU(7,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Deleted"!==e.status.value),t.xp6(2),t.Q6J("ngIf","Deleted"!==e.status.value),t.xp6(2),t.Q6J("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function Wo(n,o){1&n&&t._UZ(0,"tr",28)}function jo(n,o){1&n&&t._UZ(0,"tr",29)}let zo=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.savingsService=a,this.dialog=i,this.accountTransfersService=c,this.settingsService=r,this.dataSource=new p.by,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.parent.data.subscribe(_=>{this.savingsData=_.savingsAccountData})}ngOnInit(){this.getStandingInstructions()}getStandingInstructions(){this.savingsService.getStandingInstructions(this.savingsData.clientId,this.savingsData.clientName,this.savingsData.id,this.settingsService.language.code,this.settingsService.dateFormat).subscribe(_=>{this.instructionsData=_.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(e){this.dialog.open(J.F,{data:{deleteContext:`standing instruction id: ${e}`}}).afterClosed().subscribe(i=>{i.delete&&this.accountTransfersService.deleteStandingInstrucions(e).subscribe(()=>{})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(U.d),t.Y36(f.uw),t.Y36(qo.o),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-standing-instructions-tab"]],viewQuery:function(e,a){if(1&e&&t.Gf(yo,7),2&e){let i;t.iGM(i=t.CRH())&&(a.instructionTableRef=i.first)}},decls:69,vars:3,consts:[[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["instructionsTable",""],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","View Standing Instruction",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Edit Standing Instruction",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Edit Standing Instruction",1,"account-action-button"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn","matTooltip","Delete Standing Instruction",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn","matTooltip","Delete Standing Instruction",1,"account-action-button",3,"click"],[1,"fa","fa-times"],["mat-raised-button","","color","primary","matTooltip","View Standing Instruction",1,"account-action-button"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"h3"),t._uU(5,"All Standing Instructions"),t.qZA(),t._uU(6,"\n "),t.qZA(),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"table",3,4),t._uU(12,"\n\n "),t.ynx(13,5),t._uU(14,"\n "),t.YNc(15,Do,2,0,"th",6),t._uU(16,"\n "),t.YNc(17,Io,2,2,"td",7),t._uU(18,"\n "),t.BQk(),t._uU(19,"\n\n "),t.ynx(20,8),t._uU(21,"\n "),t.YNc(22,No,2,0,"th",6),t._uU(23,"\n "),t.YNc(24,wo,2,2,"td",7),t._uU(25,"\n "),t.BQk(),t._uU(26,"\n\n "),t.ynx(27,9),t._uU(28,"\n "),t.YNc(29,Oo,2,0,"th",6),t._uU(30,"\n "),t.YNc(31,Fo,2,1,"td",7),t._uU(32,"\n "),t.BQk(),t._uU(33,"\n\n "),t.ynx(34,10),t._uU(35,"\n "),t.YNc(36,Po,2,0,"th",6),t._uU(37,"\n "),t.YNc(38,Lo,2,2,"td",7),t._uU(39,"\n "),t.BQk(),t._uU(40,"\n\n "),t.ynx(41,11),t._uU(42,"\n "),t.YNc(43,ko,2,0,"th",6),t._uU(44,"\n "),t.YNc(45,Yo,2,2,"td",7),t._uU(46,"\n "),t.BQk(),t._uU(47,"\n\n "),t.ynx(48,12),t._uU(49,"\n "),t.YNc(50,Mo,2,0,"th",6),t._uU(51,"\n "),t.YNc(52,Jo,4,6,"td",7),t._uU(53,"\n "),t.BQk(),t._uU(54,"\n\n "),t.ynx(55,13),t._uU(56,"\n "),t.YNc(57,Qo,2,0,"th",6),t._uU(58,"\n "),t.YNc(59,Vo,8,3,"td",7),t._uU(60,"\n "),t.BQk(),t._uU(61,"\n\n "),t.YNc(62,Wo,1,0,"tr",14),t._uU(63,"\n "),t.YNc(64,jo,1,0,"tr",15),t._uU(65,"\n\n "),t.qZA(),t._uU(66,"\n\n "),t.qZA(),t._uU(67,"\n\n"),t.qZA(),t._uU(68,"\n")),2&e&&(t.xp6(10),t.Q6J("dataSource",a.dataSource),t.xp6(52),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",a.displayedColumns))},dependencies:[A.O5,T.lW,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,M.gM,w.A,I.E],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]}),n})(),$o=(()=>{class n{constructor(e){this.route=e,this.entityId=this.route.parent.parent.snapshot.paramMap.get("savingAccountId"),this.route.data.subscribe(a=>{this.entityDatatable=a.savingsDatatable,this.multiRowDatatableFlag="id"===this.entityDatatable.columnHeaders[0].columnName})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-datatable-tabs"]],decls:6,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Savings",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.TgZ(2,"mifosx-entity-datatable-tab",1),t._uU(3,"\n "),t.qZA(),t._uU(4,"\n"),t.qZA(),t._uU(5,"\n")),2&e&&(t.xp6(2),t.Q6J("entityId",a.entityId)("multiRowDatatableFlag",a.multiRowDatatableFlag)("entityDatatable",a.entityDatatable))},dependencies:[at.j]}),n})();var x=m(58425);function Xo(n,o){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function Ko(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",13),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(10);return t.KtG(i.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Submitted On"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",14),t._uU(6,"\n "),t._UZ(7,"mat-datepicker-toggle",15),t._uU(8,"\n "),t._UZ(9,"mat-datepicker",null,16),t._uU(11,"\n "),t.TgZ(12,"mat-error"),t._uU(13,"\n Submission Date is "),t.TgZ(14,"strong"),t._uU(15,"required"),t.qZA(),t._uU(16,"\n "),t.qZA(),t._uU(17,"\n "),t.qZA()}if(2&n){const e=t.MAs(10),a=t.oxw();t.xp6(5),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e)}}function ti(n,o){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.displayName,"\n ")}}function ni(n,o){if(1&n&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Field Officer"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"mat-select",17),t._uU(6,"\n "),t.YNc(7,ti,2,2,"mat-option",4),t._uU(8,"\n "),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(7),t.Q6J("ngForOf",e.fieldOfficerData)}}function ei(n,o){1&n&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"External ID"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",18),t._uU(6,"\n "),t.qZA())}let P=(()=>{class n{constructor(e,a,i){this.formBuilder=e,this.savingsService=a,this.settingsService=i,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isFieldOfficerPatched=!1,this.savingsProductSelected=!1,this.savingsAccountProductTemplate=new t.vpe,this.createSavingsAccountDetailsForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.buildDependencies(),this.savingsAccountTemplate&&(this.productData=this.savingsAccountTemplate.productOptions,this.savingsAccountDetailsForm.patchValue(this.savingsAccountTemplate.savingsProductId?{productId:this.savingsAccountTemplate.savingsProductId,submittedOnDate:this.savingsAccountTemplate.timeline.submittedOnDate&&new Date(this.savingsAccountTemplate.timeline.submittedOnDate),externalId:this.savingsAccountTemplate.externalId}:{submittedOnDate:new Date}))}createSavingsAccountDetailsForm(){this.savingsAccountDetailsForm=this.formBuilder.group({productId:["",s.kI.required],submittedOnDate:["",s.kI.required],fieldOfficerId:[""],externalId:[""]})}buildDependencies(){const e=this.savingsAccountTemplate.clientId||this.savingsAccountTemplate.groupId;this.savingsAccountDetailsForm.get("productId").valueChanges.subscribe(a=>{this.savingsService.getSavingsAccountTemplate(e,a,!!this.savingsAccountTemplate.groupId).subscribe(i=>{this.savingsAccountProductTemplate.emit(i),this.fieldOfficerData=i.fieldOfficerOptions,this.savingsProductSelected=!0,!this.isFieldOfficerPatched&&this.savingsAccountTemplate.fieldOfficerId?(this.savingsAccountDetailsForm.get("fieldOfficerId").patchValue(this.savingsAccountTemplate.fieldOfficerId),this.isFieldOfficerPatched=!0):this.savingsAccountDetailsForm.get("fieldOfficerId").patchValue("")})})}get savingsAccountDetails(){return this.savingsAccountDetailsForm.getRawValue()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.d),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-details-step"]],inputs:{savingsAccountTemplate:"savingsAccountTemplate"},outputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate"},decls:42,vars:5,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["formControlName","productId","required",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48%",3,"click",4,"ngIf"],["fxFlex","48%",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlex","48%",3,"click"],["matInput","","formControlName","submittedOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["submittedOnDatePicker",""],["formControlName","fieldOfficerId"],["matInput","","formControlName","externalId"]],template:function(e,a){1&e&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7,"Product Name"),t.qZA(),t._uU(8,"\n "),t.TgZ(9,"mat-select",3),t._uU(10,"\n "),t.YNc(11,Xo,2,2,"mat-option",4),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"mat-error"),t._uU(15,"\n Product Name is "),t.TgZ(16,"strong"),t._uU(17,"required"),t.qZA(),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n\n "),t.YNc(21,Ko,18,4,"mat-form-field",5),t._uU(22,"\n\n "),t.YNc(23,ni,10,1,"mat-form-field",6),t._uU(24,"\n\n "),t.YNc(25,ei,7,0,"mat-form-field",6),t._uU(26,"\n\n "),t.qZA(),t._uU(27,"\n\n "),t.TgZ(28,"div",7),t._uU(29,"\n "),t.TgZ(30,"button",8),t._uU(31,"\n "),t._UZ(32,"fa-icon",9),t._uU(33,"\n Previous\n "),t.qZA(),t._uU(34,"\n "),t.TgZ(35,"button",10),t._uU(36,"\n Next\n "),t._UZ(37,"fa-icon",11),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&e&&(t.Q6J("formGroup",a.savingsAccountDetailsForm),t.xp6(11),t.Q6J("ngForOf",a.productData),t.xp6(10),t.Q6J("ngIf",a.savingsProductSelected),t.xp6(2),t.Q6J("ngIf",a.savingsProductSelected),t.xp6(2),t.Q6J("ngIf",a.savingsProductSelected))},dependencies:[A.sg,A.O5,q.BN,u.xw,u.SQ,u.Wh,u.yH,y.ey,T.lW,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,D.gD,x.Ic,x.fd,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u]}),n})();var st=m(44850);function ai(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function oi(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function ii(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function si(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function ci(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function ri(n,o){1&n&&(t.TgZ(0,"div",29),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field",30),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5,"Minimum Overdraft Required for Interest Calculation"),t.qZA(),t._uU(6,"\n "),t._UZ(7,"input",31),t._uU(8,"\n "),t.qZA(),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",30),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13,"Nominal Annual Interest for Overdraft"),t.qZA(),t._uU(14,"\n "),t._UZ(15,"input",32),t._uU(16,"\n "),t.qZA(),t._uU(17,"\n\n "),t.TgZ(18,"mat-form-field",30),t._uU(19,"\n "),t.TgZ(20,"mat-label"),t._uU(21,"Maximum Overdraft Amount Limit"),t.qZA(),t._uU(22,"\n "),t._UZ(23,"input",33),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.qZA())}function ui(n,o){1&n&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Balance Required for Interest Calculation"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",34),t._uU(6,"\n "),t.qZA())}let L=(()=>{class n{constructor(e,a){this.formBuilder=e,this.settingsService=a,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createSavingsAccountTermsForm(),this.buildDependencies()}ngOnChanges(){this.savingsAccountProductTemplate&&(this.savingsAccountTermsForm.patchValue({currencyCode:this.savingsAccountProductTemplate.currency.code,decimal:this.savingsAccountProductTemplate.currency.decimalPlaces,minBalanceForInterestCalculation:this.savingsAccountProductTemplate.minBalanceForInterestCalculation,nominalAnnualInterestRate:this.savingsAccountProductTemplate.nominalAnnualInterestRate,interestCompoundingPeriodType:this.savingsAccountProductTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.savingsAccountProductTemplate.interestPostingPeriodType.id,interestCalculationType:this.savingsAccountProductTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.savingsAccountProductTemplate.interestCalculationDaysInYearType.id,minRequiredOpeningBalance:this.savingsAccountProductTemplate.minRequiredOpeningBalance,allowOverdraft:this.savingsAccountProductTemplate.allowOverdraft,overdraftLimit:this.savingsAccountProductTemplate.overdraftLimit,enforceMinRequiredBalance:this.savingsAccountProductTemplate.enforceMinRequiredBalance,minOverdraftForInterestCalculation:this.savingsAccountProductTemplate.minOverdraftForInterestCalculation,nominalAnnualInterestRateOverdraft:this.savingsAccountProductTemplate.nominalAnnualInterestRateOverdraft,minRequiredBalance:this.savingsAccountProductTemplate.minRequiredBalance,withdrawalFeeForTransfers:this.savingsAccountProductTemplate.withdrawalFeeForTransfers}),this.setOptions())}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.savingsAccountTemplate&&this.savingsAccountTermsForm.patchValue({nominalAnnualInterestRate:this.savingsAccountTemplate.nominalAnnualInterestRate,interestCompoundingPeriodType:this.savingsAccountTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.savingsAccountTemplate.interestPostingPeriodType.id,interestCalculationType:this.savingsAccountTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.savingsAccountTemplate.interestCalculationDaysInYearType.id,minRequiredOpeningBalance:this.savingsAccountTemplate.minRequiredOpeningBalance,withdrawalFeeForTransfers:this.savingsAccountTemplate.withdrawalFeeForTransfers,lockinPeriodFrequency:this.savingsAccountTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.savingsAccountTemplate.lockinPeriodFrequencyType&&this.savingsAccountTemplate.lockinPeriodFrequencyType.id,allowOverdraft:this.savingsAccountTemplate.allowOverdraft,enforceMinRequiredBalance:this.savingsAccountTemplate.enforceMinRequiredBalance,minRequiredBalance:this.savingsAccountTemplate.minRequiredBalance})}createSavingsAccountTermsForm(){this.savingsAccountTermsForm=this.formBuilder.group({currencyCode:[{value:"",disabled:!0}],decimal:[{value:"",disabled:!0}],nominalAnnualInterestRate:["",s.kI.required],interestCompoundingPeriodType:["",s.kI.required],interestPostingPeriodType:["",s.kI.required],interestCalculationType:["",s.kI.required],interestCalculationDaysInYearType:["",s.kI.required],minRequiredOpeningBalance:[""],withdrawalFeeForTransfers:[!1],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],allowOverdraft:[!1],enforceMinRequiredBalance:[!1],minRequiredBalance:[""],minBalanceForInterestCalculation:[{value:"",disabled:!0}]})}setOptions(){this.lockinPeriodFrequencyTypeData=this.savingsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,this.interestCompoundingPeriodTypeData=this.savingsAccountProductTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.savingsAccountProductTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.savingsAccountProductTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.savingsAccountProductTemplate.interestCalculationDaysInYearTypeOptions}buildDependencies(){this.savingsAccountTermsForm.get("allowOverdraft").valueChanges.subscribe(e=>{e?(this.savingsAccountTermsForm.addControl("minOverdraftForInterestCalculation",new s.p4("")),this.savingsAccountTermsForm.addControl("nominalAnnualInterestRateOverdraft",new s.p4("")),this.savingsAccountTermsForm.addControl("overdraftLimit",new s.p4(""))):(this.savingsAccountTermsForm.removeControl("minOverdraftForInterestCalculation"),this.savingsAccountTermsForm.removeControl("nominalAnnualInterestRateOverdraft"),this.savingsAccountTermsForm.removeControl("overdraftLimit"))})}get savingsAccountTerms(){const e=this.savingsAccountTermsForm.getRawValue();return delete e.currencyCode,delete e.decimal,delete e.minBalanceForInterestCalculation,e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-terms-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate"},features:[t.TTD],decls:175,vars:8,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column","fxLayoutAlign.gt-sm","start center"],["fxFlex","48%"],["matInput","","formControlName","currencyCode"],["type","number","matInput","","formControlName","decimal"],["type","number","matInput","","formControlName","nominalAnnualInterestRate","required",""],["formControlName","interestCompoundingPeriodType","required",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","interestPostingPeriodType","required",""],["formControlName","interestCalculationType","required",""],["formControlName","interestCalculationDaysInYearType","required",""],["type","number","matInput","","formControlName","minRequiredOpeningBalance"],["fxFlex","48%","labelPosition","before","formControlName","withdrawalFeeForTransfers",1,"margin-v"],["fxFlex","98%",1,"mat-h4"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],["fxFlex","98%"],["fxFlex","23%",1,"mat-h3"],["fxFlex","73%","labelPosition","before","formControlName","allowOverdraft",1,"margin-b"],["fxFlexFill","","fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column",4,"ngIf"],["fxFlex","48%","labelPosition","before","formControlName","enforceMinRequiredBalance",1,"margin-v"],["type","number","matInput","","formControlName","minRequiredBalance"],["fxFlex","48%",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlexFill","","fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","31%"],["type","number","matInput","","formControlName","minOverdraftForInterestCalculation"],["type","number","matInput","","formControlName","nominalAnnualInterestRateOverdraft"],["type","number","matInput","","formControlName","overdraftLimit"],["type","number","matInput","","formControlName","minBalanceForInterestCalculation"]],template:function(e,a){1&e&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7,"Currency"),t.qZA(),t._uU(8,"\n "),t._UZ(9,"input",3),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n\n "),t.TgZ(12,"mat-form-field",2),t._uU(13,"\n "),t.TgZ(14,"mat-label"),t._uU(15,"Decimal Places"),t.qZA(),t._uU(16,"\n "),t._UZ(17,"input",4),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"mat-form-field",2),t._uU(21,"\n "),t.TgZ(22,"mat-label"),t._uU(23,"Nominal Annual Interest Rate"),t.qZA(),t._uU(24,"\n "),t._UZ(25,"input",5),t._uU(26,"\n "),t.TgZ(27,"mat-error"),t._uU(28,"\n Nominal Annual Interest is "),t.TgZ(29,"strong"),t._uU(30,"required"),t.qZA(),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA(),t._uU(33,"\n\n "),t.TgZ(34,"mat-form-field",2),t._uU(35,"\n "),t.TgZ(36,"mat-label"),t._uU(37,"Interest Compounding Period"),t.qZA(),t._uU(38,"\n "),t.TgZ(39,"mat-select",6),t._uU(40,"\n "),t.YNc(41,ai,2,2,"mat-option",7),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n "),t.TgZ(44,"mat-error"),t._uU(45,"\n Interest Compounding Period is "),t.TgZ(46,"strong"),t._uU(47,"required"),t.qZA(),t._uU(48,"\n "),t.qZA(),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n\n "),t.TgZ(51,"mat-form-field",2),t._uU(52,"\n "),t.TgZ(53,"mat-label"),t._uU(54,"Interest Posting Period"),t.qZA(),t._uU(55,"\n "),t.TgZ(56,"mat-select",8),t._uU(57,"\n "),t.YNc(58,oi,2,2,"mat-option",7),t._uU(59,"\n "),t.qZA(),t._uU(60,"\n "),t.TgZ(61,"mat-error"),t._uU(62,"\n Interest Posting Period is "),t.TgZ(63,"strong"),t._uU(64,"required"),t.qZA(),t._uU(65,"\n "),t.qZA(),t._uU(66,"\n "),t.qZA(),t._uU(67,"\n\n "),t.TgZ(68,"mat-form-field",2),t._uU(69,"\n "),t.TgZ(70,"mat-label"),t._uU(71,"Interest Calculated using"),t.qZA(),t._uU(72,"\n "),t.TgZ(73,"mat-select",9),t._uU(74,"\n "),t.YNc(75,ii,2,2,"mat-option",7),t._uU(76,"\n "),t.qZA(),t._uU(77,"\n "),t.TgZ(78,"mat-error"),t._uU(79,"\n Interest Calculated using is "),t.TgZ(80,"strong"),t._uU(81,"required"),t.qZA(),t._uU(82,"\n "),t.qZA(),t._uU(83,"\n "),t.qZA(),t._uU(84,"\n\n "),t.TgZ(85,"mat-form-field",2),t._uU(86,"\n "),t.TgZ(87,"mat-label"),t._uU(88,"Days in Year"),t.qZA(),t._uU(89,"\n "),t.TgZ(90,"mat-select",10),t._uU(91,"\n "),t.YNc(92,si,2,2,"mat-option",7),t._uU(93,"\n "),t.qZA(),t._uU(94,"\n "),t.TgZ(95,"mat-error"),t._uU(96,"\n Days in Year is "),t.TgZ(97,"strong"),t._uU(98,"required"),t.qZA(),t._uU(99,"\n "),t.qZA(),t._uU(100,"\n "),t.qZA(),t._uU(101,"\n\n "),t.TgZ(102,"mat-form-field",2),t._uU(103,"\n "),t.TgZ(104,"mat-label"),t._uU(105,"Minimum Opening Balance"),t.qZA(),t._uU(106,"\n "),t._UZ(107,"input",11),t._uU(108,"\n "),t.qZA(),t._uU(109,"\n\n "),t.TgZ(110,"mat-checkbox",12),t._uU(111,"\n Apply Withdrawal Fee for Transfers\n "),t.qZA(),t._uU(112,"\n\n "),t.TgZ(113,"h4",13),t._uU(114,"Lock-in Period"),t.qZA(),t._uU(115,"\n\n "),t.TgZ(116,"mat-form-field",2),t._uU(117,"\n "),t.TgZ(118,"mat-label"),t._uU(119,"Frequency"),t.qZA(),t._uU(120,"\n "),t._UZ(121,"input",14),t._uU(122,"\n "),t.qZA(),t._uU(123,"\n\n "),t.TgZ(124,"mat-form-field",2),t._uU(125,"\n "),t.TgZ(126,"mat-label"),t._uU(127,"Type"),t.qZA(),t._uU(128,"\n "),t.TgZ(129,"mat-select",15),t._uU(130,"\n "),t.YNc(131,ci,2,2,"mat-option",7),t._uU(132,"\n "),t.qZA(),t._uU(133,"\n "),t.qZA(),t._uU(134,"\n\n "),t._UZ(135,"mat-divider",16),t._uU(136,"\n\n "),t.TgZ(137,"h3",17),t._uU(138,"Overdraft"),t.qZA(),t._uU(139,"\n\n "),t.TgZ(140,"mat-checkbox",18),t._uU(141,"\n Is Overdraft Allowed?\n "),t.qZA(),t._uU(142,"\n\n "),t.YNc(143,ri,26,0,"div",19),t._uU(144,"\n\n "),t._UZ(145,"mat-divider",16),t._uU(146,"\n\n "),t.TgZ(147,"mat-checkbox",20),t._uU(148,"\n Enforce Minimum Balance\n "),t.qZA(),t._uU(149,"\n\n "),t.TgZ(150,"mat-form-field",2),t._uU(151,"\n "),t.TgZ(152,"mat-label"),t._uU(153,"Minimum Balance"),t.qZA(),t._uU(154,"\n "),t._UZ(155,"input",21),t._uU(156,"\n "),t.qZA(),t._uU(157,"\n\n "),t.YNc(158,ui,7,0,"mat-form-field",22),t._uU(159,"\n\n "),t.qZA(),t._uU(160,"\n\n "),t.TgZ(161,"div",23),t._uU(162,"\n "),t.TgZ(163,"button",24),t._uU(164,"\n "),t._UZ(165,"fa-icon",25),t._uU(166,"\n Previous\n "),t.qZA(),t._uU(167,"\n "),t.TgZ(168,"button",26),t._uU(169,"\n Next\n "),t._UZ(170,"fa-icon",27),t._uU(171,"\n "),t.qZA(),t._uU(172,"\n "),t.qZA(),t._uU(173,"\n\n"),t.qZA(),t._uU(174,"\n")),2&e&&(t.Q6J("formGroup",a.savingsAccountTermsForm),t.xp6(41),t.Q6J("ngForOf",a.interestCompoundingPeriodTypeData),t.xp6(17),t.Q6J("ngForOf",a.interestPostingPeriodTypeData),t.xp6(17),t.Q6J("ngForOf",a.interestCalculationTypeData),t.xp6(17),t.Q6J("ngForOf",a.interestCalculationDaysInYearTypeData),t.xp6(39),t.Q6J("ngForOf",a.lockinPeriodFrequencyTypeData),t.xp6(12),t.Q6J("ngIf",a.savingsAccountTermsForm.value.allowOverdraft),t.xp6(15),t.Q6J("ngIf",a.savingsAccountTermsForm.controls.minBalanceForInterestCalculation.value))},dependencies:[A.sg,A.O5,q.BN,u.xw,u.SQ,u.Wh,u.s9,u.yH,y.ey,T.lW,W.oG,st.d,g.TO,g.KE,g.hX,b.Nt,D.gD,x.Ic,x.fd,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();var li=m(63613);function mi(n,o){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function _i(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Name "),t.qZA())}function gi(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.name+", "+e.currency.displaySymbol,"\n ")}}function pi(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Type "),t.qZA())}function di(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeCalculationType.value,"\n ")}}function fi(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Amount "),t.qZA())}function Ai(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",28),t._uU(1),t.TgZ(2,"button",29),t.NdJ("click",function(){const c=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.editChargeAmount(c))}),t._uU(3,"\n "),t._UZ(4,"fa-icon",30),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.qZA()}if(2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.amount,"\n ")}}function vi(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Collected On "),t.qZA())}function Ui(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeTimeType.value,"\n ")}}function hi(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Date "),t.qZA())}function Ti(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.dueDate)||"Unassigned","\n ")}}function Zi(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.feeOnMonthDay)||"Unassigned","\n ")}}function Ci(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n N/A\n "),t.qZA())}function xi(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,c=t.oxw(2);return t.KtG(c.editChargeDate(i))}),t._uU(1,"\n "),t._UZ(2,"fa-icon",30),t._uU(3,"\n "),t.qZA()}}function bi(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1,"\n "),t.YNc(2,Ti,3,3,"span",31),t._uU(3,"\n "),t.YNc(4,Zi,3,3,"span",31),t._uU(5,"\n "),t.YNc(6,Ci,2,0,"span",31),t._uU(7,"\n "),t.YNc(8,xi,4,0,"button",32),t._uU(9,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf","Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf",!("Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value)),t.xp6(2),t.Q6J("ngIf","Weekly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value)}}function Si(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Repayments Every "),t.qZA())}function qi(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,c=t.oxw(2);return t.KtG(c.editChargeFeeInterval(i))}),t._uU(1,"\n "),t._UZ(2,"fa-icon",30),t._uU(3,"\n "),t.qZA()}}function yi(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.YNc(2,qi,4,0,"button",32),t._uU(3,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.feeInterval||"Not Provided","\n "),t.xp6(1),t.Q6J("ngIf","Weekly Fee"===e.chargeTimeType.value||"Monthly Fee"===e.chargeTimeType.value)}}function Di(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Actions "),t.qZA())}function Ii(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",28),t._uU(1,"\n "),t.TgZ(2,"button",33),t.NdJ("click",function(){const c=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.deleteCharge(c))}),t._uU(3,"\n "),t._UZ(4,"fa-icon",34),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.qZA()}}function Ni(n,o){1&n&&t._UZ(0,"tr",35)}function wi(n,o){1&n&&t._UZ(0,"tr",36)}function Oi(n,o){if(1&n&&(t.TgZ(0,"table",15),t._uU(1,"\n\n "),t.ynx(2,16),t._uU(3,"\n "),t.YNc(4,_i,2,0,"th",17),t._uU(5,"\n "),t.YNc(6,gi,2,1,"td",18),t._uU(7,"\n "),t.BQk(),t._uU(8,"\n\n "),t.ynx(9,19),t._uU(10,"\n "),t.YNc(11,pi,2,0,"th",17),t._uU(12,"\n "),t.YNc(13,di,2,1,"td",18),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,20),t._uU(17,"\n "),t.YNc(18,fi,2,0,"th",17),t._uU(19,"\n "),t.YNc(20,Ai,7,1,"td",18),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,21),t._uU(24,"\n "),t.YNc(25,vi,2,0,"th",17),t._uU(26,"\n "),t.YNc(27,Ui,2,1,"td",18),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,22),t._uU(31,"\n "),t.YNc(32,hi,2,0,"th",17),t._uU(33,"\n "),t.YNc(34,bi,10,4,"td",18),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,23),t._uU(38,"\n "),t.YNc(39,Si,2,0,"th",17),t._uU(40,"\n "),t.YNc(41,yi,4,2,"td",18),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.ynx(44,24),t._uU(45,"\n "),t.YNc(46,Di,2,0,"th",17),t._uU(47,"\n "),t.YNc(48,Ii,7,0,"td",18),t._uU(49,"\n "),t.BQk(),t._uU(50,"\n\n "),t.YNc(51,Ni,1,0,"tr",25),t._uU(52,"\n "),t.YNc(53,wi,1,0,"tr",26),t._uU(54,"\n\n "),t.qZA()),2&n){const e=t.oxw();t.Q6J("dataSource",e.chargesDataSource),t.xp6(51),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",e.displayedColumns)}}function Fi(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"th",27),t._uU(1,"\n "),t.TgZ(2,"mat-checkbox",41),t.NdJ("change",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.toggleSelects())})("ngModelChange",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.selectAllItems=i)}),t.qZA(),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngModel",e.selectAllItems)}}function Pi(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",28),t._uU(1,"\n "),t.TgZ(2,"mat-checkbox",41),t.NdJ("change",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.toggleSelect())})("ngModelChange",function(i){const r=t.CHM(e).$implicit;return t.KtG(r.selected=i)}),t.qZA(),t._uU(3,"\n "),t.qZA()}if(2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngModel",e.selected)}}function Li(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Client ID "),t.qZA())}function ki(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Yi(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1," Client Name "),t.qZA())}function Mi(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.displayName," ")}}function Ji(n,o){1&n&&t._UZ(0,"tr",35)}function Qi(n,o){1&n&&t._UZ(0,"tr",36)}function Ri(n,o){if(1&n&&(t.TgZ(0,"div",37),t._uU(1,"\n "),t.TgZ(2,"table",38),t._uU(3,"\n\n "),t._uU(4,"\n "),t.ynx(5,39),t._uU(6,"\n "),t.YNc(7,Fi,4,1,"th",17),t._uU(8,"\n "),t.YNc(9,Pi,4,1,"td",18),t._uU(10,"\n "),t.BQk(),t._uU(11,"\n\n "),t._uU(12,"\n "),t.ynx(13,40),t._uU(14,"\n "),t.YNc(15,Li,2,0,"th",17),t._uU(16,"\n "),t.YNc(17,ki,2,1,"td",18),t._uU(18,"\n "),t.BQk(),t._uU(19,"\n\n "),t._uU(20,"\n "),t.ynx(21,16),t._uU(22,"\n "),t.YNc(23,Yi,2,0,"th",17),t._uU(24,"\n "),t.YNc(25,Mi,2,1,"td",18),t._uU(26,"\n "),t.BQk(),t._uU(27,"\n\n\n "),t.YNc(28,Ji,1,0,"tr",25),t._uU(29,"\n "),t.YNc(30,Qi,1,0,"tr",26),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(26),t.Q6J("matHeaderRowDef",e.displayedColumn),t.xp6(2),t.Q6J("matRowDefColumns",e.displayedColumn)}}let k=(()=>{class n{constructor(e,a){this.dialog=e,this.dateUtils=a,this.chargeData=[],this.chargesDataSource=[],this.pristine=!0,this.isChargesPatched=!1,this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery","action"],this.selectAllItems=!1,this.loanPurposeOptions=[],this.displayedColumn=["check","id","name"]}ngOnInit(){this.savingsAccountTemplate&&(!this.isChargesPatched&&this.savingsAccountTemplate.charges?(this.chargesDataSource=this.savingsAccountProductTemplate.charges.map(e=>({...e,id:e.chargeId}))||[],this.isChargesPatched=!0):this.chargesDataSource=[],this.dataSource=new p.by(this.activeClientMembers))}ngOnChanges(){this.savingsAccountProductTemplate&&(this.chargeData=this.savingsAccountProductTemplate.chargeOptions,this.chargesDataSource=this.savingsAccountProductTemplate.charges.map(e=>({...e,id:e.chargeId}))||[])}addCharge(e){this.chargesDataSource=this.chargesDataSource.concat([e.value]),e.value="",this.pristine=!1}editChargeAmount(e){const a=[new F.M({controlName:"amount",label:"Amount",value:e.amount,type:"number",required:!1})];this.dialog.open(N.E,{data:{title:"Edit Charge Amount",layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){const _={...e,amount:r.data.value.amount};this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,_),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeDate(e){const a=[new j.d({controlName:"date",label:"Date",value:e.dueDate||e.feeOnMonthDay||"",type:"datetime-local",required:!1})];this.dialog.open(N.E,{data:{title:"Edit Charge Date",layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){let _;const Y=this.dateUtils.formatDate(r.data.value.date,"dd MMMM yyyy");switch(e.chargeTimeType.value){case"Specified due date":case"Weekly Fee":_={...e,dueDate:Y};break;case"Annual Fee":_={...e,feeOnMonthDay:Y}}this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,_),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeFeeInterval(e){const a=[new F.M({controlName:"feeInterval",label:"Fee Interval",value:e.feeInterval,type:"text",required:!1})];this.dialog.open(N.E,{data:{title:"Edit Charge Fee Interval",layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){const _={...e,feeInterval:r.data.value.feeInterval};this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,_),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}deleteCharge(e){this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1}get savingsAccountCharges(){return{charges:this.chargesDataSource}}get selectedClientMembers(){return{selectedMembers:this.activeClientMembers.filter(e=>e.selected)}}toggleSelects(){for(const e of this.activeClientMembers)e.selected=this.selectAllItems}toggleSelect(){const e=this.activeClientMembers.length;this.selectAllItems=0!==e&&this.activeClientMembers.filter(a=>a.selected).length===e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.uw),t.Y36(C.L))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-charges-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate",currencyCode:"currencyCode",activeClientMembers:"activeClientMembers"},features:[t.TTD],decls:41,vars:8,consts:[["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["charge",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48%","fxFlexAlign","center"],["type","button","mat-raised-button","","color","primary",3,"disabled","click"],["icon","plus",1,"m-r-10"],["fxFlex","98%","class","mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["fxFlex","98%",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlex","98%","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],[4,"ngIf"],["mat-icon-button","","color","primary",3,"click",4,"ngIf"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""],["fxFlex","98%"],["fxFlex","98%","mat-table","",3,"dataSource"],["matColumnDef","check"],["matColumnDef","id"],[3,"ngModel","change","ngModelChange"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field",1),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5,"Charge"),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"mat-select",null,2),t._uU(9,"\n "),t.YNc(10,mi,2,2,"mat-option",3),t.ALo(11,"chargesFilter"),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.TgZ(15,"div",4),t._uU(16,"\n "),t.TgZ(17,"button",5),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(8);return t.KtG(a.addCharge(r))}),t._uU(18,"\n "),t._UZ(19,"fa-icon",6),t._uU(20,"\n Add\n "),t.qZA(),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n\n "),t.YNc(23,Oi,55,3,"table",7),t._uU(24,"\n\n "),t.YNc(25,Ri,33,3,"div",8),t._uU(26,"\n\n\n"),t.qZA(),t._uU(27,"\n\n"),t.TgZ(28,"div",9),t._uU(29,"\n "),t.TgZ(30,"button",10),t._uU(31,"\n "),t._UZ(32,"fa-icon",11),t._uU(33,"\n Previous\n "),t.qZA(),t._uU(34,"\n "),t.TgZ(35,"button",12),t._uU(36,"\n Next\n "),t._UZ(37,"fa-icon",13),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n"),t.qZA(),t._uU(40,"\n")}if(2&e){const i=t.MAs(8);t.xp6(10),t.Q6J("ngForOf",t.Dn7(11,4,a.chargeData,a.chargesDataSource,a.currencyCode.value)),t.xp6(7),t.Q6J("disabled",!i.value),t.xp6(6),t.Q6J("ngIf",a.chargesDataSource.length>0),t.xp6(2),t.Q6J("ngIf",a.activeClientMembers)}},dependencies:[A.sg,A.O5,q.BN,u.xw,u.SQ,u.Wh,u.XD,u.yH,y.ey,T.lW,W.oG,g.KE,g.hX,D.gD,x.Ic,x.fd,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,s.JJ,s.On,li.A,I.E],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();var Ei=m(27676),Gi=m(30637);function Bi(n,o){if(1&n&&(t.TgZ(0,"span",4),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",13),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.s9C("externalId",e.savingsAccount.externalId)}}function Hi(n,o){1&n&&(t.TgZ(0,"span",4),t._uU(1,"\n Unassigned\n "),t.qZA())}function Vi(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3,"Minimum Opening Balance:"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"span",4),t._uU(6),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(e.savingsAccount.minRequiredOpeningBalance)}}function Wi(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3,"Lock-in Period:"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"span",4),t._uU(6),t.ALo(7,"find"),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(e.savingsAccount.lockinPeriodFrequency+" "+t.gM2(7,1,e.savingsAccount.lockinPeriodFrequencyType,e.savingsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,"id","value"))}}function ji(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3,"Minimum Overdraft Required for Interest Calculation:"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"span",4),t._uU(6),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(e.savingsAccount.minOverdraftForInterestCalculation)}}function zi(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3,"Nominal Annual Interest for Overdraft:"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"span",4),t._uU(6),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(e.savingsAccount.nominalAnnualInterestRateOverdraft)}}function $i(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3,"Maximum Overdraft Amount Limit:"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"span",4),t._uU(6),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(e.savingsAccount.overdraftLimit)}}function Xi(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3,"Minimum Balance:"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"span",4),t._uU(6),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(e.savingsAccount.minRequiredBalance)}}function Ki(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1," Name "),t.qZA())}function ts(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.name+", "+e.currency.displaySymbol,"\n ")}}function ns(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1," Type "),t.qZA())}function es(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeCalculationType.value,"\n ")}}function as(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1," Amount "),t.qZA())}function os(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.amount,"\n ")}}function is(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1," Date "),t.qZA())}function ss(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.dueDate)||"Unassigned","\n ")}}function cs(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.feeOnMonthDay)||"Unassigned","\n ")}}function rs(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n N/A\n "),t.qZA())}function us(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1,"\n "),t.YNc(2,ss,3,3,"span",28),t._uU(3,"\n "),t.YNc(4,cs,3,3,"span",28),t._uU(5,"\n "),t.YNc(6,rs,2,0,"span",28),t._uU(7,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf","Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf",!("Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value))}}function ls(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1," Repayments Every "),t.qZA())}function ms(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.feeInterval||"Not Provided","\n ")}}function _s(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1," Collected On "),t.qZA())}function gs(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeTimeType.value,"\n ")}}function ps(n,o){1&n&&t._UZ(0,"tr",29)}function ds(n,o){1&n&&t._UZ(0,"tr",30)}function fs(n,o){if(1&n&&(t.TgZ(0,"div",14),t._uU(1,"\n\n "),t.TgZ(2,"h3",1),t._uU(3,"Charges"),t.qZA(),t._uU(4,"\n\n "),t._UZ(5,"mat-divider",2),t._uU(6,"\n\n "),t.TgZ(7,"table",15),t._uU(8,"\n\n "),t.ynx(9,16),t._uU(10,"\n "),t.YNc(11,Ki,2,0,"th",17),t._uU(12,"\n "),t.YNc(13,ts,2,1,"td",18),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,19),t._uU(17,"\n "),t.YNc(18,ns,2,0,"th",17),t._uU(19,"\n "),t.YNc(20,es,2,1,"td",18),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,20),t._uU(24,"\n "),t.YNc(25,as,2,0,"th",17),t._uU(26,"\n "),t.YNc(27,os,2,1,"td",18),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,21),t._uU(31,"\n "),t.YNc(32,is,2,0,"th",17),t._uU(33,"\n "),t.YNc(34,us,8,3,"td",18),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,22),t._uU(38,"\n "),t.YNc(39,ls,2,0,"th",17),t._uU(40,"\n "),t.YNc(41,ms,2,1,"td",18),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.ynx(44,23),t._uU(45,"\n "),t.YNc(46,_s,2,0,"th",17),t._uU(47,"\n "),t.YNc(48,gs,2,1,"td",18),t._uU(49,"\n "),t.BQk(),t._uU(50,"\n\n "),t.YNc(51,ps,1,0,"tr",24),t._uU(52,"\n "),t.YNc(53,ds,1,0,"tr",25),t._uU(54,"\n\n "),t.qZA(),t._uU(55,"\n\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(7),t.Q6J("dataSource",e.savingsAccount.charges),t.xp6(44),t.Q6J("matHeaderRowDef",e.chargesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",e.chargesDisplayedColumns)}}const As=function(){return["../"]};let z=(()=>{class n{constructor(){this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery"],this.submit=new t.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-preview-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate",savingsAccountTermsForm:"savingsAccountTermsForm",savingsAccount:"savingsAccount"},outputs:{submit:"submit"},decls:178,vars:62,consts:[["fxLayout","row wrap","fxLayout.lt-md","column"],["fxFlexFill","",1,"mat-h3"],["fxFlexFill",""],["fxFlex","40%"],["fxFlex","60%"],["fxFlex","60%",4,"ngIf"],["fxFlexFill","",4,"ngIf"],["fxFlexFill","","fxLayout","row wrap","fxLayout.lt-md","column",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],[3,"externalId"],["fxFlexFill","","fxLayout","row wrap","fxLayout.lt-md","column"],["fxFlexFill","","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","chargeTimeType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"h3",1),t._uU(3,"Details"),t.qZA(),t._uU(4,"\n\n "),t._UZ(5,"mat-divider",2),t._uU(6,"\n\n "),t.TgZ(7,"div",2),t._uU(8,"\n "),t.TgZ(9,"span",3),t._uU(10,"Product"),t.qZA(),t._uU(11,"\n "),t.TgZ(12,"span",4),t._uU(13),t.ALo(14,"find"),t.qZA(),t._uU(15,"\n "),t.qZA(),t._uU(16,"\n\n "),t.TgZ(17,"div",2),t._uU(18,"\n "),t.TgZ(19,"span",3),t._uU(20,"Submitted On"),t.qZA(),t._uU(21,"\n "),t.TgZ(22,"span",4),t._uU(23),t.ALo(24,"dateFormat"),t.qZA(),t._uU(25,"\n "),t.qZA(),t._uU(26,"\n\n "),t.TgZ(27,"div",2),t._uU(28,"\n "),t.TgZ(29,"span",3),t._uU(30,"External Id"),t.qZA(),t._uU(31,"\n "),t.YNc(32,Bi,4,1,"span",5),t._uU(33,"\n "),t.YNc(34,Hi,2,0,"span",5),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"div",2),t._uU(38,"\n "),t.TgZ(39,"span",3),t._uU(40,"Field Officer"),t.qZA(),t._uU(41,"\n "),t.TgZ(42,"span",4),t._uU(43),t.ALo(44,"find"),t.qZA(),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"h3",1),t._uU(48,"Terms"),t.qZA(),t._uU(49,"\n\n "),t._UZ(50,"mat-divider",2),t._uU(51,"\n\n "),t.TgZ(52,"div",2),t._uU(53,"\n "),t.TgZ(54,"span",3),t._uU(55,"Currency"),t.qZA(),t._uU(56,"\n "),t.TgZ(57,"span",4),t._uU(58),t.qZA(),t._uU(59,"\n "),t.qZA(),t._uU(60,"\n\n "),t.TgZ(61,"div",2),t._uU(62,"\n "),t.TgZ(63,"span",3),t._uU(64,"Decimal Places"),t.qZA(),t._uU(65,"\n "),t.TgZ(66,"span",4),t._uU(67),t.qZA(),t._uU(68,"\n "),t.qZA(),t._uU(69,"\n\n "),t.TgZ(70,"div",2),t._uU(71,"\n "),t.TgZ(72,"span",3),t._uU(73,"Nominal Annual Interest Rate:"),t.qZA(),t._uU(74,"\n "),t.TgZ(75,"span",4),t._uU(76),t.qZA(),t._uU(77,"\n "),t.qZA(),t._uU(78,"\n\n "),t.TgZ(79,"div",2),t._uU(80,"\n "),t.TgZ(81,"span",3),t._uU(82,"Interest Compounding Period:"),t.qZA(),t._uU(83,"\n "),t.TgZ(84,"span",4),t._uU(85),t.ALo(86,"find"),t.qZA(),t._uU(87,"\n "),t.qZA(),t._uU(88,"\n\n "),t.TgZ(89,"div",2),t._uU(90,"\n "),t.TgZ(91,"span",3),t._uU(92,"Interest Posting Period:"),t.qZA(),t._uU(93,"\n "),t.TgZ(94,"span",4),t._uU(95),t.ALo(96,"find"),t.qZA(),t._uU(97,"\n "),t.qZA(),t._uU(98,"\n\n "),t.TgZ(99,"div",2),t._uU(100,"\n "),t.TgZ(101,"span",3),t._uU(102,"Interest Calculated using:"),t.qZA(),t._uU(103,"\n "),t.TgZ(104,"span",4),t._uU(105),t.ALo(106,"find"),t.qZA(),t._uU(107,"\n "),t.qZA(),t._uU(108,"\n\n "),t.TgZ(109,"div",2),t._uU(110,"\n "),t.TgZ(111,"span",3),t._uU(112,"Days in Year:"),t.qZA(),t._uU(113,"\n "),t.TgZ(114,"span",4),t._uU(115),t.ALo(116,"find"),t.qZA(),t._uU(117,"\n "),t.qZA(),t._uU(118,"\n\n "),t.YNc(119,Vi,8,1,"div",6),t._uU(120,"\n\n "),t.TgZ(121,"div",2),t._uU(122,"\n "),t.TgZ(123,"span",3),t._uU(124,"Apply Withdrawal Fee for Transfers:"),t.qZA(),t._uU(125,"\n "),t.TgZ(126,"span",4),t._uU(127),t.ALo(128,"yesNo"),t.qZA(),t._uU(129,"\n "),t.qZA(),t._uU(130,"\n\n "),t.YNc(131,Wi,9,6,"div",6),t._uU(132,"\n\n "),t.TgZ(133,"div",2),t._uU(134,"\n "),t.TgZ(135,"span",3),t._uU(136,"Is Overdraft Allowed:"),t.qZA(),t._uU(137,"\n "),t.TgZ(138,"span",4),t._uU(139),t.ALo(140,"yesNo"),t.qZA(),t._uU(141,"\n "),t.qZA(),t._uU(142,"\n\n "),t.YNc(143,ji,8,1,"div",6),t._uU(144,"\n\n "),t.YNc(145,zi,8,1,"div",6),t._uU(146,"\n\n "),t.YNc(147,$i,8,1,"div",6),t._uU(148,"\n\n "),t.TgZ(149,"div",2),t._uU(150,"\n "),t.TgZ(151,"span",3),t._uU(152,"Enforce Minimum Balance:"),t.qZA(),t._uU(153,"\n "),t.TgZ(154,"span",4),t._uU(155),t.ALo(156,"yesNo"),t.qZA(),t._uU(157,"\n "),t.qZA(),t._uU(158,"\n\n "),t.YNc(159,Xi,8,1,"div",6),t._uU(160,"\n\n "),t.YNc(161,fs,56,3,"div",7),t._uU(162,"\n\n"),t.qZA(),t._uU(163,"\n\n"),t.TgZ(164,"div",8),t._uU(165,"\n "),t.TgZ(166,"button",9),t._uU(167,"\n "),t._UZ(168,"fa-icon",10),t._uU(169,"\n Previous\n "),t.qZA(),t._uU(170,"\n "),t.TgZ(171,"button",11),t._uU(172,"\n Cancel\n "),t.qZA(),t._uU(173,"\n "),t.TgZ(174,"button",12),t.NdJ("click",function(){return a.submit.emit()}),t._uU(175,"\n Submit\n "),t.qZA(),t._uU(176,"\n"),t.qZA(),t._uU(177,"\n")),2&e&&(t.xp6(13),t.Oqu(t.gM2(14,23,a.savingsAccount.productId,a.savingsAccountTemplate.productOptions,"id","name")),t.xp6(10),t.Oqu(t.lcZ(24,28,a.savingsAccount.submittedOnDate)),t.xp6(9),t.Q6J("ngIf",a.savingsAccount.externalId),t.xp6(2),t.Q6J("ngIf",!a.savingsAccount.externalId),t.xp6(9),t.Oqu(t.gM2(44,30,a.savingsAccount.fieldOfficerId,a.savingsAccountProductTemplate.fieldOfficerOptions,"id","displayName")),t.xp6(15),t.Oqu(a.savingsAccountTermsForm.get("currencyCode").value),t.xp6(9),t.Oqu(a.savingsAccountTermsForm.get("decimal").value),t.xp6(9),t.Oqu(a.savingsAccount.nominalAnnualInterestRate),t.xp6(9),t.Oqu(t.gM2(86,35,a.savingsAccount.interestCompoundingPeriodType,a.savingsAccountProductTemplate.interestCompoundingPeriodTypeOptions,"id","value")),t.xp6(10),t.Oqu(t.gM2(96,40,a.savingsAccount.interestPostingPeriodType,a.savingsAccountProductTemplate.interestPostingPeriodTypeOptions,"id","value")),t.xp6(10),t.Oqu(t.gM2(106,45,a.savingsAccount.interestCalculationType,a.savingsAccountProductTemplate.interestCalculationTypeOptions,"id","value")),t.xp6(10),t.Oqu(t.gM2(116,50,a.savingsAccount.interestCalculationDaysInYearType,a.savingsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,"id","value")),t.xp6(4),t.Q6J("ngIf",a.savingsAccount.minRequiredOpeningBalance),t.xp6(8),t.Oqu(t.lcZ(128,55,a.savingsAccount.withdrawalFeeForTransfers)),t.xp6(4),t.Q6J("ngIf",a.savingsAccount.lockinPeriodFrequency),t.xp6(8),t.Oqu(t.lcZ(140,57,a.savingsAccount.allowOverdraft)),t.xp6(4),t.Q6J("ngIf",a.savingsAccount.minOverdraftForInterestCalculation),t.xp6(2),t.Q6J("ngIf",a.savingsAccount.nominalAnnualInterestRateOverdraft),t.xp6(2),t.Q6J("ngIf",a.savingsAccount.overdraftLimit),t.xp6(8),t.Oqu(t.lcZ(156,59,a.savingsAccount.enforceMinRequiredBalance)),t.xp6(4),t.Q6J("ngIf",a.savingsAccount.minRequiredBalance),t.xp6(2),t.Q6J("ngIf",a.savingsAccount.charges.length),t.xp6(10),t.Q6J("routerLink",t.DdM(61,As)))},dependencies:[A.O5,q.BN,u.xw,u.SQ,u.Wh,u.s9,u.yH,T.lW,st.d,x.fd,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,nt.e,l.rH,Ei.Z,I.E,Gi.D],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();function vs(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function Us(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function hs(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function Ts(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function Zs(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",17),t._uU(2,"\n "))}function Cs(n,o){1&n&&t._uU(0,"DETAILS")}function xs(n,o){1&n&&t._uU(0,"TERMS")}function bs(n,o){1&n&&t._uU(0,"CHARGES")}function Ss(n,o){1&n&&t._uU(0,"PREVIEW")}function qs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",18),t._uU(1,"\n\n "),t.YNc(2,Ss,1,0,"ng-template",9),t._uU(3,"\n\n "),t.TgZ(4,"mifosx-savings-account-preview-step",19),t.NdJ("submit",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)}}let ys=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.router=a,this.dateUtils=i,this.savingsService=c,this.settingsService=r,this.route.data.subscribe(_=>{this.savingsAccountTemplate=_.savingsAccountTemplate})}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get savingsAccountFormValid(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid}get savingsAccount(){return{...this.savingsAccountDetailsStep.savingsAccountDetails,...this.savingsAccountTermsStep.savingsAccountTerms,...this.savingsAccountChargesStep.savingsAccountCharges}}submit(){const e=this.settingsService.language.code,a=this.settingsService.dateFormat,c={...this.savingsAccount,charges:this.savingsAccount.charges.map(r=>({chargeId:r.id,amount:r.amount,dueDate:r.dueDate,feeOnMonthDay:r.feeOnMonthDay,feeInterval:r.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,a),dateFormat:a,monthDayFormat:"dd MMMM",locale:e};this.savingsAccountTemplate.clientId?c.clientId=this.savingsAccountTemplate.clientId:c.groupId=this.savingsAccountTemplate.groupId,this.savingsService.createSavingsAccount(c).subscribe(r=>{this.router.navigate(["../",r.resourceId],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(C.L),t.Y36(U.d),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-create-savings-account"]],viewQuery:function(e,a){if(1&e&&(t.Gf(P,7),t.Gf(L,7),t.Gf(k,7)),2&e){let i;t.iGM(i=t.CRH())&&(a.savingsAccountDetailsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountTermsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountChargesStep=i.first)}},decls:42,vars:8,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["savingProductStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountTemplate","savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode"],["completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["completed",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount","submit"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n\n "),t.YNc(5,vs,3,0,"ng-template",3),t._uU(6,"\n\n "),t.YNc(7,Us,3,0,"ng-template",4),t._uU(8,"\n\n "),t.YNc(9,hs,3,0,"ng-template",5),t._uU(10,"\n\n "),t.YNc(11,Ts,3,0,"ng-template",6),t._uU(12,"\n\n "),t.YNc(13,Zs,3,0,"ng-template",7),t._uU(14,"\n\n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n\n "),t.YNc(17,Cs,1,0,"ng-template",9),t._uU(18,"\n\n "),t.TgZ(19,"mifosx-savings-account-details-step",10),t.NdJ("savingsAccountProductTemplate",function(c){return a.setTemplate(c)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n\n "),t.YNc(25,xs,1,0,"ng-template",9),t._uU(26,"\n\n "),t._UZ(27,"mifosx-savings-account-terms-step",11),t._uU(28,"\n\n "),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"mat-step"),t._uU(31,"\n\n "),t.YNc(32,bs,1,0,"ng-template",9),t._uU(33,"\n\n "),t.TgZ(34,"mifosx-savings-account-charges-step",12),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n "),t.YNc(38,qs,7,4,"mat-step",13),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&e&&(t.xp6(15),t.Q6J("stepControl",a.savingsAccountDetailsForm),t.xp6(4),t.Q6J("savingsAccountTemplate",a.savingsAccountTemplate),t.xp6(4),t.Q6J("stepControl",a.savingsAccountTermsForm),t.xp6(4),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate),t.xp6(7),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate)("savingsAccountTemplate",a.savingsAccountTemplate)("currencyCode",a.savingsAccountTermsForm.get("currencyCode")),t.xp6(4),t.Q6J("ngIf",a.savingsAccountFormValid))},dependencies:[A.O5,q.BN,x.C0,x.VY,x.Vq,x.z9,P,k,L,z]}),n})();function Ds(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function Is(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function Ns(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function ws(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function Os(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",17),t._uU(2,"\n "))}function Fs(n,o){1&n&&t._uU(0,"DETAILS")}function Ps(n,o){1&n&&t._uU(0,"TERMS")}function Ls(n,o){1&n&&t._uU(0,"CHARGES")}function ks(n,o){1&n&&t._uU(0,"PREVIEW")}function Ys(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",18),t._uU(1,"\n\n "),t.YNc(2,ks,1,0,"ng-template",9),t._uU(3,"\n\n "),t.TgZ(4,"mifosx-savings-account-preview-step",19),t.NdJ("submit",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountAndTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)}}let Ms=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.router=a,this.dateUtils=i,this.savingsService=c,this.settingsService=r,this.route.data.subscribe(_=>{this.savingsAccountAndTemplate=_.savingsAccountAndTemplate})}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get savingsAccountFormValidAndNotPristine(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid&&(!this.savingsAccountDetailsForm.pristine||!this.savingsAccountTermsForm.pristine||!this.savingsAccountChargesStep.pristine)}get savingsAccount(){return{...this.savingsAccountDetailsStep.savingsAccountDetails,...this.savingsAccountTermsStep.savingsAccountTerms,...this.savingsAccountChargesStep.savingsAccountCharges}}submit(){const e=this.settingsService.language.code,a=this.settingsService.dateFormat,c={...this.savingsAccount,charges:this.savingsAccount.charges.map(r=>({chargeId:r.id,amount:r.amount,dueDate:this.dateUtils.formatDate(r.dueDate,a),feeOnMonthDay:this.dateUtils.formatDate(r.feeOnMonthDay,a),feeInterval:r.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,a),dateFormat:a,monthDayFormat:"dd MMMM",locale:e};this.savingsAccountAndTemplate.clientId?c.clientId=this.savingsAccountAndTemplate.clientId:c.groupId=this.savingsAccountAndTemplate.groupId,this.savingsService.updateSavingsAccount(this.savingsAccountAndTemplate.id,c).subscribe(r=>{this.router.navigate(["../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(C.L),t.Y36(U.d),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-edit-savings-account"]],viewQuery:function(e,a){if(1&e&&(t.Gf(P,7),t.Gf(L,7),t.Gf(k,7)),2&e){let i;t.iGM(i=t.CRH())&&(a.savingsAccountDetailsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountTermsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountChargesStep=i.first)}},decls:42,vars:9,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["savingProductStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountTemplate","savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode"],["completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["completed",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount","submit"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n\n "),t.YNc(5,Ds,3,0,"ng-template",3),t._uU(6,"\n\n "),t.YNc(7,Is,3,0,"ng-template",4),t._uU(8,"\n\n "),t.YNc(9,Ns,3,0,"ng-template",5),t._uU(10,"\n\n "),t.YNc(11,ws,3,0,"ng-template",6),t._uU(12,"\n\n "),t.YNc(13,Os,3,0,"ng-template",7),t._uU(14,"\n\n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n\n "),t.YNc(17,Fs,1,0,"ng-template",9),t._uU(18,"\n\n "),t.TgZ(19,"mifosx-savings-account-details-step",10),t.NdJ("savingsAccountProductTemplate",function(c){return a.setTemplate(c)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n\n "),t.YNc(25,Ps,1,0,"ng-template",9),t._uU(26,"\n\n "),t._UZ(27,"mifosx-savings-account-terms-step",11),t._uU(28,"\n\n "),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"mat-step"),t._uU(31,"\n\n "),t.YNc(32,Ls,1,0,"ng-template",9),t._uU(33,"\n\n "),t.TgZ(34,"mifosx-savings-account-charges-step",12),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n "),t.YNc(38,Ys,7,4,"mat-step",13),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&e&&(t.xp6(15),t.Q6J("stepControl",a.savingsAccountDetailsForm),t.xp6(4),t.Q6J("savingsAccountTemplate",a.savingsAccountAndTemplate),t.xp6(4),t.Q6J("stepControl",a.savingsAccountTermsForm),t.xp6(4),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate)("savingsAccountTemplate",a.savingsAccountAndTemplate),t.xp6(7),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate)("savingsAccountTemplate",a.savingsAccountAndTemplate)("currencyCode",a.savingsAccountTermsForm.get("currencyCode")),t.xp6(4),t.Q6J("ngIf",a.savingsAccountFormValidAndNotPristine))},dependencies:[A.O5,q.BN,x.C0,x.VY,x.Vq,x.z9,P,k,L,z]}),n})();const Js=function(n){return["./datatables",n]};function Qs(n,o){if(1&n&&(t.TgZ(0,"a",2,6),t._uU(2),t.qZA()),2&n){const e=t.MAs(1),a=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(3,Js,a.registeredTableName))("active",e.isActive),t.xp6(2),t.hij("\n ",a.registeredTableName,"\n ")}}function Rs(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Qs,3,5,"a",5),t._uU(3,"\n "),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission","READ_"+e.registeredTableName)}}const Es=function(){return["./general"]};let Gs=(()=>{class n{constructor(e,a){this.route=e,this.dialog=a,this.route.data.subscribe(i=>{this.accountId=this.route.snapshot.params.savingAccountId,this.entityDatatables=i.transactionDatatables})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(f.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-view-transaction"]],decls:14,vars:4,consts:[[1,"container"],["mat-tab-nav-bar","",1,"navigation-tabs"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["general","routerLinkActive"],[4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],["datatable","routerLinkActive"]],template:function(e,a){if(1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.TgZ(2,"nav",1),t._uU(3,"\n "),t.TgZ(4,"a",2,3),t._uU(6,"\n General\n "),t.qZA(),t._uU(7,"\n "),t.YNc(8,Rs,4,1,"ng-container",4),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n\n "),t._UZ(11,"router-outlet"),t._uU(12,"\n\n"),t.qZA(),t._uU(13,"\n")),2&e){const i=t.MAs(5);t.xp6(4),t.Q6J("routerLink",t.DdM(3,Es))("active",i.isActive),t.xp6(4),t.Q6J("ngForOf",a.entityDatatables)}},dependencies:[A.sg,Q.BU,Q.Nj,w.A,l.lC,l.yS,l.Od],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]}),n})();function Bs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.payCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",12),t._uU(3,"\n Pay\n "),t.qZA()}}function Hs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.waiveCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",14),t._uU(3,"\n Waive\n "),t.qZA()}}function Vs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.inactivateCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",17),t._uU(3,"\n Inactivate\n "),t.qZA()}}function Ws(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Vs,4,0,"button",15),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE"))}function js(n,o){if(1&n&&(t.TgZ(0,"div",7),t._uU(1,"\n "),t.YNc(2,Bs,4,0,"button",8),t._uU(3,"\n "),t.YNc(4,Hs,4,0,"button",9),t._uU(5,"\n "),t.YNc(6,Ws,4,1,"span",10),t._uU(7,"\n"),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("ngIf",e.isRecurringCharge())}}function zs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.editCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",18),t._uU(3,"\n Edit\n "),t.qZA()}}function $s(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.deleteCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",17),t._uU(3,"\n Delete\n "),t.qZA()}}function Xs(n,o){1&n&&(t.TgZ(0,"div",7),t._uU(1,"\n "),t.YNc(2,zs,4,0,"button",9),t._uU(3,"\n "),t.YNc(4,$s,4,0,"button",15),t._uU(5,"\n"),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}const Ks=function(){return["../"]};let tc=(()=>{class n{constructor(e,a,i,c,r,_){this.savingsService=e,this.route=a,this.dateUtils=i,this.router=c,this.dialog=r,this.settingsService=_,this.route.data.subscribe(h=>{this.chargeData=h.savingsAccountCharge}),this.route.data.subscribe(h=>{this.savingsAccountData=h.savingsAccountData})}payCharge(){const e=[new F.M({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new j.d({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})];this.dialog.open(N.E,{data:{title:"Pay Charge",layout:{addButtonText:"Confirm"},formfields:e}}).afterClosed().subscribe(c=>{if(c.data){const r=this.settingsService.language.code,_=this.settingsService.dateFormat,h={...c.data.value,dueDate:this.dateUtils.formatDate(c.data.value.dueDate,_),dateFormat:_,locale:r};this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"pay",h,this.chargeData.id).subscribe(()=>{this.reload()})}})}waiveCharge(){this.dialog.open(ot,{data:{id:this.chargeData.id}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"waive",{},this.chargeData.id).subscribe(()=>{this.reload()})})}inactivateCharge(){this.dialog.open(it,{data:{id:this.chargeData.id}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"inactivate",{},this.chargeData.id).subscribe(()=>{this.reload()})})}editCharge(){const e=[new F.M({controlName:"amount",label:"Amount",value:this.chargeData.amount||this.chargeData.amountOrPercentage,type:"number",required:!0})];this.dialog.open(N.E,{data:{title:"Edit Charge",layout:{addButtonText:"Confirm"},formfields:e}}).afterClosed().subscribe(c=>{if(c.data){const h={...c.data.value,dateFormat:this.settingsService.dateFormat,locale:this.settingsService.language.code};this.savingsService.editSavingsAccountCharge(this.chargeData.accountId,h,this.chargeData.id).subscribe(()=>{this.reload()})}})}deleteCharge(){this.dialog.open(J.F,{data:{deleteContext:`charge id:${this.chargeData.id}`}}).afterClosed().subscribe(a=>{a.delete&&this.savingsService.deleteSavingsAccountCharge(this.chargeData.accountId,this.chargeData.id).subscribe(()=>{this.reload()})})}isRecurringCharge(){const e=this.chargeData.chargeTimeType.value;return"Monthly Fee"===e||"Annual Fee"===e||"Weekly Fee"===e}reload(){const e=this.router.url.replace(`/${this.chargeData.id}`,""),a=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(a,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.d),t.Y36(l.gz),t.Y36(C.L),t.Y36(l.F0),t.Y36(f.uw),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-view-charge"]],decls:89,vars:27,consts:[["fxLayout","row","fxLayoutAlign","end","fxLayoutGap","2%","fxLayout.lt-md","column","class","container m-b-20",4,"ngIf"],[1,"container"],["fxLayout","row wrap",1,"content"],["fxFlex","50%",1,"mat-body-strong"],["fxFlex","50%"],["fxLayout","row","fxLayoutAlign","center","fxLayoutGap","2%","fxLayout.lt-md","column"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["fxLayout","row","fxLayoutAlign","end","fxLayoutGap","2%","fxLayout.lt-md","column",1,"container","m-b-20"],["mat-raised-button","","color","accent",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],[4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["icon","dollar-sign",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click"],["icon","flag",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["icon","edit",1,"m-r-10"]],template:function(e,a){1&e&&(t._uU(0,"\n\n"),t.YNc(1,js,8,3,"div",0),t._uU(2,"\n\n"),t.YNc(3,Xs,6,2,"div",0),t._uU(4,"\n\n"),t.TgZ(5,"div",1),t._uU(6,"\n\n "),t.TgZ(7,"mat-card"),t._uU(8,"\n\n "),t.TgZ(9,"mat-card-content"),t._uU(10,"\n\n "),t.TgZ(11,"div",2),t._uU(12,"\n\n "),t.TgZ(13,"div",3),t._uU(14,"\n Name\n "),t.qZA(),t._uU(15,"\n\n "),t.TgZ(16,"div",4),t._uU(17),t.qZA(),t._uU(18,"\n\n "),t.TgZ(19,"div",3),t._uU(20,"\n Charge Type\n "),t.qZA(),t._uU(21,"\n\n "),t.TgZ(22,"div",4),t._uU(23),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"div",3),t._uU(26,"\n Currency\n "),t.qZA(),t._uU(27,"\n\n "),t.TgZ(28,"div",4),t._uU(29),t.qZA(),t._uU(30,"\n\n "),t.TgZ(31,"div",3),t._uU(32,"\n Payment due at\n "),t.qZA(),t._uU(33,"\n\n "),t.TgZ(34,"div",4),t._uU(35),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"div",3),t._uU(38,"\n Payment due as of\n "),t.qZA(),t._uU(39,"\n\n "),t.TgZ(40,"div",4),t._uU(41),t.ALo(42,"dateFormat"),t.qZA(),t._uU(43,"\n\n "),t.TgZ(44,"div",3),t._uU(45,"\n Calculation Type\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"div",4),t._uU(48),t.qZA(),t._uU(49,"\n\n "),t.TgZ(50,"div",3),t._uU(51,"\n Due\n "),t.qZA(),t._uU(52,"\n\n "),t.TgZ(53,"div",4),t._uU(54),t.ALo(55,"formatNumber"),t.qZA(),t._uU(56,"\n\n "),t.TgZ(57,"div",3),t._uU(58,"\n Paid\n "),t.qZA(),t._uU(59,"\n\n "),t.TgZ(60,"div",4),t._uU(61),t.ALo(62,"formatNumber"),t.qZA(),t._uU(63,"\n\n "),t.TgZ(64,"div",3),t._uU(65,"\n Waived\n "),t.qZA(),t._uU(66,"\n\n "),t.TgZ(67,"div",4),t._uU(68),t.ALo(69,"formatNumber"),t.qZA(),t._uU(70,"\n\n "),t.TgZ(71,"div",3),t._uU(72,"\n Outstanding\n "),t.qZA(),t._uU(73,"\n\n "),t.TgZ(74,"div",4),t._uU(75),t.ALo(76,"formatNumber"),t.qZA(),t._uU(77,"\n\n "),t.qZA(),t._uU(78,"\n\n "),t.TgZ(79,"div",5),t._uU(80,"\n "),t.TgZ(81,"button",6),t._uU(82),t.ALo(83,"translate"),t.qZA(),t._uU(84,"\n "),t.qZA(),t._uU(85,"\n "),t.qZA(),t._uU(86,"\n\n "),t.qZA(),t._uU(87,"\n\n"),t.qZA(),t._uU(88,"\n")),2&e&&(t.xp6(1),t.Q6J("ngIf","Active"===a.savingsAccountData.status.value&&0!==a.chargeData.amountOutstanding),t.xp6(2),t.Q6J("ngIf","Submitted and pending approval"===a.savingsAccountData.status.value),t.xp6(14),t.hij("\n ",a.chargeData.name,"\n "),t.xp6(6),t.hij("\n ",a.chargeData.penalty?"Penalty":"Fees","\n "),t.xp6(6),t.hij("\n ",a.chargeData.currency.displayLabel,"\n "),t.xp6(6),t.hij("\n ",a.chargeData.chargeTimeType.value,"\n "),t.xp6(6),t.hij("\n ",t.lcZ(42,14,a.chargeData.dueDate),"\n "),t.xp6(7),t.hij("\n ",a.chargeData.chargeCalculationType.value,"\n "),t.xp6(6),t.hij("\n ",t.lcZ(55,16,a.chargeData.amount),"\n "),t.xp6(7),t.hij("\n ",t.lcZ(62,18,a.chargeData.amountPaid),"\n "),t.xp6(7),t.hij("\n ",t.lcZ(69,20,a.chargeData.amountWaived),"\n "),t.xp6(7),t.hij("\n ",t.lcZ(76,22,a.chargeData.amountOutstanding),"\n "),t.xp6(6),t.Q6J("routerLink",t.DdM(26,Ks)),t.xp6(1),t.Oqu(t.lcZ(83,24,"Back")))},dependencies:[A.O5,q.BN,u.xw,u.SQ,u.Wh,u.yH,T.lW,d.a8,d.dn,w.A,l.rH,S.X$,I.E,B.w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]}),n})();var ct=m(11481);const nc=function(){return["../../"]};let ec=(()=>{class n{constructor(e,a){this.sanitizer=e,this.route=a,this.route.data.subscribe(i=>{this.transactionRecieptData=i.savingsTransactionReciept})}ngOnInit(){const e=this.transactionRecieptData.headers.get("Content-Type"),a=new Blob([this.transactionRecieptData.body],{type:e}),i=URL.createObjectURL(a);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(i)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ct.H7),t.Y36(l.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-view-reciept"]],decls:13,vars:3,consts:[[1,"container"],[1,"back-button"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["icon","arrow-left",1,"m-r-10"],["frameborder","0","width","100%","height","600px;",3,"src"]],template:function(e,a){1&e&&(t.TgZ(0,"mat-card",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"button",2),t._uU(5,"\n "),t._UZ(6,"fa-icon",3),t._uU(7,"Back"),t.qZA(),t._uU(8,"\n "),t.qZA(),t._uU(9,"\n\n "),t._UZ(10,"iframe",4),t._uU(11,"\n\n"),t.qZA(),t._uU(12,"\n")),2&e&&(t.xp6(4),t.Q6J("routerLink",t.DdM(2,nc)),t.xp6(6),t.Q6J("src",a.pentahoUrl,t.uOi))},dependencies:[q.BN,T.lW,d.a8,l.rH],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}.container[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{max-height:2%;margin-bottom:2%}"]}),n})();var rt=m(78543);function ac(n,o){if(1&n&&t._UZ(0,"iframe",13),2&n){const e=t.oxw();t.Q6J("src",e.pentahoUrl,t.uOi)}}const oc=function(){return["../"]};let ic=(()=>{class n{constructor(e,a,i,c,r,_){this.sanitizer=e,this.reportsService=a,this.formBuilder=i,this.dateUtils=c,this.route=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.hideOutput=!0,this.route.parent.parent.data.subscribe(h=>{this.savingsAccountId=h.savingsAccountData.accountNo})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createTransactionsReportForm()}createTransactionsReportForm(){this.transactionsReportForm=this.formBuilder.group({fromDate:["",s.kI.required],toDate:["",s.kI.required]})}generate(){const e={"output-type":"PDF",R_startDate:this.dateUtils.formatDate(this.transactionsReportForm.value.fromDate,this.settingsService.dateFormat),R_endDate:this.dateUtils.formatDate(this.transactionsReportForm.value.toDate,this.settingsService.dateFormat),R_savingsAccountId:this.savingsAccountId};this.reportsService.getPentahoRunReportData("Client Saving Transactions",e,"default",this.settingsService.language.code,this.settingsService.dateFormat).subscribe(a=>{const i=a.headers.get("Content-Type"),c=new Blob([a.body],{type:i}),r=URL.createObjectURL(c);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(r),this.hideOutput=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ct.H7),t.Y36(rt.F),t.Y36(s.QS),t.Y36(C.L),t.Y36(l.gz),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-export-transactions"]],decls:57,vars:13,consts:[["fxLayout","column",1,"m-t-20",3,"formGroup","ngSubmit"],["fxLayout","row","fxLayoutGap","3%","fxLayoutAlign","center"],["fxFlex","30%",3,"click"],["matInput","","required","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["fromDatePicker",""],["matInput","","required","","formControlName","toDate",3,"min","max","matDatepicker"],["toDatePicker",""],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5%",1,"generate-button"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","cogs",1,"m-r-10"],["frameborder","0","width","100%","height","750px;",3,"src",4,"ngIf"],["frameborder","0","width","100%","height","750px;",3,"src"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"form",0),t.NdJ("ngSubmit",function(){return a.generate()}),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(14);return t.KtG(r.open())}),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7,"From Date"),t.qZA(),t._uU(8,"\n "),t._UZ(9,"input",3),t._uU(10,"\n "),t._UZ(11,"mat-datepicker-toggle",4),t._uU(12,"\n "),t._UZ(13,"mat-datepicker",null,5),t._uU(15,"\n "),t.TgZ(16,"mat-error"),t._uU(17,"\n From date is "),t.TgZ(18,"strong"),t._uU(19,"required"),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(33);return t.KtG(r.open())}),t._uU(24,"\n "),t.TgZ(25,"mat-label"),t._uU(26,"To Date"),t.qZA(),t._uU(27,"\n "),t._UZ(28,"input",6),t._uU(29,"\n "),t._UZ(30,"mat-datepicker-toggle",4),t._uU(31,"\n "),t._UZ(32,"mat-datepicker",null,7),t._uU(34,"\n "),t.TgZ(35,"mat-error"),t._uU(36,"\n To date is "),t.TgZ(37,"strong"),t._uU(38,"required"),t.qZA(),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n "),t.qZA(),t._uU(41,"\n\n "),t.qZA(),t._uU(42,"\n\n "),t.TgZ(43,"div",8),t._uU(44,"\n "),t.TgZ(45,"button",9),t._uU(46,"Cancel"),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"button",10),t._uU(49,"\n "),t._UZ(50,"fa-icon",11),t._uU(51,"Generate Report \xa0"),t.qZA(),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n\n"),t.qZA(),t._uU(54,"\n\n"),t.YNc(55,ac,1,1,"iframe",12),t._uU(56,"\n")}if(2&e){const i=t.MAs(14),c=t.MAs(33);t.Q6J("formGroup",a.transactionsReportForm),t.xp6(9),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(17),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",c),t.xp6(2),t.Q6J("for",c),t.xp6(15),t.Q6J("routerLink",t.DdM(12,oc)),t.xp6(3),t.Q6J("disabled",!a.transactionsReportForm.valid),t.xp6(7),t.Q6J("ngIf",!a.hideOutput)}},dependencies:[A.O5,q.BN,u.xw,u.SQ,u.Wh,u.yH,T.lW,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH],styles:[".generate-button[_ngcontent-%COMP%]{max-height:2%;padding:1% 0 2% 6%;align-self:center}"]}),n})();function sc(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"\n Transaction Date is "),t.TgZ(2,"strong"),t._uU(3,"required"),t.qZA(),t._uU(4,"\n "),t.qZA())}function cc(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"\n Transaction Amount is "),t.TgZ(2,"strong"),t._uU(3,"required"),t.qZA(),t._uU(4,"\n "),t.qZA())}function rc(n,o){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function uc(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Account Number"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",19),t._uU(6,"\n "),t.qZA())}function lc(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Cheque"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",20),t._uU(6,"\n "),t.qZA())}function mc(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Routing Code"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",21),t._uU(6,"\n "),t.qZA())}function _c(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Receipt Number"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",22),t._uU(6,"\n "),t.qZA())}function gc(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Bank"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",23),t._uU(6,"\n "),t.qZA())}const pc=function(){return["../"]};let dc=(()=>{class n{constructor(e,a,i,c,r,_){this.formBuilder=e,this.route=a,this.router=i,this.dateUtils=c,this.savingsService=r,this.settingsService=_,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.showPaymentDetails=!1,this.route.data.subscribe(h=>{this.transactionTemplateData=h.savingsAccountTransactionTemplate,this.paymentTypeOptions=this.transactionTemplateData.paymentTypeOptions}),this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditTransactionForm(),this.editTransactionForm.patchValue({transactionDate:this.transactionTemplateData.date&&new Date(this.transactionTemplateData.date),transactionAmount:this.transactionTemplateData.amount,paymentTypeId:this.transactionTemplateData.paymentTypeId})}createEditTransactionForm(){this.editTransactionForm=this.formBuilder.group({transactionDate:["",s.kI.required],transactionAmount:["",s.kI.required],paymentTypeId:[""]})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.editTransactionForm.addControl("accountNumber",new s.p4("")),this.editTransactionForm.addControl("checkNumber",new s.p4("")),this.editTransactionForm.addControl("routingCode",new s.p4("")),this.editTransactionForm.addControl("receiptNumber",new s.p4("")),this.editTransactionForm.addControl("bankNumber",new s.p4(""))):(this.editTransactionForm.removeControl("accountNumber"),this.editTransactionForm.removeControl("checkNumber"),this.editTransactionForm.removeControl("routingCode"),this.editTransactionForm.removeControl("receiptNumber"),this.editTransactionForm.removeControl("bankNumber"))}submit(){const e=this.editTransactionForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(this.editTransactionForm.value.transactionDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,"modify",r,this.transactionTemplateData.id).subscribe(_=>{this.router.navigate(["../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(C.L),t.Y36(U.d),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-edit-transaction"]],decls:82,vars:17,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],[4,"ngIf"],["type","number","formControlName","transactionAmount","required","","matInput",""],["formControlName","paymentTypeId"],[3,"value",4,"ngFor","ngForOf"],["fxFlexFill",""],["fxFlex","75%",1,"expandcollapsebutton","m-l-10","m-t-40",3,"click"],[3,"className"],[1,"m-l-10"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content",2),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(18);return t.KtG(r.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11,"Transaction Date"),t.qZA(),t._uU(12,"\n "),t._UZ(13,"input",4),t._uU(14,"\n "),t._UZ(15,"mat-datepicker-toggle",5),t._uU(16,"\n "),t._UZ(17,"mat-datepicker",null,6),t._uU(19,"\n "),t.YNc(20,sc,5,0,"mat-error",7),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-form-field"),t._uU(24,"\n "),t.TgZ(25,"mat-label"),t._uU(26,"Transaction Amount"),t.qZA(),t._uU(27,"\n "),t._UZ(28,"input",8),t._uU(29,"\n "),t.YNc(30,cc,5,0,"mat-error",7),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n\n "),t.TgZ(33,"mat-form-field"),t._uU(34,"\n "),t.TgZ(35,"mat-label"),t._uU(36,"Payment Type"),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"mat-select",9),t._uU(39,"\n "),t.YNc(40,rc,2,2,"mat-option",10),t._uU(41,"\n "),t.qZA(),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n\n "),t.TgZ(44,"div",11),t._uU(45,"\n "),t.TgZ(46,"span",12),t.NdJ("click",function(){return a.addPaymentDetails()}),t._uU(47,"\n "),t.TgZ(48,"mat-slide-toggle"),t._uU(49,"\n "),t.TgZ(50,"div",13),t._uU(51,"\n "),t.TgZ(52,"span",14),t._uU(53,"Show Payment Details"),t.qZA(),t._uU(54,"\n "),t.qZA(),t._uU(55,"\n "),t.qZA(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n "),t.qZA(),t._uU(58,"\n\n "),t.YNc(59,uc,7,0,"mat-form-field",7),t._uU(60,"\n\n "),t.YNc(61,lc,7,0,"mat-form-field",7),t._uU(62,"\n\n "),t.YNc(63,mc,7,0,"mat-form-field",7),t._uU(64,"\n\n "),t.YNc(65,_c,7,0,"mat-form-field",7),t._uU(66,"\n\n "),t.YNc(67,gc,7,0,"mat-form-field",7),t._uU(68,"\n\n "),t.TgZ(69,"mat-card-actions",15),t._uU(70,"\n "),t.TgZ(71,"button",16),t._uU(72,"Cancel"),t.qZA(),t._uU(73,"\n "),t.TgZ(74,"button",17),t._uU(75,"Submit"),t.qZA(),t._uU(76,"\n "),t.qZA(),t._uU(77,"\n\n "),t.qZA(),t._uU(78,"\n\n "),t.qZA(),t._uU(79,"\n\n "),t.qZA(),t._uU(80,"\n\n"),t.qZA(),t._uU(81,"\n")}if(2&e){const i=t.MAs(18);t.xp6(4),t.Q6J("formGroup",a.editTransactionForm),t.xp6(9),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.editTransactionForm.controls.transactionDate.hasError("required")),t.xp6(10),t.Q6J("ngIf",a.editTransactionForm.controls.transactionAmount.hasError("required")),t.xp6(10),t.Q6J("ngForOf",a.paymentTypeOptions),t.xp6(10),t.Q6J("className",a.showPaymentDetails?"enabled":"disabled"),t.xp6(9),t.Q6J("ngIf",a.editTransactionForm.controls.accountNumber),t.xp6(2),t.Q6J("ngIf",a.editTransactionForm.controls.checkNumber),t.xp6(2),t.Q6J("ngIf",a.editTransactionForm.controls.routingCode),t.xp6(2),t.Q6J("ngIf",a.editTransactionForm.controls.receiptNumber),t.xp6(2),t.Q6J("ngIf",a.editTransactionForm.controls.bankNumber),t.xp6(4),t.Q6J("routerLink",t.DdM(16,pc)),t.xp6(3),t.Q6J("disabled",!a.editTransactionForm.valid)}},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,u.s9,u.yH,y.ey,T.lW,d.a8,d.dn,d.hq,v.Mq,v.hl,v.nW,g.TO,g.KE,g.hX,g.R9,b.Nt,D.gD,V.Rr,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),n})();function fc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function Ac(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function vc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function Uc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function hc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",17),t._uU(2,"\n "))}function Tc(n,o){1&n&&t._uU(0,"DETAILS")}function Zc(n,o){1&n&&t._uU(0,"TERMS")}function Cc(n,o){1&n&&t._uU(0,"CHARGES")}function xc(n,o){1&n&&t._uU(0,"PREVIEW")}function bc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",18),t._uU(1,"\n \n "),t.YNc(2,xc,1,0,"ng-template",9),t._uU(3,"\n \n "),t.TgZ(4,"mifosx-savings-account-preview-step",19),t.NdJ("submit",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n \n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)}}let Sc=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.router=a,this.dateUtils=i,this.savingsService=c,this.settingsService=r,this.route.data.subscribe(_=>{this.savingsAccountTemplate=_.savingsAccountTemplate,this.dataSource=_.groupsData.activeClientMembers})}ngOnInit(){}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get activeClientMembers(){return this.dataSource}get savingsAccountFormValid(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid}get savingsAccount(){return this.selectedMembers=this.savingsAccountChargesStep.selectedClientMembers,{...this.savingsAccountDetailsStep.savingsAccountDetails,...this.savingsAccountTermsStep.savingsAccountTerms,...this.savingsAccountChargesStep.savingsAccountCharges}}setData(e){const a=this.settingsService.language.code,i=this.settingsService.dateFormat,r={...this.savingsAccount,charges:this.savingsAccount.charges.map(_=>({chargeId:_.id,amount:_.amount})),clientId:e.id,isGSIM:!0,isParentAccount:!0,submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,i),dateFormat:i,monthDayFormat:"dd MMMM",locale:a};return r.groupId=this.savingsAccountTemplate.groupId,r}buildRequestData(){const e=[],a=this.selectedMembers.selectedMembers;for(let i=0;i<1;i++)e.push(this.setData(a[i]));return e}submit(){const a={clientArray:this.buildRequestData()};this.savingsService.createGsimAcccount(a).subscribe(i=>{this.router.navigate(["../",i.resourceId],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(C.L),t.Y36(U.d),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-create-gsim-account"]],viewQuery:function(e,a){if(1&e&&(t.Gf(P,7),t.Gf(L,7),t.Gf(k,7)),2&e){let i;t.iGM(i=t.CRH())&&(a.savingsAccountDetailsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountTermsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountChargesStep=i.first)}},decls:42,vars:9,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["savingProductStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountTemplate","savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode","activeClientMembers"],["completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["completed",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount","submit"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n \n "),t.YNc(5,fc,3,0,"ng-template",3),t._uU(6,"\n \n "),t.YNc(7,Ac,3,0,"ng-template",4),t._uU(8,"\n \n "),t.YNc(9,vc,3,0,"ng-template",5),t._uU(10,"\n \n "),t.YNc(11,Uc,3,0,"ng-template",6),t._uU(12,"\n \n "),t.YNc(13,hc,3,0,"ng-template",7),t._uU(14,"\n \n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n \n "),t.YNc(17,Tc,1,0,"ng-template",9),t._uU(18,"\n \n "),t.TgZ(19,"mifosx-savings-account-details-step",10),t.NdJ("savingsAccountProductTemplate",function(c){return a.setTemplate(c)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n \n "),t.qZA(),t._uU(22,"\n \n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n \n "),t.YNc(25,Zc,1,0,"ng-template",9),t._uU(26,"\n \n "),t._UZ(27,"mifosx-savings-account-terms-step",11),t._uU(28,"\n \n "),t.qZA(),t._uU(29,"\n \n "),t.TgZ(30,"mat-step"),t._uU(31,"\n \n "),t.YNc(32,Cc,1,0,"ng-template",9),t._uU(33,"\n \n "),t.TgZ(34,"mifosx-savings-account-charges-step",12),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n \n "),t.qZA(),t._uU(37,"\n \n "),t.YNc(38,bc,7,4,"mat-step",13),t._uU(39,"\n \n "),t.qZA(),t._uU(40,"\n \n "),t.qZA(),t._uU(41,"\n ")),2&e&&(t.xp6(15),t.Q6J("stepControl",a.savingsAccountDetailsForm),t.xp6(4),t.Q6J("savingsAccountTemplate",a.savingsAccountTemplate),t.xp6(4),t.Q6J("stepControl",a.savingsAccountTermsForm),t.xp6(4),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate),t.xp6(7),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate)("savingsAccountTemplate",a.savingsAccountTemplate)("currencyCode",a.savingsAccountTermsForm.get("currencyCode"))("activeClientMembers",a.activeClientMembers),t.xp6(4),t.Q6J("ngIf",a.savingsAccountFormValid))},dependencies:[A.O5,q.BN,x.C0,x.VY,x.Vq,x.z9,P,k,L,z]}),n})();function qc(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Client Details "),t.qZA())}function yc(n,o){if(1&n&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.displayName," ")}}function Dc(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Saving Account "),t.qZA())}function Ic(n,o){if(1&n&&(t.TgZ(0,"td",14),t._UZ(1,"i",15),t.ALo(2,"statusLookup"),t._uU(3),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("ngClass",t.lcZ(2,3,e.status.code))("matTooltip",e.status.value),t.xp6(2),t.hij(" ",e.accountNo," ")}}function Nc(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Products "),t.qZA())}function wc(n,o){if(1&n&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.productName," ")}}function Oc(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Balance "),t.qZA())}function Fc(n,o){1&n&&(t.TgZ(0,"td",14),t._uU(1," "),t.qZA())}function Pc(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Actions "),t.qZA())}const Lc=function(n){return["../","savings-accounts",n,"actions","Deposit"]};function kc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",18),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,Lc,e.id))}}const Yc=function(n){return["../","savings-accounts",n,"actions","Withdrawal"]};function Mc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",19),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,Yc,e.id))}}const Jc=function(n){return["../","savings-accounts",n,"actions","Approve"]};function Qc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",20),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,Jc,e.id))}}const Rc=function(n){return["../../../","savings-accounts",n,"actions","Undo Approval"]};function Ec(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",21),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,Rc,e.id))}}const Gc=function(n){return["../../",n,"actions","Activate"]};function Bc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",22),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,Gc,e.id))}}function Hc(n,o){if(1&n&&(t.TgZ(0,"td",14),t._uU(1,"\n "),t.YNc(2,kc,4,3,"button",16),t._uU(3,"\n "),t.YNc(4,Mc,4,3,"button",16),t._uU(5,"\n "),t.YNc(6,Qc,4,3,"button",16),t._uU(7,"\n "),t.YNc(8,Ec,4,3,"button",16),t._uU(9,"\n "),t.YNc(10,Bc,4,3,"button",16),t._uU(11,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf",e.status.active),t.xp6(2),t.Q6J("ngIf",e.status.active),t.xp6(2),t.Q6J("ngIf",e.status.submittedAndPendingApproval),t.xp6(2),t.Q6J("ngIf",!e.status.submittedAndPendingApproval&&!e.status.active),t.xp6(2),t.Q6J("ngIf",!e.status.submittedAndPendingApproval&&!e.status.active)}}function Vc(n,o){1&n&&t._UZ(0,"tr",23)}const Wc=function(n){return["../../",n,"transactions"]};function jc(n,o){1&n&&t._UZ(0,"tr",24),2&n&&t.Q6J("routerLink",t.VKq(1,Wc,o.$implicit.id))}const zc=function(){return[10,20,25]};let $c=(()=>{class n{constructor(e,a){this.route=e,this.dialog=a,this.displayedColumns=["clientDetails","savingsAccount","products","balance","Actions"],this.route.data.subscribe(i=>{this.gsimOverviewData=i.gsimData[0].childGSIMAccounts,this.savingAccountData=i.savingAccountData,this.groupsData=i.groupsData})}ngOnInit(){this.setLoanClientChargeOverview()}setLoanClientChargeOverview(){this.dataSource=new p.by(this.gsimOverviewData)}routeEdit(e){e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(f.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-gsim-account"]],viewQuery:function(e,a){if(1&e&&t.Gf(R.NW,7),2&e){let i;t.iGM(i=t.CRH())&&(a.paginator=i.first)}},decls:52,vars:5,consts:[[1,"tab-container","mat-typography"],[2,"margin-top","5px"],["mat-table","",3,"dataSource"],["matColumnDef","clientDetails"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","savingsAccount"],["matColumnDef","products"],["matColumnDef","balance"],["matColumnDef","Actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],[1,"fa","fa-stop",3,"ngClass","matTooltip"],["class","account-action-button","mat-raised-button","","color","primary",3,"routerLink","click",4,"ngIf"],["mat-raised-button","","color","primary",1,"account-action-button",3,"routerLink","click"],["matTooltip","Deposit",1,"fa","fa-arrow-up"],["matTooltip","Withdraw",1,"fa","fa-arrow-down"],["matTooltip","Approve",1,"fa","fa-check"],["matTooltip","Undo Approval",1,"fa","fa-undo"],["matTooltip","Activate",1,"fa","fa-check-circle"],["mat-header-row",""],["mat-row","",3,"routerLink"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n \n "),t.TgZ(4,"h2"),t._uU(5," GSIM Account Overview"),t.qZA(),t._uU(6,"\n \n "),t.TgZ(7,"table",2),t._uU(8,"\n \n "),t.ynx(9,3),t._uU(10,"\n "),t.YNc(11,qc,2,0,"th",4),t._uU(12,"\n "),t.YNc(13,yc,2,1,"td",5),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n \n "),t.ynx(16,6),t._uU(17,"\n "),t.YNc(18,Dc,2,0,"th",4),t._uU(19,"\n "),t.YNc(20,Ic,4,5,"td",5),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n \n "),t.ynx(23,7),t._uU(24,"\n "),t.YNc(25,Nc,2,0,"th",4),t._uU(26,"\n "),t.YNc(27,wc,2,1,"td",5),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n \n "),t.ynx(30,8),t._uU(31,"\n "),t.YNc(32,Oc,2,0,"th",4),t._uU(33,"\n "),t.YNc(34,Fc,2,0,"td",5),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n \n "),t.ynx(37,9),t._uU(38,"\n "),t.YNc(39,Pc,2,0,"th",4),t._uU(40,"\n "),t.YNc(41,Hc,12,5,"td",5),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n \n "),t.YNc(44,Vc,1,0,"tr",10),t._uU(45,"\n "),t.YNc(46,jc,1,3,"tr",11),t._uU(47,"\n \n "),t.qZA(),t._uU(48,"\n \n "),t._UZ(49,"mat-paginator",12),t._uU(50,"\n \n "),t.qZA(),t._uU(51,"\n "),t.qZA()),2&e&&(t.xp6(7),t.Q6J("dataSource",a.dataSource),t.xp6(37),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(3),t.Q6J("pageSizeOptions",t.DdM(4,zc)))},dependencies:[A.mk,A.O5,tt.oO,T.lW,R.NW,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,M.gM,l.rH,et.F],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .group-details-container[_ngcontent-%COMP%]{border:1px solid;padding:1%}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),n})();var E=m(69749),ut=m(89),lt=m(96545);let mt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.parent.paramMap.get("id"),i=e.paramMap.get("datatableName");return this.savingsService.getSavingsTransactionDatatable(a,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),_t=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){return this.savingsService.getSavingsTransactionDatatables()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),$=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.paramMap.get("clientId")||e.paramMap.get("groupId")||e.paramMap.get("centerId"),i=!(!e.paramMap.get("groupId")&&!e.paramMap.get("centerId"));return this.savingsService.getSavingsAccountTemplate(a,void 0,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),gt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.paramMap.get("savingAccountId");return this.savingsService.getSavingsAccountAndTemplate(a,!0)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),pt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId"),i=e.parent.paramMap.get("id");return this.savingsService.getSavingsAccountTransaction(a,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),dt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId"),i=e.paramMap.get("id");return this.savingsService.getSavingsAccountCharge(a,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var Xc=m(30567);let ft=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.paramMap.get("name"),i=e.paramMap.get("savingAccountId")||e.parent.parent.paramMap.get("savingAccountId");switch(a){case"Assign Staff":return this.savingsService.getSavingsAccountAndTemplate(i,!0);case"Add Charge":return this.savingsService.getSavingsChargeTemplateResource(i);case"Withdrawal":case"Deposit":return this.savingsService.getSavingsTransactionTemplateResource(i);case"Close":return(0,Xc.D)([this.savingsService.getSavingsTransactionTemplateResource(i),this.savingsService.getSavingsAccountData(i)]);case"Apply Annual Fees":return this.savingsService.getSavingsAccountData(i);default:return}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),At=(()=>{class n{constructor(e,a){this.reportsService=e,this.settingsService=a}resolve(e){const a=e.paramMap.get("id");return this.reportsService.getPentahoRunReportData("Savings Transaction Receipt",{"output-type":"PDF",R_transactionId:a},"default",this.settingsService.language.code,this.settingsService.dateFormat)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(rt.F),t.LFG(Z.g))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),vt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId"),i=e.paramMap.get("id");return this.savingsService.getSavingsAccountTransactionTemplate(a,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var Kc=m(10009),Ut=m(23325);let ht=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.paramMap.get("groupId"),i=e.paramMap.get("savingAccountId");return this.savingsService.getGSIMAccountData(i,a)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var tr=m(37275),nr=m(10710),er=m(22564);let ar=(()=>{class n{constructor(e,a,i,c){this.route=e,this.savingsService=a,this.settingsService=i,this.dialog=c,this.entityType="savings",this.route.data.subscribe(r=>{this.setSavingsDocumentsData(r.savingsDocuments)}),this.entityId=this.route.parent.snapshot.paramMap.get("savingAccountId")}ngOnInit(){}setSavingsDocumentsData(e){e.forEach(a=>{a.docUrl=this.settingsService.serverUrl+"/savings/"+a.parentEntityId+"/documents/"+a.id+"/attachment?tenantIdentifier="+nr.N.fineractPlatformTenantId,a.fileName&&(-1!==a.fileName.toLowerCase().indexOf(".jpg")||-1!==a.fileName.toLowerCase().indexOf(".jpeg")||-1!==a.fileName.toLowerCase().indexOf(".png"))&&(a.fileIsImage=!0),a.type&&-1!==a.type.toLowerCase().indexOf("image")&&(a.fileIsImage=!0)}),this.entityDocuments=e}downloadDocument(e){this.savingsService.downloadSavingsDocument(this.entityId,e).subscribe(a=>{const i=window.URL.createObjectURL(a);window.open(i)})}uploadDocument(e){return this.savingsService.loadSavingsDocument(this.entityId,e)}deleteDocument(e){this.savingsService.deleteSavingsDocument(this.entityId,e).subscribe(a=>{})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(U.d),t.Y36(Z.g),t.Y36(f.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-documents-tab"]],decls:3,vars:6,consts:[[3,"entityType","entityId","entityDocuments","callbackUpload","callbackDownload","callbackDelete"]],template:function(e,a){1&e&&(t.TgZ(0,"mifosx-entity-documents-tab",0),t._uU(1,"\n"),t.qZA(),t._uU(2,"\n")),2&e&&t.Q6J("entityType",a.entityType)("entityId",a.entityId)("entityDocuments",a.entityDocuments)("callbackUpload",a.uploadDocument)("callbackDownload",a.downloadDocument)("callbackDelete",a.deleteDocument)},dependencies:[er.k]}),n})();var or=m(92317),ir=m(15751);let sr=(()=>{class n{constructor(e,a,i){this.route=e,this.savingsService=a,this.authenticationService=i;const c=this.authenticationService.getCredentials();this.username=c.username,this.entityId=this.route.parent.snapshot.params.savingAccountId,this.route.data.subscribe(r=>{this.entityNotes=r.savingAccountNotes})}ngOnInit(){}addNote(e){this.savingsService.createSavingsNote(this.entityId,e).subscribe(a=>{this.entityNotes.push({id:a.resourceId,createdByUsername:this.username,createdOn:new Date,note:e.note})})}editNote(e,a,i){this.savingsService.editSavingsNote(this.entityId,e,a).subscribe(()=>{this.entityNotes[i].note=a.note})}deleteNote(e,a){this.savingsService.deleteSavingsNote(this.entityId,e).subscribe(()=>{this.entityNotes.splice(a,1)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(U.d),t.Y36(or.$))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-notes-tab"]],decls:3,vars:5,consts:[[3,"entityId","entityNotes","callbackAdd","callbackEdit","callbackDelete"]],template:function(e,a){1&e&&(t.TgZ(0,"mifosx-entity-notes-tab",0),t._uU(1,"\n"),t.qZA(),t._uU(2,"\n")),2&e&&t.Q6J("entityId",a.entityId)("entityNotes",a.entityNotes)("callbackAdd",a.addNote)("callbackEdit",a.editNote)("callbackDelete",a.deleteNote)},dependencies:[ir.P]}),n})(),cr=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId");return this.savingsService.getSavingsNotes(a)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rr=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId");return this.savingsService.getSavingsDocuments(a)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ur=function(){return{confirm:!0}};let lr=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-release-amount-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Release Amount"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6,"Are you sure you want to release this amount ?"),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(14),t.Q6J("mat-dialog-close",t.DdM(1,ur)))},dependencies:[T.lW,f.ZT,f.uh,f.xY,f.H8]}),n})();const mr=function(){return{confirm:!0}};let _r=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-undo-transaction-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Undo Transaction"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6,"Are you sure you want to undo this transaction ?"),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(14),t.Q6J("mat-dialog-close",t.DdM(1,mr)))},dependencies:[T.lW,f.ZT,f.uh,f.xY,f.H8]}),n})();var gr=m(9722);function pr(n,o){1&n&&(t.TgZ(0,"button",11),t._uU(1,"\n "),t._UZ(2,"fa-icon",12),t._uU(3,"Edit\n "),t.qZA()),2&n&&t.Q6J("routerLink","edit")}function dr(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,pr,4,1,"button",10),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngIf","Transfer"==e.transactionData.transactionType.value||"true"==e.transactionData.reversed||3==e.transactionData.transactionType.id||17==e.transactionData.transactionType.id)}}function fr(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,dr,4,1,"span",9),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","ADJUSTTRANSACTION_SAVINGSACCOUNT"))}function Ar(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.releaseAmount())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",15),t._uU(3,"Release Amount\n "),t.qZA()}}function vr(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ar,4,0,"button",13),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","RELEASEAMOUNT_SAVINGSACCOUNT"))}function Ur(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.undoTransaction())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",18),t._uU(3,"Undo\n "),t.qZA()}}function hr(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ur,4,0,"button",16),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UNDOTRANSACTION_SAVINGSACCOUNT"))}function Tr(n,o){if(1&n&&(t.TgZ(0,"mifosx-transaction-payment-detail",19),t._uU(1,"\n "),t.qZA()),2&n){const e=t.oxw();t.Q6J("paymentDetailData",e.transactionData.paymentDetailData)}}const Zr=function(){return["../../"]},xr=[{path:"",data:{title:"All Savings",breadcrumb:"Savings",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Savings Account",breadcrumb:"Create Savings Account"},component:ys,resolve:{savingsAccountTemplate:$}},{path:":savingAccountId",data:{title:"Saving Account View",routeParamBreadcrumb:"savingAccountId"},component:Pn,resolve:{savingsAccountData:E.X,savingsDatatables:lt.N},children:[{path:"",redirectTo:"transactions",pathMatch:"full"},{path:"transactions",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:oe},{path:"export",component:ic}]},{path:"charges",component:So,data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:zo,data:{title:"Savings Account SIH",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"notes",component:sr,data:{title:"Savings Account Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{savingAccountNotes:cr}},{path:"documents",component:ar,data:{title:"Savings Account Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{savingsDocuments:rr}},{path:"datatables",children:[{path:":datatableName",component:$o,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:ut.X}}]}]},{path:":savingAccountId/edit",data:{title:"Edit Savings Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Ms,resolve:{savingsAccountAndTemplate:gt}},{path:":savingAccountId/transactions/:id",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:Gs,resolve:{transactionDatatables:_t},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:(()=>{class n{constructor(e,a,i,c,r,_){this.savingsService=e,this.route=a,this.dateUtils=i,this.router=c,this.dialog=r,this.settingsService=_,this.route.data.subscribe(h=>{this.accountId=this.route.parent.snapshot.params.savingAccountId,this.transactionData=h.savingsAccountTransaction})}ngOnInit(){}allowUndo(){return!(this.transactionData.reversed&&this.transactionData.transactionType.amountHold||this.transactionData.reversed)}releaseAmount(){this.dialog.open(lr).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"releaseAmount",{},this.transactionData.id).subscribe(()=>{this.router.navigate(["../.."],{relativeTo:this.route})})})}undoTransaction(){this.dialog.open(_r).afterClosed().subscribe(a=>{if(a.confirm){const i=this.settingsService.language.code,c=this.settingsService.dateFormat,r={transactionDate:this.dateUtils.formatDate(this.transactionData.date&&new Date(this.transactionData.date),c),transactionAmount:0,dateFormat:c,locale:i};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"undo",r,this.transactionData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.d),t.Y36(l.gz),t.Y36(C.L),t.Y36(l.F0),t.Y36(f.uw),t.Y36(Z.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-transaction-general-tab"]],decls:68,vars:20,consts:[["fxLayoutAlign","end","fxLayoutGap","2%",1,"container","m-b-20"],[4,"ngIf"],[1,"container"],["fxLayout","row wrap",1,"content"],["fxFlex","50%",1,"mat-body-strong"],["fxFlex","50%"],[3,"paymentDetailData",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center","fxLayoutGap","2%","fxLayout.lt-md","column"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],[4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click"],["icon","lock-open",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","undo",1,"m-r-10"],[3,"paymentDetailData"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.YNc(2,fr,4,1,"span",1),t._uU(3,"\n "),t.YNc(4,vr,4,1,"span",1),t._uU(5,"\n "),t.YNc(6,hr,4,1,"span",1),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n\n"),t.TgZ(9,"div",2),t._uU(10,"\n\n "),t.TgZ(11,"mat-card"),t._uU(12,"\n\n "),t.TgZ(13,"mat-card-content"),t._uU(14,"\n\n "),t.TgZ(15,"div",3),t._uU(16,"\n\n "),t.TgZ(17,"div",4),t._uU(18,"\n Transaction Id\n "),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"div",5),t._uU(21),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"div",4),t._uU(24,"\n Type\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"div",5),t._uU(27),t.qZA(),t._uU(28,"\n\n "),t.TgZ(29,"div",4),t._uU(30,"\n Transaction Date\n "),t.qZA(),t._uU(31,"\n\n "),t.TgZ(32,"div",5),t._uU(33),t.ALo(34,"dateFormat"),t.qZA(),t._uU(35,"\n\n "),t.TgZ(36,"div",4),t._uU(37,"\n Currency\n "),t.qZA(),t._uU(38,"\n\n "),t.TgZ(39,"div",5),t._uU(40),t.qZA(),t._uU(41,"\n\n "),t.TgZ(42,"div",4),t._uU(43,"\n Amount\n "),t.qZA(),t._uU(44,"\n\n "),t.TgZ(45,"div",5),t._uU(46),t.ALo(47,"currency"),t.qZA(),t._uU(48,"\n\n "),t.TgZ(49,"div",4),t._uU(50,"\n Note\n "),t.qZA(),t._uU(51,"\n\n "),t.TgZ(52,"div",5),t._uU(53),t.qZA(),t._uU(54,"\n\n "),t.YNc(55,Tr,2,1,"mifosx-transaction-payment-detail",6),t._uU(56,"\n\n "),t.qZA(),t._uU(57,"\n\n "),t.TgZ(58,"div",7),t._uU(59,"\n "),t.TgZ(60,"button",8),t._uU(61),t.ALo(62,"translate"),t.qZA(),t._uU(63,"\n "),t.qZA(),t._uU(64,"\n "),t.qZA(),t._uU(65,"\n\n "),t.qZA(),t._uU(66,"\n\n"),t.qZA(),t._uU(67,"\n")),2&e&&(t.xp6(2),t.Q6J("ngIf",!(!1===a.transactionData.interestedPostedAsOn&&(17===a.transactionData.transactionType.id||3===a.transactionData.transactionType.id))),t.xp6(2),t.Q6J("ngIf",!a.transactionData.reversed&&a.transactionData.transactionType.amountHold),t.xp6(2),t.Q6J("ngIf",a.allowUndo()),t.xp6(15),t.hij("\n ",a.transactionData.id,"\n "),t.xp6(6),t.hij("\n ",a.transactionData.transactionType.value,"\n "),t.xp6(6),t.hij("\n ",t.lcZ(34,13,a.transactionData.date),"\n "),t.xp6(7),t.hij("\n ",a.transactionData.currency.name,"\n "),t.xp6(6),t.AsE("\n ",t.lcZ(47,15,a.transactionData.amount)," ",a.transactionData.currency.code,"\n "),t.xp6(7),t.hij("\n ",a.transactionData.note,"\n "),t.xp6(2),t.Q6J("ngIf",a.transactionData.paymentDetailData),t.xp6(5),t.Q6J("routerLink",t.DdM(19,Zr)),t.xp6(1),t.Oqu(t.lcZ(62,17,"Back")))},dependencies:[A.O5,q.BN,u.xw,u.SQ,u.Wh,u.yH,T.lW,d.a8,d.dn,gr.B,w.A,l.rH,A.H9,S.X$,I.E],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] mifosx-transaction-payment-detail[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}"]}),n})(),resolve:{savingsAccountTransaction:pt}},{path:"datatables",children:[{path:":datatableName",component:ie,data:{title:"View Data table",routeParamBreadcrumb:"datatableName"},resolve:{transactionDatatable:mt}}]}]},{path:"edit",component:dc,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{savingsAccountTransactionTemplate:vt}},{path:"reciept",component:ec,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{savingsTransactionReciept:At}}]},{path:":savingAccountId/charges",data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:tc,resolve:{savingsAccountData:E.X,savingsAccountCharge:dt}}]},{path:":savingAccountId/actions/:name",data:{title:"Savings Account Actions",breadcrumb:"Savings Account Actions",routeParamBreadcrumb:"name"},component:Qa,resolve:{savingsAccountActionData:ft}},{path:":savingAccountId/transfer-funds",loadChildren:()=>m.e("default-src_app_account-transfers_account-transfers_module_ts").then(m.bind(m,69193)).then(n=>n.AccountTransfersModule)},{path:"gsim-account",children:[{path:"create",data:{title:"Create GSIM Application",breadcrumb:"Create GSIM Application"},component:Sc,resolve:{groupsData:tr.p,savingsAccountTemplate:$}},{path:":savingAccountId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},children:[{path:"",component:$c,resolve:{gsimData:ht,savingAccountData:E.X,groupsData:Ut.c}}]}]}]}];let br=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[E.X,lt.N,ut.X,mt,_t,$,gt,pt,dt,ft,At,vt,Kc.a,Ut.c,ht],imports:[l.Bz.forChild(xr),l.Bz]}),n})();var Sr=m(87734),qr=m(35503),yr=m(78434);let Dr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[Sr.m,qr.D,yr.o,br]}),n})()}}]); \ No newline at end of file