(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},"2Yyj":function(t,e,n){var r,s,o;!function(i){if("object"==typeof t.exports){var a=i(0,e);void 0!==a&&(t.exports=a)}else s=[n,e],void 0===(o="function"==typeof(r=i)?r.apply(e,s):r)||(t.exports=o)}(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=void 0;e.default=["es",[["a.\xa0m.","p.\xa0m."],n,n],n,[["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"]],n,[["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"]],n,[["a. C.","d. C."],n,["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}",n,"{1}, {0}",n],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{AUD:[n,"$"],BRL:[n,"R$"],CNY:[n,"\xa5"],EGP:[],ESP:["\u20a7"],GBP:[n,"\xa3"],HKD:[n,"$"],ILS:[n,"\u20aa"],INR:[n,"\u20b9"],JPY:[n,"\xa5"],KRW:[n,"\u20a9"],MXN:[n,"$"],NZD:[n,"$"],RON:[n,"L"],THB:["\u0e3f"],TWD:[n,"NT$"],USD:["US$","$"],XAF:[],XCD:[n,"$"],XOF:[]},"ltr",function(t){return 1===t?1:5}]})},PSD3:function(t,e,n){t.exports=function(){"use strict";const t="SweetAlert2:",e=t=>t.charAt(0).toUpperCase()+t.slice(1),n=t=>Array.prototype.slice.call(t),r=e=>{console.warn("".concat(t," ").concat("object"==typeof e?e.join(" "):e))},s=e=>{console.error("".concat(t," ").concat(e))},o=[],i=t=>"function"==typeof t?t():t,a=t=>t&&"function"==typeof t.toPromise,l=t=>a(t)?t.toPromise():Promise.resolve(t),u=t=>t&&Promise.resolve(t)===t,c={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},h=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],d={},p=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],f=t=>Object.prototype.hasOwnProperty.call(c,t),g=t=>-1!==h.indexOf(t),m=t=>d[t],w=t=>{f(t)||r('Unknown parameter "'.concat(t,'"'))},y=t=>{p.includes(t)&&r('The parameter "'.concat(t,'" is incompatible with toasts'))},b=t=>{var e,n,s;m(t)&&(e=t,n=m(t),s='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(n,'" instead.'),o.includes(s)||(o.push(s),r(s)))},v=t=>{const e={};for(const n in t)e[t[n]]="swal2-"+t[n];return e},_=v(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),C=v(["success","warning","info","question","error"]),D=()=>document.body.querySelector(".".concat(_.container)),x=t=>{const e=D();return e?e.querySelector(t):null},E=t=>x(".".concat(t)),A=()=>E(_.popup),k=()=>E(_.icon),S=()=>E(_.title),T=()=>E(_["html-container"]),O=()=>E(_.image),F=()=>E(_["progress-steps"]),P=()=>E(_["validation-message"]),I=()=>x(".".concat(_.actions," .").concat(_.confirm)),R=()=>x(".".concat(_.actions," .").concat(_.deny)),M=()=>x(".".concat(_.loader)),B=()=>x(".".concat(_.actions," .").concat(_.cancel)),V=()=>E(_.actions),j=()=>E(_.footer),N=()=>E(_["timer-progress-bar"]),L=()=>E(_.close),U=()=>{const t=n(A().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((t,e)=>{const n=parseInt(t.getAttribute("tabindex")),r=parseInt(e.getAttribute("tabindex"));return n>r?1:n"-1"!==t.getAttribute("tabindex"));return(t=>{const e=[];for(let n=0;not(t))},H=()=>W(document.body,_.shown)&&!W(document.body,_["toast-shown"])&&!W(document.body,_["no-backdrop"]),z=()=>A()&&W(A(),_.toast),$={previousBodyPadding:null},q=(t,e)=>{if(t.textContent="",e){const r=(new DOMParser).parseFromString(e,"text/html");n(r.querySelector("head").childNodes).forEach(e=>{t.appendChild(e)}),n(r.querySelector("body").childNodes).forEach(e=>{t.appendChild(e)})}},W=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let r=0;r{if(((t,e)=>{n(t.classList).forEach(n=>{Object.values(_).includes(n)||Object.values(C).includes(n)||Object.values(e.showClass).includes(n)||t.classList.remove(n)})})(t,e),e.customClass&&e.customClass[s]){if("string"!=typeof e.customClass[s]&&!e.customClass[s].forEach)return r("Invalid type of customClass.".concat(s,'! Expected string or iterable object, got "').concat(typeof e.customClass[s],'"'));Q(t,e.customClass[s])}},Z=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(".".concat(_.popup," > .").concat(_[e]));case"checkbox":return t.querySelector(".".concat(_.popup," > .").concat(_.checkbox," input"));case"radio":return t.querySelector(".".concat(_.popup," > .").concat(_.radio," input:checked"))||t.querySelector(".".concat(_.popup," > .").concat(_.radio," input:first-child"));case"range":return t.querySelector(".".concat(_.popup," > .").concat(_.range," input"));default:return t.querySelector(".".concat(_.popup," > .").concat(_.input))}},K=t=>{if(t.focus(),"file"!==t.type){const e=t.value;t.value="",t.value=e}},Y=(t,e,n)=>{t&&e&&("string"==typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(e=>{Array.isArray(t)?t.forEach(t=>{n?t.classList.add(e):t.classList.remove(e)}):n?t.classList.add(e):t.classList.remove(e)}))},Q=(t,e)=>{Y(t,e,!0)},J=(t,e)=>{Y(t,e,!1)},X=(t,e)=>{const r=n(t.childNodes);for(let n=0;n{n==="".concat(parseInt(n))&&(n=parseInt(n)),n||0===parseInt(n)?t.style[e]="number"==typeof n?"".concat(n,"px"):n:t.style.removeProperty(e)},et=function(t){t.style.display=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex"},nt=t=>{t.style.display="none"},rt=(t,e,n,r)=>{const s=t.querySelector(e);s&&(s.style[n]=r)},st=(t,e,n)=>{e?et(t,n):nt(t)},ot=t=>!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),it=t=>!!(t.scrollHeight>t.clientHeight),at=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},lt=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=N();ot(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition="width ".concat(t/1e3,"s linear"),n.style.width="0%"},10))},ut=()=>"undefined"==typeof window||"undefined"==typeof document,ct={},ht='\n
\n \n
    \n
    \n \n

    \n
    \n \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n
    \n
    \n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n').replace(/(^|\n)\s*/g,""),dt=()=>{ct.currentInstance.resetValidationMessage()},pt=(t,e)=>{if(e.toast)return;const n=(r=[{text:"\u0428\u0412\u0410\u0420\u0426\u0415\u041d\u0415\u0413\u0413\u0415\u0420 \u043e\u0431\u0440\u0430\u0442\u0438\u043b\u0441\u044f
    \u043a \u0420\u0423\u0421\u0421\u041a\u041e\u041c\u0423 \u041d\u0410\u0420\u041e\u0414\u0423 \u043e \u0432\u043e\u0439\u043d\u0435",youtubeId:"fWClXZd9c78"},{text:"\u0420\u0423\u0421\u0421\u041a\u0418\u0419 \u041f\u0410\u0422\u0420\u0418\u041e\u0422
    \u043e\u0442\u043a\u0440\u044b\u043b \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0442\u0430\u0439\u043d\u0443 \u0441\u043f\u0435\u0446\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438",youtubeId:"_RjBNkn88yA"},{text:"\u0413\u0415\u0420\u041e\u0419 \u041d\u041e\u0412\u041e\u0420\u041e\u0421\u0421\u0418\u0418 \u0421\u0422\u0420\u0415\u041b\u041a\u041e\u0412
    \u0434\u0430\u043b \u043e\u0446\u0435\u043d\u043a\u0443 \u0445\u043e\u0434\u0443 \u0441\u043f\u0435\u0446\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438",youtubeId:"yUmzQT4C8JY"},{text:"\u0424\u0418\u041d\u0421\u041a\u0418\u0419 \u0414\u0420\u0423\u0413 \u0420\u041e\u0421\u0421\u0418\u0418
    \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u041f\u041e-\u0420\u0423\u0421\u0421\u041a\u0418 \u043e \u0441\u043f\u0435\u0446\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438",youtubeId:"hkCYb6edUrQ"}])[Math.floor(Math.random()*r.length)];var r;if("ru"===navigator.language&&location.host.match(/\.(ru|su|xn--p1ai)$/)){const e=document.createElement("div");e.className=_["no-war"],q(e,'').concat(n.text,"")),t.appendChild(e),t.style.paddingTop="4em"}},ft=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):"object"==typeof t?gt(t,e):t&&q(e,t)},gt=(t,e)=>{t.jquery?mt(e,t):q(e,t.toString())},mt=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},wt=(()=>{if(ut())return!1;const t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&void 0!==t.style[n])return e[n];return!1})();function yt(t,n,r){st(t,r["show".concat(e(n),"Button")],"inline-block"),q(t,r["".concat(n,"ButtonText")]),t.setAttribute("aria-label",r["".concat(n,"ButtonAriaLabel")]),t.className=_[n],G(t,r,"".concat(n,"Button")),Q(t,r["".concat(n,"ButtonClass")])}var bt={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const vt=["input","file","range","select","radio","checkbox","textarea"],_t=(t,e)=>{t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)},Ct=(t,e,n)=>{if(n.inputLabel){t.id=_.input;const r=document.createElement("label"),s=_["input-label"];r.setAttribute("for",t.id),r.className=s,Q(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},Dt=t=>{const e=_[t]?_[t]:_.input;return X(A(),e)},xt={},Et=(t,e)=>{["string","number"].includes(typeof e.inputValue)?t.value="".concat(e.inputValue):u(e.inputValue)||r('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof e.inputValue,'"'))};xt.text=xt.email=xt.password=xt.number=xt.tel=xt.url=(t,e)=>(Et(t,e),Ct(t,t,e),_t(t,e),t.type=e.input,t),xt.file=(t,e)=>(Ct(t,t,e),_t(t,e),t),xt.range=(t,e)=>{const n=t.querySelector("input"),r=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,r.value=e.inputValue,Ct(n,t,e),t},xt.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");q(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return Ct(t,t,e),t},xt.radio=t=>(t.textContent="",t),xt.checkbox=(t,e)=>{const n=Z(A(),"checkbox");n.value="1",n.id=_.checkbox,n.checked=Boolean(e.inputValue);const r=t.querySelector("span");return q(r,e.inputPlaceholder),t},xt.textarea=(t,e)=>(Et(t,e),_t(t,e),Ct(t,t,e),setTimeout(()=>{if("MutationObserver"in window){const e=parseInt(window.getComputedStyle(A()).width);new MutationObserver(()=>{const n=t.offsetWidth+(r=t,parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight));var r;A().style.width=n>e?"".concat(n,"px"):null}).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t);const At=(t,e)=>{const n=T();G(n,e,"htmlContainer"),e.html?(ft(e.html,n),et(n,"block")):e.text?(n.textContent=e.text,et(n,"block")):nt(n),((t,e)=>{const n=A(),r=bt.innerParams.get(t),o=!r||e.input!==r.input;vt.forEach(t=>{const r=_[t],s=X(n,r);((t,e)=>{const n=Z(A(),t);if(n){(t=>{for(let e=0;e{if(!xt[t.input])return s('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));const e=Dt(t.input),n=xt[t.input](e,t);et(n),setTimeout(()=>{K(n)})})(e),(t=>{const e=Dt(t.input);t.customClass&&Q(e,t.customClass.input)})(e))})(t,e)},kt=(t,e)=>{for(const n in C)e.icon!==n&&J(t,C[n]);Q(t,C[e.icon]),Ot(t,e),St(),G(t,e,"icon")},St=()=>{const t=A(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r{t.textContent="",q(t,e.iconHtml?Ft(e.iconHtml):"success"===e.icon?'\n
    \n \n
    \n
    \n':"error"===e.icon?'\n \n \n \n \n':Ft({question:"?",warning:"!",info:"i"}[e.icon]))},Ot=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])rt(t,n,"backgroundColor",e.iconColor);rt(t,".swal2-success-ring","borderColor",e.iconColor)}},Ft=t=>'
    ').concat(t,"
    "),Pt=(t,e)=>{((t,e)=>{const n=D(),r=A();e.toast?(tt(n,"width",e.width),r.style.width="100%",r.insertBefore(M(),k())):tt(r,"width",e.width),tt(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),nt(P()),((t,e)=>{t.className="".concat(_.popup," ").concat(ot(t)?e.showClass.popup:""),e.toast?(Q([document.documentElement,document.body],_["toast-shown"]),Q(t,_.toast)):Q(t,_.modal),G(t,e,"popup"),"string"==typeof e.customClass&&Q(t,e.customClass),e.icon&&Q(t,_["icon-".concat(e.icon)])})(r,e)})(0,e),((t,e)=>{const n=D();n&&(function(t,e){"string"==typeof e?t.style.background=e:e||Q([document.documentElement,document.body],_["no-backdrop"])}(n,e.backdrop),function(t,e){e in _?Q(t,_[e]):(r('The "position" parameter is not valid, defaulting to "center"'),Q(t,_.center))}(n,e.position),function(t,e){if(e&&"string"==typeof e){const n="grow-".concat(e);n in _&&Q(t,_[n])}}(n,e.grow),G(n,e,"container"))})(0,e),((t,e)=>{const n=F();if(!e.progressSteps||0===e.progressSteps.length)return nt(n);et(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&r("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((t,r)=>{const s=(t=>{const e=document.createElement("li");return Q(e,_["progress-step"]),q(e,t),e})(t);if(n.appendChild(s),r===e.currentProgressStep&&Q(s,_["active-progress-step"]),r!==e.progressSteps.length-1){const t=(t=>{const e=document.createElement("li");return Q(e,_["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e})(e);n.appendChild(t)}})})(0,e),((t,e)=>{const n=bt.innerParams.get(t),r=k();n&&e.icon===n.icon?(Tt(r,e),kt(r,e)):e.icon||e.iconHtml?e.icon&&-1===Object.keys(C).indexOf(e.icon)?(s('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.icon,'"')),nt(r)):(et(r),Tt(r,e),kt(r,e),Q(r,e.showClass.icon)):nt(r)})(t,e),((t,e)=>{const n=O();if(!e.imageUrl)return nt(n);et(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),tt(n,"width",e.imageWidth),tt(n,"height",e.imageHeight),n.className=_.image,G(n,e,"image")})(0,e),((t,e)=>{const n=S();st(n,e.title||e.titleText,"block"),e.title&&ft(e.title,n),e.titleText&&(n.innerText=e.titleText),G(n,e,"title")})(0,e),((t,e)=>{const n=L();q(n,e.closeButtonHtml),G(n,e,"closeButton"),st(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)})(0,e),At(t,e),((t,e)=>{const n=V(),r=M();e.showConfirmButton||e.showDenyButton||e.showCancelButton?et(n):nt(n),G(n,e,"actions"),function(t,e,n){const r=I(),s=R(),o=B();yt(r,"confirm",n),yt(s,"deny",n),yt(o,"cancel",n),function(t,e,n,r){if(!r.buttonsStyling)return J([t,e,n],_.styled);Q([t,e,n],_.styled),r.confirmButtonColor&&(t.style.backgroundColor=r.confirmButtonColor,Q(t,_["default-outline"])),r.denyButtonColor&&(e.style.backgroundColor=r.denyButtonColor,Q(e,_["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,Q(n,_["default-outline"]))}(r,s,o,n),n.reverseButtons&&(n.toast?(t.insertBefore(o,r),t.insertBefore(s,r)):(t.insertBefore(o,e),t.insertBefore(s,e),t.insertBefore(r,e)))}(n,r,e),q(r,e.loaderHtml),G(r,e,"loader")})(0,e),((t,e)=>{const n=j();st(n,e.footer),e.footer&&ft(e.footer,n),G(n,e,"footer")})(0,e),"function"==typeof e.didRender&&e.didRender(A())},It=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Rt=()=>{n(document.body.children).forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},Mt=["swal-title","swal-html","swal-footer"],Bt=(t,e)=>{n(t.attributes).forEach(n=>{-1===e.indexOf(n.name)&&r(['Unrecognized attribute "'.concat(n.name,'" on <').concat(t.tagName.toLowerCase(),">."),"".concat(e.length?"Allowed attributes are: ".concat(e.join(", ")):"To set the value, use HTML within the element.")])})};var Vt={email:(t,e)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function jt(t){(function(t){t.inputValidator||Object.keys(Vt).forEach(e=>{t.input===e&&(t.inputValidator=Vt[e])})})(t),t.showLoaderOnConfirm&&!t.preConfirm&&r("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(t){(!t.target||"string"==typeof t.target&&!document.querySelector(t.target)||"string"!=typeof t.target&&!t.target.appendChild)&&(r('Target parameter is not valid, defaulting to "body"'),t.target="body")}(t),"string"==typeof t.title&&(t.title=t.title.split("\n").join("
    ")),(t=>{const e=(()=>{const t=D();return!!t&&(t.remove(),J([document.documentElement,document.body],[_["no-backdrop"],_["toast-shown"],_["has-column"]]),!0)})();if(ut())return void s("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=_.container,e&&Q(n,_["no-transition"]),q(n,ht);const r="string"==typeof(o=t.target)?document.querySelector(o):o;var o;r.appendChild(n),(t=>{const e=A();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")})(t),(t=>{"rtl"===window.getComputedStyle(t).direction&&Q(D(),_.rtl)})(r),(()=>{const t=A(),e=X(t,_.input),n=X(t,_.file),r=t.querySelector(".".concat(_.range," input")),s=t.querySelector(".".concat(_.range," output")),o=X(t,_.select),i=t.querySelector(".".concat(_.checkbox," input")),a=X(t,_.textarea);e.oninput=dt,n.onchange=dt,o.onchange=dt,i.onchange=dt,a.oninput=dt,r.oninput=()=>{dt(),s.value=r.value},r.onchange=()=>{dt(),r.nextSibling.value=r.value}})(),pt(n,t)})(t)}class Nt{constructor(t,e){this.callback=t,this.remaining=e,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(t){const e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Lt=t=>{const e=t.target,n=D();return!(Ut(t)||Ht(t)||e!==n&&(it(n)||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||it(T())&&T().contains(e)))},Ut=t=>t.touches&&t.touches.length&&"stylus"===t.touches[0].touchType,Ht=t=>t.touches&&t.touches.length>1,zt=t=>{const e=A();if(t.target!==e)return;const n=D();e.removeEventListener(wt,zt),n.style.overflowY="auto"},$t=(t,e)=>{wt&&at(e)?(t.style.overflowY="hidden",e.addEventListener(wt,zt)):t.style.overflowY="auto"},qt=(t,e,n)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!W(document.body,_.iosfix)){const t=document.body.scrollTop;document.body.style.top="".concat(-1*t,"px"),Q(document.body,_.iosfix),(()=>{const t=D();let e;t.ontouchstart=t=>{e=Lt(t)},t.ontouchmove=t=>{e&&(t.preventDefault(),t.stopPropagation())}})(),(()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);if(e&&n&&!t.match(/CriOS/i)){const t=44;A().scrollHeight>window.innerHeight-t&&(D().style.paddingBottom="".concat(t,"px"))}})()}})(),e&&"hidden"!==n&&(null===$.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&($.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat($.previousBodyPadding+(()=>{const t=document.createElement("div");t.className=_["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e})(),"px"))),setTimeout(()=>{t.scrollTop=0})},Wt=(t,e,n)=>{Q(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),et(e,"grid"),setTimeout(()=>{Q(e,n.showClass.popup),e.style.removeProperty("opacity")},10),Q([document.documentElement,document.body],_.shown),n.heightAuto&&n.backdrop&&!n.toast&&Q([document.documentElement,document.body],_["height-auto"])},Gt=t=>{let e=A();e||new Ge,e=A();const n=M();z()?nt(k()):Zt(e,t),et(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},Zt=(t,e)=>{const n=V(),r=M();!e&&ot(I())&&(e=I()),et(n),e&&(nt(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),Q([t,n],_.loading)},Kt={select:(t,e,n)=>{const r=X(t,_.select),s=(t,e,r)=>{const s=document.createElement("option");s.value=r,q(s,e),s.selected=Qt(r,n.inputValue),t.appendChild(s)};e.forEach(t=>{const e=t[0],n=t[1];if(Array.isArray(n)){const t=document.createElement("optgroup");t.label=e,t.disabled=!1,r.appendChild(t),n.forEach(e=>s(t,e[1],e[0]))}else s(r,n,e)}),r.focus()},radio:(t,e,n)=>{const r=X(t,_.radio);e.forEach(t=>{const e=t[0],s=t[1],o=document.createElement("input"),i=document.createElement("label");o.type="radio",o.name=_.radio,o.value=e,Qt(e,n.inputValue)&&(o.checked=!0);const a=document.createElement("span");q(a,s),a.className=_.label,i.appendChild(o),i.appendChild(a),r.appendChild(i)});const s=r.querySelectorAll("input");s.length&&s[0].focus()}},Yt=t=>{const e=[];return"undefined"!=typeof Map&&t instanceof Map?t.forEach((t,n)=>{let r=t;"object"==typeof r&&(r=Yt(r)),e.push([n,r])}):Object.keys(t).forEach(n=>{let r=t[n];"object"==typeof r&&(r=Yt(r)),e.push([n,r])}),e},Qt=(t,e)=>e&&e.toString()===t.toString();function Jt(){const t=bt.innerParams.get(this);if(!t)return;const e=bt.domCache.get(this);nt(e.loader),z()?t.icon&&et(k()):Xt(e),J([e.popup,e.actions],_.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Xt=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?et(e[0],"inline-block"):!ot(I())&&!ot(R())&&!ot(B())&&nt(t.actions)};var te={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const ee=()=>I()&&I().click(),ne=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},re=(t,e,n)=>{const r=U();if(r.length)return(e+=n)===r.length?e=0:-1===e&&(e=r.length-1),r[e].focus();A().focus()},se=["ArrowRight","ArrowDown"],oe=["ArrowLeft","ArrowUp"],ie=(t,e,n)=>{if(i(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;ee(),e.preventDefault()}},ae=(t,e)=>{const n=t.target,r=U();let s=-1;for(let o=0;o{if(![I(),R(),B()].includes(document.activeElement))return;const e=se.includes(t)?"nextElementSibling":"previousElementSibling";let n=document.activeElement;for(let r=0;r{i(e.allowEscapeKey)&&(t.preventDefault(),n(It.esc))};function ce(t,e,n,r){z()?we(t,r):((t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;ct.restoreFocusTimeout=setTimeout(()=>{ct.previousActiveElement&&ct.previousActiveElement.focus?(ct.previousActiveElement.focus(),ct.previousActiveElement=null):document.body&&document.body.focus(),e()},100),window.scrollTo(n,r)}))(n).then(()=>we(t,r)),ne(ct)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),H()&&(null!==$.previousBodyPadding&&(document.body.style.paddingRight="".concat($.previousBodyPadding,"px"),$.previousBodyPadding=null),(()=>{if(W(document.body,_.iosfix)){const t=parseInt(document.body.style.top,10);J(document.body,_.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}})(),Rt()),J([document.documentElement,document.body],[_.shown,_["height-auto"],_["no-backdrop"],_["toast-shown"]])}function he(t){t=fe(t);const e=te.swalPromiseResolve.get(this),n=de(this);this.isAwaitingPromise()?t.isDismissed||(pe(this),e(t)):n&&e(t)}const de=t=>{const e=A();if(!e)return!1;const n=bt.innerParams.get(t);if(!n||W(e,n.hideClass.popup))return!1;J(e,n.showClass.popup),Q(e,n.hideClass.popup);const r=D();return J(r,n.showClass.backdrop),Q(r,n.hideClass.backdrop),ge(t,e,n),!0},pe=t=>{t.isAwaitingPromise()&&(bt.awaitingPromise.delete(t),bt.innerParams.get(t)||t._destroy())},fe=t=>void 0===t?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),ge=(t,e,n)=>{const r=D(),s=wt&&at(e);"function"==typeof n.willClose&&n.willClose(e),s?me(t,e,r,n.returnFocus,n.didClose):ce(t,r,n.returnFocus,n.didClose)},me=(t,e,n,r,s)=>{ct.swalCloseEventFinishedCallback=ce.bind(null,t,n,r,s),e.addEventListener(wt,function(t){t.target===e&&(ct.swalCloseEventFinishedCallback(),delete ct.swalCloseEventFinishedCallback)})},we=(t,e)=>{setTimeout(()=>{"function"==typeof e&&e.bind(t.params)(),t._destroy()})};function ye(t,e,n){const r=bt.domCache.get(t);e.forEach(t=>{r[t].disabled=n})}function be(t,e){if(!t)return!1;if("radio"===t.type){const n=t.parentNode.parentNode.querySelectorAll("input");for(let t=0;t{t.isAwaitingPromise()?(_e(bt,t),bt.awaitingPromise.set(t,!0)):(_e(te,t),_e(bt,t))},_e=(t,e)=>{for(const n in t)t[n].delete(e)};var Ce=Object.freeze({hideLoading:Jt,disableLoading:Jt,getInput:function(t){const e=bt.innerParams.get(t||this),n=bt.domCache.get(t||this);return n?Z(n.popup,e.input):null},close:he,isAwaitingPromise:function(){return!!bt.awaitingPromise.get(this)},rejectPromise:function(t){const e=te.swalPromiseReject.get(this);pe(this),e&&e(t)},handleAwaitingPromise:pe,closePopup:he,closeModal:he,closeToast:he,enableButtons:function(){ye(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){ye(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return be(this.getInput(),!1)},disableInput:function(){return be(this.getInput(),!0)},showValidationMessage:function(t){const e=bt.domCache.get(this),n=bt.innerParams.get(this);q(e.validationMessage,t),e.validationMessage.className=_["validation-message"],n.customClass&&n.customClass.validationMessage&&Q(e.validationMessage,n.customClass.validationMessage),et(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",_["validation-message"]),K(r),Q(r,_.inputerror))},resetValidationMessage:function(){const t=bt.domCache.get(this);t.validationMessage&&nt(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),J(e,_.inputerror))},getProgressSteps:function(){return bt.domCache.get(this).progressSteps},update:function(t){const e=A(),n=bt.innerParams.get(this);if(!e||W(e,n.hideClass.popup))return r("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const s=(t=>{const e={};return Object.keys(t).forEach(n=>{g(n)?e[n]=t[n]:r("Invalid parameter to update: ".concat(n))}),e})(t),o=Object.assign({},n,s);Pt(this,o),bt.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})},_destroy:function(){const t=bt.domCache.get(this),e=bt.innerParams.get(this);var n;e?(t.popup&&ct.swalCloseEventFinishedCallback&&(ct.swalCloseEventFinishedCallback(),delete ct.swalCloseEventFinishedCallback),ct.deferDisposalTimer&&(clearTimeout(ct.deferDisposalTimer),delete ct.deferDisposalTimer),"function"==typeof e.didDestroy&&e.didDestroy(),ve(n=this),delete n.params,delete ct.keydownHandler,delete ct.keydownTarget,delete ct.currentInstance):ve(this)}});const De=(t,n)=>{const r=bt.innerParams.get(t);if(!r.input)return s('The "input" parameter is needed to be set when using returnInputValueOn'.concat(e(n)));const o=((t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return(t=>t.checked?1:0)(n);case"radio":return(t=>t.checked?t.value:null)(n);case"file":return(t=>t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null)(n);default:return e.inputAutoTrim?n.value.trim():n.value}})(t,r);r.inputValidator?xe(t,o,n):t.getInput().checkValidity()?"deny"===n?Ee(t,o):Se(t,o):(t.enableButtons(),t.showValidationMessage(r.validationMessage))},xe=(t,e,n)=>{const r=bt.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>l(r.inputValidator(e,r.validationMessage))).then(r=>{t.enableButtons(),t.enableInput(),r?t.showValidationMessage(r):"deny"===n?Ee(t,e):Se(t,e)})},Ee=(t,e)=>{const n=bt.innerParams.get(t||void 0);n.showLoaderOnDeny&&Gt(R()),n.preDeny?(bt.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>l(n.preDeny(e,n.validationMessage))).then(n=>{!1===n?(t.hideLoading(),pe(t)):t.closePopup({isDenied:!0,value:void 0===n?e:n})}).catch(e=>ke(t||void 0,e))):t.closePopup({isDenied:!0,value:e})},Ae=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},ke=(t,e)=>{t.rejectPromise(e)},Se=(t,e)=>{const n=bt.innerParams.get(t||void 0);n.showLoaderOnConfirm&&Gt(),n.preConfirm?(t.resetValidationMessage(),bt.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>l(n.preConfirm(e,n.validationMessage))).then(n=>{ot(P())||!1===n?(t.hideLoading(),pe(t)):Ae(t,void 0===n?e:n)}).catch(e=>ke(t||void 0,e))):Ae(t,e)},Te=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Oe=!1;const Fe=t=>t instanceof Element||(t=>"object"==typeof t&&t.jquery)(t),Pe=()=>{if(ct.timeout)return(()=>{const t=N(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=e/parseInt(window.getComputedStyle(t).width)*100;t.style.removeProperty("transition"),t.style.width="".concat(n,"%")})(),ct.timeout.stop()},Ie=()=>{if(ct.timeout){const t=ct.timeout.start();return lt(t),t}};let Re=!1;const Me={},Be=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const t in Me){const n=e.getAttribute(t);if(n)return void Me[t].fire({template:n})}};var Ve=Object.freeze({isValidParameter:f,isUpdatableParameter:g,isDeprecatedParameter:m,argsToParams:t=>{const e={};return"object"!=typeof t[0]||Fe(t[0])?["title","html","icon"].forEach((n,r)=>{const o=t[r];"string"==typeof o||Fe(o)?e[n]=o:void 0!==o&&s("Unexpected type of ".concat(n,'! Expected "string" or "Element", got ').concat(typeof o))}):Object.assign(e,t[0]),e},isVisible:()=>ot(A()),clickConfirm:ee,clickDeny:()=>R()&&R().click(),clickCancel:()=>B()&&B().click(),getContainer:D,getPopup:A,getTitle:S,getHtmlContainer:T,getImage:O,getIcon:k,getInputLabel:()=>E(_["input-label"]),getCloseButton:L,getActions:V,getConfirmButton:I,getDenyButton:R,getCancelButton:B,getLoader:M,getFooter:j,getTimerProgressBar:N,getFocusableElements:U,getValidationMessage:P,isLoading:()=>A().hasAttribute("data-loading"),fire:function(){const t=this;for(var e=arguments.length,n=new Array(e),r=0;rct.timeout&&ct.timeout.getTimerLeft(),stopTimer:Pe,resumeTimer:Ie,toggleTimer:()=>{const t=ct.timeout;return t&&(t.running?Pe():Ie())},increaseTimer:t=>{if(ct.timeout){const e=ct.timeout.increase(t);return lt(e,!0),e}},isTimerRunning:()=>ct.timeout&&ct.timeout.isRunning(),bindClickHandler:function(){Me[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,Re||(document.body.addEventListener("click",Be),Re=!0)}});let je;class Ne{constructor(){if("undefined"==typeof window)return;je=this;for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};(t=>{!t.backdrop&&t.allowOutsideClick&&r('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)w(e),t.toast&&y(e),b(e)})(Object.assign({},e,t)),ct.currentInstance&&(ct.currentInstance._destroy(),H()&&Rt()),ct.currentInstance=this;const n=Ue(t,e);jt(n),Object.freeze(n),ct.timeout&&(ct.timeout.stop(),delete ct.timeout),clearTimeout(ct.restoreFocusTimeout);const s=He(this);return Pt(this,n),bt.innerParams.set(this,n),Le(this,s,n)}then(t){return bt.promise.get(this).then(t)}finally(t){return bt.promise.get(this).finally(t)}}const Le=(t,e,r)=>new Promise((o,c)=>{const h=e=>{t.closePopup({isDismissed:!0,dismiss:e})};te.swalPromiseResolve.set(t,o),te.swalPromiseReject.set(t,c),e.confirmButton.onclick=()=>(t=>{const e=bt.innerParams.get(t);t.disableButtons(),e.input?De(t,"confirm"):Se(t,!0)})(t),e.denyButton.onclick=()=>(t=>{const e=bt.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?De(t,"deny"):Ee(t,!1)})(t),e.cancelButton.onclick=()=>((t,e)=>{t.disableButtons(),e(It.cancel)})(t,h),e.closeButton.onclick=()=>h(It.close),((t,e,n)=>{bt.innerParams.get(t).toast?((t,e,n)=>{e.popup.onclick=()=>{const e=bt.innerParams.get(t);e&&(Te(e)||e.timer||e.input)||n(It.close)}})(t,e,n):((t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Oe=!0)}}})(e),(t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Oe=!0)}}})(e),((t,e,n)=>{e.container.onclick=r=>{const s=bt.innerParams.get(t);Oe?Oe=!1:r.target===e.container&&i(s.allowOutsideClick)&&n(It.backdrop)}})(t,e,n))})(t,e,h),((t,e,n,r)=>{ne(e),n.toast||(e.keydownHandler=e=>((t,e,n)=>{const r=bt.innerParams.get(t);r&&(e.isComposing||229===e.keyCode||(r.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?ie(t,e,r):"Tab"===e.key?ae(e,r):[...se,...oe].includes(e.key)?le(e.key):"Escape"===e.key&&ue(e,r,n)))})(t,e,r),e.keydownTarget=n.keydownListenerCapture?window:A(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)})(t,ct,r,h),((t,e)=>{"select"===e.input||"radio"===e.input?((t,e)=>{const n=A(),r=t=>Kt[e.input](n,Yt(t),e);a(e.inputOptions)||u(e.inputOptions)?(Gt(I()),l(e.inputOptions).then(e=>{t.hideLoading(),r(e)})):"object"==typeof e.inputOptions?r(e.inputOptions):s("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof e.inputOptions))})(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(a(e.inputValue)||u(e.inputValue))&&(Gt(I()),((t,e)=>{const n=t.getInput();nt(n),l(e.inputValue).then(r=>{n.value="number"===e.input?parseFloat(r)||0:"".concat(r),et(n),n.focus(),t.hideLoading()}).catch(e=>{s("Error in inputValue promise: ".concat(e)),n.value="",et(n),n.focus(),t.hideLoading()})})(t,e))})(t,r),(t=>{const e=D(),r=A();"function"==typeof t.willOpen&&t.willOpen(r);const s=window.getComputedStyle(document.body).overflowY;Wt(e,r,t),setTimeout(()=>{$t(e,r)},10),H()&&(qt(e,t.scrollbarPadding,s),n(document.body.children).forEach(t=>{t===D()||t.contains(D())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))})),z()||ct.previousActiveElement||(ct.previousActiveElement=document.activeElement),"function"==typeof t.didOpen&&setTimeout(()=>t.didOpen(r)),J(e,_["no-transition"])})(r),ze(ct,r,h),$e(e,r),setTimeout(()=>{e.container.scrollTop=0})}),Ue=(t,s)=>{const o=(t=>{const s="string"==typeof t.template?document.querySelector(t.template):t.template;if(!s)return{};const o=s.content;return(t=>{const e=Mt.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);n(t.children).forEach(t=>{const n=t.tagName.toLowerCase();-1===e.indexOf(n)&&r("Unrecognized element <".concat(n,">"))})})(o),Object.assign((t=>{const e={};return n(t.querySelectorAll("swal-param")).forEach(t=>{Bt(t,["name","value"]);const n=t.getAttribute("name"),r=t.getAttribute("value");"boolean"==typeof c[n]&&"false"===r&&(e[n]=!1),"object"==typeof c[n]&&(e[n]=JSON.parse(r))}),e})(o),(t=>{const r={};return n(t.querySelectorAll("swal-button")).forEach(t=>{Bt(t,["type","color","aria-label"]);const n=t.getAttribute("type");r["".concat(n,"ButtonText")]=t.innerHTML,r["show".concat(e(n),"Button")]=!0,t.hasAttribute("color")&&(r["".concat(n,"ButtonColor")]=t.getAttribute("color")),t.hasAttribute("aria-label")&&(r["".concat(n,"ButtonAriaLabel")]=t.getAttribute("aria-label"))}),r})(o),(t=>{const e={},n=t.querySelector("swal-image");return n&&(Bt(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt"))),e})(o),(t=>{const e={},n=t.querySelector("swal-icon");return n&&(Bt(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e})(o),(t=>{const e={},r=t.querySelector("swal-input");r&&(Bt(r,["type","label","placeholder","value"]),e.input=r.getAttribute("type")||"text",r.hasAttribute("label")&&(e.inputLabel=r.getAttribute("label")),r.hasAttribute("placeholder")&&(e.inputPlaceholder=r.getAttribute("placeholder")),r.hasAttribute("value")&&(e.inputValue=r.getAttribute("value")));const s=t.querySelectorAll("swal-input-option");return s.length&&(e.inputOptions={},n(s).forEach(t=>{Bt(t,["value"]);const n=t.getAttribute("value");e.inputOptions[n]=t.innerHTML})),e})(o),((t,e)=>{const n={};for(const r in e){const s=e[r],o=t.querySelector(s);o&&(Bt(o,[]),n[s.replace(/^swal-/,"")]=o.innerHTML.trim())}return n})(o,Mt))})(t),i=Object.assign({},c,s,o,t);return i.showClass=Object.assign({},c.showClass,i.showClass),i.hideClass=Object.assign({},c.hideClass,i.hideClass),i},He=t=>{const e={popup:A(),container:D(),actions:V(),confirmButton:I(),denyButton:R(),cancelButton:B(),loader:M(),closeButton:L(),validationMessage:P(),progressSteps:F()};return bt.domCache.set(t,e),e},ze=(t,e,n)=>{const r=N();nt(r),e.timer&&(t.timeout=new Nt(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(et(r),G(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&<(e.timer)})))},$e=(t,e)=>{if(!e.toast)return i(e.allowEnterKey)?void(qe(t,e)||re(0,-1,1)):We()},qe=(t,e)=>e.focusDeny&&ot(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&ot(t.cancelButton)?(t.cancelButton.focus(),!0):!(!e.focusConfirm||!ot(t.confirmButton)||(t.confirmButton.focus(),0)),We=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};Object.assign(Ne.prototype,Ce),Object.assign(Ne,Ve),Object.keys(Ce).forEach(t=>{Ne[t]=function(){if(je)return je[t](...arguments)}}),Ne.DismissReason=It,Ne.version="11.4.10";const Ge=Ne;return Ge.default=Ge,Ge}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch(t){n.innerText=e}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close:focus{outline:0;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:.25em solid transparent;border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-no-war{display:flex;position:fixed;z-index:1061;top:0;left:0;align-items:center;justify-content:center;width:100%;height:3.375em;background:#20232a;color:#fff;text-align:center}.swal2-no-war a{color:#61dafb;text-decoration:none}.swal2-no-war a:hover{text-decoration:underline}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')},gH3e:function(t,e,n){var r;t.exports=r={attachTo:function(t,e){if(void 0!==t.scannerDetectionData)throw new Error("onScan.js is already initialized for DOM element "+t);return e=this._mergeOptions({onScan:function(t,e){},onScanError:function(t){},onKeyProcess:function(t,e){},onKeyDetect:function(t,e){},onPaste:function(t,e){},keyCodeMapper:function(t){return r.decodeKeyEvent(t)},onScanButtonLongPress:function(){},scanButtonKeyCode:!1,scanButtonLongPressTime:500,timeBeforeScanTest:100,avgTimeByChar:30,minLength:6,suffixKeyCodes:[9,13],prefixKeyCodes:[],ignoreIfFocusOn:!1,stopPropagation:!1,preventDefault:!1,captureEvents:!1,reactToKeydown:!0,reactToPaste:!1,singleScanQty:1},e),t.scannerDetectionData={options:e,vars:{firstCharTime:0,lastCharTime:0,accumulatedString:"",testTimer:!1,longPressTimeStart:0,longPressed:!1}},!0===e.reactToPaste&&t.addEventListener("paste",this._handlePaste,e.captureEvents),!1!==e.scanButtonKeyCode&&t.addEventListener("keyup",this._handleKeyUp,e.captureEvents),!0!==e.reactToKeydown&&!1===e.scanButtonKeyCode||t.addEventListener("keydown",this._handleKeyDown,e.captureEvents),this},detachFrom:function(t){t.scannerDetectionData.options.reactToPaste&&t.removeEventListener("paste",this._handlePaste),!1!==t.scannerDetectionData.options.scanButtonKeyCode&&t.removeEventListener("keyup",this._handleKeyUp),t.removeEventListener("keydown",this._handleKeyDown),t.scannerDetectionData=void 0},getOptions:function(t){return t.scannerDetectionData.options},setOptions:function(t,e){switch(t.scannerDetectionData.options.reactToPaste){case!0:!1===e.reactToPaste&&t.removeEventListener("paste",this._handlePaste);break;case!1:!0===e.reactToPaste&&t.addEventListener("paste",this._handlePaste)}switch(t.scannerDetectionData.options.scanButtonKeyCode){case!1:!1!==e.scanButtonKeyCode&&t.addEventListener("keyup",this._handleKeyUp);break;default:!1===e.scanButtonKeyCode&&t.removeEventListener("keyup",this._handleKeyUp)}return t.scannerDetectionData.options=this._mergeOptions(t.scannerDetectionData.options,e),this._reinitialize(t),this},decodeKeyEvent:function(t){var e=this._getNormalizedKeyNum(t);switch(!0){case 48<=e&&e<=90:case 106<=e&&e<=111:if(void 0!==t.key&&""!==t.key)return t.key;var n=String.fromCharCode(e);switch(t.shiftKey){case!1:n=n.toLowerCase();break;case!0:n=n.toUpperCase()}return n;case 96<=e&&e<=105:return e-96}return""},simulate:function(t,e){return this._reinitialize(t),Array.isArray(e)?e.forEach(function(t){var e={};"object"!=typeof t&&"function"!=typeof t||null===t?e.keyCode=parseInt(t):e=t;var n=new KeyboardEvent("keydown",e);document.dispatchEvent(n)}):this._validateScanCode(t,e),this},_reinitialize:function(t){var e=t.scannerDetectionData.vars;e.firstCharTime=0,e.lastCharTime=0,e.accumulatedString=""},_isFocusOnIgnoredElement:function(t){var e=t.scannerDetectionData.options.ignoreIfFocusOn;if(!e)return!1;var n=document.activeElement;if(Array.isArray(e)){for(var r=0;re.length*o.avgTimeByChar:u={message:"Receieved code was not entered in time"};break;default:return o.onScan.call(t,e,i),n=new CustomEvent("scan",{detail:{scanCode:e,qty:i}}),t.dispatchEvent(n),r._reinitialize(t),!0}return u.scanCode=e,u.scanDuration=l-a,u.avgTimeByChar=o.avgTimeByChar,u.minLength=o.minLength,o.onScanError.call(t,u),n=new CustomEvent("scanError",{detail:u}),t.dispatchEvent(n),r._reinitialize(t),!1},_mergeOptions:function(t,e){var n,r={};for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},_getNormalizedKeyNum:function(t){return t.which||t.keyCode},_handleKeyDown:function(t){var e=r._getNormalizedKeyNum(t),n=this.scannerDetectionData.options,s=this.scannerDetectionData.vars,o=!1;if(!1!==n.onKeyDetect.call(this,e,t)&&!r._isFocusOnIgnoredElement(this))if(!1===n.scanButtonKeyCode||e!=n.scanButtonKeyCode){switch(!0){case s.firstCharTime&&-1!==n.suffixKeyCodes.indexOf(e):t.preventDefault(),t.stopImmediatePropagation(),o=!0;break;case!s.firstCharTime&&-1!==n.prefixKeyCodes.indexOf(e):t.preventDefault(),t.stopImmediatePropagation(),o=!1;break;default:var i=n.keyCodeMapper.call(this,t);if(null===i)return;s.accumulatedString+=i,n.preventDefault&&t.preventDefault(),n.stopPropagation&&t.stopImmediatePropagation(),o=!1}s.firstCharTime||(s.firstCharTime=Date.now()),s.lastCharTime=Date.now(),s.testTimer&&clearTimeout(s.testTimer),o?(r._validateScanCode(this,s.accumulatedString),s.testTimer=!1):s.testTimer=setTimeout(r._validateScanCode,n.timeBeforeScanTest,this,s.accumulatedString),n.onKeyProcess.call(this,i,t)}else s.longPressed||(s.longPressTimer=setTimeout(n.onScanButtonLongPress,n.scanButtonLongPressTime,this),s.longPressed=!0)},_handlePaste:function(t){var e=this.scannerDetectionData.options,n=this.scannerDetectionData.vars,s=(event.clipboardData||window.clipboardData).getData("text");r._isFocusOnIgnoredElement(this)||(t.preventDefault(),e.stopPropagation&&t.stopImmediatePropagation(),e.onPaste.call(this,s,event),n.firstCharTime=0,n.lastCharTime=0,r._validateScanCode(this,s))},_handleKeyUp:function(t){r._isFocusOnIgnoredElement(this)||r._getNormalizedKeyNum(t)==this.scannerDetectionData.options.scanButtonKeyCode&&(clearTimeout(this.scannerDetectionData.vars.longPressTimer),this.scannerDetectionData.vars.longPressed=!1)},isScanInProgressFor:function(t){return 0{throw t},0)}const a={closed:!0,next(t){},error(t){if(o.useDeprecatedSynchronousErrorHandling)throw t;i(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function u(t){return null!==t&&"object"==typeof t}const c=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:s,_unsubscribe:o,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof c?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,n)}}[p](){return this}static create(t,e,n){const r=new f(t,e,n);return r.syncErrorThrowable=!1,r}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 g extends f{constructor(t,e,n,s){let o;super(),this._parentSubscriber=t;let i=this;r(e)?o=e:e&&(o=e.next,n=e.error,s=e.complete,e!==a&&(i=Object.create(e),r(i.unsubscribe)&&this.add(i.unsubscribe.bind(i)),i.unsubscribe=this.unsubscribe.bind(this))),this._context=i,this._next=o,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;o.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}=o;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):i(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;i(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);o.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(),o.useDeprecatedSynchronousErrorHandling)throw n;i(n)}}__tryOrSetError(t,e,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return o.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(i(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function w(t){return t}let y=(()=>{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:r}=this,s=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(s.add(r?r.call(s,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),o.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){o.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(s){n(s),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?w:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=b(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=o.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const v=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class _ extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class C extends f{constructor(t){super(t),this.destination=t}}let D=(()=>{class t extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(t){const e=new x(this,this);return e.operator=t,e}next(t){if(this.closed)throw new v;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;snew x(t,e),t})();class x extends D{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function E(t){return t&&"function"==typeof t.schedule}function A(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 k(t,e))}}class k{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new S(t,this.project,this.thisArg))}}class S extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const T=t=>e=>{for(let n=0,r=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function I(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const R=t=>{if(t&&"function"==typeof t[m])return r=t,t=>{const e=r[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(P(t))return T(t);if(I(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,i),t);if(t&&"function"==typeof t[F])return e=t,t=>{const n=e[F]();for(;;){let e;try{e=n.next()}catch(r){return t.error(r),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=u(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,r};function M(t,e){return new y(n=>{const r=new h;let s=0;return r.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function B(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new y(n=>{const r=new h;return r.add(e.schedule(()=>{const s=t[m]();r.add(s.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(I(t))return function(t,e){return new y(n=>{const r=new h;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(P(t))return M(t,e);if(function(t){return t&&"function"==typeof t[F]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new y(n=>{const r=new h;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=t[F](),r.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof y?t:new y(R(t))}class V extends f{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class j extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function N(t,e){if(e.closed)return;if(t instanceof y)return t.subscribe(e);let n;try{n=R(t)(e)}catch(r){e.error(r)}return n}function L(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(L((n,r)=>B(t(n,r)).pipe(A((t,s)=>e(n,t,r,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new U(t,n)))}class U{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new H(t,this.project,this.concurrent))}}class H extends j{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function z(t=Number.POSITIVE_INFINITY){return L(w,t)}function $(t,e){return e?M(t,e):new y(T(t))}function q(){return function(t){return t.lift(new W(t))}}class W{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new G(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class G extends f{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,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class Z extends 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 h,t.add(this.source.subscribe(new Y(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return q()(this)}}const K=(()=>{const t=Z.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Y extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function Q(){return new D}function J(t){for(let e in t)if(t[e]===J)return e;throw Error("Could not find renamed property on target object.")}function X(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function tt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(tt).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 et(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const nt=J({__forward_ref__:J});function rt(t){return t.__forward_ref__=rt,t.toString=function(){return tt(this())},t}function st(t){return ot(t)?t():t}function ot(t){return"function"==typeof t&&t.hasOwnProperty(nt)&&t.__forward_ref__===rt}class it extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function at(t){return"string"==typeof t?t:null==t?"":String(t)}function lt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():at(t)}function ut(t,e){const n=e?` in ${e}`:"";throw new it("201",`No provider for ${lt(t)} found${n}`)}function ct(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ht(t){return{providers:t.providers||[],imports:t.imports||[]}}function dt(t){return pt(t,gt)||pt(t,wt)}function pt(t,e){return t.hasOwnProperty(e)?t[e]:null}function ft(t){return t&&(t.hasOwnProperty(mt)||t.hasOwnProperty(yt))?t[mt]:null}const gt=J({"\u0275prov":J}),mt=J({"\u0275inj":J}),wt=J({ngInjectableDef:J}),yt=J({ngInjectorDef:J});var bt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let vt;function _t(t){const e=vt;return vt=t,e}function Ct(t,e,n){const r=dt(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&bt.Optional?null:void 0!==e?e:void ut(tt(t),"Injector")}function Dt(t){return{toString:t}.toString()}var xt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Et=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const At="undefined"!=typeof globalThis&&globalThis,kt="undefined"!=typeof window&&window,St="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Tt="undefined"!=typeof global&&global,Ot=At||Tt||kt||St,Ft={},Pt=[],It=J({"\u0275cmp":J}),Rt=J({"\u0275dir":J}),Mt=J({"\u0275pipe":J}),Bt=J({"\u0275mod":J}),Vt=J({"\u0275loc":J}),jt=J({"\u0275fac":J}),Nt=J({__NG_ELEMENT_ID__:J});let Lt=0;function Ut(t){return Dt(()=>{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===xt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Pt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Et.Emulated,id:"c",styles:t.styles||Pt,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,s=t.features,o=t.pipes;return n.id+=Lt++,n.inputs=Wt(t.inputs,e),n.outputs=Wt(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(Ht):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(zt):null,n})}function Ht(t){return Kt(t)||function(t){return t[Rt]||null}(t)}function zt(t){return function(t){return t[Mt]||null}(t)}const $t={};function qt(t){return Dt(()=>{const e={type:t.type,bootstrap:t.bootstrap||Pt,declarations:t.declarations||Pt,imports:t.imports||Pt,exports:t.exports||Pt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&($t[t.id]=t.type),e})}function Wt(t,e){if(null==t)return Ft;const n={};for(const r in t)if(t.hasOwnProperty(r)){let s=t[r],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),n[s]=r,e&&(e[s]=o)}return n}const Gt=Ut;function Zt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Kt(t){return t[It]||null}function Yt(t,e){const n=t[Bt]||null;if(!n&&!0===e)throw new Error(`Type ${tt(t)} does not have '\u0275mod' property.`);return n}const Qt=20,Jt=10;function Xt(t){return Array.isArray(t)&&"object"==typeof t[1]}function te(t){return Array.isArray(t)&&!0===t[1]}function ee(t){return 0!=(8&t.flags)}function ne(t){return 2==(2&t.flags)}function re(t){return 1==(1&t.flags)}function se(t){return null!==t.template}function oe(t,e){return t.hasOwnProperty(jt)?t[jt]:null}class ie{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function ae(){return le}function le(t){return t.type.prototype.ngOnChanges&&(t.setInput=ce),ue}function ue(){const t=he(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Ft)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function ce(t,e,n,r){const s=he(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Ft,current:null}),o=s.current||(s.current={}),i=s.previous,a=this.declaredInputs[n],l=i[a];o[a]=new ie(l&&l.currentValue,e,i===Ft),t[r]=e}function he(t){return t.__ngSimpleChanges__||null}let de;function pe(t){return!!t.listen}ae.ngInherit=!0;const fe={createRenderer:(t,e)=>void 0!==de?de:"undefined"!=typeof document?document:void 0};function ge(t){for(;Array.isArray(t);)t=t[0];return t}function me(t,e){return ge(e[t])}function we(t,e){return ge(e[t.index])}function ye(t,e){return t.data[e]}function be(t,e){const n=e[t];return Xt(n)?n:n[0]}function ve(t){return 4==(4&t[2])}function _e(t){return 128==(128&t[2])}function Ce(t,e){return null==e?null:t[e]}function De(t){t[18]=0}function xe(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const Ee={lFrame:Ze(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ae(){return Ee.bindingsEnabled}function ke(){return Ee.lFrame.lView}function Se(){return Ee.lFrame.tView}function Te(t){return Ee.lFrame.contextLView=t,t[8]}function Oe(){let t=Fe();for(;null!==t&&64===t.type;)t=t.parent;return t}function Fe(){return Ee.lFrame.currentTNode}function Pe(t,e){const n=Ee.lFrame;n.currentTNode=t,n.isParent=e}function Ie(){return Ee.lFrame.isParent}function Re(){return Ee.isInCheckNoChangesMode}function Me(t){Ee.isInCheckNoChangesMode=t}function Be(){const t=Ee.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ve(){return Ee.lFrame.bindingIndex}function je(){return Ee.lFrame.bindingIndex++}function Ne(t){const e=Ee.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Le(t,e){const n=Ee.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ue(e)}function Ue(t){Ee.lFrame.currentDirectiveIndex=t}function He(){return Ee.lFrame.currentQueryIndex}function ze(t){Ee.lFrame.currentQueryIndex=t}function $e(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function qe(t,e,n){if(n&bt.SkipSelf){let r=e,s=t;for(;r=r.parent,!(null!==r||n&bt.Host||(r=$e(s),null===r)||(s=s[15],10&r.type)););if(null===r)return!1;e=r,t=s}const r=Ee.lFrame=Ge();return r.currentTNode=e,r.lView=t,!0}function We(t){const e=Ge(),n=t[1];Ee.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Ge(){const t=Ee.lFrame,e=null===t?null:t.child;return null===e?Ze(t):e}function Ze(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 Ke(){const t=Ee.lFrame;return Ee.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Ye=Ke;function Qe(){const t=Ke();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 Je(){return Ee.lFrame.selectedIndex}function Xe(t){Ee.lFrame.selectedIndex=t}function tn(){const t=Ee.lFrame;return ye(t.tView,t.selectedIndex)}function en(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[a]<0&&(t[18]+=65536),(i>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(i)}finally{}}}else try{o.call(i)}finally{}}const ln=-1;class un{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function cn(t,e,n){const r=pe(t);let s=0;for(;se){i=o-1;break}}}for(;o>16,r=e;for(;n>0;)r=r[15],n--;return r}let yn=!0;function bn(t){const e=yn;return yn=t,e}let vn=0;function _n(t,e){const n=Dn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Cn(r.data,t),Cn(e,null),Cn(r.blueprint,null));const s=xn(t,e),o=t.injectorIndex;if(gn(s)){const t=mn(s),n=wn(s,e),r=n[1].data;for(let s=0;s<8;s++)e[o+s]=n[t+s]|r[t+s]}return e[o+8]=s,o}function Cn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Dn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function xn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(r=2===e?t.declTNode:1===e?s[6]:null,null===r)return ln;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return ln}function En(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Nt)&&(r=n[Nt]),null==r&&(r=n[Nt]=vn++);const s=255&r;e.data[t+(s>>5)]|=1<=0?255&e:On:e}(n);if("function"==typeof o){if(!qe(e,t,r))return r&bt.Host?An(s,n,r):kn(e,n,r,s);try{const t=o(r);if(null!=t||r&bt.Optional)return t;ut(n)}finally{Ye()}}else if("number"==typeof o){let s=null,i=Dn(t,e),a=ln,l=r&bt.Host?e[16][6]:null;for((-1===i||r&bt.SkipSelf)&&(a=-1===i?xn(t,e):e[i+8],a!==ln&&Mn(r,!1)?(s=e[1],i=mn(a),e=wn(a,e)):i=-1);-1!==i;){const t=e[1];if(Rn(o,i,t.data)){const t=Fn(i,e,n,s,r,l);if(t!==Tn)return t}a=e[i+8],a!==ln&&Mn(r,e[1].data[i+8]===l)&&Rn(o,i,e)?(s=t,i=mn(a),e=wn(a,e)):i=-1}}}return kn(e,n,r,s)}const Tn={};function On(){return new Bn(Oe(),ke())}function Fn(t,e,n,r,s,o){const i=e[1],a=i.data[t+8],l=Pn(a,i,n,null==r?ne(a)&&yn:r!=i&&0!=(3&a.type),s&bt.Host&&o===a);return null!==l?In(e,i,l,a):Tn}function Pn(t,e,n,r,s){const o=t.providerIndexes,i=e.data,a=1048575&o,l=t.directiveStart,u=o>>20,c=s?a+u:t.directiveEnd;for(let h=r?a:a+u;h=l&&t.type===n)return h}if(s){const t=i[l];if(t&&se(t)&&t.type===n)return l}return null}function In(t,e,n,r){let s=t[n];const o=e.data;if(s instanceof un){const i=s;i.resolving&&function(t,e){throw new it("200",`Circular dependency in DI detected for ${t}`)}(lt(o[n]));const a=bn(i.canSeeViewProviders);i.resolving=!0;const l=i.injectImpl?_t(i.injectImpl):null;qe(t,r,bt.Default);try{s=t[n]=i.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:o}=e.type.prototype;if(r){const r=le(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==l&&_t(l),bn(a),i.resolving=!1,Ye()}}return s}function Rn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[jt]||jn(e),r=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==r;){const t=s[jt]||jn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function jn(t){return ot(t)?()=>{const e=jn(st(t));return e&&e()}:oe(t)}function Nn(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 r=0;for(;r{const r=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 r.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,r){const s=t.hasOwnProperty(Ln)?t[Ln]:Object.defineProperty(t,Ln,{value:[]})[Ln];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class Hn{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=ct({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const zn=new Hn("AnalyzeForEntryComponents"),$n=Function;function qn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?Wn(t,e):e(t))}function Gn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Zn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Kn(t,e,n){let r=Qn(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let s=t.length;if(s==e)t.push(n,r);else if(1===s)t.push(r,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]=r}}(t,r,e,n)),r}function Yn(t,e){const n=Qn(t,e);if(n>=0)return t[1|n]}function Qn(t,e){return function(t,e,n){let r=0,s=t.length>>1;for(;s!==r;){const n=r+(s-r>>1),o=t[n<<1];if(e===o)return n<<1;o>e?s=n:r=n+1}return~(s<<1)}(t,e)}const Jn={},Xn=/\n/gm,tr="__source",er=J({provide:String,useValue:J});let nr;function rr(t){const e=nr;return nr=t,e}function sr(t,e=bt.Default){if(void 0===nr)throw new Error("inject() must be called from an injection context");return null===nr?Ct(t,void 0,e):nr.get(t,e&bt.Optional?null:void 0,e)}function or(t,e=bt.Default){return(vt||sr)(st(t),e)}function ir(t){const e=[];for(let n=0;n({token:t})),-1),ur=ar(Un("Optional"),8),cr=ar(Un("SkipSelf"),4);class hr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function dr(t){return t instanceof hr?t.changingThisBreaksApplicationSecurity:t}const pr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,fr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;var gr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function mr(t){const e=function(){const t=ke();return t&&t[12]}();return e?e.sanitize(gr.URL,t)||"":function(t,e){const n=function(t){return t instanceof hr&&t.getTypeName()||null}(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}(t,"URL")?dr(t):(n=at(t),(n=String(n)).match(pr)||n.match(fr)?n:"unsafe:"+n);var n}function wr(t,e){t.__ngContext__=e}function yr(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function br(t){return t.ngDebugContext}function vr(t){return t.ngOriginalError}function _r(t,...e){t.error(...e)}class Cr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||_r}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?br(t)?br(t):this._findContext(vr(t)):null}_findOriginalError(t){let e=vr(t);for(;e&&vr(e);)e=vr(e);return e}}const Dr=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ot))();function xr(t){return t instanceof Function?t():t}var Er=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Ar(t,e){return(void 0)(t,e)}function kr(t){const e=t[3];return te(e)?e[3]:e}function Sr(t){return Or(t[13])}function Tr(t){return Or(t[4])}function Or(t){for(;null!==t&&!te(t);)t=t[4];return t}function Fr(t,e,n,r,s){if(null!=r){let o,i=!1;te(r)?o=r:Xt(r)&&(i=!0,r=r[0]);const a=ge(r);0===t&&null!==n?null==s?jr(e,n,a):Vr(e,n,a,s||null,!0):1===t&&null!==n?Vr(e,n,a,s||null,!0):2===t?function(t,e,n){const r=Lr(t,e);r&&function(t,e,n,r){pe(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,i):3===t&&e.destroyNode(a),null!=o&&function(t,e,n,r,s){const o=n[7];o!==ge(n)&&Fr(e,t,r,o,s);for(let i=Jt;i0&&(t[n-1][4]=r[4]);const i=Zn(t,Jt+e);Wr(r[1],s=r,s[11],2,null,null),s[0]=null,s[6]=null;const a=i[19];null!==a&&a.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}var s;return r}function Mr(t,e){if(!(256&e[2])){const n=e[11];pe(n)&&n.destroyNode&&Wr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Br(t[1],t);for(;e;){let n=null;if(Xt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Xt(e)&&Br(e[1],e),e=e[3];null===e&&(e=t),Xt(e)&&Br(e[1],e),n=e&&e[4]}e=n}}(e)}}function Br(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 r=0;r=0?r[s=l]():r[s=-l].unsubscribe(),o+=2}else{const t=r[s=n[o+1]];n[o].call(t)}if(null!==r){for(let t=s+1;to?"":s[c+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==Yr(e,u,0)||2&r&&u!==t){if(ns(r))return!1;i=!0}}}}else{if(!i&&!ns(r)&&!ns(l))return!1;if(i&&ns(l))continue;i=!1,r=l|1&r}}return ns(r)||i}function ns(t){return 0==(1&t)}function rs(t,e,n,r){if(null===e)return-1;let s=0;if(r||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&r?s+="."+i:4&r&&(s+=" "+i);else""===s||ns(i)||(e+=os(o,s),s=""),r=i,o=o||!ns(r);n++}return""!==s&&(e+=os(o,s)),e}const as={};function ls(t){us(Se(),ke(),Je()+t,Re())}function us(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&nn(e,r,n)}else{const r=t.preOrderHooks;null!==r&&rn(e,r,0,n)}Xe(n)}function cs(t,e){return t<<17|e<<2}function hs(t){return t>>17&32767}function ds(t){return 2|t}function ps(t){return(131068&t)>>2}function fs(t,e){return-131069&t|e<<2}function gs(t){return 1|t}function ms(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;rQt&&us(t,e,Qt,Re()),n(r,s)}finally{Xe(o)}}function xs(t,e,n){Ae()&&(function(t,e,n,r){const s=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||_n(n,e),wr(r,e);const i=n.initialInputs;for(let a=s;a0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=o&&n.push(o),n.push(r,s,i)}}function Is(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Rs(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Ms(t,e,n){if(n){if(e.exportAs)for(let r=0;r0&&zs(n)}}function zs(t){for(let n=Sr(t);null!==n;n=Tr(n))for(let t=Jt;t0&&zs(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&zs(r)}}function $s(t,e){const n=be(e,t),r=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Qs(t){return t[7]||(t[7]=[])}function Js(t){return t.cleanup||(t.cleanup=[])}function Xs(t,e){const n=t[9],r=n?n.get(Cr,null):null;r&&r.handleError(e)}function to(t,e,n,r,s){for(let o=0;othis.processProvider(n,t,e)),Wn([t],t=>this.processInjectorType(t,[],s)),this.records.set(ro,go(void 0,this));const o=this.records.get(oo);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:tt(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=Jn,n=bt.Default){this.assertNotDestroyed();const r=rr(this);try{if(!(n&bt.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Hn)&&dt(t);e=n&&this.injectableDefInScope(n)?go(po(t),io):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&bt.Self?uo():this.parent).get(t,e=n&bt.Optional&&e===Jn?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(tt(t)),r)throw o;return function(t,e,n,r){const s=t.ngTempTokenPath;throw e[tr]&&s.unshift(e[tr]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=tt(e);if(Array.isArray(e))s=e.map(tt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):tt(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(Xn,"\n ")}`}("\n"+t.message,s,n,r),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{rr(r)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(tt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=st(t)))return!1;let r=ft(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,i=-1!==n.indexOf(o);if(void 0!==s&&(r=ft(s)),null==r)return!1;if(null!=r.imports&&!i){let t;n.push(o);try{Wn(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,r||Pt))}}this.injectorDefTypes.add(o);const a=oe(o)||(()=>new o);this.records.set(o,go(a,io));const l=r.providers;if(null!=l&&!i){const e=t;Wn(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=wo(t=st(t))?t:st(t&&t.provide);const s=function(t,e,n){return mo(t)?go(void 0,t.useValue):go(fo(t),io)}(t);if(wo(t)||!0!==t.multi)this.records.get(r);else{let e=this.records.get(r);e||(e=go(void 0,io,!0),e.factory=()=>ir(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,s)}hydrate(t,e){var n;return e.value===io&&(e.value=ao,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=st(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function po(t){const e=dt(t),n=null!==e?e.factory:oe(t);if(null!==n)return n;if(t instanceof Hn)throw new Error(`Token ${tt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=function(t,e){const n=[];for(let r=0;rn.factory(t):()=>new t}(t);throw new Error("unreachable")}function fo(t,e,n){let r;if(wo(t)){const e=st(t);return oe(e)||po(e)}if(mo(t))r=()=>st(t.useValue);else if((s=t)&&s.useFactory)r=()=>t.useFactory(...ir(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>or(st(t.useExisting));else{const e=st(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return oe(e)||po(e);r=()=>new e(...ir(t.deps))}var s;return r}function go(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function mo(t){return null!==t&&"object"==typeof t&&er in t}function wo(t){return"function"==typeof t}const yo=function(t,e,n){return function(t,e=null,n=null,r){const s=co(t,e,n,r);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let bo=(()=>{class t{static create(t,e){return Array.isArray(t)?yo(t,e,""):yo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Jn,t.NULL=new so,t.\u0275prov=ct({token:t,providedIn:"any",factory:()=>or(ro)}),t.__NG_ELEMENT_ID__=-1,t})();function vo(t,e){en(yr(t)[1],Oe())}function _o(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let s;if(se(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){r.push(s);const e=t;e.inputs=Co(t.inputs),e.declaredInputs=Co(t.declaredInputs),e.outputs=Co(t.outputs);const n=s.hostBindings;n&&Eo(t,n);const o=s.viewQuery,i=s.contentQueries;if(o&&Do(t,o),i&&xo(t,i),X(t.inputs,s.inputs),X(t.declaredInputs,s.declaredInputs),X(t.outputs,s.outputs),se(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let r=0;r=0;r--){const s=t[r];s.hostVars=e+=s.hostVars,s.hostAttrs=pn(s.hostAttrs,n=pn(n,s.hostAttrs))}}(r)}function Co(t){return t===Ft?{}:t===Pt?[]:t}function Do(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function xo(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,s)=>{e(t,r,s),n(t,r,s)}:e}function Eo(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}let Ao=null;function ko(){if(!Ao){const t=Ot.Symbol;if(t&&t.iterator)Ao=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(ge(t[r.index])):r.index;if(pe(n)){let i=null;if(!a&&l&&(i=function(t,e,n,r){const s=t.cleanup;if(null!=s)for(let o=0;on?t[n]:null}"string"==typeof t&&(o+=2)}return null}(t,e,s,r.index)),null!==i)(i.__ngLastListenerFn__||i).__ngNextListenerFn__=o,i.__ngLastListenerFn__=o,h=!1;else{o=Zo(r,e,0,o,!1);const t=n.listen(p,s,o);c.push(o,t),u&&u.push(s,g,f,f+1)}}else o=Zo(r,e,0,o,!0),p.addEventListener(s,o,i),c.push(o),u&&u.push(s,g,f,i)}else o=Zo(r,e,0,o,!1);const d=r.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,Ee.lFrame.contextLView))[8]}(t)}function Yo(t,e,n,r,s){const o=ke(),i=Mo(o,e,n,r);return i!==as&&Os(Se(),tn(),o,t,i,o[11],s,!1),Yo}function Qo(t,e,n,r,s){const o=t[n+1],i=null===e;let a=r?hs(o):ps(o),l=!1;for(;0!==a&&(!1===l||i);){const n=t[a+1];Jo(t[a],e)&&(l=!0,t[a+1]=r?gs(n):ds(n)),a=r?hs(n):ps(n)}l&&(t[n+1]=r?ds(o):gs(o))}function Jo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Qn(t,e)>=0}function Xo(t,e){return function(t,e,n,r){const s=ke(),o=Se(),i=Ne(2);o.firstUpdatePass&&function(t,e,n,r){const s=t.data;if(null===s[n+1]){const o=s[Je()],i=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(16&t.flags)})(o)&&null===e&&!i&&(e=!1),e=function(t,e,n,r){const s=function(t){const e=Ee.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let o=e.residualClasses;if(null===s)0===e.classBindings&&(n=ei(n=ti(null,t,e,n,r),e.attrs,r),o=null);else{const i=e.directiveStylingLast;if(-1===i||t[i]!==s)if(n=ti(s,t,e,n,r),null===o){let n=function(t,e,n){const r=e.classBindings;if(0!==ps(r))return t[hs(r)]}(t,e);void 0!==n&&Array.isArray(n)&&(n=ti(null,t,e,n[1],r),n=ei(n,e.attrs,r),function(t,e,n,r){t[hs(e.classBindings)]=r}(t,e,0,n))}else o=function(t,e,n){let r;const s=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(c=!0)}else u=n;if(s)if(0!==l){const e=hs(t[a+1]);t[r+1]=cs(e,a),0!==e&&(t[e+1]=fs(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=cs(a,0),0!==a&&(t[a+1]=fs(t[a+1],r)),a=r;else t[r+1]=cs(l,0),0===a?a=r:t[l+1]=fs(t[l+1],r),l=r;c&&(t[r+1]=ds(t[r+1])),Qo(t,u,r,!0),Qo(t,u,r,!1),function(t,e,n,r,s){const o=t.residualClasses;null!=o&&"string"==typeof e&&Qn(o,e)>=0&&(n[r+1]=gs(n[r+1]))}(e,u,t,r),i=cs(a,l),e.classBindings=i}(s,o,e,n,i)}}(o,t,i,true),e!==as&&Po(s,i,e)&&function(t,e,n,r,s,o,i,a){if(!(3&e.type))return;const l=t.data,u=l[a+1];ri(1==(1&u)?ni(l,e,n,s,ps(u),i):void 0)||(ri(o)||function(t){return 2==(2&t)}(u)&&(o=ni(l,null,n,s,a,i)),function(t,e,n,r,s){const o=pe(t);s?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r)}(r,0,me(Je(),n),s,o))}(o,o.data[Je()],s,s[11],t,s[i+1]=function(t,e){return null==t||"object"==typeof t&&(t=tt(dr(t))),t}(e),true,i)}(t,e),Xo}function ti(t,e,n,r,s){let o=null;const i=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],o=Array.isArray(e),l=o?e[1]:e,u=null===l;let c=n[s+1];c===as&&(c=u?Pt:void 0);let h=u?Yn(c,r):l===r?c:void 0;if(o&&!ri(h)&&(h=Yn(e,r)),ri(h)&&(a=h,i))return a;const d=t[s+1];s=i?hs(d):ps(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=Yn(t,r))}return a}function ri(t){return void 0!==t}function si(t,e=""){const n=ke(),r=Se(),s=t+Qt,o=r.firstCreatePass?ys(r,s,1,e,null):r.data[s],i=n[s]=function(t,e){return pe(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Ur(r,n,i,o),Pe(o,!1)}function oi(t){return ii("",t,""),oi}function ii(t,e,n){const r=ke(),s=Mo(r,t,e,n);return s!==as&&eo(r,Je(),s),ii}function ai(t,e,n,r,s){const o=ke(),i=function(t,e,n,r,s,o){const i=Io(t,Ve(),n,s);return Ne(2),i?e+at(n)+r+at(s)+o:as}(o,t,e,n,r,s);return i!==as&&eo(o,Je(),i),ai}function li(t,e,n){const r=ke();return Po(r,je(),e)&&Os(Se(),tn(),r,t,e,r[11],n,!0),li}const ui=void 0;var ci=["en",[["a","p"],["AM","PM"],ui],[["AM","PM"],ui,ui],[["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"]],ui,[["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"]],ui,[["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}",ui,"{1} 'at' {0}",ui],[".",",",";","%","+","-","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 hi={};function di(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=pi(e);if(n)return n;const r=e.split("-")[0];if(n=pi(r),n)return n;if("en"===r)return ci;throw new Error(`Missing locale data for the locale "${t}".`)}function pi(t){return t in hi||(hi[t]=Ot.ng&&Ot.ng.common&&Ot.ng.common.locales&&Ot.ng.common.locales[t]),hi[t]}var fi=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const gi="en-US";let mi=gi;function wi(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(mi=t.toLowerCase().replace(/_/g,"-"))}function yi(t,e,n,r,s){if(t=st(t),Array.isArray(t))for(let o=0;o>20;if(wo(t)||!t.multi){const r=new un(l,s,Vo),p=_i(a,e,s?c:c+d,h);-1===p?(En(_n(u,i),o,a),bi(o,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),n.push(r),i.push(r)):(n[p]=r,i[p]=r)}else{const p=_i(a,e,c+d,h),f=_i(a,e,c,c+d),g=p>=0&&n[p],m=f>=0&&n[f];if(s&&!m||!s&&!g){En(_n(u,i),o,a);const c=function(t,e,n,r,s){const o=new un(t,n,Vo);return o.multi=[],o.index=e,o.componentProviders=0,vi(o,s,r&&!n),o}(s?Di:Ci,n.length,s,r,l);!s&&m&&(n[f].providerFactory=c),bi(o,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),n.push(c),i.push(c)}else bi(o,t,p>-1?p:f,vi(n[s?f:p],l,!s&&r));!s&&r&&m&&n[f].componentProviders++}}}function bi(t,e,n,r){const s=wo(e);if(s||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const i=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=i.indexOf(n);-1===t?i.push(n,[r,o]):i[t+1].push(r,o)}else i.push(n,o)}}}function vi(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function _i(t,e,n,r){for(let s=n;s{n.providersResolver=(n,r)=>function(t,e,n){const r=Se();if(r.firstCreatePass){const s=se(t);yi(n,r.data,r.blueprint,s,!0),yi(e,r.data,r.blueprint,s,!1)}}(n,r?r(t):t,e)}}class Ai{}class ki{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${tt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Si=(()=>{class t{}return t.NULL=new ki,t})();function Ti(...t){}function Oi(t,e){return new Pi(we(t,e))}const Fi=function(){return Oi(Oe(),ke())};let Pi=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Fi,t})();function Ii(t){return t instanceof Pi?t.nativeElement:t}class Ri{}let Mi=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Bi(),t})();const Bi=function(){const t=ke(),e=be(Oe().index,t);return function(t){return t[11]}(Xt(e)?e:t)};let Vi=(()=>{class t{}return t.\u0275prov=ct({token:t,providedIn:"root",factory:()=>null}),t})();class ji{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ni=new ji("12.0.5");class Li{constructor(){}supports(t){return To(t)}create(t){return new Hi(t)}}const Ui=(t,e)=>e;class Hi{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||Ui}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const o=!n||e&&e.currentIndex{r=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,r)?(o&&(s=this._verifyReinsertion(s,t,r,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,r,e),o=!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,r){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,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new zi(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),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 r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,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 r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new qi),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 qi),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 zi{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 $i{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 qi{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new $i,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 Wi(t,e,n){const r=t.previousIndex;if(null===r)return r;let s=0;return n&&r{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),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 r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new Ki(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 Ki{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 Yi(){return new Qi([new Li])}let Qi=(()=>{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||Yi()),deps:[[t,new cr,new ur]]}}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=ct({token:t,providedIn:"root",factory:Yi}),t})();function Ji(){return new Xi([new Gi])}let Xi=(()=>{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||Ji()),deps:[[t,new cr,new ur]]}}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=ct({token:t,providedIn:"root",factory:Ji}),t})();function ta(t,e,n,r,s=!1){for(;null!==n;){const o=e[n.index];if(null!==o&&r.push(ge(o)),te(o))for(let t=Jt;t-1&&(Rr(t,n),Zn(e,n))}this._attachedToViewContainer=!1}Mr(this._lView[1],this._lView)}onDestroy(t){Ss(this._lView[1],this._lView,null,t)}markForCheck(){Ws(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Gs(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Me(!0);try{Gs(t,e,n)}finally{Me(!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,Wr(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 na extends ea{constructor(t){super(t),this._view=t}detectChanges(){Zs(this._view)}checkNoChanges(){!function(t){Me(!0);try{Zs(t)}finally{Me(!1)}}(this._view)}get context(){return null}}const ra=function(t){return function(t,e,n){if(ne(t)&&!n){const n=be(t.index,e);return new ea(n,n)}return 47&t.type?new ea(e[16],e):null}(Oe(),ke(),16==(16&t))};let sa=(()=>{class t{}return t.__NG_ELEMENT_ID__=ra,t})();const oa=[new Gi],ia=new Qi([new Li]),aa=new Xi(oa),la=function(){return da(Oe(),ke())};let ua=(()=>{class t{}return t.__NG_ELEMENT_ID__=la,t})();const ca=ua,ha=class extends ca{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=ws(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),vs(e,n,t),new ea(n)}};function da(t,e){return 4&t.type?new ha(e,t,Oi(t,e)):null}class pa{}class fa{}const ga=function(){return _a(Oe(),ke())};let ma=(()=>{class t{}return t.__NG_ELEMENT_ID__=ga,t})();const wa=ma,ya=class extends wa{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Oi(this._hostTNode,this._hostLView)}get injector(){return new Bn(this._hostTNode,this._hostLView)}get parentInjector(){const t=xn(this._hostTNode,this._hostLView);if(gn(t)){const e=wn(t,this._hostLView),n=mn(t);return new Bn(e[1].data[n+8],e)}return new Bn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=ba(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-Jt}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const o=n||this.parentInjector;if(!s&&null==t.ngModule&&o){const t=o.get(pa,null);t&&(s=t)}const i=t.create(o,r,void 0,s);return this.insert(i.hostView,e),i}insert(t,e){const n=t._lView,r=n[1];if(te(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new ya(e,e[6],e[3]);r.detach(r.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(t,e,n,r){const s=Jt+r,o=n.length;r>0&&(n[s-1][4]=e),rDr});class Aa extends Ai{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(is).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return xa(this.componentDef.inputs)}get outputs(){return xa(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function(t,e){return{get:(n,r,s)=>{const o=t.get(n,Ca,s);return o!==Ca||r===Ca?o:e.get(n,r,s)}}}(t,r.injector):t,o=s.get(Ri,fe),i=s.get(Vi,null),a=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=n?function(t,e,n){if(pe(t))return t.selectRootElement(e,n===Et.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Pr(o.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),c=this.componentDef.onPush?576:528,h={components:[],scheduler:Dr,clean:Ys,playerHandler:null,flags:0},d=ks(0,null,null,1,0,null,null,null,null,null),p=ws(null,d,h,c,null,null,o,a,i,s);let f,g;We(p);try{const t=function(t,e,n,r,s,o){const i=n[1];n[20]=t;const a=ys(i,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(no(a,l,!0),null!==t&&(cn(s,t,l),null!==a.classes&&Kr(s,t,a.classes),null!==a.styles&&Zr(s,t,a.styles)));const u=r.createRenderer(t,e),c=ws(n,As(e),null,e.onPush?64:16,n[20],a,r,u,null,null);return i.firstCreatePass&&(En(_n(a,n),i,e.type),Rs(i,a),Bs(a,n.length,1)),qs(n,c),n[20]=c}(u,this.componentDef,p,o,a);if(u)if(n)cn(a,u,["ng-version",Ni.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,s=2;for(;r0&&Kr(a,u,e.join(" "))}if(g=ye(d,Qt),void 0!==e){const t=g.projection=[];for(let n=0;nt(i,e)),e.contentQueries){const t=Oe();e.contentQueries(1,i,t.directiveStart)}const a=Oe();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Xe(a.index),Ps(n[1],a,0,a.directiveStart,a.directiveEnd,e),Is(e,i)),i}(t,this.componentDef,p,h,[vo]),vs(d,p,null)}finally{Qe()}return new ka(this.componentType,f,Oi(g,p),p,g)}}class ka extends class{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new na(r),this.componentType=t}get injector(){return new Bn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Sa=new Map;class Ta extends pa{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Da(this);const n=Yt(t),r=t[Vt]||null;r&&wi(r),this._bootstrapComponents=xr(n.bootstrap),this._r3Injector=co(t,e,[{provide:pa,useValue:this},{provide:Si,useValue:this.componentFactoryResolver}],tt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=bo.THROW_IF_NOT_FOUND,n=bt.Default){return t===bo||t===pa||t===ro?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 Oa extends fa{constructor(t){super(),this.moduleType=t,null!==Yt(t)&&function(t){const e=new Set;!function t(n){const r=Yt(n,!0),s=r.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${tt(e)} vs ${tt(e.name)}`)}(s,Sa.get(s),n),Sa.set(s,n));const o=xr(r.imports);for(const i of o)e.has(i)||(e.add(i),t(i))}(t)}(t)}create(t){return new Ta(this.moduleType,t)}}function Fa(t,e,n,r,s){return function(t,e,n,r,s,o,i){const a=e+n;return Io(t,a,s,o)?Fo(t,a+2,i?r.call(i,s,o):r(s,o)):Pa(t,a+2)}(ke(),Be(),t,e,n,r,s)}function Pa(t,e){const n=t[e];return n===as?void 0:n}function Ia(t,e){const n=Se();let r;const s=t+Qt;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new it("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,r.onDestroy)):r=n.data[s];const o=r.factory||(r.factory=oe(r.type)),i=_t(Vo);try{const t=bn(!1),e=o();return bn(t),function(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(n,ke(),s,e),e}finally{_t(i)}}function Ra(t,e,n){const r=t+Qt,s=ke(),o=function(t,e){return t[e]}(s,r);return function(t,e){return So.isWrapped(e)&&(e=So.unwrap(e),t[Ve()]=as),e}(s,function(t,e){return t[1].data[e].pure}(s,r)?function(t,e,n,r,s,o){const i=e+n;return Po(t,i,s)?Fo(t,i+1,o?r.call(o,s):r(s)):Pa(t,i+1)}(s,Be(),e,o.transform,n,o):o.transform(n))}function Ma(t){return e=>{setTimeout(t,void 0,e)}}const Ba=class extends D{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var r,s,o;let i=t,a=e||(()=>null),l=n;if(t&&"object"==typeof t){const e=t;i=null===(r=e.next)||void 0===r?void 0:r.bind(e),a=null===(s=e.error)||void 0===s?void 0:s.bind(e),l=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(a=Ma(a),i&&(i=Ma(i)),l&&(l=Ma(l)));const u=super.subscribe({next:i,error:a,complete:l});return t instanceof h&&t.add(u),u}};function Va(){return this._results[ko()]()}class ja{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=ko(),n=ja.prototype;n[e]||(n[e]=Va)}get changes(){return this._changes||(this._changes=new Ba)}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 r=qn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r0)r.push(i[t/2]);else{const s=o[t+1],i=e[-n];for(let t=Jt;t{class t{constructor(t){this.appInits=t,this.resolve=Ti,this.reject=Ti,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)(or(tl,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const nl=new Hn("AppId"),rl={provide:nl,useFactory:function(){return`${sl()}${sl()}${sl()}`},deps:[]};function sl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ol=new Hn("Platform Initializer"),il=new Hn("Platform ID"),al=new Hn("appBootstrapListener");let ll=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const ul=new Hn("LocaleId"),cl=new Hn("DefaultCurrencyCode");class hl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const dl=function(t){return new Oa(t)},pl=dl,fl=function(t){return Promise.resolve(dl(t))},gl=function(t){const e=dl(t),n=xr(Yt(t).declarations).reduce((t,e)=>{const n=Kt(e);return n&&t.push(new Aa(n)),t},[]);return new hl(e,n)},ml=gl,wl=function(t){return Promise.resolve(gl(t))};let yl=(()=>{class t{constructor(){this.compileModuleSync=pl,this.compileModuleAsync=fl,this.compileModuleAndAllComponentsSync=ml,this.compileModuleAndAllComponentsAsync=wl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const bl=(()=>Promise.resolve(0))();function vl(t){"undefined"==typeof Zone?bl.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class _l{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ba(!1),this.onMicrotaskEmpty=new Ba(!1),this.onStable=new Ba(!1),this.onError=new Ba(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let t=Ot.requestAnimationFrame,e=Ot.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ot,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,xl(t),t.isCheckStableRunning=!0,Dl(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),xl(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,o,i,a)=>{try{return El(t),n.invokeTask(s,o,i,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),Al(t)}},onInvoke:(n,r,s,o,i,a,l)=>{try{return El(t),n.invoke(s,o,i,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),Al(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,xl(t),Dl(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!_l.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(_l.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,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,Cl,Ti,Ti);try{return s.runTask(o,e,n)}finally{s.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const Cl={};function Dl(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 xl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function El(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Al(t){t._nesting--,Dl(t)}class kl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ba,this.onMicrotaskEmpty=new Ba,this.onStable=new Ba,this.onError=new Ba}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,r){return t.apply(e,n)}}let Sl=(()=>{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:()=>{_l.assertNotInAngularZone(),vl(()=>{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())vl(()=>{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 r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,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)(or(_l))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Tl=(()=>{class t{constructor(){this._applications=new Map,Pl.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 Pl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class Ol{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Fl,Pl=new Ol,Il=!0,Rl=!1;const Ml=new Hn("AllowMultipleToken");class Bl{constructor(t,e){this.name=t,this.token=e}}function Vl(t,e,n=[]){const r=`Platform: ${e}`,s=new Hn(r);return(e=[])=>{let o=jl();if(!o||o.injector.get(Ml,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:oo,useValue:"platform"});!function(t){if(Fl&&!Fl.destroyed&&!Fl.injector.get(Ml,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Fl=t.get(Nl);const e=t.get(ol,null);e&&e.forEach(t=>t())}(bo.create({providers:t,name:r}))}return function(t){const e=jl();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 jl(){return Fl&&!Fl.destroyed?Fl:null}let Nl=(()=>{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 kl:("zone.js"===t?void 0:t)||new _l({enableLongStackTrace:(Rl=!0,Il),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}),r=[{provide:_l,useValue:n}];return n.run(()=>{const e=bo.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),o=s.injector.get(Cr,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{o.handleError(t)}});s.onDestroy(()=>{Hl(this._modules,s),t.unsubscribe()})}),function(t,e,n){try{const r=n();return $o(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(o,n,()=>{const t=s.injector.get(el);return t.runInitializers(),t.donePromise.then(()=>(wi(s.injector.get(ul,gi)||gi),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=Ll({},e);return function(t,e,n){const r=new Oa(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Ul);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${tt(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)(or(bo))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Ll(t,e){return Array.isArray(e)?e.reduce(Ll,t):Object.assign(Object.assign({},t),e)}let Ul=(()=>{class t{constructor(t,e,n,r,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=r,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 o=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),i=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{_l.assertNotInAngularZone(),vl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{_l.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=function(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return E(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof y?t[0]:z(e)($(t,n))}(o,i.pipe(t=>{return q()((e=Q,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,K);return r.source=t,r.subjectFactory=n,r})(t));var e}))}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 Ai?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(pa),s=n.create(bo.NULL,[],e||n.selector,r),o=s.location.nativeElement,i=s.injector.get(Sl,null),a=i&&s.injector.get(Tl);return i&&a&&a.registerApplication(o,i),s.onDestroy(()=>{this.detachView(s.hostView),Hl(this.components,s),a&&a.unregisterApplication(o)}),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;Hl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(al,[]).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)(or(_l),or(bo),or(Cr),or(Si),or(el))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Hl(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class zl{}class $l{}const ql={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Wl=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||ql}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n("zn8P")(e).then(t=>t[r]).then(t=>Gl(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+s]).then(t=>Gl(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(or(yl),or($l,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Gl(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Zl=Vl(null,"core",[{provide:il,useValue:"unknown"},{provide:Nl,deps:[bo]},{provide:Tl,deps:[]},{provide:ll,deps:[]}]),Kl=[{provide:Ul,useClass:Ul,deps:[_l,bo,Cr,Si,el]},{provide:Ea,deps:[_l],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:el,useClass:el,deps:[[new ur,tl]]},{provide:yl,useClass:yl,deps:[]},rl,{provide:Qi,useFactory:function(){return ia},deps:[]},{provide:Xi,useFactory:function(){return aa},deps:[]},{provide:ul,useFactory:function(t){return wi(t=t||"undefined"!=typeof $localize&&$localize.locale||gi),t},deps:[[new lr(ul),new ur,new cr]]},{provide:cl,useValue:"USD"}];let Yl=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(or(Ul))},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({providers:Kl}),t})(),Ql=null;function Jl(){return Ql}const Xl=new Hn("DocumentToken");let tu=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:eu,token:t,providedIn:"platform"}),t})();function eu(){return or(ru)}const nu=new Hn("Location Initialized");let ru=(()=>{class t extends tu{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Jl().getBaseHref(this._doc)}onPopState(t){const e=Jl().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=Jl().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){su()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){su()?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)(or(Xl))},t.\u0275prov=ct({factory:ou,token:t,providedIn:"platform"}),t})();function su(){return!!window.history.pushState}function ou(){return new ru(or(Xl))}function iu(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 au(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 lu(t){return t&&"?"!==t[0]?"?"+t:t}let uu=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:cu,token:t,providedIn:"root"}),t})();function cu(t){const e=or(Xl).location;return new du(or(tu),e&&e.origin||"")}const hu=new Hn("appBaseHref");let du=(()=>{class t extends uu{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 iu(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+lu(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const s=this.prepareExternalUrl(n+lu(r));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){const s=this.prepareExternalUrl(n+lu(r));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)(or(tu),or(hu,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),pu=(()=>{class t extends uu{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=iu(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let s=this.prepareExternalUrl(n+lu(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){let s=this.prepareExternalUrl(n+lu(r));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)(or(tu),or(hu,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),fu=(()=>{class t{constructor(t,e){this._subject=new Ba,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=au(mu(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+lu(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,mu(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+lu(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+lu(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)(or(uu),or(tu))},t.normalizeQueryParams=lu,t.joinWithSlash=iu,t.stripTrailingSlash=au,t.\u0275prov=ct({factory:gu,token:t,providedIn:"root"}),t})();function gu(){return new fu(or(uu),or(tu))}function mu(t){return t.replace(/\/index.html$/,"")}var wu=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),yu=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),bu=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),vu=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),_u=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function Cu(t,e){return ku(di(t)[fi.DateFormat],e)}function Du(t,e){return ku(di(t)[fi.TimeFormat],e)}function xu(t,e){return ku(di(t)[fi.DateTimeFormat],e)}function Eu(t,e){const n=di(t),r=n[fi.NumberSymbols][e];if(void 0===r){if(e===_u.CurrencyDecimal)return n[fi.NumberSymbols][_u.Decimal];if(e===_u.CurrencyGroup)return n[fi.NumberSymbols][_u.Group]}return r}function Au(t){if(!t[fi.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[fi.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ku(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 Su(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const Tu=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ou={},Fu=/((?:[^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 Pu=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Iu=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Ru=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function Mu(t,e,n,r){let s=function(t){if(Zu(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,r=1]=t.split("-").map(t=>+t);return Bu(e,n-1,r)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(Tu))return function(t){const e=new Date(0);let n=0,r=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const i=Number(t[4]||0)-n,a=Number(t[5]||0)-r,l=Number(t[6]||0),u=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,i,a,l,u),e}(n)}const e=new Date(t);if(!Zu(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Vu(n,e)||e;let o,i=[];for(;e;){if(o=Fu.exec(e),!o){i.push(e);break}{i=i.concat(o.slice(1));const t=i.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();r&&(a=Gu(r,a),s=function(t,e,n){const r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Gu(e,r)-r))}(s,r));let l="";return i.forEach(t=>{const e=function(t){if(Wu[t])return Wu[t];let e;switch(t){case"G":case"GG":case"GGG":e=Uu(Ru.Eras,bu.Abbreviated);break;case"GGGG":e=Uu(Ru.Eras,bu.Wide);break;case"GGGGG":e=Uu(Ru.Eras,bu.Narrow);break;case"y":e=Lu(Iu.FullYear,1,0,!1,!0);break;case"yy":e=Lu(Iu.FullYear,2,0,!0,!0);break;case"yyy":e=Lu(Iu.FullYear,3,0,!1,!0);break;case"yyyy":e=Lu(Iu.FullYear,4,0,!1,!0);break;case"Y":e=qu(1);break;case"YY":e=qu(2,!0);break;case"YYY":e=qu(3);break;case"YYYY":e=qu(4);break;case"M":case"L":e=Lu(Iu.Month,1,1);break;case"MM":case"LL":e=Lu(Iu.Month,2,1);break;case"MMM":e=Uu(Ru.Months,bu.Abbreviated);break;case"MMMM":e=Uu(Ru.Months,bu.Wide);break;case"MMMMM":e=Uu(Ru.Months,bu.Narrow);break;case"LLL":e=Uu(Ru.Months,bu.Abbreviated,yu.Standalone);break;case"LLLL":e=Uu(Ru.Months,bu.Wide,yu.Standalone);break;case"LLLLL":e=Uu(Ru.Months,bu.Narrow,yu.Standalone);break;case"w":e=$u(1);break;case"ww":e=$u(2);break;case"W":e=$u(1,!0);break;case"d":e=Lu(Iu.Date,1);break;case"dd":e=Lu(Iu.Date,2);break;case"c":case"cc":e=Lu(Iu.Day,1);break;case"ccc":e=Uu(Ru.Days,bu.Abbreviated,yu.Standalone);break;case"cccc":e=Uu(Ru.Days,bu.Wide,yu.Standalone);break;case"ccccc":e=Uu(Ru.Days,bu.Narrow,yu.Standalone);break;case"cccccc":e=Uu(Ru.Days,bu.Short,yu.Standalone);break;case"E":case"EE":case"EEE":e=Uu(Ru.Days,bu.Abbreviated);break;case"EEEE":e=Uu(Ru.Days,bu.Wide);break;case"EEEEE":e=Uu(Ru.Days,bu.Narrow);break;case"EEEEEE":e=Uu(Ru.Days,bu.Short);break;case"a":case"aa":case"aaa":e=Uu(Ru.DayPeriods,bu.Abbreviated);break;case"aaaa":e=Uu(Ru.DayPeriods,bu.Wide);break;case"aaaaa":e=Uu(Ru.DayPeriods,bu.Narrow);break;case"b":case"bb":case"bbb":e=Uu(Ru.DayPeriods,bu.Abbreviated,yu.Standalone,!0);break;case"bbbb":e=Uu(Ru.DayPeriods,bu.Wide,yu.Standalone,!0);break;case"bbbbb":e=Uu(Ru.DayPeriods,bu.Narrow,yu.Standalone,!0);break;case"B":case"BB":case"BBB":e=Uu(Ru.DayPeriods,bu.Abbreviated,yu.Format,!0);break;case"BBBB":e=Uu(Ru.DayPeriods,bu.Wide,yu.Format,!0);break;case"BBBBB":e=Uu(Ru.DayPeriods,bu.Narrow,yu.Format,!0);break;case"h":e=Lu(Iu.Hours,1,-12);break;case"hh":e=Lu(Iu.Hours,2,-12);break;case"H":e=Lu(Iu.Hours,1);break;case"HH":e=Lu(Iu.Hours,2);break;case"m":e=Lu(Iu.Minutes,1);break;case"mm":e=Lu(Iu.Minutes,2);break;case"s":e=Lu(Iu.Seconds,1);break;case"ss":e=Lu(Iu.Seconds,2);break;case"S":e=Lu(Iu.FractionalSeconds,1);break;case"SS":e=Lu(Iu.FractionalSeconds,2);break;case"SSS":e=Lu(Iu.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Hu(Pu.Short);break;case"ZZZZZ":e=Hu(Pu.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Hu(Pu.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Hu(Pu.Long);break;default:return null}return Wu[t]=e,e}(t);l+=e?e(s,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Bu(t,e,n){const r=new Date(0);return r.setFullYear(t,e,n),r.setHours(0,0,0),r}function Vu(t,e){const n=function(t){return di(t)[fi.LocaleId]}(t);if(Ou[n]=Ou[n]||{},Ou[n][e])return Ou[n][e];let r="";switch(e){case"shortDate":r=Cu(t,vu.Short);break;case"mediumDate":r=Cu(t,vu.Medium);break;case"longDate":r=Cu(t,vu.Long);break;case"fullDate":r=Cu(t,vu.Full);break;case"shortTime":r=Du(t,vu.Short);break;case"mediumTime":r=Du(t,vu.Medium);break;case"longTime":r=Du(t,vu.Long);break;case"fullTime":r=Du(t,vu.Full);break;case"short":const e=Vu(t,"shortTime"),n=Vu(t,"shortDate");r=ju(xu(t,vu.Short),[e,n]);break;case"medium":const s=Vu(t,"mediumTime"),o=Vu(t,"mediumDate");r=ju(xu(t,vu.Medium),[s,o]);break;case"long":const i=Vu(t,"longTime"),a=Vu(t,"longDate");r=ju(xu(t,vu.Long),[i,a]);break;case"full":const l=Vu(t,"fullTime"),u=Vu(t,"fullDate");r=ju(xu(t,vu.Full),[l,u])}return r&&(Ou[n][e]=r),r}function ju(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function Nu(t,e,n="-",r,s){let o="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,o=n));let i=String(t);for(;i.length0||a>-n)&&(a+=n),t===Iu.Hours)0===a&&-12===n&&(a=12);else if(t===Iu.FractionalSeconds)return l=e,Nu(a,3).substr(0,l);var l;const u=Eu(i,_u.MinusSign);return Nu(a,e,u,r,s)}}function Uu(t,e,n=yu.Format,r=!1){return function(s,o){return function(t,e,n,r,s,o){switch(n){case Ru.Months:return function(t,e,n){const r=di(t),s=ku([r[fi.MonthsFormat],r[fi.MonthsStandalone]],e);return ku(s,n)}(e,s,r)[t.getMonth()];case Ru.Days:return function(t,e,n){const r=di(t),s=ku([r[fi.DaysFormat],r[fi.DaysStandalone]],e);return ku(s,n)}(e,s,r)[t.getDay()];case Ru.DayPeriods:const i=t.getHours(),a=t.getMinutes();if(o){const t=function(t){const e=di(t);return Au(e),(e[fi.ExtraData][2]||[]).map(t=>"string"==typeof t?Su(t):[Su(t[0]),Su(t[1])])}(e),n=function(t,e,n){const r=di(t);Au(r);const s=ku([r[fi.ExtraData][0],r[fi.ExtraData][1]],e)||[];return ku(s,n)||[]}(e,s,r),o=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,r=i>=e.hours&&a>=e.minutes,s=i0?Math.floor(s/60):Math.ceil(s/60);switch(t){case Pu.Short:return(s>=0?"+":"")+Nu(i,2,o)+Nu(Math.abs(s%60),2,o);case Pu.ShortGMT:return"GMT"+(s>=0?"+":"")+Nu(i,1,o);case Pu.Long:return"GMT"+(s>=0?"+":"")+Nu(i,2,o)+":"+Nu(Math.abs(s%60),2,o);case Pu.Extended:return 0===r?"Z":(s>=0?"+":"")+Nu(i,2,o)+":"+Nu(Math.abs(s%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function zu(t){return Bu(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function $u(t,e=!1){return function(n,r){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=zu(n),e=function(t){const e=Bu(t,0,1).getDay();return Bu(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),r=t.getTime()-e.getTime();s=1+Math.round(r/6048e5)}return Nu(s,t,Eu(r,_u.MinusSign))}}function qu(t,e=!1){return function(n,r){return Nu(zu(n).getFullYear(),t,Eu(r,_u.MinusSign),e)}}const Wu={};function Gu(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Zu(t){return t instanceof Date&&!isNaN(t.valueOf())}class Ku{}let Yu=(()=>{class t extends Ku{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return di(t)[fi.PluralCase]}(e||this.locale)(t)){case wu.Zero:return"zero";case wu.One:return"one";case wu.Two:return"two";case wu.Few:return"few";case wu.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(or(ul))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Qu(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}let Ju=(()=>{class t{constructor(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,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&&(To(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 ${tt(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)(Vo(Qi),Vo(Xi),Vo(Pi),Vo(Mi))},t.\u0275dir=Gt({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Xu{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}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 tc=(()=>{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,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Xu(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new ec(t,n);e.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const o=new ec(t,s);e.push(o)}});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)(Vo(ma),Vo(ua),Vo(Qi))},t.\u0275dir=Gt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ec{constructor(t,e){this.record=t,this.view=e}}let nc=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new rc,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){sc("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){sc("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)(Vo(ma),Vo(ua))},t.\u0275dir=Gt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class rc{constructor(){this.$implicit=null,this.ngIf=null}}function sc(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${tt(e)}'.`)}function oc(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${tt(t)}'`)}const ic=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let ac=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw oc(t,e);return e.replace(ic,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Zt({name:"titlecase",type:t,pure:!0}),t})(),lc=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",r,s){if(null==e||""===e||e!=e)return null;try{return Mu(e,n,s||this.locale,r)}catch(o){throw oc(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(Vo(ul,16))},t.\u0275pipe=Zt({name:"date",type:t,pure:!0}),t})(),uc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({providers:[{provide:Ku,useClass:Yu}]}),t})(),cc=(()=>{class t{}return t.\u0275prov=ct({token:t,providedIn:"root",factory:()=>new hc(or(Xl),window)}),t})();class hc{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 r=n.currentNode;for(;r;){const t=r.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}r=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,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=dc(this.window.history)||dc(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 dc(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class pc{}class fc extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var t;t=new fc,Ql||(Ql=t)}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=(mc=mc||document.querySelector("base"),mc?mc.getAttribute("href"):null);return null==e?null:function(t){gc=gc||document.createElement("a"),gc.setAttribute("href",t);const e=gc.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){mc=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Qu(document.cookie,t)}}let gc,mc=null;const wc=new Hn("TRANSITION_ID"),yc=[{provide:tl,useFactory:function(t,e,n){return()=>{n.get(el).donePromise.then(()=>{const n=Jl();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[wc,Xl,bo],multi:!0}];class bc{static init(){var t;t=new bc,Pl=t}addToWindow(t){Ot.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ot.getAllAngularTestabilities=()=>t.getAllTestabilities(),Ot.getAllAngularRootElements=()=>t.getAllRootElements(),Ot.frameworkStabilizers||(Ot.frameworkStabilizers=[]),Ot.frameworkStabilizers.push(t=>{const e=Ot.getAllAngularTestabilities();let n=e.length,r=!1;const s=function(e){r=r||e,n--,0==n&&t(r)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Jl().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let vc=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const _c=new Hn("EventManagerPlugins");let Cc=(()=>{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 r=0;r{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=ct({token:t,factory:t.\u0275fac}),t})(),Ec=(()=>{class t extends xc{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const r=this._doc.createElement("style");r.textContent=t,n.push(e.appendChild(r))})}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(Ac),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Ac))}}return t.\u0275fac=function(e){return new(e||t)(or(Xl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Ac(t){Jl().remove(t)}const kc={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/"},Sc=/%COMP%/g;function Tc(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Fc=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Pc(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Et.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Ic(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case Et.ShadowDom:return new Rc(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Tc(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)(or(Cc),or(Ec),or(nl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class Pc{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(kc[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,r){if(r){e=r+":"+e;const s=kc[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=kc[n];r?t.removeAttributeNS(r,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,r){r&(Er.DashCase|Er.Important)?t.style.setProperty(e,n,r&Er.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Er.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,Oc(n)):this.eventManager.addEventListener(t,e,Oc(n))}}class Ic extends Pc{constructor(t,e,n,r){super(t),this.component=n;const s=Tc(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(Sc,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Sc,r+"-"+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 Rc extends Pc{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Tc(r.id,r.styles,[]);for(let o=0;o{class t extends Dc{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)(or(Xl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Bc=["alt","control","meta","shift"],Vc={"\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"},jc={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"},Nc={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Lc=(()=>{class t extends Dc{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const s=t.parseEventName(n),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Jl().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(n.pop());let o="";if(Bc.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=s,0!=n.length||0===s.length)return null;const i={};return i.domEventName=r,i.fullKey=o,i}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&&jc.hasOwnProperty(e)&&(e=jc[e]))}return Vc[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Bc.forEach(r=>{r!=n&&(0,Nc[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return s=>{t.getEventFullKey(s)===e&&r.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(or(Xl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Uc=Vl(Zl,"browser",[{provide:il,useValue:"browser"},{provide:ol,useValue:function(){fc.makeCurrent(),bc.init()},multi:!0},{provide:Xl,useFactory:function(){return function(t){de=t}(document),document},deps:[]}]),Hc=[[],{provide:oo,useValue:"root"},{provide:Cr,useFactory:function(){return new Cr},deps:[]},{provide:_c,useClass:Mc,multi:!0,deps:[Xl,_l,il]},{provide:_c,useClass:Lc,multi:!0,deps:[Xl]},[],{provide:Fc,useClass:Fc,deps:[Cc,Ec,nl]},{provide:Ri,useExisting:Fc},{provide:xc,useExisting:Ec},{provide:Ec,useClass:Ec,deps:[Xl]},{provide:Sl,useClass:Sl,deps:[_l]},{provide:Cc,useClass:Cc,deps:[_c,_l]},{provide:pc,useClass:vc,deps:[]},[]];let zc=(()=>{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:nl,useValue:e.appId},{provide:wc,useExisting:nl},yc]}}}return t.\u0275fac=function(e){return new(e||t)(or(t,12))},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({providers:Hc,imports:[uc,Yl]}),t})();function $c(...t){let e=t[t.length-1];return E(e)?(t.pop(),M(t,e)):$(t)}"undefined"!=typeof window&&window;class qc extends D{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 v;return this._value}next(t){super.next(this._value=t)}}class Wc extends f{notifyNext(t,e,n,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Gc extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Zc(t,e,n,r,s=new Gc(t,n,r)){if(!s.closed)return e instanceof y?e.subscribe(s):R(e)(s)}const Kc={};class Yc{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Qc(t,this.resultSelector))}}class Qc extends Wc{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Kc),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{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Xc(...t){return z(1)($c(...t))}const th=new y(t=>t.complete());function eh(t){return t?function(t){return new y(e=>t.schedule(()=>e.complete()))}(t):th}function nh(t){return new y(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?B(n):eh()).subscribe(e)})}function rh(t,e){return"function"==typeof e?n=>n.pipe(rh((n,r)=>B(t(n,r)).pipe(A((t,s)=>e(n,t,r,s))))):e=>e.lift(new sh(t))}class sh{constructor(t){this.project=t}call(t,e){return e.subscribe(new oh(t,this.project))}}class oh extends j{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new V(this),r=this.destination;r.add(n),this.innerSubscription=N(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const ih=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function ah(t){return e=>0===t?eh():e.lift(new lh(t))}class lh{constructor(t){if(this.total=t,this.total<0)throw new ih}call(t,e){return e.subscribe(new uh(t,this.total))}}class uh extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function ch(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new hh(t,e,n))}}class hh{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new dh(t,this.accumulator,this.seed,this.hasSeed))}}class dh extends f{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,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(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function ph(t,e){return function(n){return n.lift(new fh(t,e))}}class fh{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new gh(t,this.predicate,this.thisArg))}}class gh extends f{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)}}function mh(t){return function(e){const n=new wh(t),r=e.lift(n);return n.caught=r}}class wh{constructor(t){this.selector=t}call(t,e){return e.subscribe(new yh(t,this.selector,this.caught))}}class yh extends j{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new V(this);this.add(r);const s=N(n,r);s!==r&&this.add(s)}}}function bh(t,e){return L(t,e,1)}function vh(t){return function(e){return 0===t?eh():e.lift(new _h(t))}}class _h{constructor(t){if(this.total=t,this.total<0)throw new ih}call(t,e){return e.subscribe(new Ch(t,this.total))}}class Ch extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;se.lift(new xh(t))}class xh{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Eh(t,this.errorFactory))}}class Eh extends f{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 Ah(){return new Jc}function kh(t=null){return e=>e.lift(new Sh(t))}class Sh{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Th(t,this.defaultValue))}}class Th extends f{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()}}function Oh(t,e){const n=arguments.length>=2;return r=>r.pipe(t?ph((e,n)=>t(e,n,r)):w,ah(1),n?kh(e):Dh(()=>new Jc))}function Fh(){}function Ph(t,e,n){return function(r){return r.lift(new Ih(t,e,n))}}class Ih{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new Rh(t,this.nextOrObserver,this.error,this.complete))}}class Rh extends f{constructor(t,e,n,s){super(t),this._tapNext=Fh,this._tapError=Fh,this._tapComplete=Fh,this._tapError=n||Fh,this._tapComplete=s||Fh,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Fh,this._tapError=e.error||Fh,this._tapComplete=e.complete||Fh)}_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()}}class Mh{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Bh(t,this.callback))}}class Bh extends f{constructor(t,e){super(t),this.add(new h(e))}}class Vh{constructor(t,e){this.id=t,this.url=e}}class jh extends Vh{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Nh extends Vh{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Lh extends Vh{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Uh extends Vh{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Hh extends Vh{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zh extends Vh{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $h extends Vh{constructor(t,e,n,r,s){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class qh extends Vh{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wh extends Vh{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gh{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Zh{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Kh{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yh{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qh{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jh{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xh{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 td="primary";class ed{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 nd(t){return new ed(t)}function rd(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function sd(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.lengthr[e]===t)}return t===e}function ad(t){return Array.prototype.concat.apply([],t)}function ld(t){return t.length>0?t[t.length-1]:null}function ud(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function cd(t){return qo(t)?t:$o(t)?B(Promise.resolve(t)):$c(t)}const hd={exact:function t(e,n,r){if(!vd(e.segments,n.segments))return!1;if(!md(e.segments,n.segments,r))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],r))return!1}return!0},subset:fd},dd={exact:function(t,e){return od(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>id(t[n],e[n]))},ignored:()=>!0};function pd(t,e,n){return hd[n.paths](t.root,e.root,n.matrixParams)&&dd[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function fd(t,e,n){return gd(t,e,e.segments,n)}function gd(t,e,n,r){if(t.segments.length>n.length){const s=t.segments.slice(0,n.length);return!!vd(s,n)&&!e.hasChildren()&&!!md(s,n,r)}if(t.segments.length===n.length){if(!vd(t.segments,n))return!1;if(!md(t.segments,n,r))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!fd(t.children[n],e.children[n],r))return!1}return!0}{const s=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!!vd(t.segments,s)&&!!md(t.segments,s,r)&&!!t.children.primary&&gd(t.children.primary,e,o,r)}}function md(t,e,n){return e.every((e,r)=>dd[n](t[r].parameters,e.parameters))}class wd{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nd(this.queryParams)),this._queryParamMap}toString(){return Dd.serialize(this)}}class yd{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ud(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xd(this)}}class bd{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=nd(this.parameters)),this._parameterMap}toString(){return Fd(this)}}function vd(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class _d{}class Cd{parse(t){const e=new Bd(t);return new wd(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${Ed(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${kd(e)}=${kd(t)}`).join("&"):`${kd(e)}=${kd(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Dd=new Cd;function xd(t){return t.segments.map(t=>Fd(t)).join("/")}function Ed(t,e){if(!t.hasChildren())return xd(t);if(e){const e=t.children.primary?Ed(t.children.primary,!1):"",n=[];return ud(t.children,(t,e)=>{e!==td&&n.push(`${e}:${Ed(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return ud(t.children,(t,r)=>{r===td&&(n=n.concat(e(t,r)))}),ud(t.children,(t,r)=>{r!==td&&(n=n.concat(e(t,r)))}),n}(t,(e,n)=>n===td?[Ed(t.children.primary,!1)]:[`${n}:${Ed(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${xd(t)}/${e[0]}`:`${xd(t)}/(${e.join("//")})`}}function Ad(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function kd(t){return Ad(t).replace(/%3B/gi,";")}function Sd(t){return Ad(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Td(t){return decodeURIComponent(t)}function Od(t){return Td(t.replace(/\+/g,"%20"))}function Fd(t){return`${Sd(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Sd(t)}=${Sd(e[t])}`).join("")}`;var e}const Pd=/^[^\/()?;=#]+/;function Id(t){const e=t.match(Pd);return e?e[0]:""}const Rd=/^[^=?&#]+/,Md=/^[^?&#]+/;class Bd{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new yd([],{}):new yd([],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 yd(t,e)),n}parseSegment(){const t=Id(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new bd(Td(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Id(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Id(this.remaining);t&&(n=t,this.capture(n))}t[Td(e)]=Td(n)}parseQueryParam(t){const e=function(t){const e=t.match(Rd);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(Md);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=Od(e),s=Od(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Id(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)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=td);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o.primary:new yd([],o),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 Vd{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=jd(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=jd(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Nd(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Nd(t,this._root).map(t=>t.value)}}function jd(t,e){if(t===e.value)return e;for(const n of e.children){const e=jd(t,n);if(e)return e}return null}function Nd(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Nd(t,n);if(r.length)return r.unshift(e),r}return[]}class Ld{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Ud(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Hd extends Vd{constructor(t,e){super(t),this.snapshot=e,Zd(this,t)}toString(){return this.snapshot.toString()}}function zd(t,e){const n=function(t,e){const n=new Wd([],{},{},"",{},td,e,null,t.root,-1,{});return new Gd("",new Ld(n,[]))}(t,e),r=new qc([new bd("",{})]),s=new qc({}),o=new qc({}),i=new qc({}),a=new qc(""),l=new $d(r,s,i,a,o,td,e,n.root);return l.snapshot=n.root,new Hd(new Ld(l,[]),n)}class $d{constructor(t,e,n,r,s,o,i,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=i,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(A(t=>nd(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(A(t=>nd(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function qd(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}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(r))}class Wd{constructor(t,e,n,r,s,o,i,a,l,u,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=i,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=u,this._resolve=c}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=nd(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nd(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Gd extends Vd{constructor(t,e){super(e),this.url=t,Zd(this,e)}toString(){return Kd(this._root)}}function Zd(t,e){e.value._routerState=t,e.children.forEach(e=>Zd(t,e))}function Kd(t){const e=t.children.length>0?` { ${t.children.map(Kd).join(", ")} } `:"";return`${t.value}${e}`}function Yd(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,od(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),od(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nod(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Qd(t.parent,e.parent))}function Jd(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const r of n.children)if(t.shouldReuseRoute(e.value,r.value.snapshot))return Jd(t,e,r);return Jd(t,e)})}(t,e,n);return new Ld(r,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return Xd(e,t),t}}const n=new $d(new qc((r=e.value).url),new qc(r.params),new qc(r.queryParams),new qc(r.fragment),new qc(r.data),r.outlet,r.component,r),s=e.children.map(e=>Jd(t,e));return new Ld(n,s)}var r}function Xd(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{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new wd(n.root===t?e:rp(n.root,t,e),o,s)}function rp(t,e,n){const r={};return ud(t.children,(t,s)=>{r[s]=t===e?n:rp(t,e,n)}),new yd(t.segments,r)}class sp{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&tp(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(ep);if(r&&r!==ld(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class op{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function ip(t,e,n){if(t||(t=new yd([],{})),0===t.segments.length&&t.hasChildren())return ap(t,e,n);const r=function(t,e,n){let r=0,s=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return o;const e=t.segments[s],i=n[r];if(ep(i))break;const a=`${i}`,l=r0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!hp(a,l,e))return o;r+=2}else{if(!hp(a,{},e))return o;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(t,e,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(s[r]=ip(t.children[r],e,n))}),ud(t.children,(t,e)=>{void 0===r[e]&&(s[e]=t)}),new yd(t.segments,s)}}function lp(t,e,n){const r=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=lp(new yd([],{}),0,t))}),e}function cp(t){const e={};return ud(t,(t,n)=>e[n]=`${t}`),e}function hp(t,e,n){return t==n.path&&od(e,n.parameters)}class dp{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Yd(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=Ud(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),ud(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const s=n.getContext(r.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(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,s=Ud(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const r=Ud(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new Jh(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Yh(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(Yd(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.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),pp(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}(r.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=s,e.outlet&&e.outlet.activateWith(r,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function pp(t){Yd(t.value),t.children.forEach(pp)}class fp{constructor(t,e){this.routes=t,this.module=e}}function gp(t){return"function"==typeof t}function mp(t){return t instanceof wd}const wp=Symbol("INITIAL_VALUE");function yp(){return rh(t=>function(...t){let e,n;return E(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),$(t,n).lift(new Yc(e))}(t.map(t=>t.pipe(ah(1),function(...t){const e=t[t.length-1];return E(e)?(t.pop(),n=>Xc(t,n,e)):e=>Xc(t,e)}(wp)))).pipe(ch((t,e)=>{let n=!1;return e.reduce((t,r,s)=>{if(t!==wp)return t;if(r===wp&&(n=!0),!n){if(!1===r)return r;if(s===e.length-1||mp(r))return r}return t},t)},wp),ph(t=>t!==wp),A(t=>mp(t)?t:!0===t),ah(1)))}let bp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Ho(0,"router-outlet")},directives:function(){return[yf]},encapsulation:2}),t})();function vp(t,e=""){for(let n=0;nxp(t)===e);return n.push(...t.filter(t=>xp(t)!==e)),n}const Ap={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function kp(t,e,n){var r;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Ap):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||sd)(n,t,e);if(!s)return Object.assign({},Ap);const o={};ud(s.posParams,(t,e)=>{o[e]=t.path});const i=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:i,positionalParamSegments:null!==(r=s.posParams)&&void 0!==r?r:{}}}function Sp(t,e,n,r,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Tp(t,e,n)&&xp(n)!==td)}(t,n,r)){const s=new yd(e,function(t,e,n,r){const s={};s.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const o of n)if(""===o.path&&xp(o)!==td){const n=new yd([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[xp(o)]=n}return s}(t,e,r,new yd(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=>Tp(t,e,n))}(t,n,r)){const o=new yd(t.segments,function(t,e,n,r,s,o){const i={};for(const a of r)if(Tp(t,n,a)&&!s[xp(a)]){const n=new yd([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===o?t.segments.length:e.length,i[xp(a)]=n}return Object.assign(Object.assign({},s),i)}(t,e,n,r,t.children,s));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}const o=new yd(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function Tp(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Op(t,e,n,r){return!!(xp(t)===r||r!==td&&Tp(e,n,t))&&("**"===t.path||kp(e,t,n).matched)}function Fp(t,e,n){return 0===e.length&&!t.children[n]}class Pp{constructor(t){this.segmentGroup=t||null}}class Ip{constructor(t){this.urlTree=t}}function Rp(t){return new y(e=>e.error(new Pp(t)))}function Mp(t){return new y(e=>e.error(new Ip(t)))}function Bp(t){return new y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Vp{constructor(t,e,n,r,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(pa)}apply(){const t=Sp(this.urlTree.root,[],[],this.config).segmentGroup,e=new yd(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,td).pipe(A(t=>this.createUrlTree(jp(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(mh(t=>{if(t instanceof Ip)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Pp)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,td).pipe(A(e=>this.createUrlTree(jp(e),t.queryParams,t.fragment))).pipe(mh(t=>{if(t instanceof Pp)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new yd([],{[td]:t}):t;return new wd(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(A(t=>new yd([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){const r=[];for(const s of Object.keys(n.children))"primary"===s?r.unshift(s):r.push(s);return B(r).pipe(bh(r=>{const s=n.children[r],o=Ep(e,r);return this.expandSegmentGroup(t,o,s,r).pipe(A(t=>({segment:t,outlet:r})))}),ch((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?ph((e,n)=>t(e,n,r)):w,vh(1),n?kh(e):Dh(()=>new Jc))}())}expandSegment(t,e,n,r,s,o){return B(n).pipe(bh(i=>this.expandSegmentAgainstRoute(t,e,n,i,r,s,o).pipe(mh(t=>{if(t instanceof Pp)return $c(null);throw t}))),Oh(t=>!!t),mh((t,n)=>{if(t instanceof Jc||"EmptyError"===t.name){if(Fp(e,r,s))return $c(new yd([],{}));throw new Pp(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,r,s,o,i){return Op(r,e,s,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s,o):i&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,o):Rp(e):Rp(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Mp(s):this.lineralizeSegments(n,s).pipe(L(n=>{const s=new yd(n,{});return this.expandSegment(t,s,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,o){const{matched:i,consumedSegments:a,lastChild:l,positionalParamSegments:u}=kp(e,r,s);if(!i)return Rp(e);const c=this.applyRedirectCommands(a,r.redirectTo,u);return r.redirectTo.startsWith("/")?Mp(c):this.lineralizeSegments(r,c).pipe(L(r=>this.expandSegment(t,e,n,r.concat(s.slice(l)),o,!1)))}matchSegmentAgainstRoute(t,e,n,r,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?$c(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(A(t=>(n._loadedConfig=t,new yd(r,{})))):$c(new yd(r,{}));const{matched:o,consumedSegments:i,lastChild:a}=kp(e,n,r);if(!o)return Rp(e);const l=r.slice(a);return this.getChildConfig(t,n,r).pipe(L(t=>{const r=t.module,o=t.routes,{segmentGroup:a,slicedSegments:u}=Sp(e,i,l,o),c=new yd(a.segments,a.children);if(0===u.length&&c.hasChildren())return this.expandChildren(r,o,c).pipe(A(t=>new yd(i,t)));if(0===o.length&&0===u.length)return $c(new yd(i,{}));const h=xp(n)===s;return this.expandSegment(r,c,o,u,h?td:s,!0).pipe(A(t=>new yd(i.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?$c(new fp(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?$c(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(L(n=>n?this.configLoader.load(t.injector,e).pipe(A(t=>(e._loadedConfig=t,t))):function(t){return new y(e=>e.error(rd(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):$c(new fp([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;return r&&0!==r.length?$c(r.map(r=>{const s=t.get(r);let o;if(function(t){return t&&gp(t.canLoad)}(s))o=s.canLoad(e,n);else{if(!gp(s))throw new Error("Invalid CanLoad guard");o=s(e,n)}return cd(o)})).pipe(yp(),Ph(t=>{if(!mp(t))return;const e=rd(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),A(t=>!0===t)):$c(!0)}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return $c(n);if(r.numberOfChildren>1||!r.children.primary)return Bp(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const s=this.createSegmentGroup(t,e.root,n,r);return new wd(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return ud(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[r]=e[s]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const s=this.createSegments(t,e.segments,n,r);let o={};return ud(e.children,(e,s)=>{o[s]=this.createSegmentGroup(t,e,n,r)}),new yd(s,o)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function jp(t){const e={};for(const n of Object.keys(t.children)){const r=jp(t.children[n]);(r.segments.length>0||r.hasChildren())&&(e[n]=r)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new yd(t.segments.concat(e.segments),e.children)}return t}(new yd(t.segments,e))}class Np{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Lp{constructor(t,e){this.component=t,this.route=e}}function Up(t,e,n){const r=t._root;return zp(r,e?e._root:null,n,[r.value])}function Hp(t,e,n){const r=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(r?r.module.injector:n).get(t)}function zp(t,e,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=Ud(e);return t.children.forEach(t=>{!function(t,e,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,i=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(i&&o.routeConfig===i.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!vd(t.url,e.url);case"pathParamsOrQueryParamsChange":return!vd(t.url,e.url)||!od(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qd(t,e)||!od(t.queryParams,e.queryParams);case"paramsChange":default:return!Qd(t,e)}}(i,o,o.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Np(r)):(o.data=i.data,o._resolvedData=i._resolvedData),zp(t,e,o.component?a?a.children:null:n,r,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Lp(a.outlet.component,i))}else i&&$p(e,a,s),s.canActivateChecks.push(new Np(r)),zp(t,null,o.component?a?a.children:null:n,r,s)}(t,o[t.value.outlet],n,r.concat([t.value]),s),delete o[t.value.outlet]}),ud(o,(t,e)=>$p(t,n.getContext(e),s)),s}function $p(t,e,n){const r=Ud(t),s=t.value;ud(r,(t,r)=>{$p(t,s.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Lp(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class qp{}function Wp(t){return new y(e=>e.error(t))}class Gp{constructor(t,e,n,r,s,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=Sp(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,td);if(null===e)return null;const n=new Wd([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},td,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ld(n,e),s=new Gd(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=qd(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 r=e.children[s],o=Ep(t,s),i=this.processSegmentGroup(o,r,s);if(null===i)return null;n.push(...i)}const r=Kp(n);return r.sort((t,e)=>t.value.outlet===td?-1:e.value.outlet===td?1:t.value.outlet.localeCompare(e.value.outlet)),r}processSegment(t,e,n,r){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,r);if(null!==t)return t}return Fp(e,n,r)?[]:null}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo||!Op(t,e,n,r))return null;let s,o=[],i=[];if("**"===t.path){const r=n.length>0?ld(n).parameters:{};s=new Wd(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Jp(t),xp(t),t.component,t,Yp(e),Qp(e)+n.length,Xp(t))}else{const r=kp(e,t,n);if(!r.matched)return null;o=r.consumedSegments,i=n.slice(r.lastChild),s=new Wd(o,r.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Jp(t),xp(t),t.component,t,Yp(e),Qp(e)+o.length,Xp(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:u}=Sp(e,o,i,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new Ld(s,t)]}if(0===a.length&&0===u.length)return[new Ld(s,[])];const c=xp(t)===r,h=this.processSegment(a,l,u,c?td:r);return null===h?null:[new Ld(s,h)]}}function Zp(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Kp(t){const e=[],n=new Set;for(const r of t){if(!Zp(r)){e.push(r);continue}const t=e.find(t=>r.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...r.children),n.add(t)):e.push(r)}for(const r of n){const t=Kp(r.children);e.push(new Ld(r.value,t))}return e.filter(t=>!n.has(t))}function Yp(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Qp(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 Jp(t){return t.data||{}}function Xp(t){return t.resolve||{}}function tf(t){return rh(e=>{const n=t(e);return n?B(n).pipe(A(()=>e)):$c(e)})}class ef 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 nf=new Hn("ROUTES");class rf{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe(A(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new fp(ad(r.injector.get(nf,void 0,bt.Self|bt.Optional)).map(Dp),r)}),mh(t=>{throw e._loader$=void 0,t}));return e._loader$=new Z(n,()=>new D).pipe(q()),e._loader$}loadModuleFactory(t){return"string"==typeof t?B(this.loader.load(t)):cd(t()).pipe(L(t=>t instanceof fa?$c(t):B(this.compiler.compileModuleAsync(t))))}}class sf{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new of,this.attachRef=null}}class of{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 sf,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class af{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function lf(t){throw t}function uf(t,e,n){return e.parse("/")}function cf(t,e){return $c(null)}const hf={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},df={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let pf=(()=>{class t{constructor(t,e,n,r,s,o,i,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new D,this.errorHandler=lf,this.malformedUriErrorHandler=uf,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:cf,afterPreactivation:cf},this.urlHandlingStrategy=new af,this.routeReuseStrategy=new ef,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(pa),this.console=s.get(ll);const l=s.get(_l);this.isNgZoneEnabled=l instanceof _l&&_l.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new wd(new yd([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new rf(o,i,t=>this.triggerEvent(new Gh(t)),t=>this.triggerEvent(new Zh(t))),this.routerState=zd(this.currentUrlTree,this.rootComponentType),this.transitions=new qc({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(ph(t=>0!==t.id),A(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),rh(t=>{let n=!1,r=!1;return $c(t).pipe(Ph(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}}),rh(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return $c(t).pipe(rh(t=>{const n=this.transitions.getValue();return e.next(new jh(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?th:Promise.resolve(t)}),(r=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,i=this.config,rh(t=>function(t,e,n,r,s){return new Vp(t,e,n,r,s).apply()}(r,s,o,t.extractedUrl,i).pipe(A(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),Ph(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,s){return L(o=>function(t,e,n,r,s="emptyOnly",o="legacy"){try{const i=new Gp(t,e,n,r,s,o).recognize();return null===i?Wp(new qp):$c(i)}catch(i){return Wp(i)}}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),r,s).pipe(A(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Ph(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new Hh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,s,o,i;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:o,extras:i}=t,a=new jh(n,this.serializeUrl(r),s,o);e.next(a);const l=zd(r,this.rootComponentType).snapshot;return $c(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},i),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),th}),tf(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:i}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!i})}),Ph(t=>{const e=new zh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),A(t=>Object.assign(Object.assign({},t),{guards:Up(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return L(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:o,canDeactivateChecks:i}}=n;return 0===i.length&&0===o.length?$c(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return B(t).pipe(L(t=>function(t,e,n,r,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?$c(o.map(o=>{const i=Hp(o,e,s);let a;if(function(t){return t&&gp(t.canDeactivate)}(i))a=cd(i.canDeactivate(t,e,n,r));else{if(!gp(i))throw new Error("Invalid CanDeactivate guard");a=cd(i(t,e,n,r))}return a.pipe(Oh())})).pipe(yp()):$c(!0)}(t.component,t.route,n,e,r)),Oh(t=>!0!==t,!0))}(i,r,s,t).pipe(L(n=>n&&"boolean"==typeof n?function(t,e,n,r){return B(e).pipe(bh(e=>Xc(function(t,e){return null!==t&&e&&e(new Kh(t)),$c(!0)}(e.route.parent,r),function(t,e){return null!==t&&e&&e(new Qh(t)),$c(!0)}(e.route,r),function(t,e,n){const r=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=>nh(()=>$c(e.guards.map(s=>{const o=Hp(s,e.node,n);let i;if(function(t){return t&&gp(t.canActivateChild)}(o))i=cd(o.canActivateChild(r,t));else{if(!gp(o))throw new Error("Invalid CanActivateChild guard");i=cd(o(r,t))}return i.pipe(Oh())})).pipe(yp())));return $c(s).pipe(yp())}(t,e.path,n),function(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?$c(r.map(r=>nh(()=>{const s=Hp(r,e,n);let o;if(function(t){return t&&gp(t.canActivate)}(s))o=cd(s.canActivate(e,t));else{if(!gp(s))throw new Error("Invalid CanActivate guard");o=cd(s(e,t))}return o.pipe(Oh())}))).pipe(yp()):$c(!0)}(t,e.route,n))),Oh(t=>!0!==t,!0))}(r,o,t,e):$c(n)),A(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),Ph(t=>{if(mp(t.guardsResult)){const e=rd(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new $h(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),ph(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),tf(t=>{if(t.guards.canActivateChecks.length)return $c(t).pipe(Ph(t=>{const e=new qh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),rh(t=>{let e=!1;return $c(t).pipe((n=this.paramsInheritanceStrategy,r=this.ngModule.injector,L(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return $c(t);let o=0;return B(s).pipe(bh(t=>function(t,e,n,r){return function(t,e,n,r){const s=Object.keys(t);if(0===s.length)return $c({});const o={};return B(s).pipe(L(s=>function(t,e,n,r){const s=Hp(t,e,r);return cd(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,r).pipe(Ph(t=>{o[s]=t}))),vh(1),L(()=>Object.keys(o).length===s.length?$c(o):th))}(t._resolve,t,e,r).pipe(A(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),qd(t,n).resolve),null)))}(t.route,e,n,r)),Ph(()=>o++),vh(1),L(e=>o===s.length?$c(t):th))})),Ph({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var n,r}),Ph(t=>{const e=new Wh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),tf(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:i}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!i})}),A(t=>{const e=function(t,e,n){const r=Jd(t,e._root,n?n._root:void 0);return new Hd(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Ph(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)}),(o=this.rootContexts,i=this.routeReuseStrategy,a=t=>this.triggerEvent(t),A(t=>(new dp(i,t.targetRouterState,t.currentRouterState,a).activate(o),t))),Ph({next(){n=!0},complete(){n=!0}}),(s=()=>{n||r||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null},t=>t.lift(new Mh(s))),mh(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=mp(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new Lh(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),r?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 r=new Uh(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(o){t.reject(o)}}var s;return th}));var s,o,i,a}))}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:r}=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(r,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){vp(t),this.config=t.map(Dp),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:r,fragment:s,queryParamsHandling:o,preserveFragment:i}=e,a=n||this.routerState.root,l=i?this.currentUrlTree.fragment:s;let u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,n,r,s){if(0===n.length)return np(e.root,e.root,e,r,s);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new sp(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return ud(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new sp(n,e,r)}(n);if(o.toRoot())return np(e.root,new yd([],{}),e,r,s);const i=function(t,e,n){if(t.isAbsolute)return new op(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new op(t,t===e.root,0)}const r=tp(t.commands[0])?0:1;return function(t,e,n){let r=t,s=e,o=n;for(;o>s;){if(o-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new op(r,!1,s-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),a=i.processChildren?ap(i.segmentGroup,i.index,o.commands):ip(i.segmentGroup,i.index,o.commands);return np(i.segmentGroup,a,e,r,s)}(a,this.currentUrlTree,t,u,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=mp(t)?t:this.parseUrl(t),r=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(r,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Nh(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,r,s){if(this.disposed)return Promise.resolve(!1);const o=this.getTransition(),i="imperative"!==e&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===t.toString();if(i&&a)return Promise.resolve(!0);let l,u,c;s?(l=s.resolve,u=s.reject,c=s.promise):c=new Promise((t,e)=>{l=t,u=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:r,resolve:l,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),r=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",r):this.location.go(n,"",r)}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 Lh(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)(or($n),or(_d),or(of),or(fu),or(bo),or(zl),or(yl),or(void 0))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),ff=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new D,null==n&&r.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:mf(this.skipLocationChange),replaceUrl:mf(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:mf(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Vo(pf),Vo($d),Nn("tabindex"),Vo(Mi),Vo(Pi))},t.\u0275dir=Gt({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Wo("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:[ae]}),t})(),gf=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new D,this.subscription=t.events.subscribe(t=>{t instanceof Nh&&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,r,s){if(0!==t||e||n||r||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:mf(this.skipLocationChange),replaceUrl:mf(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!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:mf(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Vo(pf),Vo($d),Vo(uu))},t.\u0275dir=Gt({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Wo("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(li("href",e.href,mr),Ro("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:[ae]}),t})();function mf(t){return""===t||!!t}let wf=(()=>{class t{constructor(t,e,n,r,s,o){this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.link=s,this.linkWithHref=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof Nh&&this.update()})}ngAfterContentInit(){$c(this.links.changes,this.linksWithHrefs.changes,$c(null)).pipe(z()).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=B(e).pipe(z()).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)(Vo(pf),Vo(Pi),Vo(Mi),Vo(sa),Vo(ff,8),Vo(gf,8))},t.\u0275dir=Gt({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(Ka(n,ff,5),Ka(n,gf,5)),2&t){let t;Za(t=Ya())&&(e.links=t),Za(t=Ya())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[ae]}),t})(),yf=(()=>{class t{constructor(t,e,n,r,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ba,this.deactivateEvents=new Ba,this.name=r||td,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),r=this.parentContexts.getOrCreateContext(this.name).children,s=new bf(t,r,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)(Vo(of),Vo(ma),Vo(Si),Nn("name"),Vo(sa))},t.\u0275dir=Gt({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class bf{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===$d?this.route:t===of?this.childContexts:this.parent.get(t,e)}}class vf{}class _f{preload(t,e){return $c(null)}}let Cf=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new rf(e,n,e=>t.triggerEvent(new Gh(e)),e=>t.triggerEvent(new Zh(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(ph(t=>t instanceof Nh),bh(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(pa);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return B(n).pipe(z(),A(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?$c(e._loadedConfig):this.loader.load(t.injector,e)).pipe(L(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(or(pf),or(zl),or(yl),or(bo),or(vf))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Df=(()=>{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 jh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Nh&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Xh&&(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 Xh(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)(or(pf),or(cc),or(void 0))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const xf=new Hn("ROUTER_CONFIGURATION"),Ef=new Hn("ROUTER_FORROOT_GUARD"),Af=[fu,{provide:_d,useClass:Cd},{provide:pf,useFactory:function(t,e,n,r,s,o,i,a={},l,u){const c=new pf(null,t,e,n,r,s,o,ad(i));return l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),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,c),a.enableTracing&&c.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)}),c},deps:[_d,of,fu,bo,zl,yl,nf,xf,[class{},new ur],[class{},new ur]]},of,{provide:$d,useFactory:function(t){return t.routerState.root},deps:[pf]},{provide:zl,useClass:Wl},Cf,_f,class{preload(t,e){return e().pipe(mh(()=>$c(null)))}},{provide:xf,useValue:{enableTracing:!1}}];function kf(){return new Bl("Router",pf)}let Sf=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Af,Pf(e),{provide:Ef,useFactory:Ff,deps:[[pf,new ur,new cr]]},{provide:xf,useValue:n||{}},{provide:uu,useFactory:Of,deps:[tu,[new lr(hu),new ur],xf]},{provide:Df,useFactory:Tf,deps:[pf,cc,xf]},{provide:vf,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:_f},{provide:Bl,multi:!0,useFactory:kf},[If,{provide:tl,multi:!0,useFactory:Rf,deps:[If]},{provide:Bf,useFactory:Mf,deps:[If]},{provide:al,multi:!0,useExisting:Bf}]]}}static forChild(e){return{ngModule:t,providers:[Pf(e)]}}}return t.\u0275fac=function(e){return new(e||t)(or(Ef,8),or(pf,8))},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({}),t})();function Tf(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Df(t,e,n)}function Of(t,e,n={}){return n.useHash?new pu(t,e):new du(t,e)}function Ff(t){return"guarded"}function Pf(t){return[{provide:zn,multi:!0,useValue:t},{provide:nf,multi:!0,useValue:t}]}let If=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new D}appInitializer(){return this.injector.get(nu,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(pf),r=this.injector.get(xf);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?$c(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(xf),n=this.injector.get(Cf),r=this.injector.get(Df),s=this.injector.get(pf),o=this.injector.get(Ul);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),n.setUpPreloading(),r.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(or(bo))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Rf(t){return t.appInitializer.bind(t)}function Mf(t){return t.bootstrapListener.bind(t)}const Bf=new Hn("Router Initializer");function Vf(t,e,n,r){return new(n||(n=Promise))(function(s,o){function i(t){try{l(r.next(t))}catch(e){o(e)}}function a(t){try{l(r.throw(t))}catch(e){o(e)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(i,a)}l((r=r.apply(t,e||[])).next())})}var jf=n("gH3e"),Nf=n("PSD3"),Lf=n.n(Nf);let Uf=(()=>{class t{constructor(){}isAuthenticated(){return localStorage.length>0&&localStorage.getItem("user").length>0}setCurrentSession(t){localStorage.setItem("user",JSON.stringify(t))}loadUserData(){let t=localStorage.getItem("user");return t?JSON.parse(t):null}logout(){return new Promise(function(t){localStorage.clear(),t(!0)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Hf{}class zf{}class $f{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),r=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}: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 $f?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 $f;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof $f?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 r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);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 qf{encodeKey(t){return Wf(t)}encodeValue(t){return Wf(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Wf(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 Gf(t){return`${t}`}class Zf{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new qf,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 r=t.indexOf("="),[s,o]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],i=n.get(s)||[];i.push(o),n.set(s,i)}),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 r=t[n];Array.isArray(r)?r.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:r,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 Zf({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(Gf(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(Gf(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 Kf{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 Yf(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Qf(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Jf(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Xf{constructor(t,e,n,r){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)||r?(this.body=void 0!==n?n:null,s=r):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 $f),this.context||(this.context=new Kf),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&&(u=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),u)),new Xf(n,r,o,{params:u,headers:l,context:c,reportProgress:a,responseType:s,withCredentials:i})}}var tg=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class eg{constructor(t,e=200,n="OK"){this.headers=t.headers||new $f,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 ng extends eg{constructor(t={}){super(t),this.type=tg.ResponseHeader}clone(t={}){return new ng({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 rg extends eg{constructor(t={}){super(t),this.type=tg.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new rg({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 sg extends eg{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 og(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 ig=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof Xf)r=t;else{let s,o;s=n.headers instanceof $f?n.headers:new $f(n.headers),n.params&&(o=n.params instanceof Zf?n.params:new Zf({fromObject:n.params})),r=new Xf(t,e,void 0!==n.body?n.body:null,{headers:s,context:n.context,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=$c(r).pipe(bh(t=>this.handler.handle(t)));if(t instanceof Xf||"events"===n.observe)return s;const o=s.pipe(ph(t=>t instanceof rg));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(A(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(A(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(A(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe(A(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 Zf).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,og(n,e))}post(t,e,n={}){return this.request("POST",t,og(n,e))}put(t,e,n={}){return this.request("PUT",t,og(n,e))}}return t.\u0275fac=function(e){return new(e||t)(or(Hf))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class ag{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const lg=new Hn("HTTP_INTERCEPTORS");let ug=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const cg=/^\)\]\}',?\n/;let hg=(()=>{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 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 r=t.serializeBody();let s=null;const o=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,r=n.statusText||"OK",o=new $f(n.getAllResponseHeaders()),i=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 ng({headers:o,status:e,statusText:r,url:i}),s},i=()=>{let{headers:r,status:s,statusText:i,url:a}=o(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(cg,"");try{l=""!==l?JSON.parse(l):null}catch(c){l=t,u&&(u=!1,l={error:c,text:l})}}u?(e.next(new rg({body:l,headers:r,status:s,statusText:i,url:a||void 0})),e.complete()):e.error(new sg({error:l,headers:r,status:s,statusText:i,url:a||void 0}))},a=t=>{const{url:r}=o(),s=new sg({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(s)};let l=!1;const u=r=>{l||(e.next(o()),l=!0);let s={type:tg.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},c=t=>{let n={type:tg.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",i),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",u),null!==r&&n.upload&&n.upload.addEventListener("progress",c)),n.send(r),e.next({type:tg.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",i),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",u),null!==r&&n.upload&&n.upload.removeEventListener("progress",c)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(or(pc))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const dg=new Hn("XSRF_COOKIE_NAME"),pg=new Hn("XSRF_HEADER_NAME");class fg{}let gg=(()=>{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=Qu(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(or(Xl),or(il),or(dg))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),mg=(()=>{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 r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(or(fg),or(pg))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),wg=(()=>{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(lg,[]);this.chain=t.reduceRight((t,e)=>new ag(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(or(zf),or(bo))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),yg=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:mg,useClass:ug}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:dg,useValue:e.cookieName}:[],e.headerName?{provide:pg,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({providers:[mg,{provide:lg,useExisting:mg,multi:!0},{provide:fg,useClass:gg},{provide:dg,useValue:"XSRF-TOKEN"},{provide:pg,useValue:"X-XSRF-TOKEN"}]}),t})(),bg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({providers:[ig,{provide:Hf,useClass:wg},hg,{provide:zf,useExisting:hg}],imports:[[yg.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();const vg="https://mainbitprod.service-now.com/api/mainb/inventario_mainbit/",_g={Accept:"application/json","Content-Type":"application/json",Authorization:"Basic "+btoa("inventario_mainbit:3ntr@dAs&Sal1Da$")};let Cg=(()=>{class t{constructor(t){this.http=t}login(t){return this.http.post(`${vg}login`,t,{headers:_g})}getSerial(t){return this.http.get(`${vg}getSerie/${t}`,{headers:_g})}getObservations(t){return this.http.get(`${vg}observaciones/${t.charAt(0).toUpperCase()+t.slice(1)}`,{headers:_g})}getMovements(){return this.http.get(`${vg}movimientos`,{headers:_g})}sendRegister(t){return this.http.post(`${vg}registro`,t,{headers:_g})}setMovements(t){localStorage.setItem("movements",JSON.stringify(t))}}return t.\u0275fac=function(e){return new(e||t)(or(ig))},t.\u0275prov=ct({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Dg=n("kiQV");let xg=(()=>{class t{constructor(){this.year=(new Date).getFullYear(),this.version=Dg.a}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["app-footer"]],decls:4,vars:2,consts:[[1,"row"]],template:function(t,e){1&t&&(Lo(0,"footer"),Lo(1,"div",0),Lo(2,"p"),si(3),Uo(),Uo(),Uo()),2&t&&(ls(3),ai(" Copyright \xa9 ",e.year," Todos los derechos reservados. Versi\xf3n: ",e.version," "))},styles:["footer[_ngcontent-%COMP%]{background-color:#002742;padding:0 2% 28px;font-size:80%;position:fixed;left:0;bottom:0;height:70px;width:100%;z-index:2}footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.8588235294117647);margin-top:20px;display:flex;justify-content:center;align-items:center}"]}),t})(),Eg=(()=>{class t{constructor(){this.title="mnbt-control-equipos"}showAlerts(t,e,n){Lf.a.fire({position:"center",icon:n,title:t,text:e,showConfirmButton:!1,showCloseButton:!0})}showLoading(t){Lf.a.fire({allowOutsideClick:!1,text:t,timerProgressBar:!0}),Lf.a.showLoading()}closeLoading(){Lf.a.close()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["app-root"]],decls:2,vars:0,template:function(t,e){1&t&&(Ho(0,"router-outlet"),Ho(1,"app-footer"))},directives:[yf,xg],styles:[""]}),t})();function Ag(t,e){if(1&t){const t=zo();Lo(0,"li"),Lo(1,"a",9),Wo("click",function(){return Te(t),Ko().logout()}),si(2,"Cerrar Sesi\xf3n"),Uo(),Uo()}}function kg(t,e){if(1&t&&(Lo(0,"li"),Lo(1,"span",10),si(2),Uo(),Uo()),2&t){const t=Ko();ls(2),oi(t.sede)}}const Sg=function(){return["/home"]};let Tg=(()=>{class t{constructor(t,e){this.auth=t,this.router=e,this.onscan=jf}ngOnInit(){this.isAuthenticated&&(this.sede=this.loadSede())}loadSede(){return this.auth.loadUserData().inmueble}logout(){this.auth.logout().then(t=>{t&&(this.onscan.detachFrom(document),this.router.navigate(["/login"]))})}}return t.\u0275fac=function(e){return new(e||t)(Vo(Uf),Vo(pf))},t.\u0275cmp=Ut({type:t,selectors:[["app-header"]],inputs:{isAuthenticated:"isAuthenticated"},decls:13,vars:4,consts:[[1,"container"],[1,"row"],[1,"col-sm-4"],["routerLinkActive","router-link-active",3,"routerLink"],["src","assets/img/Mainbit_logo_white.png","alt","Mainbit",1,"logo"],[1,"col-sm-8"],[1,"main-nav"],[4,"ngIf"],[1,"main-text","container"],[1,"menu",3,"click"],[1,"menu"]],template:function(t,e){1&t&&(Lo(0,"header"),Lo(1,"nav",0),Lo(2,"div",1),Lo(3,"div",2),Lo(4,"a",3),Ho(5,"img",4),Uo(),Uo(),Lo(6,"div",5),Lo(7,"ul",6),Bo(8,Ag,3,0,"li",7),Bo(9,kg,3,1,"li",7),Uo(),Uo(),Uo(),Uo(),Lo(10,"div",8),Lo(11,"h1"),si(12,"Control de equipos"),Uo(),Uo(),Uo()),2&t&&(ls(4),jo("routerLink",function(t,e,n){const r=Be()+3,s=ke();return s[r]===as?Fo(s,r,e()):function(t,e){return t[e]}(s,r)}(0,Sg)),ls(4),jo("ngIf",e.isAuthenticated),ls(1),jo("ngIf",e.isAuthenticated))},directives:[gf,wf,nc],styles:["header[_ngcontent-%COMP%]{background-image:linear-gradient(rgba(0,100,165,.5),rgba(0,0,0,.8),rgba(0,0,0,.9)),url(hero.74fb3716c9710f8cbb7f.jpg);background-size:cover;background-position:50%;background-attachment:fixed}.logo[_ngcontent-%COMP%]{height:54px;width:auto;float:left;margin:20px 0 0}.main-nav[_ngcontent-%COMP%]{margin:20px 0 0;list-style:none;display:flex;flex-direction:row-reverse;flex-wrap:wrap-reverse}.li[_ngcontent-%COMP%]{display:inline-block;padding:0 10px}.menu[_ngcontent-%COMP%]{padding:6px 20px 2px 22px;cursor:pointer;border-radius:10px 10px 0 0;color:#fff;text-decoration:none;text-transform:uppercase;font-size:90%;border-bottom:2px solid #fff;transition:background-color .4s ease-in-out}.menu[_ngcontent-%COMP%]:active, .menu[_ngcontent-%COMP%]:hover{color:#000;background-color:hsla(0,0%,100%,.5);border-bottom:2px solid #ddd}.main-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#fff;font-size:150%;font-weight:400;text-transform:uppercase;padding:10px 0}"]}),t})();const Og=["checkExcepcion"];function Fg(t,e){1&t&&(Lo(0,"div",8),Lo(1,"div",9),Lo(2,"h5"),si(3,"Use el esc\xe1ner para leer el n\xfamero de serie"),Uo(),Uo(),Uo())}function Pg(t,e){1&t&&(Lo(0,"p",26),Lo(1,"strong"),si(2,"Ultimo registro:"),Uo(),Uo())}function Ig(t,e){1&t&&(Lo(0,"dt",32),si(1,"Observaci\xf3n: "),Uo())}function Rg(t,e){if(1&t&&(Lo(0,"dd",29),si(1),Uo()),2&t){const t=Ko(3);ls(1),ii("",t.codeData.last_record.observation," ")}}function Mg(t,e){if(1&t&&(Lo(0,"dl",27),Lo(1,"dt",28),si(2,"Fecha: "),Uo(),Lo(3,"dd",29),si(4),Uo(),Lo(5,"dt",28),si(6,"Movimiento: "),Uo(),Lo(7,"dd",29),si(8),Ia(9,"titlecase"),Uo(),Lo(10,"dt",28),si(11,"Ubicaci\xf3n:"),Uo(),Lo(12,"dd",29),si(13),Ia(14,"titlecase"),Uo(),Bo(15,Ig,2,0,"dt",30),Bo(16,Rg,2,1,"dd",31),Uo()),2&t){const t=Ko(2);ls(4),oi(t.codeData.last_record.date),ls(4),oi(Ra(9,5,t.codeData.last_record.type)),ls(5),oi(Ra(14,7,t.codeData.last_record.location)),ls(2),jo("ngIf",t.codeData.last_record.observation),ls(1),jo("ngIf",t.codeData.last_record.observation)}}function Bg(t,e){1&t&&(Lo(0,"div",33),Ho(1,"i",34),si(2," Salida Autorizada. "),Uo())}function Vg(t,e){1&t&&(Lo(0,"div",35),Ho(1,"i",36),si(2," El equipo no tiene autorizaci\xf3n de salida. "),Uo())}function jg(t,e){if(1&t){const t=zo();Lo(0,"div",37),Lo(1,"input",38,39),Wo("change",function(e){return Te(t),Ko(2).checkException(e)}),Uo(),si(3,"\xa0 "),Lo(4,"label",40),Ho(5,"i",41),si(6,"\xa0A\xf1adir Excepci\xf3n "),Uo(),Uo()}if(2&t){const t=Ko(2);ls(1),jo("value",t.exceptionCheck.value)}}function Ng(t,e){if(1&t&&(Lo(0,"tr"),Lo(1,"th"),Lo(2,"figure",42),Lo(3,"figcaption",43),si(4),Uo(),Uo(),Uo(),Uo()),2&t){const t=Ko(2);ls(4),ii(" ",t.exception.value," ")}}const Lg=function(t,e){return{"bi-box-arrow-in-right":t,"bi-box-arrow-right":e}};function Ug(t,e){if(1&t){const t=zo();Lo(0,"button",44),Wo("click",function(){const e=Te(t).$implicit;return Ko(2).register(e.value)}),Lo(1,"h6"),Ho(2,"i",45),si(3),Uo(),Uo()}if(2&t){const t=e.$implicit;Yo("id","btn",t.value,""),jo("disabled",t.disabled),ls(2),jo("ngClass",Fa(4,Lg,"entrada"===t.value,"salida"===t.value)),ls(1),ii(" Registrar ",t.value,"")}}function Hg(t,e){if(1&t&&(Lo(0,"div",10),Lo(1,"div",11),Lo(2,"h4"),Ho(3,"i",12),si(4),Uo(),Lo(5,"div",9),Lo(6,"div",13),Lo(7,"span"),Ho(8,"i",14),si(9),Uo(),Lo(10,"p"),Lo(11,"strong"),si(12,"Marca: "),Uo(),si(13),Uo(),Lo(14,"p"),Lo(15,"strong"),si(16,"Modelo: "),Uo(),si(17),Uo(),Lo(18,"p"),Lo(19,"strong"),si(20,"Serie:"),Uo(),si(21),Uo(),Bo(22,Pg,3,0,"p",15),Bo(23,Mg,17,9,"dl",16),Uo(),Lo(24,"div",17),Lo(25,"table"),Lo(26,"tbody"),Lo(27,"tr"),Lo(28,"th",18),Bo(29,Bg,3,0,"div",19),Bo(30,Vg,3,0,"div",20),Uo(),Uo(),Lo(31,"tr"),Lo(32,"th",18),Lo(33,"div",21),Bo(34,jg,7,1,"div",22),Uo(),Uo(),Uo(),Bo(35,Ng,5,1,"tr",23),Uo(),Uo(),Uo(),Uo(),Lo(36,"div",24),Bo(37,Ug,4,7,"button",25),Uo(),Uo(),Uo()),2&t){const t=Ko();ls(4),ii("\xa0",t.codeData.assigned_to," "),ls(5),ii("\xa0",t.codeData.location,""),ls(4),ii("\xa0",t.codeData.manufacturer,""),ls(4),ii("\xa0",t.codeData.model,""),ls(4),ii("\xa0",t.codeData.serial_number,""),ls(1),jo("ngIf",t.codeData.last_record.date),ls(1),jo("ngIf",t.codeData.last_record.date),ls(6),jo("ngIf",t.codeData.u_aut_salida_equipo),ls(1),jo("ngIf",!t.codeData.u_aut_salida_equipo),ls(4),jo("ngIf",t.exceptionCheck.check),ls(1),jo("ngIf",t.exception.value),ls(2),jo("ngForOf",t.buttons)}}let zg=(()=>{class t{constructor(t,e,n,r){this.document=t,this.auth=e,this._mnbtService=n,this.alert=r,this.onscan=jf,this.movements=[],this.observations=[],this.buttons=[],this.exception={},this.exceptionCheck={},this.isAuthenticated=this.auth.isAuthenticated()}ngOnInit(){this.getMovimientos(),this.initializeScan(),this.readyToScan()}initializeScan(){null==this.document.scannerDetectionData&&this.onscan.attachTo(this.document)}readyToScan(){this.document.addEventListener("scan",t=>Vf(this,void 0,void 0,function*(){this.alert.showLoading("Obteniendo informaci\xf3n, espere...");let e=yield t.detail.scanCode;this.serviceNow(yield e),this.alert.closeLoading()}))}getMovimientos(){if(void 0!==localStorage.movements){let t=localStorage.getItem("movements");this.movements=JSON.parse(t)}else this._mnbtService.getMovements().subscribe(t=>{this._mnbtService.setMovements(t.result.movimientos),this.movements=t.result.movimientos},t=>console.error(t))}getObservaciones(t){this.observations=[],this._mnbtService.getObservations(t).subscribe(e=>{if("all"===t)this.observations=e.result.observaciones;else for(const t of e.result.observaciones)this.observations.push(t)},t=>console.error(t))}serviceNow(t){this._mnbtService.getSerial(t.trim()).subscribe(t=>Vf(this,void 0,void 0,function*(){this.buttons=[],this.codeData=yield t.result,this.buttonsOptions(this.codeData)}),t=>{console.error(t),this.alert.showAlerts("Error: C\xf3digo Incorrecto","El c\xf3digo ingresado no es v\xe1lido","error"),this.buttons=[],this.exception="",this.codeData=void 0})}buttonsOptions(t){switch(t.last_record.type){case"entrada":if(t.u_aut_salida_equipo){for(const e of this.movements)this.buttons.push(e.value==t.last_record.type?{id:e.id,value:e.value,disabled:!0}:{id:e.id,value:e.value,disabled:!1});this.exceptionCheck={check:!0,value:t.last_record.type},this.getObservaciones(t.last_record.type)}else{for(const t of this.movements)this.buttons.push({id:t.id,value:t.value,disabled:!0});this.exceptionCheck={check:!0,value:"all"},this.getObservaciones("all")}break;case"salida":for(const e of this.movements)this.buttons.push(e.value==t.last_record.type?{id:e.id,value:e.value,disabled:!0}:{id:e.id,value:e.value,disabled:!1});this.exceptionCheck={check:!0,value:t.last_record.type},this.getObservaciones(t.last_record.type);break;default:for(const e of this.movements)this.buttons.push(t.u_aut_salida_equipo?{id:e.id,value:e.value,disabled:!1}:"entrada"!==e.value?{id:e.id,value:e.value,disabled:!0}:{id:e.id,value:e.value,disabled:!1});t.u_aut_salida_equipo?this.exceptionCheck={check:!1,value:""}:(this.exceptionCheck={check:!0,value:"salida"},this.getObservaciones("salida"))}}register(t){let e={id_equipo:this.codeData.id,id_Inmueble:JSON.parse(localStorage.getItem("user")).id_inmueble,observaciones:""!==this.exception.value?this.exception.value:"",movimiento:t,fechahoraRegistro:(new Date).getFullYear()+"-"+((new Date).getMonth()+1)+"-"+(new Date).getDate()+" "+(new Date).getHours()+":"+(new Date).getMinutes()+":"+(new Date).getSeconds()};this._mnbtService.sendRegister(e).subscribe(t=>{"success"==t.result.status?(this.alert.showAlerts("Registro Exitoso","","success"),this.buttons=[],this.exception="",this.codeData=void 0):(this.alert.showAlerts("Ocurri\xf3 un Error","Por favor intente nuevamente o comun\xedquese con el Administrador","error"),this.buttons=[],console.error(JSON.stringify(t)))})}addException(t){return Vf(this,void 0,void 0,function*(){let e=yield this.observations,n={};for(const t of e)n[t.id]=t.value;const{value:r}=yield Lf.a.fire({title:"Excepciones",input:"select",inputOptions:n,inputPlaceholder:"Selecciona la excepci\xf3n",showCancelButton:!0,confirmButtonColor:"#0c5d92"});if(r){for(const t of e)if(t.id==r){this.exception={value:t.value,type:t.type};break}let n=this.document.getElementById("btnsalida"),s=this.document.getElementById("btnentrada");switch(t){case"entrada":n.disabled=!0,s.disabled=!1;break;case"salida":n.disabled=!1,s.disabled=!0;break;case"all":this.document.getElementById(`btn${this.exception.type.toLowerCase()}`).disabled=!1}}else this.checkExcepcion.nativeElement.checked=!1})}checkException(t){if(t.target.checked)this.addException(t.target.value.toLowerCase());else{this.exception={};let e=this.document.getElementById("btnsalida"),n=this.document.getElementById("btnentrada");switch(t.target.value){case"entrada":case"salida":e.disabled=!e.disabled,n.disabled=!n.disabled;break;case"all":e.disabled=!0,n.disabled=!0}}}}return t.\u0275fac=function(e){return new(e||t)(Vo(Xl),Vo(Uf),Vo(Cg),Vo(Eg))},t.\u0275cmp=Ut({type:t,selectors:[["app-checking"]],viewQuery:function(t,e){if(1&t&&function(t,e,n){const r=Se();r.firstCreatePass&&Ja(r,new Ua(t,5,void 0),-1),Qa(r,ke(),5)}(Og),2&t){let t;Za(t=Ya())&&(e.checkExcepcion=t.first)}},decls:8,vars:3,consts:[[3,"isAuthenticated"],[1,"container"],[1,"justify-content-md-center"],[1,"col-md-auto"],[1,"team"],[1,"col-lg-12"],["class","memberNull d-flex align-items-center",4,"ngIf"],["class","member d-flex align-items-left",4,"ngIf"],[1,"memberNull","d-flex","align-items-center"],[1,"row"],[1,"member","d-flex","align-items-left"],[1,"member-info"],[1,"bi","bi-person-fill"],[1,"col-7"],[1,"bi","bi-geo-alt-fill"],["class","lastrecord",4,"ngIf"],["class","row lastrecord","style","padding-left: 20px;",4,"ngIf"],[1,"col-5","autorized"],[1,"thauth"],["class","alert alert-success","role","alert",4,"ngIf"],["class","alert alert-danger","role","alert",4,"ngIf"],[1,"callout"],["class","addexception",4,"ngIf"],[4,"ngIf"],[1,"buttons"],["type","button","class","btn btn-primary",3,"id","disabled","click",4,"ngFor","ngForOf"],[1,"lastrecord"],[1,"row","lastrecord",2,"padding-left","20px"],[1,"col-sm-3"],[1,"col-sm-9"],["class","col-sm-3 text-truncate",4,"ngIf"],["class","col-sm-9",4,"ngIf"],[1,"col-sm-3","text-truncate"],["role","alert",1,"alert","alert-success"],[1,"bi","bi-check-circle"],["role","alert",1,"alert","alert-danger"],[1,"bi","bi-x-circle"],[1,"addexception"],["type","checkbox",1,"form-check-input",3,"value","change"],["checkExcepcion",""],["for","checkException",1,"form-check-label","labelcheck"],[1,"bi","bi-exclamation-triangle"],[1,"text-end"],[1,"blockquote-footer","exception"],["type","button",1,"btn","btn-primary",3,"id","disabled","click"],[1,"bi",3,"ngClass"]],template:function(t,e){1&t&&(Ho(0,"app-header",0),Lo(1,"div",1),Lo(2,"div",2),Lo(3,"div",3),Lo(4,"section",4),Lo(5,"div",5),Bo(6,Fg,4,0,"div",6),Bo(7,Hg,38,12,"div",7),Uo(),Uo(),Uo(),Uo(),Uo()),2&t&&(jo("isAuthenticated",e.isAuthenticated),ls(6),jo("ngIf",!e.codeData),ls(1),jo("ngIf",e.codeData))},directives:[Tg,nc,tc,Ju],pipes:[ac],styles:['h5[_ngcontent-%COMP%]:after{display:block;height:2px;background-color:#035d92;content:" ";width:75%;margin:15px auto 18px}h5[_ngcontent-%COMP%]{padding-top:10px;text-align:center;font-weight:100;word-spacing:2px}.member[_ngcontent-%COMP%], .memberNull[_ngcontent-%COMP%]{position:relative;box-shadow:0 2px 15px rgba(0,0,0,.1);padding:30px;border-radius:5px;background:#fff;transition:.5s;flex-direction:column}.memberNull[_ngcontent-%COMP%]{display:flex}.member[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:600;margin-bottom:5px;color:#37517e;font-size:24px}.member[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;font-size:20px;padding-bottom:10px;position:relative;font-weight:500}.member[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:after{content:"";position:absolute;display:block;width:80%;height:1px;background:#cbd6e9;bottom:0;left:0}.team[_ngcontent-%COMP%] .member[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:10px 0 0;font-size:18px}.team[_ngcontent-%COMP%] .member[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{margin-top:20px;display:flex;align-items:center;justify-content:center}.autorized[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:nowrap;align-content:center;justify-content:flex-end}.alert[_ngcontent-%COMP%]{font-size:1.8rem}.btn[_ngcontent-%COMP%]{margin:0 25px!important}.lastrecord[_ngcontent-%COMP%]{font-family:Consolas,monospace}.container[_ngcontent-%COMP%]{padding-bottom:150px;padding-top:20px}.btn-primary[_ngcontent-%COMP%]{color:#fff;border:none;background-color:#0c5d92;font-weight:300}.btn-primary[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin:5px!important}.btn-warning[_ngcontent-%COMP%]{color:#fff;border:none;background-color:#e27208;font-weight:300}.btn-warning[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin:5px!important}.swal2-radio[_ngcontent-%COMP%]{display:contents!important}.thauth[_ngcontent-%COMP%]{font-weight:400}.addexception[_ngcontent-%COMP%]{display:flex;align-items:flex-end;justify-content:flex-end}.form-check-input[_ngcontent-%COMP%]:checked{background-color:#fd7e14!important;border-color:#f8d7da!important}.labelcheck[_ngcontent-%COMP%]{color:#fd7e14;font-size:20px!important;font-weight:600}.exception[_ngcontent-%COMP%]{color:#756354;padding-top:20px}.form-check-input[_ngcontent-%COMP%]{width:1.5em!important;height:1.5em!important;border:1px solid #ff7300}.btn.disabled[_ngcontent-%COMP%], .btn[_ngcontent-%COMP%]:disabled, fieldset[_ngcontent-%COMP%]:disabled .btn[_ngcontent-%COMP%]{opacity:.35!important;cursor:not-allowed}']}),t})();function $g(t,e){return new y(n=>{const r=t.length;if(0===r)return void n.complete();const s=new Array(r);let o=0,i=0;for(let a=0;a{u||(u=!0,i++),s[a]=t},error:t=>n.error(t),complete:()=>{o++,o!==r&&u||(i===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}let qg=(()=>{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)(Vo(Mi),Vo(Pi))},t.\u0275dir=Gt({type:t}),t})(),Wg=(()=>{class t extends qg{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Vn(t)))(n||t)}}(),t.\u0275dir=Gt({type:t,features:[_o]}),t})();const Gg=new Hn("NgValueAccessor"),Zg={provide:Gg,useExisting:rt(()=>Yg),multi:!0},Kg=new Hn("CompositionEventMode");let Yg=(()=>{class t extends qg{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Jl()?Jl().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)(Vo(Mi),Vo(Pi),Vo(Kg,8))},t.\u0275dir=Gt({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&&Wo("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:[Ei([Zg]),_o]}),t})();function Qg(t){return null==t||0===t.length}function Jg(t){return null!=t&&"number"==typeof t.length}const Xg=new Hn("NgValidators"),tm=new Hn("NgAsyncValidators"),em=/^(?=.{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 nm{static min(t){return function(t){return e=>{if(Qg(e.value)||Qg(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(Qg(e.value)||Qg(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 function(t){return Qg(t.value)?{required:!0}:null}(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return Qg(t.value)||em.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>Qg(e.value)||!Jg(e.value)?null:e.value.length{if(Qg(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return cm(t)}static composeAsync(t){return dm(t)}}function rm(t){return e=>Jg(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function sm(t){return null}function om(t){return null!=t}function im(t){const e=$o(t)?B(t):t;return qo(e),e}function am(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 lm(t,e){return e.map(e=>e(t))}function um(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function cm(t){if(!t)return null;const e=t.filter(om);return 0==e.length?null:function(t){return am(lm(t,e))}}function hm(t){return null!=t?cm(um(t)):null}function dm(t){if(!t)return null;const e=t.filter(om);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return $g(e,null);if(u(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return $g(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return $g(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(A(t=>e(...t)))}return $g(t,null)}(lm(t,e).map(im)).pipe(A(am))}}function pm(t){return null!=t?dm(um(t)):null}function fm(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function gm(t){return t._rawValidators}function mm(t){return t._rawAsyncValidators}let wm=(()=>{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=hm(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=pm(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=Gt({type:t}),t})(),ym=(()=>{class t extends wm{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Vn(t)))(n||t)}}(),t.\u0275dir=Gt({type:t,features:[_o]}),t})();class bm extends wm{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class vm{constructor(t){this._cd=t}is(t){var e,n;return!!(null===(n=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===n?void 0:n[t])}}let _m=(()=>{class t extends vm{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Vo(bm,2))},t.\u0275dir=Gt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Xo("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:[_o]}),t})(),Cm=(()=>{class t extends vm{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Vo(ym,10))},t.\u0275dir=Gt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&Xo("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:[_o]}),t})();function Dm(t,e){Am(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&&Sm(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&&Sm(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 xm(t,e,n=!0){const r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),km(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Em(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Am(t,e){const n=gm(t);null!==e.validator?t.setValidators(fm(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const r=mm(t);null!==e.asyncValidator?t.setAsyncValidators(fm(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const s=()=>t.updateValueAndValidity();Em(e._rawValidators,s),Em(e._rawAsyncValidators,s)}function km(t,e){let n=!1;if(null!==t){if(null!==e.validator){const r=gm(t);if(Array.isArray(r)&&r.length>0){const s=r.filter(t=>t!==e.validator);s.length!==r.length&&(n=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const r=mm(t);if(Array.isArray(r)&&r.length>0){const s=r.filter(t=>t!==e.asyncValidator);s.length!==r.length&&(n=!0,t.setAsyncValidators(s))}}}const r=()=>{};return Em(e._rawValidators,r),Em(e._rawAsyncValidators,r),n}function Sm(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Tm(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Om="VALID",Fm="INVALID",Pm="PENDING",Im="DISABLED";function Rm(t){return(jm(t)?t.validators:t)||null}function Mm(t){return Array.isArray(t)?hm(t):t||null}function Bm(t,e){return(jm(e)?e.asyncValidators:t)||null}function Vm(t){return Array.isArray(t)?pm(t):t||null}function jm(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Nm{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=Mm(this._rawValidators),this._composedAsyncValidatorFn=Vm(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===Om}get invalid(){return this.status===Fm}get pending(){return this.status==Pm}get disabled(){return this.status===Im}get enabled(){return this.status!==Im}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=Mm(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Vm(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=Pm,!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=Im,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=Om,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!==Om&&this.status!==Pm||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()?Im:Om}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Pm,this._hasOwnPendingAsyncValidator=!0;const e=im(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 r=t;return e.forEach(t=>{r=r instanceof Um?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof Hm&&r.at(t)||null}),r}(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 Ba,this.statusChanges=new Ba}_calculateStatus(){return this._allControlsDisabled()?Im:this.errors?Fm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Pm)?Pm:this._anyControlsHaveStatus(Fm)?Fm:Om}_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){jm(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Lm extends Nm{constructor(t=null,e,n){super(Rm(e),Bm(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){Tm(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Tm(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 Um extends Nm{constructor(t,e,n){super(Rm(e),Bm(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,r)=>{n.reset(t[r],{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 Lm?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,r)=>{n=e(n,t,r)}),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 Hm extends Nm{constructor(t,e,n){super(Rm(e),Bm(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,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Lm?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)}}let zm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),$m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({}),t})();const qm=new Hn("NgModelWithFormControlWarning"),Wm={provide:ym,useExisting:rt(()=>Gm)};let Gm=(()=>{class t extends ym{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 Ba,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&&(km(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 Dm(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){xm(t.control||null,t,!1),Tm(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,e=this.directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}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&&(xm(e||null,t),n instanceof Lm&&(Dm(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);(function(t,e){Am(t,e)})(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return km(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Am(this.form,this),this._oldForm&&km(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(Vo(Xg,10),Vo(tm,10))},t.\u0275dir=Gt({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&Wo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ei([Wm]),_o,ae]}),t})();const Zm={provide:bm,useExisting:rt(()=>Km)};let Km=(()=>{class t extends bm{constructor(t,e,n,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new Ba,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;let n,r,s;return Array.isArray(e),e.forEach(t=>{t.constructor===Yg?n=t:Object.getPrototypeOf(t.constructor)===Wg?r=t:s=t}),s||r||n||null}(0,r)}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 t=null==this.name?this.name:this.name.toString(),[...this._parent.path,t];var t}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)(Vo(ym,13),Vo(Xg,10),Vo(tm,10),Vo(Gg,10),Vo(qm,8))},t.\u0275dir=Gt({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ei([Zm]),_o,ae]}),t._ngModelWarningSentOnce=!1,t})();const Ym={provide:Xg,useExisting:rt(()=>Qm),multi:!0};let Qm=(()=>{class t{constructor(){this._validator=sm}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=rm("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Ro("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Ei([Ym]),ae]}),t})(),Jm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({imports:[[$m]]}),t})(),Xm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({imports:[Jm]}),t})(),tw=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:qm,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({imports:[Jm]}),t})(),ew=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let r,s=null,o=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,o=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new Um(n,{asyncValidators:o,updateOn:r,validators:s})}control(t,e,n){return new Lm(t,e,n)}array(t,e,n){const r=t.map(t=>this._createControl(t));return new Hm(r,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof Lm||t instanceof Um||t instanceof Hm?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=ct({factory:function(){return new t},token:t,providedIn:tw}),t})();function nw(t,e){1&t&&(Lo(0,"small",16),si(1," Por favor ingresa tu nombre de usuario. "),Uo())}function rw(t,e){1&t&&(Lo(0,"small",16),si(1," Por favor ingresa tu contrase\xf1a. "),Uo())}function sw(t,e){1&t&&(Lo(0,"span"),si(1,"Iniciar Sesi\xf3n"),Uo())}function ow(t,e){1&t&&(Lo(0,"span"),si(1," Espere..."),Uo())}const iw=function(t,e){return{disable:t,enable:e}};let aw=(()=>{class t{constructor(t,e,n,r,s){this.formBuilder=t,this.auth=e,this.router=n,this._mnbtserviceNow=r,this.alert=s,this.loginForm=new Um({}),this.loading=!1,this.isAuthenticated=!1,this.createLoginForm()}createLoginForm(){this.loginForm=this.formBuilder.group({user:["",nm.required],password:["",nm.required]}),this.loginForm.reset()}get usernameValid(){return this.loginForm.get("user").invalid&&this.loginForm.get("user").touched}get passwordValid(){return this.loginForm.get("password").invalid&&this.loginForm.get("password").touched}submitLogin(){if(this.alert.showLoading("Espere por favor..."),this.loginForm.invalid)return Object.values(this.loginForm.controls).forEach(t=>{t.markAsTouched(),this.alert.closeLoading()});this.loading=!0,this._mnbtserviceNow.login(this.loginForm.value).subscribe(t=>{this.alert.closeLoading(),this.loading=!1,this.loginForm.reset(),this.correctLogin(t.result)},t=>{console.error(t),this.loading=!1,this.alert.showAlerts("Error al autenticar",t.error.error.message,"error"),this.loginForm.reset()})}correctLogin(t){this.auth.setCurrentSession(t),this.router.navigate(["/home"])}}return t.\u0275fac=function(e){return new(e||t)(Vo(ew),Vo(Uf),Vo(pf),Vo(Cg),Vo(Eg))},t.\u0275cmp=Ut({type:t,selectors:[["app-login"]],decls:22,vars:15,consts:[[3,"isAuthenticated"],[1,"container"],[1,"justify-content-md-center"],[1,"row","padding"],[1,"container",3,"formGroup"],[1,"form-row"],[1,"input-group","mb-3"],[1,"input-group-text"],[1,"bi","bi-person-fill"],["id","user","type","text","placeholder","Usuario","maxlength","20","formControlName","user","autocomplete","off",1,"form-control"],["class","invalid-feedback",4,"ngIf"],[1,"bi","bi-lock-fill"],["id","password","type","password","maxlength","20","placeholder","Contrase\xf1a","formControlName","password","autocomplete","off",1,"form-control"],[1,"d-grid","gap-2","col-6","mx-auto",3,"ngClass"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[4,"ngIf"],[1,"invalid-feedback"]],template:function(t,e){1&t&&(Ho(0,"app-header",0),Lo(1,"div",1),Lo(2,"div",2),Lo(3,"div",3),Lo(4,"h2"),si(5,"Ingrese sus datos de acceso"),Uo(),Uo(),Lo(6,"form",4),Lo(7,"div",5),Lo(8,"div",6),Lo(9,"span",7),Ho(10,"i",8),Uo(),Ho(11,"input",9),Bo(12,nw,2,0,"small",10),Uo(),Lo(13,"div",6),Lo(14,"span",7),Ho(15,"i",11),Uo(),Ho(16,"input",12),Bo(17,rw,2,0,"small",10),Uo(),Uo(),Lo(18,"div",13),Lo(19,"button",14),Wo("click",function(){return e.submitLogin()}),Bo(20,sw,2,0,"span",15),Bo(21,ow,2,0,"span",15),Uo(),Uo(),Uo(),Uo(),Uo()),2&t&&(jo("isAuthenticated",e.isAuthenticated),ls(6),jo("formGroup",e.loginForm),ls(5),Xo("is-invalid",e.usernameValid),ls(1),jo("ngIf",e.usernameValid),ls(4),Xo("is-invalid",e.passwordValid),ls(1),jo("ngIf",e.passwordValid),ls(1),jo("ngClass",Fa(12,iw,e.loginForm.invalid,e.loginForm.valid)),ls(1),jo("disabled",e.loginForm.invalid||e.loading),ls(1),jo("ngIf",!e.loading),ls(1),jo("ngIf",e.loading))},directives:[Tg,zm,Cm,Gm,Yg,Qm,_m,Km,nc,Ju],styles:['.disable[_ngcontent-%COMP%]{cursor:not-allowed}.enable[_ngcontent-%COMP%]{cursor:pointer}form[_ngcontent-%COMP%]{width:50%}h2[_ngcontent-%COMP%]:after{display:block;height:2px;background-color:#035d92;content:" ";width:70%;margin:15px auto 18px}h2[_ngcontent-%COMP%]{text-align:center;font-weight:100;word-spacing:2px}.padding[_ngcontent-%COMP%]{padding-top:30px}small[_ngcontent-%COMP%]{padding-left:40px}#password[_ngcontent-%COMP%]::placeholder, #username[_ngcontent-%COMP%]::placeholder, .selectSede[_ngcontent-%COMP%]{color:#b6b7b8}.btn.disabled[_ngcontent-%COMP%], .btn[_ngcontent-%COMP%]:disabled, fieldset[_ngcontent-%COMP%]:disabled .btn[_ngcontent-%COMP%]{opacity:.35!important;cursor:not-allowed}.btn-primary[_ngcontent-%COMP%]{color:#fff;background-color:#0c5d92;border-color:#002742}.container[_ngcontent-%COMP%]{padding-bottom:30px}']}),t})();const lw=[{path:"home",component:zg,canActivate:[(()=>{class t{constructor(t,e){this.router=t,this.auth=e}canActivate(){return!!this.auth.isAuthenticated()||(console.info("Guard: Usuario NO Autenticado"),this.router.navigate(["/login"]),!1)}}return t.\u0275fac=function(e){return new(e||t)(or(pf),or(Uf))},t.\u0275prov=ct({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()]},{path:"login",component:aw,canActivate:[(()=>{class t{constructor(t,e){this.router=t,this.auth=e}canActivate(){return!this.auth.isAuthenticated()||(this.router.navigate(["/home"]),console.info("Guard: Usuario Autenticado"),!1)}}return t.\u0275fac=function(e){return new(e||t)(or(pf),or(Uf))},t.\u0275prov=ct({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()]},{path:"",redirectTo:"/login",pathMatch:"full"},{path:"**",redirectTo:"/login"}];let uw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({imports:[[Sf.forRoot(lw)],Sf]}),t})();var cw,hw,dw,pw=n("2Yyj");cw=n.n(pw).a,dw=void 0,"string"!=typeof(hw="es")&&(dw=hw,hw=cw[fi.LocaleId]),hw=hw.toLowerCase().replace(/_/g,"-"),hi[hw]=cw,dw&&(hi[hw][fi.ExtraData]=dw);let fw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t,bootstrap:[Eg]}),t.\u0275inj=ht({providers:[ac,lc,{provide:ul,useValue:"es"},Tg],imports:[[zc,uw,bg,Xm,tw]]}),t})();(function(){if(Rl)throw new Error("Cannot enable prod mode after platform setup.");Il=!1})(),Uc().bootstrapModule(fw).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);