(self.webpackChunkclient_app=self.webpackChunkclient_app||[]).push([[179],{8255:t=>{function e(t){return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=()=>[],e.resolve=e,e.id=8255,t.exports=e},7238:(t,e,n)=>{"use strict";n.d(e,{l3:()=>r,_j:()=>i,LC:()=>s,ZN:()=>g,jt:()=>a,pV:()=>p,F4:()=>h,IO:()=>m,vP:()=>l,SB:()=>u,oB:()=>c,eR:()=>d,X$:()=>o,ZE:()=>b,k1:()=>_});class i{}class s{}const r="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function u(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t){return{type:5,steps:t}}function d(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function p(t=null){return{type:9,options:t}}function m(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function f(t){Promise.resolve(null).then(t)}class g{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){f(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class b{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?f(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const _="!"},9238:(t,e,n)=>{"use strict";n.d(e,{rt:()=>et,s1:()=>M,$s:()=>k,Em:()=>P,tE:()=>Q,qV:()=>N,qm:()=>tt,Kd:()=>Y,X6:()=>Z,yG:()=>G});var i=n(8583),s=n(7716),r=n(9765),o=n(5319),a=n(6215),l=n(5917),c=n(6461),u=n(8307),h=n(4395),d=n(5435),p=n(8002),m=n(5257),f=n(3653),g=n(7519),b=n(6782),_=n(9490),y=n(521),v=n(8553);function w(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const S="cdk-describedby-message-container",x="cdk-describedby-host";let T=0;const C=new Map;let A=null,k=(()=>{class t{constructor(t){this._document=t}describe(t,e,n){if(!this._canBeDescribed(t,e))return;const i=E(e,n);"string"!=typeof e?(I(e),C.set(i,{messageElement:e,referenceCount:0})):C.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}removeDescription(t,e,n){if(!e||!this._isElementNode(t))return;const i=E(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){const t=C.get(i);t&&0===t.referenceCount&&this._deleteMessageElement(i)}A&&0===A.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=C.get(e);!function(t,e,n){const i=w(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute(x,""),n.referenceCount++}_removeMessageReference(t,e){const n=C.get(e);n.referenceCount--,function(t,e,n){const i=w(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(x)}_isElementDescribedByMessage(t,e){const n=w(t,"aria-describedby"),i=C.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.K0))},token:t,providedIn:"root"}),t})();function E(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function I(t){t.id||(t.id="cdk-describedby-message-"+T++)}class O{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new r.xQ,this._typeaheadSubscription=o.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new r.xQ,this.change=new r.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,u.b)(t=>this._pressedLetters.push(t)),(0,h.b)(t),(0,d.h)(()=>this._pressedLetters.length>0),(0,p.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.Mf:return void this.tabOut.next();case c.JH:if(this._vertical&&n){this.setNextItemActive();break}return;case c.LH:if(this._vertical&&n){this.setPreviousItemActive();break}return;case c.SV:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.oh:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.Sd:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case c.uR:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||(0,c.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.A&&e<=c.Z||e>=c.xE&&e<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class M extends O{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class P extends O{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let L=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===D(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),s=D(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==s:"video"===i?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||R(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(y.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(y.t4))},token:t,providedIn:"root"}),t})();function R(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function D(t){if(!R(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class F{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(t)}}let N=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new F(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(L),s.LFG(s.R0b),s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(L),s.LFG(s.R0b),s.LFG(i.K0))},token:t,providedIn:"root"}),t})();function Z(t){return 0===t.buttons}function G(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&∈const B=new s.OlP("cdk-input-modality-detector-options"),H={ignoreKeys:[c.zL,c.jx,c.b2,c.MW,c.JU]},q=(0,y.i$)({passive:!0,capture:!0});let V=(()=>{class t{constructor(t,e,n,i){this._platform=t,this._mostRecentTarget=null,this._modality=new a.X(null),this._lastTouchMs=0,this._onKeydown=t=>{var e,n;(null===(n=null===(e=this._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some(e=>e===t.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=U(t))},this._onMousedown=t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Z(t)?"keyboard":"mouse"),this._mostRecentTarget=U(t))},this._onTouchstart=t=>{G(t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=U(t))},this._options=Object.assign(Object.assign({},H),i),this.modalityDetected=this._modality.pipe((0,f.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,g.x)()),t.isBrowser&&e.runOutsideAngular(()=>{n.addEventListener("keydown",this._onKeydown,q),n.addEventListener("mousedown",this._onMousedown,q),n.addEventListener("touchstart",this._onTouchstart,q)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,q),document.removeEventListener("mousedown",this._onMousedown,q),document.removeEventListener("touchstart",this._onTouchstart,q))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(y.t4),s.LFG(s.R0b),s.LFG(i.K0),s.LFG(B,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(y.t4),s.LFG(s.R0b),s.LFG(i.K0),s.LFG(B,8))},token:t,providedIn:"root"}),t})();function U(t){return t.composedPath?t.composedPath()[0]:t.target}const j=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),z=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Y=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),n=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,n,i,s){this._ngZone=t,this._platform=e,this._inputModalityDetector=n,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=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new r.xQ,this._rootNodeFocusAndBlurListener=t=>{const e=U(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=i,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,e=!1){const n=(0,_.fI)(t);if(!this._platform.isBrowser||1!==n.nodeType)return(0,l.of)(null);const i=(0,y.kV)(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new r.xQ,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=(0,_.fI)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=(0,_.fI)(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOrigin(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_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 n=this._elementInfo.get(e),i=U(t);n&&(n.checkChildren||e===i)&&this._originChanged(e,this._getFocusOrigin(i),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,W),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,W)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,b.R)(this._stopInputModalityDetector)).subscribe(t=>{this._setOrigin(t,!0)}))}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,W),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,W),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(y.t4),s.LFG(V),s.LFG(i.K0,8),s.LFG($,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(y.t4),s.LFG(V),s.LFG(i.K0,8),s.LFG($,8))},token:t,providedIn:"root"}),t})();const K="cdk-high-contrast-black-on-white",X="cdk-high-contrast-white-on-black",J="cdk-high-contrast-active";let tt=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(J),t.remove(K),t.remove(X),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(J),t.add(K)):2===e&&(t.add(J),t.add(X))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(y.t4),s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(y.t4),s.LFG(i.K0))},token:t,providedIn:"root"}),t})(),et=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(tt))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[y.ud,v.Q8]]}),t})()},946:(t,e,n)=>{"use strict";n.d(e,{vT:()=>a,Is:()=>o});var i=n(7716),s=n(8583);const r=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,i.f3M)(s.K0)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.vpe,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(r,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(r,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},7860:(t,e,n)=>{"use strict";n.d(e,{P3:()=>l,Ov:()=>u,A8:()=>h,eX:()=>c,k:()=>d,Z9:()=>a});var i=n(5639),s=n(5917),r=n(9765),o=n(7716);function a(t){return t&&"function"==typeof t.connect}class l extends class{}{constructor(t){super(),this._data=t}connect(){return(0,i.b)(this._data)?this._data:(0,s.of)(this._data)}disconnect(){}}class c{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,s){t.forEachOperation((t,r,o)=>{let a,l;null==t.previousIndex?(a=this._insertView(()=>n(t,r,o),o,e,i(t)),l=a?1:0):null==o?(this._detachAndCacheView(r,e),l=3):(a=this._moveView(r,o,e,i(t)),l=2),s&&s({context:null==a?void 0:a.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,n,i){const s=this._insertViewFromCache(e,n);if(s)return void(s.context.$implicit=i);const r=t();return n.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(t,e){const n=e.detach(t);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const s=n.get(t);return n.move(s,e),s.context.$implicit=i,s}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let h=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const d=new o.OlP("_ViewRepeater")},6461:(t,e,n)=>{"use strict";n.d(e,{A:()=>_,zL:()=>a,jx:()=>o,JH:()=>f,uR:()=>u,K5:()=>s,hY:()=>l,Sd:()=>h,oh:()=>d,b2:()=>w,MW:()=>v,aO:()=>b,SV:()=>m,JU:()=>r,L_:()=>c,Mf:()=>i,LH:()=>p,Z:()=>y,xE:()=>g,Vb:()=>S});const i=9,s=13,r=16,o=17,a=18,l=27,c=32,u=35,h=36,d=37,p=38,m=39,f=40,g=48,b=57,_=65,y=90,v=91,w=224;function S(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},8553:(t,e,n)=>{"use strict";n.d(e,{wD:()=>u,yq:()=>c,Q8:()=>h});var i=n(9490),s=n(7716),r=n(7574),o=n(9765),a=n(4395);let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=(0,i.fI)(t);return new r.y(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.xQ,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(l))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(l))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,i.Ig)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=(0,i.su)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,a.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[l]}),t})()},625:(t,e,n)=>{"use strict";n.d(e,{pI:()=>X,xu:()=>K,aV:()=>$,X_:()=>k,Xj:()=>D,U8:()=>tt});var i=n(9243),s=n(7716),r=n(521),o=n(946),a=n(8583),l=n(9490),c=n(7636),u=n(9765),h=n(5319),d=n(6682),p=n(7393);class m{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new f(t,this.predicate,this.inclusive))}}class f extends p.L{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}var g=n(5257),b=n(6782),_=n(6461);const y=(0,r.Mq)();class v{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=(0,l.HM)(-this._previousScrollPosition.left),t.style.top=(0,l.HM)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),y&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),y&&(e.scrollBehavior=i,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class w{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class S{enable(){}disable(){}attach(){}}function x(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function T(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class C{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();x(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let A=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new S,this.close=t=>new w(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new v(this._viewportRuler,this._document),this.reposition=t=>new C(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.mF),s.LFG(i.rL),s.LFG(s.R0b),s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.mF),s.LFG(i.rL),s.LFG(s.R0b),s.LFG(a.K0))},token:t,providedIn:"root"}),t})();class k{constructor(t){if(this.scrollStrategy=new S,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class E{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class I{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let O=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),M=(()=>{class t extends O{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),P=(()=>{class t extends O{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0),s.LFG(r.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0),s.LFG(r.t4))},token:t,providedIn:"root"}),t})();const L="undefined"!=typeof window?window:{},R=void 0!==L.__karma__&&!!L.__karma__||void 0!==L.jasmine&&!!L.jasmine||void 0!==L.jest&&!!L.jest||void 0!==L.Mocha&&!!L.Mocha;let D=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||R){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new u.xQ,this._outsidePointerEvents=new u.xQ,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,g.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),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=(0,l.HM)(this._config.width),t.height=(0,l.HM)(this._config.height),t.minWidth=(0,l.HM)(this._config.minWidth),t.minHeight=(0,l.HM)(this._config.minHeight),t.maxWidth=(0,l.HM)(this._config.maxWidth),t.maxHeight=(0,l.HM)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;(0,l.Eq)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe((0,b.R)((0,d.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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const N="cdk-overlay-connected-position-bounding-box",Z=/([A-Za-z%]+)$/;class G{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new u.xQ,this._resizeSubscription=h.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(N),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&B(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(N),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){const s=q(e);let{x:r,y:o}=t,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(r+=a),l&&(o+=l);let c=0-o,u=o+s.height-n.height,h=this._subtractOverflows(s.width,0-r,r+s.width-n.width),d=this._subtractOverflows(s.height,c,u),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=H(this._overlayRef.getConfig().minHeight),o=H(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=q(e),s=this._viewportRect,r=Math.max(t.x+i.width-s.width,0),o=Math.max(t.y+i.height-s.height,0),a=Math.max(s.top-n.top-t.y,0),l=Math.max(s.left-n.left-t.x,0);let c=0,u=0;return c=i.width<=s.width?l||-r:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=(0,l.HM)(n.height),i.top=(0,l.HM)(n.top),i.bottom=(0,l.HM)(n.bottom),i.width=(0,l.HM)(n.width),i.left=(0,l.HM)(n.left),i.right=(0,l.HM)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=(0,l.HM)(t)),s&&(i.maxWidth=(0,l.HM)(s))}this._lastBoundingBoxSize=n,B(this._boundingBox.style,i)}_resetBoundingBoxStyles(){B(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){B(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();B(n,this._getExactOverlayY(e,t,i)),B(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=(0,l.HM)(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=(0,l.HM)(r.maxWidth):s&&(n.maxWidth="")),B(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=(0,l.HM)(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=(0,l.HM)(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:T(t,n),isOriginOutsideView:x(t,n),isOverlayClipped:T(e,n),isOverlayOutsideView:x(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&(0,l.Eq)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function B(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function H(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(Z);return n&&"px"!==n?null:parseFloat(e)}return t||null}function q(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class V{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new G(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new E(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const U="cdk-global-overlay-wrapper";class j{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(U),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(U),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let z=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new j}connectedTo(t,e,n){return new V(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new G(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.rL),s.LFG(a.K0),s.LFG(r.t4),s.LFG(D))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.rL),s.LFG(a.K0),s.LFG(r.t4),s.LFG(D))},token:t,providedIn:"root"}),t})(),Y=0,$=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new k(t);return s.direction=s.direction||this._directionality.value,new F(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+Y++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new c.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(A),s.LFG(D),s.LFG(s._Vd),s.LFG(z),s.LFG(M),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(o.Is),s.LFG(a.Ye),s.LFG(P))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const W=[{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"}],Q=new s.OlP("cdk-connected-overlay-scroll-strategy");let K=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),X=(()=>{class t{constructor(t,e,n,i,r){this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.vpe,this.positionChange=new s.vpe,this.attach=new s.vpe,this.detach=new s.vpe,this.overlayKeydown=new s.vpe,this.overlayOutsideClick=new s.vpe,this._templatePortal=new c.UE(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,l.Ig)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=(0,l.Ig)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=(0,l.Ig)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=(0,l.Ig)(t)}get push(){return this._push}set push(t){this._push=(0,l.Ig)(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=W);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==_.hY||this.disableClose||(0,_.Vb)(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new k({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return n=>n.lift(new m(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36($),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(Q),s.Y36(o.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.TTD]}),t})();const J={provide:Q,deps:[$],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[$,J],imports:[[o.vT,c.eL,i.Cl],i.Cl]}),t})()},521:(t,e,n)=>{"use strict";n.d(e,{t4:()=>a,ud:()=>l,ht:()=>y,kV:()=>_,_i:()=>b,qK:()=>u,i$:()=>f,Mq:()=>g});var i=n(7716),s=n(8583);let r;try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(v){r=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,s.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&&!r)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.Lbi))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(i.Lbi))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(c),o;let t=document.createElement("input");return o=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let h,d,p,m;function f(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function g(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if("scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p}function b(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function _(t){if(function(){if(null==m){const t="undefined"!=typeof document?document.head:null;m=!(!t||!t.createShadowRoot&&!t.attachShadow)}return m}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function y(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}},7636:(t,e,n)=>{"use strict";n.d(e,{en:()=>c,Pl:()=>h,C5:()=>o,u0:()=>u,eL:()=>d,UE:()=>a});var i=n(7716),s=n(8583);class r{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class o extends r{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class a extends r{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class l extends r{constructor(t){super(),this.element=t instanceof i.SBq?t.nativeElement:t}}class c{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof o?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class u extends c{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let h=(()=>{class t extends c{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(s.K0))},t.\u0275dir=i.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},9243:(t,e,n)=>{"use strict";n.d(e,{PQ:()=>_,ZD:()=>v,mF:()=>b,Cl:()=>w,rL:()=>y});var i=n(9490),s=n(7716),r=n(6465),o=n(6102);new class extends o.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});var a=n(9765),l=n(5917),c=n(7574),u=n(2759);n(4581),n(5319),n(5639),n(7393),new class extends o.v{}(class extends r.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}),n(3098),n(7971),n(8858),n(7519);var h=n(628),d=n(5435),p=n(6782),m=(n(9761),n(3190),n(521)),f=n(8583),g=n(946);n(7860);let b=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new a.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new c.y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe((0,h.e)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,l.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,d.h)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=(0,i.fI)(e),s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return(0,u.R)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(m.t4),s.LFG(f.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(m.t4),s.LFG(f.K0,8))},token:t,providedIn:"root"}),t})(),_=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=i,this._destroyed=new a.xQ,this._elementScrolled=new c.y(t=>this.ngZone.runOutsideAngular(()=>(0,u.R)(this.elementRef.nativeElement,"scroll").pipe((0,p.R)(this._destroyed)).subscribe(t)))}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(t){const e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=(0,m._i)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==(0,m._i)()?t.left=t.right:1==(0,m._i)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;(0,m.Mq)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e="left",n="right",i=this.elementRef.nativeElement;if("top"==t)return i.scrollTop;if("bottom"==t)return i.scrollHeight-i.clientHeight-i.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==t?t=s?n:e:"end"==t&&(t=s?e:n),s&&2==(0,m._i)()?t==e?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:s&&1==(0,m._i)()?t==e?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:t==e?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(b),s.Y36(s.R0b),s.Y36(g.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),y=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new a.xQ,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe((0,h.e)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(m.t4),s.LFG(s.R0b),s.LFG(f.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(m.t4),s.LFG(s.R0b),s.LFG(f.K0,8))},token:t,providedIn:"root"}),t})(),v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[g.vT,m.ud,v],g.vT,v]}),t})()},9490:(t,e,n)=>{"use strict";n.d(e,{Eq:()=>o,Ig:()=>s,HM:()=>a,fI:()=>l,su:()=>r});var i=n(7716);function s(t){return null!=t&&"false"!=`${t}`}function r(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function o(t){return Array.isArray(t)?t:[t]}function a(t){return null==t?"":"string"==typeof t?t:`${t}px`}function l(t){return t instanceof i.SBq?t.nativeElement:t}},8583:(t,e,n)=>{"use strict";n.d(e,{mr:()=>v,Ov:()=>Pt,ez:()=>Dt,K0:()=>l,uU:()=>Lt,JJ:()=>Rt,Do:()=>S,V_:()=>h,Ye:()=>x,S$:()=>_,mk:()=>mt,sg:()=>gt,O5:()=>_t,PC:()=>Ct,RF:()=>St,n9:()=>xt,ED:()=>Tt,tP:()=>At,b0:()=>w,lw:()=>c,EM:()=>Gt,JF:()=>qt,NF:()=>Nt,PM:()=>Zt,qS:()=>dt,w_:()=>a,bD:()=>Ft,q:()=>r,Mx:()=>pt,HT:()=>o});var i=n(7716);let s=null;function r(){return s}function o(t){s||(s=t)}class a{}const l=new i.OlP("DocumentToken");let c=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return(0,i.LFG)(d)}const h=new i.OlP("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return r().getBaseHref(this._doc)}onPopState(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(l))},t.\u0275prov=(0,i.Yz7)({factory:m,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function m(){return new d((0,i.LFG)(l))}function f(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function b(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=(0,i.LFG)(l).location;return new w((0,i.LFG)(c),e&&e.origin||"")}const v=new i.OlP("appBaseHref");let w=(()=>{class t extends _{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return f(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+b(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+b(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(v,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),S=(()=>{class t extends _{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=f(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+b(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+b(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(v,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t{constructor(t,e){this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(C(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+b(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,C(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(_),i.LFG(c))},t.normalizeQueryParams=b,t.joinWithSlash=f,t.stripTrailingSlash=g,t.\u0275prov=(0,i.Yz7)({factory:T,token:t,providedIn:"root"}),t})();function T(){return new x((0,i.LFG)(_),(0,i.LFG)(c))}function C(t){return t.replace(/\/index.html$/,"")}var A=(()=>((A=A||{})[A.Decimal=0]="Decimal",A[A.Percent=1]="Percent",A[A.Currency=2]="Currency",A[A.Scientific=3]="Scientific",A))(),k=(()=>((k=k||{})[k.Zero=0]="Zero",k[k.One=1]="One",k[k.Two=2]="Two",k[k.Few=3]="Few",k[k.Many=4]="Many",k[k.Other=5]="Other",k))(),E=(()=>((E=E||{})[E.Format=0]="Format",E[E.Standalone=1]="Standalone",E))(),I=(()=>((I=I||{})[I.Narrow=0]="Narrow",I[I.Abbreviated=1]="Abbreviated",I[I.Wide=2]="Wide",I[I.Short=3]="Short",I))(),O=(()=>((O=O||{})[O.Short=0]="Short",O[O.Medium=1]="Medium",O[O.Long=2]="Long",O[O.Full=3]="Full",O))(),M=(()=>((M=M||{})[M.Decimal=0]="Decimal",M[M.Group=1]="Group",M[M.List=2]="List",M[M.PercentSign=3]="PercentSign",M[M.PlusSign=4]="PlusSign",M[M.MinusSign=5]="MinusSign",M[M.Exponential=6]="Exponential",M[M.SuperscriptingExponent=7]="SuperscriptingExponent",M[M.PerMille=8]="PerMille",M[M[1/0]=9]="Infinity",M[M.NaN=10]="NaN",M[M.TimeSeparator=11]="TimeSeparator",M[M.CurrencyDecimal=12]="CurrencyDecimal",M[M.CurrencyGroup=13]="CurrencyGroup",M))();function P(t,e){return Z((0,i.cg1)(t)[i.wAp.DateFormat],e)}function L(t,e){return Z((0,i.cg1)(t)[i.wAp.TimeFormat],e)}function R(t,e){return Z((0,i.cg1)(t)[i.wAp.DateTimeFormat],e)}function D(t,e){const n=(0,i.cg1)(t),s=n[i.wAp.NumberSymbols][e];if(void 0===s){if(e===M.CurrencyDecimal)return n[i.wAp.NumberSymbols][M.Decimal];if(e===M.CurrencyGroup)return n[i.wAp.NumberSymbols][M.Group]}return s}const F=i.kL8;function N(t){if(!t[i.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[i.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Z(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function G(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const B=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,H={},q=/((?:[^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 V=(()=>((V=V||{})[V.Short=0]="Short",V[V.ShortGMT=1]="ShortGMT",V[V.Long=2]="Long",V[V.Extended=3]="Extended",V))(),U=(()=>((U=U||{})[U.FullYear=0]="FullYear",U[U.Month=1]="Month",U[U.Date=2]="Date",U[U.Hours=3]="Hours",U[U.Minutes=4]="Minutes",U[U.Seconds=5]="Seconds",U[U.FractionalSeconds=6]="FractionalSeconds",U[U.Day=7]="Day",U))(),j=(()=>((j=j||{})[j.DayPeriods=0]="DayPeriods",j[j.Days=1]="Days",j[j.Months=2]="Months",j[j.Eras=3]="Eras",j))();function z(t,e,n,i){let s=function(t){if(rt(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,n=1,i=1]=t.split("-").map(t=>+t);return Y(e,n-1,i)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(B))return function(t){const e=new Date(0);let n=0,i=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,o,a,l,c),e}(n)}const e=new Date(t);if(!rt(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=$(n,e)||e;let r,o=[];for(;e;){if(r=q.exec(e),!r){o.push(e);break}{o=o.concat(r.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();i&&(a=st(i,a),s=function(t,e,n){const i=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(st(e,i)-i))}(s,i));let l="";return o.forEach(t=>{const e=function(t){if(it[t])return it[t];let e;switch(t){case"G":case"GG":case"GGG":e=X(j.Eras,I.Abbreviated);break;case"GGGG":e=X(j.Eras,I.Wide);break;case"GGGGG":e=X(j.Eras,I.Narrow);break;case"y":e=K(U.FullYear,1,0,!1,!0);break;case"yy":e=K(U.FullYear,2,0,!0,!0);break;case"yyy":e=K(U.FullYear,3,0,!1,!0);break;case"yyyy":e=K(U.FullYear,4,0,!1,!0);break;case"Y":e=nt(1);break;case"YY":e=nt(2,!0);break;case"YYY":e=nt(3);break;case"YYYY":e=nt(4);break;case"M":case"L":e=K(U.Month,1,1);break;case"MM":case"LL":e=K(U.Month,2,1);break;case"MMM":e=X(j.Months,I.Abbreviated);break;case"MMMM":e=X(j.Months,I.Wide);break;case"MMMMM":e=X(j.Months,I.Narrow);break;case"LLL":e=X(j.Months,I.Abbreviated,E.Standalone);break;case"LLLL":e=X(j.Months,I.Wide,E.Standalone);break;case"LLLLL":e=X(j.Months,I.Narrow,E.Standalone);break;case"w":e=et(1);break;case"ww":e=et(2);break;case"W":e=et(1,!0);break;case"d":e=K(U.Date,1);break;case"dd":e=K(U.Date,2);break;case"c":case"cc":e=K(U.Day,1);break;case"ccc":e=X(j.Days,I.Abbreviated,E.Standalone);break;case"cccc":e=X(j.Days,I.Wide,E.Standalone);break;case"ccccc":e=X(j.Days,I.Narrow,E.Standalone);break;case"cccccc":e=X(j.Days,I.Short,E.Standalone);break;case"E":case"EE":case"EEE":e=X(j.Days,I.Abbreviated);break;case"EEEE":e=X(j.Days,I.Wide);break;case"EEEEE":e=X(j.Days,I.Narrow);break;case"EEEEEE":e=X(j.Days,I.Short);break;case"a":case"aa":case"aaa":e=X(j.DayPeriods,I.Abbreviated);break;case"aaaa":e=X(j.DayPeriods,I.Wide);break;case"aaaaa":e=X(j.DayPeriods,I.Narrow);break;case"b":case"bb":case"bbb":e=X(j.DayPeriods,I.Abbreviated,E.Standalone,!0);break;case"bbbb":e=X(j.DayPeriods,I.Wide,E.Standalone,!0);break;case"bbbbb":e=X(j.DayPeriods,I.Narrow,E.Standalone,!0);break;case"B":case"BB":case"BBB":e=X(j.DayPeriods,I.Abbreviated,E.Format,!0);break;case"BBBB":e=X(j.DayPeriods,I.Wide,E.Format,!0);break;case"BBBBB":e=X(j.DayPeriods,I.Narrow,E.Format,!0);break;case"h":e=K(U.Hours,1,-12);break;case"hh":e=K(U.Hours,2,-12);break;case"H":e=K(U.Hours,1);break;case"HH":e=K(U.Hours,2);break;case"m":e=K(U.Minutes,1);break;case"mm":e=K(U.Minutes,2);break;case"s":e=K(U.Seconds,1);break;case"ss":e=K(U.Seconds,2);break;case"S":e=K(U.FractionalSeconds,1);break;case"SS":e=K(U.FractionalSeconds,2);break;case"SSS":e=K(U.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=J(V.Short);break;case"ZZZZZ":e=J(V.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=J(V.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=J(V.Long);break;default:return null}return it[t]=e,e}(t);l+=e?e(s,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Y(t,e,n){const i=new Date(0);return i.setFullYear(t,e,n),i.setHours(0,0,0),i}function $(t,e){const n=function(t){return(0,i.cg1)(t)[i.wAp.LocaleId]}(t);if(H[n]=H[n]||{},H[n][e])return H[n][e];let s="";switch(e){case"shortDate":s=P(t,O.Short);break;case"mediumDate":s=P(t,O.Medium);break;case"longDate":s=P(t,O.Long);break;case"fullDate":s=P(t,O.Full);break;case"shortTime":s=L(t,O.Short);break;case"mediumTime":s=L(t,O.Medium);break;case"longTime":s=L(t,O.Long);break;case"fullTime":s=L(t,O.Full);break;case"short":const e=$(t,"shortTime"),n=$(t,"shortDate");s=W(R(t,O.Short),[e,n]);break;case"medium":const i=$(t,"mediumTime"),r=$(t,"mediumDate");s=W(R(t,O.Medium),[i,r]);break;case"long":const o=$(t,"longTime"),a=$(t,"longDate");s=W(R(t,O.Long),[o,a]);break;case"full":const l=$(t,"fullTime"),c=$(t,"fullDate");s=W(R(t,O.Full),[l,c])}return s&&(H[n][e]=s),s}function W(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function Q(t,e,n="-",i,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=n));let o=String(t);for(;o.length0||a>-n)&&(a+=n),t===U.Hours)0===a&&-12===n&&(a=12);else if(t===U.FractionalSeconds)return l=e,Q(a,3).substr(0,l);var l;const c=D(o,M.MinusSign);return Q(a,e,c,i,s)}}function X(t,e,n=E.Format,s=!1){return function(r,o){return function(t,e,n,s,r,o){switch(n){case j.Months:return function(t,e,n){const s=(0,i.cg1)(t),r=Z([s[i.wAp.MonthsFormat],s[i.wAp.MonthsStandalone]],e);return Z(r,n)}(e,r,s)[t.getMonth()];case j.Days:return function(t,e,n){const s=(0,i.cg1)(t),r=Z([s[i.wAp.DaysFormat],s[i.wAp.DaysStandalone]],e);return Z(r,n)}(e,r,s)[t.getDay()];case j.DayPeriods:const a=t.getHours(),l=t.getMinutes();if(o){const t=function(t){const e=(0,i.cg1)(t);return N(e),(e[i.wAp.ExtraData][2]||[]).map(t=>"string"==typeof t?G(t):[G(t[0]),G(t[1])])}(e),n=function(t,e,n){const s=(0,i.cg1)(t);N(s);const r=Z([s[i.wAp.ExtraData][0],s[i.wAp.ExtraData][1]],e)||[];return Z(r,n)||[]}(e,r,s),o=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,i=a>=e.hours&&l>=e.minutes,s=a0?Math.floor(s/60):Math.ceil(s/60);switch(t){case V.Short:return(s>=0?"+":"")+Q(o,2,r)+Q(Math.abs(s%60),2,r);case V.ShortGMT:return"GMT"+(s>=0?"+":"")+Q(o,1,r);case V.Long:return"GMT"+(s>=0?"+":"")+Q(o,2,r)+":"+Q(Math.abs(s%60),2,r);case V.Extended:return 0===i?"Z":(s>=0?"+":"")+Q(o,2,r)+":"+Q(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function tt(t){return Y(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function et(t,e=!1){return function(n,i){let s;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();s=1+Math.floor((e+t)/7)}else{const t=tt(n),e=function(t){const e=Y(t,0,1).getDay();return Y(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),i=t.getTime()-e.getTime();s=1+Math.round(i/6048e5)}return Q(s,t,D(i,M.MinusSign))}}function nt(t,e=!1){return function(n,i){return Q(tt(n).getFullYear(),t,D(i,M.MinusSign),e)}}const it={};function st(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function rt(t){return t instanceof Date&&!isNaN(t.valueOf())}const ot=/^(\d+)?\.((\d+)(-(\d+))?)?$/,at=".",lt="0";function ct(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class ut{}let ht=(()=>{class t extends ut{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(F(e||this.locale)(t)){case k.Zero:return"zero";case k.One:return"one";case k.Two:return"two";case k.Few:return"few";case k.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.soG))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function dt(t,e,n){return(0,i.dwT)(t,e,n)}function pt(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let mt=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class ft{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let gt=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new ft(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new bt(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new bt(t,s);e.push(r)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class bt{constructor(t,e){this.record=t,this.view=e}}let _t=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new yt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){vt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){vt("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class yt{constructor(){this.$implicit=null,this.ngIf=null}}function vt(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.AaK)(e)}'.`)}class wt{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let St=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new wt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(St,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Tt=(()=>{class t{constructor(t,e,n){n._addDefault(new wt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(St,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Ct=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.aQg),i.Y36(i.Qsj))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),At=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.TTD]}),t})();function kt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,i.AaK)(t)}'`)}class Et{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class It{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Ot=new It,Mt=new Et;let Pt=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,i.QGY)(e))return Ot;if((0,i.F4k)(e))return Mt;throw kt(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO,16))},t.\u0275pipe=i.Yjl({name:"async",type:t,pure:!1}),t})(),Lt=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",i,s){if(null==e||""===e||e!=e)return null;try{return z(e,n,s||this.locale,i)}catch(r){throw kt(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.soG,16))},t.\u0275pipe=i.Yjl({name:"date",type:t,pure:!0}),t})(),Rt=(()=>{class t{constructor(t){this._locale=t}transform(e,n,s){if(!function(t){return!(null==t||""===t||t!=t)}(e))return null;s=s||this._locale;try{return function(t,e,n){return function(t,e,n,i,s,r,o=!1){let a="",l=!1;if(isFinite(t)){let c=function(t){let e,n,i,s,r,o=Math.abs(t)+"",a=0;for((n=o.indexOf(at))>-1&&(o=o.replace(at,"")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;o.charAt(i)===lt;i++);if(i===(r=o.length))e=[0],n=1;else{for(r--;o.charAt(r)===lt;)r--;for(n-=i,e=[],s=0;i<=r;i++,s++)e[s]=Number(o.charAt(i))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);o&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let u=e.minInt,h=e.minFrac,d=e.maxFrac;if(r){const t=r.match(ot);if(null===t)throw new Error(`${r} is not a valid digit info`);const e=t[1],n=t[3],i=t[5];null!=e&&(u=ct(e)),null!=n&&(h=ct(n)),null!=i?d=ct(i):null!=n&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let i=t.digits,s=i.length-t.integerLen;const r=Math.min(Math.max(e,s),n);let o=r+t.integerLen,a=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(let t=o;t=5)if(o-1<0){for(let e=0;e>o;e--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;s=c?i.pop():l=!1),e>=10?1:0},0);u&&(i.unshift(u),t.integerLen++)}(c,h,d);let p=c.digits,m=c.integerLen;const f=c.exponent;let g=[];for(l=p.every(t=>!t);m0?g=p.splice(m,p.length):(g=p,p=[0]);const b=[];for(p.length>=e.lgSize&&b.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)b.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&b.unshift(p.join("")),a=b.join(D(n,i)),g.length&&(a+=D(n,s)+g.join("")),f&&(a+=D(n,M.Exponential)+"+"+f)}else a=D(n,M.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),s=i[0],r=i[1],o=-1!==s.indexOf(at)?s.split(at):[s.substring(0,s.lastIndexOf(lt)+1),s.substring(s.lastIndexOf(lt)+1)],a=o[0],l=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:ut,useClass:ht}]}),t})();const Ft="browser";function Nt(t){return t===Ft}function Zt(t){return"server"===t}let Gt=(()=>{class t{}return t.\u0275prov=(0,i.Yz7)({token:t,providedIn:"root",factory:()=>new Bt((0,i.LFG)(l),window)}),t})();class Bt{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Ht(this.window.history)||Ht(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Ht(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class qt{}},1841:(t,e,n)=>{"use strict";n.d(e,{TP:()=>O,eN:()=>E,JF:()=>H,UA:()=>A,WM:()=>d,LE:()=>g,Zn:()=>C});var i=n(8583),s=n(7716),r=n(5917),o=n(7574),a=n(4612),l=n(5435),c=n(8002);class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return m(t)}encodeValue(t){return m(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function m(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function f(t){return`${t}`}class g{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new g({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(f(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(f(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class b{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function _(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function y(t){return"undefined"!=typeof Blob&&t instanceof Blob}function v(t){return"undefined"!=typeof FormData&&t instanceof FormData}class w{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new b),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new w(n,i,r,{params:c,headers:l,context:u,reportProgress:a,responseType:s,withCredentials:o})}}var S=(()=>((S=S||{})[S.Sent=0]="Sent",S[S.UploadProgress=1]="UploadProgress",S[S.ResponseHeader=2]="ResponseHeader",S[S.DownloadProgress=3]="DownloadProgress",S[S.Response=4]="Response",S[S.User=5]="User",S))();class x{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class T extends x{constructor(t={}){super(t),this.type=S.ResponseHeader}clone(t={}){return new T({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class C extends x{constructor(t={}){super(t),this.type=S.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new C({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class A extends x{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function k(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let E=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof w)i=t;else{let s,r;s=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(r=n.params instanceof g?n.params:new g({fromObject:n.params})),i=new w(t,e,void 0!==n.body?n.body:null,{headers:s,context:n.context,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=(0,r.of)(i).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof w||"events"===n.observe)return s;const o=s.pipe((0,l.h)(t=>t instanceof C));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe((0,c.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe((0,c.U)(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new g).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,k(n,e))}post(t,e,n={}){return this.request("POST",t,k(n,e))}put(t,e,n={}){return this.request("PUT",t,k(n,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(u))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class I{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const O=new s.OlP("HTTP_INTERCEPTORS");let M=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const P=/^\)\]\}',?\n/;let L=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new T({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(P,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new C({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new A({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new A({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:S.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:S.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:S.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const R=new s.OlP("XSRF_COOKIE_NAME"),D=new s.OlP("XSRF_HEADER_NAME");class F{}let N=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0),s.LFG(s.Lbi),s.LFG(R))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F),s.LFG(D))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),G=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(O,[]);this.chain=t.reduceRight((t,e)=>new I(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Z,useClass:M}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:R,useValue:e.cookieName}:[],e.headerName?{provide:D,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Z,{provide:O,useExisting:Z,multi:!0},{provide:F,useClass:N},{provide:R,useValue:"XSRF-TOKEN"},{provide:D,useValue:"X-XSRF-TOKEN"}]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[E,{provide:u,useClass:G},L,{provide:h,useExisting:L}],imports:[[B.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},7716:(t,e,n)=>{"use strict";n.d(e,{deG:()=>ln,tb:()=>hc,AFp:()=>oc,ip1:()=>sc,CZH:()=>rc,hGG:()=>su,z2F:()=>$c,sBO:()=>tl,Sil:()=>Sc,_Vd:()=>Ta,EJc:()=>mc,SBq:()=>Ea,qLn:()=>Ei,vpe:()=>Zl,gxx:()=>br,tBr:()=>In,XFs:()=>I,OlP:()=>an,zs3:()=>Pr,ZZ4:()=>Ya,aQg:()=>Wa,soG:()=>pc,YKP:()=>ul,v3s:()=>Qc,h0i:()=>cl,PXZ:()=>Vc,R0b:()=>Cc,FiY:()=>On,Lbi:()=>uc,g9A:()=>cc,n_E:()=>Bl,Qsj:()=>Ma,FYo:()=>Oa,JOm:()=>Li,Tiy:()=>La,q3G:()=>yi,tp0:()=>Mn,EAV:()=>Jc,Rgc:()=>rl,dDg:()=>Pc,DyG:()=>cn,GfV:()=>Ra,s_b:()=>dl,ifc:()=>D,eFA:()=>Uc,G48:()=>Hc,Gpc:()=>p,f3M:()=>An,X6Q:()=>Bc,_c5:()=>nu,VLi:()=>Dc,c2e:()=>dc,zSh:()=>yr,wAp:()=>ua,vHH:()=>g,EiD:()=>bi,mCW:()=>ti,qzn:()=>Vn,JVY:()=>jn,pB0:()=>Wn,eBb:()=>Yn,L6k:()=>zn,LAX:()=>$n,cg1:()=>aa,Tjo:()=>eu,kL8:()=>la,yhl:()=>Un,dqk:()=>B,sIi:()=>qr,CqO:()=>uo,QGY:()=>lo,F4k:()=>co,dwT:()=>oa,RDi:()=>Ct,AaK:()=>u,z3N:()=>qn,qOj:()=>Rr,TTD:()=>_t,_Bn:()=>wa,xp6:()=>vs,uIk:()=>Yr,Gre:()=>Jo,ekj:()=>Do,Suo:()=>Xl,Xpm:()=>K,lG2:()=>st,Yz7:()=>v,cJS:()=>w,oAB:()=>et,Yjl:()=>rt,Y36:()=>Kr,_UZ:()=>io,GkF:()=>oo,BQk:()=>ro,ynx:()=>so,qZA:()=>no,TgZ:()=>eo,EpF:()=>ao,n5z:()=>en,Ikx:()=>ea,LFG:()=>Cn,$8M:()=>sn,$Z:()=>Xr,NdJ:()=>ho,CRH:()=>Jl,kcU:()=>ye,O4$:()=>_e,oxw:()=>bo,ALo:()=>Ml,lcZ:()=>Pl,xi3:()=>Ll,Dn7:()=>Rl,Hsn:()=>vo,F$t:()=>yo,Q6J:()=>Jr,s9C:()=>wo,DdM:()=>kl,VKq:()=>El,iGM:()=>Ql,MAs:()=>Qr,pYS:()=>Mi,Jf7:()=>Oi,CHM:()=>Ut,oJD:()=>vi,LSH:()=>wi,kYT:()=>nt,Jzz:()=>ta,Udp:()=>Ro,WFA:()=>po,d8E:()=>na,YNc:()=>Wr,W1O:()=>ic,_uU:()=>Wo,Oqu:()=>Qo,hij:()=>Ko,AsE:()=>Xo,Gf:()=>Kl});var i=n(9765),s=n(5319),r=n(7574),o=n(6682),a=n(8345);function l(t){for(let e in t)if(t[e]===l)return e;throw Error("Could not find renamed property on target object.")}function c(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function u(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(u).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=l({__forward_ref__:l});function p(t){return t.__forward_ref__=p,t.toString=function(){return u(this())},t}function m(t){return f(t)?t():t}function f(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class g extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function b(t){return"string"==typeof t?t:null==t?"":String(t)}function _(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():b(t)}function y(t,e){const n=e?` in ${e}`:"";throw new g("201",`No provider for ${_(t)} found${n}`)}function v(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function w(t){return{providers:t.providers||[],imports:t.imports||[]}}function S(t){return x(t,C)||x(t,k)}function x(t,e){return t.hasOwnProperty(e)?t[e]:null}function T(t){return t&&(t.hasOwnProperty(A)||t.hasOwnProperty(E))?t[A]:null}const C=l({"\u0275prov":l}),A=l({"\u0275inj":l}),k=l({ngInjectableDef:l}),E=l({ngInjectorDef:l});var I=(()=>((I=I||{})[I.Default=0]="Default",I[I.Host=1]="Host",I[I.Self=2]="Self",I[I.SkipSelf=4]="SkipSelf",I[I.Optional=8]="Optional",I))();let O;function M(t){const e=O;return O=t,e}function P(t,e,n){const i=S(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&I.Optional?null:void 0!==e?e:void y(u(t),"Injector")}function L(t){return{toString:t}.toString()}var R=(()=>((R=R||{})[R.OnPush=0]="OnPush",R[R.Default=1]="Default",R))(),D=(()=>((D=D||{})[D.Emulated=0]="Emulated",D[D.None=2]="None",D[D.ShadowDom=3]="ShadowDom",D))();const F="undefined"!=typeof globalThis&&globalThis,N="undefined"!=typeof window&&window,Z="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,G="undefined"!=typeof global&&global,B=F||G||N||Z,H={},q=[],V=l({"\u0275cmp":l}),U=l({"\u0275dir":l}),j=l({"\u0275pipe":l}),z=l({"\u0275mod":l}),Y=l({"\u0275loc":l}),$=l({"\u0275fac":l}),W=l({__NG_ELEMENT_ID__:l});let Q=0;function K(t){return L(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===R.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||q,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||D.Emulated,id:"c",styles:t.styles||q,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=Q++,n.inputs=it(t.inputs,e),n.outputs=it(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(X):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(J):null,n})}function X(t){return ot(t)||function(t){return t[U]||null}(t)}function J(t){return function(t){return t[j]||null}(t)}const tt={};function et(t){return L(()=>{const e={type:t.type,bootstrap:t.bootstrap||q,declarations:t.declarations||q,imports:t.imports||q,exports:t.exports||q,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(tt[t.id]=t.type),e})}function nt(t,e){return L(()=>{const n=at(t,!0);n.declarations=e.declarations||q,n.imports=e.imports||q,n.exports=e.exports||q})}function it(t,e){if(null==t)return H;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const st=K;function rt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ot(t){return t[V]||null}function at(t,e){const n=t[z]||null;if(!n&&!0===e)throw new Error(`Type ${u(t)} does not have '\u0275mod' property.`);return n}const lt=20,ct=10;function ut(t){return Array.isArray(t)&&"object"==typeof t[1]}function ht(t){return Array.isArray(t)&&!0===t[1]}function dt(t){return 0!=(8&t.flags)}function pt(t){return 2==(2&t.flags)}function mt(t){return 1==(1&t.flags)}function ft(t){return null!==t.template}function gt(t,e){return t.hasOwnProperty($)?t[$]:null}class bt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function _t(){return yt}function yt(t){return t.type.prototype.ngOnChanges&&(t.setInput=wt),vt}function vt(){const t=St(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===H)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function wt(t,e,n,i){const s=St(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:H,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new bt(l&&l.currentValue,e,o===H),t[i]=e}function St(t){return t.__ngSimpleChanges__||null}_t.ngInherit=!0;const xt="http://www.w3.org/2000/svg";let Tt;function Ct(t){Tt=t}function At(){return void 0!==Tt?Tt:"undefined"!=typeof document?document:void 0}function kt(t){return!!t.listen}const Et={createRenderer:(t,e)=>At()};function It(t){for(;Array.isArray(t);)t=t[0];return t}function Ot(t,e){return It(e[t])}function Mt(t,e){return It(e[t.index])}function Pt(t,e){return t.data[e]}function Lt(t,e){return t[e]}function Rt(t,e){const n=e[t];return ut(n)?n:n[0]}function Dt(t){return 4==(4&t[2])}function Ft(t){return 128==(128&t[2])}function Nt(t,e){return null==e?null:t[e]}function Zt(t){t[18]=0}function Gt(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Bt={lFrame:he(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ht(){return Bt.bindingsEnabled}function qt(){return Bt.lFrame.lView}function Vt(){return Bt.lFrame.tView}function Ut(t){return Bt.lFrame.contextLView=t,t[8]}function jt(){let t=zt();for(;null!==t&&64===t.type;)t=t.parent;return t}function zt(){return Bt.lFrame.currentTNode}function Yt(t,e){const n=Bt.lFrame;n.currentTNode=t,n.isParent=e}function $t(){return Bt.lFrame.isParent}function Wt(){Bt.lFrame.isParent=!1}function Qt(){return Bt.isInCheckNoChangesMode}function Kt(t){Bt.isInCheckNoChangesMode=t}function Xt(){const t=Bt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Jt(){return Bt.lFrame.bindingIndex}function te(){return Bt.lFrame.bindingIndex++}function ee(t){const e=Bt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function ne(t,e){const n=Bt.lFrame;n.bindingIndex=n.bindingRootIndex=t,ie(e)}function ie(t){Bt.lFrame.currentDirectiveIndex=t}function se(t){const e=Bt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function re(){return Bt.lFrame.currentQueryIndex}function oe(t){Bt.lFrame.currentQueryIndex=t}function ae(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function le(t,e,n){if(n&I.SkipSelf){let i=e,s=t;for(;i=i.parent,!(null!==i||n&I.Host||(i=ae(s),null===i)||(s=s[15],10&i.type)););if(null===i)return!1;e=i,t=s}const i=Bt.lFrame=ue();return i.currentTNode=e,i.lView=t,!0}function ce(t){const e=ue(),n=t[1];Bt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function ue(){const t=Bt.lFrame,e=null===t?null:t.child;return null===e?he(t):e}function he(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function de(){const t=Bt.lFrame;return Bt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const pe=de;function me(){const t=de();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function fe(){return Bt.lFrame.selectedIndex}function ge(t){Bt.lFrame.selectedIndex=t}function be(){const t=Bt.lFrame;return Pt(t.tView,t.selectedIndex)}function _e(){Bt.lFrame.currentNamespace=xt}function ye(){Bt.lFrame.currentNamespace=null}function ve(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}const Ae=-1;class ke{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ee(t,e,n){const i=kt(t);let s=0;for(;se){o=r-1;break}}}for(;r>16,i=e;for(;n>0;)i=i[15],n--;return i}let Fe=!0;function Ne(t){const e=Fe;return Fe=t,e}let Ze=0;function Ge(t,e){const n=He(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Be(i.data,t),Be(e,null),Be(i.blueprint,null));const s=qe(t,e),r=t.injectorIndex;if(Le(s)){const t=Re(s),n=De(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function Be(t,e){t.push(0,0,0,0,0,0,0,0,e)}function He(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function qe(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return Ae;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Ae}function Ve(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(W)&&(i=n[W]),null==i&&(i=n[W]=Ze++);const s=255&i;e.data[t+(s>>5)]|=1<=0?255&e:$e:e}(n);if("function"==typeof r){if(!le(e,t,i))return i&I.Host?Ue(s,n,i):je(e,n,i,s);try{const t=r(i);if(null!=t||i&I.Optional)return t;y(n)}finally{pe()}}else if("number"==typeof r){let s=null,o=He(t,e),a=Ae,l=i&I.Host?e[16][6]:null;for((-1===o||i&I.SkipSelf)&&(a=-1===o?qe(t,e):e[o+8],a!==Ae&&Je(i,!1)?(s=e[1],o=Re(a),e=De(a,e)):o=-1);-1!==o;){const t=e[1];if(Xe(r,o,t.data)){const t=We(o,e,n,s,i,l);if(t!==Ye)return t}a=e[o+8],a!==Ae&&Je(i,e[1].data[o+8]===l)&&Xe(r,o,e)?(s=t,o=Re(a),e=De(a,e)):o=-1}}}return je(e,n,i,s)}const Ye={};function $e(){return new tn(jt(),qt())}function We(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=Qe(a,o,n,null==i?pt(a)&&Fe:i!=o&&0!=(3&a.type),s&I.Host&&r===a);return null!==l?Ke(e,o,l,a):Ye}function Qe(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,u=s?a+c:t.directiveEnd;for(let h=i?a:a+c;h=l&&t.type===n)return h}if(s){const t=o[l];if(t&&ft(t)&&t.type===n)return l}return null}function Ke(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof ke){const o=s;o.resolving&&function(t,e){throw new g("200",`Circular dependency in DI detected for ${t}`)}(_(r[n]));const a=Ne(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?M(o.injectImpl):null;le(t,i,I.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=yt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&M(l),Ne(a),o.resolving=!1,pe()}}return s}function Xe(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[$]||nn(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[$]||nn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function nn(t){return f(t)?()=>{const e=nn(m(t));return e&&e()}:gt(t)}function sn(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty(rn)?t[rn]:Object.defineProperty(t,rn,{value:[]})[rn];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class an{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=v({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ln=new an("AnalyzeForEntryComponents"),cn=Function;function un(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?hn(t,e):e(t))}function dn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function pn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function mn(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function gn(t,e){const n=bn(t,e);if(n>=0)return t[1|n]}function bn(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}const _n={},yn=/\n/gm,vn="__source",wn=l({provide:String,useValue:l});let Sn;function xn(t){const e=Sn;return Sn=t,e}function Tn(t,e=I.Default){if(void 0===Sn)throw new Error("inject() must be called from an injection context");return null===Sn?P(t,void 0,e):Sn.get(t,e&I.Optional?null:void 0,e)}function Cn(t,e=I.Default){return(O||Tn)(m(t),e)}const An=Cn;function kn(t){const e=[];for(let n=0;n({token:t})),-1),On=En(on("Optional"),8),Mn=En(on("SkipSelf"),4);let Pn,Ln;function Rn(t){var e;return(null===(e=function(){if(void 0===Pn&&(Pn=null,B.trustedTypes))try{Pn=B.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Pn}())||void 0===e?void 0:e.createHTML(t))||t}function Dn(t){var e;return(null===(e=function(){if(void 0===Ln&&(Ln=null,B.trustedTypes))try{Ln=B.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Ln}())||void 0===e?void 0:e.createHTML(t))||t}class Fn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Nn extends Fn{getTypeName(){return"HTML"}}class Zn extends Fn{getTypeName(){return"Style"}}class Gn extends Fn{getTypeName(){return"Script"}}class Bn extends Fn{getTypeName(){return"URL"}}class Hn extends Fn{getTypeName(){return"ResourceURL"}}function qn(t){return t instanceof Fn?t.changingThisBreaksApplicationSecurity:t}function Vn(t,e){const n=Un(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Un(t){return t instanceof Fn&&t.getTypeName()||null}function jn(t){return new Nn(t)}function zn(t){return new Zn(t)}function Yn(t){return new Gn(t)}function $n(t){return new Bn(t)}function Wn(t){return new Hn(t)}class Qn{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Rn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Kn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Rn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Rn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0ti(t.trim())).join(", ")),this.buf.push(" ",e,'="',fi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ai.hasOwnProperty(e)&&!ii.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(fi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const pi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mi=/([^\#-~ |!])/g;function fi(t){return t.replace(/&/g,"&").replace(pi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(mi,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let gi;function bi(t,e){let n=null;try{gi=gi||function(t){const e=new Kn(t);return function(){try{return!!(new window.DOMParser).parseFromString(Rn(""),"text/html")}catch(t){return!1}}()?new Qn(e):e}(t);let i=e?String(e):"";n=gi.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=gi.getInertBodyElement(i)}while(i!==r);return Rn((new di).sanitizeChildren(_i(n)||n))}finally{if(n){const t=_i(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function _i(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var yi=(()=>((yi=yi||{})[yi.NONE=0]="NONE",yi[yi.HTML=1]="HTML",yi[yi.STYLE=2]="STYLE",yi[yi.SCRIPT=3]="SCRIPT",yi[yi.URL=4]="URL",yi[yi.RESOURCE_URL=5]="RESOURCE_URL",yi))();function vi(t){const e=Si();return e?Dn(e.sanitize(yi.HTML,t)||""):Vn(t,"HTML")?Dn(qn(t)):bi(At(),b(t))}function wi(t){const e=Si();return e?e.sanitize(yi.URL,t)||"":Vn(t,"URL")?qn(t):ti(b(t))}function Si(){const t=qt();return t&&t[12]}function xi(t,e){t.__ngContext__=e}function Ti(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ci(t){return t.ngDebugContext}function Ai(t){return t.ngOriginalError}function ki(t,...e){t.error(...e)}class Ei{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||ki}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Ci(t)?Ci(t):this._findContext(Ai(t)):null}_findOriginalError(t){let e=Ai(t);for(;e&&Ai(e);)e=Ai(e);return e}}const Ii=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(B))();function Oi(t){return t.ownerDocument.defaultView}function Mi(t){return t.ownerDocument.body}function Pi(t){return t instanceof Function?t():t}var Li=(()=>((Li=Li||{})[Li.Important=1]="Important",Li[Li.DashCase=2]="DashCase",Li))();function Ri(t,e){return(void 0)(t,e)}function Di(t){const e=t[3];return ht(e)?e[3]:e}function Fi(t){return Zi(t[13])}function Ni(t){return Zi(t[4])}function Zi(t){for(;null!==t&&!ht(t);)t=t[4];return t}function Gi(t,e,n,i,s){if(null!=i){let r,o=!1;ht(i)?r=i:ut(i)&&(o=!0,i=i[0]);const a=It(i);0===t&&null!==n?null==s?Yi(e,n,a):zi(e,n,a,s||null,!0):1===t&&null!==n?zi(e,n,a,s||null,!0):2===t?function(t,e,n){const i=Wi(t,e);i&&function(t,e,n,i){kt(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==It(n)&&Gi(e,t,i,r,s);for(let o=ct;o0&&(t[n-1][4]=i[4]);const o=pn(t,ct+e);is(i[1],s=i,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var s;return i}function Vi(t,e){if(!(256&e[2])){const n=e[11];kt(n)&&n.destroyNode&&is(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Ui(t[1],t);for(;e;){let n=null;if(ut(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ut(e)&&Ui(e[1],e),e=e[3];null===e&&(e=t),ut(e)&&Ui(e[1],e),n=e&&e[4]}e=n}}(e)}}function Ui(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?i[s=l]():i[s=-l].unsubscribe(),r+=2}else{const t=i[s=n[r+1]];n[r].call(t)}if(null!==i){for(let t=s+1;tr?"":s[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==as(e,c,0)||2&i&&c!==t){if(ps(i))return!1;o=!0}}}}else{if(!o&&!ps(i)&&!ps(l))return!1;if(o&&ps(l))continue;o=!1,i=l|1&i}}return ps(i)||o}function ps(t){return 0==(1&t)}function ms(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||ps(o)||(e+=bs(r,s),s=""),i=o,r=r||!ps(i);n++}return""!==s&&(e+=bs(r,s)),e}const ys={};function vs(t){ws(Vt(),qt(),fe()+t,Qt())}function ws(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&we(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Se(e,i,0,n)}ge(n)}function Ss(t,e){return t<<17|e<<2}function xs(t){return t>>17&32767}function Ts(t){return 2|t}function Cs(t){return(131068&t)>>2}function As(t,e){return-131069&t|e<<2}function ks(t){return 1|t}function Es(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;ilt&&ws(t,e,lt,Qt()),n(i,s)}finally{ge(r)}}function Fs(t,e,n){if(dt(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function zs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ys(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function $s(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&nr(n)}}function nr(t){for(let n=Fi(t);null!==n;n=Ni(n))for(let t=ct;t0&&nr(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&nr(i)}}function ir(t,e){const n=Rt(e,t),i=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function ur(t){return t[7]||(t[7]=[])}function hr(t){return t.cleanup||(t.cleanup=[])}function dr(t,e,n){return(null===t||ft(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function pr(t,e){const n=t[9],i=n?n.get(Ei,null):null;i&&i.handleError(e)}function mr(t,e,n,i,s){for(let r=0;rthis.processProvider(n,t,e)),hn([t],t=>this.processInjectorType(t,[],s)),this.records.set(br,Er(void 0,this));const r=this.records.get(yr);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:u(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=_n,n=I.Default){this.assertNotDestroyed();const i=xn(this);try{if(!(n&I.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof an)&&S(t);e=n&&this.injectableDefInScope(n)?Er(Ar(t),vr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&I.Self?xr():this.parent).get(t,e=n&I.Optional&&e===_n?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(u(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e[vn]&&s.unshift(e[vn]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=u(e);if(Array.isArray(e))s=e.map(u).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):u(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(yn,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{xn(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(u(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=m(t)))return!1;let i=T(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=T(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{hn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||q))}}this.injectorDefTypes.add(r);const a=gt(r)||(()=>new r);this.records.set(r,Er(a,vr));const l=i.providers;if(null!=l&&!o){const e=t;hn(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=Or(t=m(t))?t:m(t&&t.provide);const s=function(t,e,n){return Ir(t)?Er(void 0,t.useValue):Er(kr(t),vr)}(t);if(Or(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Er(void 0,vr,!0),e.factory=()=>kn(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===vr&&(e.value=wr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=m(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Ar(t){const e=S(t),n=null!==e?e.factory:gt(t);if(null!==n)return n;if(t instanceof an)throw new Error(`Token ${u(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=mn(e,"?");throw new Error(`Can't resolve all parameters for ${u(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[C]||t[k]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function kr(t,e,n){let i;if(Or(t)){const e=m(t);return gt(e)||Ar(e)}if(Ir(t))i=()=>m(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...kn(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>Cn(m(t.useExisting));else{const e=m(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return gt(e)||Ar(e);i=()=>new e(...kn(t.deps))}var s;return i}function Er(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Ir(t){return null!==t&&"object"==typeof t&&wn in t}function Or(t){return"function"==typeof t}const Mr=function(t,e,n){return function(t,e=null,n=null,i){const s=Tr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};class Pr{static create(t,e){return Array.isArray(t)?Mr(t,e,""):Mr(t.providers,t.parent,t.name||"")}}function Lr(t,e){ve(Ti(t)[1],jt())}function Rr(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s;if(ft(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=Dr(t.inputs),e.declaredInputs=Dr(t.declaredInputs),e.outputs=Dr(t.outputs);const n=s.hostBindings;n&&Zr(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&Fr(t,r),o&&Nr(t,o),c(t.inputs,s.inputs),c(t.declaredInputs,s.declaredInputs),c(t.outputs,s.outputs),ft(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=Me(s.hostAttrs,n=Me(n,s.hostAttrs))}}(i)}function Dr(t){return t===H?{}:t===q?[]:t}function Fr(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function Nr(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function Zr(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}Pr.THROW_IF_NOT_FOUND=_n,Pr.NULL=new _r,Pr.\u0275prov=v({token:Pr,providedIn:"any",factory:()=>Cn(br)}),Pr.__NG_ELEMENT_ID__=-1;let Gr=null;function Br(){if(!Gr){const t=B.Symbol;if(t&&t.iterator)Gr=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(It(t[i.index])):i.index;if(kt(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,h=!1;else{r=go(i,e,0,r,!1);const t=n.listen(p,s,r);u.push(r,t),c&&c.push(s,f,m,m+1)}}else r=go(i,e,0,r,!0),p.addEventListener(s,r,o),u.push(r),c&&c.push(s,f,m,o)}else r=go(i,e,0,r,!1);const d=i.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Bt.lFrame.contextLView))[8]}(t)}function _o(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Co={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ao(t){return t.substring(Co.key,Co.keyEnd)}function ko(t){return t.substring(Co.value,Co.valueEnd)}function Eo(t,e){const n=Co.textEnd;return n===e?-1:(e=Co.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Co.key=e,n),Mo(t,e,n))}function Io(t,e){const n=Co.textEnd;let i=Co.key=Mo(t,e,n);return n===i?-1:(i=Co.keyEnd=function(t,e,n){let i;for(;e=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(t,i,n),i=Po(t,i,n),i=Co.value=Mo(t,i,n),i=Co.valueEnd=function(t,e,n){let i=-1,s=-1,r=-1,o=e,a=o;for(;o32&&(a=o),r=s,s=i,i=-33&l}return a}(t,i,n),Po(t,i,n))}function Oo(t){Co.key=0,Co.keyEnd=0,Co.value=0,Co.valueEnd=0,Co.textEnd=t.length}function Mo(t,e,n){for(;e=0;n=Io(e,n))Uo(t,Ao(e),ko(e))}function No(t,e){for(let n=function(t){return Oo(t),Eo(t,Mo(t,0,Co.textEnd))}(e);n>=0;n=Eo(e,n))fn(t,Ao(e),!0)}function Zo(t,e,n,i){const s=qt(),r=Vt(),o=ee(2);r.firstUpdatePass&&Ho(r,t,o,i),e!==ys&&jr(s,o,e)&&jo(r,r.data[fe()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=u(qn(t)))),t}(e,n),i,o)}function Go(t,e,n,i){const s=Vt(),r=ee(2);s.firstUpdatePass&&Ho(s,null,r,i);const o=qt();if(n!==ys&&jr(o,r,n)){const a=s.data[fe()];if($o(a,i)&&!Bo(s,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=h(t,n||"")),to(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===ys&&(s=q);let l=0,c=0,u=0=t.expandoStartIndex}function Ho(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[fe()],o=Bo(t,n);$o(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=se(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=Vo(n=qo(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=qo(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Cs(i))return t[xs(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=qo(null,t,e,n[1],i),n=Vo(n,e.attrs,i),function(t,e,n,i){t[xs(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=xs(t[a+1]);t[i+1]=Ss(e,a),0!==e&&(t[e+1]=As(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Ss(a,0),0!==a&&(t[a+1]=As(t[a+1],i)),a=i;else t[i+1]=Ss(l,0),0===a?a=i:t[l+1]=As(t[l+1],i),l=i;u&&(t[i+1]=Ts(t[i+1])),xo(t,c,i,!0),xo(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&bn(r,e)>=0&&(n[i+1]=ks(n[i+1]))}(e,c,t,i,r),o=Ss(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function qo(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let u=n[s+1];u===ys&&(u=c?q:void 0);let h=c?gn(u,i):l===i?u:void 0;if(r&&!Yo(h)&&(h=gn(e,i)),Yo(h)&&(a=h,o))return a;const d=t[s+1];s=o?xs(d):Cs(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=gn(t,i))}return a}function Yo(t){return void 0!==t}function $o(t,e){return 0!=(t.flags&(e?16:32))}function Wo(t,e=""){const n=qt(),i=Vt(),s=t+lt,r=i.firstCreatePass?Os(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return kt(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Xi(i,n,o,r),Yt(r,!1)}function Qo(t){return Ko("",t,""),Qo}function Ko(t,e,n){const i=qt(),s=$r(i,t,e,n);return s!==ys&&fr(i,fe(),s),Ko}function Xo(t,e,n,i,s){const r=qt(),o=function(t,e,n,i,s,r){const o=zr(t,Jt(),n,s);return ee(2),o?e+b(n)+i+b(s)+r:ys}(r,t,e,n,i,s);return o!==ys&&fr(r,fe(),o),Xo}function Jo(t,e,n){Go(fn,No,$r(qt(),t,e,n),!0)}function ta(t,e,n){Go(Uo,Fo,$r(qt(),t,e,n),!1)}function ea(t,e,n){const i=qt();return jr(i,te(),e)&&Vs(Vt(),be(),i,t,e,i[11],n,!0),ea}function na(t,e,n){const i=qt();if(jr(i,te(),e)){const s=Vt(),r=be();Vs(s,r,i,t,e,dr(se(s.data),r,i),n,!0)}return na}const ia=void 0;var sa=["en",[["a","p"],["AM","PM"],ia],[["AM","PM"],ia,ia],[["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"]],ia,[["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"]],ia,[["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}",ia,"{1} 'at' {0}",ia],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ra={};function oa(t,e,n){"string"!=typeof e&&(n=e,e=t[ua.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),ra[e]=t,n&&(ra[e][ua.ExtraData]=n)}function aa(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=ca(e);if(n)return n;const i=e.split("-")[0];if(n=ca(i),n)return n;if("en"===i)return sa;throw new Error(`Missing locale data for the locale "${t}".`)}function la(t){return aa(t)[ua.PluralCase]}function ca(t){return t in ra||(ra[t]=B.ng&&B.ng.common&&B.ng.common.locales&&B.ng.common.locales[t]),ra[t]}var ua=(()=>((ua=ua||{})[ua.LocaleId=0]="LocaleId",ua[ua.DayPeriodsFormat=1]="DayPeriodsFormat",ua[ua.DayPeriodsStandalone=2]="DayPeriodsStandalone",ua[ua.DaysFormat=3]="DaysFormat",ua[ua.DaysStandalone=4]="DaysStandalone",ua[ua.MonthsFormat=5]="MonthsFormat",ua[ua.MonthsStandalone=6]="MonthsStandalone",ua[ua.Eras=7]="Eras",ua[ua.FirstDayOfWeek=8]="FirstDayOfWeek",ua[ua.WeekendRange=9]="WeekendRange",ua[ua.DateFormat=10]="DateFormat",ua[ua.TimeFormat=11]="TimeFormat",ua[ua.DateTimeFormat=12]="DateTimeFormat",ua[ua.NumberSymbols=13]="NumberSymbols",ua[ua.NumberFormats=14]="NumberFormats",ua[ua.CurrencyCode=15]="CurrencyCode",ua[ua.CurrencySymbol=16]="CurrencySymbol",ua[ua.CurrencyName=17]="CurrencyName",ua[ua.Currencies=18]="Currencies",ua[ua.Directionality=19]="Directionality",ua[ua.PluralCase=20]="PluralCase",ua[ua.ExtraData=21]="ExtraData",ua))();const ha="en-US";let da=ha;function pa(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(da=t.toLowerCase().replace(/_/g,"-"))}function ma(t,e,n,i,s){if(t=m(t),Array.isArray(t))for(let r=0;r>20;if(Or(t)||!t.multi){const i=new ke(l,s,Kr),p=ba(a,e,s?u:u+d,h);-1===p?(Ve(Ge(c,o),r,a),fa(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=ba(a,e,u+d,h),m=ba(a,e,u,u+d),f=p>=0&&n[p],g=m>=0&&n[m];if(s&&!g||!s&&!f){Ve(Ge(c,o),r,a);const u=function(t,e,n,i,s){const r=new ke(t,n,Kr);return r.multi=[],r.index=e,r.componentProviders=0,ga(r,s,i&&!n),r}(s?ya:_a,n.length,s,i,l);!s&&g&&(n[m].providerFactory=u),fa(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else fa(r,t,p>-1?p:m,ga(n[s?m:p],l,!s&&i));!s&&i&&g&&n[m].componentProviders++}}}function fa(t,e,n,i){const s=Or(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function ga(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ba(t,e,n,i){for(let s=n;s{n.providersResolver=(n,i)=>function(t,e,n){const i=Vt();if(i.firstCreatePass){const s=ft(t);ma(n,i.data,i.blueprint,s,!0),ma(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class Sa{}class xa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${u(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}class Ta{}function Ca(...t){}function Aa(t,e){return new Ea(Mt(t,e))}Ta.NULL=new xa;const ka=function(){return Aa(jt(),qt())};let Ea=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=ka,t})();function Ia(t){return t instanceof Ea?t.nativeElement:t}class Oa{}let Ma=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Pa(),t})();const Pa=function(){const t=qt(),e=Rt(jt().index,t);return function(t){return t[11]}(ut(e)?e:t)};let La=(()=>{class t{}return t.\u0275prov=v({token:t,providedIn:"root",factory:()=>null}),t})();class Ra{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Da=new Ra("12.1.1");class Fa{constructor(){}supports(t){return qr(t)}create(t){return new Za(t)}}const Na=(t,e)=>e;class Za{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Na}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):t=this._addAfter(new Ga(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ha),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ha),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ga{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ba{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Ha{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ba,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function qa(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new ja(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class ja{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function za(){return new Ya([new Fa])}let Ya=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||za()),deps:[[t,new Mn,new On]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=v({token:t,providedIn:"root",factory:za}),t})();function $a(){return new Wa([new Va])}let Wa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||$a()),deps:[[t,new Mn,new On]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=v({token:t,providedIn:"root",factory:$a}),t})();function Qa(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(It(r)),ht(r))for(let t=ct;t-1&&(qi(t,n),pn(e,n))}this._attachedToViewContainer=!1}Vi(this._lView[1],this._lView)}onDestroy(t){Hs(this._lView[1],this._lView,null,t)}markForCheck(){rr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){or(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Kt(!0);try{or(t,e,n)}finally{Kt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,is(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Xa extends Ka{constructor(t){super(t),this._view=t}detectChanges(){ar(this._view)}checkNoChanges(){!function(t){Kt(!0);try{ar(t)}finally{Kt(!1)}}(this._view)}get context(){return null}}const Ja=function(t){return function(t,e,n){if(pt(t)&&!n){const n=Rt(t.index,e);return new Ka(n,n)}return 47&t.type?new Ka(e[16],e):null}(jt(),qt(),16==(16&t))};let tl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ja,t})();const el=[new Va],nl=new Ya([new Fa]),il=new Wa(el),sl=function(){return ll(jt(),qt())};let rl=(()=>{class t{}return t.__NG_ELEMENT_ID__=sl,t})();const ol=rl,al=class extends ol{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Is(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Ps(e,n,t),new Ka(n)}};function ll(t,e){return 4&t.type?new al(e,t,Aa(t,e)):null}class cl{}class ul{}const hl=function(){return bl(jt(),qt())};let dl=(()=>{class t{}return t.__NG_ELEMENT_ID__=hl,t})();const pl=dl,ml=class extends pl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Aa(this._hostTNode,this._hostLView)}get injector(){return new tn(this._hostTNode,this._hostLView)}get parentInjector(){const t=qe(this._hostTNode,this._hostLView);if(Le(t)){const e=De(t,this._hostLView),n=Re(t);return new tn(e[1].data[n+8],e)}return new tn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=fl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ct}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(cl,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(ht(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new ml(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=ct+i,r=n.length;i>0&&(n[s-1][4]=e),iIi});class Sl extends Sa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(_s).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return vl(this.componentDef.inputs)}get outputs(){return vl(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,_l,s);return r!==_l||i===_l?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(Oa,Et),o=s.get(La,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(kt(t))return t.selectRootElement(e,n===D.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Bi(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?xt:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Ii,clean:cr,playerHandler:null,flags:0},d=Bs(0,null,null,1,0,null,null,null,null,null),p=Is(null,d,h,u,null,null,r,a,o,s);let m,f;ce(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=Os(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(gr(a,l,!0),null!==t&&(Ee(s,t,l),null!==a.classes&&os(s,t,a.classes),null!==a.styles&&rs(s,t,a.styles)));const c=i.createRenderer(t,e),u=Is(n,Gs(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(Ve(Ge(a,n),o,e.type),Ys(o,a),Ws(a,n.length,1)),sr(n,u),n[20]=u}(c,this.componentDef,p,r,a);if(c)if(n)Ee(a,c,["ng-version",Da.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i0&&os(a,c,e.join(" "))}if(f=Pt(d,lt),void 0!==e){const t=f.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=jt();e.contentQueries(1,o,t.directiveStart)}const a=jt();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(ge(a.index),js(n[1],a,0,a.directiveStart,a.directiveEnd,e),zs(e,o)),o}(t,this.componentDef,p,h,[Lr]),Ps(d,p,null)}finally{me()}return new xl(this.componentType,m,Aa(f,p),p,f)}}class xl extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Xa(i),this.componentType=t}get injector(){return new tn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Tl=new Map;class Cl extends cl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new yl(this);const n=at(t),i=t[Y]||null;i&&pa(i),this._bootstrapComponents=Pi(n.bootstrap),this._r3Injector=Tr(t,e,[{provide:cl,useValue:this},{provide:Ta,useValue:this.componentFactoryResolver}],u(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Pr.THROW_IF_NOT_FOUND,n=I.Default){return t===Pr||t===cl||t===br?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Al extends ul{constructor(t){super(),this.moduleType=t,null!==at(t)&&function(t){const e=new Set;!function t(n){const i=at(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${u(e)} vs ${u(e.name)}`)}(s,Tl.get(s),n),Tl.set(s,n));const r=Pi(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new Cl(this.moduleType,t)}}function kl(t,e,n){const i=Xt()+t,s=qt();return s[i]===ys?Ur(s,i,n?e.call(n):e()):function(t,e){return t[e]}(s,i)}function El(t,e,n,i){return Ol(qt(),Xt(),t,e,n,i)}function Il(t,e){const n=t[e];return n===ys?void 0:n}function Ol(t,e,n,i,s,r){const o=e+n;return jr(t,o,s)?Ur(t,o+1,r?i.call(r,s):i(s)):Il(t,o+1)}function Ml(t,e){const n=Vt();let i;const s=t+lt;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new g("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=gt(i.type)),o=M(Kr);try{const t=Ne(!1),e=r();return Ne(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,qt(),s,e),e}finally{M(o)}}function Pl(t,e,n){const i=t+lt,s=qt(),r=Lt(s,i);return Fl(s,Dl(s,i)?Ol(s,Xt(),e,r.transform,n,r):r.transform(n))}function Ll(t,e,n,i){const s=t+lt,r=qt(),o=Lt(r,s);return Fl(r,Dl(r,s)?function(t,e,n,i,s,r,o){const a=e+n;return zr(t,a,s,r)?Ur(t,a+2,o?i.call(o,s,r):i(s,r)):Il(t,a+2)}(r,Xt(),e,o.transform,n,i,o):o.transform(n,i))}function Rl(t,e,n,i,s){const r=t+lt,o=qt(),a=Lt(o,r);return Fl(o,Dl(o,r)?function(t,e,n,i,s,r,o,a){const l=e+n;return function(t,e,n,i,s){const r=zr(t,e,n,i);return jr(t,e+2,s)||r}(t,l,s,r,o)?Ur(t,l+3,a?i.call(a,s,r,o):i(s,r,o)):Il(t,l+3)}(o,Xt(),e,a.transform,n,i,s,a):a.transform(n,i,s))}function Dl(t,e){return t[1].data[e].pure}function Fl(t,e){return Hr.isWrapped(e)&&(e=Hr.unwrap(e),t[Jt()]=ys),e}function Nl(t){return e=>{setTimeout(t,void 0,e)}}const Zl=class extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,r,o;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),l=null===(r=e.error)||void 0===r?void 0:r.bind(e),c=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(l=Nl(l),a&&(a=Nl(a)),c&&(c=Nl(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof s.w&&t.add(u),u}};function Gl(){return this._results[Br()]()}class Bl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Br(),n=Bl.prototype;n[e]||(n[e]=Gl)}get changes(){return this._changes||(this._changes=new Zl)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=un(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=ct;t{class t{constructor(t){this.appInits=t,this.resolve=Ca,this.reject=Ca,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Cn(sc,8))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();const oc=new an("AppId"),ac={provide:oc,useFactory:function(){return`${lc()}${lc()}${lc()}`},deps:[]};function lc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const cc=new an("Platform Initializer"),uc=new an("Platform ID"),hc=new an("appBootstrapListener");let dc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();const pc=new an("LocaleId"),mc=new an("DefaultCurrencyCode");class fc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const gc=function(t){return new Al(t)},bc=gc,_c=function(t){return Promise.resolve(gc(t))},yc=function(t){const e=gc(t),n=Pi(at(t).declarations).reduce((t,e)=>{const n=ot(e);return n&&t.push(new Sl(n)),t},[]);return new fc(e,n)},vc=yc,wc=function(t){return Promise.resolve(yc(t))};let Sc=(()=>{class t{constructor(){this.compileModuleSync=bc,this.compileModuleAsync=_c,this.compileModuleAndAllComponentsSync=vc,this.compileModuleAndAllComponentsAsync=wc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();const xc=(()=>Promise.resolve(0))();function Tc(t){"undefined"==typeof Zone?xc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Cc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Zl(!1),this.onMicrotaskEmpty=new Zl(!1),this.onStable=new Zl(!1),this.onError=new Zl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=B.requestAnimationFrame,e=B.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(B,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ec(t),t.isCheckStableRunning=!0,kc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ec(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,r,o,a)=>{try{return Ic(t),n.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),Oc(t)}},onInvoke:(n,i,s,r,o,a,l)=>{try{return Ic(t),n.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),Oc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Ec(t),kc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Cc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Cc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,Ac,Ca,Ca);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const Ac={};function kc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Ec(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Ic(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Oc(t){t._nesting--,kc(t)}class Mc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Zl,this.onMicrotaskEmpty=new Zl,this.onStable=new Zl,this.onError=new Zl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let Pc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Cc.assertNotInAngularZone(),Tc(()=>{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())Tc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Cn(Cc))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})(),Lc=(()=>{class t{constructor(){this._applications=new Map,Nc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Nc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();class Rc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Dc(t){Nc=t}let Fc,Nc=new Rc,Zc=!0,Gc=!1;function Bc(){return Gc=!0,Zc}function Hc(){if(Gc)throw new Error("Cannot enable prod mode after platform setup.");Zc=!1}const qc=new an("AllowMultipleToken");class Vc{constructor(t,e){this.name=t,this.token=e}}function Uc(t,e,n=[]){const i=`Platform: ${e}`,s=new an(i);return(e=[])=>{let r=jc();if(!r||r.injector.get(qc,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:yr,useValue:"platform"});!function(t){if(Fc&&!Fc.destroyed&&!Fc.injector.get(qc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Fc=t.get(zc);const e=t.get(cc,null);e&&e.forEach(t=>t())}(Pr.create({providers:t,name:i}))}return function(t){const e=jc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function jc(){return Fc&&!Fc.destroyed?Fc:null}let zc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Mc:("zone.js"===t?void 0:t)||new Cc({enableLongStackTrace:Bc(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:Cc,useValue:n}];return n.run(()=>{const e=Pr.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(Ei,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{r.handleError(t)}});s.onDestroy(()=>{Wc(this._modules,s),t.unsubscribe()})}),function(t,e,n){try{const i=n();return lo(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(rc);return t.runInitializers(),t.donePromise.then(()=>(pa(s.injector.get(pc,ha)||ha),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=Yc({},e);return function(t,e,n){const i=new Al(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get($c);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${u(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Cn(Pr))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();function Yc(t,e){return Array.isArray(e)?e.reduce(Yc,t):Object.assign(Object.assign({},t),e)}let $c=(()=>{class t{constructor(t,e,n,i,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new r.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),c=new r.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Cc.assertNotInAngularZone(),Tc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Cc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=(0,o.T)(l,c.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Sa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(cl),s=n.create(Pr.NULL,[],e||n.selector,i),r=s.location.nativeElement,o=s.injector.get(Pc,null),a=o&&s.injector.get(Lc);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Wc(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Wc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(hc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Cn(Cc),Cn(Pr),Cn(Ei),Cn(Ta),Cn(rc))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();function Wc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Qc{}class Kc{}const Xc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Jc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Xc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(8255)(e).then(t=>t[i]).then(t=>tu(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>tu(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(Cn(Sc),Cn(Kc,8))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();function tu(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const eu=function(t){return null},nu=Uc(null,"core",[{provide:uc,useValue:"unknown"},{provide:zc,deps:[Pr]},{provide:Lc,deps:[]},{provide:dc,deps:[]}]),iu=[{provide:$c,useClass:$c,deps:[Cc,Pr,Ei,Ta,rc]},{provide:wl,deps:[Cc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:rc,useClass:rc,deps:[[new On,sc]]},{provide:Sc,useClass:Sc,deps:[]},ac,{provide:Ya,useFactory:function(){return nl},deps:[]},{provide:Wa,useFactory:function(){return il},deps:[]},{provide:pc,useFactory:function(t){return pa(t=t||"undefined"!=typeof $localize&&$localize.locale||ha),t},deps:[[new In(pc),new On,new Mn]]},{provide:mc,useValue:"USD"}];let su=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(Cn($c))},t.\u0275mod=et({type:t}),t.\u0275inj=w({providers:iu}),t})()},7736:(t,e,n)=>{"use strict";n.d(e,{IR:()=>p,g5:()=>g,WU:()=>b,wY:()=>_,Bs:()=>y,iR:()=>T,RK:()=>Y,QI:()=>$,Ot:()=>W,yB:()=>K});var i=n(7716),s=n(8583),r=n(9765),o=n(6215),a=n(7574),l=n(6682),c=n(5435),u=n(8307);const h={provide:i.tb,useFactory:function(t,e){return()=>{if((0,s.NF)(e)){const e=Array.from(t.querySelectorAll(`[class*=${d}]`)),n=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(`${d}ssr`)&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(n,"")})}}},deps:[s.K0,i.Lbi],multi:!0},d="flex-layout-";let p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[h]}),t})();class m{constructor(t=!1,e="all",n="",i="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=i,this.priority=s,this.property=""}clone(){return new m(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let f=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,n){const i=this.stylesheet.get(t);i?i.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const n=this.stylesheet.get(t);let i="";if(n){const t=n.get(e);"number"!=typeof t&&"string"!=typeof t||(i=t+"")}return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const g={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},b=new i.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>g}),_=new i.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),y=new i.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function v(t,e){return t=t?t.clone():new m,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const w="inline",S=["row","column","row-reverse","column-reverse"];function x(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let T=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.styleBuilder=e,this.styler=n,this.marshal=i,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new r.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(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const n=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,n)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const n=this.styleBuilder,i=n.shouldCache;let s=this.styleCache.get(t);s&&i||(s=n.buildStyles(t,e),i&&this.styleCache.set(t,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),n.sideEffect(t,s,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[n,i]=this.styler.getFlowDirection(t);if(!i&&e){const e=function(t){let[e,n,i]=function(t){t=t?t.toLowerCase():"";let[e,n,i]=t.split(" ");return S.find(t=>t===e)||(e=S[0]),n===w&&(n=i!==w?i:"",i=w),[e,x(n),!!i]}(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,i)}(n);this.styler.applyStyleToElements(e,[t])}return n.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,n=this.nativeElement){this.styler.applyStyleToElement(n,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){i.$Z()},t.\u0275dir=i.lG2({type:t,features:[i.TTD]}),t})();const C=[{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}],A="(orientation: portrait) and (max-width: 599.98px)",k="(orientation: landscape) and (max-width: 959.98px)",E="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",I="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",O="(orientation: portrait) and (min-width: 840px)",M="(orientation: landscape) and (min-width: 1280px)",P={HANDSET:`${A}, ${k}`,TABLET:`${E} , ${I}`,WEB:`${O}, ${M} `,HANDSET_PORTRAIT:`${A}`,TABLET_PORTRAIT:`${E} `,WEB_PORTRAIT:`${O}`,HANDSET_LANDSCAPE:`${k}`,TABLET_LANDSCAPE:`${I}`,WEB_LANDSCAPE:`${M}`},L=[{alias:"handset",priority:2e3,mediaQuery:P.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:P.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:P.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:P.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:P.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:P.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:P.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:P.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:P.WEB_PORTRAIT,overlapping:!0}],R=/(\.|-|_)/g;function D(t){let e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}const F=new i.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=(0,i.f3M)(y),e=(0,i.f3M)(b),n=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const n={};return t.forEach(t=>{n[t.alias]=t}),e.forEach(t=>{n[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e])}(n[t.alias],t):n[t.alias]=t}),(i=Object.keys(n).map(t=>n[t])).forEach(t=>{t.suffix||(t.suffix=t.alias.replace(R,"|").split("|").map(D).join(""),t.overlapping=!!t.overlapping)}),i;var i}((e.disableDefaultBps?[]:C).concat(e.addOrientationBps?L:[]),n)}});function N(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function Z(t,e){return(t.priority||0)-(e.priority||0)}let G=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(Z)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let n=this.findByMap.get(t);return n||(n=this.items.find(e)||null,this.findByMap.set(t,n)),n||null}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(F))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(F))},token:t,providedIn:"root"}),t})(),B=(()=>{class t{constructor(t,e,n){this._zone=t,this._platformId=e,this._document=n,this.source=new o.X(new m(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,n)=>{e.matches&&t.push(n)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const n=this._observable$.pipe((0,c.h)(n=>!e||t.indexOf(n.mediaQuery)>-1)),i=new a.y(e=>{const n=this.registerQuery(t);if(n.length){const t=n.pop();n.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()});return(0,l.T)(i,n)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],n=[];return function(t,e){const n=t.filter(t=>!H[t]);if(n.length>0){const t=n.join(", ");try{const i=e.createElement("style");i.setAttribute("type","text/css"),i.styleSheet||i.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),e.head.appendChild(i),n.forEach(t=>H[t]=i)}catch(i){console.error(i)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new m(e.matches,t)))};let i=this.registry.get(t);i||(i=this.buildMQL(t),i.addListener(e),this.pendingRemoveListenerFns.push(()=>i.removeListener(e)),this.registry.set(t,i)),i.matches&&n.push(new m(!0,t))}),n}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,(0,s.NF)(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.R0b),i.LFG(i.Lbi),i.LFG(s.K0))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(i.R0b),(0,i.LFG)(i.Lbi),(0,i.LFG)(s.K0))},token:t,providedIn:"root"}),t})();const H={},q="print",V={alias:q,mediaQuery:q,priority:1e3};let U=(()=>{class t{constructor(t,e,n){this.breakpoints=t,this.layoutConfig=e,this._document=n,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new j,this.deactivations=[]}withPrintQuery(t){return[...t,q]}isPrintEvent(t){return t.mediaQuery.startsWith(q)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(N)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),v(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new m(!0,q))),t.updateStyles())},n=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",n),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(n)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(N))}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t)))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(G),i.LFG(b),i.LFG(s.K0))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(G),(0,i.LFG)(b),(0,i.LFG)(s.K0))},token:t,providedIn:"root"}),t})();class j{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(V),t.sort(N),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith(q)}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function z(t){for(let e in t){let n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":n=n||"row",t["-webkit-flex-direction"]=n,t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}let Y=(()=>{class t{constructor(t,e,n,i){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=i}applyStyleToElement(t,e,n=null){let i={};"string"==typeof e&&(i[e]=n,e=i),i=this.layoutConfig.disableVendorPrefixes?e:z(e),this._applyMultiValueStyleToElement(i,t)}applyStyleToElements(t,e=[]){const n=this.layoutConfig.disableVendorPrefixes?t:z(t);e.forEach(t=>{this._applyMultiValueStyleToElement(n,t)})}getFlowDirection(t){const e="flex-direction";let n=this.lookupStyle(t,e);return[n||"row",this.lookupInlineStyle(t,e)||(0,s.PM)(this._platformId)&&this._serverModuleLoaded?n:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return(0,s.NF)(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,n=!1){let i="";return t&&((i=this.lookupInlineStyle(t,e))||((0,s.NF)(this._platformId)?n||(i=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(t,e)))),i?i.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(n=>{const i=t[n],r=Array.isArray(i)?i:[i];r.sort();for(let t of r)t=t?t+"":"",(0,s.NF)(this._platformId)||!this._serverModuleLoaded?(0,s.NF)(this._platformId)?e.style.setProperty(n,t):this._setServerStyle(e,n,t):this._serverStylesheet.addStyleToElement(e,n,t)})}_setServerStyle(t,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=this._readStyleAttribute(t);i[e]=n||"",this._writeStyleAttribute(t,i)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},n=t.getAttribute("style");if(n){const t=n.split(/;+/g);for(let n=0;n0){const t=i.indexOf(":");if(-1===t)throw new Error(`Invalid CSS style: ${i}`);e[i.substr(0,t).trim()]=i.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let n="";for(const i in e)e[i]&&(n+=i+":"+e[i]+";");t.setAttribute("style",n)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(f),i.LFG(_),i.LFG(i.Lbi),i.LFG(b))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(f),(0,i.LFG)(_),(0,i.LFG)(i.Lbi),(0,i.LFG)(b))},token:t,providedIn:"root"}),t})();class ${constructor(){this.shouldCache=!0}sideEffect(t,e,n){}}function W(t,e="1",n="1"){let i=[e,n,t],s=t.indexOf("calc");if(s>0){i[2]=Q(t.substring(s).trim());let e=t.substr(0,s).trim().split(" ");2==e.length&&(i[0]=e[0],i[1]=e[1])}else if(0==s)i[2]=Q(t.trim());else{let s=t.split(" ");i=3===s.length?s:[e,n,t]}return i}function Q(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let K=(()=>{class t{constructor(t,e,n){this.matchMedia=t,this.breakpoints=e,this.hook=n,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new r.xQ,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=v(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(N),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(N),this.updateStyles()))}init(t,e,n,i,s=[]){X(this.updateMap,t,e,n),X(this.clearMap,t,e,i),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,s)}getValue(t,e,n){const i=this.elementMap.get(t);if(i){const t=void 0!==n?i.get(n):this.getActivatedValues(i,e);if(t)return t.get(e)}}hasValue(t,e){const n=this.elementMap.get(t);if(n){const t=this.getActivatedValues(n,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,n,i){let s=this.elementMap.get(t);if(s){const r=(s.get(i)||new Map).set(e,n);s.set(i,r),this.elementMap.set(t,s)}else s=(new Map).set(i,(new Map).set(e,n)),this.elementMap.set(t,s);const r=this.getValue(t,e);void 0!==r&&this.updateElement(t,e,r)}trackValue(t,e){return this.subject.asObservable().pipe((0,c.h)(n=>n.element===t&&n.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const n=new Set(this.elementKeyMap.get(e));let i=this.getActivatedValues(t);i&&i.forEach((t,i)=>{this.updateElement(e,i,t),n.delete(i)}),n.forEach(n=>{if(i=this.getActivatedValues(t,n),i){const t=i.get(n);this.updateElement(e,n,t)}else this.clearElement(e,n)})})}clearElement(t,e){const n=this.clearMap.get(t);if(n){const i=n.get(e);i&&(i(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,n){const i=this.updateMap.get(t);if(i){const s=i.get(e);s&&(s(n),this.subject.next({element:t,key:e,value:n}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const n=this.elementMap.get(t);n&&(n.forEach((t,e)=>n.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const n=this.elementMap.get(t);if(n){const i=this.getActivatedValues(n,e);i&&(e?this.updateElement(t,e,i.get(e)):i.forEach((e,n)=>this.updateElement(t,n,e)))}}buildElementKeyMap(t,e){let n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)}watchExtraTriggers(t,e,n){if(n&&n.length){let i=this.watcherMap.get(t);if(i||(i=new Map,this.watcherMap.set(t,i)),!i.get(e)){const s=(0,l.T)(...n).subscribe(()=>{const n=this.getValue(t,e);this.updateElement(t,e,n)});i.set(e,s)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let i=0;it.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe((0,u.b)(this.hook.interceptEvents(this)),(0,c.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(B),i.LFG(G),i.LFG(U))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(B),(0,i.LFG)(G),(0,i.LFG)(U))},token:t,providedIn:"root"}),t})();function X(t,e,n,i){if(void 0!==i){let s=t.get(e);s||(s=new Map,t.set(e,s)),s.set(n,i)}}},8030:(t,e,n)=>{"use strict";n.d(e,{aT:()=>C,oO:()=>h,b8:()=>g,Zl:()=>x});var i=n(7716),s=n(8583),r=n(7736),o=n(9490),a=n(6782),l=n(9075);let c=(()=>{class t extends r.iR{constructor(t,e,n,i,r,o,a){super(t,null,e,n),this.ngClassInstance=a,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new s.mk(i,r,t,o)),this.init(),this.setValue("","")}set klass(t){this.ngClassInstance.klass=t,this.setValue(t,"")}updateWithValue(t){this.ngClassInstance.ngClass=t,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(r.RK),i.Y36(r.yB),i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.Qsj),i.Y36(s.mk,10))},t.\u0275dir=i.lG2({type:t,inputs:{klass:["class","klass"]},features:[i.qOj]}),t})();const u=["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 h=(()=>{class t extends c{constructor(){super(...arguments),this.inputs=u}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,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:[i.qOj]}),t})(),d=(()=>{class t extends r.QI{buildStyles(t,e){return{display:"true"===t?e.display||(e.isServer?"initial":""):"none"}}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275prov=(0,i.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),p=(()=>{class t extends r.iR{constructor(t,e,n,i,s,r,o){super(t,e,n,i),this.layoutConfig=s,this.platformId=r,this.serverModuleLoaded=o,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const t=Array.from(this.nativeElement.children);for(let n=0;n{if(-1!==this.inputs.indexOf(e)){const n=e.split("."),i=n.slice(1).join("."),s=t[e].currentValue;let r=""===s||0!==s&&(0,o.Ig)(s);"fxHide"===n[0]&&(r=!r),this.setValue(r,i)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(t=>{this.marshal.trackValue(this.nativeElement,t).pipe((0,a.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(t=!0){if(""===t)return;const e=(0,s.PM)(this.platformId);this.addStyles(t?"true":"false",{display:this.display,isServer:e}),e&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(d),i.Y36(r.RK),i.Y36(r.yB),i.Y36(r.WU),i.Y36(i.Lbi),i.Y36(r.wY))},t.\u0275dir=i.lG2({type:t,features:[i.qOj,i.TTD]}),t})();const m=new WeakMap,f=["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 g=(()=>{class t extends p{constructor(){super(...arguments),this.inputs=f}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,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:[i.qOj]}),t})();class b{constructor(t,e,n=!0){this.key=t,this.value=e,this.key=n?t.replace(/['"]/g,"").trim():t.trim(),this.value=n?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function _(t){let e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function y(t){const[e,...n]=t.split(":");return new b(e,n.join(":"))}function v(t,e){return e.key&&(t[e.key]=e.value),t}let w=(()=>{class t extends r.iR{constructor(t,e,n,i,r,o,a,l,c){super(t,null,e,n),this.sanitizer=i,this.ngStyleInstance=a,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new s.PC(t,r,o)),this.init();const u=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(u),this.isServer=l&&(0,s.PM)(c)}updateWithValue(t){const e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(t){const e=t=>this.sanitizer.sanitize(i.q3G.STYLE,t)||"";if(t)switch(_(t)){case"string":return T(function(t,e=";"){return String(t).trim().split(e).map(t=>t.trim()).filter(t=>""!==t)}(t),e);case"array":return T(t,e);case"set":default:return function(t,e){let n=[];return"set"===_(t)?t.forEach(t=>n.push(t)):Object.keys(t).forEach(e=>{n.push(`${e}:${t[e]}`)}),function(t,e){return t.map(y).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(v,{})}(n,e)}(t,e)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(r.RK),i.Y36(r.yB),i.Y36(l.H7),i.Y36(i.aQg),i.Y36(i.Qsj),i.Y36(s.PC,10),i.Y36(r.wY),i.Y36(i.Lbi))},t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();const S=["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 x=(()=>{class t extends w{constructor(){super(...arguments),this.inputs=S}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,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:[i.qOj]}),t})();function T(t,e){return t.map(y).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(v,{})}let C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[r.IR]]}),t})()},5618:(t,e,n)=>{"use strict";n.d(e,{ae:()=>et,yH:()=>L,XD:()=>q,xw:()=>g,Wh:()=>z,SQ:()=>S});var i=n(7716),s=n(7736),r=n(946),o=n(9765),a=n(6782);const l="inline",c=["row","column","row-reverse","column-reverse"];function u(t){t=t?t.toLowerCase():"";let[e,n,i]=t.split(" ");return c.find(t=>t===e)||(e=c[0]),n===l&&(n=i!==l?i:"",i=l),[e,d(n),!!i]}function h(t){let[e]=u(t);return e.indexOf("row")>-1}function d(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let p=(()=>{class t extends s.QI{buildStyles(t){return function(t){let[e,n,i]=u(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,i)}(t)}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275prov=(0,i.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const m=["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 f=(()=>{class t extends s.iR{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="layout",this.styleCache=b,this.init()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(s.RK),i.Y36(p),i.Y36(s.yB))},t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})(),g=(()=>{class t extends f{constructor(){super(...arguments),this.inputs=m}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[i.qOj]}),t})();const b=new Map,_={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let y=(()=>{class t extends s.QI{constructor(t){super(),this._styler=t}buildStyles(t,e){return t.endsWith(k)?function(t,e){const[n,i]=t.split(" "),s=t=>`-${t}`;let r="0px",o=s(i||n),a="0px";return"rtl"===e?a=s(n):r=s(n),{margin:`0px ${r} ${o} ${a}`}}(t=t.slice(0,t.indexOf(k)),e.directionality):{}}sideEffect(t,e,n){const i=n.items;if(t.endsWith(k)){const e=function(t,e){const[n,i]=t.split(" ");let s="0px",r="0px";return"rtl"===e?r=n:s=n,{padding:`0px ${s} ${i||n} ${r}`}}(t=t.slice(0,t.indexOf(k)),n.directionality);this._styler.applyStyleToElements(e,n.items)}else{const e=i.pop(),s=function(t,e){const n=E(e.directionality,e.layout),i=Object.assign({},_);return i[n]=t,i}(t,n);this._styler.applyStyleToElements(s,i),this._styler.applyStyleToElements(_,[e])}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.RK))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(s.RK))},token:t,providedIn:"root"}),t})();const v=["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 w=(()=>{class t extends s.iR{constructor(t,e,n,i,s,r){super(t,s,i,r),this.zone=e,this.directionality=n,this.styleUtils=i,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new o.xQ;const l=[this.directionality.change,this.observerSubject.asObservable()];this.init(l),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,a.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const t=this.nativeElement.children,e=[];for(let n=t.length;n--;)e[n]=t[n];return e}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],c.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(t){const e=this.childrenNodes.filter(t=>1===t.nodeType&&this.willDisplay(t)).sort((t,e)=>{const n=+this.styler.lookupStyle(t,"order"),i=+this.styler.lookupStyle(e,"order");return isNaN(n)||isNaN(i)||n===i?0:n>i?1:-1});if(e.length>0){const n=this.directionality.value,i=this.layout;"row"===i&&"rtl"===n?this.styleCache=x:"row"===i&&"rtl"!==n?this.styleCache=C:"column"===i&&"rtl"===n?this.styleCache=T:"column"===i&&"rtl"!==n&&(this.styleCache=A),this.addStyles(t,{directionality:n,items:e,layout:i})}}clearStyles(){const t=Object.keys(this.mru).length>0,e=t?"padding":E(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(()=>{"undefined"!=typeof MutationObserver&&(this.observer=new MutationObserver(t=>{t.some(t=>t.addedNodes&&t.addedNodes.length>0||t.removedNodes&&t.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(r.Is),i.Y36(s.RK),i.Y36(y),i.Y36(s.yB))},t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})(),S=(()=>{class t extends w{constructor(){super(...arguments),this.inputs=v}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,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:[i.qOj]}),t})();const x=new Map,T=new Map,C=new Map,A=new Map,k=" grid";function E(t,e){switch(e){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===t?"margin-left":"margin-right";case"row-reverse":return"rtl"===t?"margin-right":"margin-left";default:return"rtl"===t?"margin-left":"margin-right"}}function I(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}let O=(()=>{class t extends s.QI{constructor(t){super(),this.layoutConfig=t}buildStyles(t,e){let[n,i,...s]=t.split(" "),r=s.join(" ");const o=e.direction.indexOf("column")>-1?"column":"row",a=h(o)?"max-width":"max-height",l=h(o)?"min-width":"min-height",c=String(r).indexOf("calc")>-1,u=c||"auto"===r,d=String(r).indexOf("%")>-1&&!c,p=String(r).indexOf("px")>-1||String(r).indexOf("rem")>-1||String(r).indexOf("em")>-1||String(r).indexOf("vw")>-1||String(r).indexOf("vh")>-1;let m=c||p;n="0"==n?0:n,i="0"==i?0:i;const f=!n&&!i;let g={};const b={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(r||""){case"":const t=!1!==this.layoutConfig.useColumnBasisZero;r="row"===o?"0%":t?"0.000000001px":"auto";break;case"initial":case"nogrow":n=0,r="auto";break;case"grow":r="100%";break;case"noshrink":i=0,r="auto";break;case"auto":break;case"none":n=0,i=0,r="auto";break;default:m||d||isNaN(r)||(r+="%"),"0%"===r&&(m=!0),"0px"===r&&(r="0%"),g=I(b,c?{"flex-grow":n,"flex-shrink":i,"flex-basis":m?r:"100%"}:{flex:`${n} ${i} ${m?r:"100%"}`})}return g.flex||g["flex-grow"]||(g=I(b,c?{"flex-grow":n,"flex-shrink":i,"flex-basis":r}:{flex:`${n} ${i} ${r}`})),"0%"!==r&&"0px"!==r&&"0.000000001px"!==r&&"auto"!==r&&(g[l]=f||m&&n?r:null,g[a]=f||!u&&i?r:null),g[l]||g[a]?e.hasWrap&&(g[c?"flex-basis":"flex"]=g[a]?c?g[a]:`${n} ${i} ${g[a]}`:c?g[l]:`${n} ${i} ${g[l]}`):g=I(b,c?{"flex-grow":n,"flex-shrink":i,"flex-basis":r}:{flex:`${n} ${i} ${r}`}),I(g,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.WU))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(s.WU))},token:t,providedIn:"root"}),t})();const M=["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 P=(()=>{class t extends s.iR{constructor(t,e,n,i,s){super(t,i,e,s),this.layoutConfig=n,this.marshal=s,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(t){this.flexShrink=t||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(t){this.flexGrow=t||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,a.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,a.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(t){const e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()}updateWithValue(t){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const e=this.direction,n=e.startsWith("row"),i=this.wrap;n&&i?this.styleCache=F:n&&!i?this.styleCache=R:!n&&i?this.styleCache=N:n||i||(this.styleCache=D);const r=String(t).replace(";",""),o=(0,s.Ot)(r,this.flexGrow,this.flexShrink);this.addStyles(o.join(" "),{direction:e,hasWrap:i})}triggerReflow(){const t=this.activatedValue;if(void 0!==t){const e=(0,s.Ot)(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(s.RK),i.Y36(s.WU),i.Y36(O),i.Y36(s.yB))},t.\u0275dir=i.lG2({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[i.qOj]}),t})(),L=(()=>{class t extends P{constructor(){super(...arguments),this.inputs=M}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[i.qOj]}),t})();const R=new Map,D=new Map,F=new Map,N=new Map;let Z=(()=>{class t extends s.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 t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275prov=(0,i.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const G=["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 B=(()=>{class t extends s.iR{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="flex-align",this.styleCache=H,this.init()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(s.RK),i.Y36(Z),i.Y36(s.yB))},t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();const H=new Map;let q=(()=>{class t extends B{constructor(){super(...arguments),this.inputs=G}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,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:[i.qOj]}),t})(),V=(()=>{class t extends s.QI{buildStyles(t,e){const n={},[i,s]=t.split(" ");switch(i){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(s){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return I(n,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===s?h(e.layout)?null:"100%":null,"max-height":"stretch"===s&&h(e.layout)?"100%":null})}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275prov=(0,i.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const U=["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 j=(()=>{class t extends s.iR{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,a.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(t){const e=this.layout||"row",n=this.inline;"row"===e&&n?this.styleCache=K:"row"!==e||n?"row-reverse"===e&&n?this.styleCache=J:"row-reverse"!==e||n?"column"===e&&n?this.styleCache=X:"column"!==e||n?"column-reverse"===e&&n?this.styleCache=tt:"column-reverse"!==e||n||(this.styleCache=Q):this.styleCache=$:this.styleCache=W:this.styleCache=Y,this.addStyles(t,{layout:e,inline:n})}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],this.inline=t.value.includes("inline"),c.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(s.RK),i.Y36(V),i.Y36(s.yB))},t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})(),z=(()=>{class t extends j{constructor(){super(...arguments),this.inputs=U}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[i.qOj]}),t})();const Y=new Map,$=new Map,W=new Map,Q=new Map,K=new Map,X=new Map,J=new Map,tt=new Map;let et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[s.IR,r.vT]]}),t})()},3679:(t,e,n)=>{"use strict";n.d(e,{Zs:()=>Mt,gN:()=>Z,Fj:()=>p,qu:()=>Zt,u:()=>kt,sg:()=>vt,x0:()=>St,nD:()=>Dt,wO:()=>Lt,Cf:()=>g,JU:()=>u,a5:()=>G,JJ:()=>H,JL:()=>q,F:()=>mt,UX:()=>Nt,Q7:()=>Ot,kI:()=>y,_Y:()=>gt});var i=n(7716),s=n(8583),r=n(4402),o=n(5758),a=n(8002);let l=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t}),t})(),c=(()=>{class t extends l{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();const u=new i.OlP("NgValueAccessor"),h={provide:u,useExisting:(0,i.Gpc)(()=>p),multi:!0},d=new i.OlP("CompositionEventMode");let p=(()=>{class t extends l{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,s.q)()?(0,s.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(d,8))},t.\u0275dir=i.lG2({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&i.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[i._Bn([h]),i.qOj]}),t})();function m(t){return null==t||0===t.length}function f(t){return null!=t&&"number"==typeof t.length}const g=new i.OlP("NgValidators"),b=new i.OlP("NgAsyncValidators"),_=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class y{static min(t){return function(t){return e=>{if(m(e.value)||m(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(m(e.value)||m(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return v(t)}static requiredTrue(t){return w(t)}static email(t){return function(t){return m(t.value)||_.test(t.value)?null:{email:!0}}(t)}static minLength(t){return S(t)}static maxLength(t){return x(t)}static pattern(t){return function(t){if(!t)return T;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(m(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}(t)}static nullValidator(t){return null}static compose(t){return O(t)}static composeAsync(t){return P(t)}}function v(t){return m(t.value)?{required:!0}:null}function w(t){return!0===t.value?null:{required:!0}}function S(t){return e=>m(e.value)||!f(e.value)?null:e.value.lengthf(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function T(t){return null}function C(t){return null!=t}function A(t){const e=(0,i.QGY)(t)?(0,r.D)(t):t;return(0,i.CqO)(e),e}function k(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function E(t,e){return e.map(e=>e(t))}function I(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function O(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){return k(E(t,e))}}function M(t){return null!=t?O(I(t)):null}function P(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){const n=E(t,e).map(A);return(0,o.D)(n).pipe((0,a.U)(k))}}function L(t){return null!=t?P(I(t)):null}function R(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function D(t){return t._rawValidators}function F(t){return t._rawAsyncValidators}let N=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=M(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=L(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t}),t})(),Z=(()=>{class t extends N{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();class G extends N{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class B{constructor(t){this._cd=t}is(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}let H=(()=>{class t extends B{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(G,2))},t.\u0275dir=i.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[i.qOj]}),t})(),q=(()=>{class t extends B{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Z,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[i.qOj]}),t})();function V(t,e){return[...e.path,t]}function U(t,e){Y(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&W(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&W(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function j(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),$(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function z(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Y(t,e){const n=D(t);null!==e.validator?t.setValidators(R(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const i=F(t);null!==e.asyncValidator?t.setAsyncValidators(R(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const s=()=>t.updateValueAndValidity();z(e._rawValidators,s),z(e._rawAsyncValidators,s)}function $(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=D(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.validator);s.length!==i.length&&(n=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const i=F(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.asyncValidator);s.length!==i.length&&(n=!0,t.setAsyncValidators(s))}}}const i=()=>{};return z(e._rawValidators,i),z(e._rawAsyncValidators,i),n}function W(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Q(t,e){Y(t,e)}function K(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function X(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const J="VALID",tt="INVALID",et="PENDING",nt="DISABLED";function it(t){return(at(t)?t.validators:t)||null}function st(t){return Array.isArray(t)?M(t):t||null}function rt(t,e){return(at(e)?e.asyncValidators:t)||null}function ot(t){return Array.isArray(t)?L(t):t||null}function at(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class lt{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=st(this._rawValidators),this._composedAsyncValidatorFn=ot(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===J}get invalid(){return this.status===tt}get pending(){return this.status==et}get disabled(){return this.status===nt}get enabled(){return this.status!==nt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=st(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ot(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=et,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=nt,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=J,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==J&&this.status!==et||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?nt:J}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=et,this._hasOwnPendingAsyncValidator=!0;const e=A(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof ut?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof ht&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?nt:this.errors?tt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(et)?et:this._anyControlsHaveStatus(tt)?tt:J}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){at(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ct extends lt{constructor(t=null,e,n){super(it(e),rt(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){X(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){X(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class ut extends lt{constructor(t,e,n){super(it(e),rt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof ct?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class ht extends lt{constructor(t,e,n){super(it(e),rt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof ct?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const dt={provide:Z,useExisting:(0,i.Gpc)(()=>mt)},pt=(()=>Promise.resolve(null))();let mt=(()=>{class t extends Z{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.vpe,this.form=new ut({},M(t),L(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){pt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),U(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){pt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),X(this._directives,t)})}addFormGroup(t){pt.then(()=>{const e=this._findContainer(t.path),n=new ut({});Q(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){pt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){pt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,K(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(g,10),i.Y36(b,10))},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([dt]),i.qOj]}),t})(),ft=(()=>{class t extends Z{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return V(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})(),gt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),bt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const _t=new i.OlP("NgModelWithFormControlWarning"),yt={provide:Z,useExisting:(0,i.Gpc)(()=>vt)};let vt=(()=>{class t extends Z{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&($(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return U(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){j(t.control||null,t,!1),X(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,K(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(j(e||null,t),n instanceof ct&&(U(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);Q(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return $(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Y(this.form,this),this._oldForm&&$(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(g,10),i.Y36(b,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([yt]),i.qOj,i.TTD]}),t})();const wt={provide:Z,useExisting:(0,i.Gpc)(()=>St)};let St=(()=>{class t extends ft{constructor(t,e,n){super(),this._parent=t,this._setValidators(e),this._setAsyncValidators(n)}_checkParentType(){Ct(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Z,13),i.Y36(g,10),i.Y36(b,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i._Bn([wt]),i.qOj]}),t})();const xt={provide:Z,useExisting:(0,i.Gpc)(()=>Tt)};let Tt=(()=>{class t extends Z{constructor(t,e,n){super(),this._parent=t,this._setValidators(e),this._setAsyncValidators(n)}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 V(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Ct(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Z,13),i.Y36(g,10),i.Y36(b,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i._Bn([xt]),i.qOj]}),t})();function Ct(t){return!(t instanceof St||t instanceof vt||t instanceof Tt)}const At={provide:G,useExisting:(0,i.Gpc)(()=>kt)};let kt=(()=>{class t extends G{constructor(t,e,n,s,r){super(),this._ngModelWarningConfig=r,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;let n,i,s;return Array.isArray(e),e.forEach(t=>{t.constructor===p?n=t:Object.getPrototypeOf(t.constructor)===c?i=t:s=t}),s||i||n||null}(0,s)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return V(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Z,13),i.Y36(g,10),i.Y36(b,10),i.Y36(u,10),i.Y36(_t,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([At]),i.qOj,i.TTD]}),t._ngModelWarningSentOnce=!1,t})();const Et={provide:g,useExisting:(0,i.Gpc)(()=>Ot),multi:!0},It={provide:g,useExisting:(0,i.Gpc)(()=>Mt),multi:!0};let Ot=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?v(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[i._Bn([Et])]}),t})(),Mt=(()=>{class t extends Ot{validate(t){return this.required?w(t):null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},features:[i._Bn([It]),i.qOj]}),t})();const Pt={provide:g,useExisting:(0,i.Gpc)(()=>Lt),multi:!0};let Lt=(()=>{class t{constructor(){this._validator=T}ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=S("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[i._Bn([Pt]),i.TTD]}),t})();const Rt={provide:g,useExisting:(0,i.Gpc)(()=>Dt),multi:!0};let Dt=(()=>{class t{constructor(){this._validator=T}ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=x("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i._Bn([Rt]),i.TTD]}),t})(),Ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[bt]]}),t})(),Nt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:_t,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[Ft]}),t})(),Zt=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i,s=null,r=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new ut(n,{asyncValidators:r,updateOn:i,validators:s})}control(t,e,n){return new ct(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new ht(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof ct||t instanceof ut||t instanceof ht?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t},token:t,providedIn:Nt}),t})()},1095:(t,e,n)=>{"use strict";n.d(e,{zs:()=>p,lW:()=>d,ot:()=>m});var i=n(2458),s=n(6237),r=n(7716),o=n(9238);const a=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",u=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],h=(0,i.pj)((0,i.Id)((0,i.Kr)(class{constructor(t){this._elementRef=t}})));let d=(()=>{class t extends h{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of u)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(o.tE),r.Y36(s.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&r.Gf(i.wG,5),2&t){let t;r.iGM(t=r.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(r.uIk("disabled",e.disabled||null),r.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1),r._UZ(3,"span",2)),2&t&&(r.xp6(2),r.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[c],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t extends d{constructor(t,e,n){super(e,t,n)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(o.tE),r.Y36(r.SBq),r.Y36(s.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._haltDisabledEvents(t)}),2&t&&(r.uIk("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),r.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[r.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1),r._UZ(3,"span",2)),2&t&&(r.xp6(2),r.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[c],encapsulation:2,changeDetection:0}),t})(),m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[i.si,i.BQ],i.BQ]}),t})()},7539:(t,e,n)=>{"use strict";n.d(e,{oG:()=>v,p9:()=>T,e_:()=>S});var i=n(9490),s=n(7716),r=n(3679),o=n(2458),a=n(6237),l=n(8553),c=n(9238);const u=["input"],h=function(t){return{enterDuration:t}},d=["*"],p=new s.OlP("mat-checkbox-default-options",{providedIn:"root",factory:m});function m(){return{color:"accent",clickAction:"check-indeterminate"}}let f=0;const g=m(),b={provide:r.JU,useExisting:(0,s.Gpc)(()=>v),multi:!0};class _{}const y=(0,o.sb)((0,o.pj)((0,o.Kr)((0,o.Id)(class{constructor(t){this._elementRef=t}}))));let v=(()=>{class t extends y{constructor(t,e,n,i,r,o,a){super(t),this._changeDetectorRef=e,this._focusMonitor=n,this._ngZone=i,this._animationMode=o,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++f,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.vpe,this.indeterminateChange=new s.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||g,this.color=this.defaultColor=this._options.color||g.color,this.tabIndex=parseInt(r)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=(0,i.Ig)(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=(0,i.Ig)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=(0,i.Ig)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new _;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const n=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===n?this.disabled||"noop"!==n||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==n&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let n="";switch(t){case 0:if(1===e)n="unchecked-checked";else{if(3!=e)return"";n="unchecked-indeterminate"}break;case 2:n=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${n}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(c.tE),s.Y36(s.R0b),s.$8M("tabindex"),s.Y36(a.Qb,8),s.Y36(p,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(s.Gf(u,5),s.Gf(o.wG,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._inputElement=t.first),s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",null),s.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s._Bn([b]),s.qOj],ngContentSelectors:d,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",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"span",2),s.TgZ(3,"input",3,4),s.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(5,"span",5),s._UZ(6,"span",6),s.qZA(),s._UZ(7,"span",7),s.TgZ(8,"span",8),s.O4$(),s.TgZ(9,"svg",9),s._UZ(10,"path",10),s.qZA(),s.kcU(),s._UZ(11,"span",11),s.qZA(),s.qZA(),s.TgZ(12,"span",12,13),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(14,"span",14),s._uU(15,"\xa0"),s.qZA(),s.Hsn(16),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),n=s.MAs(13);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),s.xp6(1),s.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.VKq(19,h,"NoopAnimations"===e._animationMode?0:150))}},directives:[o.wG,l.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:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.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}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.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:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})();const w={provide:r.Cf,useExisting:(0,s.Gpc)(()=>S),multi:!0};let S=(()=>{class t extends r.Zs{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[s._Bn([w]),s.qOj]}),t})(),x=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o.si,o.BQ,l.Q8,x],o.BQ,x]}),t})()},2458:(t,e,n)=>{"use strict";n.d(e,{rD:()=>A,K7:()=>z,HF:()=>q,BQ:()=>v,X2:()=>k,uc:()=>O,ey:()=>Q,Ng:()=>J,nP:()=>B,us:()=>H,wG:()=>Z,si:()=>G,CB:()=>K,jH:()=>X,pj:()=>S,Kr:()=>x,Id:()=>w,FD:()=>C,sb:()=>T,E0:()=>E});var i=n(7716),s=n(9238),r=n(946);const o=new i.GfV("12.1.1");var a=n(8583),l=n(9490),c=n(9765),u=n(521),h=n(9761),d=n(6237),p=n(6461);function m(t,e){if(1&t&&i._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=i.oxw();i.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function f(t,e){if(1&t&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.hij("(",t.group.label,")")}}const g=["*"],b=new i.GfV("12.1.1"),_=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let y,v=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return(0,i.X6Q)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&b.full!==o.full&&console.warn("The Angular Material version ("+b.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.qm),i.LFG(_,8),i.LFG(a.K0))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[r.vT],r.vT]}),t})();function w(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}}}function S(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function x(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,l.Ig)(t)}}}function T(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?(0,l.su)(t):this.defaultTabIndex}}}function C(t){return class extends t{constructor(...t){super(...t),this.stateChanges=new c.xQ,this.errorState=!1}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}try{y="undefined"!=typeof Intl}catch(tt){y=!1}let A=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),k=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function E(t,e,n="mat"){t.changes.pipe((0,h.O)(t)).subscribe(({length:t})=>{I(e,`${n}-2-line`,!1),I(e,`${n}-3-line`,!1),I(e,`${n}-multi-line`,!1),2===t||3===t?I(e,`${n}-${t}-line`,!0):t>3&&I(e,`${n}-multi-line`,!0)})}function I(t,e,n){const i=t.nativeElement.classList;n?i.add(e):i.remove(e)}let O=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[v],v]}),t})();class M{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const P={enterDuration:450,exitDuration:400},L=(0,u.i$)({passive:!0}),R=["mousedown","touchstart"],D=["mouseup","mouseleave","touchend","touchcancel"];class F{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=(0,l.fI)(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},P),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new M(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,n.persistent||t&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},P),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=(0,l.fI)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(R))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(D),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=(0,s.X6)(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,L)})})}_removeTriggerEvents(){this._triggerElement&&(R.forEach(t=>{this._triggerElement.removeEventListener(t,this,L)}),this._pointerUpEventsRegistered&&D.forEach(t=>{this._triggerElement.removeEventListener(t,this,L)}))}}const N=new i.OlP("mat-ripple-global-options");let Z=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new F(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(u.t4),i.Y36(N,8),i.Y36(d.Qb,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[v,u.ud],v]}),t})(),B=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(d.Qb,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[v]]}),t})();const q=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),V=w(class{});let U=0,j=(()=>{class t extends V{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+U++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(q,8))},t.\u0275dir=i.lG2({type:t,inputs:{label:"label"},features:[i.qOj]}),t})();const z=new i.OlP("MatOptgroup");let Y=0;class ${constructor(t,e=!1){this.source=t,this.isUserInput=e}}let W=(()=>{class t{constructor(t,e,n,s){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Y++,this.onSelectionChange=new i.vpe,this._stateChanges=new c.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(t){this._disabled=(0,l.Ig)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==p.K5&&t.keyCode!==p.L_||(0,p.Vb)(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new $(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(void 0),i.Y36(j))},t.\u0275dir=i.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Q=(()=>{class t extends W{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(q,8),i.Y36(z,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(i.Ikx("id",e.id),i.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:g,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,m,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,f,2,1,"span",2),i._UZ(4,"div",3)),2&t&&(i.Q6J("ngIf",e.multiple),i.xp6(3),i.Q6J("ngIf",e.group&&e.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.O5,Z,B],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function K(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;en+i?Math.max(0,t-i+e):n}let J=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[G,a.ez,v,H]]}),t})()},2238:(t,e,n)=>{"use strict";n.d(e,{WI:()=>k,uw:()=>P,ZT:()=>L,xY:()=>R,Is:()=>D,so:()=>C});var i=n(625),s=n(7636),r=n(7716),o=n(2458),a=n(946),l=n(8583),c=n(9765),u=n(1439),h=n(5917),d=n(5435),p=n(5257),m=n(9761),f=n(521),g=n(7238),b=n(6461),_=n(9238);function y(t,e){}class v{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const w={dialogContainer:(0,g.X$)("dialogContainer",[(0,g.SB)("void, exit",(0,g.oB)({opacity:0,transform:"scale(0.7)"})),(0,g.SB)("enter",(0,g.oB)({transform:"none"})),(0,g.eR)("* => enter",(0,g.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,g.oB)({transform:"none",opacity:1}))),(0,g.eR)("* => void, * => exit",(0,g.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,g.oB)({opacity:0})))])};let S=(()=>{class t extends s.en{constructor(t,e,n,i,s,o){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=s,this._focusMonitor=o,this._animationStateChanged=new r.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=(0,f.ht)(),n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,f.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=(0,f.ht)();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(_.qV),r.Y36(r.sBO),r.Y36(l.K0,8),r.Y36(v),r.Y36(_.tE))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&r.Gf(s.Pl,7),2&t){let t;r.iGM(t=r.CRH())&&(e._portalOutlet=t.first)}},features:[r.qOj]}),t})(),x=(()=>{class t extends S{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&r.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(r.Ikx("id",e._id),r.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),r.d8E("@dialogContainer",e._state))},features:[r.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&r.YNc(0,y,0,0,"ng-template",0)},directives:[s.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[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[w.dialogContainer]}}),t})(),T=0;class C{constructor(t,e,n="mat-dialog-"+T++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new c.xQ,this._afterClosed=new c.xQ,this._beforeClosed=new c.xQ,this._state=0,e._id=n,e._animationStateChanged.pipe((0,d.h)(t=>"opened"===t.state),(0,p.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,d.h)(t=>"closed"===t.state),(0,p.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,d.h)(t=>t.keyCode===b.hY&&!this.disableClose&&!(0,b.Vb)(t))).subscribe(t=>{t.preventDefault(),A(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():A(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,d.h)(t=>"closing"===t.state),(0,p.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function A(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const k=new r.OlP("MatDialogData"),E=new r.OlP("mat-dialog-default-options"),I=new r.OlP("mat-dialog-scroll-strategy"),O={provide:I,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.block()}};let M=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new c.xQ,this._afterOpenedAtThisLevel=new c.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,u.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,m.O)(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new v)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),s=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=r.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:v,useValue:e}]}),i=new s.C5(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const o=new this._dialogRefConstructor(n,e,i.id);if(t instanceof r.Rgc)e.attachTemplatePortal(new s.UE(t,null,{$implicit:i.data,dialogRef:o}));else{const n=this._createInjector(i,o,e),r=e.attachComponentPortal(new s.C5(t,i.viewContainerRef,n));o.componentInstance=r.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(a.Is,null,r.XFs.Optional)||s.push({provide:a.Is,useValue:{value:t.direction,change:(0,h.of)()}}),r.zs3.create({parent:i||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(i.aV),r.Y36(r.zs3),r.Y36(void 0),r.Y36(void 0),r.Y36(i.Xj),r.Y36(void 0),r.Y36(r.DyG),r.Y36(r.DyG),r.Y36(r.OlP))},t.\u0275dir=r.lG2({type:t}),t})(),P=(()=>{class t extends M{constructor(t,e,n,i,s,r,o){super(t,e,i,r,o,s,C,x,k)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.aV),r.LFG(r.zs3),r.LFG(l.Ye,8),r.LFG(E,8),r.LFG(I),r.LFG(t,12),r.LFG(i.Xj))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),L=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function(t,e){let n=t.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(t=>t.id===n.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){A(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(C,8),r.Y36(r.SBq),r.Y36(P))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._onButtonClick(t)}),2&t&&r.uIk("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[r.TTD]}),t})(),R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[P,O],imports:[[i.U8,s.eL,o.BQ],o.BQ]}),t})()},8295:(t,e,n)=>{"use strict";n.d(e,{G_:()=>$,TO:()=>N,KE:()=>W,Eo:()=>G,lN:()=>Q,hX:()=>H});var i=n(8553),s=n(8583),r=n(7716),o=n(2458),a=n(9490),l=n(9765),c=n(6682),u=n(2759),h=n(9761),d=n(6782),p=n(5257),m=n(7238),f=n(6237),g=n(946),b=n(521);const _=["underline"],y=["connectionContainer"],v=["inputContainer"],w=["label"];function S(t,e){1&t&&(r.ynx(0),r.TgZ(1,"div",14),r._UZ(2,"div",15),r._UZ(3,"div",16),r._UZ(4,"div",17),r.qZA(),r.TgZ(5,"div",18),r._UZ(6,"div",15),r._UZ(7,"div",16),r._UZ(8,"div",17),r.qZA(),r.BQk())}function x(t,e){1&t&&(r.TgZ(0,"div",19),r.Hsn(1,1),r.qZA())}function T(t,e){if(1&t&&(r.ynx(0),r.Hsn(1,2),r.TgZ(2,"span"),r._uU(3),r.qZA(),r.BQk()),2&t){const t=r.oxw(2);r.xp6(3),r.Oqu(t._control.placeholder)}}function C(t,e){1&t&&r.Hsn(0,3,["*ngSwitchCase","true"])}function A(t,e){1&t&&(r.TgZ(0,"span",23),r._uU(1," *"),r.qZA())}function k(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"label",20,21),r.NdJ("cdkObserveContent",function(){return r.CHM(t),r.oxw().updateOutlineGap()}),r.YNc(2,T,4,1,"ng-container",12),r.YNc(3,C,1,0,"ng-content",12),r.YNc(4,A,2,0,"span",22),r.qZA()}if(2&t){const t=r.oxw();r.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),r.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),r.uIk("for",t._control.id)("aria-owns",t._control.id),r.xp6(2),r.Q6J("ngSwitchCase",!1),r.xp6(1),r.Q6J("ngSwitchCase",!0),r.xp6(1),r.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function E(t,e){1&t&&(r.TgZ(0,"div",24),r.Hsn(1,4),r.qZA())}function I(t,e){if(1&t&&(r.TgZ(0,"div",25,26),r._UZ(2,"span",27),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function O(t,e){if(1&t&&(r.TgZ(0,"div"),r.Hsn(1,5),r.qZA()),2&t){const t=r.oxw();r.Q6J("@transitionMessages",t._subscriptAnimationState)}}function M(t,e){if(1&t&&(r.TgZ(0,"div",31),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.Q6J("id",t._hintLabelId),r.xp6(1),r.Oqu(t.hintLabel)}}function P(t,e){if(1&t&&(r.TgZ(0,"div",28),r.YNc(1,M,2,2,"div",29),r.Hsn(2,6),r._UZ(3,"div",30),r.Hsn(4,7),r.qZA()),2&t){const t=r.oxw();r.Q6J("@transitionMessages",t._subscriptAnimationState),r.xp6(1),r.Q6J("ngIf",t.hintLabel)}}const L=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],R=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let D=0;const F=new r.OlP("MatError");let N=(()=>{class t{constructor(t,e){this.id="mat-error-"+D++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(r.$8M("aria-live"),r.Y36(r.SBq))},t.\u0275dir=r.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&r.uIk("id",e.id)},inputs:{id:"id"},features:[r._Bn([{provide:F,useExisting:t}])]}),t})();const Z={transitionMessages:(0,m.X$)("transitionMessages",[(0,m.SB)("enter",(0,m.oB)({opacity:1,transform:"translateY(0%)"})),(0,m.eR)("void => enter",[(0,m.oB)({opacity:0,transform:"translateY(-5px)"}),(0,m.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t}),t})();const B=new r.OlP("MatHint");let H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-label"]]}),t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const V=new r.OlP("MatPrefix"),U=new r.OlP("MatSuffix");let j=0;const z=(0,o.pj)(class{constructor(t){this._elementRef=t}},"primary"),Y=new r.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),$=new r.OlP("MatFormField");let W=(()=>{class t extends z{constructor(t,e,n,i,s,r,o,a){super(t),this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+j++,this._labelId="mat-form-field-label-"+j++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=(0,a.Ig)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe((0,h.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,d.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,c.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,d.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(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,u.R)(this._label.nativeElement,"transitionend").pipe((0,p.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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[s.ez,o.BQ,i.Q8],o.BQ]}),t})()},6627:(t,e,n)=>{"use strict";n.d(e,{Hw:()=>P,Ps:()=>L,jv:()=>T});var i=n(7716),s=n(2458),r=n(9490),o=n(8583),a=n(5917),l=n(205),c=n(5758),u=n(5319),h=n(8307),d=n(8002),p=n(5304),m=n(8939),f=n(8345),g=n(5257),b=n(1841),_=n(9075);const y=["*"];function v(t){return Error(`Unable to find icon with the name "${t}"`)}function w(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function S(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class x{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let T=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,i){return this._addSvgIconConfig(t,e,new x(n,null,i))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,n,s){const r=this._sanitizer.sanitize(i.q3G.HTML,n);if(!r)throw S(n);return this._addSvgIconConfig(t,e,new x("",r,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new x(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const s=this._sanitizer.sanitize(i.q3G.HTML,e);if(!s)throw S(e);return this._addSvgIconSetConfig(t,new x("",s,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,t);if(!e)throw w(t);const n=this._cachedIconsByUrl.get(e);return n?(0,a.of)(C(n)):this._loadSvgIconFromConfig(new x(t,null)).pipe((0,h.b)(t=>this._cachedIconsByUrl.set(e,t)),(0,d.U)(t=>C(t)))}getNamedSvgIcon(t,e=""){const n=A(e,t);let i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(e,t),i)return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):(0,l._)(v(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,a.of)(C(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,d.U)(t=>C(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);if(n)return(0,a.of)(n);const s=e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe((0,p.K)(e=>{const n=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),(0,a.of)(null)})));return(0,c.D)(s).pipe((0,d.U)(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw v(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(e,t,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe((0,h.b)(e=>t.svgText=e),(0,d.U)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?(0,a.of)(null):this._fetchIcon(t).pipe((0,h.b)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const s=i.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,n);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),n);const r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString(""),n=t.attributes;for(let i=0;ithis._inProgressUrlFetches.delete(o)),(0,f.B)());return this._inProgressUrlFetches.set(o,l),l}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(A(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let i=0;ie?e.pathname+e.search:""}}}),I=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],O=I.map(t=>`[${t}]`).join(", "),M=/^url\(['"]?#(.*?)['"]?\)$/;let P=(()=>{class t extends k{constructor(t,e,n,i,s){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=s,this._inline=!1,this._currentIconFetch=u.w.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=(0,r.Ig)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(O),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i{const s=e[i],r=s.getAttribute(t),o=r?r.match(M):null;if(o){let e=n.get(s);e||(e=[],n.set(s,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe((0,g.q)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${n}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(T),i.$8M("aria-hidden"),i.Y36(E),i.Y36(i.qLn))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(i.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),i.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.qOj],ngContentSelectors:y,decls:1,vars:0,template:function(t,e){1&t&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[s.BQ],s.BQ]}),t})()},9983:(t,e,n)=>{"use strict";n.d(e,{Nt:()=>_,c:()=>y});var i=n(521),s=n(7716),r=n(9490),o=n(9193),a=n(9765);n(2759),n(628),n(6782),n(8583);const l=(0,i.i$)({passive:!0});let c=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return o.E;const e=(0,r.fI)(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new a.xQ,s="cdk-text-field-autofilled",c=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",c,l),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",c,l)}}),i}stopMonitoring(t){const e=(0,r.fI)(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.t4),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.t4),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ud]]}),t})();var h=n(2458),d=n(8295),p=n(3679);const m=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),f=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g=0;const b=(0,h.FD)(class{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}});let _=(()=>{class t extends b{constructor(t,e,n,s,r,o,l,c,u,h){super(o,s,r,n),this._elementRef=t,this._platform=e,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+g++,this.focused=!1,this.stateChanges=new a.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>(0,i.qK)().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=l||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&u.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&(0,i.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=(0,r.Ig)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){f.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(i.t4),s.Y36(p.a5,10),s.Y36(p.F,8),s.Y36(p.sg,8),s.Y36(h.rD),s.Y36(m,10),s.Y36(c),s.Y36(s.R0b),s.Y36(d.G_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),s.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s._Bn([{provide:d.Eo,useExisting:t}]),s.qOj,s.TTD]}),t})(),y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[h.rD],imports:[[u,d.lN,h.BQ],u,d.lN]}),t})()},3935:(t,e,n)=>{"use strict";n.d(e,{VK:()=>N,OP:()=>L,Tx:()=>V,p6:()=>H});var i=n(9238),s=n(9490),r=n(6461),o=n(7716),a=n(9765),l=n(5319),c=n(6682),u=n(5917),h=n(4581),d=n(9761),p=n(3190),m=n(5257),f=n(5435),g=n(6782),b=n(1289),_=n(7238),y=n(7636),v=n(8583),w=n(2458),S=n(625),x=n(521),T=n(9243),C=n(946);const A=["mat-menu-item",""],k=["*"];function E(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",0),o.NdJ("keydown",function(e){return o.CHM(t),o.oxw()._handleKeydown(e)})("click",function(){return o.CHM(t),o.oxw().closed.emit("click")})("@transformMenu.start",function(e){return o.CHM(t),o.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return o.CHM(t),o.oxw()._onAnimationDone(e)}),o.TgZ(1,"div",1),o.Hsn(2),o.qZA(),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),o.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const I={transformMenu:(0,_.X$)("transformMenu",[(0,_.SB)("void",(0,_.oB)({opacity:0,transform:"scale(0.8)"})),(0,_.eR)("void => enter",(0,_.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,_.oB)({opacity:1,transform:"scale(1)"}))),(0,_.eR)("* => void",(0,_.jt)("100ms 25ms linear",(0,_.oB)({opacity:0})))]),fadeInItems:(0,_.X$)("fadeInItems",[(0,_.SB)("showing",(0,_.oB)({opacity:1})),(0,_.eR)("void => *",[(0,_.oB)({opacity:0}),(0,_.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},O=new o.OlP("MatMenuContent"),M=new o.OlP("MAT_MENU_PANEL"),P=(0,w.Kr)((0,w.Id)(class{}));let L=(()=>{class t extends P{constructor(t,e,n,i){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new a.xQ,this._focused=new a.xQ,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new o.n_E,this._tabSubscription=l.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new o.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+D++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=(0,s.Ig)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,s.Ig)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new i.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,p.w)(t=>(0,c.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,p.w)(t=>(0,c.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case r.hY:(0,r.Vb)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case r.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case r.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==r.LH&&e!==r.JH||n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=Math.min(this._baseElevation+t,24),n=`${this._elevationPrefix}${e}`,i=Object.keys(this._classList).find(t=>t.startsWith(this._elevationPrefix));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[n]=!0,this._previousElevation=n)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,d.O)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(R))},t.\u0275dir=o.lG2({type:t,contentQueries:function(t,e,n){if(1&t&&(o.Suo(n,O,5),o.Suo(n,L,5),o.Suo(n,L,4)),2&t){let t;o.iGM(t=o.CRH())&&(e.lazyContent=t.first),o.iGM(t=o.CRH())&&(e._allItems=t),o.iGM(t=o.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&o.Gf(o.Rgc,5),2&t){let t;o.iGM(t=o.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),N=(()=>{class t extends F{constructor(t,e,n){super(t,e,n),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(R))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&o.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[o._Bn([{provide:M,useExisting:t}]),o.qOj],ngContentSelectors:k,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(o.F$t(),o.YNc(0,E,3,6,"ng-template"))},directives:[v.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}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[I.transformMenu,I.fadeInItems]},changeDetection:0}),t})();const Z=new o.OlP("mat-menu-scroll-strategy"),G={provide:Z,deps:[S.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},B=(0,x.i$)({passive:!0});let H=(()=>{class t{constructor(t,e,n,s,r,a,c,u){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=a,this._dir=c,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=l.w.EMPTY,this._hoverSubscription=l.w.EMPTY,this._menuCloseSubscription=l.w.EMPTY,this._handleTouchStart=t=>{(0,i.yG)(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new o.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new o.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=r instanceof F?r:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,B),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,B),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof F&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof F?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,f.h)(t=>"void"===t.toState),(0,m.q)(1),(0,g.R)(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new S.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[i,s],[a,l]=[e,n],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(r="top"===i?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:r,overlayX:l,overlayY:i,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,u.of)(),i=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,f.h)(t=>t!==this._menuItemInstance),(0,f.h)(()=>this._menuOpen)):(0,u.of)();return(0,c.T)(t,n,i,e)}_handleMousedown(t){(0,i.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;e!==r.K5&&e!==r.L_||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===r.SV&&"ltr"===this.dir||e===r.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,f.h)(t=>t===this._menuItemInstance&&!t.disabled),(0,b.g)(0,h.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof F&&this.menu._isAnimating?this.menu._animationDone.pipe((0,m.q)(1),(0,b.g)(0,h.E),(0,g.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new y.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(S.aV),o.Y36(o.SBq),o.Y36(o.s_b),o.Y36(Z),o.Y36(M,8),o.Y36(L,10),o.Y36(C.Is,8),o.Y36(i.tE))},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&o.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&o.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[G],imports:[w.BQ]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[G],imports:[[v.ez,w.BQ,w.si,S.U8,q],T.ZD,w.BQ,q]}),t})()},2178:(t,e,n)=>{"use strict";n.d(e,{pW:()=>f,Cv:()=>b});var i=n(7716),s=n(8583),r=n(2458),o=n(9490),a=n(6237),l=n(5319),c=n(2759),u=n(5435);const h=["primaryValueBar"],d=(0,r.pj)(class{constructor(t){this._elementRef=t}},"primary"),p=new i.OlP("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=(0,i.f3M)(s.K0),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let m=0,f=(()=>{class t extends d{constructor(t,e,n,s){super(t),this._ngZone=e,this._animationMode=n,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new i.vpe,this._animationEndSubscription=l.w.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+m++;const r=s?s.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${r}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===n}get value(){return this._value}set value(t){this._value=g((0,o.su)(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=g(t||0)}_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 t=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,c.R)(t,"transitionend").pipe((0,u.h)(e=>e.target===t)).subscribe(()=>{"determinate"!==this.mode&&"buffer"!==this.mode||this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(a.Qb,8),i.Y36(p,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){if(1&t&&i.Gf(h,5),2&t){let t;i.iGM(t=i.CRH())&&(e._primaryValueBar=t.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(i.uIk("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),i.ekj("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[i.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(t,e){1&t&&(i.TgZ(0,"div",0),i.O4$(),i.TgZ(1,"svg",1),i.TgZ(2,"defs"),i.TgZ(3,"pattern",2),i._UZ(4,"circle",3),i.qZA(),i.qZA(),i._UZ(5,"rect",4),i.qZA(),i.kcU(),i._UZ(6,"div",5),i._UZ(7,"div",6,7),i._UZ(9,"div",8),i.qZA()),2&t&&(i.xp6(3),i.Q6J("id",e.progressbarId),i.xp6(2),i.uIk("fill",e._rectangleFillValue),i.xp6(1),i.Q6J("ngStyle",e._bufferTransform()),i.xp6(1),i.Q6J("ngStyle",e._primaryTransform()))},directives:[s.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.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)}}\n'],encapsulation:2,changeDetection:0}),t})();function g(t,e=0,n=100){return Math.max(e,Math.min(n,t))}let b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[s.ez,r.BQ],r.BQ]}),t})()},7441:(t,e,n)=>{"use strict";n.d(e,{gD:()=>j,LD:()=>z});var i=n(625),s=n(8583),r=n(7716),o=n(2458),a=n(8295),l=n(9243),c=n(9238),u=n(9490),h=n(7860),d=n(6461),p=n(9765),m=n(1439),f=n(6682),g=n(9761),b=n(3190),_=n(5257),y=n(5435),v=n(8002),w=n(7519),S=n(6782),x=n(7238),T=n(946),C=n(3679);const A=["trigger"],k=["panel"];function E(t,e){if(1&t&&(r.TgZ(0,"span",8),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.placeholder)}}function I(t,e){if(1&t&&(r.TgZ(0,"span",12),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Oqu(t.triggerValue)}}function O(t,e){1&t&&r.Hsn(0,0,["*ngSwitchCase","true"])}function M(t,e){if(1&t&&(r.TgZ(0,"span",9),r.YNc(1,I,2,1,"span",10),r.YNc(2,O,1,0,"ng-content",11),r.qZA()),2&t){const t=r.oxw();r.Q6J("ngSwitch",!!t.customTrigger),r.xp6(2),r.Q6J("ngSwitchCase",!0)}}function P(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",13),r.TgZ(1,"div",14,15),r.NdJ("@transformPanel.done",function(e){return r.CHM(t),r.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return r.CHM(t),r.oxw()._handleKeydown(e)}),r.Hsn(3,1),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@transformPanelWrap",void 0),r.xp6(1),r.Gre("mat-select-panel ",t._getPanelTheme(),""),r.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),r.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),r.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const L=[[["mat-select-trigger"]],"*"],R=["mat-select-trigger","*"],D={transformPanelWrap:(0,x.X$)("transformPanelWrap",[(0,x.eR)("* => void",(0,x.IO)("@transformPanel",[(0,x.pV)()],{optional:!0}))]),transformPanel:(0,x.X$)("transformPanel",[(0,x.SB)("void",(0,x.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,x.SB)("showing",(0,x.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,x.SB)("showing-multiple",(0,x.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,x.eR)("void => *",(0,x.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,x.eR)("* => void",(0,x.jt)("100ms 25ms linear",(0,x.oB)({opacity:0})))])};let F=0;const N=256,Z=new r.OlP("mat-select-scroll-strategy"),G=new r.OlP("MAT_SELECT_CONFIG"),B={provide:Z,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class H{constructor(t,e){this.source=t,this.value=e}}const q=(0,o.Kr)((0,o.sb)((0,o.Id)((0,o.FD)(class{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}})))),V=new r.OlP("MatSelectTrigger");let U=(()=>{class t extends q{constructor(t,e,n,i,s,o,a,l,c,u,h,d,w,S){var x,T,C;super(s,i,a,l,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=o,this._parentFormField=c,this._liveAnnouncer=w,this._defaultOptions=S,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+F++,this._triggerAriaLabelledBy=null,this._destroy=new p.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+F++,this._panelDoneAnimatingStream=new p.xQ,this._overlayPanelClass=(null===(x=this._defaultOptions)||void 0===x?void 0:x.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(C=null===(T=this._defaultOptions)||void 0===T?void 0:T.disableOptionCentering)&&void 0!==C&&C,this.ariaLabel="",this.optionSelectionChanges=(0,m.P)(()=>{const t=this.options;return t?t.changes.pipe((0,g.O)(t),(0,b.w)(()=>(0,f.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,_.q)(1),(0,b.w)(()=>this.optionSelectionChanges))}),this.openedChange=new r.vpe,this._openedStream=this.openedChange.pipe((0,y.h)(t=>t),(0,v.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,y.h)(t=>!t),(0,v.U)(()=>{})),this.selectionChange=new r.vpe,this.valueChange=new r.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==S?void 0:S.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=S.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=(0,u.Ig)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,u.Ig)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=(0,u.Ig)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=(0,u.su)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,w.x)(),(0,S.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,S.R)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe((0,g.O)(null),(0,S.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=e===d.JH||e===d.LH||e===d.oh||e===d.SV,i=e===d.K5||e===d.L_,s=this._keyManager;if(!s.isTyping()&&i&&!(0,d.Vb)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=n===d.JH||n===d.LH,s=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(s||n!==d.K5&&n!==d.L_||!e.activeItem||(0,d.Vb)(t))if(!s&&this._multiple&&n===d.A&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,_.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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new c.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,S.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,S.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 t=(0,f.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,S.R)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,f.T)(...this.options.map(t=>t._stateChanges)).pipe((0,S.R)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(l.rL),r.Y36(r.sBO),r.Y36(r.R0b),r.Y36(o.rD),r.Y36(r.SBq),r.Y36(T.Is,8),r.Y36(C.F,8),r.Y36(C.sg,8),r.Y36(a.G_,8),r.Y36(C.a5,10),r.$8M("tabindex"),r.Y36(Z),r.Y36(c.Kd),r.Y36(G,8))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&(r.Gf(A,5),r.Gf(k,5),r.Gf(i.pI,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.trigger=t.first),r.iGM(t=r.CRH())&&(e.panel=t.first),r.iGM(t=r.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[r.qOj,r.TTD]}),t})(),j=(()=>{class t extends U{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,S.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,_.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=(0,o.CB)(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=(0,o.jH)((t+e)*n,n,this.panel.nativeElement.scrollTop,N)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new H(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),o=t.right+s-e.width+(n?0:i);r>0?s+=r+8:o>0&&(s-=o+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(N/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-N)%i):e-i/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,N)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>i?this._adjustPanelDown(r,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,N),i=e*t-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=(0,o.CB)(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(r.Suo(n,V,5),r.Suo(n,o.ey,5),r.Suo(n,o.K7,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.customTrigger=t.first),r.iGM(t=r.CRH())&&(e.options=t),r.iGM(t=r.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&r.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(r.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),r.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[r._Bn([{provide:a.Eo,useExisting:t},{provide:o.HF,useExisting:t}]),r.qOj],ngContentSelectors:R,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder 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(t,e){if(1&t&&(r.F$t(L),r.TgZ(0,"div",0,1),r.NdJ("click",function(){return e.toggle()}),r.TgZ(3,"div",2),r.YNc(4,E,2,1,"span",3),r.YNc(5,M,3,2,"span",4),r.qZA(),r.TgZ(6,"div",5),r._UZ(7,"div",6),r.qZA(),r.qZA(),r.YNc(8,P,4,14,"ng-template",7),r.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=r.MAs(1);r.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),r.xp6(3),r.Q6J("ngSwitch",e.empty),r.uIk("id",e._valueId),r.xp6(1),r.Q6J("ngSwitchCase",!0),r.xp6(1),r.Q6J("ngSwitchCase",!1),r.xp6(3),r.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[i.xu,s.RF,s.n9,i.pI,s.ED,s.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[D.transformPanelWrap,D.transformPanel]},changeDetection:0}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[B],imports:[[s.ez,i.U8,o.Ng,o.BQ],l.ZD,a.lN,o.Ng,o.BQ]}),t})()},3017:(t,e,n)=>{"use strict";n.d(e,{jA:()=>q,kh:()=>V,LW:()=>H,JX:()=>j,TM:()=>z,SJ:()=>Y});var i=n(521),s=n(9243),r=n(8583),o=n(7716),a=n(2458),l=n(9490),c=n(6461),u=n(9765),h=n(2759),d=n(6682),p=n(7393);function m(t){return e=>e.lift(new f(t))}class f{constructor(t){this.value=t}call(t,e){return e.subscribe(new g(t,this.value))}}class g extends p.L{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}var b=n(5435),_=n(8002),y=n(6782),v=n(7519),w=n(5257),S=n(9761),x=n(4395),T=n(7238),C=n(6237),A=n(9238),k=n(946);const E=["*"];function I(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",2),o.NdJ("click",function(){return o.CHM(t),o.oxw()._onBackdropClicked()}),o.qZA()}if(2&t){const t=o.oxw();o.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function O(t,e){1&t&&(o.TgZ(0,"mat-drawer-content"),o.Hsn(1,2),o.qZA())}const M=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],P=["mat-drawer","mat-drawer-content","*"];function L(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",2),o.NdJ("click",function(){return o.CHM(t),o.oxw()._onBackdropClicked()}),o.qZA()}if(2&t){const t=o.oxw();o.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function R(t,e){1&t&&(o.TgZ(0,"mat-sidenav-content",3),o.Hsn(1,2),o.qZA())}const D=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],F=["mat-sidenav","mat-sidenav-content","*"],N=".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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",Z={transformDrawer:(0,T.X$)("transform",[(0,T.SB)("open, open-instant",(0,T.oB)({transform:"none",visibility:"visible"})),(0,T.SB)("void",(0,T.oB)({"box-shadow":"none",visibility:"hidden"})),(0,T.eR)("void => open-instant",(0,T.jt)("0ms")),(0,T.eR)("void <=> open, open-instant => void",(0,T.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},G=new o.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),B=new o.OlP("MAT_DRAWER_CONTAINER");let H=(()=>{class t extends s.PQ{constructor(t,e,n,i,s){super(n,i,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.sBO),o.Y36((0,o.Gpc)(()=>V)),o.Y36(o.SBq),o.Y36(s.mF),o.Y36(o.R0b))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&o.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[o.qOj],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),q=(()=>{class t{constructor(t,e,n,i,s,r,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=n,this._platform=i,this._ngZone=s,this._doc=r,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new u.xQ,this._animationEnd=new u.xQ,this._animationState="void",this.openedChange=new o.vpe(!0),this._openedStream=this.openedChange.pipe((0,b.h)(t=>t),(0,_.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,b.h)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),m(void 0)),this._closedStream=this.openedChange.pipe((0,b.h)(t=>!t),(0,_.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,b.h)(t=>t.fromState!==t.toState&&"void"===t.toState),m(void 0)),this._destroyed=new u.xQ,this.onPositionChanged=new o.vpe,this._modeChanged=new u.xQ,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{(0,h.R)(this._elementRef.nativeElement,"keydown").pipe((0,b.h)(t=>t.keyCode===c.hY&&!this.disableClose&&!(0,c.Vb)(t)),(0,y.R)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe((0,v.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:n}=t;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=(0,l.Ig)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=(0,l.Ig)(t)}get opened(){return this._opened}set opened(t){this.toggle((0,l.Ig)(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,n="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe((0,w.q)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(A.qV),o.Y36(A.tE),o.Y36(i.t4),o.Y36(o.R0b),o.Y36(r.K0,8),o.Y36(B,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&o.WFA("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(o.uIk("align",null),o.d8E("@transform",e._animationState),o.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:E,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.qZA())},directives:[s.PQ],encapsulation:2,data:{animation:[Z.transformDrawer]},changeDetection:0}),t})(),V=(()=>{class t{constructor(t,e,n,i,s,r=!1,a){this._dir=t,this._element=e,this._ngZone=n,this._changeDetectorRef=i,this._animationMode=a,this._drawers=new o.n_E,this.backdropClick=new o.vpe,this._destroyed=new u.xQ,this._doCheckSubject=new u.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new u.xQ,t&&t.change.pipe((0,y.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe((0,y.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=r}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=(0,l.Ig)(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:(0,l.Ig)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,S.O)(this._allDrawers),(0,y.R)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,S.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,x.b)(10),(0,y.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(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const n=this._left._getWidth();t+=n,e-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const n=this._right._getWidth();e+=n,t-=n}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe((0,b.h)(t=>t.fromState!==t.toState),(0,y.R)(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe((0,y.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe((0,y.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,w.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe((0,y.R)((0,d.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),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(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(k.Is,8),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(s.rL),o.Y36(G),o.Y36(C.Qb,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){if(1&t&&(o.Suo(n,H,5),o.Suo(n,q,5)),2&t){let t;o.iGM(t=o.CRH())&&(e._content=t.first),o.iGM(t=o.CRH())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&o.Gf(H,5),2&t){let t;o.iGM(t=o.CRH())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[o._Bn([{provide:B,useExisting:t}])],ngContentSelectors:P,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(t,e){1&t&&(o.F$t(M),o.YNc(0,I,1,2,"div",0),o.Hsn(1),o.Hsn(2,1),o.YNc(3,O,2,0,"mat-drawer-content",1)),2&t&&(o.Q6J("ngIf",e.hasBackdrop),o.xp6(3),o.Q6J("ngIf",!e._content))},directives:[r.O5,H],styles:[N],encapsulation:2,changeDetection:0}),t})(),U=(()=>{class t extends H{constructor(t,e,n,i,s){super(t,e,n,i,s)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.sBO),o.Y36((0,o.Gpc)(()=>z)),o.Y36(o.SBq),o.Y36(s.mF),o.Y36(o.R0b))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&o.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[o.qOj],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),j=(()=>{class t extends q{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=(0,l.Ig)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=(0,l.su)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=(0,l.su)(t)}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=o.n5z(t)))(n||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(o.uIk("align",null),o.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),o.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[o.qOj],ngContentSelectors:E,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.qZA())},directives:[s.PQ],encapsulation:2,data:{animation:[Z.transformDrawer]},changeDetection:0}),t})(),z=(()=>{class t extends V{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=o.n5z(t)))(n||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){if(1&t&&(o.Suo(n,U,5),o.Suo(n,j,5)),2&t){let t;o.iGM(t=o.CRH())&&(e._content=t.first),o.iGM(t=o.CRH())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[o._Bn([{provide:B,useExisting:t}]),o.qOj],ngContentSelectors:F,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(o.F$t(D),o.YNc(0,L,1,2,"div",0),o.Hsn(1),o.Hsn(2,1),o.YNc(3,R,2,0,"mat-sidenav-content",1)),2&t&&(o.Q6J("ngIf",e.hasBackdrop),o.xp6(3),o.Q6J("ngIf",!e._content))},directives:[r.O5,U,s.PQ],styles:[N],encapsulation:2,changeDetection:0}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[r.ez,a.BQ,i.ud,s.ZD],s.ZD,a.BQ]}),t})()},6237:(t,e,n)=>{"use strict";n.d(e,{Qb:()=>Pe,PW:()=>Fe});var i=n(7716),s=n(9075),r=n(7238);function o(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function l(t){switch(t.length){case 0:return new r.ZN;case 1:return t[0];default:return new r.ZE(t)}}function c(t,e,n,i,s={},o={}){const a=[],l=[];let c=-1,u=null;if(i.forEach(t=>{const n=t.offset,i=n==c,h=i&&u||{};Object.keys(t).forEach(n=>{let i=n,l=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),l){case r.k1:l=s[n];break;case r.l3:l=o[n];break;default:l=e.normalizeStyleValue(n,i,l,a)}h[i]=l}),i||l.push(h),u=h,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function u(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&h(n,"start",t)));break;case"done":t.onDone(()=>i(n&&h(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&h(n,"destroy",t)))}}function h(t,e,n){const i=n.totalTime,s=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function d(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function p(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function m(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let f=(t,e)=>!1,g=(t,e)=>!1,b=(t,e,n)=>[];const _=a();(_||"undefined"!=typeof Element)&&(f=o()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),g=(()=>{if(_||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):g}})(),b=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let A=(()=>{class t{validateStyleProperty(t){return w(t)}matchesElement(t,e){return S(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return T(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,o=[],a){return new r.ZN(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class k{}k.NOOP=new A;const E="ng-enter",I="ng-leave",O="ng-trigger",M=".ng-trigger",P="ng-animating",L=".ng-animating";function R(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:D(parseFloat(e[1]),e[2])}function D(t,e){switch(e){case"s":return 1e3*t;default:return t}}function F(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=D(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=D(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function N(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function Z(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else N(t,n);return n}function G(t,e,n){return n?e+":"+n+";":""}function B(t){let e="";for(let n=0;n{const s=W(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),a()&&B(t))}function q(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=W(e);t.style[n]=""}),a()&&B(t))}function V(t){return Array.isArray(t)?1==t.length?t[0]:(0,r.vP)(t):t}const U=new RegExp("{{\\s*(.+?)\\s*}}","g");function j(t){let e=[];if("string"==typeof t){let n;for(;n=U.exec(t);)e.push(n[1]);U.lastIndex=0}return e}function z(t,e,n){const i=t.toString(),s=i.replace(U,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),s=""),s.toString()});return s==i?t:s}function Y(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const $=/-+([a-z0-9])/g;function W(t){return t.replace($,(...t)=>t[1].toUpperCase())}function Q(t,e){return 0===t||0===e}function K(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(st(s,o)),"<"!=r[0]||s==tt&&o==tt||e.push(st(o,s))}(t,n,e)):n.push(t),n}const nt=new Set(["true","1"]),it=new Set(["false","0"]);function st(t,e){const n=nt.has(t)||it.has(t),i=nt.has(e)||it.has(e);return(s,r)=>{let o=t==tt||t==s,a=e==tt||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?nt.has(t):it.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?nt.has(e):it.has(e)),o&&a}}const rt=new RegExp("s*:selfs*,?","g");function ot(t,e,n){return new at(t).build(e,n)}class at{constructor(t){this._driver=t}build(t,e){const n=new lt(e);return this._resetContextStyleTimingState(n),X(this,V(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(ct(t)){const e=t;Object.keys(e).forEach(t=>{j(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=Y(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=X(this,V(t.animation),e);return{type:1,matchers:et(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:ut(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>X(this,t,e)),options:ut(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=X(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:ut(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return ht(F(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ht(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||F(i,e),ht(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:(0,r.oB)({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};n.easing&&(t.easing=n.easing),s=(0,r.oB)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(s,e);a.isEmptyStep=o,i=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==r.l3?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(ct(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=j(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c0&&i{const r=u>0?i==h?1:u*i:s[i],o=r*m;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:X(this,V(t.animation),e),options:ut(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ut(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ut(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(rt,"")),[t=t.replace(/@\*/g,M).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,L),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,p(e.collectedStyles,e.currentQuerySelector,{});const o=X(this,V(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:ut(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:F(t.timings,e.errors,!0);return{type:12,animation:X(this,V(t.animation),e),timings:n,options:null}}}class lt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ct(t){return!Array.isArray(t)&&"object"==typeof t}function ut(t){var e;return t?(t=N(t)).params&&(t.params=(e=t.params)?N(e):null):t={},t}function ht(t,e,n){return{duration:t,delay:e,easing:n}}function dt(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class pt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const mt=new RegExp(":enter","g"),ft=new RegExp(":leave","g");function gt(t,e,n,i,s,r={},o={},a,l,c=[]){return(new bt).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class bt{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new pt;const u=new yt(t,e,l,i,s,c,[]);u.options=a,u.currentTimeline.setStyles([r],null,u.errors,a),X(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[dt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?R(n.duration):null,r=null!=n.delay?R(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),X(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=_t);const t=R(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>X(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?R(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),X(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return F(e.params?z(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?R(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=_t);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),X(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;X(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const _t={};class yt{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=_t,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new vt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=R(n.duration)),null!=n.delay&&(i.delay=R(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=z(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new yt(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=_t,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new wt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(mt,"."+this._enterClassName)).replace(ft,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class vt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new vt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||r.l3,this._currentKeyframe[t]=r.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},o=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=r.l3})):Z(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=z(o[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:r.l3),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,o)=>{const a=Z(s,!0);Object.keys(a).forEach(n=>{const i=a[n];i==r.k1?t.add(n):i==r.l3&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const s=t.size?Y(t.values()):[],o=e.size?Y(e.values()):[];if(n){const t=i[0],e=N(t);t.offset=0,e.offset=1,i=[t,e]}return dt(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class wt extends vt{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=Z(t[0],!1);a.offset=0,s.push(a);const l=Z(t[0],!1);l.offset=St(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=Z(t[i],!1);o.offset=St((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return dt(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function St(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class xt{}class Tt extends xt{normalizePropertyName(t,e){return W(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(Ct[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const Ct=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function At(t,e,n,i,s,r,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const kt={};class Et{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||kt,d=this.buildStyles(n,o&&o.params||kt,u),m=a&&a.params||kt,f=this.buildStyles(i,m,u),g=new Set,b=new Map,_=new Map,y="void"===i,v={params:Object.assign(Object.assign({},h),m)},w=c?[]:gt(t,e,this.ast.animation,s,r,d,f,v,l,u);let S=0;if(w.forEach(t=>{S=Math.max(t.duration+t.delay,S)}),u.length)return At(e,this._triggerName,n,i,y,d,f,[],[],b,_,S,u);w.forEach(t=>{const n=t.element,i=p(b,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=p(_,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&g.add(n)});const x=Y(g.values());return At(e,this._triggerName,n,i,y,d,f,w,x,b,_,S)}}class It{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=N(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=z(r,i,e)),n[t]=r})}}),n}}class Ot{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new It(t.style,t.options&&t.options.params||{})}),Mt(this.states,"true","1"),Mt(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Et(t,e,this.states))}),this.fallbackTransition=new Et(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Mt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Pt=new pt;class Lt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=ot(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=c(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let o;const a=new Map;if(s?(o=gt(this._driver,e,s,E,I,{},{},n,Pt,i),o.forEach(t=>{const e=p(a,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);a.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,r.l3)})});const c=l(o.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const s=d(e,"","","");return u(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Rt="ng-animate-queued",Dt="ng-animate-disabled",Ft=".ng-animate-disabled",Nt=[],Zt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Gt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Bt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=N(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Ht="void",qt=new Bt(Ht);class Vt{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Qt(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=p(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=p(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Qt(t,O),Qt(t,"ng-trigger-"+e),a[e]=qt),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new jt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Qt(t,O),Qt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new Bt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=qt),l.value!==Ht&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s{q(t,n),H(t,i)})}return}const c=p(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:r,isFallbackTransition:h}),h||(Qt(t,Rt),r.onStart(()=>{Kt(t,Rt)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,M,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,Ht,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&l(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const s=e.name;if(i.has(s))return;i.add(s);const r=this._triggers[s].fallbackTransition,o=n[s]||qt,a=new Bt(Ht),l=new jt(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==Zt||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Qt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=d(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,u(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Ut{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Vt(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Qt(t,Dt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Kt(t,Dt))}removeNode(t,e,n,i){if(zt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return zt(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,M,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,L,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return l(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Zt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Ft)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Ft,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?l(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new pt,i=[],s=new Map,o=[],a=new Map,c=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n=E+b++;g.set(e,n),t.forEach(t=>Qt(t,n))});const _=[],y=new Set,v=new Set;for(let r=0;ry.add(t)):v.add(t))}const w=new Map,S=Wt(m,Array.from(y));S.forEach((t,e)=>{const n=I+b++;w.set(e,n),t.forEach(t=>Qt(t,n))}),t.push(()=>{f.forEach((t,e)=>{const n=g.get(e);t.forEach(t=>Kt(t,n))}),S.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Kt(t,n))}),_.forEach(t=>{this.processLeaveNode(t)})});const x=[],T=[];for(let r=this._namespaceList.length-1;r>=0;r--)this._namespaceList[r].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(x.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const r=!d||!this.driver.containsElement(d,s),l=w.get(s),h=g.get(s),m=this._buildInstruction(t,n,h,l,r);if(m.errors&&m.errors.length)T.push(m);else{if(r)return e.onStart(()=>q(s,m.fromStyles)),e.onDestroy(()=>H(s,m.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>q(s,m.fromStyles)),e.onDestroy(()=>H(s,m.toStyles)),void i.push(e);m.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,m.timelines),o.push({instruction:m,player:e,element:s}),m.queriedElements.forEach(t=>p(a,t,[]).push(e)),m.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach(e=>t.add(e))}}),m.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(T.length){const t=[];T.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),x.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,A=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(A.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{p(C,e,[]).push(t),t.destroy()})});const k=_.filter(t=>te(t,c,u)),O=new Map;$t(O,this.driver,v,u,r.l3).forEach(t=>{te(t,c,u)&&k.push(t)});const M=new Map;f.forEach((t,e)=>{$t(M,this.driver,new Set(t),c,r.k1)}),k.forEach(t=>{const e=O.get(t),n=M.get(t);O.set(t,Object.assign(Object.assign({},e),n))});const P=[],R=[],D={};o.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(h.has(e))return r.onDestroy(()=>H(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=D;if(A.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=A.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>A.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,C,s,M,O);if(r.setRealPlayer(n),t===D)P.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=l(e)),i.push(r)}}else q(e,o.fromStyles),r.onDestroy(()=>H(e,o.toStyles)),R.push(r),h.has(e)&&i.push(r)}),R.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=l(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let r=0;r<_.length;r++){const t=_[r],e=t.__ng_removed;if(Kt(t,I),e&&e.hasAnimation)continue;let n=[];if(a.size){let e=a.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,L,!0);for(let t=0;t!t.destroyed);i.length?Xt(this,t,i):this.processLeaveNode(t)}return _.length=0,P.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),P}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==Ht;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=p(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}q(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,o){const a=e.triggerName,u=e.element,h=[],d=new Set,m=new Set,f=e.timelines.map(e=>{const l=e.element;d.add(l);const p=l.__ng_removed;if(p&&p.removedBeforeQueried)return new r.ZN(e.duration,e.delay);const f=l!==u,g=function(t){const e=[];return Jt(t,e),e}((n.get(l)||Nt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===l),b=s.get(l),_=o.get(l),y=c(0,this._normalizer,0,e.keyframes,b,_),v=this._buildPlayer(e,y,g);if(e.subTimeline&&i&&m.add(l),f){const e=new jt(t,a,l);e.setRealPlayer(v),h.push(e)}return v});h.forEach(t=>{p(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),d.forEach(t=>Qt(t,P));const g=l(f);return g.onDestroy(()=>{d.forEach(t=>Kt(t,P)),H(u,e.toStyles)}),m.forEach(t=>{p(i,t,[]).push(g)}),g}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new r.ZN(t.duration,t.delay)}}class jt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new r.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>u(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){p(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function zt(t){return t&&1===t.nodeType}function Yt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function $t(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Yt(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=Gt,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Yt(t,r[a++])),o}function Wt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}function Qt(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Kt(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Xt(t,e,n){l(n).onDone(()=>t.processLeaveNode(e))}function Jt(t,e){for(let n=0;ns.add(t)):e.set(t,i),n.delete(t),!0}class ee{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Ut(t,e,n),this._timelineEngine=new Lt(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=ot(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new Ot(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=m(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=m(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ne(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=se(e[0]),e.length>1&&(i=se(e[e.length-1]))):e&&(n=se(e)),n||i?new ie(t,n,i):null}class ie{constructor(t,e,n){this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;let i=ie.initialStylesByElement.get(t);i||ie.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&H(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(H(this._element,this._initialStyles),this._endStyles&&(H(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ie.initialStylesByElement.delete(this._element),this._startStyles&&(q(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),H(this._element,this._initialStyles),this._state=3)}}function se(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){!function(t,e){const n=me(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),de(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=me(t,"").split(","),i=he(n,e);i>=0&&(n.splice(i,1),pe(t,"",n.join(",")))}(this._element,this._name))}}function ce(t,e,n){pe(t,"PlayState",n,ue(t,e))}function ue(t,e){const n=me(t,"");return n.indexOf(",")>0?he(n.split(","),e):he([n],e)}function he(t,e){for(let n=0;n=0)return n;return-1}function de(t,e,n){n?t.removeEventListener(ae,e):t.addEventListener(ae,e)}function pe(t,e,n,i){const s=oe+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function me(t,e){return t.style[oe+e]||""}class fe{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new le(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:J(this.element,n))})}this.currentSnapshot=t}}class ge extends r.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=C(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class be{constructor(){this._count=0}validateStyleProperty(t){return w(t)}matchesElement(t,e){return S(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return T(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>C(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=`${s}}\n`}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){const a=r.filter(t=>t instanceof fe),l={};Q(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=K(t,e,l));if(0==n)return new ge(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(h);const d=ne(t,e),p=new fe(t,e,u,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class _e{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:J(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class ye{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ve().toString()),this._cssKeyframesDriver=new be}validateStyleProperty(t){return w(t)}matchesElement(t,e){return S(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return T(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof _e);Q(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=ne(t,e=K(t,e=e.map(t=>Z(t,!1)),l));return new _e(t,e,a,u)}}function ve(){return o()&&Element.prototype.animate||{}}var we=n(8583);let Se=(()=>{class t extends r._j{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?(0,r.vP)(t):t;return Ce(this._renderer,null,e,"register",[n]),new xe(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(we.K0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class xe extends r.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Te(this._id,t,e||{},this._renderer)}}class Te{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Ce(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Ce(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}const Ae="@",ke="@.disabled";let Ee=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Ie("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new Oe(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(ee),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Ie{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==Ae&&e==ke?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Oe extends Ie{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Ae?"."==e.charAt(1)&&e==ke?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==Ae){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return s.charAt(0)!=Ae&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Me=(()=>{class t extends ee{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(we.K0),i.LFG(k),i.LFG(xt))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const Pe=new i.OlP("AnimationModuleType"),Le=[{provide:r._j,useClass:Se},{provide:xt,useFactory:function(){return new Tt}},{provide:ee,useClass:Me},{provide:i.FYo,useFactory:function(t,e,n){return new Ee(t,e,n)},deps:[s.se,ee,i.R0b]}],Re=[{provide:k,useFactory:function(){return"function"==typeof ve()?new ye:new be}},{provide:Pe,useValue:"BrowserAnimations"},...Le],De=[{provide:k,useClass:A},{provide:Pe,useValue:"NoopAnimations"},...Le];let Fe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?De:Re}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:Re,imports:[s.b2]}),t})()},9075:(t,e,n)=>{"use strict";n.d(e,{b2:()=>Z,Cu:()=>Y,H7:()=>L,h_:()=>B,Dx:()=>V,ki:()=>j,Cb:()=>U,q6:()=>F,se:()=>x});var i=n(8583),s=n(7716);class r extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class o extends r{static makeCurrent(){(0,i.HT)(new o)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(l=l||document.querySelector("base"),l?l.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,i.Mx)(document.cookie,t)}}let a,l=null;const c=new s.OlP("TRANSITION_ID"),u=[{provide:s.ip1,useFactory:function(t,e,n){return()=>{n.get(s.CZH).donePromise.then(()=>{const n=(0,i.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[c,i.K0,s.zs3],multi:!0}];class h{static init(){(0,s.VLi)(new h)}addToWindow(t){s.dqk.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?(0,i.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new s.OlP("EventManagerPlugins");let m=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),b=(()=>{class t extends g{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(_),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(_))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function _(t){(0,i.q)().remove(t)}const y={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},v=/%COMP%/g;function w(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let x=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new T(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new C(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case s.ifc.ShadowDom:return new A(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=w(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(m),s.LFG(b),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class T{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(y[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=y[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=y[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,n,i&s.JOm.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,S(n)):this.eventManager.addEventListener(t,e,S(n))}}class C extends T{constructor(t,e,n,i){super(t),this.component=n;const s=w(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(v,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(v,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class A extends T{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=w(i.id,i.styles,[]);for(let r=0;r{class t extends f{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const E=["alt","control","meta","shift"],I={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},O={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},M={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let P=(()=>{class t extends f{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const r=t.parseEventName(n),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.q)().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(E.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&O.hasOwnProperty(e)&&(e=O[e]))}return I[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),E.forEach(i=>{i!=n&&(0,M[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(D)},token:t,providedIn:"root"}),t})();function R(t){return new D(t.get(i.K0))}let D=(()=>{class t extends L{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return R((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const F=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:i.bD},{provide:s.g9A,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),N=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:p,useClass:k,multi:!0,deps:[i.K0,s.R0b,s.Lbi]},{provide:p,useClass:P,multi:!0,deps:[i.K0]},[],{provide:x,useClass:x,deps:[m,b,s.AFp]},{provide:s.FYo,useExisting:x},{provide:g,useExisting:b},{provide:b,useClass:b,deps:[i.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:m,useClass:m,deps:[p,s.R0b]},{provide:i.JF,useClass:d,deps:[]},[]];let Z=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.AFp,useValue:e.appId},{provide:c,useExisting:s.AFp},u]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:N,imports:[i.ez,s.hGG]}),t})();function G(){return new B((0,s.LFG)(i.K0))}let B=(()=>{class t{constructor(t){this._doc=t,this._dom=(0,i.q)()}addTag(t,e=!1){return t?this._getOrCreateElement(t,e):null}addTags(t,e=!1){return t?t.reduce((t,n)=>(n&&t.push(this._getOrCreateElement(n,e)),t),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];const e=this._doc.querySelectorAll(`meta[${t}]`);return e?[].slice.call(e):[]}updateTag(t,e){if(!t)return null;e=e||this._parseSelector(t);const n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,e=!1){if(!e){const e=this._parseSelector(t),n=this.getTags(e).filter(e=>this._containsAttributes(t,e))[0];if(void 0!==n)return n}const n=this._dom.createElement("meta");return this._setMetaElementAttributes(t,n),this._doc.getElementsByTagName("head")[0].appendChild(n),n}_setMetaElementAttributes(t,e){return Object.keys(t).forEach(n=>e.setAttribute(this._getMetaKeyMap(n),t[n])),e}_parseSelector(t){const e=t.name?"name":"property";return`${e}="${t[e]}"`}_containsAttributes(t,e){return Object.keys(t).every(n=>e.getAttribute(this._getMetaKeyMap(n))===t[n])}_getMetaKeyMap(t){return H[t]||t}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=(0,s.Yz7)({factory:G,token:t,providedIn:"root"}),t})();const H={httpEquiv:"http-equiv"};function q(){return new V((0,s.LFG)(i.K0))}let V=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=(0,s.Yz7)({factory:q,token:t,providedIn:"root"}),t})();function U(t){return t}"undefined"!=typeof window&&window;let j=(()=>{class t{constructor(){this.store={},this.onSerializeCallbacks={}}static init(e){const n=new t;return n.store=e,n}get(t,e){return void 0!==this.store[t]?this.store[t]:e}set(t,e){this.store[t]=e}remove(t){delete this.store[t]}hasKey(t){return this.store.hasOwnProperty(t)}onSerialize(t,e){this.onSerializeCallbacks[t]=e}toJson(){for(const e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function z(t,e){const n=t.getElementById(e+"-state");let i={};if(n&&n.textContent)try{i=JSON.parse(function(t){const e={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return t.replace(/&[^;]+;/g,t=>e[t])}(n.textContent))}catch(s){console.warn("Exception while restoring TransferState for app "+e,s)}return j.init(i)}let Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:j,useFactory:z,deps:[i.K0,s.AFp]}]}),t})()},4655:(t,e,n)=>{"use strict";n.d(e,{gz:()=>Xt,m2:()=>Y,GZ:()=>In,F0:()=>wn,rH:()=>Sn,Od:()=>Cn,yS:()=>xn,Bz:()=>Fn,lC:()=>An,Xs:()=>at});var i=n(8583),s=n(7716);const r=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var o=n(4402),a=n(5917),l=n(6215),c=n(739),u=n(7574),h=n(8071),d=n(1439),p=n(9193),m=n(2441),f=n(9765),g=n(7393);function b(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new _(t,e,n))}}class _{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new y(t,this.accumulator,this.seed,this.hasSeed))}}class y extends g.L{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}var v=n(5435),w=n(7108);function S(t){return function(e){return 0===t?(0,p.c)():e.lift(new x(t))}}class x{constructor(t){if(this.total=t,this.total<0)throw new w.W}call(t,e){return e.subscribe(new T(t,this.total))}}class T extends g.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;se.lift(new A(t))}class A{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new k(t,this.errorFactory))}}class k extends g.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function E(){return new r}function I(t=null){return e=>e.lift(new O(t))}class O{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new M(t,this.defaultValue))}}class M extends g.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var P=n(4487),L=n(5257);function R(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,v.h)((e,n)=>t(e,n,i)):P.y,(0,L.q)(1),n?I(e):C(()=>new r))}var D=n(8002),F=n(3190),N=n(9761),Z=n(5304),G=n(4612),B=n(9773),H=n(8307),q=n(1307),V=n(8939),U=n(3282);class j{constructor(t,e){this.id=t,this.url=e}}class z extends j{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Y extends j{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class $ extends j{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class W extends j{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Q extends j{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class K extends j{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class X extends j{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class J extends j{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tt extends j{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class et{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nt{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class it{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class st{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rt{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ot{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class at{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const lt="primary";class ct{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ut(t){return new ct(t)}function ht(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function dt(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function ft(t){return Array.prototype.concat.apply([],t)}function gt(t){return t.length>0?t[t.length-1]:null}function bt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function _t(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,a.of)(t)}const yt={exact:function t(e,n,i){if(!Et(e.segments,n.segments))return!1;if(!Tt(e.segments,n.segments,i))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const s in n.children){if(!e.children[s])return!1;if(!t(e.children[s],n.children[s],i))return!1}return!0},subset:St},vt={exact:function(t,e){return pt(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>mt(t[n],e[n]))},ignored:()=>!0};function wt(t,e,n){return yt[n.paths](t.root,e.root,n.matrixParams)&&vt[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function St(t,e,n){return xt(t,e,e.segments,n)}function xt(t,e,n,i){if(t.segments.length>n.length){const s=t.segments.slice(0,n.length);return!!Et(s,n)&&!e.hasChildren()&&!!Tt(s,n,i)}if(t.segments.length===n.length){if(!Et(t.segments,n))return!1;if(!Tt(t.segments,n,i))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!St(t.children[n],e.children[n],i))return!1}return!0}{const s=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!Et(t.segments,s)&&!!Tt(t.segments,s,i)&&!!t.children.primary&&xt(t.children.primary,e,r,i)}}function Tt(t,e,n){return e.every((e,i)=>vt[n](t[i].parameters,e.parameters))}class Ct{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ut(this.queryParams)),this._queryParamMap}toString(){return Mt.serialize(this)}}class At{constructor(t,e){this.segments=t,this.children=e,this.parent=null,bt(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pt(this)}}class kt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ut(this.parameters)),this._parameterMap}toString(){return Gt(this)}}function Et(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class It{}class Ot{parse(t){const e=new Ut(t);return new Ct(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${Lt(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Dt(e)}=${Dt(t)}`).join("&"):`${Dt(e)}=${Dt(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Mt=new Ot;function Pt(t){return t.segments.map(t=>Gt(t)).join("/")}function Lt(t,e){if(!t.hasChildren())return Pt(t);if(e){const e=t.children.primary?Lt(t.children.primary,!1):"",n=[];return bt(t.children,(t,e)=>{e!==lt&&n.push(`${e}:${Lt(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return bt(t.children,(t,i)=>{i===lt&&(n=n.concat(e(t,i)))}),bt(t.children,(t,i)=>{i!==lt&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===lt?[Lt(t.children.primary,!1)]:[`${n}:${Lt(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Pt(t)}/${e[0]}`:`${Pt(t)}/(${e.join("//")})`}}function Rt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Dt(t){return Rt(t).replace(/%3B/gi,";")}function Ft(t){return Rt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Nt(t){return decodeURIComponent(t)}function Zt(t){return Nt(t.replace(/\+/g,"%20"))}function Gt(t){return`${Ft(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Ft(t)}=${Ft(e[t])}`).join("")}`;var e}const Bt=/^[^\/()?;=#]+/;function Ht(t){const e=t.match(Bt);return e?e[0]:""}const qt=/^[^=?&#]+/,Vt=/^[^?&#]+/;class Ut{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new At([],{}):new At([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new At(t,e)),n}parseSegment(){const t=Ht(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new kt(Nt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Ht(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Ht(this.remaining);t&&(n=t,this.capture(n))}t[Nt(e)]=Nt(n)}parseQueryParam(t){const e=function(t){const e=t.match(qt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Vt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Zt(e),s=Zt(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Ht(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=lt);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new At([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class jt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=zt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=zt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Yt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Yt(t,this._root).map(t=>t.value)}}function zt(t,e){if(t===e.value)return e;for(const n of e.children){const e=zt(t,n);if(e)return e}return null}function Yt(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Yt(t,n);if(i.length)return i.unshift(e),i}return[]}class $t{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Wt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Qt extends jt{constructor(t,e){super(t),this.snapshot=e,ne(this,t)}toString(){return this.snapshot.toString()}}function Kt(t,e){const n=function(t,e){const n=new te([],{},{},"",{},lt,e,null,t.root,-1,{});return new ee("",new $t(n,[]))}(t,e),i=new l.X([new kt("",{})]),s=new l.X({}),r=new l.X({}),o=new l.X({}),a=new l.X(""),c=new Xt(i,s,o,a,r,lt,e,n.root);return c.snapshot=n.root,new Qt(new $t(c,[]),n)}class Xt{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}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,D.U)(t=>ut(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,D.U)(t=>ut(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Jt(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class te{constructor(t,e,n,i,s,r,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}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=ut(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ut(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ee extends jt{constructor(t,e){super(e),this.url=t,ne(this,e)}toString(){return ie(this._root)}}function ne(t,e){e.value._routerState=t,e.children.forEach(e=>ne(t,e))}function ie(t){const e=t.children.length>0?` { ${t.children.map(ie).join(", ")} } `:"";return`${t.value}${e}`}function se(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,pt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),pt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;npt(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||re(t.parent,e.parent))}function oe(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return oe(t,e,i);return oe(t,e)})}(t,e,n);return new $t(i,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return ae(e,t),t}}const n=new Xt(new l.X((i=e.value).url),new l.X(i.params),new l.X(i.queryParams),new l.X(i.fragment),new l.X(i.data),i.outlet,i.component,i),s=e.children.map(e=>oe(t,e));return new $t(n,s)}var i}function ae(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Ct(n.root===t?e:he(n.root,t,e),r,s)}function he(t,e,n){const i={};return bt(t.children,(t,s)=>{i[s]=t===e?n:he(t,e,n)}),new At(t.segments,i)}class de{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&le(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(ce);if(i&&i!==gt(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class pe{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function me(t,e,n){if(t||(t=new At([],{})),0===t.segments.length&&t.hasChildren())return fe(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return r;const e=t.segments[s],o=n[i];if(ce(o))break;const a=`${o}`,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!ye(a,l,e))return r;i+=2}else{if(!ye(a,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(s[i]=me(t.children[i],e,n))}),bt(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new At(t.segments,s)}}function ge(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=ge(new At([],{}),0,t))}),e}function _e(t){const e={};return bt(t,(t,n)=>e[n]=`${t}`),e}function ye(t,e,n){return t==n.path&&pt(e,n.parameters)}class ve{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),se(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Wt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),bt(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,s=Wt(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=Wt(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new ot(t.value.snapshot))}),t.children.length&&this.forwardEvent(new st(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(se(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),we(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function we(t){se(t.value),t.children.forEach(we)}class Se{constructor(t,e){this.routes=t,this.module=e}}function xe(t){return"function"==typeof t}function Te(t){return t instanceof Ct}const Ce=Symbol("INITIAL_VALUE");function Ae(){return(0,F.w)(t=>(0,c.aj)(t.map(t=>t.pipe((0,L.q)(1),(0,N.O)(Ce)))).pipe(b((t,e)=>{let n=!1;return e.reduce((t,i,s)=>{if(t!==Ce)return t;if(i===Ce&&(n=!0),!n){if(!1===i)return i;if(s===e.length-1||Te(i))return i}return t},t)},Ce),(0,v.h)(t=>t!==Ce),(0,D.U)(t=>Te(t)?t:!0===t),(0,L.q)(1)))}let ke=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[An]},encapsulation:2}),t})();function Ee(t,e=""){for(let n=0;nPe(t)===e);return n.push(...t.filter(t=>Pe(t)!==e)),n}const Re={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function De(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Re):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||dt)(n,t,e);if(!s)return Object.assign({},Re);const r={};bt(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function Fe(t,e,n,i,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Ne(t,e,n)&&Pe(n)!==lt)}(t,n,i)){const s=new At(e,function(t,e,n,i){const s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&Pe(r)!==lt){const n=new At([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Pe(r)]=n}return s}(t,e,i,new At(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Ne(t,e,n))}(t,n,i)){const r=new At(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(Ne(t,n,a)&&!s[Pe(a)]){const n=new At([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Pe(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new At(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Ne(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Ze(t,e,n,i){return!!(Pe(t)===i||i!==lt&&Ne(e,n,t))&&("**"===t.path||De(e,t,n).matched)}function Ge(t,e,n){return 0===e.length&&!t.children[n]}class Be{constructor(t){this.segmentGroup=t||null}}class He{constructor(t){this.urlTree=t}}function qe(t){return new u.y(e=>e.error(new Be(t)))}function Ve(t){return new u.y(e=>e.error(new He(t)))}function Ue(t){return new u.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class je{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=Fe(this.urlTree.root,[],[],this.config).segmentGroup,e=new At(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,lt).pipe((0,D.U)(t=>this.createUrlTree(ze(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Z.K)(t=>{if(t instanceof He)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Be)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,lt).pipe((0,D.U)(e=>this.createUrlTree(ze(e),t.queryParams,t.fragment))).pipe((0,Z.K)(t=>{if(t instanceof Be)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new At([],{[lt]:t}):t;return new Ct(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,D.U)(t=>new At([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const s of Object.keys(n.children))"primary"===s?i.unshift(s):i.push(s);return(0,o.D)(i).pipe((0,G.b)(i=>{const s=n.children[i],r=Le(e,i);return this.expandSegmentGroup(t,r,s,i).pipe((0,D.U)(t=>({segment:t,outlet:i})))}),b((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,v.h)((e,n)=>t(e,n,i)):P.y,S(1),n?I(e):C(()=>new r))}())}expandSegment(t,e,n,i,s,l){return(0,o.D)(n).pipe((0,G.b)(r=>this.expandSegmentAgainstRoute(t,e,n,r,i,s,l).pipe((0,Z.K)(t=>{if(t instanceof Be)return(0,a.of)(null);throw t}))),R(t=>!!t),(0,Z.K)((t,n)=>{if(t instanceof r||"EmptyError"===t.name){if(Ge(e,i,s))return(0,a.of)(new At([],{}));throw new Be(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return Ze(i,e,s,r)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):qe(e):qe(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ve(s):this.lineralizeSegments(n,s).pipe((0,B.zg)(n=>{const s=new At(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=De(e,i,s);if(!o)return qe(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Ve(u):this.lineralizeSegments(i,u).pipe((0,B.zg)(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,a.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,D.U)(t=>(n._loadedConfig=t,new At(i,{})))):(0,a.of)(new At(i,{}));const{matched:r,consumedSegments:o,lastChild:l}=De(e,n,i);if(!r)return qe(e);const c=i.slice(l);return this.getChildConfig(t,n,i).pipe((0,B.zg)(t=>{const i=t.module,r=t.routes,{segmentGroup:l,slicedSegments:u}=Fe(e,o,c,r),h=new At(l.segments,l.children);if(0===u.length&&h.hasChildren())return this.expandChildren(i,r,h).pipe((0,D.U)(t=>new At(o,t)));if(0===r.length&&0===u.length)return(0,a.of)(new At(o,{}));const d=Pe(n)===s;return this.expandSegment(i,h,r,u,d?lt:s,!0).pipe((0,D.U)(t=>new At(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?(0,a.of)(new Se(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,a.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,B.zg)(n=>n?this.configLoader.load(t.injector,e).pipe((0,D.U)(t=>(e._loadedConfig=t,t))):function(t){return new u.y(e=>e.error(ht(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,a.of)(new Se([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return(0,a.of)(!0);const s=i.map(i=>{const s=t.get(i);let r;if(function(t){return t&&xe(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!xe(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return _t(r)});return(0,a.of)(s).pipe(Ae(),(0,H.b)(t=>{if(!Te(t))return;const e=ht(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,D.U)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,a.of)(n);if(i.numberOfChildren>1||!i.children.primary)return Ue(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new Ct(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return bt(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return bt(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new At(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function ze(t){const e={};for(const n of Object.keys(t.children)){const i=ze(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new At(t.segments.concat(e.segments),e.children)}return t}(new At(t.segments,e))}class Ye{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class $e{constructor(t,e){this.component=t,this.route=e}}function We(t,e,n){const i=t._root;return Ke(i,e?e._root:null,n,[i.value])}function Qe(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function Ke(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=Wt(e);return t.children.forEach(t=>{!function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Et(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Et(t.url,e.url)||!pt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!re(t,e)||!pt(t.queryParams,e.queryParams);case"paramsChange":default:return!re(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Ye(i)):(r.data=o.data,r._resolvedData=o._resolvedData),Ke(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new $e(a.outlet.component,o))}else o&&Xe(e,a,s),s.canActivateChecks.push(new Ye(i)),Ke(t,null,r.component?a?a.children:null:n,i,s)}(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),bt(r,(t,e)=>Xe(t,n.getContext(e),s)),s}function Xe(t,e,n){const i=Wt(t),s=t.value;bt(i,(t,i)=>{Xe(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new $e(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Je{}function tn(t){return new u.y(e=>e.error(t))}class en{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=Fe(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,lt);if(null===e)return null;const n=new te([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},lt,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new $t(n,e),s=new ee(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=Jt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const i=e.children[s],r=Le(t,s),o=this.processSegmentGroup(r,i,s);if(null===o)return null;n.push(...o)}const i=sn(n);return i.sort((t,e)=>t.value.outlet===lt?-1:e.value.outlet===lt?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,i);if(null!==t)return t}return Ge(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!Ze(t,e,n,i))return null;let s,r=[],o=[];if("**"===t.path){const i=n.length>0?gt(n).parameters:{};s=new te(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,an(t),Pe(t),t.component,t,rn(e),on(e)+n.length,ln(t))}else{const i=De(e,t,n);if(!i.matched)return null;r=i.consumedSegments,o=n.slice(i.lastChild),s=new te(r,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,an(t),Pe(t),t.component,t,rn(e),on(e)+r.length,ln(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Fe(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new $t(s,t)]}if(0===a.length&&0===c.length)return[new $t(s,[])];const u=Pe(t)===i,h=this.processSegment(a,l,c,u?lt:i);return null===h?null:[new $t(s,h)]}}function nn(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function sn(t){const e=[],n=new Set;for(const i of t){if(!nn(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=sn(i.children);e.push(new $t(i.value,t))}return e.filter(t=>!n.has(t))}function rn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function on(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function an(t){return t.data||{}}function ln(t){return t.resolve||{}}function cn(t){return(0,F.w)(e=>{const n=t(e);return n?(0,o.D)(n).pipe((0,D.U)(()=>e)):(0,a.of)(e)})}class un extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const hn=new s.OlP("ROUTES");class dn{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe((0,D.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new Se(ft(i.injector.get(hn,void 0,s.XFs.Self|s.XFs.Optional)).map(Me),i)}),(0,Z.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new m.c(n,()=>new f.xQ).pipe((0,q.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):_t(t()).pipe((0,B.zg)(t=>t instanceof s.YKP?(0,a.of)(t):(0,o.D)(this.compiler.compileModuleAsync(t))))}}class pn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new mn,this.attachRef=null}}class mn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new pn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class fn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function gn(t){throw t}function bn(t,e,n){return e.parse("/")}function _n(t,e){return(0,a.of)(null)}const yn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let wn=(()=>{class t{constructor(t,e,n,i,r,o,a,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new f.xQ,this.errorHandler=gn,this.malformedUriErrorHandler=bn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:_n,afterPreactivation:_n},this.urlHandlingStrategy=new fn,this.routeReuseStrategy=new un,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=r.get(s.h0i),this.console=r.get(s.c2e);const u=r.get(s.R0b);this.isNgZoneEnabled=u instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Ct(new At([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new dn(o,a,t=>this.triggerEvent(new et(t)),t=>this.triggerEvent(new nt(t))),this.routerState=Kt(this.currentUrlTree,this.rootComponentType),this.transitions=new l.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()}setupNavigations(t){const e=this.events;return t.pipe((0,v.h)(t=>0!==t.id),(0,D.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,F.w)(t=>{let n=!1,i=!1;return(0,a.of)(t).pipe((0,H.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,F.w)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,a.of)(t).pipe((0,F.w)(t=>{const n=this.transitions.getValue();return e.next(new z(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?p.E:Promise.resolve(t)}),(i=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,o=this.config,(0,F.w)(t=>function(t,e,n,i,s){return new je(t,e,n,i,s).apply()}(i,s,r,t.extractedUrl,o).pipe((0,D.U)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),(0,H.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,s){return(0,B.zg)(r=>function(t,e,n,i,s="emptyOnly",r="legacy"){try{const o=new en(t,e,n,i,s,r).recognize();return null===o?tn(new Je):(0,a.of)(o)}catch(o){return tn(o)}}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe((0,D.U)(t=>Object.assign(Object.assign({},r),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,H.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new Q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,s,r,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,l=new z(n,this.serializeUrl(i),s,r);e.next(l);const c=Kt(i,this.rootComponentType).snapshot;return(0,a.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.E}),cn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),(0,H.b)(t=>{const e=new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,D.U)(t=>Object.assign(Object.assign({},t),{guards:We(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,B.zg)(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:l}}=n;return 0===l.length&&0===r.length?(0,a.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return(0,o.D)(t).pipe((0,B.zg)(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return(0,a.of)(!0);const o=r.map(r=>{const o=Qe(r,e,s);let a;if(function(t){return t&&xe(t.canDeactivate)}(o))a=_t(o.canDeactivate(t,e,n,i));else{if(!xe(o))throw new Error("Invalid CanDeactivate guard");a=_t(o(t,e,n,i))}return a.pipe(R())});return(0,a.of)(o).pipe(Ae())}(t.component,t.route,n,e,i)),R(t=>!0!==t,!0))}(l,i,s,t).pipe((0,B.zg)(n=>n&&"boolean"==typeof n?function(t,e,n,i){return(0,o.D)(e).pipe((0,G.b)(e=>(0,h.z)(function(t,e){return null!==t&&e&&e(new it(t)),(0,a.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new rt(t)),(0,a.of)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>(0,d.P)(()=>{const s=e.guards.map(s=>{const r=Qe(s,e.node,n);let o;if(function(t){return t&&xe(t.canActivateChild)}(r))o=_t(r.canActivateChild(i,t));else{if(!xe(r))throw new Error("Invalid CanActivateChild guard");o=_t(r(i,t))}return o.pipe(R())});return(0,a.of)(s).pipe(Ae())}));return(0,a.of)(s).pipe(Ae())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return(0,a.of)(!0);const s=i.map(i=>(0,d.P)(()=>{const s=Qe(i,e,n);let r;if(function(t){return t&&xe(t.canActivate)}(s))r=_t(s.canActivate(e,t));else{if(!xe(s))throw new Error("Invalid CanActivate guard");r=_t(s(e,t))}return r.pipe(R())}));return(0,a.of)(s).pipe(Ae())}(t,e.route,n))),R(t=>!0!==t,!0))}(i,r,t,e):(0,a.of)(n)),(0,D.U)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,H.b)(t=>{if(Te(t.guardsResult)){const e=ht(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new X(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,v.h)(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),cn(t=>{if(t.guards.canActivateChecks.length)return(0,a.of)(t).pipe((0,H.b)(t=>{const e=new J(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,F.w)(t=>{let e=!1;return(0,a.of)(t).pipe((n=this.paramsInheritanceStrategy,i=this.ngModule.injector,(0,B.zg)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return(0,a.of)(t);let r=0;return(0,o.D)(s).pipe((0,G.b)(t=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return(0,a.of)({});const r={};return(0,o.D)(s).pipe((0,B.zg)(s=>function(t,e,n,i){const s=Qe(t,e,i);return _t(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe((0,H.b)(t=>{r[s]=t}))),S(1),(0,B.zg)(()=>Object.keys(r).length===s.length?(0,a.of)(r):p.E))}(t._resolve,t,e,i).pipe((0,D.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Jt(t,n).resolve),null)))}(t.route,e,n,i)),(0,H.b)(()=>r++),S(1),(0,B.zg)(e=>r===s.length?(0,a.of)(t):p.E))})),(0,H.b)({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var n,i}),(0,H.b)(t=>{const e=new tt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),cn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),(0,D.U)(t=>{const e=function(t,e,n){const i=oe(t,e._root,n?n._root:void 0);return new Qt(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,H.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,r=this.routeReuseStrategy,l=t=>this.triggerEvent(t),(0,D.U)(t=>(new ve(r,t.targetRouterState,t.currentRouterState,l).activate(s),t))),(0,H.b)({next(){n=!0},complete(){n=!0}}),(0,V.x)(()=>{n||i||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),(0,Z.K)(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=Te(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new $(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new W(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var s;return p.E}));var s,r,l}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Ee(t),this.config=t.map(Me),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(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,s){if(0===n.length)return ue(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new de(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return bt(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new de(n,e,i)}(n);if(r.toRoot())return ue(e.root,new At([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new pe(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new pe(t,t===e.root,0)}const i=le(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new pe(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?fe(o.segmentGroup,o.index,r.commands):me(o.segmentGroup,o.index,r.commands);return ue(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Te(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);let s=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(s=this.location.getState()),this.scheduleNavigation(i,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){if(this.disposed)return Promise.resolve(!1);const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,u;s?(l=s.resolve,c=s.reject,u=s.promise):u=new Promise((t,e)=>{l=t,c=e});const h=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?n&&n.\u0275routerPageId?n.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const n=new $(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(It),s.LFG(mn),s.LFG(i.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Sn=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new f.xQ,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:Tn(this.skipLocationChange),replaceUrl:Tn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Tn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(wn),s.Y36(Xt),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})(),xn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new f.xQ,this.subscription=t.events.subscribe(t=>{t instanceof Y&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,s){if(0!==t||e||n||i||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:Tn(this.skipLocationChange),replaceUrl:Tn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Tn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(wn),s.Y36(Xt),s.Y36(i.S$))},t.\u0275dir=s.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Ikx("href",e.href,s.LSH),s.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})();function Tn(t){return""===t||!!t}let Cn=(()=>{class t{constructor(t,e,n,i,s,r){this.router=t,this.element=e,this.renderer=n,this.cdr=i,this.link=s,this.linkWithHref=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof Y&&this.update()})}ngAfterContentInit(){(0,a.of)(this.links.changes,this.linksWithHrefs.changes,(0,a.of)(null)).pipe((0,U.J)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=(0,o.D)(e).pipe((0,U.J)()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){const e="paths"in this.routerLinkActiveOptions?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return n=>t.isActive(n.urlTree,e)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(wn),s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(s.sBO),s.Y36(Sn,8),s.Y36(xn,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,Sn,5),s.Suo(n,xn,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.links=t),s.iGM(t=s.CRH())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[s.TTD]}),t})(),An=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=i||lt,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new kn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(mn),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class kn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Xt?this.route:t===mn?this.childContexts:this.parent.get(t,e)}}class En{}class In{preload(t,e){return(0,a.of)(null)}}let On=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new dn(e,n,e=>t.triggerEvent(new et(e)),e=>t.triggerEvent(new nt(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,v.h)(t=>t instanceof Y),(0,G.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return(0,o.D)(n).pipe((0,U.J)(),(0,D.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,a.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,B.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(wn),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(En))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Mn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof z?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Y&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof at&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new at(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(wn),s.LFG(i.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Pn=new s.OlP("ROUTER_CONFIGURATION"),Ln=new s.OlP("ROUTER_FORROOT_GUARD"),Rn=[i.Ye,{provide:It,useClass:Ot},{provide:wn,useFactory:function(t,e,n,i,s,r,o,a={},l,c){const u=new wn(null,t,e,n,i,s,r,ft(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[It,mn,i.Ye,s.zs3,s.v3s,s.Sil,hn,Pn,[class{},new s.FiY],[class{},new s.FiY]]},mn,{provide:Xt,useFactory:function(t){return t.routerState.root},deps:[wn]},{provide:s.v3s,useClass:s.EAV},On,In,class{preload(t,e){return e().pipe((0,Z.K)(()=>(0,a.of)(null)))}},{provide:Pn,useValue:{enableTracing:!1}}];function Dn(){return new s.PXZ("Router",wn)}let Fn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Rn,Bn(e),{provide:Ln,useFactory:Gn,deps:[[wn,new s.FiY,new s.tp0]]},{provide:Pn,useValue:n||{}},{provide:i.S$,useFactory:Zn,deps:[i.lw,[new s.tBr(i.mr),new s.FiY],Pn]},{provide:Mn,useFactory:Nn,deps:[wn,i.EM,Pn]},{provide:En,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:In},{provide:s.PXZ,multi:!0,useFactory:Dn},[Hn,{provide:s.ip1,multi:!0,useFactory:qn,deps:[Hn]},{provide:Un,useFactory:Vn,deps:[Hn]},{provide:s.tb,multi:!0,useExisting:Un}]]}}static forChild(e){return{ngModule:t,providers:[Bn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ln,8),s.LFG(wn,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function Nn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Mn(t,e,n)}function Zn(t,e,n={}){return n.useHash?new i.Do(t,e):new i.b0(t,e)}function Gn(t){return"guarded"}function Bn(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:hn,multi:!0,useValue:t}]}let Hn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new f.xQ}appInitializer(){return this.injector.get(i.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(wn),i=this.injector.get(Pn);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,a.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Pn),n=this.injector.get(On),i=this.injector.get(Mn),r=this.injector.get(wn),o=this.injector.get(s.z2F);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function qn(t){return t.appInitializer.bind(t)}function Vn(t){return t.bootstrapListener.bind(t)}const Un=new s.OlP("Router Initializer")},7247:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s,Y:()=>r});var i=n(7716);const s=new i.OlP("REQUEST"),r=new i.OlP("RESPONSE")},6388:t=>{"use strict";function e(){var t=Object.create(null),e=0,n=0,i=0,s=!1;function r(e){i--,delete t[e]}this.put=function(e,n,o,a){if(s&&console.log("caching: %s = %j (@%s)",e,n,o),void 0!==o&&("number"!=typeof o||isNaN(o)||o<=0))throw new Error("Cache timeout must be a positive number");if(void 0!==a&&"function"!=typeof a)throw new Error("Cache timeout callback must be a function");var l=t[e];l?clearTimeout(l.timeout):i++;var c={value:n,expire:o+Date.now()};return isNaN(c.expire)||(c.timeout=setTimeout((function(){r(e),a&&a(e,n)}).bind(this),o)),t[e]=c,n},this.del=function(e){var n=!0,i=t[e];return i?(clearTimeout(i.timeout),!isNaN(i.expire)&&i.expire=Date.now())return s&&e++,o.value;s&&n++,i--,delete t[r]}else s&&n++;return null},this.size=function(){return i},this.memsize=function(){var e,n=0;for(e in t)n++;return n},this.debug=function(t){s=t},this.hits=function(){return e},this.misses=function(){return n},this.keys=function(){return Object.keys(t)},this.exportJson=function(){var e={};for(var n in t){var i=t[n];e[n]={value:i.value,expire:i.expire||"NaN"}}return JSON.stringify(e)},this.importJson=function(e,n){var i=JSON.parse(e),r=Date.now(),o=n&&n.skipDuplicates;for(var a in i)if(i.hasOwnProperty(a)){if(o&&t[a]){s&&console.log("Skipping duplicate imported key '%s'",a);continue}var l=i[a],c=l.expire-r;if(c<=0){this.del(a);continue}this.put(a,l.value,c=c>0?c:void 0)}return this.size()}}t.exports=new e,t.exports.Cache=e},1584:(t,e,n)=>{"use strict";n.d(e,{N:()=>r});var i=n(7716),s=n(8583);let r=(()=>{class t{constructor(t,e){this.document=t,this.platformId=e,this.documentIsAccessible=(0,s.NF)(this.platformId)}check(t){return!!this.documentIsAccessible&&(t=encodeURIComponent(t),this.getCookieRegExp(t).test(this.document.cookie))}get(t){if(this.documentIsAccessible&&this.check(t)){t=encodeURIComponent(t);const e=this.getCookieRegExp(t).exec(this.document.cookie);return this.safeDecodeURIComponent(e[1])}return""}getAll(){if(!this.documentIsAccessible)return{};const t={},e=this.document;return e.cookie&&""!==e.cookie&&e.cookie.split(";").forEach(e=>{const[n,i]=e.split("=");t[this.safeDecodeURIComponent(n.replace(/^ /,""))]=this.safeDecodeURIComponent(i)}),t}set(t,e,n,i,s,r,o){if(!this.documentIsAccessible)return;if("number"==typeof n||n instanceof Date||i||s||r||o)return void this.set(t,e,{expires:n,path:i,domain:s,secure:r,sameSite:o||"Lax"});let a=encodeURIComponent(t)+"="+encodeURIComponent(e)+";";const l=n||{};l.expires&&(a+="number"==typeof l.expires?"expires="+new Date((new Date).getTime()+1e3*l.expires*60*60*24).toUTCString()+";":"expires="+l.expires.toUTCString()+";"),l.path&&(a+="path="+l.path+";"),l.domain&&(a+="domain="+l.domain+";"),!1===l.secure&&"None"===l.sameSite&&(l.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${t} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),l.secure&&(a+="secure;"),l.sameSite||(l.sameSite="Lax"),a+="sameSite="+l.sameSite+";",this.document.cookie=a}delete(t,e,n,i,s="Lax"){if(!this.documentIsAccessible)return;const r=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(t,"",{expires:r,path:e,domain:n,secure:i,sameSite:s})}deleteAll(t,e,n,i="Lax"){if(!this.documentIsAccessible)return;const s=this.getAll();for(const r in s)s.hasOwnProperty(r)&&this.delete(r,t,e,n,i)}getCookieRegExp(t){const e=t.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+e+"|;\\s*"+e+")=(.*?)(?:;|$)","g")}safeDecodeURIComponent(t){try{return decodeURIComponent(t)}catch(e){return t}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.K0),i.LFG(i.Lbi))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(s.K0),(0,i.LFG)(i.Lbi))},token:t,providedIn:"root"}),t})()},1135:(t,e,n)=>{"use strict";n.d(e,{x0:()=>C});var i=n(7716),s=n(8583);const r={UKNOWN:"Unknown"},o={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:r.UKNOWN},a={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},l={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|\n SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n SM-T719|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},c={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:r.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},u=[c.PS4,c.CHROME_BOOK,c.MAC,c.DELL,c.ASUS,c.UNKNOWN],h={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:r.UKNOWN},d={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",ANDROID_9:"android-9",UNKNOWN:r.UKNOWN.toLowerCase()},p={WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},m=Object.assign(Object.assign(Object.assign(Object.assign({},a),l),p),{FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}}),f={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},g={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},b=(t,e)=>(t[e]=f[e],t),_=Object.keys(f).reduce(b,{}),y=(t,e)=>(t[o[e]]=g[e],t),v=Object.keys(g).reduce(y,{});var w=Object.freeze({__proto__:null,GENERAL:r,BROWSERS:o,MOBILES_RE:a,TABLETS_RE:l,DEVICES:c,DESKTOP_DEVICES:u,OS:h,OS_VERSIONS:d,OS_RE:p,BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},DEVICES_RE:m,OS_VERSIONS_RE_MAP:f,BROWSER_VERSIONS_RE_MAP:g,OS_VERSIONS_RE:_,BROWSER_VERSIONS_RE:v,"\u02750":b,"\u02751":y});class S{constructor(){}test(t,e){return"string"==typeof e&&(e=new RegExp(e)),e instanceof RegExp?e.test(t):e&&Array.isArray(e.and)?e.and.every(e=>this.test(t,e)):e&&Array.isArray(e.or)?e.or.some(e=>this.test(t,e)):!(!e||!e.not||this.test(t,e.not))}exec(t,e){return"string"==typeof e&&(e=new RegExp(e)),e instanceof RegExp?e.exec(t):e&&Array.isArray(e)?e.reduce((e,n)=>e||this.exec(t,n),null):null}}var x=(()=>(function(t){t.Mobile="mobile",t.Tablet="tablet",t.Desktop="desktop",t.Unknown="unknown"}(x||(x={})),x))(),T=(()=>(function(t){t.Portrait="portrait",t.Landscape="landscape"}(T||(T={})),T))();let C=(()=>{class t{constructor(t){this.platformId=t,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new S,this.deviceType="",this.orientation="",(0,s.NF)(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}setDeviceInfo(t=this.userAgent){t!==this.userAgent&&(this.userAgent=t);const e=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(e.forEach(e=>{this[e.prop]=Object.keys(w[e.const]).reduce((n,i)=>"device"===w[e.const][i]&&(0,s.NF)(this.platformId)&&(this.reTree.test(this.userAgent,l.iPad)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(n[w[e.const][i]]="iPad",Object):(n[w[e.const][i]]=this.reTree.test(t,w[`${e.const}_RE`][i]),n),{})}),e.forEach(t=>{this[t.prop]=Object.keys(w[t.const]).map(e=>w[t.const][e]).reduce((e,n)=>"device"===t.prop&&e===w[t.const].ANDROID?this[t.prop][n]?n:e:e===w[t.const].UNKNOWN&&this[t.prop][n]?n:e,w[t.const].UNKNOWN)}),this.browser_version="0",this.browser!==o.UNKNOWN){const e=this.reTree.exec(t,v[this.browser]);e&&(this.browser_version=e[1])}this.orientation="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?T.Landscape:T.Portrait:r.UKNOWN,this.deviceType=this.isTablet()?x.Tablet:this.isMobile(this.userAgent)?x.Mobile:this.isDesktop(this.userAgent)?x.Desktop:x.Unknown}getDeviceInfo(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}isMobile(t=this.userAgent){return!this.isTablet(t)&&!!Object.keys(a).find(e=>this.reTree.test(t,a[e]))}isTablet(t=this.userAgent){return!(!(0,s.NF)(this.platformId)||!(this.reTree.test(this.userAgent,l.iPad)||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys(l).find(e=>!!this.reTree.test(t,l[e]))}isDesktop(t=this.userAgent){return(this.device!==c.UNKNOWN||!this.isMobile(t)&&!this.isTablet(t))&&u.indexOf(this.device)>-1}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.Lbi))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(i.Lbi))},token:t,providedIn:"root"}),t})()},801:t=>{"use strict";function e(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}t.exports=function(t){return(t=t||{}).circles?function(t){var n=[],i=[];return t.proto?function t(r){if("object"!=typeof r||null===r)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return s(r,t);if(r instanceof Map)return new Map(s(Array.from(r),t));if(r instanceof Set)return new Set(s(Array.from(r),t));var o={};for(var a in n.push(r),i.push(o),r){var l=r[a];if("object"!=typeof l||null===l)o[a]=l;else if(l instanceof Date)o[a]=new Date(l);else if(l instanceof Map)o[a]=new Map(s(Array.from(l),t));else if(l instanceof Set)o[a]=new Set(s(Array.from(l),t));else if(ArrayBuffer.isView(l))o[a]=e(l);else{var c=n.indexOf(l);o[a]=-1!==c?i[c]:t(l)}}return n.pop(),i.pop(),o}:function t(r){if("object"!=typeof r||null===r)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return s(r,t);if(r instanceof Map)return new Map(s(Array.from(r),t));if(r instanceof Set)return new Set(s(Array.from(r),t));var o={};for(var a in n.push(r),i.push(o),r)if(!1!==Object.hasOwnProperty.call(r,a)){var l=r[a];if("object"!=typeof l||null===l)o[a]=l;else if(l instanceof Date)o[a]=new Date(l);else if(l instanceof Map)o[a]=new Map(s(Array.from(l),t));else if(l instanceof Set)o[a]=new Set(s(Array.from(l),t));else if(ArrayBuffer.isView(l))o[a]=e(l);else{var c=n.indexOf(l);o[a]=-1!==c?i[c]:t(l)}}return n.pop(),i.pop(),o};function s(t,s){for(var r=Object.keys(t),o=new Array(r.length),a=0;a{"use strict";n.d(e,{X:()=>r});var i=n(9765),s=n(7971);class r extends i.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(t){super.next(this._value=t)}}},3098:(t,e,n)=>{"use strict";n.d(e,{P:()=>o});var i=n(9193),s=n(5917),r=n(205);class o{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,r._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new o("N",t):o.undefinedValueNotification}static createError(t){return new o("E",void 0,t)}static createComplete(){return o.completeNotification}}o.completeNotification=new o("C"),o.undefinedValueNotification=new o("N",void 0)},7574:(t,e,n)=>{"use strict";n.d(e,{y:()=>c});var i=n(7393),s=n(9181),r=n(6490),o=n(6554),a=n(4487),l=n(2494);let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof i.L)return t;if(t[s.b])return t[s.b]()}return t||e||n?new i.L(t,e,n):new i.L(r.c)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof i.L?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.L](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=l.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},6490:(t,e,n)=>{"use strict";n.d(e,{c:()=>r});var i=n(2494),s=n(4449);const r={closed:!0,next(t){},error(t){if(i.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},9765:(t,e,n)=>{"use strict";n.d(e,{Yc:()=>c,xQ:()=>u});var i=n(7574),s=n(7393),r=n(5319),o=n(7971),a=n(8858),l=n(9181);class c extends s.L{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends i.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.b](){return new c(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.N;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;snew h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):r.w.EMPTY}}},8858:(t,e,n)=>{"use strict";n.d(e,{W:()=>s});var i=n(5319);class s extends i.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},7393:(t,e,n)=>{"use strict";n.d(e,{L:()=>c});var i=n(9105),s=n(6490),r=n(5319),o=n(9181),a=n(2494),l=n(4449);class c extends r.w{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.b](){return this}static create(t,e,n){const i=new c(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends c{constructor(t,e,n,r){let o;super(),this._parentSubscriber=t;let a=this;(0,i.m)(e)?o=e:e&&(o=e.next,n=e.error,r=e.complete,e!==s.c&&(a=Object.create(e),(0,i.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.v;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,l.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,l.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw n;(0,l.z)(n)}}__tryOrSetError(t,e,n){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):((0,l.z)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},5319:(t,e,n)=>{"use strict";n.d(e,{w:()=>a});var i=n(9796),s=n(1555),r=n(9105);const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class a{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof a)e.remove(this);else if(null!==e)for(let i=0;it.concat(e instanceof o?e.errors:e),[])}a.EMPTY=((l=new a).closed=!0,l)},2494:(t,e,n)=>{"use strict";n.d(e,{v:()=>s});let i=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},5345:(t,e,n)=>{"use strict";n.d(e,{IY:()=>o,Ds:()=>a,ft:()=>l});var i=n(7393),s=n(7574),r=n(7444);class o extends i.L{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends i.L{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function l(t,e){if(e.closed)return;if(t instanceof s.y)return t.subscribe(e);let n;try{n=(0,r.s)(t)(e)}catch(i){e.error(i)}return n}},2441:(t,e,n)=>{"use strict";n.d(e,{c:()=>a,N:()=>l});var i=n(9765),s=n(7574),r=n(5319),o=n(1307);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new r.w,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed&&(this._connection=null,t=r.w.EMPTY)),t}refCount(){return(0,o.x)()(this)}}const l=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class c extends i.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},739:(t,e,n)=>{"use strict";n.d(e,{aj:()=>p});var i=n(4869),s=n(9796),r=n(7393);class o extends r.L{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class a extends r.L{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var l=n(7444),c=n(7574);function u(t,e,n,i,s=new a(t,n,i)){if(!s.closed)return e instanceof c.y?e.subscribe(s):(0,l.s)(e)(s)}var h=n(6693);const d={};function p(...t){let e,n;return(0,i.K)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,h.n)(t,n).lift(new m(e))}class m{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new f(t,this.resultSelector))}}class f extends o{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(d),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{"use strict";n.d(e,{z:()=>r});var i=n(5917),s=n(3282);function r(...t){return(0,s.J)(1)((0,i.of)(...t))}},1439:(t,e,n)=>{"use strict";n.d(e,{P:()=>o});var i=n(7574),s=n(4402),r=n(9193);function o(t){return new i.y(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?(0,s.D)(n):(0,r.c)()).subscribe(e)})}},9193:(t,e,n)=>{"use strict";n.d(e,{E:()=>s,c:()=>r});var i=n(7574);const s=new i.y(t=>t.complete());function r(t){return t?function(t){return new i.y(e=>t.schedule(()=>e.complete()))}(t):s}},5758:(t,e,n)=>{"use strict";n.d(e,{D:()=>l});var i=n(7574),s=n(9796),r=n(8002),o=n(1555),a=n(4402);function l(...t){if(1===t.length){const e=t[0];if((0,s.k)(e))return c(e,null);if((0,o.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&(0,s.k)(t[0])?t[0]:t,null).pipe((0,r.U)(t=>e(...t)))}return c(t,null)}function c(t,e){return new i.y(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let l=0;l{u||(u=!0,o++),s[l]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&u||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}},4402:(t,e,n)=>{"use strict";n.d(e,{D:()=>h});var i=n(7574),s=n(7444),r=n(5319),o=n(6554),a=n(4087),l=n(377),c=n(4072),u=n(9489);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.L]}(t))return function(t,e){return new i.y(n=>{const i=new r.w;return i.add(e.schedule(()=>{const s=t[o.L]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if((0,c.t)(t))return function(t,e){return new i.y(n=>{const i=new r.w;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if((0,u.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[l.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.y(n=>{const i=new r.w;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[l.hZ](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.y?t:new i.y((0,s.s)(t))}},6693:(t,e,n)=>{"use strict";n.d(e,{n:()=>o});var i=n(7574),s=n(5015),r=n(4087);function o(t,e){return e?(0,r.r)(t,e):new i.y((0,s.V)(t))}},2759:(t,e,n)=>{"use strict";n.d(e,{R:()=>a});var i=n(7574),s=n(9796),r=n(9105),o=n(8002);function a(t,e,n,c){return(0,r.m)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe((0,o.U)(t=>(0,s.k)(t)?c(...t):c(t))):new i.y(i=>{l(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function l(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r{"use strict";n.d(e,{T:()=>a});var i=n(7574),s=n(4869),r=n(3282),o=n(6693);function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return(0,s.K)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.y?t[0]:(0,r.J)(e)((0,o.n)(t,n))}},5917:(t,e,n)=>{"use strict";n.d(e,{of:()=>o});var i=n(4869),s=n(6693),r=n(4087);function o(...t){let e=t[t.length-1];return(0,i.K)(e)?(t.pop(),(0,r.r)(t,e)):(0,s.n)(t)}},205:(t,e,n)=>{"use strict";n.d(e,{_:()=>s});var i=n(7574);function s(t,e){return new i.y(e?n=>e.schedule(r,0,{error:t,subscriber:n}):e=>e.error(t))}function r({error:t,subscriber:e}){e.error(t)}},628:(t,e,n)=>{"use strict";n.d(e,{e:()=>h});var i=n(3637),s=n(5345);class r{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new o(t,this.durationSelector))}}class o extends s.Ds{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=(0,s.ft)(n,new s.IY(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n(7574),l=n(6561),c=n(4869);function u(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function h(t,e=i.P){return n=()=>function(t=0,e,n){let s=-1;return(0,l.k)(e)?s=Number(e)<1?1:Number(e):(0,c.K)(e)&&(n=e),(0,c.K)(n)||(n=i.P),new a.y(e=>{const i=(0,l.k)(t)?t:+t-n.now();return n.schedule(u,i,{index:0,period:s,subscriber:e})})}(t,e),function(t){return t.lift(new r(n))};var n}},5304:(t,e,n)=>{"use strict";n.d(e,{K:()=>s});var i=n(5345);function s(t){return function(e){const n=new r(t),i=e.lift(n);return n.caught=i}}class r{constructor(t){this.selector=t}call(t,e){return e.subscribe(new o(t,this.selector,this.caught))}}class o extends i.Ds{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const s=new i.IY(this);this.add(s);const r=(0,i.ft)(n,s);r!==s&&this.add(r)}}}},4612:(t,e,n)=>{"use strict";n.d(e,{b:()=>s});var i=n(9773);function s(t,e){return(0,i.zg)(t,e,1)}},4395:(t,e,n)=>{"use strict";n.d(e,{b:()=>r});var i=n(7393),s=n(3637);function r(t,e=s.P){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.L{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},1289:(t,e,n)=>{"use strict";n.d(e,{g:()=>o});var i=n(3637),s=n(7393),r=n(3098);function o(t,e=i.P){var n;const s=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new a(s,e))}class a{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}class l extends s.L{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(l.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new c(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(r.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(r.P.createComplete()),this.unsubscribe()}}class c{constructor(t,e){this.time=t,this.notification=e}}},7519:(t,e,n)=>{"use strict";n.d(e,{x:()=>s});var i=n(7393);function s(t,e){return n=>n.lift(new r(t,e))}class r{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends i.L{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},5435:(t,e,n)=>{"use strict";n.d(e,{h:()=>s});var i=n(7393);function s(t,e){return function(n){return n.lift(new r(t,e))}}class r{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},8939:(t,e,n)=>{"use strict";n.d(e,{x:()=>r});var i=n(7393),s=n(5319);function r(t){return e=>e.lift(new o(t))}class o{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends i.L{constructor(t,e){super(t),this.add(new s.w(e))}}},8002:(t,e,n)=>{"use strict";n.d(e,{U:()=>s});var i=n(7393);function s(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new r(t,e))}}class r{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},3282:(t,e,n)=>{"use strict";n.d(e,{J:()=>r});var i=n(9773),s=n(4487);function r(t=Number.POSITIVE_INFINITY){return(0,i.zg)(s.y,t)}},9773:(t,e,n)=>{"use strict";n.d(e,{zg:()=>o});var i=n(8002),s=n(4402),r=n(5345);function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(o((n,r)=>(0,s.D)(t(n,r)).pipe((0,i.U)((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends r.Ds{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4458:(t,e,n)=>{"use strict";n.d(e,{O:()=>s});var i=n(2441);function s(t,e){return function(n){let s;if(s="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new r(s,e));const o=Object.create(n,i.N);return o.source=n,o.subjectFactory=s,o}}class r{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:n}=this,i=this.subjectFactory(),s=n(i).subscribe(t);return s.add(e.subscribe(i)),s}}},1307:(t,e,n)=>{"use strict";n.d(e,{x:()=>s});var i=n(7393);function s(){return function(t){return t.lift(new r(t))}}class r{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new o(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class o extends i.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}},8345:(t,e,n)=>{"use strict";n.d(e,{B:()=>a});var i=n(4458),s=n(1307),r=n(9765);function o(){return new r.xQ}function a(){return t=>(0,s.x)()((0,i.O)(o)(t))}},3653:(t,e,n)=>{"use strict";n.d(e,{T:()=>s});var i=n(7393);function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.total=t}call(t,e){return e.subscribe(new o(t,this.total))}}class o extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},9761:(t,e,n)=>{"use strict";n.d(e,{O:()=>r});var i=n(8071),s=n(4869);function r(...t){const e=t[t.length-1];return(0,s.K)(e)?(t.pop(),n=>(0,i.z)(t,n,e)):e=>(0,i.z)(t,e)}},3190:(t,e,n)=>{"use strict";n.d(e,{w:()=>o});var i=n(8002),s=n(4402),r=n(5345);function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,r)=>(0,s.D)(t(n,r)).pipe((0,i.U)((t,i)=>e(n,t,r,i))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends r.Ds{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new r.IY(this),i=this.destination;i.add(n),this.innerSubscription=(0,r.ft)(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},5257:(t,e,n)=>{"use strict";n.d(e,{q:()=>o});var i=n(7393),s=n(7108),r=n(9193);function o(t){return e=>0===t?(0,r.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},6782:(t,e,n)=>{"use strict";n.d(e,{R:()=>s});var i=n(5345);function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.notifier=t}call(t,e){const n=new o(t),s=(0,i.ft)(this.notifier,new i.IY(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class o extends i.Ds{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},8307:(t,e,n)=>{"use strict";n.d(e,{b:()=>o});var i=n(7393),s=n(8640),r=n(9105);function o(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends i.L{constructor(t,e,n,i){super(t),this._tapNext=s.Z,this._tapError=s.Z,this._tapComplete=s.Z,this._tapError=n||s.Z,this._tapComplete=i||s.Z,(0,r.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s.Z,this._tapError=e.error||s.Z,this._tapComplete=e.complete||s.Z)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},4087:(t,e,n)=>{"use strict";n.d(e,{r:()=>r});var i=n(7574),s=n(5319);function r(t,e){return new i.y(n=>{const i=new s.w;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},6465:(t,e,n)=>{"use strict";n.d(e,{o:()=>r});var i=n(5319);class s extends i.w{constructor(t,e){super()}schedule(t,e=0){return this}}class r extends s{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},6102:(t,e,n)=>{"use strict";n.d(e,{v:()=>s});let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class s extends i{constructor(t,e=i.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},4581:(t,e,n)=>{"use strict";n.d(e,{E:()=>u});let i=1;const s=Promise.resolve(),r={};function o(t){return t in r&&(delete r[t],!0)}const a={setImmediate(t){const e=i++;return r[e]=!0,s.then(()=>o(e)&&t()),e},clearImmediate(t){o(t)}};var l=n(6465),c=n(6102);const u=new class extends c.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}})},3637:(t,e,n)=>{"use strict";n.d(e,{P:()=>s});var i=n(6465);const s=new(n(6102).v)(i.o)},377:(t,e,n)=>{"use strict";n.d(e,{hZ:()=>i});const i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:(t,e,n)=>{"use strict";n.d(e,{L:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:(t,e,n)=>{"use strict";n.d(e,{b:()=>i});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:(t,e,n)=>{"use strict";n.d(e,{W:()=>i});const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},7971:(t,e,n)=>{"use strict";n.d(e,{N:()=>i});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4449:(t,e,n)=>{"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,{z:()=>i})},4487:(t,e,n)=>{"use strict";function i(t){return t}n.d(e,{y:()=>i})},9796:(t,e,n)=>{"use strict";n.d(e,{k:()=>i});const i=Array.isArray||(t=>t&&"number"==typeof t.length)},9489:(t,e,n)=>{"use strict";n.d(e,{z:()=>i});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},9105:(t,e,n)=>{"use strict";function i(t){return"function"==typeof t}n.d(e,{m:()=>i})},6561:(t,e,n)=>{"use strict";n.d(e,{k:()=>s});var i=n(9796);function s(t){return!(0,i.k)(t)&&t-parseFloat(t)+1>=0}},1555:(t,e,n)=>{"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,{K:()=>i})},5639:(t,e,n)=>{"use strict";n.d(e,{b:()=>s});var i=n(7574);function s(t){return!!t&&(t instanceof i.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},4072:(t,e,n)=>{"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:()=>i})},4869:(t,e,n)=>{"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,{K:()=>i})},8640:(t,e,n)=>{"use strict";function i(){}n.d(e,{Z:()=>i})},7444:(t,e,n)=>{"use strict";n.d(e,{s:()=>u});var i=n(5015),s=n(4449),r=n(377),o=n(6554),a=n(9489),l=n(4072),c=n(1555);const u=t=>{if(t&&"function"==typeof t[o.L])return u=t,t=>{const e=u[o.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,i.V)(t);if((0,l.t)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.z),t);if(t&&"function"==typeof t[r.hZ])return e=t,t=>{const n=e[r.hZ]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=(0,c.K)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,u}},5015:(t,e,n)=>{"use strict";n.d(e,{V:()=>i});const i=t=>e=>{for(let n=0,i=t.length;n":"greater","|":"or","\xa2":"cent","\xa3":"pound","\xa4":"currency","\xa5":"yen","\xa9":"(c)","\xaa":"a","\xae":"(r)","\xba":"o","\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xc6":"AE","\xc7":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xde":"TH","\xdf":"ss","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xe6":"ae","\xe7":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xfe":"th","\xff":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010c":"C","\u010d":"c","\u010e":"D","\u010f":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011a":"E","\u011b":"e","\u011e":"G","\u011f":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012a":"i","\u012b":"i","\u012e":"I","\u012f":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013b":"L","\u013c":"l","\u013d":"L","\u013e":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014c":"O","\u014d":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015a":"S","\u015b":"s","\u015e":"S","\u015f":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016a":"u","\u016b":"u","\u016e":"U","\u016f":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017a":"z","\u017b":"Z","\u017c":"z","\u017d":"Z","\u017e":"z","\u018f":"E","\u0192":"f","\u01a0":"O","\u01a1":"o","\u01af":"U","\u01b0":"u","\u01c8":"LJ","\u01c9":"lj","\u01cb":"NJ","\u01cc":"nj","\u0218":"S","\u0219":"s","\u021a":"T","\u021b":"t","\u0259":"e","\u02da":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038a":"I","\u038c":"O","\u038e":"Y","\u038f":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039a":"K","\u039b":"L","\u039c":"M","\u039d":"N","\u039e":"3","\u039f":"O","\u03a0":"P","\u03a1":"R","\u03a3":"S","\u03a4":"T","\u03a5":"Y","\u03a6":"F","\u03a7":"X","\u03a8":"PS","\u03a9":"W","\u03aa":"I","\u03ab":"Y","\u03ac":"a","\u03ad":"e","\u03ae":"h","\u03af":"i","\u03b0":"y","\u03b1":"a","\u03b2":"b","\u03b3":"g","\u03b4":"d","\u03b5":"e","\u03b6":"z","\u03b7":"h","\u03b8":"8","\u03b9":"i","\u03ba":"k","\u03bb":"l","\u03bc":"m","\u03bd":"n","\u03be":"3","\u03bf":"o","\u03c0":"p","\u03c1":"r","\u03c2":"s","\u03c3":"s","\u03c4":"t","\u03c5":"y","\u03c6":"f","\u03c7":"x","\u03c8":"ps","\u03c9":"w","\u03ca":"i","\u03cb":"y","\u03cc":"o","\u03cd":"y","\u03ce":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040a":"NJ","\u040b":"C","\u040f":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041a":"K","\u041b":"L","\u041c":"M","\u041d":"N","\u041e":"O","\u041f":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042a":"U","\u042b":"Y","\u042c":"","\u042d":"E","\u042e":"Yu","\u042f":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043a":"k","\u043b":"l","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044a":"u","\u044b":"y","\u044c":"","\u044d":"e","\u044e":"yu","\u044f":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045a":"nj","\u045b":"c","\u045d":"u","\u045f":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049a":"KH","\u049b":"kh","\u04a2":"NG","\u04a3":"ng","\u04ae":"UE","\u04af":"ue","\u04b0":"U","\u04b1":"u","\u04ba":"H","\u04bb":"h","\u04d8":"AE","\u04d9":"ae","\u04e8":"OE","\u04e9":"oe","\u0e3f":"baht","\u10d0":"a","\u10d1":"b","\u10d2":"g","\u10d3":"d","\u10d4":"e","\u10d5":"v","\u10d6":"z","\u10d7":"t","\u10d8":"i","\u10d9":"k","\u10da":"l","\u10db":"m","\u10dc":"n","\u10dd":"o","\u10de":"p","\u10df":"zh","\u10e0":"r","\u10e1":"s","\u10e2":"t","\u10e3":"u","\u10e4":"f","\u10e5":"k","\u10e6":"gh","\u10e7":"q","\u10e8":"sh","\u10e9":"ch","\u10ea":"ts","\u10eb":"dz","\u10ec":"ts","\u10ed":"ch","\u10ee":"kh","\u10ef":"j","\u10f0":"h","\u1e80":"W","\u1e81":"w","\u1e82":"W","\u1e83":"w","\u1e84":"W","\u1e85":"w","\u1e9e":"SS","\u1ea0":"A","\u1ea1":"a","\u1ea2":"A","\u1ea3":"a","\u1ea4":"A","\u1ea5":"a","\u1ea6":"A","\u1ea7":"a","\u1ea8":"A","\u1ea9":"a","\u1eaa":"A","\u1eab":"a","\u1eac":"A","\u1ead":"a","\u1eae":"A","\u1eaf":"a","\u1eb0":"A","\u1eb1":"a","\u1eb2":"A","\u1eb3":"a","\u1eb4":"A","\u1eb5":"a","\u1eb6":"A","\u1eb7":"a","\u1eb8":"E","\u1eb9":"e","\u1eba":"E","\u1ebb":"e","\u1ebc":"E","\u1ebd":"e","\u1ebe":"E","\u1ebf":"e","\u1ec0":"E","\u1ec1":"e","\u1ec2":"E","\u1ec3":"e","\u1ec4":"E","\u1ec5":"e","\u1ec6":"E","\u1ec7":"e","\u1ec8":"I","\u1ec9":"i","\u1eca":"I","\u1ecb":"i","\u1ecc":"O","\u1ecd":"o","\u1ece":"O","\u1ecf":"o","\u1ed0":"O","\u1ed1":"o","\u1ed2":"O","\u1ed3":"o","\u1ed4":"O","\u1ed5":"o","\u1ed6":"O","\u1ed7":"o","\u1ed8":"O","\u1ed9":"o","\u1eda":"O","\u1edb":"o","\u1edc":"O","\u1edd":"o","\u1ede":"O","\u1edf":"o","\u1ee0":"O","\u1ee1":"o","\u1ee2":"O","\u1ee3":"o","\u1ee4":"U","\u1ee5":"u","\u1ee6":"U","\u1ee7":"u","\u1ee8":"U","\u1ee9":"u","\u1eea":"U","\u1eeb":"u","\u1eec":"U","\u1eed":"u","\u1eee":"U","\u1eef":"u","\u1ef0":"U","\u1ef1":"u","\u1ef2":"Y","\u1ef3":"y","\u1ef4":"Y","\u1ef5":"y","\u1ef6":"Y","\u1ef7":"y","\u1ef8":"Y","\u1ef9":"y","\u2013":"-","\u2018":"\'","\u2019":"\'","\u201c":"\\"","\u201d":"\\"","\u201e":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20a0":"ecu","\u20a2":"cruzeiro","\u20a3":"french franc","\u20a4":"lira","\u20a5":"mill","\u20a6":"naira","\u20a7":"peseta","\u20a8":"rupee","\u20a9":"won","\u20aa":"new shequel","\u20ab":"dong","\u20ac":"euro","\u20ad":"kip","\u20ae":"tugrik","\u20af":"drachma","\u20b0":"penny","\u20b1":"peso","\u20b2":"guarani","\u20b3":"austral","\u20b4":"hryvnia","\u20b5":"cedi","\u20b8":"kazakhstani tenge","\u20b9":"indian rupee","\u20ba":"turkish lira","\u20bd":"russian ruble","\u20bf":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221e":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\ufdfc":"rial"}'),e=JSON.parse('{"de":{"\xc4":"AE","\xe4":"ae","\xd6":"OE","\xf6":"oe","\xdc":"UE","\xfc":"ue","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221e":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xa2":"centavos","\xa3":"libras","\xa4":"moneda","\u20a3":"francos","\u2211":"suma","\u221e":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xa2":"centime","\xa3":"livre","\xa4":"devise","\u20a3":"franc","\u2211":"somme","\u221e":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xa2":"centavo","\u2211":"soma","\xa3":"libra","\u221e":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"}}');function n(n,i){if("string"!=typeof n)throw new Error("slugify: string argument expected");var s=e[(i="string"==typeof i?{replacement:i}:i||{}).locale]||{},r=void 0===i.replacement?"-":i.replacement,o=n.normalize().split("").reduce(function(e,n){return e+(s[n]||t[n]||(n===r?" ":n)).replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return i.strict&&(o=o.replace(/[^A-Za-z0-9\s]/g,"")),o=o.trim().replace(/\s+/g,r),i.lower&&(o=o.toLowerCase()),o}return n.extend=function(e){Object.assign(t,e)},n})(),t.exports.default=e()},4677:(t,e,n)=>{"use strict";n.d(e,{Y:()=>m});var i=n(2340),s=n(801),r=n(6215),o=n(9765),a=n(8002),l=n(7957),c=n(7716),u=n(4655),h=n(1841),d=n(4080);const p=s();let m=(()=>{class t{constructor(t,e,s,a){this.router=t,this.http=e,this.route=s,this.logger=a,this.apiBaseUrl=i.N.apiBaseUrl,this.oficinaIP=i.N.oficinaIP,this.dataStore={account:{jwtToken:null},ip:"--",isOficina:!1},this.accountSubject$=new r.X({jwtToken:null}),this.isLoggedInSubject$=new r.X({value:!1}),this.accountFRTSubject$=new o.xQ,this.account$=this.accountSubject$.asObservable(),this.isLoggedIn$=this.isLoggedInSubject$.asObservable(),this.accountFRT$=this.accountFRTSubject$.asObservable(),this.isOficinaSubject$=new r.X(!1),this.isOficina$=this.isOficinaSubject$.asObservable(),this.worker=null,"undefined"!=typeof Worker&&(this.worker=new Worker(n.tu(new URL(n.p+n.u(268),n.b))),this.worker.onmessage=({data:t})=>{this.logger.info("shop ws response",t),"refreshToken"==t.action&&this.refrestokenWResponse(t.data),"brwIp"==t.action&&this.brwIpWResponse(t.data)})}get accountValue(){return p(this.dataStore.account)}get accountId(){return this.dataStore.account&&this.dataStore.account.jwtToken?this.dataStore.account.id:""}get clienthash(){if(this.dataStore.account&&this.dataStore.account.jwtToken){let e=this.dataStore.account.email;if(e&&""!=e&&null!=e)try{return l.d.md5(e.toLocaleLowerCase())}catch(t){this.logger.error("md5",t)}}return""}get isLoggedIn(){return!(!this.dataStore.account||!this.dataStore.account.jwtToken)}set accountValue(t){this.dataStore.account=t,this.setIsoficina(),this.accountSubject$.next(p(this.dataStore.account)),this.isLoggedInSubject$.next(p({value:this.isLoggedIn}))}setIsoficina(){var t,e=this.oficinaIP.indexOf(this.dataStore.ip)>-1,n="Admin"==(null===(t=this.dataStore.account)||void 0===t?void 0:t.role);this.dataStore.isOficina=e||n,this.isOficinaSubject$.next(this.dataStore.isOficina)}get ipValue(){return this.dataStore.ip}get isOficinaValue(){return this.dataStore.isOficina}initRefrestoken(){if(null!=this.worker){let t=this.apiBaseUrl;this.worker.postMessage({action:"refreshToken",apiBaseUrl:t}),this.worker.postMessage({action:"brwIp",apiBaseUrl:t})}else this.refreshToken().subscribe()}logout(t){this.http.post(this.apiBaseUrl+"api/account/revoke-token",{},{withCredentials:!0}).subscribe(),this.stopRefreshTokenTimer(),this.dataStore.account={jwtToken:null},this.setIsoficina(),this.accountSubject$.next(p(this.dataStore.account)),this.isLoggedInSubject$.next({value:!1});const e=t||"/";t.indexOf("/cuenta/")>-1&&this.router.navigate([e],{fragment:"signOut"})}refreshToken(){return this.http.post(this.apiBaseUrl+"api/account/refresh-token",{},{withCredentials:!0}).pipe((0,a.U)(t=>{t&&null!=t?(null==this.dataStore.account.email||""==this.dataStore.account.email||t.email!==this.dataStore.account.email?(this.dataStore.account=t,this.setIsoficina(),this.accountSubject$.next(p(this.dataStore.account)),this.isLoggedInSubject$.next(p({value:this.isLoggedIn}))):this.dataStore.account=t,this.startRefreshTokenTimer()):(this.dataStore.account={jwtToken:null},this.setIsoficina(),this.accountSubject$.next(p(this.dataStore.account)),this.isLoggedInSubject$.next(p({value:this.isLoggedIn})),this.stopRefreshTokenTimer())}))}refrestokenWResponse(t){t&&null!=t?(null==this.dataStore.account.email||""==this.dataStore.account.email||t.email!==this.dataStore.account.email?(this.dataStore.account=t,this.setIsoficina(),this.accountSubject$.next(p(this.dataStore.account)),this.isLoggedInSubject$.next(p({value:this.isLoggedIn})),this.accountFRTSubject$.next(p(this.dataStore.account))):this.dataStore.account=t,this.startRefreshTokenTimer()):(this.dataStore.account={jwtToken:null},this.setIsoficina(),this.accountSubject$.next(p(this.dataStore.account)),this.isLoggedInSubject$.next({value:!1}),this.stopRefreshTokenTimer())}brwIpWResponse(t){t&&null!=t?(this.dataStore.ip=t.ip&&null!=t.ip?"#"+t.ip+"#":"--",this.setIsoficina()):(this.dataStore.ip="--",this.setIsoficina());const e=this.route.snapshot.queryParams.utm_source;if(e&&null!=e&&"propelbon"==e){const t=this.route.snapshot.queryParams.click_id,e=this.route.snapshot.queryParams.iclid;if(t&&null!=t&&""!=t&&e&&null!=e&&""!=e){const n=JSON.stringify({click_id:t,iclid:e});sessionStorage.setItem("propelbon",n),this.logger.info("SS propelbon",sessionStorage.getItem("propelbon"))}}}startRefreshTokenTimer(){if(this.dataStore.account.jwtToken){const t=JSON.parse(atob(this.dataStore.account.jwtToken.split(".")[1])),e=new Date(1e3*t.exp).getTime()-Date.now()-6e4;this.refreshTokenTimeout=setTimeout(()=>this.refreshToken().subscribe(),e)}}stopRefreshTokenTimer(){clearTimeout(this.refreshTokenTimeout)}getSecurityHeader(){}}return t.\u0275fac=function(e){return new(e||t)(c.LFG(u.F0),c.LFG(h.eN),c.LFG(u.gz),c.LFG(d.m))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},4080:(t,e,n)=>{"use strict";n.d(e,{m:()=>r});var i=n(2340),s=n(7716);let r=(()=>{class t{constructor(){}log(t,e){i.N.production||(console.log("%c"+this.format("LOG",t),"color:"+this.colorLog("LOG")),void 0!==e&&console.log(e))}info(t,e){i.N.production||(console.log("%c"+this.format("INFO",t),"color:"+this.colorLog("INFO")),void 0!==e&&console.log(e))}warn(t,e){i.N.production||(void 0!==e?(console.log("%c"+this.format("WARN",t),"color:"+this.colorLog("WARN")),console.warn(e)):console.warn("%c"+this.format("WARN",t),"color:"+this.colorLog("WARN")))}error(t,e){i.N.production||(void 0!==e?(console.log("%c"+this.format("ERROR",t),"color:"+this.colorLog("ERROR")),console.error(e)):console.error("%c"+this.format("ERROR",t),"color:"+this.colorLog("ERROR")))}table(t,e){i.N.production||(console.log("%c"+this.format("INFO",t),"color:"+this.colorLog("INFO")),void 0!==e&&console.table(e))}format(t,e){return this.formatDate(new Date)+" "+t+" - "+e}clear(){this.getConsole().clear()}formatDate(t){function e(t){return t<10?"0"+t:t}return t.getFullYear()+"-"+e(t.getMonth()+1)+"-"+e(t.getDate())+" "+e(t.getHours())+":"+e(t.getMinutes())+":"+e(t.getSeconds())}getConsole(){return console}colorLog(t){let e="black";switch(t){case"LOG":e="Green";break;case"INFO":e="DodgerBlue";break;case"ERROR":e="Red";break;case"WARN":e="Orange";break;default:e=e}return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},8145:(t,e,n)=>{"use strict";n.d(e,{h:()=>S});var i=n(7716),s=n(2340),r=n(801),o=n(9075),a=n(8583),l=n(7957),c=n(2939),u=n(6215),h=n(8002),d=n(205),p=n(9765),m=n(5257),f=n(1841),g=n(4080),b=n(4655),_=n(1584),y=n(4677),v=n(6270);const w=r();let S=(()=>{class t{constructor(t,e,i,r,o,a,l,c){this.http=t,this.logger=e,this.router=i,this.state=r,this.cookieService=o,this.accountCoreService=a,this.universalDeviceDetectorService=l,this.platformId=c,this.apiBaseUrl=s.N.apiBaseUrl,this.homePageInfo={uri:"/",title:"Muebles PortobelloStreet.es | Calidad al Mejor Precio y Muebles a Medida",description:"Tienda de muebles Portobellostreet.es\xae | Muebles de calidad al mejor precio | Facilidades de pago | Enviamos a todo el mundo",keywords:"muebles, tienda de muebles online, tienda de muebles, muebles online, venta de muebles online,muebles colonial, vintage, clasico, madrid",image:"https://portobellostreet.b-cdn.net/assets/images/logo-portobellostreet-es.png",seoMetadata:null,breadcrumbs:[],index:!0,ucanonical:"/",structuredData:null,private:!1},this.dataStore={arSnapshot:null,mainMenu:[],footerMenu:[],pageInfo:null,subsForm:{email:null,subsForm:{errors:[],loading:!1,state:null,message:null}},cartelas:[]},this.mainNav="nav-menu",this.footerMenuSubject$=new u.X([]),this.mainMenuSubject$=new u.X([]),this.pageInfoSubject$=new p.xQ,this.cartelasSubject$=new u.X([]),this.subsFormSubject$=new u.X(w(this.dataStore.subsForm)),this.showcpSubject$=new u.X(!1),this.worker=null,"undefined"!=typeof Worker&&(this.worker=new Worker(n.tu(new URL(n.p+n.u(647),n.b))),this.worker.onmessage=({data:t})=>{this.logger.info("shop ws response",t),"initcp"==t.action&&this.initcpww()})}pageInfo(){return this.pageInfoSubject$.asObservable()}cartelas(){return this.cartelasSubject$.asObservable()}showcp(){return this.showcpSubject$.asObservable()}setpageInfo(t){this.dataStore.pageInfo=t,(0,a.NF)(this.platformId)&&this.logger.info("setpageInfo",t),this.pageInfoSubject$.next(this.dataStore.pageInfo)}setSnapshot(t){this.dataStore.arSnapshot=t}getSnapshot(){return this.dataStore.arSnapshot}fromSSRLoad(){return null==this.dataStore.arSnapshot||!this.dataStore.arSnapshot.component||null==this.dataStore.arSnapshot.component}restorepageInfo(){this.setpageInfo(this.homePageInfo)}setPagInfoNodePage(t){this.setPagInfoFullPage(c.T.getFullPage(t))}setPagInfoFullPage(t){var e,n;(0,a.NF)(this.platformId)&&this.logger.info("setPagInfoFullPage",t);const i=t.url,s={uri:i,title:t.seoMetadata.metaTitle,description:t.seoMetadata.metadescription,keywords:t.seoMetadata.metaKeywords,seoMetadata:t.seoMetadata,image:null!==(n=null===(e=t.seoMetadata)||void 0===e?void 0:e.image)&&void 0!==n?n:"https://www.portobellostreet.es/mercurio_imagenes/logo-portobellostreet.png",breadcrumbs:[{url:i,description:null==t.seoMetadata||null==t.seoMetadata.metadescription?null:t.seoMetadata.metadescription,title:t.title}]};"/"===i&&(s.breadcrumbs=[],this.homePageInfo=w(s)),this.setpageInfo(s)}setPagInfoNavNode(t){var e,n,i,s,r,o,l;(0,a.NF)(this.platformId)&&this.logger.info("setPagInfoNavNode",t);const u=null==t.node?null:t.node.url,h=null==t.node?null:t.node.ucanonical&&null!=t.node.ucanonical&&""!=t.node.ucanonical?t.node.ucanonical:u;let d=null===(e=t.seoMetadata)||void 0===e?void 0:e.metaTitle,p=null===(n=t.seoMetadata)||void 0===n?void 0:n.metadescription,m=null===(i=t.seoMetadata)||void 0===i?void 0:i.metaKeywords,f=null===(s=t.seoMetadata)||void 0===s?void 0:s.image;null==d&&(d=null===(r=t.node)||void 0===r?void 0:r.title),null==p&&(p=null===(o=t.node)||void 0===o?void 0:o.title),null==m&&(m=c.T.menuMetadataToKeywords(null==t.node?[]:t.node.metadata)),null!=f&&null!=f||(f=null===(l=t.node)||void 0===l?void 0:l.imgUri);const g=this.getParent(null==t.node?null:t.node.url);let b=[];null!=g&&(b=[g]),b.push({url:u,description:null==p?null:p,title:null==t.node?null:t.node.title}),this.setpageInfo({uri:u,title:d,description:p,keywords:m,seoMetadata:t.seoMetadata,image:null!=f?f:"https://www.portobellostreet.es/mercurio_imagenes/logo-portobellostreet.png",breadcrumbs:b,ucanonical:h})}initcp(){null!=this.worker?this.worker.postMessage({action:"initcp"}):this.initcpww()}initcpww(){if((0,a.NF)(this.platformId)){const t=s.N.CRAWLER_AGENTS.some(t=>-1!==window.navigator.userAgent.toLowerCase().indexOf(t));if(this.logger.info("isLightHouse",t),this.logger.info("isLightHouse",window.navigator.userAgent),this.logger.info("initcpww"),t)this.showcpSubject$.next(!1);else if(this.cookieService.check("pst-cp-consent")){let t=this.cookieService.get("pst-cp-consent");0==t.indexOf("consent")?(this.logger.info("cookieExists",t),this.initPixels(parseInt(t.replace("consent",""))),this.showcpSubject$.next(!1)):(this.logger.info("NOT cookieExists"),this.initPixels(10),this.showcpSubject$.next(!0))}else this.initPixels(10),this.showcpSubject$.next(!0)}else this.showcpSubject$.next(!1)}initPixels(t){if((0,a.NF)(this.platformId))if(s.N.production){if(!window.gtmDidInit){window.dataLayer=[],window.gtmDidInit=!0;const t=document.createElement("script");t.type="text/javascript",t.async=!0,t.onload=()=>{window.dataLayer.push({event:"gtm.js","gtm.start":(new Date).getTime(),"gtm.uniqueEventId":0})},t.src="https://www.googletagmanager.com/gtm.js?id="+s.N.tag_manager_key,document.head.appendChild(t)}if(t<3&&window.dataLayer.push({event:"ConsentUpdate",eventAction:"",productID:"",language:""}),window._edrone={},window._edrone.app_id=s.N.edrone_app_key,window._edrone.version="1.0.0",window._edrone.platform_version="1.0.0",window._edrone.platform="pst-ng",!window.edroneDidInit&&t<3){window.edroneDidInit=!0;const t=document.createElement("script");t.type="text/javascript",t.async=!0,t.onload=()=>{window._edrone.init()},t.src="https://d3bo67muzbfgtl.cloudfront.net/edrone_2_0.js?app_id="+s.N.edrone_app_key,document.head.appendChild(t)}if(!window.mmDidInit&&t<3){window.mmDidInit=!0;const t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://s.marvellousmachine.net",document.head.appendChild(t)}if(!window.pepperInit){window.pepperInit=!0;const t=document.createElement("script");t.type="text/javascript",t.async=!0,t.onload=()=>{window.PEPPER.config.init(s.N.pepperConfiguration.environment,s.N.pepperConfiguration.language,s.N.pepperConfiguration.currency,s.N.pepperConfiguration.apikey,s.N.pepperConfiguration.publicKey)},t.src="/assets/js/pepper.js",document.head.appendChild(t)}}else{if(!window.gtmDidInit){window.dataLayer=[];const t=document.createElement("script");t.innerHTML="(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n})(window,document,'script','dataLayer','"+s.N.tag_manager_key+"');",document.body.appendChild(t),window.gtmDidInit=!0}if(t<3&&window.dataLayer.push({event:"ConsentUpdate",eventAction:"",productID:"",language:""}),!window.edroneDidInit&&t<3){window.edroneDidInit=!0;const t=document.createElement("script");t.innerHTML="(function(w,d,s,l,i){w[l]=w[l]||{};var f=d.getElementsByTagName(s)[0],\nj=d.createElement(s);\nw[l].app_id=i;w[l].version='1.0.0';w[l].platform_version='1.0.0';w[l].platform='pst-ng';\nj.async=true;\nj.onload = () => { w[l].init();};\nj.src=\n'https://d3bo67muzbfgtl.cloudfront.net/edrone_2_0.js?app_id='+i;f.parentNode.insertBefore(j,f);\n})(window,document,'script','_edrone','"+s.N.edrone_app_key+"');",document.body.appendChild(t)}if(!window.mmDidInit&&t<3){window.mmDidInit=!0;const t=document.createElement("script");t.innerHTML="(function(w,d,s,l,i){var f=d.getElementsByTagName(s)[0],j=d.createElement(s);\nj.async=true;\nj.src=\n'https://s.marvellousmachine.net';f.parentNode.insertBefore(j,f);\n})(window,document,'script','','');",document.body.appendChild(t)}if(!window.pepperInit){const t=document.createElement("script");t.innerHTML="(function(w,d,s,l,en,la,cu,ak,pk){w[l]=w[l]||{};var f=d.getElementsByTagName(s)[0],\nj=d.createElement(s);\nj.async=true;\nj.onload = () => { w[l].config.init(en,la,cu,ak,pk);};\nj.src=\n'/assets/js/pepper.js';f.parentNode.insertBefore(j,f);\n})(window,document,'script','PEPPER','"+s.N.pepperConfiguration.environment+"','"+s.N.pepperConfiguration.language+"','"+s.N.pepperConfiguration.currency+"','"+s.N.pepperConfiguration.apikey+"','"+s.N.pepperConfiguration.publicKey+"');",document.body.appendChild(t),window.pepperInit=!0}}}pixelAction(t,e){if((0,a.NF)(this.platformId))try{if(window.edroneDidInit){let n=window._edrone;n.init&&(n.product_skus=t.skus,n.product_ids=t.ids,n.product_titles=t.titles,n.product_images=t.skus,n.product_urls=t.urls,n.product_category_names=t.categories,n.product_category_ids=t.categoriesIds,"view"==e&&(n.action_type="product_view",n.init()),"add_to_cart"==e&&(n.action_type="add_to_cart",n.init()),"order"==e&&(n.action_type="order",n.email=t.email,n.first_name=t.fullname,null!=t.address&&(n.country=t.address.pais,n.city=t.address.poblacion,n.phone=t.address.telefono),n.order_id=t.order,n.base_currency=t.divisa,n.order_currency=t.divisa,n.base_payment_value=t.total,n.order_payment_value=t.total,n.init()))}if("order"==e){let e=t.total;if(!isNaN(parseInt(t.total))){let n=parseInt(t.total);e=Math.round(n/1.21).toString()}this.sendPropelbon(t,e)}if("view"==e&&(this.gtmActionEccomerce([t],[{eventcategory:"Ecommerce",eventaction:"VerProducto",eventlabel:"",event:"eventga"}],"Detail"),null!=this.worker)){let e=this.accountCoreService.accountValue,n="",i=window.location;if(i){let t=i.href.replace(i.protocol+"//"+i.host+i.pathname,"");""==t&&(t=null)}let s={uuid:this.cookieService.get("portobelloStreet"),accountId:e.id,productoId:t.productoids,action:"VerProducto",source:"FichaProducto",uri:t.urls,fragment:n};this.worker.postMessage({action:"ptmSave",apiBaseUrl:this.apiBaseUrl,jwtToken:e.jwtToken,data:s})}}catch(n){this.logger.error("try-pixel-action",n)}}gtmAction(t,e){this.gtmActionEccomerce(t,e,"")}gtmActionEccomerce(t,e,n){this.gtmActionEccomerceWiz(t,e,n,null)}gtmActionEccomerceWiz(t,e,n,i){if((0,a.NF)(this.platformId))try{if(""==n){if(window.gtmDidInit){let t=window.dataLayer,n=this.accountCoreService.accountId;e.forEach(e=>{let i={userid:n,eventcategory:e.eventcategory,eventaction:e.eventaction,eventlabel:e.eventlabel,event:e.event};""!=e.customLabel&&"netoPro"!=e.customLabel&&(i.customLabel=e.customValue),t.push(i),this.logger.info("gtm",i)})}}else{if("Detail"==n&&null!=t&&window.gtmDidInit){let n=window.dataLayer,i=this.accountCoreService.accountId;const s=[];t.forEach(t=>{s.push({name:t.titles,id:t.skus,price:t.price,brand:"",category:t.categories,variant:"",quantity:t.counts})});const r={detail:{products:s}};e.forEach(t=>{let e={userid:i,ecommerce:r,eventcategory:t.eventcategory,eventaction:t.eventaction,eventlabel:t.eventlabel,event:t.event};""!=t.customLabel&&"netoPro"!=t.customLabel&&(e.customLabel=t.customValue),n.push({ecommerce:null}),n.push(e),this.logger.info("gtm",e)})}if("AgregarCesta"==n&&null!=t&&window.gtmDidInit){let n=window.dataLayer,i=this.accountCoreService.accountId;const s=[];t.forEach(t=>{s.push({name:t.titles,id:t.skus,price:t.price,brand:"",category:t.categories,variant:"",quantity:t.counts})});const r={currencyCode:"EUR",add:{products:s}};e.forEach(t=>{let e={userid:i,ecommerce:r,eventcategory:t.eventcategory,eventaction:t.eventaction,eventlabel:t.eventlabel,event:t.event};""!=t.customLabel&&"netoPro"!=t.customLabel&&(e.customLabel=t.customValue),n.push({ecommerce:null}),n.push(e),this.logger.info("gtm",e)})}if("VisualizaCesta_P1"==n&&null!=t&&window.gtmDidInit){let n=window.dataLayer,i=this.accountCoreService.accountId;const s=[];t.forEach(t=>{s.push({name:t.titles,id:t.skus,price:t.price,brand:"",category:t.categories,variant:"",quantity:t.counts})});const r={currencyCode:"EUR",checkout:{actionField:{step:1,option:""},products:s}};e.forEach(t=>{let e={userid:i,ecommerce:r,eventcategory:t.eventcategory,eventaction:t.eventaction,eventlabel:t.eventlabel,event:t.event};""!=t.customLabel&&"netoPro"!=t.customLabel&&(e.customLabel=t.customValue),n.push({ecommerce:null}),n.push(e)})}if(0==n.indexOf("FinalizaCompra-")&&null!=t&&window.gtmDidInit){let t=window.dataLayer,s=this.accountCoreService.accountId,r=this.accountCoreService.clienthash,o="Transferencia";const a=n.split("-")[2];"1"==a&&(o="Tarjeta"),"2"==a&&(o="Paypal"),"3"==a&&(o="Financiacion"),"4"==a&&(o="Pepper"),"5"==a&&(o="Bizum");let l="";if(i&&i.order&&i.order.details&&i.order.details.length>0){let t=i.order.details.find(t=>"PROMOCION"==t.sku);t&&null!=t&&(l=t.name)}const c={currencyCode:"EUR",checkout:{actionField:{step:2,option:o,netoPro:null!=i?i.order.total:0,couponcode:l,clienthash:r}}};e.forEach(e=>{let n={userid:s,ecommerce:c,eventcategory:e.eventcategory,eventaction:e.eventaction,eventlabel:e.eventlabel,event:e.event};""!=e.customLabel&&"netoPro"!=e.customLabel&&(n.customLabel=e.customValue),t.push({ecommerce:null}),t.push(n),this.logger.info("gtm",n)})}if(0==n.indexOf("VentaOK")&&null!=t&&null!=i&&window.gtmDidInit){let n=window.dataLayer,s=this.accountCoreService.accountId,r=this.accountCoreService.clienthash;const o=[];t.forEach(t=>{o.push({name:t.titles,id:t.skus,price:t.price,brand:"",category:t.categories,variant:"",quantity:t.counts})});let a="0",c="0",u="",h=0;if(i.order.details.length>0){let t=i.order.details.find(t=>"GASTOSDEENVIO"==t.sku),e=i.order.details.find(t=>"GASTOSDEENVIOABONO"==t.sku),n=i.order.details.find(t=>"PROMOCION"==t.sku);t&&null!=t&&(h=t.price,a=h.toString()),e&&null!=e&&(h-=-e.price,a=h.toString()),n&&null!=n&&(c=n.price.toString(),u=n.name)}const d={currencyCode:"EUR",purchase:{actionField:{id:l.d.firtPart(i.order.orderNumber," "),revenue:i.order.total,tax:"",shipping:a,coupon:c,netoPro:i.order.total,couponcode:u,clienthash:r},products:o}};e.forEach(t=>{let e={userid:s,ecommerce:d,eventcategory:t.eventcategory,eventaction:t.eventaction,eventlabel:t.eventlabel,event:t.event};""!=t.customLabel&&"netoPro"!=t.customLabel&&(e.customLabel=t.customValue),t.customLabel&&"netoPro"==t.customLabel&&(e.ecommerce.purchase.actionField.netoPro=t.ncustomValue),n.push({ecommerce:null}),n.push(e),this.logger.info("gtm",e)})}}}catch(s){this.logger.error("try-pixel-action",s)}}sendPropelbon(t,e){const n=sessionStorage.getItem("propelbon");if(n&&null!=n&&""!=n){const i=JSON.parse(n).click_id;if(i&&null!=i&&""!=i){const n="https://portobellostreet.boost.propelbon.com/ts/i5044646/tsa?typ=s&tst=!!TIME_STAMP!!&trc=default&ctg=sale&sid=checkout&cid="+encodeURIComponent(t.order)+"&orv="+e+"&orc=EUR&cli="+i+"&hrf=!!HTTP_href";fetch(n,{mode:"no-cors"})}}}openCP(){this.showcpSubject$.next(!0)}actioncp(t){t<4&&(this.cookieService.set("pst-cp-consent","consent"+t.toString(),730,"/"),window.location.reload()),this.showcpSubject$.next(!1),this.initPixels(t)}initSubsForm(){this.dataStore.subsForm={email:null,subsForm:{errors:[],loading:!1,state:null,message:null}},this.subsFormSubject$.next(w(this.dataStore.subsForm))}getsubForm(){return this.subsFormSubject$.asObservable()}subscribe(t){this.dataStore.subsForm.subsForm.loading=!0,this.dataStore.subsForm.subsForm.state="",this.dataStore.subsForm.subsForm.errors=[],this.subsFormSubject$.next(w(this.dataStore.subsForm)),this.http.post(this.getUrl("api/newsletter/subscribe",null),{email:t}).subscribe(t=>{this.dataStore.subsForm.subsForm.loading=!1,this.dataStore.subsForm.subsForm.state="success",this.dataStore.subsForm.email=null,this.subsFormSubject$.next(w(this.dataStore.subsForm)),this.logger.info("subscribe",t),this.gtmAction(null,[{eventcategory:"Conversion",eventaction:"Newsletter",eventlabel:"Footer_OK",event:"eventga"}])},t=>{this.dataStore.subsForm.subsForm.loading=!1,this.dataStore.subsForm.subsForm.errors=["Error al guardar el correo electr\xf3nico"],this.subsFormSubject$.next(w(this.dataStore.subsForm)),this.handleError(t)})}redirect(t){return this.http.get(this.getUrl("api/site/redirect",null),{params:{uri:t}})}getbcontent(t){return this.http.get(this.getUrl("api/contents/directContent",null),{params:{uri:t}})}getPageNodesObsDS(t,e=null){switch(t){case"footer":return this.getPageNodesDS(t,e),this.footerMenuSubject$;default:return this.getPageNodesDS(t,e),this.mainMenuSubject$}}getPageNodesDS(t,e=null){let n=t;"nav-main"===t&&(n=this.mainNav);let i="";null!=e&&null!=e&&""!=e&&(i="?param="+e),this.http.get(this.getUrl("api/pagenodes/"+encodeURIComponent(n)+i,null)).pipe((0,m.q)(1)).subscribe(e=>{switch((0,a.NF)(this.platformId)?this.logger.info("getPageNodesDS data",e):this.logger.info("getPageNodesDS SERVER",e),t){case"footer":this.dataStore.footerMenu=e.menuentries,this.footerMenuSubject$.next(w(this.dataStore.footerMenu));break;default:this.dataStore.mainMenu=this.MegamenusFromNodes(e.menuentries),this.dataStore.cartelas=this.CartelasFromContent(e.content),this.mainMenuSubject$.next(w(this.dataStore.mainMenu)),this.cartelasSubject$.next(w(this.dataStore.cartelas))}},t=>{this.handleError(t)})}getPageNodesObs(t,e=null){let n=t;"nav-main"===t&&(n=this.mainNav);const i=(0,o.Cb)("api/pagenodes/"+n),r=(0,o.Cb)("api/pagenodes/"+n+"/cartela");if((0,a.PM)(this.platformId)){if("nav-main"===t){const t=this.state.get(i,null);if(t&&null!=t)return this.mainMenuSubject$}return this.logger.info("datakey"+n,"datum"),this.getPageNodesObsDS(t).pipe((0,h.U)(e=>((0,a.PM)(this.platformId)||this.logger.info("datakey"+n,e),s.N.CRAWLER_AGENTS.some(t=>-1!==this.universalDeviceDetectorService.userAgent.toLowerCase().indexOf(t))||(this.state.set(i,e),"nav-main"===t&&this.state.set(r,w(this.dataStore.cartelas))),e)))}{const s=this.state.get(i,null),o=this.state.get(r,[]);if((0,a.PM)(this.platformId)||this.logger.info("datakey"+n,s),!s||null==s)return this.getPageNodesObsDS(t,e);switch(t){case"footer":return this.dataStore.footerMenu=s,this.footerMenuSubject$.next(s),this.footerMenuSubject$;default:return(0,a.PM)(this.platformId)||this.logger.info("datakey"+n+"/cartela",o),this.dataStore.mainMenu=s,this.dataStore.cartelas=o,this.mainMenuSubject$.next(s),this.cartelasSubject$.next(w(this.dataStore.cartelas)),this.mainMenuSubject$}}}getPageNodes(t){let e=!0;switch(t){case"footer":this.dataStore.footerMenu&&null!==this.dataStore.footerMenu&&(this.footerMenuSubject$.next(w(this.dataStore.footerMenu)),e=!1);break;default:this.dataStore.mainMenu&&null!==this.dataStore.mainMenu&&(this.mainMenuSubject$.next(w(this.dataStore.mainMenu)),e=!1),this.dataStore.cartelas&&null!==this.dataStore.cartelas&&this.cartelasSubject$.next(w(this.dataStore.cartelas))}e&&this.getPageNodesDS(t,null)}gotoRef(t){this.http.get(this.getUrl("api/productos/getUriFR",null),{params:{refPublica:t}}).subscribe(t=>{t&&null!=t&&null!=t.uri&&this.router.navigate(["/p/"+t.uri])},t=>{this.logger.error("Se ha producido un eenviar los datos",t&&t.error&&t.error.message?t.error.message:t),this.handleError(t)})}getParent(t){let e=null;if(null!=t){let n=t;switch(t.indexOf("/")>-1&&t.split("/").length>3&&(n=t.split("/")[2]),n){case"marcas":e={url:"/n/marcas",description:"Marcas y fabricantes",title:"Marcas"};break;case"tendencias":e={url:"/n/tendencias",description:"Tendencias",title:"Tendencias"};break;case"espacios":e={url:"/n/espacios",description:"Espacios",title:"Espacios"};break;case"estilos":e={url:"/n/estilos",description:"Estilos de muebles",title:"Estilos"}}}return e}CartelasFromContent(t){const e=[];return t.forEach(t=>{e.push({title:t.name,img:c.T.getMetadata(t.metadata,"imagen",!0,null,!1),imgb:c.T.getMetadata(t.metadata,"imagenm",!0,null,!1),uri:c.T.getMetadata(t.metadata,"enlace"),texto:c.T.getMetadata(t.metadata,"texto"),tipo:0})}),e.forEach(t=>{""!=t.img&&null!=t.img&&(t.tipo=1)}),e}MegamenusFromNodes(t){const e=[];let n=Date.now();this.logger.info("getContentPageDS st",n);for(const s of t){const t=l.d.groupBy(s.nodes,"group"),n=Object.keys(t);s.imgUri=c.T.imgPrep(s.imgUri,!0),s.imgUri2=c.T.imgPrep(s.imgUri2,!0);const i=[];for(const e in n)if(t.hasOwnProperty(n[e])){const s=n[e],r=t[s],o=this.getPartsFromSection(s);i.push({section:o[0],uri:o[1],nodes:r})}e.push({node:s,sections:i,img:s.imgUri})}(0,a.NF)(this.platformId)&&this.logger.info("megamenu",e);let i=Date.now();return this.logger.info("getContentPageDS stf",i),this.logger.info("getContentPageDS process lap",i-n),e}getPartsFromSection(t){const e=[t,""];if(t&&null!==t){const n=t.split("##");n.length>=1&&(e[0]=n[0],e[1]=n[1])}return e}getUrl(t,e){return this.apiBaseUrl+t}handleError(t){return this.logger.error("server error:",t),t.error instanceof Error?(0,d._)(t.error.message):(0,d._)(t||"API SERVER error")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(f.eN),i.LFG(g.m),i.LFG(b.F0),i.LFG(o.ki),i.LFG(_.N),i.LFG(y.Y),i.LFG(v.Y),i.LFG(i.Lbi))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},5488:(t,e,n)=>{"use strict";n.d(e,{a:()=>o});var i=n(8583),s=n(7957),r=n(7716);let o=(()=>{class t{constructor(t){this.document=t,this.position=null,this.setPosition=t=>{this.position=t},this.restorePosition=()=>{this.position&&null!==this.position&&setTimeout(()=>{s.d.scrollto(this.position,this.document)},100)},this.gotoSelector=(t,e=0)=>{t&&null!==t&&setTimeout(()=>{s.d.goto(t,this.document,e)},100)}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.K0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},6837:(t,e,n)=>{"use strict";n.d(e,{A:()=>S});var i=n(8583),s=n(1841),r=n(7716),o=n(801),a=n(4444),l=n(2939),c=n(7957),u=n(2340),h=n(5917),d=n(205),p=n(6215),m=n(3653),f=n(8002),g=n(5304),b=n(4080),_=n(4677),y=n(8145),v=n(1584);const w=o();let S=(()=>{class t{constructor(t,e,n,s,r,o){this.http=t,this.logger=e,this.accountCoreService=n,this.menuService=s,this.platformId=r,this.cookieService=o,this.apiBaseUrl=u.N.apiBaseUrl,this.dataStore={uuid:(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase(),carrito:{status:a.wr.Vacio,type:a.EI.Carrito,details:[],total:0,amount:0,animClass:"",open:!1,hasProducts:!1},favoritos:{status:a.wr.Vacio,type:a.EI.Favoritos,details:[],animClass:"",open:!1,hasProducts:!1}},this.carritoSubject$=new p.X(w(this.dataStore.carrito)),this.carrito$=this.carritoSubject$.asObservable(),this.favoritosSubject$=new p.X(w(this.dataStore.favoritos)),this.favoritos$=this.favoritosSubject$.asObservable(),this.account$=this.accountCoreService.account$,(0,i.NF)(this.platformId)&&this.initUuid()}initUuid(){const t=this.cookieService.check("portobelloStreet"),e=this.cookieService.check("pst-cp-consent");let n=this.dataStore.uuid;t?(n=this.cookieService.get("portobelloStreet"),this.dataStore.uuid=n):e&&this.cookieService.set("portobelloStreet",n,730,"/"),this.logger.info("uuid",this.dataStore.uuid),this.dataStore.carrito.uuid=n,this.dataStore.favoritos.uuid=n,this.account$.pipe((0,m.T)(1)).subscribe({next:t=>{if(null!=t.jwtToken){let t=!1;this.dataStore.carrito.status==a.wr.Vacio&&this.dataStore.favoritos.status==a.wr.Vacio||0==this.dataStore.carrito.details.length&&0==this.dataStore.favoritos.details.length?t=!0:(t=!0,this.dataStore.carrito.details.length>0&&(t=!1,this.registerCart(a.EI.Carrito)),this.dataStore.favoritos.details.length>0&&(t=!1,this.registerCart(a.EI.Favoritos))),t&&this.getCarts()}else this.getCarts()}}),this.accountCoreService.initRefrestoken()}sendGTM(t){this.menuService.gtmAction(null,[{eventcategory:"Ecommerce",eventaction:"Cesta",eventlabel:t,event:"eventga"}])}get carritoValue(){return w(this.dataStore.carrito)}get favoritosValue(){return w(this.dataStore.favoritos)}get uuidValue(){return this.dataStore.uuid}set carritoValue(t){this.dataStore.carrito=t,this.carritoSubject$.next(w(this.dataStore.carrito))}set favoritosValue(t){this.dataStore.favoritos=t,this.favoritosSubject$.next(w(this.dataStore.favoritos))}carritoNext(){this.carritoSubject$.next(w(this.dataStore.carrito))}favoritosNext(){this.favoritosSubject$.next(w(this.dataStore.favoritos))}checkCart(){2==this.dataStore.carrito.status&&(this.dataStore.carrito={status:a.wr.Vacio,type:a.EI.Carrito,details:[],total:0,amount:0,animClass:"",open:!1,hasProducts:!1},this.carritoSubject$.next(w(this.dataStore.carrito)))}getCartTotal(){return this.carritoSubject$.value.total}AddtoCart(t,e,n){let i=t;t.hasOwnProperty("producto")&&(i=l.T.productoToListItem(t.producto)),this.AddItemtoCart(i,e,n)}AddRAtoCart(t,e,n,i){let r=e;const o=null==this.dataStore.carrito?null:this.dataStore.carrito.cartId,a=null==this.dataStore.carrito?null:this.dataStore.carrito.accountId,l=null==this.dataStore.carrito?null:this.dataStore.carrito.contactId;let c=new s.LE;return c=c.set("ReverseauctionsId",t),c=c.set("ProductoId",r.productoId),null!=o&&(c=c.set("CartId",o)),null!=a&&(c=c.set("AccountId",a)),null!=l&&(c=c.set("ContactId",l)),this.http.post(this.getUrl("api/productos/buyreverseauctionactive",null),{},{params:c}).pipe((0,f.U)(t=>t),(0,g.K)(t=>(this.logger.error("Se ha producido un error al comprobar los datos",t&&t.error&&t.error.message?t.error.message:t),this.handleError(t),(0,h.of)(null))))}RemoveFromCart(t,e){const n=e==a.EI.Carrito?this.dataStore.carrito:this.dataStore.favoritos,i=n.details.findIndex(e=>e.productoId==t.productoId);-1!==i&&(n.details.splice(i,1),this.processCartChanged(n,e),n.cartDate=new Date),e==a.EI.Carrito?this.carritoSubject$.next(w(this.dataStore.carrito)):this.favoritosSubject$.next(w(this.dataStore.favoritos)),this.cartSave(e)}changeAmount(t,e){const n=this.dataStore.carrito,i=n.details.find(e=>e.cindex==t);i&&null!=i&&(i.amount=e,this.processCartChanged(n,a.EI.Carrito),this.carritoSubject$.next(w(this.dataStore.carrito)),this.cartSave(a.EI.Carrito))}ClearCart(t){const e=t==a.EI.Carrito?this.dataStore.carrito:this.dataStore.favoritos;e.details=[],e.cartDate=new Date,this.processCartChanged(e,t),t==a.EI.Carrito?this.carritoSubject$.next(w(this.dataStore.carrito)):this.favoritosSubject$.next(w(this.dataStore.favoritos)),this.cartSave(t)}AddItemtoCart(t,e,n){let i=e==a.EI.Carrito?this.dataStore.carrito:this.dataStore.favoritos;e==a.EI.Carrito&&2==i.status&&(i={status:a.wr.Vacio,type:a.EI.Carrito,details:[],total:0,amount:0,animClass:"",open:!1,hasProducts:!1},this.dataStore.carrito=i),i.open=!0;let s=null;if(null==n&&(s=i.details.find(e=>e.productoId==t.productoId&&null==e.parentId)),null!=s){var r=1;null!=n&&(r=n.quantity),s.amount>=t.stock?s.amount=t.stock:s.amount+=r}else{const e=this.ProductListItemToCartDetail(t);if(e.cindex=0,i.details.filter(t=>t.cindex<100).length>0&&(e.cindex=i.details.filter(t=>t.cindex<100).sort((t,e)=>e.cindex-t.cindex)[0].cindex+1),n&&null!=n){null==e.img&&(e.img=l.T.getMetadata(n.product.metadata,"thumbnail",!0)),null!=t.parentId&&(e.uri="/p/"+n.product.uri,e.fragment=l.T.getComponentSubproductFragment(n));let i=n.quantity;i>t.stock&&(i=t.stock),e.observations=n.observations,e.amount=i,e.pOption=n.selectedOption,e.pSubOption=n.selectedSubOption,e.total=i*e.price}i.details.push(w(e))}if(i.status==a.wr.Vacio&&(i.cartDate=new Date,i.status=a.wr.Temporal),this.processCartChanged(i,e),e==a.EI.Carrito?this.carritoSubject$.next(w(this.dataStore.carrito)):this.favoritosSubject$.next(w(this.dataStore.favoritos)),this.cartSave(e),e==a.EI.Favoritos&&this.menuService.gtmAction(null,[{eventcategory:"FichaProducto",eventaction:"GuardarFavorito",eventlabel:t.refPublica,event:"eventga"}]),e==a.EI.Carrito){const e=this.ProductListItemToMarketingInfo(t);e.categories=l.T.getTavCatMetadatas(t.tavs),this.menuService.gtmActionEccomerce([e],[{eventcategory:"Ecommerce",eventaction:"AgregarCesta",eventlabel:"",event:"eventga"}],"AgregarCesta"),this.menuService.pixelAction(e,"add_to_cart")}}registerCart(t){const e=t==a.EI.Carrito?this.dataStore.carrito:this.dataStore.favoritos;this.logger.info("cart-register",e),this.http.post(this.getUrl("api/shop/cart-register",null),e).subscribe(e=>{this.logger.info("cart-register",e),this.processCartGetted(e,t),e.type==a.EI.Carrito?this.carritoSubject$.next(w(this.dataStore.carrito)):this.favoritosSubject$.next(w(this.dataStore.favoritos))},t=>{this.logger.error("Se ha producido un error al guardar los datos",t&&t.error&&t.error.message?t.error.message:t),this.handleError(t)})}cartSave(t){const e=t==a.EI.Carrito?this.dataStore.carrito:this.dataStore.favoritos;this.logger.info("cart-save",e),this.http.post(this.getUrl("api/shop/cart-save",null),this.carritoTS(e)).subscribe(e=>{this.logger.info("cart-save",e),this.processCartGetted(e,t);let n=w(this.dataStore.carrito);n.action="save",this.carritoSubject$.next(n)},t=>{this.logger.error("Se ha producido un error al guardar los datos",t&&t.error&&t.error.message?t.error.message:t),this.handleError(t)})}getCarts(){(0,i.NF)(this.platformId)&&this.http.get(this.getUrl("api/shop/get-carts",null),{params:{uuid:this.dataStore.uuid}}).subscribe(t=>{this.logger.info("get-carts",t),t.length>0?(t.forEach(t=>{this.processCartGetted(t,t.type),t.type==a.EI.Carrito?this.carritoSubject$.next(w(this.dataStore.carrito)):this.favoritosSubject$.next(w(this.dataStore.favoritos))}),0==t.filter(t=>t.type==a.EI.Carrito).length&&(this.dataStore.carrito={status:a.wr.Vacio,type:a.EI.Carrito,details:[],total:0,amount:0,animClass:"",open:!1,uuid:this.dataStore.uuid,hasProducts:!1},this.carritoSubject$.next(w(this.dataStore.carrito))),0==t.filter(t=>t.type==a.EI.Favoritos).length&&(this.dataStore.favoritos={status:a.wr.Vacio,type:a.EI.Favoritos,details:[],animClass:"",open:!1,uuid:this.dataStore.uuid,hasProducts:!1},this.favoritosSubject$.next(w(this.dataStore.favoritos)))):(this.dataStore.carrito={status:a.wr.Vacio,type:a.EI.Carrito,details:[],total:0,amount:0,animClass:"",open:!1,uuid:this.dataStore.uuid,hasProducts:!1},this.dataStore.favoritos={status:a.wr.Vacio,type:a.EI.Favoritos,details:[],animClass:"",open:!1,uuid:this.dataStore.uuid,hasProducts:!1},this.carritoSubject$.next(w(this.dataStore.carrito)),this.favoritosSubject$.next(w(this.dataStore.favoritos)))},t=>{this.logger.error("Se ha producido un error al guardar los datos",t&&t.error&&t.error.message?t.error.message:t),this.handleError(t)})}UpdateCart(){this.carritoSubject$.next(w(this.dataStore.carrito))}carritoTS(t){const e=w(t);return e.details.forEach(t=>{t.producto=null}),e}processCartChanged(t,e){t.type==a.EI.Carrito?(t.animClass=""==this.dataStore.carrito.animClass||"rotate-scale-up-reverse"==this.dataStore.carrito.animClass?"rotate-scale-up":"rotate-scale-up-reverse",t.details.sort((t,e)=>t.cindex-e.cindex),this.calculateCartTotal(t)):(t.animClass=""==this.dataStore.favoritos.animClass||"rotate-scale-up-reverse"==this.dataStore.favoritos.animClass?"rotate-scale-up":"rotate-scale-up-reverse",t.details.sort((t,e)=>t.cindex-e.cindex))}processCartGetted(t,e){t.type==a.EI.Carrito?(t.animClass=""==this.dataStore.carrito.animClass||"rotate-scale-up-reverse"==this.dataStore.carrito.animClass?"rotate-scale-up":"rotate-scale-up-reverse",this.reasignProducts(t),t.details.sort((t,e)=>t.cindex-e.cindex),this.calculateCartTotalPro(t),this.dataStore.carrito=t,this.dataStore.carrito.open=!1):(t.animClass=""==this.dataStore.favoritos.animClass||"rotate-scale-up-reverse"==this.dataStore.favoritos.animClass?"rotate-scale-up":"rotate-scale-up-reverse",this.reasignProducts(t),t.details.sort((t,e)=>t.cindex-e.cindex),this.dataStore.favoritos=t,this.dataStore.favoritos.open=!1)}reasignProducts(t){t.details.length>0&&t.details.forEach(t=>{t.producto=null==t.producto?null:l.T.productoToListItem(t.producto),"-subasta-"==t.pOption&&null!=t.producto&&(t.producto.stock=1)})}calculateCartTotalPro(t){if(t.totalPro=t.total,t.details.filter(t=>"GASTOSDEENVIO"!=t.sku&&"GASTOSDEENVIOABONO"!=t.sku&&"PROMOCION"!=t.sku&&"IGIC"!=t.sku&&"IPSI"!=t.sku).length>0){t.hasProducts=!0;let e=t.details.find(t=>"GASTOSDEENVIO"==t.sku),n=t.details.find(t=>"GASTOSDEENVIOABONO"==t.sku),i=t.details.find(t=>"PROMOCION"==t.sku),s=t.details.find(t=>"IGIC"==t.sku),r=t.details.find(t=>"IPSI"==t.sku);e&&null!=e&&(t.totalPro=t.totalPro-e.price),n&&null!=n&&(t.totalPro=t.totalPro-n.price),i&&null!=i&&(t.totalPro=t.totalPro-i.price),s&&null!=s&&(t.totalPro=t.totalPro-s.price),r&&null!=r&&(t.totalPro=t.totalPro-r.price),t.totalPro<0&&(t.totalPro=0)}}calculateOrderTotalProNeto(t){let e=t.total;try{let n=t.details.filter(t=>"GASTOSDEENVIO"!=t.sku&&"GASTOSDEENVIOABONO"!=t.sku&&"PROMOCION"!=t.sku&&"IGIC"!=t.sku&&"IPSI"!=t.sku).reduce((t,e)=>t+e.price*e.amount,0),i=t.details.filter(t=>"GASTOSDEENVIO"!=t.sku&&"GASTOSDEENVIOABONO"!=t.sku&&"PROMOCION"!=t.sku&&"IGIC"!=t.sku&&"IPSI"!=t.sku).reduce((t,e)=>t+(e.price-e.price/(1+e.tax/100))*e.amount,0);return e=n-c.d.precisionRound(i,2),e}catch(n){}if(t.details.filter(t=>"GASTOSDEENVIO"!=t.sku&&"GASTOSDEENVIOABONO"!=t.sku&&"PROMOCION"!=t.sku&&"IGIC"!=t.sku&&"IPSI"!=t.sku).length>0){let n=t.details.find(t=>"GASTOSDEENVIO"==t.sku),i=t.details.find(t=>"GASTOSDEENVIOABONO"==t.sku),s=t.details.find(t=>"PROMOCION"==t.sku),r=t.details.find(t=>"IGIC"==t.sku),o=t.details.find(t=>"IPSI"==t.sku);n&&null!=n&&(e-=n.price),i&&null!=i&&(e-=i.price),s&&null!=s&&(e-=s.price),r&&null!=r&&(e-=r.price),o&&null!=o&&(e-=o.price),e<0&&(e=0)}return e}calculateCartTotal(t){if(t.details.length>0){let n=t.details.filter(t=>"GASTOSDEENVIO"!=t.sku&&"GASTOSDEENVIOABONO"!=t.sku&&"PROMOCION"!=t.sku&&"IGIC"!=t.sku&&"IPSI"!=t.sku).reduce((t,e)=>t+e.total,0),i=t.details.filter(t=>!("GASTOSDEENVIO"==t.sku||"GASTOSDEENVIOABONO"==t.sku||"PROMOCION"==t.sku||"IGIC"==t.sku||"IPSI"==t.sku||0!=t.tc&&null!=t.tc||0!=t.porte&&null!=t.porte)).reduce((t,e)=>t+e.total,0),s=t.details.filter(t=>"GASTOSDEENVIO"!=t.sku&&"GASTOSDEENVIOABONO"!=t.sku&&"PROMOCION"!=t.sku&&"IGIC"!=t.sku&&"IPSI"!=t.sku&&(0==t.tc||null==t.tc)&&0!=t.porte&&null!=t.porte).length,r=t.details.filter(t=>"GASTOSDEENVIO"!=t.sku&&"GASTOSDEENVIOABONO"!=t.sku&&"PROMOCION"!=t.sku&&"IGIC"!=t.sku&&"IPSI"!=t.sku&&null!=t.tc&&1==t.tc&&(0==t.porte||null==t.porte)).length,o=t.details.find(t=>"GASTOSDEENVIO"==t.sku),a=t.details.find(t=>"GASTOSDEENVIOABONO"==t.sku);if(t.details.forEach(t=>t.total=t.amount*t.price),t.totalPro=n,o&&null!=o&&a&&null!=a)if(null!=o.pOption&&0==o.pOption.indexOf("ZONA-0-")){let e=parseInt(o.pOption.substring(7)),l=0,c=0,u=i;if(u>0&&(u=n),u>0)switch(e){case 1:l=59,i>=250&&(c=-59);break;case 2:l=59,i>=650&&(c=-59);break;case 3:l=190;break;case 4:l=497}let h=0;if(r>0)switch(e){case 1:h=0;break;case 2:h=3.9;break;case 3:h=6;break;case 4:h=9}let d=0;if(s>0)switch(e){case 1:case 2:h=3.9;break;case 3:h=6;break;case 4:h=9}let p=t.details.filter(t=>"GASTOSDEENVIO"!=t.sku&&"GASTOSDEENVIOABONO"!=t.sku&&"PROMOCION"!=t.sku&&"IGIC"!=t.sku&&"IPSI"!=t.sku).filter(t=>{var e;return"321"==(null===(e=t.producto)||void 0===e?void 0:e.proveedor)}).reduce((t,e)=>t+e.total,0),m=0;p>0&&(p<151?m=6.9:p<301?m=14.9:p<501?m=39.9:p<1501?m=69:p>=1501&&(m=0));let f=l+c;o.pSubOption="",f0&&(h=0,h=0),o.price=l+h+d,o.total=o.price,a.price=c,a.total=c}else null!=o.pOption&&0==o.pOption.indexOf("ZONA-1-")&&(o.price=0,o.total=0,o.pSubOption="",a.price=0,a.total=0);let l=t.details.find(t=>"PROMOCION"==t.sku);if(l&&null!=l){let n=l.pOption,i=l.pSubOption;if(n&&null!=n&&i&&null!=i){let s=!0,r=0;try{i=i.replace(",","."),r=+i}catch(e){s=!1,this.logger.error("error promo convert",e)}if(s&&0!=r){if("PORCENTAJE"==n){let e=c.d.precisionRound(t.totalPro*r,2);l.price=-e,l.total=l.price}"DIRECTA"==n&&(l.price=-r,l.total=l.price)}}}let u=t.details.find(t=>"IGIC"==t.sku),h=t.details.filter(t=>"GASTOSDEENVIO"!=t.sku&&"GASTOSDEENVIOABONO"!=t.sku&&"PROMOCION"!=t.sku&&"IGIC"!=t.sku&&"IPSI"!=t.sku).reduce((t,e)=>t+e.price*e.tax/100*e.amount,0);u&&null!=u&&(u.price=h,u.total=h);let d=t.details.find(t=>"IPSI"==t.sku);d&&null!=d&&(d.price=h,d.total=h),t.amount=t.details.filter(t=>"GASTOSDEENVIO"!=t.sku&&"GASTOSDEENVIOABONO"!=t.sku&&"PROMOCION"!=t.sku&&"IGIC"!=t.sku&&"IPSI"!=t.sku).reduce((t,e)=>t+e.amount,0),t.hasProducts=t.details.filter(t=>"GASTOSDEENVIO"!=t.sku&&"GASTOSDEENVIOABONO"!=t.sku&&"PROMOCION"!=t.sku&&"IGIC"!=t.sku&&"IPSI"!=t.sku).length>0,t.total=t.details.reduce((t,e)=>t+e.total,0),t.total<0&&(t.total=0),t.discount=0,0==t.total?(t.tax=0,t.price=0):(t.tax=c.d.precisionRound(t.details.reduce((t,e)=>t+(e.price-e.price/(1+e.tax/100))*e.amount,0),2),t.price=t.total-t.tax)}else t.total=0,t.totalPro=0,t.discount=0,t.amount=0,t.hasProducts=!1,t.tax=0,t.price=0}ProductListItemToCartDetail(t){return{producto:t,productoId:t.productoId,parentId:t.parentId,cartDetailDate:new Date,sku:t.refPublica,name:t.name,desOption:null,price:t.price,amount:1,discount:0,tax:21,total:t.price,img:t.imageUrl,uri:null==t.parentId?t.link:t.uri,notice:t.notice,tc:t.tag.ntc?-1:0,porte:t.porte}}ProductListItemToMarketingInfo(t){let e=parseInt(t.refPublica.replace("P","")).toString(),n=l.T.getTavMetadatas(t.tavs);return{skus:t.refPublica,ids:e,productoids:t.productoId,titles:t.name,images:t.imageUrl,urls:null==t.parentId?t.link:t.uri,categories:n[0],categoriesIds:n[1],price:t.price.toString()+".00",counts:1,fullname:"",email:"",address:null,order:"",total:"",divisa:""}}getUrl(t,e){return this.apiBaseUrl+t}handleError(t){return this.logger.error("server error:",t),t.error instanceof Error?(0,d._)(t.error.message):(0,d._)(t||"API SERVER error")}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(s.eN),r.LFG(b.m),r.LFG(_.Y),r.LFG(y.h),r.LFG(r.Lbi),r.LFG(v.N))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},6633:(t,e,n)=>{"use strict";n.d(e,{v:()=>s});var i=n(7716);let s=(()=>{class t{pageNode(t,e){return e.pageId}navnodeSection(t,e){return e.section}megaMenu(t,e){return e.node.pageId}megaMenuSection(t,e){return e.section}productListItem(t,e){return e.productoId}reverseauctionListItem(t,e){return e.reverseauctionsId}pageSection(t,e){return e.page}taxoListItem(t,e){return e.TaxoId}imgGallery(t,e){return e.Original.uri}productoComponent(t,e){return e.uri}productoComponentPart(t,e){return e.title}directAny(t,e){return e}stock(t,e){return e.productId}postItem(t,e){return e.link}facetItem(t,e){return e.name}breadcrumbItem(t,e){return e.url}headingItem(t,e){return e.key}contentTileItem(t,e){return e.contentId}cartItem(t,e){return e.cindex}countryInfo(t,e){return e.c}address(t,e){return e.addressId}slide(t,e){return e.uri}purchase(t,e){return e.purchaseId}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},6270:(t,e,n)=>{"use strict";n.d(e,{Y:()=>a});var i=n(7716),s=n(7247),r=n(1135),o=n(8583);let a=(()=>{class t extends r.x0{constructor(t,e){super(t),(0,o.PM)(t)&&super.setDeviceInfo(e.headers["user-agent"]||"")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.Lbi),i.LFG(s.Z,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},751:(t,e,n)=>{"use strict";n.d(e,{R:()=>s});var i=n(7716);let s=(()=>{class t{static getValidatorErrorMessage(t){switch(t){case"invalidCreditCard":return"Is invalid credit card number";case"invalidEmailAddress":return"Invalid email address";case"invalidPassword":return"Invalid password. Password must be at least 6 characters long, and contain a number";default:return"Invalid"}}static creditCardValidator(t){return t.value.match(/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/)?null:{invalidCreditCard:!0}}static emailValidator(t){return t.value&&null!==t.value?t.value.match(/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/)?null:{invalidEmail:!0}:null}static CP(e){return e.value&&null!==e.value?null!=t.getCPInfo(e.value)?null:{invalidCP:!0}:null}static getCPInfo(e){let n=null;if(4==e.length||5==e.length){let s=e.substring(0,2);4==e.length&&(s=e.substring(0,1));try{let e=parseInt(s),i=t.CPinfo.find(t=>t.pre==e);null!=i&&(n=i)}catch(i){}}return n}static passwordValidator(t){return t.value.match(/^(?=.*[a-zA-Z!@#$%^&*])(?!.*\s).{6,100}$/)?null:{invalidPassword:!0}}static conditionalValidator(t,e){return n=>n.parent&&t()?e(n):null}static patternValidator(t,e){return n=>n.value?t.test(n.value)?null:e:null}static MustMatchValidator(t,e){return n=>{const i=n.get(t),s=n.get(e);i&&null!=i&&s&&null!=s&&i.value!==s.value&&s.setErrors({mustMatch:!0})}}}return t.CPinfo=[{pre:1,p:"Araba/\xc1lava",acr:"VI",ca:"Pa\xeds Vasco",zona:2},{pre:2,p:"Albacete",acr:"AB",ca:"Castilla-La Mancha",zona:2},{pre:3,p:"Alicante/Alacant",acr:"A",ca:"Comunitat Valenciana",zona:2},{pre:4,p:"Almer\xeda",acr:"AL",ca:"Andaluc\xeda",zona:2},{pre:5,p:"\xc1vila",acr:"AV",ca:"Castilla y Le\xf3n",zona:2},{pre:6,p:"Badajoz",acr:"BA",ca:"Extremadura",zona:2},{pre:7,p:"Baleares",acr:"PM/IB",ca:"Balears, Illes",zona:3},{pre:8,p:"Barcelona",acr:"B",ca:"Catalunya/Catalu\xf1a",zona:2},{pre:9,p:"Burgos",acr:"BU",ca:"Castilla y Le\xf3n",zona:2},{pre:10,p:"C\xe1ceres",acr:"CC",ca:"Extremadura",zona:2},{pre:11,p:"C\xe1diz",acr:"CA",ca:"Andaluc\xeda",zona:2},{pre:12,p:"Castell\xf3n",acr:"CS",ca:"Comunitat Valenciana",zona:2},{pre:13,p:"Ciudad Real",acr:"CR",ca:"Castilla-La Mancha",zona:2},{pre:14,p:"C\xf3rdoba",acr:"CO",ca:"Andaluc\xeda",zona:2},{pre:15,p:"La Coru\xf1a/A coru\xf1a",acr:"C",ca:"Galicia",zona:2},{pre:16,p:"Cuenca",acr:"CU",ca:"Castilla-La Mancha",zona:2},{pre:17,p:"Girona/Gerona",acr:"GE/GI",ca:"Catalunya/Catalu\xf1a",zona:2},{pre:18,p:"Granada",acr:"GR",ca:"Andaluc\xeda",zona:2},{pre:19,p:"Guadalajara",acr:"GU",ca:"Castilla-La Mancha",zona:2},{pre:20,p:"Gipuzkoa/Guip\xfazcoa",acr:"SS",ca:"Pa\xeds Vasco",zona:2},{pre:21,p:"Huelva",acr:"H",ca:"Andaluc\xeda",zona:2},{pre:22,p:"Huesca",acr:"HU",ca:"Arag\xf3n",zona:2},{pre:23,p:"Ja\xe9n",acr:"J",ca:"Andaluc\xeda",zona:2},{pre:24,p:"Le\xf3n",acr:"LE",ca:"Castilla y Le\xf3n",zona:2},{pre:25,p:"Lleida/L\xe9rida",acr:"L",ca:"Catalunya/Catalu\xf1a",zona:2},{pre:26,p:"La Rioja",acr:"LO",ca:"La Rioja",zona:2},{pre:27,p:"Lugo",acr:"LU",ca:"Galicia",zona:2},{pre:28,p:"Madrid",acr:"M",ca:"Comunidad de Madrid",zona:1},{pre:29,p:"M\xe1laga",acr:"MA",ca:"Andaluc\xeda",zona:2},{pre:30,p:"Murcia",acr:"MU",ca:"Regi\xf3n de Murcia",zona:2},{pre:31,p:"Navarra",acr:"NA",ca:"Comunidad foral de Navarra",zona:2},{pre:32,p:"Ourense/Orense",acr:"OR/OU",ca:"Galicia",zona:2},{pre:33,p:"Asturias",acr:"O",ca:"Principado de Asturias",zona:2},{pre:34,p:"Palencia",acr:"P",ca:"Castilla y Le\xf3n",zona:2},{pre:35,p:"Las Palmas",acr:"GC",ca:"Canarias",zona:4},{pre:36,p:"Pontevedra",acr:"PO",ca:"Galicia",zona:2},{pre:37,p:"Salamanca",acr:"SA",ca:"Castilla y Le\xf3n",zona:2},{pre:38,p:"Santa Cruz de Tenerife",acr:"TF",ca:"Canarias",zona:4},{pre:39,p:"Cantabria",acr:"S",ca:"Cantabria",zona:2},{pre:40,p:"Segovia",acr:"SG",ca:"Castilla y Le\xf3n",zona:2},{pre:41,p:"Sevilla",acr:"SE",ca:"Andaluc\xeda",zona:2},{pre:42,p:"Soria",acr:"SO",ca:"Castilla y Le\xf3n",zona:2},{pre:43,p:"Tarragona",acr:"T",ca:"Catalunya/Catalu\xf1a",zona:2},{pre:44,p:"Teruel",acr:"TE",ca:"Teruel",zona:2},{pre:45,p:"Toledo",acr:"TO",ca:"Castilla-La Mancha",zona:2},{pre:46,p:"Valencia",acr:"V",ca:"Comunitat Valenciana",zona:2},{pre:47,p:"Valladolid",acr:"VA",ca:"Castilla y Le\xf3n",zona:2},{pre:48,p:"Bizkaia/Vizcaya",acr:"BI",ca:"Pa\xeds Vasco",zona:2},{pre:49,p:"Zamora",acr:"ZA",ca:"Castilla y Le\xf3n",zona:2},{pre:50,p:"Zaragoza",acr:"Z",ca:"Arag\xf3n",zona:2},{pre:51,p:"Ceuta",acr:"CE",ca:"Ceuta",zona:4},{pre:52,p:"Melilla",acr:"ML",ca:"Melilla",zona:4}],t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},2255:(t,e,n)=>{"use strict";n.d(e,{x:()=>O});var i=n(2238),s=n(6215),r=n(5257),o=n(2939),a=n(7716),l=n(8145),c=n(8583),u=n(5618),h=n(8030),d=n(1095),p=n(6895);function m(t,e){if(1&t&&(a._UZ(0,"div",11),a.ALo(1,"safeHtml")),2&t){const t=a.oxw().ngIf;a.Q6J("innerHTML",a.lcZ(1,1,t.post),a.oJD)}}function f(t,e){if(1&t&&(a._UZ(0,"div",11),a.ALo(1,"safeHtml")),2&t){const t=a.oxw().ngIf;a.Q6J("innerHTML",a.lcZ(1,1,t.texto1),a.oJD)}}function g(t,e){if(1&t&&(a._UZ(0,"div",11),a.ALo(1,"safeHtml")),2&t){const t=a.oxw().ngIf;a.Q6J("innerHTML",a.lcZ(1,1,t.texto1),a.oJD)}}function b(t,e){if(1&t&&(a._UZ(0,"div",11),a.ALo(1,"safeHtml")),2&t){const t=a.oxw().ngIf;a.Q6J("innerHTML",a.lcZ(1,1,t.texto1),a.oJD)}}function _(t,e){if(1&t&&(a._UZ(0,"div",11),a.ALo(1,"safeHtml")),2&t){const t=a.oxw().ngIf;a.Q6J("innerHTML",a.lcZ(1,1,t.texto1),a.oJD)}}function y(t,e){if(1&t&&(a.TgZ(0,"div",9),a.TgZ(1,"h3"),a._uU(2),a.qZA(),a.YNc(3,m,2,3,"div",10),a.YNc(4,f,2,3,"div",10),a.YNc(5,g,2,3,"div",10),a.YNc(6,b,2,3,"div",10),a.YNc(7,_,2,3,"div",10),a.qZA()),2&t){const t=e.ngIf;a.xp6(2),a.Oqu(t.name),a.xp6(1),a.Q6J("ngIf",""!=t.post),a.xp6(1),a.Q6J("ngIf",""!=t.texto1),a.xp6(1),a.Q6J("ngIf",""!=t.texto2),a.xp6(1),a.Q6J("ngIf",""!=t.texto3),a.xp6(1),a.Q6J("ngIf",""!=t.texto4)}}function v(t,e){if(1&t&&(a.ynx(0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a._UZ(3,"img",3),a.qZA(),a.TgZ(4,"div",4),a.TgZ(5,"div",5),a.TgZ(6,"mat-dialog-content",6),a.TgZ(7,"button",7),a._uU(8,"X"),a.qZA(),a.YNc(9,y,8,6,"div",8),a.ALo(10,"async"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.BQk()),2&t){const t=a.oxw();a.xp6(9),a.Q6J("ngIf",a.lcZ(10,1,t.data$))}}function w(t,e){1&t&&(a.ynx(0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a._UZ(3,"img",3),a.qZA(),a.TgZ(4,"div",4),a.TgZ(5,"div",5),a.TgZ(6,"mat-dialog-content",6),a.TgZ(7,"button",7),a._uU(8,"X"),a.qZA(),a.TgZ(9,"div",9),a.TgZ(10,"h3"),a._uU(11,"Pago seguro"),a.qZA(),a.TgZ(12,"div",12),a._UZ(13,"div",13),a._UZ(14,"div",14),a._UZ(15,"div",15),a._UZ(16,"div",16),a._UZ(17,"div",17),a._UZ(18,"div",18),a._UZ(19,"div",19),a.qZA(),a.TgZ(20,"p",20),a._uU(21,"- 50% de se\xf1al al realizar la compra. Por transferencia bancaria, visa online o visa telef\xf3nica. Resto contra-reembolso en met\xe1lico o tal\xf3n."),a.qZA(),a.TgZ(22,"p",20),a._uU(23,"- Transferencia bancaria a Portobello Street S.L. (Los datos se dan en la realizacion del pedido)"),a.qZA(),a.TgZ(24,"p",20),a._uU(25,"- Visa on-line, rellenando el formulario de compra con la pasarela de pago de IberCaja"),a.qZA(),a.TgZ(26,"p",20),a._uU(27,"- Paypal eligiendo esta opci\xf3n al finalizar la compra en el formulario de pedido."),a.qZA(),a.TgZ(28,"p",20),a._uU(29,"- "),a.TgZ(30,"a",21),a._uU(31,"Financiaci\xf3n"),a.qZA(),a._uU(32," hasta 6 meses gratuitamente 100 %, sin intereses ni comisi\xf3n de apertura."),a.qZA(),a.TgZ(33,"p",22),a._uU(34,"*Destinos especiales: Islas Canarias, Islas Balerares, Ceuta y Melilla requieren el pago del 100% del pedido antes de su tramitaci\xf3n."),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.BQk())}function S(t,e){1&t&&(a.ynx(0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a._UZ(3,"img",3),a.qZA(),a.TgZ(4,"div",4),a.TgZ(5,"div",5),a.TgZ(6,"mat-dialog-content",6),a.TgZ(7,"button",7),a._uU(8,"X"),a.qZA(),a.TgZ(9,"div",9),a.TgZ(10,"h3"),a._uU(11,"Gastos de env\xedo"),a.qZA(),a.TgZ(12,"div"),a.TgZ(13,"p"),a._uU(14,"Le recordamos que el servicio de env\xedo incluye: "),a.TgZ(15,"span",23),a._uU(16,"transporte y subida a domicilio. El montaje solo esta incluido en la pen\xednsula*"),a.qZA(),a.qZA(),a.TgZ(17,"h4"),a._uU(18,"Muebles"),a.qZA(),a.TgZ(19,"p",24),a._uU(20,"Seg\xfan el c\xf3digo postal de su localidad se calcula el tipo de env\xedo. "),a.qZA(),a.TgZ(21,"table",24),a.TgZ(22,"tbody"),a.TgZ(23,"tr"),a.TgZ(24,"th",25),a._uU(25,"DESTINO"),a.qZA(),a.TgZ(26,"th",26),a._uU(27,"IMPORTE DE COMPRA"),a._UZ(28,"br"),a._uU(29,"(EXCEPTO SERVICIOS)"),a.qZA(),a.TgZ(30,"th",26),a._uU(31,"GASTOS"),a._UZ(32,"br"),a._uU(33,"DE ENV\xcdO"),a.qZA(),a.qZA(),a.TgZ(34,"tr"),a.TgZ(35,"td"),a._uU(36,"Recoger en tienda"),a.qZA(),a.TgZ(37,"td"),a._uU(38,"-"),a.qZA(),a.TgZ(39,"td"),a._uU(40,"GRATUITO"),a.qZA(),a.qZA(),a.TgZ(41,"tr"),a.TgZ(42,"td"),a._uU(43,"Comunidad de Madrid"),a.qZA(),a.TgZ(44,"td"),a._uU(45,"> 250\u20ac"),a.qZA(),a.TgZ(46,"td"),a._uU(47,"GRATUITO"),a.qZA(),a.qZA(),a.TgZ(48,"tr"),a.TgZ(49,"td"),a._uU(50,"Comunidad de Madrid"),a.qZA(),a.TgZ(51,"td"),a._uU(52,"< 250\u20ac"),a.qZA(),a.TgZ(53,"td"),a._uU(54,"59\u20ac"),a.qZA(),a.qZA(),a.TgZ(55,"tr"),a.TgZ(56,"td"),a._uU(57,"Pen\xednsula"),a.qZA(),a.TgZ(58,"td"),a._uU(59,"> 650\u20ac"),a.qZA(),a.TgZ(60,"td"),a._uU(61,"GRATUITO"),a.qZA(),a.qZA(),a.TgZ(62,"tr"),a.TgZ(63,"td"),a._uU(64,"Pen\xednsula"),a.qZA(),a.TgZ(65,"td"),a._uU(66,"< 650\u20ac"),a.qZA(),a.TgZ(67,"td"),a._uU(68,"59\u20ac"),a.qZA(),a.qZA(),a.TgZ(69,"tr"),a.TgZ(70,"td"),a._uU(71,"Baleares,"),a._UZ(72,"br"),a._uU(73,"Ceuta y Melilla, Portugal"),a.qZA(),a._UZ(74,"td"),a.TgZ(75,"td"),a._uU(76,"190\u20ac"),a.qZA(),a.qZA(),a.TgZ(77,"tr"),a.TgZ(78,"td"),a._uU(79,"Canaraias, "),a._UZ(80,"br"),a._uU(81,"Env\xedos internacionales -"),a._UZ(82,"br"),a._uU(83,"International shipping"),a.qZA(),a._UZ(84,"td"),a.TgZ(85,"td"),a._uU(86,"A consultar -"),a._UZ(87,"br"),a._uU(88,"On request"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(89,"p",27),a._uU(90,"Los gastos de env\xedo se calcularan automaticamente sobre el presupuesto."),a.qZA(),a.TgZ(91,"p",28),a._uU(92,"*En todos los casos salvo en aquellos que espec\xedficamente lo indique la ficha del producto. Excepcionalmente no incluye la colocaci\xf3n en las paredes los estantes y espejos. En caso de que el mueble o los muebles no pudiesen ser subidos a casa del cliente por el ascensor o la escalera, la contrataci\xf3n de una grua para la subida por la fachada correr\xe1 a cargo del cliente."),a.qZA(),a.TgZ(93,"h4"),a._uU(94,"Productos peque\xf1o formato"),a.qZA(),a.TgZ(95,"p",29),a._uU(96,"Los productos de peque\xf1o formato se env\xedan a trav\xe9s de empresas de mensajer\xeda, con un coste de entre 5 y 30 euros, el cual se calculara en nuestra p\xe1gina de pedido al a\xf1adir el producto y registrarse como usuario."),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.BQk())}function x(t,e){if(1&t&&(a.ynx(0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a._UZ(3,"div",30),a.qZA(),a.TgZ(4,"div",4),a.TgZ(5,"div",5),a.TgZ(6,"mat-dialog-content"),a.TgZ(7,"button",7),a._uU(8,"X"),a.qZA(),a.TgZ(9,"div",9),a.TgZ(10,"h3"),a._uU(11),a.qZA(),a._UZ(12,"div",31),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.BQk()),2&t){const t=a.oxw();a.xp6(3),a.Jzz("background-image: url(",t.materialimg,")"),a.xp6(8),a.Oqu(t.materialnom),a.xp6(1),a.Q6J("innerHTML",t.materialdes,a.oJD)}}function T(t,e){1&t&&(a.ynx(0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a._UZ(3,"img",32),a.qZA(),a.TgZ(4,"div",4),a.TgZ(5,"div",5),a.TgZ(6,"mat-dialog-content"),a.TgZ(7,"button",7),a._uU(8,"X"),a.qZA(),a.TgZ(9,"div",33),a.TgZ(10,"h3"),a._uU(11,"Contacta con nosotros"),a.qZA(),a.TgZ(12,"p"),a._uU(13,"Para cualquier duda o necesidad de informaci\xf3n por favor p\xf3ngase en contacto con nosotros a trav\xe9s de las siguiente v\xedas:"),a.qZA(),a.TgZ(14,"b"),a._uU(15,"TEL\xc9FONO"),a.qZA(),a.TgZ(16,"h4"),a._uU(17,"(+34) 91 351 39 28"),a.qZA(),a.TgZ(18,"b"),a._uU(19,"EMAIL"),a.qZA(),a.TgZ(20,"h4"),a._uU(21,"info@portobellostreet.es"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.BQk())}function C(t,e){1&t&&(a.ynx(0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a._UZ(3,"img",34),a.qZA(),a.TgZ(4,"div",4),a.TgZ(5,"div",5),a.TgZ(6,"mat-dialog-content"),a.TgZ(7,"button",7),a._uU(8,"X"),a.qZA(),a.TgZ(9,"div",33),a.TgZ(10,"h3"),a._uU(11,"\xa1NOSOTROS TE LO MONTAMOS!"),a.qZA(),a.TgZ(12,"p"),a.TgZ(13,"b"),a._uU(14,"En Portobellostreet incluimos el montaje en el precio de todos los muebles*"),a.qZA(),a.qZA(),a.TgZ(15,"p"),a.TgZ(16,"b"),a._uU(17,"*"),a.qZA(),a._uU(18," Condiciones:"),a.qZA(),a.TgZ(19,"ul",35),a.TgZ(20,"li"),a._uU(21,"Salvo en aquellos que espec\xedficamente lo indique la ficha del producto."),a.qZA(),a.TgZ(22,"li"),a._uU(23,"Excepcionalmente no incluye la colocaci\xf3n en las paredes de los estantes, espejos, cabeceros , vinilos y en general cualquier producto susceptible de ser anclado o pegado en la pared. Tampoco incluye la instalaci\xf3n de l\xe1mparas de cualquier tipo, ya sea en techos o pared."),a.qZA(),a.TgZ(24,"li"),a._uU(25,"En caso de que el mueble o los muebles no pudiesen ser subidos a casa del cliente por el ascensor o la escalera, la contrataci\xf3n de una grua para la subida por la fachada correr\xe1 a cargo del cliente."),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.BQk())}function A(t,e){if(1&t&&(a._UZ(0,"div",11),a.ALo(1,"safeHtml")),2&t){const t=a.oxw(2);a.Q6J("innerHTML",a.lcZ(1,1,t.texto),a.oJD)}}function k(t,e){if(1&t&&(a.ynx(0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a._UZ(3,"img",34),a.qZA(),a.TgZ(4,"div",4),a.TgZ(5,"div",5),a.TgZ(6,"mat-dialog-content"),a.TgZ(7,"button",7),a._uU(8,"X"),a.qZA(),a.TgZ(9,"div",33),a.YNc(10,A,2,3,"div",10),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.BQk()),2&t){const t=a.oxw();a.xp6(10),a.Q6J("ngIf",""!=t.texto)}}function E(t,e){if(1&t&&(a._UZ(0,"div",11),a.ALo(1,"safeHtml")),2&t){const t=a.oxw(2);a.Q6J("innerHTML",a.lcZ(1,1,t.texto),a.oJD)}}function I(t,e){if(1&t&&(a.ynx(0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a._UZ(3,"img",34),a.qZA(),a.TgZ(4,"div",4),a.TgZ(5,"div",5),a.TgZ(6,"mat-dialog-content"),a.TgZ(7,"button",7),a._uU(8,"X"),a.qZA(),a.TgZ(9,"div",33),a.YNc(10,E,2,3,"div",10),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.BQk()),2&t){const t=a.oxw();a.xp6(10),a.Q6J("ngIf",""!=t.texto)}}let O=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this.data=e,this.menuService=n,this.dialog="pago",this.materialid="",this.materialdes="",this.materialimg="",this.texto="",this.materialnom="",this.dataSubject$=new s.X({post:"",name:"",texto1:"",texto2:"",texto3:"",texto4:""}),this.data$=this.dataSubject$.asObservable()}ngOnInit(){this.data&&null!=this.data.name&&(this.dialog=this.data.name,null!=this.data.material?(this.data.material.taxoValue&&null!=this.data.material.taxoValue&&this.data.material.taxoValue.metadata&&null!=this.data.material.taxoValue.metadata&&(this.materialdes=o.T.getMetadata(this.data.material.taxoValue.metadata,"description",!1),this.materialimg=o.T.getMetadata(this.data.material.taxoValue.metadata,"image",!0)),this.materialnom=this.data.material.value):"pago"==this.data.name||"gastos"==this.data.name||"contacto"==this.data.name||"montaje"==this.data.name||"mantenimiento"==this.data.name||"info"==this.data.name?this.data&&null!=this.data.texto&&(this.texto=this.data.texto):(this.dialog="uri",this.dataSub$=this.menuService.getbcontent(this.data.name).pipe((0,r.q)(1)).subscribe(t=>{if(t&&null!=t&&null!=t.uri){let e=o.T.getMetadata(t.metadata,"Post"),n=o.T.getMetadata(t.metadata,"Texto1"),i=o.T.getMetadata(t.metadata,"Texto2"),s=o.T.getMetadata(t.metadata,"Texto3"),r=o.T.getMetadata(t.metadata,"Texto4");this.dataSubject$.next({post:null==e?"":e.replace(new RegExp('

 

',"g"),""),name:t.name,texto1:null==n?"":n.replace(new RegExp('

 

',"g"),""),texto2:null==i?"":i.replace(new RegExp('

 

',"g"),""),texto3:null==s?"":s.replace(new RegExp('

 

',"g"),""),texto4:null==r?"":r.replace(new RegExp('

 

',"g"),"")})}else this.dataSubject$.next({post:"",name:"",texto1:"",texto2:"",texto3:"",texto4:""})},t=>{this.dataSubject$.next({post:"",name:"",texto1:"",texto2:"",texto3:"",texto4:""})})))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(i.so),a.Y36(i.WI),a.Y36(l.h))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-dialog-content"]],decls:8,vars:8,consts:[[4,"ngIf"],["fxLayout","row wrap",1,"dialog-container"],["fxHide","true","fxShow.gt-xs","","fxFlex","30"],["src","https://portobellostreet.b-cdn.net/assets/images/dialog/welcome.jpg","alt","Bienvenidos","fxFlex","1 1 0"],["fxFlex","100","fxFlex.gt-xs","70"],[1,"dialog-content"],[1,"mat-typography"],["mat-button","","mat-dialog-close","",1,"btncerrardialogo"],["class","info",4,"ngIf"],[1,"info"],["class","col",3,"innerHTML",4,"ngIf"],[1,"col",3,"innerHTML"],[1,"icons-inline","margin-b-5"],[1,"icon","icon-visa"],[1,"icon","icon-paypal"],[1,"icon","icon-mastercard"],[1,"icon","icon-cash"],[1,"icon","icon-bank-check"],[1,"icon","icon-bank-transfer"],[1,"icon","icon-sequra"],[1,"fw-400","margin-b-15"],["routerLink","['/s/financiacion-a-su-medida']",1,"color-accent"],[1,"alpha-80","fs-12","margin-b-0"],[1,"fw-500"],[1,"margin-b-20"],[1,"text-left"],[1,"text-centered"],[1,"alpha-65","margin-b-10"],[1,"fs-11","alpha-65","lh-12","margin-b-20"],[1,"margin-b-0"],["fxFlex","1 1 0",1,"image"],[3,"innerHTML"],["src","https://portobellostreet.b-cdn.net/assets/images/dialog/welcome.jpg","alt"," Bienvenidos ","fxFlex","1 1 0 "],[1,"mt-4","ml-3","mb-4","mr-2"],["src","https://portobellostreet.b-cdn.net/assets/images/dialog/welcome.jpg","alt"," Bienvenidos ","fxFlex","1 1 0"],[1,"simple"]],template:function(t,e){1&t&&(a.YNc(0,v,11,3,"ng-container",0),a.YNc(1,w,35,0,"ng-container",0),a.YNc(2,S,97,0,"ng-container",0),a.YNc(3,x,13,5,"ng-container",0),a.YNc(4,T,22,0,"ng-container",0),a.YNc(5,C,26,0,"ng-container",0),a.YNc(6,k,11,1,"ng-container",0),a.YNc(7,I,11,1,"ng-container",0)),2&t&&(a.Q6J("ngIf","uri"==e.dialog),a.xp6(1),a.Q6J("ngIf","pago"==e.dialog),a.xp6(1),a.Q6J("ngIf","gastos"==e.dialog),a.xp6(1),a.Q6J("ngIf","material"==e.dialog),a.xp6(1),a.Q6J("ngIf","contacto"==e.dialog),a.xp6(1),a.Q6J("ngIf","montaje"==e.dialog),a.xp6(1),a.Q6J("ngIf","mantenimiento"==e.dialog),a.xp6(1),a.Q6J("ngIf","info"==e.dialog))},directives:[c.O5,u.xw,h.b8,u.yH,i.xY,d.lW,i.ZT],pipes:[c.Ov,p.T],encapsulation:2}),t})()},6824:(t,e,n)=>{"use strict";n.d(e,{V:()=>r});var i=n(7716),s=n(8583);let r=(()=>{class t{constructor(t){this.platformId=t,this.relAttr="",this.targetAttr="",this.hrefAttr="",this.href=""}ngOnChanges(){this.hrefAttr=this.href,this.isLinkExternal()&&(this.relAttr="noopener",this.targetAttr="_blank")}isLinkExternal(){return(0,s.NF)(this.platformId)&&0==this.href.indexOf("http")&&!this.href.includes(location.hostname)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Lbi))},t.\u0275dir=i.lG2({type:t,selectors:[["a","href",""]],hostVars:3,hostBindings:function(t,e){2&t&&i.uIk("rel",e.relAttr)("target",e.targetAttr)("href",e.hrefAttr,i.LSH)},inputs:{href:"href"},features:[i.TTD]}),t})()},4444:(t,e,n)=>{"use strict";n.d(e,{EI:()=>i,nu:()=>s,uG:()=>r,wr:()=>o,iF:()=>a,Sj:()=>l,$p:()=>c});var i=(()=>(function(t){t[t.Carrito=0]="Carrito",t[t.Favoritos=1]="Favoritos"}(i||(i={})),i))(),s=(()=>(function(t){t[t.Domicilio=0]="Domicilio",t[t.RecogidaTienda=1]="RecogidaTienda"}(s||(s={})),s))(),r=(()=>(function(t){t[t.Transferencia=0]="Transferencia",t[t.Tarjeta=1]="Tarjeta",t[t.Paypal=2]="Paypal",t[t.Financiacion=3]="Financiacion",t[t.Pepper=4]="Pepper",t[t.Bizum=5]="Bizum"}(r||(r={})),r))(),o=(()=>(function(t){t[t.Vacio=0]="Vacio",t[t.Temporal=1]="Temporal",t[t.Comprado=2]="Comprado",t[t.Anulado=3]="Anulado"}(o||(o={})),o))(),a=(()=>(function(t){t[t.SinDefinir=-1]="SinDefinir",t[t.EnCurso=0]="EnCurso",t[t.Completo=1]="Completo",t[t.Comprado=2]="Comprado",t[t.Anulado=3]="Anulado"}(a||(a={})),a))();const l={DEFAULT:"DEFAULT",MANAGED:"MANAGED"},c={PSH16:"PSH16",PSH17:"PSH17",MAG1:"MAG1",MAG2:"MAG2",WOO30:"WOO30",API:"API",PEPPER:"PEPPER"}},2939:(t,e,n)=>{"use strict";function i(t,e){return function(n,i){e(n,i,t)}}n.d(e,{T:()=>u});var s=n(7957),r=n(1841),o=n(3811),a=n.n(o),l=n(7716),c=n(2340);class u{static acomodateOld(t,e=!1){let n=t;return t&&null!=t&&""!=t&&(n=t.replace(new RegExp("{let n=this.taxoToListItem(t);null!=n&&e.push(n)}),e}static FacetsToIFilterMetadata(t,e,n){const i=s.d.queryParamToObject(e),r=[];return t.length>0&&t[0].headings.forEach(t=>{i.findIndex(e=>e===t.uri)>-1&&r.push(t)}),{facets:this.FacetsToGroupFacets(t,r),selected:r,opened:n.opened,openFacet:n.openFacet,filterHash:e}}static cancelSelection(t,e){const n=s.d.queryParamToObject(e);return t.filter(t=>n.findIndex(e=>e===t.uri)>-1)}static FacetsToGroupFacets(t,e){let n=[];if(t.length>0){const i=s.d.groupBy(t[0].headings,"group");n=s.d.trasformTo(i,(t,n)=>{const i=this.HeadingToSelected(n.sort(),e),s=i.filter(t=>t.selected).map(t=>t.name).join(", ");return{name:t,headings:i,selection:s}})}return n}static FacetsToSelected(t,e){const n=t;return t.length>0&&t.forEach(t=>{t.headings=this.HeadingToSelected(t.headings,e),t.selection=t.headings.filter(t=>t.selected).map(t=>t.name).join(", ")}),n}static FacetsToFilterHash(t){let e=null;return t.length>0&&t.forEach(t=>{const n=t.headings.filter(t=>t.selected).map(t=>t.uri).join("~");null!=n&&""!==n&&(e=null==e?"":e+"*",e+=a()(t.name)+"~"+n)}),e}static HeadingToSelected(t,e){const n=t;return t.length>0&&t.forEach(t=>{t.selected=!1,e.length>0&&e.findIndex(e=>e.key===t.key)>-1&&(t.selected=!0)}),n}static getGallery(t,e,n,i){let s=[];const r=this.getImgGallery(i,"productosGalerygimage","1");s=s.concat(r);const o=this.getImgGallery(i,"productosGalerygimage","0");s=s.concat(o);let a=0;if(s.length>0?0===s.filter(e=>e.Original.uri===t).length&&(a=r.length>0?1:2):a=1,a>0){const i={Original:{alt:n,title:n,uri:t},Thumbnail:{alt:n,title:n,uri:e}};1===a?s.push(i):s.unshift(i)}return s}static cleanLegacyIdFromUri(t){if(null===t)return t;let e=t;return e=e.replace(/\/mueble\/(\d+)\/(?!$)/gi,"/p/"),e=e.replace(/\/blog\/articulo\/(\d+)\/(?!$)/gi,"/blog/"),e=e.replace(/https?:\/\/www.portobellostreet.es\/p\//gi,c.N.domain+"/p/"),e=e.replace(/https?:\/\/www.portobellostreet.es\/blog\//gi,c.N.domain+"/blog/"),e=e.replace(/]*?\s+)?href=(["'])(.*?)\1/gi,t=>t.toLowerCase()),e}static getImgGallery(t,e,n){const i=[];return t&&t.length>0&&t.filter(t=>{const e="Original"===t.type;if(""===n)return e;const i=t.metadata.find(t=>"High resolution"===t.type);return("1"===n?void 0!==i&&"1"===i.value:void 0===i||"1"!==i.value)&&e}).sort((t,n)=>{const i=t.metadata.find(t=>"High resolution"===t.type),s=t.metadata.find(t=>"High resolution"===t.type),r=i?parseInt(i.value,10):0,o=s?parseInt(s.value,10):0,a=parseInt(t.docIdentifier.replace(e,""),10),l=parseInt(n.docIdentifier.replace(e,""),10);return r-o||a-l}).forEach(e=>{const n=t.filter(t=>t.docIdentifier===e.docIdentifier&&"thumbnail"===t.type),s=n.length>0?n[0]:e;i.push({Original:this.docITemToImg(e),Thumbnail:this.docITemToImg(s)})}),i}static docITemToImg(t){let e=u.acomodateOld(t.uri,!0);return{alt:this.getIDocMetadata(t.metadata,"description"),title:this.getIDocMetadata(t.metadata,"name"),uri:e}}static getIDocMetadata(t,e,n=null){const i=t.filter(t=>t.type.toLowerCase()===e.toLowerCase());let s=i.length>0?i[0].value:null;return null===s&&null!==n&&(s=n),s}static reviewPagenode(t){return t.imgUri=this.imgPrep(t.imgUri,!0),t.imgUri2=this.imgPrep(t.imgUri2,!0),t}static reverseauctionToListItem(t){return{reverseauctionsId:t.reverseauctionsId,producto:u.productoToListItem(t.producto),initialPrice:t.initialPrice,finalPrice:t.finalPrice,startDate:t.startDate,endDate:t.endDate}}static productoToListItem(t,e,n){let i=this.getMetadata(t.metadata,"ProductoIdO");return{altImage:u.getMetadata(t.metadata,"alt_imagen1",!1,t.titulo),esConjunto:u.getBoolMetadata(t.metadata,"Conjunto")||u.getBoolMetadata(t.metadata,"variousmeasures"),finishing:u.getMetadata(t.metadata,"finishingImage",!0),imageUrl:u.getMetadata(t.metadata,"thumbnail",!0),link:"/p/"+t.uri,uri:t.uri,medida:this.getMedidaMetadata(t.metadata),name:t.titulo,price:0===t.precioOferta?t.precio:t.precioOferta,priceOld:0===t.precioOferta?0:t.precio,productoId:t.productoId,parentId:t.parentId,refPublica:t.refPublica,relparentId:"null"==i||null==i?null:"/p/"+i,notice:t.observaciones,tag:this.getProductTag(t.metadata),pd:u.getMetadataPD(t.metadata,e),ofi:u.getMetadataOfi(t.metadata),tavs:u.getTavMetadatasMeta(t.metadata),proveedor:u.getMetadataMetaValue(t.metadata,"idproveedor"),stock:u.getMetadataStock(t.metadata),caracteristicas:t.desCorta,porte:u.getCNumberMetadata(n&&null!=n?n.metadata:t.metadata,"portefijo")}}static productoMetadataToKeywords(t){let e="";const n=t.filter(t=>"tipo"===t.type);for(const i of n){const n=t.filter(t=>t.parentTaxoId===i.valueTaxoId&&i.value!==t.value).map(t=>t.value).join(",");e+=(""===e?"":",")+i.value+" "+n}return e}static menuMetadataToKeywords(t){let e="";const n=t.filter(t=>"TipoOrigen"===t.type&&null==t.parentTaxoId);for(const i of n){const n=t.filter(t=>t.parentTaxoId===i.valueTaxoId&&i.value!==t.value).map(t=>t.value).join(",");e+=(""===e?"":",")+i.value+" "+n}return e}}u.imgPrep=(t,e=!1,n=!1)=>{let i=null;return null!=t&&""!=t&&(i=t.trim(),i=i.replace("http://","https://"),i=u.acomodateOld(i,e),null!=i&&(n?i=i.replace(/^(?:\/\/|[^/]+)*\//,""):0!=i.indexOf("http")&&(i="https://portobellostreet.b-cdn.net"+(0==i.indexOf("/")?"":"/")+i))),i},u.getFullPage=t=>({title:t.title,url:t.url,menu:t.menu,pageId:t.pageId,seoMetadata:u.getseoMetadata(t.metadata),index:!0,private:!1}),u.getseoMetadata=t=>{let e=u.getMetadata(t,"meta_keywords"),n=u.getMetadata(t,"meta_Description"),i=u.getMetadata(t,"meta_titulo");return{entradillaSeo:u.getMetadata(t,"entradilla_seo",!1),textoSeo:u.getMetadata(t,"texto_seo",!1),textoSeo1:u.getMetadata(t,"texto_seo_1",!1),textoSeo2:u.getMetadata(t,"texto_seo_2",!1),tituloSeo:u.getMetadata(t,"titulo_seo"),metaKeywords:null==e?void 0:e,metadescription:null==n?void 0:n,metaTitle:null==i?void 0:i,image:u.getMetadata(t,"image",!0)}},u.getSlides=t=>{const e=[];return t.forEach(t=>{e.push({title:u.getMetadata(t.metadata,"h1"),subtitle:u.getMetadata(t.metadata,"h2"),image:u.getMetadata(t.metadata,"background",!0,null,!1),uri:u.getMetadata(t.metadata,"action"),index:t.index})}),e.sort((t,e)=>t.index>e.index?1:t.index{const r=t.filter(t=>t.type.toLowerCase()===e.toLowerCase());let o=r.length>0?r[0].value:null;return o=u.acomodateOld(o,n),null===o&&null!==i&&(o=i),s&&null!=o&&(o=o.replace(/^(?:\/\/|[^/]+)*\//,"")),o},u.getMetadataFind=(t,e,n,i=!1,s=null,r=!1)=>{const o=t.filter(t=>t.type.toLowerCase()===e.toLowerCase()).filter(t=>n.includes(t.id));let a=o.length>0?o[0].value:null;return null!=a&&(a=a.replace("http://www.portobello","https://www.portobello")),a=u.acomodateOld(a,i),null===a&&null!==s&&(a=s),r&&null!=a&&(a=a.replace(/^(?:\/\/|[^/]+)*\//,"").replace(".jpg",".jpg").replace(".png",".png")),a},u.getMetadataMeta=(t,e)=>{const n=t.filter(t=>t.type.toLowerCase()===e.toLowerCase());return n.length>0?n[0]:null},u.getMetadataMetaValue=(t,e)=>{const n=t.filter(t=>t.type.toLowerCase()===e.toLowerCase());return n.length>0?n[0].value:null},u.getMetadataByTVMeta=(t,e,n)=>{const i=t.filter(t=>t.type.toLowerCase()===e.toLowerCase()&&t.value.toLowerCase()===n.toLowerCase());return i.length>0?i[0]:null},u.getBoolMetadataByTVMeta=(t,e,n)=>t.filter(t=>t.type.toLowerCase()===e.toLowerCase()&&t.value.toLowerCase()===n.toLowerCase()).length>0,u.getMetadatasMeta=(t,e)=>t.filter(t=>t.type.toLowerCase()===e.toLowerCase()),u.getMetadataOfi=t=>{const e=u.getMetadataMetaValue(t,"dias"),n=u.getMetadataMetaValue(t,"visitas"),i=u.getMetadataMetaValue(t,"ventas");let s=null;return null!=e&&(s=(null==s?"":s+" ")+"DI:"+e),null!=n&&(s=(null==s?"":s+" ")+"VI:"+n),null!=i&&(s=(null==s?"":s+" ")+"VE:"+i),s},u.getMetadataPD=(t,e)=>{let n=0;return e&&null!=e&&(null!=u.getMetadataByTVMeta(t,"destacado",e)&&(n+=1),null!=u.getMetadataByTVMeta(t,"promocion",e)&&(n+=2)),n},u.getTavMetadatasMeta=t=>{const e=u.getMetadatasMeta(t,"tipo"),n=u.getMetadatasMeta(t,"Valor");return e.concat(n)},u.getTavMetadatas=t=>{let e="",n="";return t.filter(t=>null==t.parentTaxoId).forEach(i=>{t.filter(t=>t.parentTaxoId==i.valueTaxoId).forEach(t=>{e+=(""==e?"":"~")+i.value+":"+t.value,n+=(""==n?"":"~")+i.valueTaxoId})}),[e,n]},u.getTavCatMetadatas=t=>{let e="";return t.filter(t=>null==t.parentTaxoId).forEach(t=>{-1=="caracter\xedsticas,espacio,estilos,materiales,tendencias,selecciones,marcas".indexOf(t.value.toLowerCase())&&(e+=(""==e?"":"~")+t.value)}),e},u.getMetadatas=(t,e)=>t.filter(t=>t.type.toLowerCase()===e.toLowerCase()).map(t=>t.value).join(","),u.getQuantitys=t=>{let e=[1,2,3,4,5,6,7,8,9,10];return t>0&&t<10?e.filter(e=>e<=t):e},u.getMetadataStock=t=>{let e=1e3;if(t.filter(t=>"valor"===t.type.toLowerCase()&&("en exposici\xf3n"===t.value.toLowerCase()||"outlet"===t.value.toLowerCase())).length>0){e=0;const n=t.filter(t=>"chollostock"===t.type.toLowerCase());1==n.length&&(e=isNaN(parseInt(n[0].value))?0:parseInt(n[0].value),e<0&&(e=0))}return e},u.getBoolMetadata=(t,e)=>{const n=t.filter(t=>t.type.toLowerCase()===e.toLowerCase());return 1==+(n.length>0?null==n[0].value?0:"1"===n[0].value?1:0:0)},u.getCNumberMetadata=(t,e)=>{const n=t.filter(t=>t.type.toLowerCase()===e.toLowerCase());let i=0;try{i=+(n.length>0?null==n[0].value?0:n[0].value:0)}catch(s){i=0}return isNaN(i)&&(i=0),i},u.getBoolIMetadata=(t,e)=>{const n=t.filter(t=>t.type.toLowerCase()===e.toLowerCase());return 1==+(n.length>0?null==n[0].value?0:"0"===n[0].value?1:0:0)},u.getDateMetadata=(t,e)=>{const n=t.filter(t=>t.type.toLowerCase()===e.toLowerCase());return n.length>0?null==n[0].value?null:new Date(u.parseDateString(n[0].value)):null},u.parseDateString=t=>t&&null!=t&&(t=t.trim()).indexOf(" ")>0?t.replace(" ","T").replace("/","-")+"Z":t,u.getPaginActionParams=(t,e=null,n,i,r=null)=>{const o={action:"",params:t};if(null!=i){const e=i.get("page");if(e&&null!==e&&e.trim().length>0){const n=Number(e);isNaN(n)||(t.pageNumber=n,t.currentPageQuery=n,o.action="paging")}const n=i.get("filter");n&&null!==n&&n.trim().length>0&&(t.filterQuery=n);const s=i.get("search");s&&null!==s&&s.trim().length>0&&(t.searchCriteria=s)}const a=s.d.fragmentParamsToObject(r);if(t.fragmentParams=s.d.ObjectToFragmentParams(a),a.page){const e=a.page;if(e&&null!==e&&e.trim().length>0){const n=Number(e);isNaN(n)||(t.pageNumber=n,o.action="scrolling")}}return o},u.getComponentSubproductFragment=t=>{let e="";return null!=t.selectedSubproduct&&null!=t.selectedSubproduct.uri&&(e+="sel~"+t.selectedSubproduct.uri),e+="&exp~"+t.uri,null!=t.selectedOption&&""!=t.selectedOption&&(e+="&o~"+a()(t.selectedOption.trim().toLowerCase())),null!=t.selectedSubOption&&""!=t.selectedSubOption&&(e+="&so~"+a()(t.selectedSubOption.trim().toLowerCase())),e},u.setQueryFilter=(t,e)=>{const n=t.query;let i=n;n.params&&(i=n.params);const s=i.search;let r={};return r=s&&null!==s&&s.trim().length>0?{filter:e.filter,search:s}:{filter:e.filter},t.fragment=null,t.query=r,t},u.getContentHttpParams=t=>{let e=new r.LE;for(const n of Object.keys(t))e=e.set(n,t[n]);return e},u.getMedidaMetadata=t=>{const e={alto:null,ancho:null,description:"",diametro:null,extendida:null,fondo:null,grande:!1,measures:!1};if(u.getBoolMetadata(t,"variousmeasures"))e.description="Varias medidas / composici\xf3n";else{let n=!1;const i=u.getMetadataMeta(t,"alto");let s=null;null!==i&&(e.alto=i.value,+e.alto>199&&(n=!0),s="Alto: "+i.value+"cm");const r=u.getMetadataMeta(t,"ancho");let o=null;null!==r&&(e.ancho=r.value,+e.ancho>199&&(n=!0),o="Ancho: "+r.value+"cm");const a=u.getMetadataMeta(t,"extendida");let l=null;null!==a&&(e.extendida=a.value,+e.extendida>199&&(n=!0),l="Desplegado: "+a.value+"cm");const c=u.getMetadataMeta(t,"fondo");let h=null;null!==c&&(e.fondo=c.value,+e.fondo>199&&(n=!0),h="Fondo: "+c.value+"cm");const d=u.getMetadataMeta(t,"diametro");let p=null;null!==d&&(e.diametro=d.value,+e.diametro>199&&(n=!0),p="Diametro: "+d.value+"cm");const m=u.getMetadataMeta(t,"grande");if(null!==m){const t=m.value;e.grande=null!==t&&"1"===t||n}e.description=[s,o,h,l,p].filter(t=>null!==t).join(" | "),e.measures=null!==s||null!==o||null!==h||null!==p}return e},u.getProductTag=t=>{const e={choosecolor:u.getBoolMetadata(t,"choosecolor"),cloth:u.getBoolMetadata(t,"cloth"),express:u.getBoolMetadata(t,"express"),measure:u.getBoolMetadataByTVMeta(t,"valor","a medida"),uniquefinish:u.getBoolMetadata(t,"uniquefinish"),nouniquefinish:u.getBoolIMetadata(t,"uniquefinish"),ntc:u.getBoolMetadata(t,"sinportes"),pr:0!=u.getCNumberMetadata(t,"portefijo"),tagged:!1,taggedP:!1};return e.tagged=e.choosecolor||e.cloth||e.express||e.ntc||e.pr,e.taggedP=e.measure,e},function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);r>3&&o&&Object.defineProperty(e,n,o)}([i(1,(0,l.FiY)()),i(2,(0,l.FiY)())],u,"productoToListItem",null)},6895:(t,e,n)=>{"use strict";n.d(e,{T:()=>r,Q5:()=>o});var i=n(7716),s=n(9075);let r=(()=>{class t{constructor(t){this.sanitizer=t}transform(t){return t&&null!=t?this.sanitizer.bypassSecurityTrustHtml(t):t}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s.H7,16))},t.\u0275pipe=i.Yjl({name:"safeHtml",type:t,pure:!0}),t})(),o=(()=>{class t{constructor(t){this.sanitizer=t}transform(t){return t&&null!=t?this.sanitizer.bypassSecurityTrustUrl(t):t}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s.H7,16))},t.\u0275pipe=i.Yjl({name:"safeUrl",type:t,pure:!0}),t})()},8696:(t,e,n)=>{"use strict";n.d(e,{E:()=>a});var i=n(8583),s=n(2238),r=n(8418),o=n(7716);let a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[i.ez,r.m,s.Is],r.m]}),t})()},8418:(t,e,n)=>{"use strict";n.d(e,{m:()=>f});var i=n(8583),s=n(7716),r=n(7736),o=n(8030),a=n(5618);n(9490);let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.IR]]}),t})(),c=(()=>{class t{constructor(t,e){(0,i.PM)(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,n=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:r.WU,useValue:Object.assign(Object.assign({},r.g5),e)},{provide:r.Bs,useValue:n,multi:!0},{provide:r.wY,useValue:!0}]:[{provide:r.WU,useValue:Object.assign(Object.assign({},r.g5),e)},{provide:r.Bs,useValue:n,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(r.wY),s.LFG(s.Lbi))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[a.ae,o.aT,l],a.ae,o.aT,l]}),t})();var u=n(3679),h=n(8295),d=n(7539),p=n(9983),m=n(1095);let f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez,c,h.lN,d.p9,p.c,u.UX,m.ot],c,h.lN,p.c,d.p9,u.UX,m.ot]}),t})()},7957:(t,e,n)=>{"use strict";n.d(e,{d:()=>i});let i=(()=>{class t{static cleanFragmentSSR(t){const e=this.fragmentParamsToObject(t.fragment);delete e.page,delete e.r,t.fragment=this.ObjectToFragmentParams(e)}static firtPart(t,e){let n=t;if(t&&""!=t&&null!=t){let i=t.split(e);i.length>0&&(n=i[0])}return n}static precisionRound(t,e){let n=t;if(e<0){let i=Math.pow(10,e);n=Math.round(t*i)/i}else n=+(Math.round(Number(t+"e+"+e))+"e-"+e),n=Math.round(n*Math.pow(10,2))/Math.pow(10,2);return n}static filterContains(t,e,n=[]){return t.filter(t=>t[e].some(t=>n.includes(t)))}static stripHtml(t){if(null!=t){let t=(new DOMParser).parseFromString("

ddddddddddd

","text/html").body.textContent||"";return t=t.replace(/\u0009/g," ").replace(/[\n\r\t]/g,""),t}return""}static stripHtmlDP(t){if(null!=t){const e=document.createElement("div");e.innerHTML=t;let n=e.textContent||e.innerText||"";return n=n.replace(/\u0009/g," ").replace(/[\n\r\t]/g,""),n}return""}static getConfiguredUrl(t){return"/"+t.pathFromRoot.filter(t=>t.routeConfig).map(t=>t.routeConfig.path).join("/")}static utf8_encode(t){if(null==t)return"";var e,n,i,s=t+"",r="";e=n=0,i=s.length;for(var o=0;o127&&a<2048)l=String.fromCharCode(a>>6|192,63&a|128);else if(55296!=(63488&a))l=String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128);else{if(55296!=(64512&a))throw new RangeError("Unmatched trail surrogate at "+o);var c=s.charCodeAt(++o);if(56320!=(64512&c))throw new RangeError("Unmatched lead surrogate at "+(o-1));a=((1023&a)<<10)+(1023&c)+65536,l=String.fromCharCode(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}null!==l&&(n>e&&(r+=s.slice(e,n)),r+=l,e=n=o+1)}return n>e&&(r+=s.slice(e,i)),r}static md5(t){t=t.toLowerCase();var e,n,i,s,r,o,a,l,c,u,h,d=function(t,e){return t<>>32-e},p=function(t,e){var n,i,s,r,o;return s=2147483648&t,r=2147483648&e,o=(1073741823&t)+(1073741823&e),(n=1073741824&t)&(i=1073741824&e)?2147483648^o^s^r:n|i?1073741824&o?3221225472^o^s^r:1073741824^o^s^r:o^s^r},m=function(t,e,n,i,s,r,o){return t=p(t,p(p(function(t,e,n){return t&e|~t&n}(e,n,i),s),o)),p(d(t,r),e)},f=function(t,e,n,i,s,r,o){return t=p(t,p(p(function(t,e,n){return t&n|e&~n}(e,n,i),s),o)),p(d(t,r),e)},g=function(t,e,n,i,s,r,o){return t=p(t,p(p(function(t,e,n){return t^e^n}(e,n,i),s),o)),p(d(t,r),e)},b=function(t,e,n,i,s,r,o){return t=p(t,p(p(function(t,e,n){return e^(t|~n)}(e,n,i),s),o)),p(d(t,r),e)},_=function(t){var e,n="",i="";for(e=0;e<=3;e++)n+=(i="0"+(t>>>8*e&255).toString(16)).substr(i.length-2,2);return n};for(l=1732584193,c=4023233417,u=2562383102,h=271733878,e=(n=function(t){for(var e,n=t.length,i=n+8,s=16*((i-i%64)/64+1),r=new Array(s-1),o=0,a=0;a>>29,r}(t=this.utf8_encode(t))).length,i=0;i{const e=("0"+(t.getMonth()+1)).slice(-2),n=("0"+t.getDate()).slice(-2);return[t.getFullYear(),e,n].join("-")},t.fragmentParamsToObject=t=>{if(t&&null!==t&&""!==t){const e=t.split("&").map(t=>t.split("~"));return Object.fromEntries(e)}return{}},t.queryParamToObject=t=>{let e=[];return t&&null!==t&&""!==t&&t.split("*").forEach(t=>{const n=t.split("~");n.splice(0,1),e=e.concat(n)}),e},t.ObjectToFragmentParams=t=>null!==t?Object.entries(t).sort((t,e)=>{const n=t[0].toLowerCase(),i=e[0].toLowerCase();return ni?1:0}).map(t=>t.join("~")).join("&"):"",t.groupBy=(t,e)=>t.reduce((t,n)=>{const i=n[e];return t[i]=t[i]||[],t[i].push(n),t},{}),t.trasformTo=(t,e)=>Object.entries(t).map(t=>e(t[0],t[1])),t.orderBy=(t,e)=>t.sort((t,n)=>{const i=e(t).toUpperCase(),s=e(n).toUpperCase();let r=0;return i>s?r=1:it.filter(t=>e.includes(t)),t.goto=(e,n,i=0)=>{const s=Math.max(document.body.clientHeight,document.documentElement.clientHeight),r=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),o=n.querySelector(e);if(null!=o){const e=Math.min(o.offsetTop-i,s-r-2);t.smoothMove(e,n.documentElement.scrollTop||n.body.scrollTop,n)}},t.scrollto=(e,n)=>{e&&null!==e&&0!==e[1]&&t.smoothMove(e[1],n.documentElement.scrollTop||n.body.scrollTop,n)},t.smoothMove=(t,e,n)=>{let i=-1;e>t?function e(){const s=n.documentElement.scrollTop||n.body.scrollTop;s>t&&s!==i&&(i=s,window.requestAnimationFrame(e),window.scrollTo(0,s-(s-t)/8))}():function e(){const s=n.documentElement.scrollTop||n.body.scrollTop;s{"use strict";n.d(e,{N:()=>i});const i={production:!0,apiBaseUrl:"https://web-api.portobellostreet.es/",apiBaseUrlPRO:"https://web-api.portobellostreet.es/",apiBaseUrlNG:"https://api.ng.portobellostreet.es/",ssrUrl:"http://localhost:4000/",ssrUrlCHGPRO:"http://localhost:4000/",ssrUrlCHGNG:"http://localhost:4001/",ssrUrlCHGSTAGING:"http://localhost:4002/",domain:"https://www.portobellostreet.es",domainCHGPRO:"https://www.portobellostreet.es",domainCHGNG:"https://ng.portobellostreet.es",domainCHGSTAGING:"https://staging.portobellostreet.es",fromAPI:!0,cecaTPVUrl:"https://pgw.ceca.es/tpvweb/tpv/compra.action",cecaTPVUrlCHGPRO:"https://pgw.ceca.es/tpvweb/tpv/compra.action",cecaTPVUrlCHGNG:"https://tpv.ceca.es/tpvweb/tpv/compra.action",cecaTPVUrlCHGSTAGING:"https://tpv.ceca.es/tpvweb/tpv/compra.action",cetelemTPVUrl:"https://www.cetelem.es/eCommerceLite/configuracion.htm",cetelemTPVUrlCHGPRO:"https://www.cetelem.es/eCommerceLite/configuracion.htm",cetelemTPVUrlCHGNG:"https://test.cetelem.es/eCommerceLite/configuracion.htm",cetelemTPVUrlCHGSTAGING:"https://test.cetelem.es/eCommerceLite/configuracion.htm",paypalQuery:"client-id=ASGyEC8kvW0saCOATvRXJoJFGlI8poa_RL_lrk8B6OK5joKGceAxIp3g2a1ve27nqdyUXiq4pmO0t7VK¤cy=EUR&disable-funding=card,credit,sofort,bancontact,blik,eps,giropay,ideal,mybank,p24,sepa,venmo",paypalQueryCHGPRO:"client-id=ASGyEC8kvW0saCOATvRXJoJFGlI8poa_RL_lrk8B6OK5joKGceAxIp3g2a1ve27nqdyUXiq4pmO0t7VK¤cy=EUR&disable-funding=card,credit,sofort,bancontact,blik,eps,giropay,ideal,mybank,p24,sepa,venmo",paypalQueryCHGNG:"client-id=AacFWkArvCRVZuoetXwr5jkKY4CudzDlYWhpO8xaXRgDLR9yvnP_F-w49QQOxsSaRJIbeyKSDfOCBY_-¤cy=EUR&disable-funding=card,credit,sofort,bancontact,blik,eps,giropay,ideal,mybank,p24,sepa,venmo",paypalQueryCHGSTATING:"client-id=AacFWkArvCRVZuoetXwr5jkKY4CudzDlYWhpO8xaXRgDLR9yvnP_F-w49QQOxsSaRJIbeyKSDfOCBY_-¤cy=EUR&disable-funding=card,credit,sofort,bancontact,blik,eps,giropay,ideal,mybank,p24,sepa,venmo",tag_manager_key:"GTM-M6BP8M9",edrone_app_key:"5c8a6aae4287d",fb_key:"1720875934842690",oficinaIP:"#83.56.23.57#",contrarlimit:600,pinfopages:[],CRAWLER_AGENTS:["googlebot","yandexbot","yahoo","bingbot","baiduspider","facebookexternalhit","twitterbot","rogerbot","linkedinbot","embedly","quora link preview","showyoubot","outbrain","pinterest/0.","developers.google.com/+/web/snippet","slackbot","vkshare","w3c_validator","redditbot","applebot","ahrefsbot","semrushbot","whatsapp","flipboard","tumblr","bitlybot","skypeuripreview","pinterestbot","nuzzel","discordbot","google page speed","lighthouse","screaming"],pepperConfiguration:{basePath:"https://api.peppermoney.es",tokenPath:"/api-security/v2/token",orderPath:"/api-ecommerce/v2/orders",apikey:"PTHmCLl2RG701MchFALqErnn4IAIqhVF",secret:"NGzBvVHWanMvxAMI",usuario:"ECP64467",password:"OIB4KCBQYXBHAR3LHE7!",urlCallback:"https://web-api.portobellostreet.es/api/tpv/changeStatus",environment:"PRD",language:"ES",currency:"EUR",publicKey:"fd85212c3f5ecfa71f1b4ffd80c43be7",secretKey:"e5f854cfc64f3ec8a6ed906d429fe9b4",min:60,max:2e3}}},7528:(t,e,n)=>{"use strict";var i=n(9075),s=n(7716),r=n(6237),o=n(8583),a=n(4655);const l=[{path:"inicio",redirectTo:"",pathMatch:"full"},{path:"",loadChildren:()=>Promise.all([n.e(501),n.e(325),n.e(482),n.e(592),n.e(495)]).then(n.bind(n,9495)).then(t=>t.HomeModule)},{path:"tienda",loadChildren:()=>Promise.all([n.e(171),n.e(103),n.e(645)]).then(n.bind(n,4645)).then(t=>t.ShopModule)},{path:"blog",loadChildren:()=>Promise.all([n.e(171),n.e(500),n.e(355),n.e(592),n.e(390)]).then(n.bind(n,7551)).then(t=>t.BlogModule)},{path:"cuenta",loadChildren:()=>n.e(103).then(n.bind(n,1103)).then(t=>t.AccountModule)},{matcher:t=>1===t.length&&t[0].path.match("^buscador$")?{consumed:[]}:null,loadChildren:()=>Promise.all([n.e(171),n.e(501),n.e(500),n.e(355),n.e(978),n.e(107)]).then(n.bind(n,8107)).then(t=>t.SearchModule)},{matcher:t=>1===t.length&&t[0].path.match("^subasta$")?{consumed:[]}:null,loadChildren:()=>Promise.all([n.e(171),n.e(103),n.e(560),n.e(592),n.e(831)]).then(n.bind(n,4831)).then(t=>t.SubastaModule)},{matcher:t=>1===t.length&&"n"===t[0].path&&t[1].path.match("^nav-estilos$|^nav-espacios$|^muebles$")?{consumed:[]}:2===t.length&&"n"===t[0].path&&t[1].path.match("^estilos$|^espacios$|^marcas$|^tendencias$")||3===t.length&&"n"===t[0].path&&t[1].path.match("^estilos$|^espacios$")||2===t.length&&"n"===t[0].path?{consumed:t.slice(0,1)}:null,loadChildren:()=>Promise.all([n.e(592),n.e(913)]).then(n.bind(n,5859)).then(t=>t.NavModule)},{matcher:t=>t.length>=2&&"s"===t[0].path?{consumed:t.slice(0,1)}:null,loadChildren:()=>Promise.all([n.e(171),n.e(501),n.e(500),n.e(325),n.e(592),n.e(157)]).then(n.bind(n,3157)).then(t=>t.UsModule)},{matcher:t=>t.length>=1&&t[0].path.match(/^producto-by-id$|^producto-by-ref$|^producto-by-guid$/g)?{consumed:[]}:null,loadChildren:()=>Promise.all([n.e(171),n.e(560),n.e(542)]).then(n.bind(n,8542)).then(t=>t.ProductModule)},{matcher:t=>1===t.length&&t[0].path.match("^en-exposicion$|^novedades-en-muebles$")||t.length>=1&&t[0].path.match("^outlet$|^blackfriday$|^rebajas$")?{consumed:[]}:t.length>1&&"c"===t[0].path?{consumed:t.slice(0,1)}:null,loadChildren:()=>Promise.all([n.e(171),n.e(501),n.e(500),n.e(325),n.e(355),n.e(482),n.e(978),n.e(592),n.e(814)]).then(n.bind(n,5814)).then(t=>t.ProductsModule)},{path:"p",loadChildren:()=>Promise.all([n.e(171),n.e(560),n.e(542)]).then(n.bind(n,8542)).then(t=>t.ProductModule)},{path:"**",loadChildren:()=>n.e(516).then(n.bind(n,9516)).then(t=>t.PageNotFoundModule)}];let c=(()=>{class t{}return t.components=[],t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[a.Bz.forRoot(l,{initialNavigation:"enabled",scrollPositionRestoration:"disabled",anchorScrolling:"disabled",relativeLinkResolution:"legacy",preloadingStrategy:a.GZ,onSameUrlNavigation:"reload"})],a.Bz]}),t})();class u{constructor(t){if(t)throw new Error(`${t.constructor.name} has already been loaded. Import this module in the AppModule only.`)}}var h=n(1841),d=n(6388),p=n(5917),m=n(2340),f=n(8307),g=n(4677),b=n(4080);let _=(()=>{class t{constructor(t,e,n,i){this.accountCoreService=t,this.platformId=e,this.logger=n,this.ngZone=i}intercept(t,e){if((0,o.NF)(this.platformId)){if(t.url.indexOf(m.N.apiBaseUrl)>-1){const n=this.accountCoreService.accountValue,i=n&&n.jwtToken,s=t.url.startsWith(m.N.apiBaseUrl);return i&&s&&(t=t.clone({setHeaders:{Authorization:`Bearer ${n.jwtToken}`}})),e.handle(t)}return e.handle(t)}{if("GET"!==t.method)return e.handle(t);{let n=!1;if(t.url.indexOf("/api/pagenodes/nav-menu")>0&&(n=!0),t.url.indexOf("/api/pagenodes/footer")>0&&(n=!0),!n)return e.handle(t)}const n=d.get(t.url);return n&&null!=n&&n.length>0?(this.logger.log("get cached",t.url),(0,p.of)(new h.Zn({body:n,status:200}))):e.handle(t).pipe((0,f.b)(e=>{e instanceof h.Zn&&this.ngZone.runOutsideAngular(()=>{this.logger.log("set cached",t.url),this.logger.log("set cached length",e.body.length),d.put(t.url,e.body,6e4)})}))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(g.Y),s.LFG(s.Lbi),s.LFG(b.m),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();var y=n(5304),v=n(205);let w=(()=>{class t{constructor(t){this.accountCoreService=t}intercept(t,e){return e.handle(t).pipe((0,y.K)(e=>([401,403].includes(e.status)&&null!=this.accountCoreService.accountValue.jwtToken&&t.url.indexOf(m.N.apiBaseUrl)>-1&&this.accountCoreService.logout("/"),(0,v._)(e))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(g.Y))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();var S=n(8418),x=n(6627),T=n(2458),C=n(521);const A=["*",[["mat-toolbar-row"]]],k=["*","mat-toolbar-row"],E=(0,T.pj)(class{constructor(t){this._elementRef=t}});let I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),O=(()=>{class t extends E{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(C.t4),s.Y36(o.K0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,I,5),2&t){let t;s.iGM(t=s.CRH())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.qOj],ngContentSelectors:k,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t(A),s.Hsn(0),s.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%}\n"],encapsulation:2,changeDetection:0}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[T.BQ],T.BQ]}),t})();var P=n(8295),L=n(7441),R=n(3679),D=n(9490),F=n(9765),N=n(6782);n(9761),n(9238),n(7860),n(6461);let Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[T.BQ],T.BQ]}),t})();const G=["*"],B=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],H=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],q=(0,T.Id)((0,T.Kr)(class{})),V=(0,T.Kr)(class{}),U=new s.OlP("MatList"),j=new s.OlP("MatNavList");let z=(()=>{class t extends q{constructor(t){super(),this._elementRef=t,this._stateChanges=new F.xQ,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[s._Bn([{provide:U,useExisting:t}]),s.qOj,s.TTD],ngContentSelectors:G,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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{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:transparent;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{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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.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}}\n'],encapsulation:2,changeDetection:0}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),W=(()=>{class t extends V{constructor(t,e,n,i){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new F.xQ,this._disabled=!1,this._isInteractiveList=!!(n||i&&"action-list"===i._getListType()),this._list=n||i;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,N.R)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=(0,D.Ig)(t)}ngAfterContentInit(){(0,T.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 t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(j,8),s.Y36(U,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,Y,5),s.Suo(n,$,5),s.Suo(n,T.X2,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._avatar=t.first),s.iGM(t=s.CRH())&&(e._icon=t.first),s.iGM(t=s.CRH())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.qOj],ngContentSelectors:H,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(t,e){1&t&&(s.F$t(B),s.TgZ(0,"div",0),s._UZ(1,"div",1),s.Hsn(2),s.TgZ(3,"div",2),s.Hsn(4,1),s.qZA(),s.Hsn(5,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[T.wG],encapsulation:2,changeDetection:0}),t})(),Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[T.uc,T.si,T.BQ,T.us,o.ez],T.uc,T.BQ,T.us,Z]}),t})();var K=n(3017),X=n(8696),J=n(3935),tt=n(7539),et=n(2178);let nt=(()=>{class t extends u{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o.ez,a.Bz,S.m,x.Ps,M,P.lN,L.LD,R.UX,Q,K.SJ,X.E,J.Tx,tt.p9,et.Cv]]}),t})(),it=(()=>{class t extends u{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:h.TP,useClass:_,multi:!0},{provide:h.TP,useClass:w,multi:!0}],imports:[[o.ez,h.JF],nt,h.JF]}),t})(),st=(()=>{class t{constructor(){}prepareRoute(t){return t&&t.activatedRouteData}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})();var rt=n(5435),ot=n(1289),at=n(6215),lt=n(8002),ct=n(8145),ut=n(6633),ht=n(1135),dt=n(5618),pt=n(8030),mt=n(1095),ft=n(6824);const gt=function(t){return[t]},bt=function(){return{exact:!0}};function _t(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"a",10),s.NdJ("click",function(){return s.CHM(t),s.oxw(6).toggleSidenav.emit()}),s._uU(2),s.qZA(),s.qZA()}if(2&t){const t=s.oxw().$implicit;s.xp6(1),s.Q6J("routerLink",s.VKq(3,gt,t.node.url))("routerLinkActiveOptions",s.DdM(5,bt)),s.xp6(1),s.Oqu(t.node.title)}}function yt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",11),s.NdJ("click",function(e){s.CHM(t);const n=s.oxw().$implicit,i=s.oxw(5);return i.showmenu(n.node.pageId),i.stopClickPropagate(e)}),s.TgZ(2,"a",12),s.NdJ("click",function(e){s.CHM(t);const n=s.oxw().$implicit,i=s.oxw(5);return i.showmenu(n.node.pageId),i.stopClickPropagate(e)}),s._uU(3),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(),e=t.index,n=t.$implicit;s.xp6(1),s.s9C("id","titulo"+e),s.xp6(1),s.Q6J("href",n.node.url,s.LSH),s.xp6(1),s.Oqu(n.node.title)}}function vt(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,_t,3,6,"div",1),s.YNc(2,yt,4,3,"div",1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("ngIf",0==t.sections.length),s.xp6(1),s.Q6J("ngIf",t.sections.length>0)}}function wt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",5),s.YNc(1,vt,3,2,"div",4),s.TgZ(2,"div",6),s.TgZ(3,"form",7),s.NdJ("ngSubmit",function(){return s.CHM(t),s.oxw(4).search()}),s.TgZ(4,"input",8),s.NdJ("keyup.enter",function(){return s.CHM(t),s.oxw(4).search()}),s.qZA(),s.TgZ(5,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw(4).search()}),s.TgZ(6,"mat-icon"),s._uU(7,"search"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2).ngIf,e=s.oxw(2);s.xp6(1),s.Q6J("ngForOf",t)("ngForTrackBy",e.trackbyService.megaMenu),s.xp6(2),s.Q6J("formGroup",e.searchForm)}}function St(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"a",18),s.NdJ("click",function(){return s.CHM(t),s.oxw(7).toggleSidenav.emit()}),s._uU(1),s.qZA()}if(2&t){const t=e.$implicit;s.Q6J("routerLink",s.VKq(2,gt,t.url)),s.xp6(1),s.Oqu(t.title)}}function xt(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"span",16),s.TgZ(2,"b"),s._uU(3),s.qZA(),s.qZA(),s.YNc(4,St,2,4,"a",17),s.BQk()),2&t){const t=e.$implicit,n=s.oxw(6);s.xp6(3),s.Oqu(t.section),s.xp6(1),s.Q6J("ngForOf",t.nodes)("ngForTrackBy",n.trackbyService.pageNode)}}const Tt=function(t){return{display:t}};function Ct(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",13),s.TgZ(2,"div"),s.TgZ(3,"mat-icon",14),s.NdJ("click",function(){return s.CHM(t),s.oxw(5).hidemenu()}),s._uU(4,"arrow_upward"),s.qZA(),s._UZ(5,"img",15),s.YNc(6,xt,5,3,"ng-container",4),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(),e=t.index,n=t.$implicit,i=s.oxw(4);s.xp6(1),s.s9C("id","contenido"+e),s.Q6J("ngStyle",s.VKq(6,Tt,i.sublevel==n.node.pageId?"block":"none")),s.xp6(4),s.s9C("src",n.node.imgUri2,s.LSH),s.s9C("alt",n.node.title),s.xp6(1),s.Q6J("ngForOf",n.sections)("ngForTrackBy",i.trackbyService.megaMenuSection)}}function At(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,Ct,7,8,"div",1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("ngIf",t.sections.length>0)}}function kt(t,e){if(1&t&&(s.ynx(0),s.YNc(1,wt,8,3,"div",2),s.TgZ(2,"div",3),s.YNc(3,At,2,1,"div",4),s.qZA(),s.BQk()),2&t){const t=e.ngIf,n=s.oxw().ngIf,i=s.oxw(2);s.xp6(1),s.Q6J("ngIf",1==t),s.xp6(1),s.Q6J("ngStyle",s.VKq(4,Tt,2==t?"block":"none")),s.xp6(1),s.Q6J("ngForOf",n)("ngForTrackBy",i.trackbyService.megaMenu)}}function Et(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,kt,4,6,"ng-container",1),s.ALo(2,"async"),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("ngIf",s.lcZ(2,1,t.level$))}}function It(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,Et,3,3,"div",1),s.ALo(2,"async"),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngIf",s.lcZ(2,1,t.mainMenu$))}}let Ot=(()=>{class t{constructor(t,e,n,i,r,a,l){this.menuService=t,this.logger=e,this.trackbyService=n,this.router=i,this.deviceService=r,this.fb=a,this.platformId=l,this.toggleSidenav=new s.vpe,this.isDesktop=!0,this.sublevel="",this.isActive=!0,this.searchForm=this.searchbuildForm();let c="";(0,o.NF)(this.platformId)&&(c=this.getParameterByName("param")),this.mainMenu$=this.menuService.getPageNodesObs("nav-main",c).pipe((0,lt.U)(t=>t)),this.isDesktop=this.deviceService.isDesktop(),this.levelSubject$=new at.X(1),this.level$=this.levelSubject$.asObservable()}ngOnInit(){}getParameterByName(t){let e=window.location.href;t=t.replace(/[[]]/g,"$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}onClick(t){this.logger.info("sidenvMEnu onclick: "+t)}showmenu(t){this.logger.info("sidenvMEnu onclick: "+t),this.levelSubject$.next(2),this.sublevel=t}hidemenu(){this.levelSubject$.next(1)}activateClass(t){t.active=!t.active}stopClickPropagate(t){return t.stopPropagation(),t.preventDefault(),!1}search(){var t;if(this.searchForm.valid){const e=null===(t=this.searchForm.get("value"))||void 0===t?void 0:t.value;e.length>3&&(this.toggleSidenav.emit(),e.trim().length<=9&&("p"==e.trim().substring(0,1).toLowerCase()||"m"==e.trim().substring(0,1).toLowerCase())?this.menuService.gotoRef(e.trim()):this.router.navigate(["/buscador"],{queryParams:{search:encodeURIComponent(e)},fragment:void 0,replaceUrl:!1}))}}searchbuildForm(){return this.fb.group({value:[null,[R.kI.required]]})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(ct.h),s.Y36(b.m),s.Y36(ut.v),s.Y36(a.F0),s.Y36(ht.x0),s.Y36(R.qu),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-sidenav-menu"]],outputs:{toggleSidenav:"toggleSidenav"},decls:2,vars:1,consts:[["fxLayout","column","fxLayoutAlign","center center",1,"sidenav-menu"],[4,"ngIf"],["class","side-title",4,"ngIf"],[1,"side-conte",3,"ngStyle"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"side-title"],[1,"sidesearch"],["fxLayout","row","novalidate","",1,"search-form","minShadow",3,"formGroup","ngSubmit"],["type","text","formControlName","value","id","searchM","cdkFocusInitial","","placeholder","Escribe para buscar...","fxFlex","",3,"keyup.enter"],["mat-button","","type","button",1,"search-btn","text-muted","gradient",3,"click"],["mat-button","","fxLayout","row","fxLayoutAlign","start center","routerLinkActive","active-link",3,"routerLink","routerLinkActiveOptions","click"],[3,"id","click"],["mat-button","","fxLayout","row","fxLayoutAlign","start center",3,"href","click"],[3,"id","ngStyle"],[1,"Iconoatras","ml-1",3,"click"],["loading","lazy","height","159","width","270",1,"imgside",3,"src","alt"],[1,"sidespan"],[3,"routerLink","click",4,"ngFor","ngForOf","ngForTrackBy"],[3,"routerLink","click"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,It,3,3,"div",1),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",!e.isDesktop))},directives:[dt.xw,dt.Wh,o.O5,o.PC,pt.Zl,o.sg,R._Y,R.JL,R.sg,R.Fj,R.JJ,R.u,dt.yH,mt.lW,x.Hw,mt.zs,a.yS,a.Od,ft.V],pipes:[o.Ov],encapsulation:2,changeDetection:0}),t})();var Mt=n(2255),Pt=n(2238),Lt=n(4444),Rt=n(6837),Dt=n(6895);function Ft(t,e){if(1&t&&(s.TgZ(0,"span",23),s._uU(1),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.Oqu(t.details.length)}}function Nt(t,e){if(1&t&&(s.TgZ(0,"span",23),s._uU(1),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.Oqu(t.details.length)}}function Zt(t,e){1&t&&(s.TgZ(0,"span"),s._uU(1,"S"),s.qZA())}const Gt=function(){return["/tienda/favoritos"]};function Bt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",24),s.TgZ(1,"b"),s.TgZ(2,"span"),s._uU(3),s.YNc(4,Zt,2,0,"span",0),s.qZA(),s.qZA(),s.TgZ(5,"b"),s.TgZ(6,"a",25),s.NdJ("click",function(){return s.CHM(t),s.oxw(),s.MAs(11).toggle()}),s._uU(7,"Ir a favoritos"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw().ngIf;s.xp6(3),s.hij("",t.details.length," ART\xcdCULO"),s.xp6(1),s.Q6J("ngIf",t.details.length>1),s.xp6(2),s.Q6J("routerLink",s.DdM(3,Gt))}}function Ht(t,e){1&t&&(s.TgZ(0,"div",26),s._uU(1,"No hay favoritos."),s.qZA())}function qt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-list-item"),s.TgZ(1,"a",27),s.NdJ("click",function(){return s.CHM(t),s.oxw(),s.MAs(11).toggle()}),s._UZ(2,"img",28),s.ALo(3,"safeUrl"),s.qZA(),s.TgZ(4,"h3",29),s.TgZ(5,"a",30),s.NdJ("click",function(){return s.CHM(t),s.oxw(),s.MAs(11).toggle()}),s._uU(6),s.qZA(),s.qZA(),s.TgZ(7,"button",31),s.NdJ("click",function(e){const n=s.CHM(t).$implicit,i=s.oxw(2);return i.remove(n),i.stopClickPropagate(e)}),s.TgZ(8,"mat-icon",12),s._uU(9,"close"),s.qZA(),s.qZA(),s._UZ(10,"div",14),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(1),s.Q6J("routerLink",t.uri)("fragment",t.fragment),s.xp6(1),s.s9C("alt",t.name),s.Q6J("src",s.lcZ(3,8,t.img),s.LSH),s.xp6(3),s.s9C("title",t.name),s.Q6J("routerLink",t.uri)("fragment",t.fragment),s.xp6(1),s.Oqu(t.name)}}function Vt(t,e){if(1&t){const t=s.EpF();s.ynx(0),s.TgZ(1,"div",1),s.NdJ("click",function(){return s.CHM(t),s.MAs(11).toggle()}),s.TgZ(2,"a",2),s.TgZ(3,"mat-icon"),s._uU(4,"favorite_border"),s.qZA(),s.YNc(5,Ft,2,1,"span",3),s.YNc(6,Nt,2,1,"span",3),s.TgZ(7,"span",4),s._uU(8,"Favoritos"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(9,"mat-sidenav-container",5),s.TgZ(10,"mat-sidenav",6,7),s.TgZ(12,"div",8),s.TgZ(13,"div",9),s.TgZ(14,"div",10),s.TgZ(15,"h3"),s._uU(16,"Favoritos"),s.qZA(),s.qZA(),s.TgZ(17,"button",11),s.NdJ("click",function(){return s.CHM(t),s.MAs(11).toggle()}),s.TgZ(18,"mat-icon",12),s._uU(19,"highlight_off"),s.qZA(),s.qZA(),s.YNc(20,Bt,8,4,"div",13),s._UZ(21,"div",14),s.YNc(22,Ht,2,0,"div",15),s.qZA(),s.TgZ(23,"div",16),s.TgZ(24,"mat-list"),s.YNc(25,qt,11,10,"mat-list-item",17),s.qZA(),s.qZA(),s.TgZ(26,"div",18),s._UZ(27,"div",19),s.TgZ(28,"div",20),s.TgZ(29,"a",21),s.NdJ("click",function(e){s.CHM(t);const n=s.oxw();return n.clear(),n.stopClickPropagate(e)}),s._uU(30," Vaciar los favoritos "),s.TgZ(31,"mat-icon"),s._uU(32,"restart_alt"),s.qZA(),s.qZA(),s.TgZ(33,"a",22),s.NdJ("click",function(){return s.CHM(t),s.MAs(11).toggle()}),s._uU(34," Seguir comprando "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.BQk()}if(2&t){const t=e.ngIf,n=s.oxw();s.xp6(5),s.Q6J("ngIf",t.details.length>0&&"rotate-scale-up"==t.animClass),s.xp6(1),s.Q6J("ngIf",t.details.length>0&&"rotate-scale-up-reverse"==t.animClass),s.xp6(14),s.Q6J("ngIf",t.details.length>0),s.xp6(2),s.Q6J("ngIf",0==t.details.length),s.xp6(3),s.Q6J("ngForOf",t.details)("ngForTrackBy",n.trackbyService.cartItem)}}let Ut=(()=>{class t{constructor(t,e){this.shopCoreService=t,this.trackbyService=e,this.cart$=this.shopCoreService.favoritos$}ngOnInit(){}stopClickPropagate(t){t.stopPropagation(),t.preventDefault()}remove(t){this.shopCoreService.RemoveFromCart(t,Lt.EI.Favoritos)}clear(){this.shopCoreService.ClearCart(Lt.EI.Favoritos)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Rt.A),s.Y36(ut.v))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-top-fav"]],decls:2,vars:3,consts:[[4,"ngIf"],["id","top-cart",3,"click"],["mat-button","","title","favoritos","aria-label","favoritos","rel","nofollow"],["class","cart-items-count rotate-scale-up",4,"ngIf"],[1,"hide-lt-sm"],[1,"sidenav-container-carrito","sidenav-favoritos"],["position","end",1,"contenido-sidenav","mat-sidenav-fixed"],["drawerfav",""],[2,"height","100%","width","100%"],[1,"headerfiltro"],[1,"mt-1","ml-1","mt-2","TituloFiltro"],["mat-button","",1,"ml-1","mb-1","mr-1","Btn-Cerrar",3,"click"],[1,"mat-icon-sm"],["fxLayout","row","fxLayoutAlign","space-between center","class","text-muted mt-1 ml-1 mr-1","style","clear:both;",4,"ngIf"],[1,"divider","mt-1",2,"clear","both"],["class","py-1 text-muted text-center",4,"ngIf"],[1,"contentfiltro"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"footerfiltro"],[1,"divider"],[1,"mb-1","mt-05",2,"width","90%","margin","auto"],["mat-raised-button","","color","warn",2,"width","100%",3,"click"],[1,"alpha-65",2,"display","block","margin-top","5px",3,"click"],[1,"cart-items-count","rotate-scale-up"],["fxLayout","row","fxLayoutAlign","space-between center",1,"text-muted","mt-1","ml-1","mr-1",2,"clear","both"],[1,"text-muted",3,"routerLink","click"],[1,"py-1","text-muted","text-center"],["matListAvatar","","matTooltip","Ir al producto","matTooltipPosition","after",3,"routerLink","fragment","click"],["lazy","",3,"src","alt"],["matLine","",1,"text-muted"],[3,"routerLink","fragment","title","click"],["mat-icon-button","","color","warn","title","Quitar del carrito",1,"remove",3,"click"]],template:function(t,e){1&t&&(s.YNc(0,Vt,35,6,"ng-container",0),s.ALo(1,"async")),2&t&&s.Q6J("ngIf",s.lcZ(1,1,e.cart$))},directives:[o.O5,mt.zs,x.Hw,K.TM,K.JX,mt.lW,z,o.sg,dt.xw,dt.Wh,a.yS,W,Y,T.X2],pipes:[o.Ov,Dt.Q5],encapsulation:2,changeDetection:0}),t})();const jt=["drawer"];function zt(t,e){if(1&t&&(s.TgZ(0,"span",27),s._uU(1),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.Oqu(t.amount)}}function Yt(t,e){if(1&t&&(s.TgZ(0,"span",27),s._uU(1),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.Oqu(t.amount)}}function $t(t,e){1&t&&(s.TgZ(0,"span"),s._uU(1,"S"),s.qZA())}function Wt(t,e){if(1&t&&(s.TgZ(0,"b"),s.TgZ(1,"span"),s._uU(2),s.YNc(3,$t,2,0,"span",0),s.qZA(),s.qZA()),2&t){const t=s.oxw(2).ngIf;s.xp6(2),s.hij("",t.amount," ART\xcdCULO"),s.xp6(1),s.Q6J("ngIf",t.amount>1)}}const Qt=function(){return["/tienda/carrito"]};function Kt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"b"),s.TgZ(1,"a",29),s.NdJ("click",function(){return s.CHM(t),s.oxw(2),s.MAs(10).toggle()}),s._uU(2,"Ir al carrito"),s.qZA(),s.qZA()}2&t&&(s.xp6(1),s.Q6J("routerLink",s.DdM(1,Qt)))}function Xt(t,e){1&t&&(s.TgZ(0,"b"),s.TgZ(1,"span"),s._uU(2,"0 ART\xcdCULOS"),s.qZA(),s.qZA())}function Jt(t,e){if(1&t&&(s.TgZ(0,"div",28),s.YNc(1,Wt,4,2,"b",0),s.YNc(2,Kt,3,2,"b",0),s.YNc(3,Xt,3,0,"b",0),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.Q6J("ngIf",t.status<2),s.xp6(1),s.Q6J("ngIf",t.status<2),s.xp6(1),s.Q6J("ngIf",2==t.status)}}function te(t,e){1&t&&(s.TgZ(0,"div",30),s._uU(1,"El carrito est\xe1 vac\xedo."),s.qZA())}function ee(t,e){if(1&t&&(s.TgZ(0,"p",35),s.TgZ(1,"small"),s._uU(2),s.qZA(),s.qZA()),2&t){const t=s.oxw(2).$implicit;s.xp6(2),s.Oqu(t.pOption)}}function ne(t,e){if(1&t&&(s.TgZ(0,"p",35),s.TgZ(1,"small"),s._uU(2),s.qZA(),s.qZA()),2&t){const t=s.oxw(2).$implicit;s.xp6(2),s.Oqu(t.pSubOption)}}function ie(t,e){if(1&t&&(s.TgZ(0,"p",44),s.TgZ(1,"small",45),s._uU(2),s.qZA(),s.qZA()),2&t){const t=s.oxw(2).$implicit;s.xp6(1),s.Q6J("title",t.observations),s.xp6(1),s.Oqu(t.observations)}}function se(t,e){1&t&&(s.TgZ(0,"small",48),s._uU(1,"El precio de este art\xedculo no incluye el anclaje a la pared."),s.qZA())}function re(t,e){1&t&&(s.TgZ(0,"small",49),s._uU(1,"El precio de este art\xedculo no incluye la instalaci\xf3n ni en el techo ni en la pared."),s.qZA())}function oe(t,e){if(1&t&&(s.TgZ(0,"p",35),s.YNc(1,se,2,0,"small",46),s.YNc(2,re,2,0,"small",47),s.qZA()),2&t){const t=s.oxw(2).$implicit;s.xp6(1),s.Q6J("ngIf",0==t.notice.indexOf("##Colgar##")),s.xp6(1),s.Q6J("ngIf",0==t.notice.indexOf("##Techo##"))}}function ae(t,e){if(1&t&&(s.TgZ(0,"mat-option",50),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t," ")}}function le(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",51),s.NdJ("click",function(e){s.CHM(t);const n=s.oxw(2).$implicit,i=s.oxw(3);return i.remove(n),i.stopClickPropagate(e)}),s.TgZ(1,"mat-icon",13),s._uU(2,"close"),s.qZA(),s.qZA()}}function ce(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-list-item"),s.TgZ(1,"a",33),s.NdJ("click",function(){return s.CHM(t),s.oxw(3),s.MAs(10).toggle()}),s._UZ(2,"img",34),s.ALo(3,"safeUrl"),s.qZA(),s.TgZ(4,"h3",35),s.TgZ(5,"a",36),s.NdJ("click",function(){return s.CHM(t),s.oxw(3),s.MAs(10).toggle()}),s._uU(6),s.qZA(),s.qZA(),s.YNc(7,ee,3,1,"p",37),s.YNc(8,ne,3,1,"p",37),s.YNc(9,ie,3,2,"p",38),s.YNc(10,oe,3,2,"p",39),s.TgZ(11,"p",35),s.TgZ(12,"mat-form-field",40),s.TgZ(13,"mat-select",41),s.NdJ("selectionChange",function(e){return s.CHM(t),s.oxw(4).amountSelectChange(e)}),s.YNc(14,ae,2,2,"mat-option",42),s.qZA(),s.qZA(),s._uU(15),s.ALo(16,"number"),s.qZA(),s.YNc(17,le,3,0,"button",43),s.qZA()}if(2&t){const t=s.oxw().$implicit,e=s.oxw(2).ngIf,n=s.oxw();s.xp6(1),s.Q6J("routerLink",t.uri)("fragment",t.fragment),s.xp6(1),s.s9C("alt",t.name),s.Q6J("src",s.lcZ(3,18,t.img),s.LSH),s.xp6(3),s.s9C("title",t.name),s.Q6J("routerLink",t.uri)("fragment",t.fragment),s.xp6(1),s.Oqu(t.name),s.xp6(1),s.Q6J("ngIf",null!=t.pOption&&"null"!=t.pOption),s.xp6(1),s.Q6J("ngIf",null!=t.pSubOption&&"null"!=t.pSubOption&&"-subasta-"!=t.pOption),s.xp6(1),s.Q6J("ngIf",null!=t.observations&&"null"!=t.observations),s.xp6(1),s.Q6J("ngIf",null!=t.notice&&""!=t.notice),s.xp6(3),s.Q6J("value",t.amount)("id","cquantity-"+t.cindex),s.xp6(1),s.Q6J("ngForOf",n.filterList(null==t.producto?null:t.producto.stock))("ngForTrackBy",n.trackbyService.directAny),s.xp6(1),s.hij(" x ",s.xi3(16,20,t.price,"1.2-2"),"\u20ac "),s.xp6(2),s.Q6J("ngIf",e.status<2)}}function ue(t,e){1&t&&(s.TgZ(0,"span"),s._uU(1," *"),s._UZ(2,"br"),s.TgZ(3,"em"),s._uU(4,"* "),s.TgZ(5,"a",54),s._uU(6,"Gatos de env\xedo productos KARE"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(5),s.Q6J("routerLink","/blog/gastos-de-envio-transportes-shipping"))}function he(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"p",53),s._uU(2),s.ALo(3,"number"),s.YNc(4,ue,7,1,"span",0),s.qZA(),s.qZA()),2&t){const t=s.oxw(2).$implicit;s.xp6(2),s.hij(" Gastos de env\xedo ",s.xi3(3,2,t.price,"1.2-2"),"\u20ac "),s.xp6(2),s.Q6J("ngIf",null!=t.pSubOption&&"Gastos env\xedo KARE"==t.pSubOption)}}function de(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"p",53),s._uU(2),s.ALo(3,"number"),s.qZA(),s.qZA()),2&t){const t=s.oxw(2).$implicit;s.xp6(2),s.hij(" Abono Gastos de env\xedo ",s.xi3(3,1,t.price,"1.2-2"),"\u20ac ")}}function pe(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"p",53),s._uU(2),s.ALo(3,"number"),s.qZA(),s.qZA()),2&t){const t=s.oxw(2).$implicit;s.xp6(2),s.AsE(" Promoci\xf3n ",t.name," ",s.xi3(3,2,t.price,"1.2-2"),"\u20ac ")}}function me(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"p",53),s._uU(2," Exenci\xf3n IVA Canarias."),s._UZ(3,"br"),s._uU(4),s.ALo(5,"number"),s.qZA(),s.qZA()),2&t){const t=s.oxw(2).$implicit;s.xp6(4),s.hij("(El IGIC se abonar\xe1 en las islas) ",s.xi3(5,1,t.price,"1.2-2"),"\u20ac ")}}function fe(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"p",53),s._uU(2," Exenci\xf3n IVA Ceuta y Melilla."),s._UZ(3,"br"),s._uU(4),s.ALo(5,"number"),s.qZA(),s.qZA()),2&t){const t=s.oxw(2).$implicit;s.xp6(4),s.hij("(El IPSI se abonar\xe1 en las ciudades aut\xf3nomas) ",s.xi3(5,1,t.price,"1.2-2"),"\u20ac ")}}function ge(t,e){if(1&t&&(s.TgZ(0,"mat-list-item",52),s.YNc(1,he,5,5,"div",0),s.YNc(2,de,4,4,"div",0),s.YNc(3,pe,4,5,"div",0),s.YNc(4,me,6,4,"div",0),s.YNc(5,fe,6,4,"div",0),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.Q6J("ngIf","GASTOSDEENVIO"==t.sku),s.xp6(1),s.Q6J("ngIf","GASTOSDEENVIOABONO"==t.sku),s.xp6(1),s.Q6J("ngIf","PROMOCION"==t.sku),s.xp6(1),s.Q6J("ngIf","IGIC"==t.sku),s.xp6(1),s.Q6J("ngIf","IPSI"==t.sku)}}function be(t,e){if(1&t&&(s.ynx(0),s.YNc(1,ce,18,23,"mat-list-item",0),s.YNc(2,ge,6,5,"mat-list-item",32),s.BQk()),2&t){const t=e.$implicit,n=s.oxw(2).ngIf;s.xp6(1),s.Q6J("ngIf","GASTOSDEENVIO"!=t.sku&&"GASTOSDEENVIOABONO"!=t.sku&&"PROMOCION"!=t.sku&&"IGIC"!=t.sku&&"IPSI"!=t.sku),s.xp6(1),s.Q6J("ngIf",("GASTOSDEENVIO"==t.sku||"GASTOSDEENVIOABONO"==t.sku||"PROMOCION"==t.sku||"IGIC"==t.sku||"IPSI"==t.sku)&&""!=n.accountId&&null!=n.accountId&&n.hasProducts&&0!=t.price)}}function _e(t,e){if(1&t&&(s.TgZ(0,"mat-list"),s.YNc(1,be,3,2,"ng-container",31),s.qZA()),2&t){const t=s.oxw().ngIf,e=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.details)("ngForTrackBy",e.trackbyService.cartItem)}}function ye(t,e){if(1&t&&(s.TgZ(0,"b",55),s._uU(1),s.ALo(2,"number"),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.hij("",s.xi3(2,1,t.totalPro,"1.2-2"),"\u20ac")}}function ve(t,e){if(1&t&&(s.TgZ(0,"b",55),s._uU(1),s.ALo(2,"number"),s.qZA()),2&t){const t=s.oxw().ngIf;s.xp6(1),s.hij("",s.xi3(2,1,t.total,"1.2-2"),"\u20ac")}}function we(t,e){1&t&&(s.TgZ(0,"b",55),s._uU(1),s.ALo(2,"number"),s.qZA()),2&t&&(s.xp6(1),s.hij("",s.xi3(2,1,0,"1.2-2"),"\u20ac"))}const Se=function(t){return[t]};function xe(t,e){if(1&t){const t=s.EpF();s.ynx(0),s.TgZ(1,"div",1),s.NdJ("click",function(){return s.CHM(t),s.MAs(10).toggle()}),s.TgZ(2,"a",2),s._UZ(3,"mat-icon",3),s.YNc(4,zt,2,1,"span",4),s.YNc(5,Yt,2,1,"span",4),s.TgZ(6,"span",5),s._uU(7,"Carrito"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(8,"mat-sidenav-container",6),s.TgZ(9,"mat-sidenav",7,8),s.TgZ(11,"div",9),s.TgZ(12,"div",10),s.TgZ(13,"div",11),s.TgZ(14,"h3"),s._uU(15,"Carrito"),s.qZA(),s.qZA(),s.TgZ(16,"button",12),s.NdJ("click",function(){return s.CHM(t),s.MAs(10).toggle()}),s.TgZ(17,"mat-icon",13),s._uU(18,"highlight_off"),s.qZA(),s.qZA(),s.YNc(19,Jt,4,3,"div",14),s._UZ(20,"div",15),s.YNc(21,te,2,0,"div",16),s.qZA(),s.TgZ(22,"div",17),s.YNc(23,_e,2,2,"mat-list",0),s.qZA(),s.TgZ(24,"div",18),s.TgZ(25,"div",19),s._UZ(26,"div",20),s.TgZ(27,"div",21),s.TgZ(28,"b"),s._uU(29,"TOTAL:"),s.qZA(),s.YNc(30,ye,3,4,"b",22),s.YNc(31,ve,3,4,"b",22),s.YNc(32,we,3,4,"b",22),s.qZA(),s.qZA(),s._UZ(33,"div",23),s.TgZ(34,"div",24),s.TgZ(35,"a",25),s.NdJ("click",function(){s.CHM(t);const e=s.MAs(10),n=s.oxw();return e.toggle(),n.actionGTM("Comprar")}),s._uU(36," Realizar pedido "),s.TgZ(37,"mat-icon"),s._uU(38,"check"),s.qZA(),s.qZA(),s.TgZ(39,"a",26),s.NdJ("click",function(){return s.CHM(t),s.MAs(10).toggle()}),s._uU(40," Seguir comprando "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.BQk()}if(2&t){const t=e.ngIf;s.xp6(4),s.Q6J("ngIf",t.status<2&&t.amount>0&&"rotate-scale-up"==t.animClass),s.xp6(1),s.Q6J("ngIf",t.status<2&&t.amount>0&&"rotate-scale-up-reverse"==t.animClass),s.xp6(14),s.Q6J("ngIf",t.amount>0),s.xp6(2),s.Q6J("ngIf",0==t.amount||2==t.status),s.xp6(2),s.Q6J("ngIf",t.status<2),s.xp6(7),s.Q6J("ngIf",t.status<2&&(""==t.accountId||null==t.accountId)),s.xp6(1),s.Q6J("ngIf",t.status<2&&""!=t.accountId&&null!=t.accountId),s.xp6(1),s.Q6J("ngIf",2==t.status),s.xp6(3),s.Q6J("routerLink",s.VKq(10,Se,2==t.status?null:"/tienda/comprar")),s.uIk("disabled",2==t.status)}}let Te=(()=>{class t{constructor(t,e,n){this.logger=t,this.shopCoreService=e,this.trackbyService=n,this.cart$=this.shopCoreService.carrito$,this.carsub$=this.cart$.subscribe(t=>{t.open&&null!=this.drawer&&this.drawer.open()})}ngOnInit(){}ngOnDestroy(){this.carsub$&&this.carsub$.unsubscribe()}filterList(t){let e=10;return null==t||null==t?e=10:(e=t,t>10&&(e=10)),[1,2,3,4,5,6,7,8,9,10].filter(t=>t<=e)}stopClickPropagate(t){t.stopPropagation(),t.preventDefault()}remove(t){this.shopCoreService.RemoveFromCart(t,Lt.EI.Carrito)}actionGTM(t){this.shopCoreService.sendGTM(t)}clear(){this.shopCoreService.ClearCart(Lt.EI.Carrito)}amountSelectChange(t){this.logger.info("amountSelectChange",t);const e=parseInt(t.source.id.replace("cquantity-",""));this.shopCoreService.changeAmount(e,t.value)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.m),s.Y36(Rt.A),s.Y36(ut.v))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-top-cart"]],viewQuery:function(t,e){if(1&t&&s.Gf(jt,5),2&t){let t;s.iGM(t=s.CRH())&&(e.drawer=t.first)}},decls:2,vars:3,consts:[[4,"ngIf"],["id","top-cart",3,"click"],["mat-button","","title","Carrito","aria-label","Carrito","rel","Carrito"],["svgIcon","shopping-cart-outline"],["class","cart-items-count rotate-scale-up",4,"ngIf"],[1,"hide-lt-sm"],[1,"sidenav-container-carrito"],["position","end",1,"contenido-sidenav","mat-sidenav-fixed"],["drawer",""],[2,"height","100%","width","100%"],[1,"headerfiltro"],[1,"mt-1","ml-1","mt-2","TituloFiltro"],["mat-button","",1,"ml-1","mb-1","mr-1","Btn-Cerrar",3,"click"],[1,"mat-icon-sm"],["fxLayout","row","fxLayoutAlign","space-between center","class","text-muted mt-1 ml-1 mr-1","style","clear:both;",4,"ngIf"],[1,"divider","mt-1",2,"clear","both"],["class","py-1 text-muted text-center",4,"ngIf"],[1,"contentfiltro"],[1,"footerfiltro"],[1,"cart-dropdown-footer"],[1,"divider","mt-1"],["fxLayout","row","fxLayoutAlign","space-between center",1,"text-muted",2,"width","90%","margin","auto"],["class","new-price",4,"ngIf"],[1,"divider"],[1,"mb-1","mt-1",2,"width","90%","margin","auto"],["mat-raised-button","","color","primary",2,"width","100%",3,"routerLink","click"],[1,"alpha-65",2,"display","block","margin-top","5px",3,"click"],[1,"cart-items-count","rotate-scale-up"],["fxLayout","row","fxLayoutAlign","space-between center",1,"text-muted","mt-1","ml-1","mr-1",2,"clear","both"],[1,"text-muted",3,"routerLink","click"],[1,"py-1","text-muted","text-center"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","item-extra",4,"ngIf"],["matListAvatar","","matTooltip","Ir al producto","matTooltipPosition","after",3,"routerLink","fragment","click"],["lazy","",3,"src","alt"],["matLine","",1,"text-muted"],[3,"routerLink","fragment","title","click"],["matLine","","class","text-muted ",4,"ngIf"],["matLine","","class","text-muted ellipsis",4,"ngIf"],["matLine","","class","text-muted",4,"ngIf"],["appearance","outline"],[3,"value","id","selectionChange"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],["mat-icon-button","","color","warn","class","remove","title","Quitar del carrito",3,"click",4,"ngIf"],["matLine","",1,"text-muted","ellipsis"],[3,"title"],["title","'El precio de este art\xedculo no incluye el anclaje a la pared. Si lo desea puede contratar este servicio'",4,"ngIf"],["title","El precio de este art\xedculo no incluye la instalaci\xf3n ni en el techo ni en la pared. Si desea contratar este servicio debe ponerse en contacto con nosotros a nuestro email: info@portobellostreet.es para saber si podemos ofrecer este servicio en su zona.",4,"ngIf"],["title","'El precio de este art\xedculo no incluye el anclaje a la pared. Si lo desea puede contratar este servicio'"],["title","El precio de este art\xedculo no incluye la instalaci\xf3n ni en el techo ni en la pared. Si desea contratar este servicio debe ponerse en contacto con nosotros a nuestro email: info@portobellostreet.es para saber si podemos ofrecer este servicio en su zona."],[3,"value"],["mat-icon-button","","color","warn","title","Quitar del carrito",1,"remove",3,"click"],[1,"item-extra"],[1,"text-muted"],["target","_blank",1,"underlined",3,"routerLink"],[1,"new-price"]],template:function(t,e){1&t&&(s.YNc(0,xe,41,12,"ng-container",0),s.ALo(1,"async")),2&t&&s.Q6J("ngIf",s.lcZ(1,1,e.cart$))},directives:[o.O5,mt.zs,x.Hw,K.TM,K.JX,mt.lW,dt.xw,dt.Wh,a.yS,z,o.sg,W,Y,T.X2,P.KE,L.gD,T.ey],pipes:[o.Ov,Dt.Q5,o.JJ],encapsulation:2,changeDetection:0}),t})();function Ce(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",2),s.TgZ(1,"button",3),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).signIn()}),s._UZ(2,"mat-icon",4),s.TgZ(3,"span",5),s._uU(4," Entrar | Reg\xedstrate "),s.qZA(),s.qZA(),s.qZA()}}function Ae(t,e){if(1&t){const t=s.EpF();s.ynx(0),s.TgZ(1,"div",6,7),s.TgZ(3,"button",8),s._UZ(4,"mat-icon",4),s.TgZ(5,"span",5),s._uU(6),s.qZA(),s.qZA(),s.qZA(),s.TgZ(7,"mat-menu",9,10),s.TgZ(9,"span",11),s.NdJ("mouseleave",function(){return s.CHM(t),s.MAs(2).closeMenu()}),s.TgZ(10,"div",12),s.TgZ(11,"p"),s._uU(12),s._UZ(13,"br"),s.TgZ(14,"small"),s._uU(15),s.qZA(),s.qZA(),s.qZA(),s._UZ(16,"div",13),s.TgZ(17,"a",14),s.TgZ(18,"mat-icon",15),s._uU(19,"settings"),s.qZA(),s.TgZ(20,"span"),s._uU(21,"Perfil"),s.qZA(),s.qZA(),s._UZ(22,"div",13),s.TgZ(23,"a",16),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).signOut()}),s.TgZ(24,"mat-icon",15),s._uU(25,"power_settings_new"),s.qZA(),s.TgZ(26,"span"),s._uU(27,"Cerrar sesi\xf3n"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.BQk()}if(2&t){const t=s.MAs(8),e=s.oxw().ngIf;s.xp6(1),s.Q6J("matMenuTriggerFor",t),s.xp6(2),s.Q6J("title",e.title),s.xp6(3),s.hij(" ",e.title," "),s.xp6(1),s.Q6J("overlapTrigger",!1),s.xp6(5),s.hij("",e.title," "),s.xp6(3),s.Oqu(e.email)}}function ke(t,e){if(1&t&&(s.ynx(0),s.YNc(1,Ce,5,0,"div",1),s.YNc(2,Ae,28,6,"ng-container",0),s.BQk()),2&t){const t=e.ngIf;s.xp6(1),s.Q6J("ngIf",null==t.jwtToken),s.xp6(1),s.Q6J("ngIf",null!=t.jwtToken)}}let Ee=(()=>{class t{constructor(t,e,n){this.accountCoreService=t,this.menuService=e,this.router=n,this.account$=this.accountCoreService.account$}ngOnInit(){}signOut(){this.accountCoreService.logout(this.router.routerState.snapshot.url)}signIn(){let t=this.router.routerState.snapshot.url.replace("#signOut","");(t.indexOf("/forgot-password")>=0||t.indexOf("/reset-password")>=0||t.indexOf("/verify-email")>=0||t.indexOf("/login-register")>=0)&&(t="/"),this.menuService.gtmAction(null,[{eventcategory:"Interaccion",eventaction:"Login",eventlabel:"Abre_Form",event:"eventga"}]),this.router.navigate(["/cuenta/login-register"],{queryParams:{returnUrl:t}})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(g.Y),s.Y36(ct.h),s.Y36(a.F0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-top-login"]],decls:2,vars:3,consts:[[4,"ngIf"],["id","top-login","class","top-login-register px-05",4,"ngIf"],["id","top-login",1,"top-login-register","px-05"],["mat-button","","title","Entrar | Reg\xedstrate",3,"click"],["svgIcon","account-outline"],[1,"hide-lt-sm","account-title"],["id","top-login",1,"top-login-register","px-05",3,"matMenuTriggerFor"],["accountMenuTrigger","matMenuTrigger"],["mat-button","",3,"title"],["xPosition","before",1,"app-dropdown","account",3,"overlapTrigger"],["accountMenu","matMenu"],[3,"mouseleave"],["fxLayout","row","fxLayoutAlign","space-around center",1,"user-info"],[1,"divider"],["mat-menu-item","","routerLink","/cuenta/perfil"],[1,"mat-icon-sm"],["mat-menu-item","",3,"click"]],template:function(t,e){1&t&&(s.YNc(0,ke,3,2,"ng-container",0),s.ALo(1,"async")),2&t&&s.Q6J("ngIf",s.lcZ(1,1,e.account$))},directives:[o.O5,mt.lW,x.Hw,J.p6,J.VK,dt.xw,dt.Wh,a.yS,J.OP],pipes:[o.Ov],encapsulation:2,changeDetection:0}),t})(),Ie=(()=>{class t{constructor(t){this.dialog=t,this.toggleSidenav=new s.vpe}ngOnInit(){}openSideNav(){this.toggleSidenav.emit()}OpenDialog(t){this.dialog.open(Mt.x,{panelClass:"porto-dialog",width:"500px",position:{top:"120px"},data:{name:t}})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Pt.uw))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-top-menu"]],outputs:{toggleSidenav:"toggleSidenav"},decls:24,vars:0,consts:[["fxLayoutAlign","space-between center",1,"top-menu"],["mat-button","","routerLink","/en-exposicion","title","Muebles en exposici\xf3n Madrid","aria-label","Muebles en exposici\xf3n Madrid"],["alt","","svgIcon","store-outline"],[1,"hide-lt-md"],[1,"hide-lt-sm"],["mat-button","","routerLink","/subasta","title","Subasta","aria-label","Muebles en Subasta"],["svgIcon","court-hammer"],["mat-button","","title","Contacto","aria-label","Contacto",3,"click"],["svgIcon","telephone-outline"],[1,"hide-gt-sm"],["mat-button","","title","Buscar","aria-label","Buscar",3,"click"],["fxLayout","row","fxLayoutAlign","end center"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"span"),s.TgZ(2,"a",1),s._UZ(3,"mat-icon",2),s.TgZ(4,"span",3),s._uU(5,"Muebles en exposici\xf3n Madrid"),s.qZA(),s.qZA(),s.TgZ(6,"span",4),s.TgZ(7,"a",5),s._UZ(8,"mat-icon",6),s.TgZ(9,"span",3),s._uU(10,"Subasta"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"button",7),s.NdJ("click",function(){return e.OpenDialog("contacto")}),s._UZ(12,"mat-icon",8),s.TgZ(13,"span",3),s._uU(14,"Contacto"),s.qZA(),s.qZA(),s.TgZ(15,"span",9),s.TgZ(16,"button",10),s.NdJ("click",function(){return e.openSideNav()}),s.TgZ(17,"mat-icon"),s._uU(18,"search"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s._UZ(19,"span"),s.TgZ(20,"span",11),s._UZ(21,"app-top-fav"),s._UZ(22,"app-top-cart"),s._UZ(23,"app-top-login"),s.qZA(),s.qZA())},directives:[dt.Wh,mt.zs,a.yS,x.Hw,mt.lW,dt.xw,Ut,Te,Ee],encapsulation:2,changeDetection:0}),t})();function Oe(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"span",13),s.TgZ(1,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw().toggleSidenav.emit()}),s.TgZ(2,"mat-icon"),s._uU(3,"menu"),s.qZA(),s.qZA(),s.qZA()}}function Me(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",15),s.TgZ(1,"form",16),s.NdJ("ngSubmit",function(){return s.CHM(t),s.oxw().search()}),s.TgZ(2,"input",17),s.NdJ("keyup.enter",function(){return s.CHM(t),s.oxw().search()}),s.qZA(),s.TgZ(3,"button",18),s.NdJ("click",function(){return s.CHM(t),s.oxw().search()}),s.TgZ(4,"mat-icon"),s._uU(5,"search"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("formGroup",t.searchForm)}}function Pe(t,e){if(1&t&&(s.ynx(0),s._UZ(1,"div",22),s.ALo(2,"safeHtml"),s.BQk()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.Q6J("innerHTML",s.lcZ(2,2,t.texto),s.oJD)("title",t.title)}}const Le=function(t){return[t]};function Re(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"a",23),s._UZ(2,"img",24),s.ALo(3,"safeUrl"),s.qZA(),s.BQk()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.Q6J("routerLink",s.VKq(7,Le,t.uri))("title",t.title),s.xp6(1),s.s9C("alt",t.title),s.s9C("title",t.title),s.Q6J("src",s.lcZ(3,5,t.img),s.LSH)}}function De(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"a",23),s._UZ(2,"img",25),s.ALo(3,"safeUrl"),s.qZA(),s.BQk()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.Q6J("routerLink",s.VKq(7,Le,t.uri))("title",t.title),s.xp6(1),s.s9C("alt",t.title),s.s9C("title",t.title),s.Q6J("src",s.lcZ(3,5,t.imgb),s.LSH)}}function Fe(t,e){if(1&t&&(s.ynx(0,21),s.TgZ(1,"div",21),s.YNc(2,Pe,3,4,"ng-container",12),s.YNc(3,Re,4,9,"ng-container",12),s.YNc(4,De,4,9,"ng-container",12),s.qZA(),s.BQk()),2&t){const t=e.$implicit,n=s.oxw(2);s.xp6(2),s.Q6J("ngIf",0==t.tipo),s.xp6(1),s.Q6J("ngIf",1==t.tipo&&n.isDesktop),s.xp6(1),s.Q6J("ngIf",1==t.tipo&&!n.isDesktop)}}function Ne(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"div",19),s.YNc(2,Fe,5,3,"ng-container",20),s.qZA(),s.BQk()),2&t){const t=e.ngIf;s.xp6(2),s.Q6J("ngForOf",t)}}let Ze=(()=>{class t{constructor(t,e,n,i){this.router=t,this.deviceService=e,this.menuService=n,this.fb=i,this.toggleSidenav=new s.vpe,this.isDesktop=!1,this.isMobile=!0,this.isDesktop=this.deviceService.isDesktop(),this.isMobile=this.deviceService.isMobile(),this.searchForm=this.isMobile?this.fb.group({}):this.searchbuildForm(),this.cartelas$=this.menuService.cartelas()}ngOnInit(){}search(){var t;if(this.searchForm.valid){const e=null===(t=this.searchForm.get("value"))||void 0===t?void 0:t.value;if(e.length>3){let t=!1;if(e.trim().length<=9&&("p"==e.trim().substring(0,1).toLowerCase()||"m"==e.trim().substring(0,1).toLowerCase())){let n=e.trim().substring(1);t=!isNaN(parseInt(n))}t?this.menuService.gotoRef(e.trim()):this.router.navigate(["/buscador"],{queryParams:{search:encodeURIComponent(e)},fragment:void 0,replaceUrl:!1})}}}searchbuildForm(){return this.fb.group({value:[null,[R.kI.required]]})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.F0),s.Y36(ht.x0),s.Y36(ct.h),s.Y36(R.qu))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-header"]],outputs:{toggleSidenav:"toggleSidenav"},decls:15,vars:6,consts:[[1,"top-toolbar","mat-elevation-z2"],[1,"line","gradient"],["fxLayoutAlign","space-between center",1,"top-toolbar","theme-container"],["fxFlex","60px",4,"ngIf"],["fxFlex","100%"],[3,"toggleSidenav"],[1,"logo-toolbar"],["fxLayoutAlign","space-between center",1,"logo-toolbar","theme-container"],["fxFlex","20"],["routerLink","/",1,"logo"],["alt","Logo PortobelloStret.es","width","181","height","34","loading","lazy",3,"src"],["fxFlex","","class","hide-lt-sm px-4",4,"ngIf"],[4,"ngIf"],["fxFlex","60px"],["mat-button","","title","Desplegar Men\xfa","aria-label","Desplegar Men\xfa",1,"sidenav-toggle",3,"click"],["fxFlex","",1,"hide-lt-sm","px-4"],["fxLayout","row","novalidate","",1,"search-form","minShadow",3,"formGroup","ngSubmit"],["type","text","formControlName","value","id","searchD","placeholder","Escribe para buscar...","fxFlex","",3,"keyup.enter"],["mat-button","","type","button",1,"search-btn","text-muted","gradient",3,"click"],[1,"cartelas"],["class","cartela",4,"ngFor","ngForOf"],[1,"cartela"],[1,"c-mancha",3,"innerHTML","title"],[3,"routerLink","title"],["loading","lazy","width","970","height","90",1,"image",3,"src","alt","title"],["loading","lazy","width","100%",1,"image",3,"src","alt","title"]],template:function(t,e){1&t&&(s.TgZ(0,"mat-toolbar",0),s._UZ(1,"div",1),s.TgZ(2,"mat-toolbar-row",2),s.YNc(3,Oe,4,0,"span",3),s.TgZ(4,"span",4),s.TgZ(5,"app-top-menu",5),s.NdJ("toggleSidenav",function(){return e.toggleSidenav.emit()}),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"mat-toolbar",6),s.TgZ(7,"mat-toolbar-row",7),s.TgZ(8,"div",8),s.TgZ(9,"a",9),s._UZ(10,"img",10),s.qZA(),s.qZA(),s.YNc(11,Me,6,1,"div",11),s.qZA(),s.qZA(),s.TgZ(12,"div"),s.YNc(13,Ne,3,1,"ng-container",12),s.ALo(14,"async"),s.qZA()),2&t&&(s.xp6(3),s.Q6J("ngIf",!e.isDesktop),s.xp6(7),s.Q6J("src","https://portobellostreet.b-cdn.net/assets/images/logo-portobellostreet-es.png",s.LSH),s.xp6(1),s.Q6J("ngIf",!e.isMobile),s.xp6(2),s.Q6J("ngIf",s.lcZ(14,4,e.cartelas$)))},directives:[O,I,dt.Wh,o.O5,dt.yH,Ie,a.yS,mt.lW,x.Hw,R._Y,R.JL,dt.xw,R.sg,R.Fj,R.JJ,R.u,o.sg],pipes:[o.Ov,Dt.T,Dt.Q5],encapsulation:2}),t})();const Ge=function(t){return[t]},Be=function(){return{exact:!0}};function He(t,e){if(1&t&&(s.TgZ(0,"a",12),s._uU(1),s.qZA()),2&t){const t=s.oxw().$implicit;s.Q6J("routerLink",s.VKq(3,Ge,t.node.url))("routerLinkActiveOptions",s.DdM(5,Be)),s.xp6(1),s.Oqu(t.node.title)}}function qe(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"a",13,14),s.NdJ("mouseenter",function(){s.CHM(t);const e=s.MAs(2),n=s.MAs(1);return s.oxw(3).bmMouseEnter(e,n)})("mouseleave",function(){s.CHM(t);const e=s.MAs(2),n=s.MAs(1);return s.oxw(3).bmMouseLeave(e,n)})("menuOpened",function(){s.CHM(t);const e=s.MAs(2),n=s.MAs(1);return s.oxw(3).onMenuOpened(e,n)})("menuClosed",function(){s.CHM(t);const e=s.MAs(2),n=s.MAs(1);return s.oxw(3).onMenuClosed(e,n)}),s._uU(3),s.qZA()}if(2&t){const t=s.oxw().$implicit,e=s.MAs(4);s.Q6J("routerLink",s.VKq(4,Ge,t.node.url))("id",t.node.pageId)("matMenuTriggerFor",e),s.xp6(3),s.Oqu(t.node.title)}}function Ve(t,e){if(1&t&&(s.TgZ(0,"span",18),s._uU(1),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.Oqu(t.section)}}function Ue(t,e){if(1&t&&(s.TgZ(0,"span",18),s.TgZ(1,"a",19),s._uU(2),s.qZA(),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.Q6J("routerLink",s.VKq(2,Ge,t.uri)),s.xp6(1),s.Oqu(t.section)}}function je(t,e){if(1&t&&(s.TgZ(0,"a",20),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("ngClass",t.destacado?"m-destacado":"m-indent")("routerLink",s.VKq(3,Ge,t.url)),s.xp6(1),s.Oqu(t.title)}}function ze(t,e){if(1&t&&(s.TgZ(0,"ul",15),s.YNc(1,Ve,2,1,"span",16),s.YNc(2,Ue,3,4,"span",16),s.TgZ(3,"li"),s.YNc(4,je,2,5,"a",17),s.qZA(),s.qZA()),2&t){const t=e.$implicit,n=s.oxw(3);s.xp6(1),s.Q6J("ngIf",null==t.uri||""==t.uri),s.xp6(1),s.Q6J("ngIf",null!=t.uri&&""!=t.uri),s.xp6(2),s.Q6J("ngForOf",t.nodes)("ngForTrackBy",n.trackbyService.pageNode)}}function Ye(t,e){if(1&t&&(s.TgZ(0,"ul",21),s.TgZ(1,"div",22),s._uU(2,"\xa0"),s.qZA(),s.TgZ(3,"li"),s._UZ(4,"img",23),s._UZ(5,"br"),s.TgZ(6,"a",24),s._uU(7,"Ver m\xe1s"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(4),s.s9C("src",t.node.imgUri,s.LSH),s.xp6(2),s.Q6J("routerLink",s.VKq(2,Ge,t.node.url))}}function $e(t,e){if(1&t){const t=s.EpF();s.ynx(0),s.YNc(1,He,2,6,"a",4),s.YNc(2,qe,4,6,"a",5),s.TgZ(3,"mat-menu",6,7),s.TgZ(5,"div",8),s.NdJ("mouseenter",function(){const e=s.CHM(t).$implicit,n=s.MAs(4);return s.oxw(2).mMouseEnter(n,e.node.pageId)})("mouseleave",function(){const e=s.CHM(t).$implicit,n=s.MAs(4);return s.oxw(2).mMouseLeave(n,e.node.pageId)}),s.ynx(6),s.TgZ(7,"div",9),s.YNc(8,ze,5,4,"ul",10),s.YNc(9,Ye,8,4,"ul",11),s.qZA(),s.BQk(),s.qZA(),s.qZA(),s.BQk()}if(2&t){const t=e.$implicit,n=s.oxw(2);s.xp6(1),s.Q6J("ngIf",0==t.node.nodes.length),s.xp6(1),s.Q6J("ngIf",t.sections.length>0),s.xp6(1),s.Q6J("overlapTrigger",!1),s.xp6(5),s.Q6J("ngForOf",t.sections)("ngForTrackBy",n.trackbyService.megaMenuSection),s.xp6(1),s.Q6J("ngIf",t.sections.length<4)}}function We(t,e){if(1&t&&(s.TgZ(0,"mat-toolbar",1),s.TgZ(1,"div",2),s.YNc(2,$e,10,6,"ng-container",3),s.ALo(3,"async"),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Q6J("ngForOf",s.lcZ(3,2,t.mainMenu$))("ngForTrackBy",t.trackbyService.megaMenu)}}let Qe=(()=>{class t{constructor(t,e,n,i,s,r){this.menuService=t,this.trackbyService=e,this.renderer=n,this.deviceService=i,this.element=s,this.platformId=r,this.isDesktop=!0,this.menus=[];let a="";(0,o.NF)(this.platformId)&&(a=this.getParameterByName("param")),this.mainMenu$=this.menuService.getPageNodesObs("nav-main",a).pipe((0,lt.U)(t=>t)),this.isDesktop=this.deviceService.isDesktop()}ngOnInit(){}getParameterByName(t){let e=window.location.href;t=t.replace(/[[]]/g,"$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}bmMouseEnter(t,e){const n=e._elementRef.nativeElement.id,i=this.getMenuInfo(n);null==i?(this.menus.push({id:n,trigger:t,opening:!0,menuEntered:!1,buttonEntered:!0}),t.openMenu()):(i.buttonEntered=!0,i.opening&&t.menuOpen||(i.opening=!0,t.openMenu()))}bmMouseLeave(t,e){const n=this.getMenuInfo(e._elementRef.nativeElement.id);null!=n&&(n.buttonEntered=!1,n.opening&&!t.menuOpen||setTimeout(()=>{n.menuEntered||n.buttonEntered||t.closeMenu()},100))}onMenuOpened(t,e){const n=e._elementRef.nativeElement,i=n.id;this.renderer.addClass(n,"mega-menu-button-opened");const s=this.renderer.selectRootElement(".cdk-overlay-container",!0),r=this.element.nativeElement.offsetTop+this.element.nativeElement.clientHeight;s.querySelectorAll(".mega-menu-backdrop").forEach(t=>{this.renderer.setProperty(t,"style","top: "+r+"px")});const o=this.getMenuInfo(i);null!=o&&(o.opening=!1)}onMenuClosed(t,e){this.renderer.removeClass(e._elementRef.nativeElement,"mega-menu-button-opened")}mMouseEnter(t,e){const n=this.getMenuInfo(e);null!=n&&(n.menuEntered=!0)}mMouseLeave(t,e){const n=this.getMenuInfo(e);null!=n&&(n.menuEntered=!1,n.opening&&!n.trigger.menuOpen||setTimeout(()=>{n.menuEntered||n.buttonEntered||n.trigger.closeMenu()},100))}getMenuInfo(t){const e=this.menus.filter(e=>e.id===t);return e.length>0?e[0]:null}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(ct.h),s.Y36(ut.v),s.Y36(s.Qsj),s.Y36(ht.x0),s.Y36(s.SBq),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-menu"]],decls:1,vars:1,consts:[["class","top-navbar mat-elevation-z1","fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center",1,"top-navbar","mat-elevation-z1"],[1,"theme-container"],[4,"ngFor","ngForOf","ngForTrackBy"],["mat-button","","routerLinkActive","horizontal-active-link",3,"routerLink","routerLinkActiveOptions",4,"ngIf"],["mat-button","","style","border-width: 0;","class","mega-menu-button",3,"routerLink","id","matMenuTriggerFor","mouseenter","mouseleave","menuOpened","menuClosed",4,"ngIf"],["backdropClass","mega-menu-backdrop",1,"menu-nav","mega-menu",3,"overlapTrigger"],["smenu","matMenu"],["fxLayout","row wrap",3,"mouseenter","mouseleave"],["fxLayout","row wrap","fxLayout.lt-sm","column","fxLayoutGap","16px","fxLayoutAlign","flex-start",1,"linksmenu","px-16","mt-2","mb-2"],["fxFlex","0 1 calc(25% - 16px)",4,"ngFor","ngForOf","ngForTrackBy"],["class","ul-img mr-1","fxFlex","0 1 calc(25% - 16px)",4,"ngIf"],["mat-button","","routerLinkActive","horizontal-active-link",3,"routerLink","routerLinkActiveOptions"],["mat-button","",1,"mega-menu-button",2,"border-width","0",3,"routerLink","id","matMenuTriggerFor","mouseenter","mouseleave","menuOpened","menuClosed"],["button","","menuTrigger","matMenuTrigger"],["fxFlex","0 1 calc(25% - 16px)"],["class","ml-1 header-mgc",4,"ngIf"],["mat-menu-item","",3,"ngClass","routerLink",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ml-1","header-mgc"],[3,"routerLink"],["mat-menu-item","",3,"ngClass","routerLink"],["fxFlex","0 1 calc(25% - 16px)",1,"ul-img","mr-1"],[1,"ml-1",2,"flex","none"],["loading","lazy","alt","var mas",3,"src"],["routerLink","/",3,"routerLink"]],template:function(t,e){1&t&&s.YNc(0,We,4,4,"mat-toolbar",0),2&t&&s.Q6J("ngIf",e.isDesktop)},directives:[o.O5,O,dt.Wh,o.sg,J.VK,dt.xw,dt.SQ,mt.zs,a.yS,a.Od,J.p6,dt.yH,J.OP,o.mk,pt.oO],pipes:[o.Ov],encapsulation:2,changeDetection:0}),t})(),Ke=(()=>{class t{constructor(t){this.document=t}setData(t){this.jsonLd=t,this.inject()}getObject(t,e,n="http://schema.org"){let i={"@type":t};return n&&(i=Object.assign({"@context":n},i)),e&&(i=Object.assign(Object.assign({},i),e)),i}inject(){let t=this.document.head.querySelector("script[type='application/ld+json']");t?t.textContent=JSON.stringify(this.jsonLd):(t=this.document.createElement("script"),t.setAttribute("type","application/ld+json"),t.textContent=JSON.stringify(this.jsonLd),this.document.head.appendChild(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(o.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Xe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Ke]}),t})();var Je=(()=>(function(t){t.name="name",t.property="property"}(Je||(Je={})),Je))();let tn=(()=>{class t{constructor(t,e,n){this.metaService=t,this.titleService=e,this.document=n}setData(t){this.setSection(t.section),this.setKeywords(t.keywords),this.setTitle(t.title),this.setType(t.type),this.setDescription(t.description),this.setImage(t.image,t.imageAuxData),this.setUrl(t.url),this.setPublished(t.published),this.setModified(t.modified),this.setAuthor(t.author)}setKeywords(t){Boolean(t)?this.metaService.updateTag({name:"keywords",content:t}):this.metaService.removeTag("name='keywords'")}setSection(t){Boolean(t)?this.metaService.updateTag({name:"article:section",content:t}):this.metaService.removeTag("name='article:section'")}setTitle(t=""){this.titleService.setTitle(t),t&&t.length?(this.metaService.updateTag({name:"twitter:title",content:t}),this.metaService.updateTag({name:"twitter:image:alt",content:t}),this.metaService.updateTag({property:"og:image:alt",content:t}),this.metaService.updateTag({property:"og:title",content:t}),this.metaService.updateTag({name:"title",content:t}),this.metaService.updateTag({itemprop:"name",content:t},"itemprop='name'")):(this.metaService.removeTag("name='twitter:title'"),this.metaService.removeTag("name='twitter:image:alt'"),this.metaService.removeTag("property='og:image:alt'"),this.metaService.removeTag("property='og:title'"),this.metaService.removeTag("name='title'"),this.metaService.removeTag("itemprop='name'"))}setType(t){t&&t.length?this.metaService.updateTag({property:"og:type",content:t}):this.metaService.removeTag("property='og:type'")}setDescription(t){t&&t.length?(this.metaService.updateTag({name:"twitter:description",content:t}),this.metaService.updateTag({property:"og:description",content:t}),this.metaService.updateTag({name:"description",content:t}),this.metaService.updateTag({itemprop:"description",content:t},"itemprop='description'")):(this.metaService.removeTag("name='twitter:description'"),this.metaService.removeTag("property='og:description'"),this.metaService.removeTag("name='description'"),this.metaService.removeTag("itemprop='description'"))}setImage(t,e){t&&t.length?(this.metaService.updateTag({name:"twitter:image",content:t}),this.metaService.updateTag({itemprop:"image",content:t},"itemprop='image'"),this.metaService.updateTag({property:"og:image",content:t}),e&&e.height?this.metaService.updateTag({property:"og:image:height",content:e.height.toString()}):this.metaService.removeTag("property='og:image:height'"),e&&e.width?this.metaService.updateTag({property:"og:image:width",content:e.width.toString()}):this.metaService.removeTag("property='og:image:width'"),e&&e.alt?(this.metaService.updateTag({property:"og:image:alt",content:e.alt}),this.metaService.updateTag({property:"twitter:image:alt",content:e.alt})):(this.metaService.removeTag("property='og:image:alt'"),this.metaService.removeTag("property='twitter:image:alt'")),e&&e.mimeType?this.metaService.updateTag({property:"og:image:type",content:e.mimeType}):this.metaService.removeTag("property='og:image:type'"),e&&e.secureUrl?this.metaService.updateTag({property:"og:image:secure_url",content:e.secureUrl}):this.metaService.removeTag("property='og:image:secure_url'")):(this.metaService.removeTag("name='twitter:image'"),this.metaService.removeTag("property='twitter:image:alt'"),this.metaService.removeTag("property='og:image'"),this.metaService.removeTag("property='og:image:height'"),this.metaService.removeTag("property='og:image:secure_url'"),this.metaService.removeTag("property='og:image:type'"),this.metaService.removeTag("property='og:image:alt'"),this.metaService.removeTag("property='og:image:width'"),this.metaService.removeTag("itemprop='image'"))}setUrl(t){t&&t.length?this.metaService.updateTag({property:"og:url",content:t}):this.metaService.removeTag("property='og:url'"),this.setCanonicalUrl(t)}setPublished(t){if(t){const e=new Date(t);this.metaService.updateTag({name:"article:published_time",content:e.toISOString()}),this.metaService.updateTag({name:"published_date",content:e.toISOString()})}else this.metaService.removeTag("name='article:published_time'"),this.metaService.removeTag("name='publication_date'")}setModified(t){if(t){const e=new Date(t);this.metaService.updateTag({name:"article:modified_time",content:e.toISOString()}),this.metaService.updateTag({name:"og:updated_time",content:e.toISOString()})}else this.metaService.removeTag("name='article:modified_time'"),this.metaService.removeTag("name='og:updated_time'")}setAuthor(t){t&&t.length?(this.metaService.updateTag({name:"article:author",content:t}),this.metaService.updateTag({name:"author",content:t})):(this.metaService.removeTag("name='article:author'"),this.metaService.removeTag("name='author'"))}setTwitterSiteCreator(t){Boolean(t)?(this.metaService.updateTag({name:"twitter:site",content:t}),this.metaService.updateTag({name:"twitter:creator",content:t})):(this.metaService.removeTag("name='twitter:site'"),this.metaService.removeTag("name='twitter:creator'"))}setTwitterCard(t){Boolean(t)?this.metaService.updateTag({name:"twitter:card",content:t}):this.metaService.removeTag("name='twitter:card'")}setFbAppId(t){Boolean(t)?this.metaService.updateTag({property:"fb:app_id",content:t}):this.metaService.removeTag("property='fb:app_id'")}setMetaTag(t){Boolean(t.value)?this.metaService.updateTag({[t.attr]:t.attrValue,content:t.value}):this.metaService.removeTag(`${t.attr}='${t.attrValue}'`)}setMetaTags(t){for(const e of t)this.setMetaTag(e)}setLanguageAlternativeUrl(t,e){const n=this.document.head.querySelector(`link[rel='alternate'][hreflang='${t}']`);if(n&&this.document.head.removeChild(n),e&&e.length){const n=this.document.createElement("link");n.setAttribute("rel","alternate"),n.setAttribute("hreflang",t),n.setAttribute("href",e),this.document.head.appendChild(n)}}setCanonicalUrl(t){const e=this.document.head.querySelector("link[rel='canonical']");if(e&&this.document.head.removeChild(e),t&&t.length){const e=this.document.createElement("link");e.setAttribute("rel","canonical"),e.setAttribute("href",t),this.document.head.appendChild(e)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.h_),s.LFG(i.Dx),s.LFG(o.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(i.h_),(0,s.LFG)(i.Dx),(0,s.LFG)(o.K0))},token:t,providedIn:"root"}),t})();const en=function(t){return[t]};function nn(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"a",6),s.TgZ(2,"mat-icon"),s._uU(3,"keyboard_arrow_right"),s.qZA(),s.TgZ(4,"span",7),s._uU(5),s.qZA(),s.qZA(),s.BQk()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("routerLink",s.VKq(3,en,t.url))("title",t.description),s.xp6(4),s.Oqu(t.title)}}function sn(t,e){if(1&t&&(s.ynx(0),s.YNc(1,nn,6,5,"ng-container",5),s.BQk()),2&t){const t=e.ngIf,n=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.breadcrumbs)("ngForTrackBy",n.trackbyService.breadcrumbItem)}}let rn=(()=>{class t{constructor(t,e,n,i,s,r,o){this.logger=t,this.router=e,this.platformId=n,this.seoSocialShareService=i,this.jsonLdService=s,this.menuService=r,this.trackbyService=o,this.pageinfo=null,this.pageInfo$=this.menuService.pageInfo(),this.pageInfoSub$=this.pageInfo$.subscribe(t=>{this.setMetainfo(t)}),this.routerSub=this.router.events.pipe((0,rt.h)(t=>t instanceof a.m2)).subscribe(t=>{this.logger.info("snapshot - BR",this.router.routerState.snapshot.root),this.menuService.setSnapshot(this.router.routerState.snapshot.root),null!=this.pageinfo&&null!=this.pageinfo.uri&&0!=this.router.routerState.snapshot.url.indexOf(this.pageinfo.uri)&&(this.logger.info("restorepageInfo",{uri:this.pageinfo.uri,url:this.router.routerState.snapshot}),this.menuService.restorepageInfo())})}ngOnInit(){}setMetainfo(t){(0,o.NF)(this.platformId)&&this.logger.info("setMetainfo",t),this.pageinfo=t;const e={title:t.title,description:t.description,keywords:t.keywords,image:t.image};this.seoSocialShareService.setMetaTag(void 0!==this.pageinfo.index&&!1===this.pageinfo.index?{attr:Je.name,attrValue:"robots",value:"noindex"}:{attr:Je.name,attrValue:"robots",value:"all"}),this.seoSocialShareService.setData(e),void 0!==t.ucanonical&&""!=t.ucanonical&&null!=t.ucanonical?"--"!=t.ucanonical&&this.seoSocialShareService.setCanonicalUrl(m.N.domain+t.ucanonical):"--"!=t.uri&&this.seoSocialShareService.setCanonicalUrl(m.N.domain+t.uri);const n=[];if(t.structuredData&&null!=t.structuredData){const e=this.jsonLdService.getObject("jsonLdSD",t.structuredData);n.push(e)}let i=[];i.push({"@type":"ListItem",position:1,name:"Muebles PortobelloStreet.es | Calidad al Mejor Precio y Muebles a Medida",item:m.N.domain}),t.breadcrumbs&&t.breadcrumbs.length>0&&t.breadcrumbs.forEach((t,e)=>{i.push({"@type":"ListItem",position:e+2,name:t.title,item:m.N.domain+t.url})});const s=this.jsonLdService.getObject("BreadcrumbList",{"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:i});n.push(s);const r=this.jsonLdService.getObject("LocalBusiness",{"@context":"http://schema.org","@type":"LocalBusiness",additionalType:"https://schema.org/FurnitureStore",name:"PortobelloStreet",url:"https://www.portobellostreet.es/",image:"https://www.portobellostreet.es/mercurio_imagenes/logo-portobellostreet.png",description:"Tienda de muebles Portobellostreet.es\xae | Muebles de calidad al mejor precio | Facilidades de pago | Enviamos a todo el mundo - Interiorismo disfruta del oto\xf1o",email:"info@portobellostreet.es",priceRange:"\u20ac\u20ac",telephone:"91 351 39 28",hasMap:"https://g.page/PortobelloSt?share",sameAs:["https://www.facebook.com/PortobelloStreet","https://www.youtube.com/user/PortobelloStreet?gl=ES","https://twitter.com/PortobelloSt","https://www.instagram.com/portobellostreet/","https://www.pinterest.es/portobellostreet/"],logo:{"@type":"ImageObject",url:"https://www.portobellostreet.es/mercurio_imagenes/logo-portobellostreet.png"},address:[{"@type":"PostalAddress",streetAddress:"Pr\xedncipe de Vergara 78",addressLocality:"Madrid",addressRegion:"Espa\xf1a",postalCode:"28006",addressCountry:"ES"}],contactPoint:[{"@type":"ContactPoint",telephone:"+34-91-351-39-28",contactType:"customer service"}],geo:{"@type":"GeoCoordinates",latitude:"40.4353122852847",longitude:"-3.679109230857068"},openingHours:"Mo, Tu, We, Th, Fr, Sa 10:00-14:00 16:00-20:00"});n.push(r),this.jsonLdService.setData(n),(0,o.NF)(this.platformId)&&this.logger.info("jsonLdService",n)}ngOnDestroy(){this.routerSub&&this.routerSub.unsubscribe(),this.pageInfoSub$&&this.pageInfoSub$.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.m),s.Y36(a.F0),s.Y36(s.Lbi),s.Y36(tn),s.Y36(Ke),s.Y36(ct.h),s.Y36(ut.v))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-breadcrumb"]],decls:8,vars:3,consts:[[1,"breadcrumb","gradient"],[1,"theme-container"],["fxFlex","100","fxLayoutAlign","start center","ngClass","px-16"],["routerLink","/","fxLayout","row","fxLayoutAlign","start center","aria-label","Home | Inicio","title","Home | Inicio"],[4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["fxLayout","row","fxLayoutAlign","start center",3,"routerLink","title"],[1,"breadcrumb-title"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"a",3),s.TgZ(4,"mat-icon"),s._uU(5,"home"),s.qZA(),s.qZA(),s.YNc(6,sn,2,2,"ng-container",4),s.ALo(7,"async"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(6),s.Q6J("ngIf",s.lcZ(7,1,e.pageInfo$)))},directives:[dt.yH,dt.Wh,o.mk,pt.oO,a.yS,dt.xw,x.Hw,o.O5,o.sg],pipes:[o.Ov],encapsulation:2,changeDetection:0}),t})();var on=n(751);const an=function(t){return[t]};function ln(t,e){if(1&t&&(s.TgZ(0,"a",37),s._uU(1),s.qZA()),2&t){const t=s.oxw().$implicit;s.Q6J("routerLink",s.VKq(2,an,t.url)),s.xp6(1),s.Oqu(t.title)}}function cn(t,e){if(1&t&&(s.TgZ(0,"a",38),s._uU(1),s.qZA()),2&t){const t=s.oxw().$implicit;s.s9C("href",t.url,s.LSH),s.xp6(1),s.Oqu(t.title)}}function un(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"span",39),s._uU(1,"\xa0"),s.TgZ(2,"a",40),s.NdJ("click",function(){return s.CHM(t),s.oxw(3).openCP()}),s.qZA(),s.qZA()}}function hn(t,e){if(1&t&&(s.TgZ(0,"li"),s.YNc(1,ln,2,4,"a",34),s.YNc(2,cn,2,2,"a",35),s.YNc(3,un,3,0,"span",36),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("ngIf",0!=t.url.indexOf("http")),s.xp6(1),s.Q6J("ngIf",0==t.url.indexOf("http")),s.xp6(1),s.Q6J("ngIf","/blog/politica-de-cookies"==t.url)}}function dn(t,e){if(1&t&&(s.TgZ(0,"ul",31),s.TgZ(1,"li",32),s._uU(2),s.qZA(),s.YNc(3,hn,4,3,"li",33),s.qZA()),2&t){const t=e.$implicit,n=s.oxw();s.xp6(2),s.Oqu(t.title),s.xp6(1),s.Q6J("ngForOf",t.nodes)("ngForTrackBy",n.trackbyService.pageNode)}}function pn(t,e){1&t&&s._UZ(0,"mat-progress-bar",55)}function mn(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1,"Correo electr\xf3nico inv\xe1lido"),s.qZA())}function fn(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function gn(t,e){if(1&t&&(s.TgZ(0,"div",56),s.YNc(1,fn,2,1,"mat-error",33),s.qZA()),2&t){const t=s.oxw().ngIf,e=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.subsForm.errors)("ngForTrackBy",e.trackbyService.directAny)}}function bn(t,e){1&t&&(s.TgZ(0,"div",57),s._uU(1," Se ha suscrito correctamente. "),s.qZA())}function _n(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",41),s.TgZ(1,"div",42),s.TgZ(2,"p"),s._uU(3,"Recibe el bolet\xedn de noticias de PortobelloStreet"),s.qZA(),s.TgZ(4,"form",43),s.NdJ("ngSubmit",function(){return s.CHM(t),s.oxw().subscribe()}),s.TgZ(5,"div",44),s._UZ(6,"input",45),s.TgZ(7,"button",46),s.NdJ("click",function(){return s.CHM(t),s.oxw().subscribe()}),s._uU(8,"SUBSCRIBIRSE"),s.qZA(),s.qZA(),s.TgZ(9,"div",47),s.YNc(10,pn,1,0,"mat-progress-bar",48),s.YNc(11,mn,2,0,"mat-error",49),s.YNc(12,gn,2,2,"div",50),s.YNc(13,bn,2,0,"div",51),s.qZA(),s.TgZ(14,"div"),s.TgZ(15,"mat-checkbox",52),s._uU(16," Acepto el tratamiento de datos para enviar el bolet\xedn informativo."),s.qZA(),s.TgZ(17,"p",53),s.TgZ(18,"strong"),s._uU(19,"Protecci\xf3n de datos personales"),s.qZA(),s._uU(20,":"),s._UZ(21,"br"),s._uU(22,"Utilizaremos sus datos para enviar el bolet\xedn informativo. Para m\xe1s informaci\xf3n sobre el tratamiento y sus derechos, consulte la "),s.TgZ(23,"button",54),s.NdJ("click",function(){return s.CHM(t),s.oxw().OpenDialog("politica-de-privacidad")}),s._uU(24,"Pol\xedtica de privacidad."),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.ngIf,n=s.oxw();let i;s.xp6(4),s.Q6J("formGroup",n.subsForm),s.xp6(3),s.Q6J("disabled",!n.subsForm.valid||t.subsForm.loading),s.xp6(3),s.Q6J("ngIf",t.subsForm.loading),s.xp6(1),s.Q6J("ngIf",null==(i=n.subsForm.get("email"))?null:i.hasError("invalidEmail")),s.xp6(1),s.Q6J("ngIf",t.subsForm.errors.length>0),s.xp6(1),s.Q6J("ngIf","success"==t.subsForm.state)}}function yn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"a",64),s.NdJ("click",function(){return s.CHM(t),s.oxw(4).verDetalle(!0)}),s.TgZ(1,"span",62),s._uU(2,"ver detalle"),s.qZA(),s.qZA()}}function vn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"a",64),s.NdJ("click",function(){return s.CHM(t),s.oxw(4).verDetalle(!1)}),s.TgZ(1,"span",62),s._uU(2,"ocultar detalle"),s.qZA(),s.qZA()}}function wn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",73),s.TgZ(1,"div",74),s.NdJ("click",function(){return s.CHM(t),s.oxw(4).selectTab(1)}),s._uU(2," T\xe9cnicas y funcionales "),s.qZA(),s.TgZ(3,"div",74),s.NdJ("click",function(){return s.CHM(t),s.oxw(4).selectTab(2)}),s._uU(4," Anal\xedticas "),s.qZA(),s.TgZ(5,"div",74),s.NdJ("click",function(){return s.CHM(t),s.oxw(4).selectTab(3)}),s._uU(6," Publicitarias "),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2).ngIf;s.xp6(1),s.Q6J("ngClass",1==t.tab?"dtabs__tab--active":"dtabs__tab--inactive"),s.xp6(2),s.Q6J("ngClass",2==t.tab?"dtabs__tab--active":"dtabs__tab--inactive"),s.xp6(2),s.Q6J("ngClass",3==t.tab?"dtabs__tab--active":"dtabs__tab--inactive")}}function Sn(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"p"),s._uU(2,"Las cookies t\xe9cnicas y funcionales son aquellas que permiten al usuario la navegaci\xf3n a trav\xe9s de una p\xe1gina web, plataforma o aplicaci\xf3n y la utilizaci\xf3n de las diferentes opciones o servicios que en ella existan."),s.qZA(),s.TgZ(3,"table",76),s.TgZ(4,"thead"),s.TgZ(5,"tr"),s.TgZ(6,"th",77),s.TgZ(7,"a",78),s._uU(8,"Proveedor"),s.qZA(),s.qZA(),s.TgZ(9,"th",77),s._uU(10,"Nombre"),s.qZA(),s.TgZ(11,"th",77),s._uU(12,"Prop\xf3sito"),s.qZA(),s.TgZ(13,"th",77),s._uU(14,"Caducidad"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(15,"tbody"),s.TgZ(16,"tr"),s.TgZ(17,"td"),s._uU(18,"portobellostreet.es"),s.qZA(),s.TgZ(19,"td"),s._uU(20,"_clck"),s.qZA(),s.TgZ(21,"td"),s._uU(22,"Cookie necesaria para la utilizaci\xf3n de las opciones y servicios del sitio web"),s.qZA(),s.TgZ(23,"td"),s._uU(24,"en un a\xf1o"),s.qZA(),s.qZA(),s.TgZ(25,"tr"),s.TgZ(26,"td"),s._uU(27,"portobellostreet.es"),s.qZA(),s.TgZ(28,"td"),s._uU(29,"_clsk"),s.qZA(),s.TgZ(30,"td"),s._uU(31,"Cookie necesaria para la utilizaci\xf3n de las opciones y servicios del sitio web"),s.qZA(),s.TgZ(32,"td"),s._uU(33,"en un d\xeda"),s.qZA(),s.qZA(),s.TgZ(34,"tr"),s.TgZ(35,"td"),s._uU(36,"portobellostreet.es"),s.qZA(),s.TgZ(37,"td"),s._uU(38,"_ga_J1D8PMEBCL"),s.qZA(),s.TgZ(39,"td"),s._uU(40,"Cookie necesaria para la utilizaci\xf3n de las opciones y servicios del sitio web"),s.qZA(),s.TgZ(41,"td"),s._uU(42,"en un a\xf1o"),s.qZA(),s.qZA(),s.TgZ(43,"tr"),s.TgZ(44,"td"),s._uU(45,"portobellostreet.es"),s.qZA(),s.TgZ(46,"td"),s._uU(47,"_gat_UA-3524330-1"),s.qZA(),s.TgZ(48,"td"),s._uU(49,"Cookie necesaria para la utilizaci\xf3n de las opciones y servicios del sitio web"),s.qZA(),s.TgZ(50,"td"),s._uU(51,"sesi\xf3n"),s.qZA(),s.qZA(),s.TgZ(52,"tr"),s.TgZ(53,"td"),s._uU(54,"portobellostreet.es"),s.qZA(),s.TgZ(55,"td"),s._uU(56,"_pin_unauth"),s.qZA(),s.TgZ(57,"td"),s._uU(58,"Cookie necesaria para la utilizaci\xf3n de las opciones y servicios del sitio web"),s.qZA(),s.TgZ(59,"td"),s._uU(60,"en un a\xf1o"),s.qZA(),s.qZA(),s.TgZ(61,"tr"),s.TgZ(62,"td"),s._uU(63,"portobellostreet.es"),s.qZA(),s.TgZ(64,"td"),s._uU(65,"_uetsid"),s.qZA(),s.TgZ(66,"td"),s._uU(67,"Cookie necesaria para la utilizaci\xf3n de las opciones y servicios del sitio web"),s.qZA(),s.TgZ(68,"td"),s._uU(69,"en un d\xeda"),s.qZA(),s.qZA(),s.TgZ(70,"tr"),s.TgZ(71,"td"),s._uU(72,"portobellostreet.es"),s.qZA(),s.TgZ(73,"td"),s._uU(74,"_uetvid"),s.qZA(),s.TgZ(75,"td"),s._uU(76,"Cookie necesaria para la utilizaci\xf3n de las opciones y servicios del sitio web"),s.qZA(),s.TgZ(77,"td"),s._uU(78,"en un a\xf1o"),s.qZA(),s.qZA(),s.TgZ(79,"tr"),s.TgZ(80,"td"),s._uU(81,"portobellostreet.es"),s.qZA(),s.TgZ(82,"td"),s._uU(83,"pst-cp-consent "),s.qZA(),s.TgZ(84,"td"),s._uU(85,"Cookie necesaria para la utilizaci\xf3n de las opciones y servicios del sitio web"),s.qZA(),s.TgZ(86,"td"),s._uU(87,"en un a\xf1o"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA())}function xn(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"p"),s._uU(2,"Las cookies anal\xedticas son aquellas que permiten al responsable de las mismas el seguimiento y an\xe1lisis del comportamiento de los usuarios de los sitios web a los que est\xe1n vinculadas. La informaci\xf3n recogida mediante este tipo de cookies se utiliza en la medici\xf3n de la actividad de los sitios web, aplicaci\xf3n o plataforma y para la elaboraci\xf3n de perfiles de navegaci\xf3n de los usuarios de dichos sitios, aplicaciones y plataformas, con el fin de introducir mejoras en funci\xf3n del an\xe1lisis de los datos de uso que hacen los usuarios del servicio."),s.qZA(),s.TgZ(3,"table",79),s.TgZ(4,"thead"),s.TgZ(5,"tr"),s.TgZ(6,"th",77),s.TgZ(7,"a",78),s._uU(8,"Proveedor"),s.qZA(),s.qZA(),s.TgZ(9,"th",77),s._uU(10,"Nombre"),s.qZA(),s.TgZ(11,"th",77),s._uU(12,"Prop\xf3sito"),s.qZA(),s.TgZ(13,"th",77),s._uU(14,"Caducidad"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(15,"tbody"),s.TgZ(16,"tr"),s.TgZ(17,"td"),s._uU(18,"Google Analytics"),s.qZA(),s.TgZ(19,"td"),s._uU(20,"_ga"),s.qZA(),s.TgZ(21,"td"),s._uU(22,"ID utilizado para identificar a los usuarios"),s.qZA(),s.TgZ(23,"td"),s._uU(24,"en un a\xf1o"),s.qZA(),s.qZA(),s.TgZ(25,"tr"),s.TgZ(26,"td"),s._uU(27,"Google Analytics"),s.qZA(),s.TgZ(28,"td"),s._uU(29,"_gid"),s.qZA(),s.TgZ(30,"td"),s._uU(31,"ID utilizado para identificar a los usuarios durante 24 horas despu\xe9s de la \xfaltima actividad"),s.qZA(),s.TgZ(32,"td"),s._uU(33,"en un d\xeda"),s.qZA(),s.qZA(),s.TgZ(34,"tr"),s.TgZ(35,"td",80),s._uU(36,"Cookies de terceros, puede consultarlas "),s.TgZ(37,"a",81),s._uU(38,"aqu\xed"),s.qZA(),s._uU(39," e instrucciones para gestionarlas "),s.TgZ(40,"a",82),s._uU(41,"aqu\xed"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(42,"tr",83),s.TgZ(43,"td"),s._uU(44,"google.com"),s.qZA(),s.TgZ(45,"td"),s._uU(46,"__Secure-3PSID"),s.qZA(),s.TgZ(47,"td"),s._uU(48,"Estas cookies se utilizan para entregar anuncios m\xe1s relevantes para usted y sus intereses"),s.qZA(),s.TgZ(49,"td"),s._uU(50,"en 2 a\xf1os"),s.qZA(),s.qZA(),s.TgZ(51,"tr",83),s.TgZ(52,"td"),s._uU(53,"google.es"),s.qZA(),s.TgZ(54,"td"),s._uU(55,"__Secure-3PAPISI D"),s.qZA(),s.TgZ(56,"td"),s._uU(57,"Estas cookies se utilizan para entregar anuncios m\xe1s relevantes para usted y sus intereses"),s.qZA(),s.TgZ(58,"td"),s._uU(59,"en 2 a\xf1os"),s.qZA(),s.qZA(),s.TgZ(60,"tr",83),s.TgZ(61,"td"),s._uU(62,"google.es"),s.qZA(),s.TgZ(63,"td"),s._uU(64,"__Secure-3PSID"),s.qZA(),s.TgZ(65,"td"),s._uU(66,"Estas cookies se utilizan para entregar anuncios m\xe1s relevantes para usted y sus intereses"),s.qZA(),s.TgZ(67,"td"),s._uU(68,"en 2 a\xf1os"),s.qZA(),s.qZA(),s.TgZ(69,"tr",83),s.TgZ(70,"td"),s._uU(71,"translate.google.com"),s.qZA(),s.TgZ(72,"td"),s._uU(73,"m_ga"),s.qZA(),s.TgZ(74,"td"),s._uU(75,"ID utiliza para identificar a los usuarios"),s.qZA(),s.TgZ(76,"td"),s._uU(77,"en 2 a\xf1os"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA())}function Tn(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"p"),s._uU(2,"Las cookies Publicitarias son aquellas que permiten la gesti\xf3n, de la forma m\xe1s eficaz posible, de los espacios publicitarios que, en su caso, el editor haya incluido en una p\xe1gina web, aplicaci\xf3n o plataforma desde la que presta el servicio solicitado en base a criterios como el contenido editado o la frecuencia en la que se muestran los anuncios."),s.qZA(),s.TgZ(3,"table",79),s.TgZ(4,"thead"),s.TgZ(5,"tr"),s.TgZ(6,"th",77),s.TgZ(7,"a",78),s._uU(8,"Proveedor"),s.qZA(),s.qZA(),s.TgZ(9,"th",77),s._uU(10,"Nombre"),s.qZA(),s.TgZ(11,"th",77),s._uU(12,"Prop\xf3sito"),s.qZA(),s.TgZ(13,"th",77),s._uU(14,"Caducidad"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(15,"tbody"),s.TgZ(16,"tr"),s.TgZ(17,"td"),s._uU(18,"Facebook"),s.qZA(),s.TgZ(19,"td"),s._uU(20,"_fbp"),s.qZA(),s.TgZ(21,"td"),s._uU(22,"Utilizado por Facebook para ofrecer una serie de productos tales como publicidad, ofertas en tiempo real de anunciantes terceros."),s.qZA(),s.TgZ(23,"td"),s._uU(24,"en 3 meses"),s.qZA(),s.qZA(),s.TgZ(25,"tr"),s.TgZ(26,"td"),s._uU(27,"Google"),s.qZA(),s.TgZ(28,"td"),s._uU(29,"_gcl_au"),s.qZA(),s.TgZ(30,"td"),s._uU(31,"Utilizado por Google AdSense para experimentar con la publicidad a trav\xe9s de la eficiencia de sitios web que utilizan sus servicios."),s.qZA(),s.TgZ(32,"td"),s._uU(33,"en 3 meses"),s.qZA(),s.qZA(),s.TgZ(34,"tr"),s.TgZ(35,"td",80),s._uU(36,"Cookies de terceros, puede consultarlas "),s.TgZ(37,"a",84),s._uU(38,"aqu\xed"),s.qZA(),s._uU(39," e instrucciones para gestionarlas "),s.TgZ(40,"a",82),s._uU(41,"aqu\xed"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(42,"tr",83),s.TgZ(43,"td"),s._uU(44,"Facebook"),s.qZA(),s.TgZ(45,"td",80),s.TgZ(46,"a",85),s._uU(47,"aqu\xed"),s.qZA(),s._uU(48," e instrucciones para gestionarlas "),s.TgZ(49,"a",86),s._uU(50,"https://www.facebook.com/privacy/policy"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(51,"tr",83),s.TgZ(52,"td"),s._uU(53,"Google Analytics"),s.qZA(),s.TgZ(54,"td",80),s.TgZ(55,"a",87),s._uU(56,"aqu\xed"),s.qZA(),s._uU(57," e instrucciones para gestionarlas "),s.TgZ(58,"a",88),s._uU(59,"https://privacy.google.com/take-control.html"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(60,"tr",83),s.TgZ(61,"td"),s._uU(62,"Google"),s.qZA(),s.TgZ(63,"td",80),s.TgZ(64,"a",87),s._uU(65,"aqu\xed"),s.qZA(),s._uU(66," e instrucciones para gestionarlas "),s.TgZ(67,"a",88),s._uU(68,"https://privacy.google.com/take-control.html"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA())}function Cn(t,e){if(1&t&&(s.TgZ(0,"div",75),s.YNc(1,Sn,88,0,"div",49),s.YNc(2,xn,78,0,"div",49),s.YNc(3,Tn,69,0,"div",49),s.qZA()),2&t){const t=s.oxw(2).ngIf;s.xp6(1),s.Q6J("ngIf",1==t.tab),s.xp6(1),s.Q6J("ngIf",2==t.tab),s.xp6(1),s.Q6J("ngIf",3==t.tab)}}function An(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",66),s.TgZ(1,"mat-checkbox",67),s._uU(2,"T\xe9cnicas y funcionales"),s.qZA(),s.TgZ(3,"mat-checkbox",68),s.NdJ("[checked]",function(){return s.CHM(t),s.oxw(3).cAnaliticas})("click",function(e){return s.CHM(t),s.oxw(3).toggleAnaliticas(e)}),s._uU(4,"Anal\xedticas"),s.qZA(),s.TgZ(5,"mat-checkbox",68),s.NdJ("[checked]",function(){return s.CHM(t),s.oxw(3).cPublicitarias})("click",function(e){return s.CHM(t),s.oxw(3).togglePublicitarias(e)}),s._uU(6,"Publicitarias"),s.qZA(),s.TgZ(7,"div",69),s.TgZ(8,"a",64),s.NdJ("click",function(){return s.CHM(t),s.oxw(3).AceptarSelected()}),s.TgZ(9,"span",62),s._uU(10,"Aceptar seleccionadas"),s.qZA(),s.qZA(),s.YNc(11,yn,3,0,"a",70),s.YNc(12,vn,3,0,"a",70),s.qZA(),s.YNc(13,wn,7,3,"div",71),s.YNc(14,Cn,4,3,"div",72),s.qZA()}if(2&t){const t=s.oxw().ngIf;s.xp6(1),s.Q6J("checked",!0),s.xp6(10),s.Q6J("ngIf",!t.verDetalle),s.xp6(1),s.Q6J("ngIf",t.verDetalle),s.xp6(1),s.Q6J("ngIf",t.verDetalle),s.xp6(1),s.Q6J("ngIf",t.verDetalle)}}function kn(t,e){if(1&t&&(s.ynx(0),s.YNc(1,An,15,5,"div",65),s.BQk()),2&t){const t=e.ngIf;s.xp6(1),s.Q6J("ngIf",t.ver)}}function En(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",58),s.TgZ(1,"div",59),s.TgZ(2,"p"),s._uU(3,"PortobelloStreet.es utiliza cookies propias y de terceros para obtener datos estad\xedsticos an\xf3nimos y para facilitar la navegaci\xf3n. Para aceptar todas las finalidades debe aceptar las mismas. Puede configurar o rechazar dichas finalidades clicando en el apartado de Configuraci\xf3n. Si desea conocer nuestra pol\xedtica de cookies, pinche "),s.TgZ(4,"a",60),s._uU(5,"aqu\xed"),s.qZA(),s._uU(6,"."),s.qZA(),s.qZA(),s.TgZ(7,"a",61),s.NdJ("click",function(){return s.CHM(t),s.oxw().AceptarCp()}),s.TgZ(8,"span",62),s._uU(9,"Aceptar todas las cookies"),s.qZA(),s.qZA(),s.TgZ(10,"a",63),s.NdJ("click",function(){return s.CHM(t),s.oxw().RechazarCp()}),s.TgZ(11,"span",62),s._uU(12,"Rechazar"),s.qZA(),s.qZA(),s.TgZ(13,"a",64),s.NdJ("click",function(){return s.CHM(t),s.oxw().configCp()}),s.TgZ(14,"span",62),s._uU(15,"Configurar"),s.qZA(),s.qZA(),s.YNc(16,kn,2,1,"ng-container",49),s.ALo(17,"async"),s.qZA()}if(2&t){const t=s.oxw();s.xp6(16),s.Q6J("ngIf",s.lcZ(17,1,t.pstCpConfig$))}}let In=(()=>{class t{constructor(t,e,n,i,s){this.menuService=t,this.logger=e,this.trackbyService=n,this.dialog=i,this.fb=s,this.to=null,this.cAnaliticas=!1,this.cPublicitarias=!1,this.showcp$=this.menuService.showcp(),this.subsForm=this.subsbuildForm(),this.pstCpConfigSubject$=new at.X({ver:!1,tab:1,verDetalle:!1}),this.pstCpConfig$=this.pstCpConfigSubject$.asObservable(),this.subsForm$=this.menuService.getsubForm().pipe((0,lt.U)(t=>{var e,n;if("success"==t.subsForm.state){null===(e=this.subsForm.get("email"))||void 0===e||e.patchValue(null),null===(n=this.subsForm.get("acceptTerms"))||void 0===n||n.patchValue(!1);let t=this;this.to=setTimeout(function(){t.menuService.initSubsForm()},3e3)}return t})),this.footerMenu$=this.menuService.getPageNodesObs("footer",null).pipe((0,lt.U)(t=>(this.logger.info("footerMenu",t),t)))}ngOnInit(){this.menuService.initcp(),this.menuService.initSubsForm()}ngOnDestroy(){null!=this.to&&clearTimeout(this.to)}subscribe(){var t;if(this.subsForm.valid){const e=null===(t=this.subsForm.get("email"))||void 0===t?void 0:t.value;this.menuService.subscribe(e)}}configCp(){return this.pstCpConfigSubject$.next({ver:!0,tab:1,verDetalle:!1}),!1}verDetalle(t){return this.pstCpConfigSubject$.next({ver:!0,tab:1,verDetalle:t}),!1}selectTab(t){this.pstCpConfigSubject$.next({ver:!0,tab:t,verDetalle:!0})}toggleAnaliticas(t){this.logger.info("event",t),this.cAnaliticas=!this.cAnaliticas}togglePublicitarias(t){this.logger.info("event",t),this.cPublicitarias=!this.cPublicitarias}AceptarCp(){return this.menuService.actioncp(0),!1}RechazarCp(){return this.menuService.actioncp(4),!1}openCP(){return this.menuService.openCP(),!1}AceptarSelected(){let t=3;return this.cAnaliticas?(t=1,this.cPublicitarias&&(t=0)):this.cPublicitarias&&(t=2),this.logger.info("action",t),this.menuService.actioncp(t),!1}OpenDialog(t){this.dialog.open(Mt.x,{panelClass:"porto-dialog",width:"500px",position:{top:"120px"},data:{name:t}})}subsbuildForm(){return this.fb.group({email:[null,R.kI.compose([R.kI.required,on.R.emailValidator])],acceptTerms:[!1,R.kI.requiredTrue]})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(ct.h),s.Y36(b.m),s.Y36(ut.v),s.Y36(Pt.uw),s.Y36(R.qu))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-footer"]],decls:65,vars:11,consts:[[1,"footer"],[1,"top","noprint"],[1,"theme-container"],["fxLayout","row wrap","fxLayout.lt-sm","column","fxLayoutGap","16px","fxLayoutAlign","space-around",1,"links","px-16"],["fxFlex","0 1 calc(25% - 16px)","fxFlex.lt-md","0 1 calc(50% - 16px)","fxFlex.lt-sm","100%","class","footerMenu",4,"ngFor","ngForOf","ngForTrackBy"],["fxLayoutAlign","center center",1,"text-center","py-3","social"],["mat-button","","href","https://www.facebook.com/PortobelloStreet?ref=ts","target","_blank","title","facebook","title","facebook"],["svgIcon","social-facebook"],["mat-button","","href","https://www.youtube.com/user/PortobelloStreet","target","_blank","title","youtube","title","youtube"],["svgIcon","social-youtube"],["mat-button","","href","https://www.pinterest.es/portobellostreet/","target","_blank","title","pinterest","title","pinterest"],["svgIcon","social-pinterest"],["mat-button","","href","https://www.instagram.com/portobellostreet/","target","_blank","title","twitter","title","twitter"],["svgIcon","social-instagram"],["mat-button","","href","https://twitter.com/PortobelloSt","target","_blank","title","twitter","title","twitter"],["svgIcon","social-twitter-x"],["mat-button","","href","https://portobellostreet-es.tumblr.com/","target","_blank","title","tumblr","title","tumblr"],["svgIcon","social-tumblr"],[1,"bottom","gradient"],["fxLayout","row wrap","fxLayoutAlign","space-between center",1,"py-3","border-bottom-mute","subscribe-block"],["fxFlex","100","fxFlex.gt-sm","40",4,"ngIf"],["fxFlex","100","fxFlex.gt-sm","20","fxFlex.sm","40","ngClass.md","mt-2","ngClass.sm","mt-2","ngClass.xs","mt-3"],["href","https://alberto-torres.com/","target","_blank"],["width","250px","height","122px","alt","Estudio de decoraci\xf3n de PortobelloStret.es","fxFlex","0 1 0","loading","lazy",3,"src"],["fxFlex","100","fxLayout","column","fxLayoutAlign","end end","fxFlex.gt-sm","40","fxFlex.sm","60","fxLayoutAlign.lt-md","center center","ngClass.md","mt-2","ngClass.sm","mt-2","ngClass.xs","mt-3",1,"contact-information"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutAlign.lt-md","center center",1,""],["fxLayout","row","fxLayoutAlign","end center","fxLayoutAlign.lt-md","center center",1,"mt-1"],["fxLayoutAlign","end end","fxLayoutAlign.lt-md","center center","fxLayout","column"],["href","tel:+34 91 351 39 28"],["href","mailto:info@portobellostreet.es"],["class","banner",4,"ngIf"],["fxFlex","0 1 calc(25% - 16px)","fxFlex.lt-md","0 1 calc(50% - 16px)","fxFlex.lt-sm","100%",1,"footerMenu"],[1,"mat-body-2",2,"text-transform","uppercase"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"routerLink",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],["style","text-decoration: none;",4,"ngIf"],[3,"routerLink"],["target","_blank",3,"href"],[2,"text-decoration","none"],["href","javascript:void(0);","rel","noopener noreferrer nofollow","id","opencp",2,"text-decoration","none",3,"click"],["fxFlex","100","fxFlex.gt-sm","40"],[1,"noprint"],["novalidate","",3,"formGroup","ngSubmit"],[1,"subscribe-search-form"],["type","text","placeholder","Tu correo electr\xf3nico...","formControlName","email","required","","fxFlex","","autocomplete","email"],["mat-raised-button","","color","warn","type","button",1,"mat-elevation-z0","text-muted",3,"disabled","click"],[2,"padding","0 16px"],["mode","query",4,"ngIf"],[4,"ngIf"],["class","color-warn","style","background-color: #eeeeee;",4,"ngIf"],["class","color-primary","style","background-color: #eeeeee;",4,"ngIf"],["color","primary","formControlName","acceptTerms","required","","aria-label","Aceptar t\xe9rminos y condiciones"],[1,"chk-legend-small",2,"font-size","x-small","line-height","1em","margin","0"],["mat-button","","type","button",2,"font-size","x-small","line-height","1em","margin","0",3,"click"],["mode","query"],[1,"color-warn",2,"background-color","#eeeeee"],[1,"color-primary",2,"background-color","#eeeeee"],[1,"banner"],[1,"banner__content"],["href","/blog/politica-de-cookies"],["href","","tabindex","0",1,"mat-focus-indicator","mat-raised-button","mat-button-base","mat-primary",3,"click"],[1,"mat-button-wrapper"],["href","","tabindex","0",1,"mat-focus-indicator","mat-raised-button","mat-button-base","mat-default",3,"click"],["href","","tabindex","0",1,"ab-w","primary",3,"click"],["class","mt-1",4,"ngIf"],[1,"mt-1"],["disabled","",3,"checked"],[3,"[checked]","click"],[1,"text-center"],["class","ab-w primary","href","","tabindex","0",3,"click",4,"ngIf"],["class","dtabs mt-1",4,"ngIf"],["class","mt-1 edpTable",4,"ngIf"],[1,"dtabs","mt-1"],[3,"ngClass","click"],[1,"mt-1","edpTable"],[1,""],["scope","col"],["href","/blog/articulo/177/politica-de-cookies","target","_blank","rel","noopener noreferrer nofollow","title","la pol\xedtica de privacidad de PortobelloStreet"],[1,"edpTable"],["colspan","4"],["href","/blog/articulo/177/politica-de-cookies#analiticas","target","_blank","rel","noopener noreferrer nofollow","title","la pol\xedtica de privacidad de PortobelloStreet"],["href","/blog/articulo/177/politica-de-cookies#gestion-cookies","target","_blank","rel","noopener noreferrer nofollow","title","la pol\xedtica de privacidad de PortobelloStreet"],[2,"font-size","8px"],["href","/blog/articulo/177/politica-de-cookies#publicitarias","target","_blank","rel","noopener noreferrer nofollow","title","la pol\xedtica de privacidad de PortobelloStreet"],["href","https://www.facebook.com/privacy/policy","target","_blank","rel","noopener noreferrer nofollow","title","la pol\xedtica de privacidad de PortobelloStreet"],["href","/blog/articulo/177/politica-de-cookies#gestion-cookies","target","_blank","rel","noopener noreferrer nofollow","title","Facebook cookies"],["href","https://privacy.google.com/take-control.html","target","_blank","rel","noopener noreferrer nofollow","title","la pol\xedtica de privacidad de PortobelloStreet"],["href","/blog/articulo/177/politica-de-cookies#gestion-cookies","target","_blank","rel","noopener noreferrer nofollow","title","Google Analytics cookies"]],template:function(t,e){1&t&&(s.TgZ(0,"footer",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"div",3),s.YNc(4,dn,4,3,"ul",4),s.ALo(5,"async"),s.qZA(),s.qZA(),s.TgZ(6,"div",2),s.TgZ(7,"div",5),s.TgZ(8,"a",6),s._UZ(9,"mat-icon",7),s.qZA(),s.TgZ(10,"a",8),s._UZ(11,"mat-icon",9),s.qZA(),s.TgZ(12,"a",10),s._UZ(13,"mat-icon",11),s.qZA(),s.TgZ(14,"a",12),s._UZ(15,"mat-icon",13),s.qZA(),s.TgZ(16,"a",14),s._UZ(17,"mat-icon",15),s.qZA(),s.TgZ(18,"a",16),s._UZ(19,"mat-icon",17),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(20,"div",18),s.TgZ(21,"div",2),s.TgZ(22,"div",19),s.YNc(23,_n,25,6,"div",20),s.ALo(24,"async"),s.TgZ(25,"div",21),s.TgZ(26,"a",22),s._UZ(27,"img",23),s.qZA(),s.qZA(),s.TgZ(28,"div",24),s.TgZ(29,"p",25),s.TgZ(30,"mat-icon"),s._uU(31,"schedule"),s.qZA(),s.TgZ(32,"span"),s._uU(33,"De Lunes a Viernes: De 10 a 14:00 y de 16:00 a 20:00h."),s._UZ(34,"br"),s._uU(35,"S\xe1bados: De 10:30 a 14:00 y de 16:00 a 20:00h."),s.qZA(),s.qZA(),s.TgZ(36,"p",26),s.TgZ(37,"mat-icon"),s._uU(38,"location_on"),s.qZA(),s.TgZ(39,"span",27),s.TgZ(40,"span"),s._uU(41,"Showroom - Visite nuestra exposici\xf3n en:"),s.qZA(),s.TgZ(42,"span"),s._uU(43," Pr\xedncipe de Vergara, 78."),s.qZA(),s.TgZ(44,"span"),s._uU(45," 28006, Madrid (Espa\xf1a)"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(46,"p",26),s.TgZ(47,"mat-icon"),s._uU(48,"call"),s.qZA(),s.TgZ(49,"span"),s.TgZ(50,"a",28),s._uU(51,"+34 91 351 39 28"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(52,"p",26),s.TgZ(53,"mat-icon"),s._uU(54,"mail_outline"),s.qZA(),s.TgZ(55,"span"),s.TgZ(56,"a",29),s._uU(57,"info@portobellostreet.es"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(58,"p",26),s.TgZ(59,"mat-icon"),s._uU(60,"copyright"),s.qZA(),s.TgZ(61,"span"),s._uU(62,"2023 - PortobelloStreet.es online desde 1998"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.YNc(63,En,18,3,"div",30),s.ALo(64,"async"),s.qZA()),2&t&&(s.xp6(4),s.Q6J("ngForOf",s.lcZ(5,5,e.footerMenu$))("ngForTrackBy",e.trackbyService.pageNode),s.xp6(19),s.Q6J("ngIf",s.lcZ(24,7,e.subsForm$)),s.xp6(4),s.Q6J("src","https://portobellostreet.b-cdn.net/assets/images/atstudio_web.png",s.LSH),s.xp6(36),s.Q6J("ngIf",s.lcZ(64,9,e.showcp$)))},directives:[dt.xw,dt.SQ,dt.Wh,o.sg,mt.zs,ft.V,x.Hw,o.O5,dt.yH,pt.oO,a.yS,R._Y,R.JL,R.sg,R.Fj,R.JJ,R.u,R.Q7,mt.lW,tt.oG,tt.e_,et.pW,P.TO,o.mk],pipes:[o.Ov],encapsulation:2,changeDetection:0}),t})();function On(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",1),s.NdJ("click",function(){return s.CHM(t),s.oxw().scrollToTop()}),s.TgZ(1,"mat-icon"),s._uU(2,"arrow_upward"),s.qZA(),s.qZA()}}let Mn=(()=>{class t{constructor(t){this.platformId=t,this.showBackToTopSubject$=new at.X(!1),this.showBackToTop$=this.showBackToTopSubject$.asObservable()}isBrowser(){return(0,o.NF)(this.platformId)}onWindowScroll(t){this.scrollElement=t.target,this.showBackToTopSubject$.next((this.scrollElement.documentElement.scrollTop||this.scrollElement.body.scrollTop)>300)}scrollToTop(){const t=this.scrollElement;this.isBrowser()&&function e(){const n=t.documentElement.scrollTop||t.body.scrollTop;n>0&&(window.requestAnimationFrame(e),window.scrollTo(0,n-n/8))}()}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-back-to-top"]],hostBindings:function(t,e){1&t&&s.NdJ("scroll",function(t){return e.onWindowScroll(t)},!1,s.Jf7)},decls:2,vars:3,consts:[["fxLayout","row","fxLayoutAlign","center center","class","back-to-top transition",3,"click",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center",1,"back-to-top","transition",3,"click"]],template:function(t,e){1&t&&(s.YNc(0,On,3,0,"div",0),s.ALo(1,"async")),2&t&&s.Q6J("ngIf",s.lcZ(1,1,e.showBackToTop$))},directives:[o.O5,dt.xw,dt.Wh,x.Hw],pipes:[o.Ov],encapsulation:2,changeDetection:0}),t})(),Pn=(()=>{class t extends st{constructor(t,e,n,i){super(),this.router=n,this.viewportScroller=i,t.addSvgIconSetLiteral(e.bypassSecurityTrustHtml('FREEpaypal-seeklogo.com')),this.routerSub$=this.router.events.pipe((0,rt.h)(t=>t instanceof a.Xs),(0,ot.g)(0)).subscribe(t=>{t.position?this.viewportScroller.scrollToPosition(t.position):t.anchor||this.viewportScroller.scrollToPosition([0,0])})}ngOnInit(){}ngOnDestroy(){this.routerSub$&&this.routerSub$.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(x.jv),s.Y36(i.H7),s.Y36(a.F0),s.Y36(o.EM))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-root"]],features:[s.qOj],decls:20,vars:2,consts:[["id","app",1,"h-100","app"],[1,"app-sidenav-container"],["mode","over",1,"app-sidenav","mat-elevation-z10",3,"opened","openedStart"],["sidenav",""],["routerLink","/",1,"logo",3,"click"],["width","180","height","33","alt","Logo PortobelloStret.es","fxLayoutAlign","center start","loading","lazy",3,"src"],[1,"wrapper"],[3,"toggleSidenav"],["sidenavmenu",""],["id","content-scroller",1,"app-sidenav-content"],[1,"main-menu"],[1,"main-content"],[1,"main"],["outlet","outlet"]],template:function(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.TgZ(1,"mat-sidenav-container",1),s.TgZ(2,"mat-sidenav",2,3),s.NdJ("openedStart",function(){return s.CHM(t),s.MAs(9).hidemenu()}),s.TgZ(4,"mat-toolbar"),s.TgZ(5,"a",4),s.NdJ("click",function(){return s.CHM(t),s.MAs(3).toggle()}),s._UZ(6,"img",5),s.qZA(),s.qZA(),s.TgZ(7,"div",6),s.TgZ(8,"app-sidenav-menu",7,8),s.NdJ("toggleSidenav",function(){return s.CHM(t),s.MAs(3).toggle()}),s.qZA(),s.qZA(),s.qZA(),s.TgZ(10,"div",9),s.TgZ(11,"app-header",7),s.NdJ("toggleSidenav",function(){return s.CHM(t),s.MAs(3).toggle()}),s.qZA(),s._UZ(12,"app-menu",10),s.TgZ(13,"div",11),s._UZ(14,"app-breadcrumb"),s.TgZ(15,"div",12),s._UZ(16,"router-outlet",null,13),s.qZA(),s.qZA(),s._UZ(18,"app-footer"),s._UZ(19,"app-back-to-top"),s.qZA(),s.qZA(),s.qZA()}2&t&&(s.xp6(2),s.Q6J("opened",!1),s.xp6(4),s.Q6J("src","https://portobellostreet.b-cdn.net/assets/images/logo-portobellostreet-es-fv.png",s.LSH))},directives:[K.TM,K.JX,O,a.yS,Ot,Ze,Qe,rn,a.lC,In,Mn],encapsulation:2}),t})();const Ln=void 0,Rn=["es",[["a.\xa0m.","p.\xa0m."],Ln,Ln],Ln,[["D","L","M","X","J","V","S"],["dom.","lun.","mar.","mi\xe9.","jue.","vie.","s\xe1b."],["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"],["DO","LU","MA","MI","JU","VI","SA"]],Ln,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sept.","oct.","nov.","dic."],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],Ln,[["a. C.","d. C."],Ln,["antes de Cristo","despu\xe9s de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1} {0}",Ln,"{1}, {0}",Ln],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{AUD:[Ln,"$"],BRL:[Ln,"R$"],CNY:[Ln,"\xa5"],EGP:[],ESP:["\u20a7"],GBP:[Ln,"\xa3"],HKD:[Ln,"$"],ILS:[Ln,"\u20aa"],INR:[Ln,"\u20b9"],JPY:[Ln,"\xa5"],KRW:[Ln,"\u20a9"],MXN:[Ln,"$"],NZD:[Ln,"$"],RON:[Ln,"L"],THB:["\u0e3f"],TWD:[Ln,"NT$"],USD:["US$","$"],XAF:[],XCD:[Ln,"$"],XOF:[]},"ltr",function(t){return 1===t?1:5}];class Dn{constructor(t,e,n,i){this.document=t,this.window=e,this.errorHandler=n,this.scrollService=i,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&(this.scrollService.setPosition(t),window.scrollTo(t[0],t[1]))}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector(`#${t}`);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}var Fn=n(5488),Nn=n(1584),Zn=n(1439),Gn=n(2759),Bn=n(8071),Hn=n(7574),qn=n(8640);const Vn=new Hn.y(qn.Z);var Un=n(6682),jn=n(3190),zn=n(4458),Yn=n(5257);const $n="Service workers are disabled or not supported by this browser";class Wn{constructor(t){if(this.serviceWorker=t,t){const e=(0,Gn.R)(t,"controllerchange").pipe((0,lt.U)(()=>t.controller)),n=(0,Zn.P)(()=>(0,p.of)(t.controller)),i=(0,Bn.z)(n,e);this.worker=i.pipe((0,rt.h)(t=>!!t)),this.registration=this.worker.pipe((0,jn.w)(()=>t.getRegistration()));const s=(0,Gn.R)(t,"message").pipe((0,lt.U)(t=>t.data)).pipe((0,rt.h)(t=>t&&t.type)).pipe((0,zn.O)(new F.xQ));s.connect(),this.events=s}else this.worker=this.events=this.registration=(0,Zn.P)(()=>(0,v._)(new Error("Service workers are disabled or not supported by this browser")))}postMessage(t,e){return this.worker.pipe((0,Yn.q)(1),(0,f.b)(n=>{n.postMessage(Object.assign({action:t},e))})).toPromise().then(()=>{})}postMessageWithStatus(t,e,n){const i=this.waitForStatus(n),s=this.postMessage(t,e);return Promise.all([i,s]).then(()=>{})}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(t){return this.events.pipe((0,rt.h)(e=>e.type===t))}nextEventOfType(t){return this.eventsOfType(t).pipe((0,Yn.q)(1))}waitForStatus(t){return this.eventsOfType("STATUS").pipe((0,rt.h)(e=>e.nonce===t),(0,Yn.q)(1),(0,lt.U)(t=>{if(!t.status)throw new Error(t.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Qn=(()=>{class t{constructor(t){if(this.sw=t,this.subscriptionChanges=new F.xQ,!t.isEnabled)return this.messages=Vn,this.notificationClicks=Vn,void(this.subscription=Vn);this.messages=this.sw.eventsOfType("PUSH").pipe((0,lt.U)(t=>t.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,lt.U)(t=>t.data)),this.pushManager=this.sw.registration.pipe((0,lt.U)(t=>t.pushManager));const e=this.pushManager.pipe((0,jn.w)(t=>t.getSubscription()));this.subscription=(0,Un.T)(e,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(t){if(!this.sw.isEnabled)return Promise.reject(new Error($n));const e={userVisibleOnly:!0};let n=this.decodeBase64(t.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),i=new Uint8Array(new ArrayBuffer(n.length));for(let s=0;st.subscribe(e)),(0,Yn.q)(1)).toPromise().then(t=>(this.subscriptionChanges.next(t),t))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,Yn.q)(1),(0,jn.w)(t=>{if(null===t)throw new Error("Not subscribed to push notifications.");return t.unsubscribe().then(t=>{if(!t)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error($n))}decodeBase64(t){return atob(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Wn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Kn=(()=>{class t{constructor(t){if(this.sw=t,!t.isEnabled)return this.available=Vn,this.activated=Vn,void(this.unrecoverable=Vn);this.available=this.sw.eventsOfType("UPDATE_AVAILABLE"),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error($n));const t=this.sw.generateNonce();return this.sw.postMessageWithStatus("CHECK_FOR_UPDATES",{statusNonce:t},t)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error($n));const t=this.sw.generateNonce();return this.sw.postMessageWithStatus("ACTIVATE_UPDATE",{statusNonce:t},t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Wn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class Xn{}const Jn=new s.OlP("NGSW_REGISTER_SCRIPT");function ti(t,e,n,i){return()=>{if(!(0,o.NF)(i)||!("serviceWorker"in navigator)||!1===n.enabled)return;let r;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof n.registrationStrategy)r=n.registrationStrategy();else{const[e,...i]=(n.registrationStrategy||"registerWhenStable:30000").split(":");switch(e){case"registerImmediately":r=(0,p.of)(null);break;case"registerWithDelay":r=ei(+i[0]||0);break;case"registerWhenStable":r=i[0]?(0,Un.T)(ni(t),ei(+i[0])):ni(t);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}t.get(s.R0b).runOutsideAngular(()=>r.pipe((0,Yn.q)(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:n.scope}).catch(t=>console.error("Service worker registration failed with:",t))))}}function ei(t){return(0,p.of)(null).pipe((0,ot.g)(t))}function ni(t){return t.get(s.z2F).isStable.pipe((0,rt.h)(t=>t))}function ii(t,e){return new Wn((0,o.NF)(e)&&!1!==t.enabled?navigator.serviceWorker:void 0)}let si=(()=>{class t{static register(e,n={}){return{ngModule:t,providers:[{provide:Jn,useValue:e},{provide:Xn,useValue:n},{provide:Wn,useFactory:ii,deps:[Xn,s.Lbi]},{provide:s.ip1,useFactory:ti,deps:[s.zs3,Jn,Xn,s.Lbi],multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Qn,Kn]}),t})();(0,o.qS)(Rn);let ri=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t,bootstrap:[Pn]}),t.\u0275inj=s.cJS({providers:[Nn.N,{provide:o.EM,useFactory:()=>new Dn((0,s.LFG)(o.K0),window,(0,s.LFG)(s.qLn),(0,s.LFG)(Fn.a))}],imports:[[i.b2.withServerTransition({appId:"pbstApp"}),r.PW,c,it,K.SJ,M,i.Cu,Xe,si.register("ngsw-worker.js",{enabled:m.N.production,registrationStrategy:"registerWhenStable:30000"})],it,c,M,K.SJ]}),t})();m.N.production&&(0,s.G48)();const oi=[{provide:"BASE_URL",useFactory:function(){return document.getElementsByTagName("base")[0].href},deps:[]}];document.addEventListener("DOMContentLoaded",()=>{i.q6(oi).bootstrapModule(ri).catch(t=>console.error(t))})}},t=>{"use strict";t(t.s=7528)}]);