(()=>{"use strict";var e,p={},_={};function n(e){var a=_[e];if(void 0!==a)return a.exports;var r=_[e]={exports:{}};return p[e](r,r.exports,n),r.exports}n.m=p,e=[],n.O=(a,r,u,l)=>{if(!r){var c=1/0;for(f=0;f<e.length;f++){for(var[r,u,l]=e[f],o=!0,t=0;t<r.length;t++)(!1&l||c>=l)&&Object.keys(n.O).every(h=>n.O[h](r[t]))?r.splice(t--,1):(o=!1,l<c&&(c=l));if(o){e.splice(f--,1);var s=u();void 0!==s&&(a=s)}}return a}l=l||0;for(var f=e.length;f>0&&e[f-1][2]>l;f--)e[f]=e[f-1];e[f]=[r,u,l]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={666:0};n.O.j=u=>0===e[u];var a=(u,l)=>{var t,s,[f,c,o]=l,v=0;if(f.some(d=>0!==e[d])){for(t in c)n.o(c,t)&&(n.m[t]=c[t]);if(o)var b=o(n)}for(u&&u(l);v<f.length;v++)n.o(e,s=f[v])&&e[s]&&e[s][0](),e[s]=0;return n.O(b)},r=self.webpackChunkappfaas=self.webpackChunkappfaas||[];r.forEach(a.bind(null,0)),r.push=a.bind(null,r.push.bind(r))})()})();
(self.webpackChunkappfaas=self.webpackChunkappfaas||[]).push([[429],{435:(X,ve,Ne)=>{"use strict";Ne(583),Ne(757)},757:()=>{!function(X,ve){"use strict";function Ne(){var n=ze.splice(0,ze.length);for(y=0;n.length;)n.shift().call(null,n.shift())}function Ve(n,s){for(var u=0,f=n.length;u<f;u++)Ze(n[u],s)}function xe(n){return function(s){ye(s)&&(Ze(s,n),c.length&&Ve(s.querySelectorAll(c),n))}}function Ue(n){var s=P.call(n,"is"),u=n.nodeName.toUpperCase(),f=l.call(e,s?at+s.toUpperCase():De+u);return s&&-1<f&&!Je(u,s)?-1:f}function Je(n,s){return-1<c.indexOf(n+'[is="'+s+'"]')}function Qe(n){var s=n.currentTarget,u=n.attrChange,f=n.attrName,T=n.target,C=n[Ke]||2,w=n[it]||3;!Pe||T&&T!==s||!s[He]||"style"===f||n.prevValue===n.newValue&&(""!==n.newValue||u!==C&&u!==w)||s[He](f,u===C?null:n.prevValue,u===w?null:n.newValue)}function Oe(n){var s=xe(n);return function(u){ze.push(s,u.target),y&&clearTimeout(y),y=setTimeout(Ne,1)}}function Me(n){te&&(te=!1,n.currentTarget.removeEventListener(_t,Me)),c.length&&Ve((n.target||B).querySelectorAll(c),n.detail===we?we:Ae),ee&&function z(){for(var n,s=0,u=ne.length;s<u;s++)i.contains(n=ne[s])||(u--,ne.splice(s--,1),Ze(n,we))}()}function Ge(n,s){var u=this;d.call(u,n,s),ot.call(u,{target:u})}function et(n,s,u){var f=s.apply(n,u),T=Ue(f);return-1<T&&be(f,r[T]),u.pop()&&c.length&&function ft(n){for(var s,u=0,f=n.length;u<f;u++)be(s=n[u],r[Ue(s)])}(f.querySelectorAll(c)),f}function We(n,s){R(n,s),je?je.observe(n,L):(Q&&(n.setAttribute=Ge,n[Se]=ke(n),n[pe](ct,ot)),n[pe](Ie,Qe)),n[$e]&&Pe&&(n.created=!0,n[$e](),n.created=!1)}function qe(n){throw new Error("A "+n+" type is already registered")}function Ze(n,s){var u,f,T=Ue(n);-1<T&&!t.call(n,"TEMPLATE")&&(st(n,r[T]),T=0,s!==Ae||n[Ae]?s!==we||n[we]||(n[Ae]=!1,n[we]=!0,f="disconnected",T=1):(n[we]=!1,n[Ae]=!0,f="connected",T=1,ee&&l.call(ne,n)<0&&ne.push(n)),T&&(u=n[s+de]||n[f+de])&&u.call(n))}function le(){}function ht(n,s,u){var f=u&&u[Be]||"",T=s.prototype,C=x(T),w=s.observedAttributes||H,ae={prototype:C};ge(C,$e,{value:function(){if(ce)ce=!1;else if(!this[he]){this[he]=!0,new s(this),T[$e]&&T[$e].call(this);var j=q[J.get(s)];(!N||j.create.length>1)&&lt(this)}}}),ge(C,He,{value:function(j){-1<l.call(w,j)&&T[He]&&T[He].apply(this,arguments)}}),T[Tt]&&ge(C,Et,{value:T[Tt]}),T[ut]&&ge(C,gt,{value:T[ut]}),f&&(ae[Be]=f),n=n.toUpperCase(),q[n]={constructor:s,create:f?[f,_(n)]:[n]},J.set(s,n),B[Fe](n.toLowerCase(),ae),nt(n),p[n].r()}function tt(n){var s=q[n.toUpperCase()];return s&&s.constructor}function dt(n){return"string"==typeof n?n:n&&n.is||""}function lt(n){for(var s,u=n[He],f=u?n.attributes:H,T=f.length;T--;)u.call(n,(s=f[T]).name||s.nodeName,null,s.value||s.nodeValue)}function nt(n){return(n=n.toUpperCase())in p||(p[n]={},p[n].p=new K(function(s){p[n].r=s})),p[n].p}function Xe(){$&&delete X.customElements,O(X,"customElements",{configurable:!0,value:new le}),O(X,"CustomElementRegistry",{configurable:!0,value:le});for(var n=rt.get(/^HTML[A-Z]*[a-z]/),s=n.length;s--;function(u){var f=X[u];if(f){X[u]=function(T){var C,w;return T||(T=this),T[he]||(ce=!0,C=q[J.get(T.constructor)],(T=(w=N&&1===C.create.length)?Reflect.construct(f,H,C.constructor):B.createElement.apply(B,C.create))[he]=!0,ce=!1,w||lt(T)),T},X[u].prototype=f.prototype;try{f.prototype.constructor=X[u]}catch{O(f,he,{value:X[u]})}}}(n[s]));B.createElement=function(u,f){var T=dt(f);return T?E.call(this,u,_(T)):E.call(this,u)},A||(I=!0,B[Fe](""))}var B=X.document,_e=X.Object,rt=function(n){var s,u,f,T,C=/^[A-Z]+[a-z]/,ae=function(fe,oe){(oe=oe.toLowerCase())in j||(j[fe]=(j[fe]||[]).concat(oe),j[oe]=j[oe.toUpperCase()]=fe)},j=(_e.create||_e)(null),se={};for(u in n)for(T in n[u])for(j[T]=f=n[u][T],s=0;s<f.length;s++)j[f[s].toLowerCase()]=j[f[s].toUpperCase()]=T;return se.get=function(fe){return"string"==typeof fe?j[fe]||(C.test(fe)?[]:""):function(fe){var oe,ie=[];for(oe in j)fe.test(oe)&&ie.push(oe);return ie}(fe)},se.set=function(fe,oe){return C.test(fe)?ae(fe,oe):ae(oe,fe),se},se}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof ve&&(ve={type:ve||"auto"});var ze,ot,Ye,ke,je,Le,st,be,Re,n,s,u,f,T,Fe="registerElement",mt=1e5*X.Math.random()>>0,Se="__"+Fe+mt,pe="addEventListener",Ae="attached",de="Callback",we="detached",Be="extends",He="attributeChanged"+de,Et=Ae+de,Tt="connected"+de,ut="disconnected"+de,$e="created"+de,gt=we+de,Ke="ADDITION",it="REMOVAL",Ie="DOMAttrModified",_t="DOMContentLoaded",ct="DOMSubtreeModified",De="<",at="=",yt=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,vt=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],e=[],r=[],c="",i=B.documentElement,l=e.indexOf||function(n){for(var s=this.length;s--&&this[s]!==n;);return s},h=_e.prototype,v=h.hasOwnProperty,g=h.isPrototypeOf,O=_e.defineProperty,H=[],M=_e.getOwnPropertyDescriptor,W=_e.getOwnPropertyNames,F=_e.getPrototypeOf,V=_e.setPrototypeOf,re=!!_e.__proto__,he="__dreCEv1",$=X.customElements,N=!/^force/.test(ve.type)&&!!($&&$.define&&$.get&&$.whenDefined),k=_e.create||_e,Ee=X.Map||function(){var n,s=[],u=[];return{get:function(f){return u[l.call(s,f)]},set:function(f,T){(n=l.call(s,f))<0?u[s.push(f)-1]=T:u[n]=T}}},K=X.Promise||function(n){function s(C){for(f=!0;u.length;)u.shift()(C)}var u=[],f=!1,T={catch:function(){return T},then:function(C){return u.push(C),f&&setTimeout(s,1),T}};return n(s),T},ce=!1,q=k(null),p=k(null),J=new Ee,_=function(n){return n.toLowerCase()},x=_e.create||function n(s){return s?(n.prototype=s,new n):this},R=V||(re?function(n,s){return n.__proto__=s,n}:W&&M?function(){function n(s,u){for(var f,T=W(u),C=0,w=T.length;C<w;C++)v.call(s,f=T[C])||O(s,f,M(u,f))}return function(s,u){do{n(s,u)}while((u=F(u))&&!g.call(u,s));return s}}():function(n,s){for(var u in s)n[u]=s[u];return n}),ue=X.MutationObserver||X.WebKitMutationObserver,Ce=X.HTMLAnchorElement,U=(X.HTMLElement||X.Element||X.Node).prototype,ee=!g.call(U,i),ge=ee?function(n,s,u){return n[s]=u.value,n}:O,ye=ee?function(n){return 1===n.nodeType}:function(n){return g.call(U,n)},ne=ee&&[],G=U.attachShadow,b=U.cloneNode,t=U.closest||function(n){for(var s=this;s&&s.nodeName!==n;)s=s.parentNode;return s},o=U.dispatchEvent,P=U.getAttribute,S=U.hasAttribute,me=U.removeAttribute,d=U.setAttribute,m=B.createElement,a=B.importNode,E=m,L=ue&&{attributes:!0,characterData:!0,attributeOldValue:!0},D=ue||function(n){Q=!1,i.removeEventListener(Ie,D)},y=0,A=Fe in B&&!/^force-all/.test(ve.type),Z=!0,I=!1,Q=!0,te=!0,Pe=!0;if(ue&&((Re=B.createElement("div")).innerHTML="<div><div></div></div>",new ue(function(n,s){if(n[0]&&"childList"==n[0].type&&!n[0].removedNodes[0].childNodes.length){var u=(Re=M(U,"innerHTML"))&&Re.set;u&&O(U,"innerHTML",{set:function(f){for(;this.lastChild;)this.removeChild(this.lastChild);u.call(this,f)}})}s.disconnect(),Re=null}).observe(Re,{childList:!0,subtree:!0}),Re.innerHTML=""),A||(V||re?(st=function(n,s){g.call(s,n)||We(n,s)},be=We):(st=function(n,s){n[Se]||(n[Se]=_e(!0),We(n,s))},be=st),ee?(Q=!1,n=M(U,pe),s=n.value,u=function(C){var w=new CustomEvent(Ie,{bubbles:!0});w.attrName=C,w.prevValue=P.call(this,C),w.newValue=null,w[it]=w.attrChange=2,me.call(this,C),o.call(this,w)},f=function(C,w){var ae=S.call(this,C),j=ae&&P.call(this,C),se=new CustomEvent(Ie,{bubbles:!0});d.call(this,C,w),se.attrName=C,se.prevValue=ae?j:null,se.newValue=w,ae?se.MODIFICATION=se.attrChange=1:se[Ke]=se.attrChange=0,o.call(this,se)},T=function(C){var w,ae=C.currentTarget,j=ae[Se],se=C.propertyName;j.hasOwnProperty(se)&&(j=j[se],(w=new CustomEvent(Ie,{bubbles:!0})).attrName=j.name,w.prevValue=j.value||null,w.newValue=j.value=ae[se]||null,null==w.prevValue?w[Ke]=w.attrChange=0:w.MODIFICATION=w.attrChange=1,o.call(ae,w))},n.value=function(C,w,ae){C===Ie&&this[He]&&this.setAttribute!==f&&(this[Se]={className:{name:"class",value:this.className}},this.setAttribute=f,this.removeAttribute=u,s.call(this,"propertychange",T)),s.call(this,C,w,ae)},O(U,pe,n)):ue||(i[pe](Ie,D),i.setAttribute(Se,1),i.removeAttribute(Se),Q&&(ot=function(n){var s,u,f,T=this;if(T===n.target){for(f in s=T[Se],T[Se]=u=ke(T),u){if(!(f in s))return Ye(0,T,f,s[f],u[f],Ke);if(u[f]!==s[f])return Ye(1,T,f,s[f],u[f],"MODIFICATION")}for(f in s)if(!(f in u))return Ye(2,T,f,s[f],u[f],it)}},Ye=function(n,s,u,f,T,C){var w={attrChange:n,currentTarget:s,attrName:u,prevValue:f,newValue:T};w[C]=n,Qe(w)},ke=function(n){for(var s,u,f={},T=n.attributes,C=0,w=T.length;C<w;C++)"setAttribute"!==(u=(s=T[C]).name)&&(f[u]=s.value);return f})),B[Fe]=function(n,s){if(u=n.toUpperCase(),Z&&(Z=!1,ue?(je=function(j,se){function fe(oe,ie){for(var Te=0,pt=oe.length;Te<pt;ie(oe[Te++]));}return new ue(function(oe){for(var ie,Te,pt,kt=0,bt=oe.length;kt<bt;kt++)"childList"===(ie=oe[kt]).type?(fe(ie.addedNodes,j),fe(ie.removedNodes,se)):(Te=ie.target,Pe&&Te[He]&&"style"!==ie.attributeName&&(pt=P.call(Te,ie.attributeName))!==ie.oldValue&&Te[He](ie.attributeName,ie.oldValue,pt))})}(xe(Ae),xe(we)),(Le=function(j){return je.observe(j,{childList:!0,subtree:!0}),j})(B),G&&(U.attachShadow=function(){return Le(G.apply(this,arguments))})):(ze=[],B[pe]("DOMNodeInserted",Oe(Ae)),B[pe]("DOMNodeRemoved",Oe(we))),B[pe](_t,Me),B[pe]("readystatechange",Me),B.importNode=function(j,se){switch(j.nodeType){case 1:return et(B,a,[j,!!se]);case 11:for(var fe=B.createDocumentFragment(),oe=j.childNodes,ie=oe.length,Te=0;Te<ie;Te++)fe.appendChild(B.importNode(oe[Te],!!se));return fe;default:return b.call(j,!!se)}},U.cloneNode=function(j){return et(this,b,[!!j])}),I)return I=!1;if(-2<l.call(e,at+u)+l.call(e,De+u)&&qe(n),!yt.test(u)||-1<l.call(vt,u))throw new Error("The type "+n+" is invalid");var u,f,T=function(){return w?B.createElement(ae,u):B.createElement(ae)},C=s||h,w=v.call(C,Be),ae=w?s[Be].toUpperCase():u;return w&&-1<l.call(e,De+ae)&&qe(ae),f=e.push((w?at:De)+u)-1,c=c.concat(c.length?",":"",w?ae+'[is="'+n.toLowerCase()+'"]':ae),T.prototype=r[f]=v.call(C,"prototype")?C.prototype:x(U),c.length&&Ve(B.querySelectorAll(c),Ae),T},B.createElement=E=function(n,s){var u=dt(s),f=u?m.call(B,n,_(u)):m.call(B,n),T=""+n,C=l.call(e,(u?at:De)+(u||T).toUpperCase()),w=-1<C;return u&&(f.setAttribute("is",u=u.toLowerCase()),w&&(w=Je(T.toUpperCase(),u))),Pe=!B.createElement.innerHTMLHelper,w&&be(f,r[C]),f}),addEventListener("beforeunload",function(){delete B.createElement,delete B.importNode,delete B[Fe]},!1),le.prototype={constructor:le,define:N?function(n,s,u){if(u)ht(n,s,u);else{var f=n.toUpperCase();q[f]={constructor:s,create:[f]},J.set(s,f),$.define(n,s)}}:ht,get:N?function(n){return $.get(n)||tt(n)}:tt,whenDefined:N?function(n){return K.race([$.whenDefined(n),nt(n)])}:nt},!$||/^force/.test(ve.type))Xe();else if(!ve.noBuiltIn)try{!function(n,s,u){var f=new RegExp("^<a\\s+is=('|\")"+u+"\\1></a>$");if(s[Be]="a",(n.prototype=x(Ce.prototype)).constructor=n,X.customElements.define(u,n,s),!f.test(B.createElement("a",{is:u}).outerHTML)||!f.test((new n).outerHTML))throw s}(function n(){return Reflect.construct(Ce,[],n)},{},"document-register-element-a"+mt)}catch{Xe()}if(!ve.noBuiltIn)try{if(m.call(B,"a","a").outerHTML.indexOf("is")<0)throw{}}catch{_=function(s){return{is:s.toLowerCase()}}}}(window)},583:()=>{"use strict";!function(e){const r=e.performance;function c(G){r&&r.mark&&r.mark(G)}function i(G,b){r&&r.measure&&r.measure(G,b)}c("Zone");const l=e.__Zone_symbol_prefix||"__zone_symbol__";function h(G){return l+G}const v=!0===e[h("forceDuplicateZoneCheck")];if(e.Zone){if(v||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let g=(()=>{class G{constructor(t,o){this._parent=t,this._name=o?o.name||"unnamed":"<root>",this._properties=o&&o.properties||{},this._zoneDelegate=new H(this,this._parent&&this._parent._zoneDelegate,o)}static assertZonePatched(){if(e.Promise!==Ce.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=G.current;for(;t.parent;)t=t.parent;return t}static get current(){return ee.zone}static get currentTask(){return ge}static __load_patch(t,o,P=!1){if(Ce.hasOwnProperty(t)){if(!P&&v)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const S="Zone:"+t;c(S),Ce[t]=o(e,G,U),i(S,S)}}get parent(){return this._parent}get name(){return this._name}get(t){const o=this.getZoneWith(t);if(o)return o._properties[t]}getZoneWith(t){let o=this;for(;o;){if(o._properties.hasOwnProperty(t))return o;o=o._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,o){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const P=this._zoneDelegate.intercept(this,t,o),S=this;return function(){return S.runGuarded(P,this,arguments,o)}}run(t,o,P,S){ee={parent:ee,zone:this};try{return this._zoneDelegate.invoke(this,t,o,P,S)}finally{ee=ee.parent}}runGuarded(t,o=null,P,S){ee={parent:ee,zone:this};try{try{return this._zoneDelegate.invoke(this,t,o,P,S)}catch(me){if(this._zoneDelegate.handleError(this,me))throw me}}finally{ee=ee.parent}}runTask(t,o,P){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||Ee).name+"; Execution: "+this.name+")");if(t.state===K&&(t.type===ue||t.type===R))return;const S=t.state!=p;S&&t._transitionTo(p,q),t.runCount++;const me=ge;ge=t,ee={parent:ee,zone:this};try{t.type==R&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,o,P)}catch(d){if(this._zoneDelegate.handleError(this,d))throw d}}finally{t.state!==K&&t.state!==_&&(t.type==ue||t.data&&t.data.isPeriodic?S&&t._transitionTo(q,p):(t.runCount=0,this._updateTaskCount(t,-1),S&&t._transitionTo(K,p,K))),ee=ee.parent,ge=me}}scheduleTask(t){if(t.zone&&t.zone!==this){let P=this;for(;P;){if(P===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);P=P.parent}}t._transitionTo(ce,K);const o=[];t._zoneDelegates=o,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(P){throw t._transitionTo(_,ce,K),this._zoneDelegate.handleError(this,P),P}return t._zoneDelegates===o&&this._updateTaskCount(t,1),t.state==ce&&t._transitionTo(q,ce),t}scheduleMicroTask(t,o,P,S){return this.scheduleTask(new M(x,t,o,P,S,void 0))}scheduleMacroTask(t,o,P,S,me){return this.scheduleTask(new M(R,t,o,P,S,me))}scheduleEventTask(t,o,P,S,me){return this.scheduleTask(new M(ue,t,o,P,S,me))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||Ee).name+"; Execution: "+this.name+")");t._transitionTo(J,q,p);try{this._zoneDelegate.cancelTask(this,t)}catch(o){throw t._transitionTo(_,J),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(t,-1),t._transitionTo(K,J),t.runCount=0,t}_updateTaskCount(t,o){const P=t._zoneDelegates;-1==o&&(t._zoneDelegates=null);for(let S=0;S<P.length;S++)P[S]._updateTaskCount(t.type,o)}}return G.__symbol__=h,G})();const O={name:"",onHasTask:(G,b,t,o)=>G.hasTask(t,o),onScheduleTask:(G,b,t,o)=>G.scheduleTask(t,o),onInvokeTask:(G,b,t,o,P,S)=>G.invokeTask(t,o,P,S),onCancelTask:(G,b,t,o)=>G.cancelTask(t,o)};class H{constructor(b,t,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=b,this._parentDelegate=t,this._forkZS=o&&(o&&o.onFork?o:t._forkZS),this._forkDlgt=o&&(o.onFork?t:t._forkDlgt),this._forkCurrZone=o&&(o.onFork?this.zone:t._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:t._interceptZS),this._interceptDlgt=o&&(o.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:t._invokeZS),this._invokeDlgt=o&&(o.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:t._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:t._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:t._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:t._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const P=o&&o.onHasTask;(P||t&&t._hasTaskZS)&&(this._hasTaskZS=P?o:O,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=b,o.onScheduleTask||(this._scheduleTaskZS=O,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=O,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=O,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(b,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,b,t):new g(b,t)}intercept(b,t,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,b,t,o):t}invoke(b,t,o,P,S){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,b,t,o,P,S):t.apply(o,P)}handleError(b,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,b,t)}scheduleTask(b,t){let o=t;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,b,t),o||(o=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=x)throw new Error("Task is missing scheduleFn.");N(t)}return o}invokeTask(b,t,o,P){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,b,t,o,P):t.callback.apply(o,P)}cancelTask(b,t){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,b,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");o=t.cancelFn(t)}return o}hasTask(b,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,b,t)}catch(o){this.handleError(b,o)}}_updateTaskCount(b,t){const o=this._taskCounts,P=o[b],S=o[b]=P+t;if(S<0)throw new Error("More tasks executed then were scheduled.");0!=P&&0!=S||this.hasTask(this.zone,{microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:b})}}class M{constructor(b,t,o,P,S,me){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=b,this.source=t,this.data=P,this.scheduleFn=S,this.cancelFn=me,!o)throw new Error("callback is not defined");this.callback=o;const d=this;this.invoke=b===ue&&P&&P.useG?M.invokeTask:function(){return M.invokeTask.call(e,d,this,arguments)}}static invokeTask(b,t,o){b||(b=this),ye++;try{return b.runCount++,b.zone.runTask(b,t,o)}finally{1==ye&&k(),ye--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(K,ce)}_transitionTo(b,t,o){if(this._state!==t&&this._state!==o)throw new Error(`${this.type} '${this.source}': can not transition to '${b}', expecting state '${t}'${o?" or '"+o+"'":""}, was '${this._state}'.`);this._state=b,b==K&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const W=h("setTimeout"),F=h("Promise"),V=h("then");let he,re=[],Y=!1;function $(G){if(he||e[F]&&(he=e[F].resolve(0)),he){let b=he[V];b||(b=he.then),b.call(he,G)}else e[W](G,0)}function N(G){0===ye&&0===re.length&&$(k),G&&re.push(G)}function k(){if(!Y){for(Y=!0;re.length;){const G=re;re=[];for(let b=0;b<G.length;b++){const t=G[b];try{t.zone.runTask(t,null,null)}catch(o){U.onUnhandledError(o)}}}U.microtaskDrainDone(),Y=!1}}const Ee={name:"NO ZONE"},K="notScheduled",ce="scheduling",q="scheduled",p="running",J="canceling",_="unknown",x="microTask",R="macroTask",ue="eventTask",Ce={},U={symbol:h,currentZoneFrame:()=>ee,onUnhandledError:ne,microtaskDrainDone:ne,scheduleMicroTask:N,showUncaughtError:()=>!g[h("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:ne,patchMethod:()=>ne,bindArguments:()=>[],patchThen:()=>ne,patchMacroTask:()=>ne,patchEventPrototype:()=>ne,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>ne,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>ne,wrapWithCurrentZone:()=>ne,filterProperties:()=>[],attachOriginToPatched:()=>ne,_redefineProperty:()=>ne,patchCallbacks:()=>ne,nativeScheduleMicroTask:$};let ee={parent:null,zone:new g(null,null)},ge=null,ye=0;function ne(){}i("Zone","Zone"),e.Zone=g}(typeof window<"u"&&window||typeof self<"u"&&self||global);const X=Object.getOwnPropertyDescriptor,ve=Object.defineProperty,Ne=Object.getPrototypeOf,Ve=Object.create,ft=Array.prototype.slice,xe="addEventListener",Ue="removeEventListener",Je=Zone.__symbol__(xe),Qe=Zone.__symbol__(Ue),Oe="true",Me="false",Ge=Zone.__symbol__("");function et(e,r){return Zone.current.wrap(e,r)}function We(e,r,c,i,l){return Zone.current.scheduleMacroTask(e,r,c,i,l)}const z=Zone.__symbol__,qe=typeof window<"u",Ze=qe?window:void 0,le=qe&&Ze||"object"==typeof self&&self||global,ht="removeAttribute";function tt(e,r){for(let c=e.length-1;c>=0;c--)"function"==typeof e[c]&&(e[c]=et(e[c],r+"_"+c));return e}function lt(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const nt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Xe=!("nw"in le)&&typeof le.process<"u"&&"[object process]"==={}.toString.call(le.process),B=!Xe&&!nt&&!(!qe||!Ze.HTMLElement),_e=typeof le.process<"u"&&"[object process]"==={}.toString.call(le.process)&&!nt&&!(!qe||!Ze.HTMLElement),rt={},ze=function(e){if(!(e=e||le.event))return;let r=rt[e.type];r||(r=rt[e.type]=z("ON_PROPERTY"+e.type));const c=this||e.target||le,i=c[r];let l;return B&&c===Ze&&"error"===e.type?(l=i&&i.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===l&&e.preventDefault()):(l=i&&i.apply(this,arguments),null!=l&&!l&&e.preventDefault()),l};function ot(e,r,c){let i=X(e,r);if(!i&&c&&X(c,r)&&(i={enumerable:!0,configurable:!0}),!i||!i.configurable)return;const l=z("on"+r+"patched");if(e.hasOwnProperty(l)&&e[l])return;delete i.writable,delete i.value;const h=i.get,v=i.set,g=r.slice(2);let O=rt[g];O||(O=rt[g]=z("ON_PROPERTY"+g)),i.set=function(H){let M=this;!M&&e===le&&(M=le),M&&("function"==typeof M[O]&&M.removeEventListener(g,ze),v&&v.call(M,null),M[O]=H,"function"==typeof H&&M.addEventListener(g,ze,!1))},i.get=function(){let H=this;if(!H&&e===le&&(H=le),!H)return null;const M=H[O];if(M)return M;if(h){let W=h.call(this);if(W)return i.set.call(this,W),"function"==typeof H[ht]&&H.removeAttribute(r),W}return null},ve(e,r,i),e[l]=!0}function Ye(e,r,c){if(r)for(let i=0;i<r.length;i++)ot(e,"on"+r[i],c);else{const i=[];for(const l in e)"on"==l.slice(0,2)&&i.push(l);for(let l=0;l<i.length;l++)ot(e,i[l],c)}}const ke=z("originalInstance");function je(e){const r=le[e];if(!r)return;le[z(e)]=r,le[e]=function(){const l=tt(arguments,e);switch(l.length){case 0:this[ke]=new r;break;case 1:this[ke]=new r(l[0]);break;case 2:this[ke]=new r(l[0],l[1]);break;case 3:this[ke]=new r(l[0],l[1],l[2]);break;case 4:this[ke]=new r(l[0],l[1],l[2],l[3]);break;default:throw new Error("Arg list too long.")}},be(le[e],r);const c=new r(function(){});let i;for(i in c)"XMLHttpRequest"===e&&"responseBlob"===i||function(l){"function"==typeof c[l]?le[e].prototype[l]=function(){return this[ke][l].apply(this[ke],arguments)}:ve(le[e].prototype,l,{set:function(h){"function"==typeof h?(this[ke][l]=et(h,e+"."+l),be(this[ke][l],h)):this[ke][l]=h},get:function(){return this[ke][l]}})}(i);for(i in r)"prototype"!==i&&r.hasOwnProperty(i)&&(le[e][i]=r[i])}function Le(e,r,c){let i=e;for(;i&&!i.hasOwnProperty(r);)i=Ne(i);!i&&e[r]&&(i=e);const l=z(r);let h=null;if(i&&(!(h=i[l])||!i.hasOwnProperty(l))&&(h=i[l]=i[r],lt(i&&X(i,r)))){const g=c(h,l,r);i[r]=function(){return g(this,arguments)},be(i[r],h)}return h}function st(e,r,c){let i=null;function l(h){const v=h.data;return v.args[v.cbIdx]=function(){h.invoke.apply(this,arguments)},i.apply(v.target,v.args),h}i=Le(e,r,h=>function(v,g){const O=c(v,g);return O.cbIdx>=0&&"function"==typeof g[O.cbIdx]?We(O.name,g[O.cbIdx],O,l):h.apply(v,g)})}function be(e,r){e[z("OriginalDelegate")]=r}let Re=!1,Fe=!1;function Se(){if(Re)return Fe;Re=!0;try{const e=Ze.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Fe=!0)}catch{}return Fe}Zone.__load_patch("ZoneAwarePromise",(e,r,c)=>{const i=Object.getOwnPropertyDescriptor,l=Object.defineProperty,v=c.symbol,g=[],O=!0===e[v("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],H=v("Promise"),M=v("then"),W="__creationTrace__";c.onUnhandledError=d=>{if(c.showUncaughtError()){const m=d&&d.rejection;m?console.error("Unhandled Promise rejection:",m instanceof Error?m.message:m,"; Zone:",d.zone.name,"; Task:",d.task&&d.task.source,"; Value:",m,m instanceof Error?m.stack:void 0):console.error(d)}},c.microtaskDrainDone=()=>{for(;g.length;){const d=g.shift();try{d.zone.runGuarded(()=>{throw d.throwOriginal?d.rejection:d})}catch(m){V(m)}}};const F=v("unhandledPromiseRejectionHandler");function V(d){c.onUnhandledError(d);try{const m=r[F];"function"==typeof m&&m.call(this,d)}catch{}}function re(d){return d&&d.then}function Y(d){return d}function he(d){return t.reject(d)}const $=v("state"),N=v("value"),k=v("finally"),Ee=v("parentPromiseValue"),K=v("parentPromiseState"),ce="Promise.then",q=null,p=!0,J=!1,_=0;function x(d,m){return a=>{try{U(d,m,a)}catch(E){U(d,!1,E)}}}const R=function(){let d=!1;return function(a){return function(){d||(d=!0,a.apply(null,arguments))}}},ue="Promise resolved with itself",Ce=v("currentTaskTrace");function U(d,m,a){const E=R();if(d===a)throw new TypeError(ue);if(d[$]===q){let L=null;try{("object"==typeof a||"function"==typeof a)&&(L=a&&a.then)}catch(D){return E(()=>{U(d,!1,D)})(),d}if(m!==J&&a instanceof t&&a.hasOwnProperty($)&&a.hasOwnProperty(N)&&a[$]!==q)ge(a),U(d,a[$],a[N]);else if(m!==J&&"function"==typeof L)try{L.call(a,E(x(d,m)),E(x(d,!1)))}catch(D){E(()=>{U(d,!1,D)})()}else{d[$]=m;const D=d[N];if(d[N]=a,d[k]===k&&m===p&&(d[$]=d[K],d[N]=d[Ee]),m===J&&a instanceof Error){const y=r.currentTask&&r.currentTask.data&&r.currentTask.data[W];y&&l(a,Ce,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y<D.length;)ye(d,D[y++],D[y++],D[y++],D[y++]);if(0==D.length&&m==J){d[$]=_;let y=a;try{throw new Error("Uncaught (in promise): "+function h(d){return d&&d.toString===Object.prototype.toString?(d.constructor&&d.constructor.name||"")+": "+JSON.stringify(d):d?d.toString():Object.prototype.toString.call(d)}(a)+(a&&a.stack?"\n"+a.stack:""))}catch(A){y=A}O&&(y.throwOriginal=!0),y.rejection=a,y.promise=d,y.zone=r.current,y.task=r.currentTask,g.push(y),c.scheduleMicroTask()}}}return d}const ee=v("rejectionHandledHandler");function ge(d){if(d[$]===_){try{const m=r[ee];m&&"function"==typeof m&&m.call(this,{rejection:d[N],promise:d})}catch{}d[$]=J;for(let m=0;m<g.length;m++)d===g[m].promise&&g.splice(m,1)}}function ye(d,m,a,E,L){ge(d);const D=d[$],y=D?"function"==typeof E?E:Y:"function"==typeof L?L:he;m.scheduleMicroTask(ce,()=>{try{const A=d[N],Z=!!a&&k===a[k];Z&&(a[Ee]=A,a[K]=D);const I=m.run(y,void 0,Z&&y!==he&&y!==Y?[]:[A]);U(a,!0,I)}catch(A){U(a,!1,A)}},a)}const G=function(){},b=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(m){return U(new this(null),p,m)}static reject(m){return U(new this(null),J,m)}static any(m){if(!m||"function"!=typeof m[Symbol.iterator])return Promise.reject(new b([],"All promises were rejected"));const a=[];let E=0;try{for(let y of m)E++,a.push(t.resolve(y))}catch{return Promise.reject(new b([],"All promises were rejected"))}if(0===E)return Promise.reject(new b([],"All promises were rejected"));let L=!1;const D=[];return new t((y,A)=>{for(let Z=0;Z<a.length;Z++)a[Z].then(I=>{L||(L=!0,y(I))},I=>{D.push(I),E--,0===E&&(L=!0,A(new b(D,"All promises were rejected")))})})}static race(m){let a,E,L=new this((A,Z)=>{a=A,E=Z});function D(A){a(A)}function y(A){E(A)}for(let A of m)re(A)||(A=this.resolve(A)),A.then(D,y);return L}static all(m){return t.allWithCallback(m)}static allSettled(m){return(this&&this.prototype instanceof t?this:t).allWithCallback(m,{thenCallback:E=>({status:"fulfilled",value:E}),errorCallback:E=>({status:"rejected",reason:E})})}static allWithCallback(m,a){let E,L,D=new this((I,Q)=>{E=I,L=Q}),y=2,A=0;const Z=[];for(let I of m){re(I)||(I=this.resolve(I));const Q=A;try{I.then(te=>{Z[Q]=a?a.thenCallback(te):te,y--,0===y&&E(Z)},te=>{a?(Z[Q]=a.errorCallback(te),y--,0===y&&E(Z)):L(te)})}catch(te){L(te)}y++,A++}return y-=2,0===y&&E(Z),D}constructor(m){const a=this;if(!(a instanceof t))throw new Error("Must be an instanceof Promise.");a[$]=q,a[N]=[];try{const E=R();m&&m(E(x(a,p)),E(x(a,J)))}catch(E){U(a,!1,E)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(m,a){var E;let L=null===(E=this.constructor)||void 0===E?void 0:E[Symbol.species];(!L||"function"!=typeof L)&&(L=this.constructor||t);const D=new L(G),y=r.current;return this[$]==q?this[N].push(y,D,m,a):ye(this,y,D,m,a),D}catch(m){return this.then(null,m)}finally(m){var a;let E=null===(a=this.constructor)||void 0===a?void 0:a[Symbol.species];(!E||"function"!=typeof E)&&(E=t);const L=new E(G);L[k]=k;const D=r.current;return this[$]==q?this[N].push(D,L,m,m):ye(this,D,L,m,m),L}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const o=e[H]=e.Promise;e.Promise=t;const P=v("thenPatched");function S(d){const m=d.prototype,a=i(m,"then");if(a&&(!1===a.writable||!a.configurable))return;const E=m.then;m[M]=E,d.prototype.then=function(L,D){return new t((A,Z)=>{E.call(this,A,Z)}).then(L,D)},d[P]=!0}return c.patchThen=S,o&&(S(o),Le(e,"fetch",d=>function me(d){return function(m,a){let E=d.apply(m,a);if(E instanceof t)return E;let L=E.constructor;return L[P]||S(L),E}}(d))),Promise[r.__symbol__("uncaughtPromiseErrors")]=g,t}),Zone.__load_patch("toString",e=>{const r=Function.prototype.toString,c=z("OriginalDelegate"),i=z("Promise"),l=z("Error"),h=function(){if("function"==typeof this){const H=this[c];if(H)return"function"==typeof H?r.call(H):Object.prototype.toString.call(H);if(this===Promise){const M=e[i];if(M)return r.call(M)}if(this===Error){const M=e[l];if(M)return r.call(M)}}return r.call(this)};h[c]=r,Function.prototype.toString=h;const v=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":v.call(this)}});let pe=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){pe=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{pe=!1}const Ae={useG:!0},de={},we={},Be=new RegExp("^"+Ge+"(\\w+)(true|false)$"),He=z("propagationStopped");function Et(e,r){const c=(r?r(e):e)+Me,i=(r?r(e):e)+Oe,l=Ge+c,h=Ge+i;de[e]={},de[e][Me]=l,de[e][Oe]=h}function Tt(e,r,c,i){const l=i&&i.add||xe,h=i&&i.rm||Ue,v=i&&i.listeners||"eventListeners",g=i&&i.rmAll||"removeAllListeners",O=z(l),H="."+l+":",M="prependListener",W="."+M+":",F=function(N,k,Ee){if(N.isRemoved)return;const K=N.callback;let ce;"object"==typeof K&&K.handleEvent&&(N.callback=p=>K.handleEvent(p),N.originalDelegate=K);try{N.invoke(N,k,[Ee])}catch(p){ce=p}const q=N.options;return q&&"object"==typeof q&&q.once&&k[h].call(k,Ee.type,N.originalDelegate?N.originalDelegate:N.callback,q),ce};function V(N,k,Ee){if(!(k=k||e.event))return;const K=N||k.target||e,ce=K[de[k.type][Ee?Oe:Me]];if(ce){const q=[];if(1===ce.length){const p=F(ce[0],K,k);p&&q.push(p)}else{const p=ce.slice();for(let J=0;J<p.length&&(!k||!0!==k[He]);J++){const _=F(p[J],K,k);_&&q.push(_)}}if(1===q.length)throw q[0];for(let p=0;p<q.length;p++){const J=q[p];r.nativeScheduleMicroTask(()=>{throw J})}}}const re=function(N){return V(this,N,!1)},Y=function(N){return V(this,N,!0)};function he(N,k){if(!N)return!1;let Ee=!0;k&&void 0!==k.useG&&(Ee=k.useG);const K=k&&k.vh;let ce=!0;k&&void 0!==k.chkDup&&(ce=k.chkDup);let q=!1;k&&void 0!==k.rt&&(q=k.rt);let p=N;for(;p&&!p.hasOwnProperty(l);)p=Ne(p);if(!p&&N[l]&&(p=N),!p||p[O])return!1;const J=k&&k.eventNameToString,_={},x=p[O]=p[l],R=p[z(h)]=p[h],ue=p[z(v)]=p[v],Ce=p[z(g)]=p[g];let U;k&&k.prepend&&(U=p[z(k.prepend)]=p[k.prepend]);const t=Ee?function(a){if(!_.isExisting)return x.call(_.target,_.eventName,_.capture?Y:re,_.options)}:function(a){return x.call(_.target,_.eventName,a.invoke,_.options)},o=Ee?function(a){if(!a.isRemoved){const E=de[a.eventName];let L;E&&(L=E[a.capture?Oe:Me]);const D=L&&a.target[L];if(D)for(let y=0;y<D.length;y++)if(D[y]===a){D.splice(y,1),a.isRemoved=!0,0===D.length&&(a.allRemoved=!0,a.target[L]=null);break}}if(a.allRemoved)return R.call(a.target,a.eventName,a.capture?Y:re,a.options)}:function(a){return R.call(a.target,a.eventName,a.invoke,a.options)},S=k&&k.diff?k.diff:function(a,E){const L=typeof E;return"function"===L&&a.callback===E||"object"===L&&a.originalDelegate===E},me=Zone[z("UNPATCHED_EVENTS")],d=e[z("PASSIVE_EVENTS")],m=function(a,E,L,D,y=!1,A=!1){return function(){const Z=this||e;let I=arguments[0];k&&k.transferEventName&&(I=k.transferEventName(I));let Q=arguments[1];if(!Q)return a.apply(this,arguments);if(Xe&&"uncaughtException"===I)return a.apply(this,arguments);let te=!1;if("function"!=typeof Q){if(!Q.handleEvent)return a.apply(this,arguments);te=!0}if(K&&!K(a,Q,Z,arguments))return;const Pe=pe&&!!d&&-1!==d.indexOf(I),n=function ee(a,E){return!pe&&"object"==typeof a&&a?!!a.capture:pe&&E?"boolean"==typeof a?{capture:a,passive:!0}:a?"object"==typeof a&&!1!==a.passive?Object.assign(Object.assign({},a),{passive:!0}):a:{passive:!0}:a}(arguments[2],Pe);if(me)for(let Te=0;Te<me.length;Te++)if(I===me[Te])return Pe?a.call(Z,I,Q,n):a.apply(this,arguments);const s=!!n&&("boolean"==typeof n||n.capture),u=!(!n||"object"!=typeof n)&&n.once,f=Zone.current;let T=de[I];T||(Et(I,J),T=de[I]);const C=T[s?Oe:Me];let j,w=Z[C],ae=!1;if(w){if(ae=!0,ce)for(let Te=0;Te<w.length;Te++)if(S(w[Te],Q))return}else w=Z[C]=[];const se=Z.constructor.name,fe=we[se];fe&&(j=fe[I]),j||(j=se+E+(J?J(I):I)),_.options=n,u&&(_.options.once=!1),_.target=Z,_.capture=s,_.eventName=I,_.isExisting=ae;const oe=Ee?Ae:void 0;oe&&(oe.taskData=_);const ie=f.scheduleEventTask(j,Q,oe,L,D);return _.target=null,oe&&(oe.taskData=null),u&&(n.once=!0),!pe&&"boolean"==typeof ie.options||(ie.options=n),ie.target=Z,ie.capture=s,ie.eventName=I,te&&(ie.originalDelegate=Q),A?w.unshift(ie):w.push(ie),y?Z:void 0}};return p[l]=m(x,H,t,o,q),U&&(p[M]=m(U,W,function(a){return U.call(_.target,_.eventName,a.invoke,_.options)},o,q,!0)),p[h]=function(){const a=this||e;let E=arguments[0];k&&k.transferEventName&&(E=k.transferEventName(E));const L=arguments[2],D=!!L&&("boolean"==typeof L||L.capture),y=arguments[1];if(!y)return R.apply(this,arguments);if(K&&!K(R,y,a,arguments))return;const A=de[E];let Z;A&&(Z=A[D?Oe:Me]);const I=Z&&a[Z];if(I)for(let Q=0;Q<I.length;Q++){const te=I[Q];if(S(te,y))return I.splice(Q,1),te.isRemoved=!0,0===I.length&&(te.allRemoved=!0,a[Z]=null,"string"==typeof E)&&(a[Ge+"ON_PROPERTY"+E]=null),te.zone.cancelTask(te),q?a:void 0}return R.apply(this,arguments)},p[v]=function(){const a=this||e;let E=arguments[0];k&&k.transferEventName&&(E=k.transferEventName(E));const L=[],D=ut(a,J?J(E):E);for(let y=0;y<D.length;y++){const A=D[y];L.push(A.originalDelegate?A.originalDelegate:A.callback)}return L},p[g]=function(){const a=this||e;let E=arguments[0];if(E){k&&k.transferEventName&&(E=k.transferEventName(E));const L=de[E];if(L){const A=a[L[Me]],Z=a[L[Oe]];if(A){const I=A.slice();for(let Q=0;Q<I.length;Q++){const te=I[Q];this[h].call(this,E,te.originalDelegate?te.originalDelegate:te.callback,te.options)}}if(Z){const I=Z.slice();for(let Q=0;Q<I.length;Q++){const te=I[Q];this[h].call(this,E,te.originalDelegate?te.originalDelegate:te.callback,te.options)}}}}else{const L=Object.keys(a);for(let D=0;D<L.length;D++){const A=Be.exec(L[D]);let Z=A&&A[1];Z&&"removeListener"!==Z&&this[g].call(this,Z)}this[g].call(this,"removeListener")}if(q)return this},be(p[l],x),be(p[h],R),Ce&&be(p[g],Ce),ue&&be(p[v],ue),!0}let $=[];for(let N=0;N<c.length;N++)$[N]=he(c[N],i);return $}function ut(e,r){if(!r){const h=[];for(let v in e){const g=Be.exec(v);let O=g&&g[1];if(O&&(!r||O===r)){const H=e[v];if(H)for(let M=0;M<H.length;M++)h.push(H[M])}}return h}let c=de[r];c||(Et(r),c=de[r]);const i=e[c[Me]],l=e[c[Oe]];return i?l?i.concat(l):i.slice():l?l.slice():[]}function $e(e,r){const c=e.Event;c&&c.prototype&&r.patchMethod(c.prototype,"stopImmediatePropagation",i=>function(l,h){l[He]=!0,i&&i.apply(l,h)})}function gt(e,r,c,i,l){const h=Zone.__symbol__(i);if(r[h])return;const v=r[h]=r[i];r[i]=function(g,O,H){return O&&O.prototype&&l.forEach(function(M){const W=`${c}.${i}::`+M,F=O.prototype;try{if(F.hasOwnProperty(M)){const V=e.ObjectGetOwnPropertyDescriptor(F,M);V&&V.value?(V.value=e.wrapWithCurrentZone(V.value,W),e._redefineProperty(O.prototype,M,V)):F[M]&&(F[M]=e.wrapWithCurrentZone(F[M],W))}else F[M]&&(F[M]=e.wrapWithCurrentZone(F[M],W))}catch{}}),v.call(r,g,O,H)},e.attachOriginToPatched(r[i],v)}function Ke(e,r,c){if(!c||0===c.length)return r;const i=c.filter(h=>h.target===e);if(!i||0===i.length)return r;const l=i[0].ignoreProperties;return r.filter(h=>-1===l.indexOf(h))}function it(e,r,c,i){e&&Ye(e,Ke(e,r,c),i)}function Ie(e){return Object.getOwnPropertyNames(e).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}Zone.__load_patch("util",(e,r,c)=>{const i=Ie(e);c.patchOnProperties=Ye,c.patchMethod=Le,c.bindArguments=tt,c.patchMacroTask=st;const l=r.__symbol__("BLACK_LISTED_EVENTS"),h=r.__symbol__("UNPATCHED_EVENTS");e[h]&&(e[l]=e[h]),e[l]&&(r[l]=r[h]=e[l]),c.patchEventPrototype=$e,c.patchEventTarget=Tt,c.isIEOrEdge=Se,c.ObjectDefineProperty=ve,c.ObjectGetOwnPropertyDescriptor=X,c.ObjectCreate=Ve,c.ArraySlice=ft,c.patchClass=je,c.wrapWithCurrentZone=et,c.filterProperties=Ke,c.attachOriginToPatched=be,c._redefineProperty=Object.defineProperty,c.patchCallbacks=gt,c.getGlobalObjects=()=>({globalSources:we,zoneSymbolEventNames:de,eventNames:i,isBrowser:B,isMix:_e,isNode:Xe,TRUE_STR:Oe,FALSE_STR:Me,ZONE_SYMBOL_PREFIX:Ge,ADD_EVENT_LISTENER_STR:xe,REMOVE_EVENT_LISTENER_STR:Ue})});const ct=z("zoneTask");function De(e,r,c,i){let l=null,h=null;c+=i;const v={};function g(H){const M=H.data;return M.args[0]=function(){return H.invoke.apply(this,arguments)},M.handleId=l.apply(e,M.args),H}function O(H){return h.call(e,H.data.handleId)}l=Le(e,r+=i,H=>function(M,W){if("function"==typeof W[0]){const F={isPeriodic:"Interval"===i,delay:"Timeout"===i||"Interval"===i?W[1]||0:void 0,args:W},V=W[0];W[0]=function(){try{return V.apply(this,arguments)}finally{F.isPeriodic||("number"==typeof F.handleId?delete v[F.handleId]:F.handleId&&(F.handleId[ct]=null))}};const re=We(r,W[0],F,g,O);if(!re)return re;const Y=re.data.handleId;return"number"==typeof Y?v[Y]=re:Y&&(Y[ct]=re),Y&&Y.ref&&Y.unref&&"function"==typeof Y.ref&&"function"==typeof Y.unref&&(re.ref=Y.ref.bind(Y),re.unref=Y.unref.bind(Y)),"number"==typeof Y||Y?Y:re}return H.apply(e,W)}),h=Le(e,c,H=>function(M,W){const F=W[0];let V;"number"==typeof F?V=v[F]:(V=F&&F[ct],V||(V=F)),V&&"string"==typeof V.type?"notScheduled"!==V.state&&(V.cancelFn&&V.data.isPeriodic||0===V.runCount)&&("number"==typeof F?delete v[F]:F&&(F[ct]=null),V.zone.cancelTask(V)):H.apply(e,W)})}Zone.__load_patch("legacy",e=>{const r=e[Zone.__symbol__("legacyPatch")];r&&r()}),Zone.__load_patch("queueMicrotask",(e,r,c)=>{c.patchMethod(e,"queueMicrotask",i=>function(l,h){r.current.scheduleMicroTask("queueMicrotask",h[0])})}),Zone.__load_patch("timers",e=>{const r="set",c="clear";De(e,r,c,"Timeout"),De(e,r,c,"Interval"),De(e,r,c,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{De(e,"request","cancel","AnimationFrame"),De(e,"mozRequest","mozCancel","AnimationFrame"),De(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,r)=>{const c=["alert","prompt","confirm"];for(let i=0;i<c.length;i++)Le(e,c[i],(h,v,g)=>function(O,H){return r.current.run(h,e,H,g)})}),Zone.__load_patch("EventTarget",(e,r,c)=>{(function vt(e,r){r.patchEventPrototype(e,r)})(e,c),function yt(e,r){if(Zone[r.symbol("patchEventTarget")])return;const{eventNames:c,zoneSymbolEventNames:i,TRUE_STR:l,FALSE_STR:h,ZONE_SYMBOL_PREFIX:v}=r.getGlobalObjects();for(let O=0;O<c.length;O++){const H=c[O],F=v+(H+h),V=v+(H+l);i[H]={},i[H][h]=F,i[H][l]=V}const g=e.EventTarget;g&&g.prototype&&r.patchEventTarget(e,r,[g&&g.prototype])}(e,c);const i=e.XMLHttpRequestEventTarget;i&&i.prototype&&c.patchEventTarget(e,c,[i.prototype])}),Zone.__load_patch("MutationObserver",(e,r,c)=>{je("MutationObserver"),je("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,r,c)=>{je("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,r,c)=>{je("FileReader")}),Zone.__load_patch("on_property",(e,r,c)=>{!function _t(e,r){if(Xe&&!_e||Zone[e.symbol("patchEvents")])return;const c=r.__Zone_ignore_on_properties;let i=[];if(B){const l=window;i=i.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const h=function mt(){try{const e=Ze.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:l,ignoreProperties:["error"]}]:[];it(l,Ie(l),c&&c.concat(h),Ne(l))}i=i.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let l=0;l<i.length;l++){const h=r[i[l]];h&&h.prototype&&it(h.prototype,Ie(h.prototype),c)}}(c,e)}),Zone.__load_patch("customElements",(e,r,c)=>{!function at(e,r){const{isBrowser:c,isMix:i}=r.getGlobalObjects();(c||i)&&e.customElements&&"customElements"in e&&r.patchCallbacks(r,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,c)}),Zone.__load_patch("XHR",(e,r)=>{!function O(H){const M=H.XMLHttpRequest;if(!M)return;const W=M.prototype;let V=W[Je],re=W[Qe];if(!V){const _=H.XMLHttpRequestEventTarget;if(_){const x=_.prototype;V=x[Je],re=x[Qe]}}const Y="readystatechange",he="scheduled";function $(_){const x=_.data,R=x.target;R[h]=!1,R[g]=!1;const ue=R[l];V||(V=R[Je],re=R[Qe]),ue&&re.call(R,Y,ue);const Ce=R[l]=()=>{if(R.readyState===R.DONE)if(!x.aborted&&R[h]&&_.state===he){const ee=R[r.__symbol__("loadfalse")];if(0!==R.status&&ee&&ee.length>0){const ge=_.invoke;_.invoke=function(){const ye=R[r.__symbol__("loadfalse")];for(let ne=0;ne<ye.length;ne++)ye[ne]===_&&ye.splice(ne,1);!x.aborted&&_.state===he&&ge.call(_)},ee.push(_)}else _.invoke()}else!x.aborted&&!1===R[h]&&(R[g]=!0)};return V.call(R,Y,Ce),R[c]||(R[c]=_),p.apply(R,x.args),R[h]=!0,_}function N(){}function k(_){const x=_.data;return x.aborted=!0,J.apply(x.target,x.args)}const Ee=Le(W,"open",()=>function(_,x){return _[i]=0==x[2],_[v]=x[1],Ee.apply(_,x)}),ce=z("fetchTaskAborting"),q=z("fetchTaskScheduling"),p=Le(W,"send",()=>function(_,x){if(!0===r.current[q]||_[i])return p.apply(_,x);{const R={target:_,url:_[v],isPeriodic:!1,args:x,aborted:!1},ue=We("XMLHttpRequest.send",N,R,$,k);_&&!0===_[g]&&!R.aborted&&ue.state===he&&ue.invoke()}}),J=Le(W,"abort",()=>function(_,x){const R=function F(_){return _[c]}(_);if(R&&"string"==typeof R.type){if(null==R.cancelFn||R.data&&R.data.aborted)return;R.zone.cancelTask(R)}else if(!0===r.current[ce])return J.apply(_,x)})}(e);const c=z("xhrTask"),i=z("xhrSync"),l=z("xhrListener"),h=z("xhrScheduled"),v=z("xhrURL"),g=z("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function dt(e,r){const c=e.constructor.name;for(let i=0;i<r.length;i++){const l=r[i],h=e[l];if(h){if(!lt(X(e,l)))continue;e[l]=(g=>{const O=function(){return g.apply(this,tt(arguments,c+"."+l))};return be(O,g),O})(h)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,r)=>{function c(i){return function(l){ut(e,i).forEach(v=>{const g=e.PromiseRejectionEvent;if(g){const O=new g(i,{promise:l.promise,reason:l.rejection});v.invoke(O)}})}}e.PromiseRejectionEvent&&(r[z("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),r[z("rejectionHandledHandler")]=c("rejectionhandled"))})}},X=>{X(X.s=435)}]);
(self.webpackChunkappfaas=self.webpackChunkappfaas||[]).push([[179],{894:(xr,$s,Fl)=>{"use strict";function ye(n){return"function"==typeof n}function kt(n){const e=n(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Pr=kt(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Us(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class be{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(ye(i))try{i()}catch(r){t=r instanceof Pr?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{Nl(r)}catch(s){t=t??[],s instanceof Pr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Pr(t)}}add(t){var e;if(t&&t!==this)if(this.closed)Nl(t);else{if(t instanceof be){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&Us(e,t)}remove(t){const{_finalizers:e}=this;e&&Us(e,t),t instanceof be&&t._removeParent(this)}}be.EMPTY=(()=>{const n=new be;return n.closed=!0,n})();const Gs=be.EMPTY;function Rl(n){return n instanceof be||n&&"closed"in n&&ye(n.remove)&&ye(n.add)&&ye(n.unsubscribe)}function Nl(n){ye(n)?n():n.unsubscribe()}const cn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Fn={setTimeout(n,t,...e){const{delegate:i}=Fn;return i?.setTimeout?i.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=Fn;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function Er(n){Fn.setTimeout(()=>{const{onUnhandledError:t}=cn;if(!t)throw n;t(n)})}function Fo(){}const uo=dn("C",void 0,void 0);function dn(n,t,e){return{kind:n,value:t,error:e}}let Mi=null;function Or(n){if(cn.useDeprecatedSynchronousErrorHandling){const t=!Mi;if(t&&(Mi={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=Mi;if(Mi=null,e)throw i}}else n()}class Ro extends be{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Rl(t)&&t.add(this)):this.destination=fo}static create(t,e,i){return new Si(t,e,i)}next(t){this.isStopped?ho(function Bl(n){return dn("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?ho(function ni(n){return dn("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ho(uo,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ws=Function.prototype.bind;function Tr(n,t){return Ws.call(n,t)}class Ar{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){No(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){No(i)}else No(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){No(e)}}}class Si extends Ro{constructor(t,e,i){let o;if(super(),ye(t)||!t)o={next:t??void 0,error:e??void 0,complete:i??void 0};else{let r;this&&cn.useDeprecatedNextContext?(r=Object.create(t),r.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Tr(t.next,r),error:t.error&&Tr(t.error,r),complete:t.complete&&Tr(t.complete,r)}):o=t}this.destination=new Ar(o)}}function No(n){cn.useDeprecatedSynchronousErrorHandling?function Yt(n){cn.useDeprecatedSynchronousErrorHandling&&Mi&&(Mi.errorThrown=!0,Mi.error=n)}(n):Er(n)}function ho(n,t){const{onStoppedNotification:e}=cn;e&&Fn.setTimeout(()=>e(n,t))}const fo={closed:!0,next:Fo,error:function Vi(n){throw n},complete:Fo},po="function"==typeof Symbol&&Symbol.observable||"@@observable";function mo(n){return n}let Le=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function Vl(n){return n&&n instanceof Ro||function qu(n){return n&&ye(n.next)&&ye(n.error)&&ye(n.complete)}(n)&&Rl(n)}(e)?e:new Si(e,i,o);return Or(()=>{const{operator:s,source:a}=this;r.add(s?s.call(r,a):a?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Js(i))((o,r)=>{const s=new Si({next:a=>{try{e(a)}catch(l){r(l),s.unsubscribe()}},error:r,complete:o});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[po](){return this}pipe(...e){return function Ll(n){return 0===n.length?mo:1===n.length?n[0]:function(e){return n.reduce((i,o)=>o(i),e)}}(e)(this)}toPromise(e){return new(e=Js(e))((i,o)=>{let r;this.subscribe(s=>r=s,s=>o(s),()=>i(r))})}}return n.create=t=>new n(t),n})();function Js(n){var t;return null!==(t=n??cn.Promise)&&void 0!==t?t:Promise}const Ju=kt(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let re=(()=>{class n extends Le{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new go(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Ju}next(e){Or(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Or(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Or(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:o,observers:r}=this;return i||o?Gs:(this.currentObservers=null,r.push(e),new be(()=>{this.currentObservers=null,Us(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new Le;return e.source=this,e}}return n.create=(t,e)=>new go(t,e),n})();class go extends re{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)}error(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:Gs}}function tt(n){return t=>{if(function Hl(n){return ye(n?.lift)}(t))return t.lift(function(e){try{return n(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function qe(n,t,e,i,o){return new Ku(n,t,e,i,o)}class Ku extends Ro{constructor(t,e,i,o,r,s){super(t),this.onFinalize=r,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function ze(n,t){return tt((e,i)=>{let o=0;e.subscribe(qe(i,r=>{i.next(n.call(t,r,o++))}))})}function st(n,t,e,i){var s,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(r=(o<3?s(r):o>3?s(t,e,r):s(t,e))||r);return o>3&&r&&Object.defineProperty(t,e,r),r}function at(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function oi(n){return this instanceof oi?(this.v=n,this):new oi(n)}function Ho(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function Xs(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=n[r]&&function(s){return new Promise(function(a,l){!function o(r,s,a,l){Promise.resolve(l).then(function(c){r({value:c,done:a})},s)}(a,l,(s=n[r](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const ta=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Wl(n){return ye(n?.then)}function na(n){return ye(n[po])}function ql(n){return Symbol.asyncIterator&&ye(n?.[Symbol.asyncIterator])}function Jl(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const jo=function rh(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Kl(n){return ye(n?.[jo])}function Xl(n){return function Qs(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(n,t||[]),r=[];return o=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function s(f){return function(m){return Promise.resolve(m).then(f,u)}}),o[Symbol.asyncIterator]=function(){return this},o;function a(f,m){i[f]&&(o[f]=function(v){return new Promise(function(S,C){r.push([f,v,S,C])>1||l(f,v)})},m&&(o[f]=m(o[f])))}function l(f,m){try{!function c(f){f.value instanceof oi?Promise.resolve(f.value.v).then(d,u):h(r[0][2],f)}(i[f](m))}catch(v){h(r[0][3],v)}}function d(f){l("next",f)}function u(f){l("throw",f)}function h(f,m){f(m),r.shift(),r.length&&l(r[0][0],r[0][1])}}(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:o}=yield oi(e.read());if(o)return yield oi(void 0);yield yield oi(i)}}finally{e.releaseLock()}})}function ia(n){return ye(n?.getReader)}function Mt(n){if(n instanceof Le)return n;if(null!=n){if(na(n))return function sh(n){return new Le(t=>{const e=n[po]();if(ye(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(ta(n))return function Ql(n){return new Le(t=>{for(let e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()})}(n);if(Wl(n))return function ah(n){return new Le(t=>{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Er)})}(n);if(ql(n))return oa(n);if(Kl(n))return function Zl(n){return new Le(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(ia(n))return function Yl(n){return oa(Xl(n))}(n)}throw Jl(n)}function oa(n){return new Le(t=>{(function ec(n,t){var e,i,o,r;return function Ks(n,t,e,i){return new(e||(e=Promise))(function(r,s){function a(d){try{c(i.next(d))}catch(u){s(u)}}function l(d){try{c(i.throw(d))}catch(u){s(u)}}function c(d){d.done?r(d.value):function o(r){return r instanceof e?r:new e(function(s){s(r)})}(d.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Ho(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function Nn(n,t,e,i=0,o=!1){const r=t.schedule(function(){e(),o?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(r),!o)return r}function ri(n,t,e=1/0){return ye(t)?ri((i,o)=>ze((r,s)=>t(i,r,o,s))(Mt(n(i,o))),e):("number"==typeof t&&(e=t),tt((i,o)=>function ji(n,t,e,i,o,r,s,a){const l=[];let c=0,d=0,u=!1;const h=()=>{u&&!l.length&&!c&&t.complete()},f=v=>c<i?m(v):l.push(v),m=v=>{r&&t.next(v),c++;let S=!1;Mt(e(v,d++)).subscribe(qe(t,C=>{o?.(C),r?f(C):t.next(C)},()=>{S=!0},void 0,()=>{if(S)try{for(c--;l.length&&c<i;){const C=l.shift();s?Nn(t,s,()=>m(C)):m(C)}h()}catch(C){t.error(C)}}))};return n.subscribe(qe(t,f,()=>{u=!0,h()})),()=>{a?.()}}(i,o,n,e)))}function _o(n=1/0){return ri(mo,n)}const vo=new Le(n=>n.complete());function nc(n){return n&&ye(n.schedule)}function yo(n){return n[n.length-1]}function si(n){return nc(yo(n))?n.pop():void 0}function Bn(n,t=0){return tt((e,i)=>{e.subscribe(qe(i,o=>Nn(i,n,()=>i.next(o),t),()=>Nn(i,n,()=>i.complete(),t),o=>Nn(i,n,()=>i.error(o),t)))})}function bo(n,t=0){return tt((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function zo(n,t){if(!n)throw new Error("Iterable cannot be null");return new Le(e=>{Nn(e,t,()=>{const i=n[Symbol.asyncIterator]();Nn(e,t,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function zi(n,t){return t?function Nr(n,t){if(null!=n){if(na(n))return function Ln(n,t){return Mt(n).pipe(bo(t),Bn(t))}(n,t);if(ta(n))return function ic(n,t){return new Le(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(Wl(n))return function ai(n,t){return Mt(n).pipe(bo(t),Bn(t))}(n,t);if(ql(n))return zo(n,t);if(Kl(n))return function oc(n,t){return new Le(e=>{let i;return Nn(e,t,()=>{i=n[jo](),Nn(e,t,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(s){return void e.error(s)}r?e.complete():e.next(o)},0,!0)}),()=>ye(i?.return)&&i.return()})}(n,t);if(ia(n))return function Cn(n,t){return zo(Xl(n),t)}(n,t)}throw Jl(n)}(n,t):Mt(n)}function $i(...n){const t=si(n),e=function Ii(n,t){return"number"==typeof yo(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?Mt(i[0]):_o(e)(zi(i,t)):vo}function $o(n,t,...e){if(!0===t)return void n();if(!1===t)return;const i=new Si({next:()=>{i.unsubscribe(),n()}});return Mt(t(...e)).subscribe(i)}function Ee(n){for(let t in n)if(n[t]===Ee)return t;throw Error("Could not find renamed property on target object.")}function li(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function Ne(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Ne).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Br(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const sa=Ee({__forward_ref__:Ee});function Pe(n){return n.__forward_ref__=Pe,n.toString=function(){return Ne(this())},n}function Q(n){return aa(n)?n():n}function aa(n){return"function"==typeof n&&n.hasOwnProperty(sa)&&n.__forward_ref__===Pe}function p(n){return n&&!!n.\u0275providers}const y="https://g.co/ng/security#xss";class _ extends Error{constructor(t,e){super(T(t,e)),this.code=t}}function T(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}function D(n){return"string"==typeof n?n:null==n?"":String(n)}function en(n,t){throw new _(-201,!1)}function Vn(n,t){null==n&&function Ae(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function z(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function pe(n){return{providers:n.providers||[],imports:n.imports||[]}}function rc(n){return g_(n,sc)||g_(n,v_)}function g_(n,t){return n.hasOwnProperty(t)?n[t]:null}function __(n){return n&&(n.hasOwnProperty(ch)||n.hasOwnProperty(bx))?n[ch]:null}const sc=Ee({\u0275prov:Ee}),ch=Ee({\u0275inj:Ee}),v_=Ee({ngInjectableDef:Ee}),bx=Ee({ngInjectorDef:Ee});var ie=(()=>((ie=ie||{})[ie.Default=0]="Default",ie[ie.Host=1]="Host",ie[ie.Self=2]="Self",ie[ie.SkipSelf=4]="SkipSelf",ie[ie.Optional=8]="Optional",ie))();let dh;function Hn(n){const t=dh;return dh=n,t}function y_(n,t,e){const i=rc(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&ie.Optional?null:void 0!==t?t:void en(Ne(n))}const $e=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),la={},uh="__NG_DI_FLAG__",ac="ngTempTokenPath",Mx="ngTokenPath",Sx=/\n/gm,Ix="\u0275",b_="__source";let ca;function Lr(n){const t=ca;return ca=n,t}function wx(n,t=ie.Default){if(void 0===ca)throw new _(-203,!1);return null===ca?y_(n,void 0,t):ca.get(n,t&ie.Optional?null:void 0,t)}function w(n,t=ie.Default){return(function Cx(){return dh}()||wx)(Q(n),t)}function pt(n,t=ie.Default){return w(n,lc(t))}function lc(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function hh(n){const t=[];for(let e=0;e<n.length;e++){const i=Q(n[e]);if(Array.isArray(i)){if(0===i.length)throw new _(900,!1);let o,r=ie.Default;for(let s=0;s<i.length;s++){const a=i[s],l=Dx(a);"number"==typeof l?-1===l?o=a.token:r|=l:o=a}t.push(w(o,r))}else t.push(w(i))}return t}function da(n,t){return n[uh]=t,n.prototype[uh]=t,n}function Dx(n){return n[uh]}function Ui(n){return{toString:n}.toString()}var wi=(()=>((wi=wi||{})[wi.OnPush=0]="OnPush",wi[wi.Default=1]="Default",wi))(),ci=(()=>{return(n=ci||(ci={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",ci;var n})();const Gi={},Te=[],cc=Ee({\u0275cmp:Ee}),fh=Ee({\u0275dir:Ee}),ph=Ee({\u0275pipe:Ee}),M_=Ee({\u0275mod:Ee}),Wi=Ee({\u0275fac:Ee}),ua=Ee({__NG_ELEMENT_ID__:Ee});let Ex=0;function me(n){return Ui(()=>{const t=I_(n),e={...t,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===wi.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&n.dependencies||null,getStandaloneInjector:null,data:n.data||{},encapsulation:n.encapsulation||ci.Emulated,id:"c"+Ex++,styles:n.styles||Te,_:null,schemas:n.schemas||null,tView:null};w_(e);const i=n.dependencies;return e.directiveDefs=dc(i,!1),e.pipeDefs=dc(i,!0),e})}function Tx(n){return ke(n)||jt(n)}function Ax(n){return null!==n}function _e(n){return Ui(()=>({type:n.type,bootstrap:n.bootstrap||Te,declarations:n.declarations||Te,imports:n.imports||Te,exports:n.exports||Te,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function S_(n,t){if(null==n)return Gi;const e={};for(const i in n)if(n.hasOwnProperty(i)){let o=n[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),e[o]=i,t&&(t[o]=r)}return e}function k(n){return Ui(()=>{const t=I_(n);return w_(t),t})}function tn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function ke(n){return n[cc]||null}function jt(n){return n[fh]||null}function hn(n){return n[ph]||null}function I_(n){const t={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,exportAs:n.exportAs||null,standalone:!0===n.standalone,selectors:n.selectors||Te,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:S_(n.inputs,t),outputs:S_(n.outputs)}}function w_(n){n.features?.forEach(t=>t(n))}function dc(n,t){if(!n)return null;const e=t?hn:Tx;return()=>("function"==typeof n?n():n).map(i=>e(i)).filter(Ax)}const qi=0,$=1,ue=2,it=3,di=4,Uo=5,zt=6,Vr=7,lt=8,uc=9,hc=10,ge=11,mh=12,fa=13,D_=14,Hr=15,$t=16,pa=17,jr=18,Di=19,ma=20,x_=21,Ue=22,gh=1,P_=2,fc=7,pc=8,zr=9,nn=10;function In(n){return Array.isArray(n)&&"object"==typeof n[gh]}function ui(n){return Array.isArray(n)&&!0===n[gh]}function _h(n){return 0!=(4&n.flags)}function ga(n){return n.componentOffset>-1}function mc(n){return 1==(1&n.flags)}function hi(n){return!!n.template}function Fx(n){return 0!=(256&n[ue])}function Go(n,t){return n.hasOwnProperty(Wi)?n[Wi]:null}class T_{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function fn(){return A_}function A_(n){return n.type.prototype.ngOnChanges&&(n.setInput=Lx),Bx}function Bx(){const n=F_(this),t=n?.current;if(t){const e=n.previous;if(e===Gi)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function Lx(n,t,e,i){const o=this.declaredInputs[e],r=F_(n)||function Vx(n,t){return n[k_]=t}(n,{previous:Gi,current:null}),s=r.current||(r.current={}),a=r.previous,l=a[o];s[o]=new T_(l&&l.currentValue,t,a===Gi),n[i]=t}fn.ngInherit=!0;const k_="__ngSimpleChanges__";function F_(n){return n[k_]||null}const jn=function(n,t,e){},R_="svg";function Rt(n){for(;Array.isArray(n);)n=n[qi];return n}function gc(n,t){return Rt(t[n])}function wn(n,t){return Rt(t[n.index])}function B_(n,t){return n.data[t]}function $r(n,t){return n[t]}function pn(n,t){const e=t[n];return In(e)?e:e[qi]}function _c(n){return 64==(64&n[ue])}function Mo(n,t){return null==t?null:n[t]}function L_(n){n[jr]=0}function yh(n,t){n[Uo]+=t;let e=n,i=n[it];for(;null!==i&&(1===t&&1===e[Uo]||-1===t&&0===e[Uo]);)i[Uo]+=t,e=i,i=i[it]}const se={lFrame:J_(null),bindingsEnabled:!0};function H_(){return se.bindingsEnabled}function E(){return se.lFrame.lView}function xe(){return se.lFrame.tView}function Ut(n){return se.lFrame.contextLView=n,n[lt]}function Gt(n){return se.lFrame.contextLView=null,n}function Nt(){let n=j_();for(;null!==n&&64===n.type;)n=n.parent;return n}function j_(){return se.lFrame.currentTNode}function xi(n,t){const e=se.lFrame;e.currentTNode=n,e.isParent=t}function bh(){return se.lFrame.isParent}function Ch(){se.lFrame.isParent=!1}function on(){const n=se.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Ur(){return se.lFrame.bindingIndex++}function Ki(n){const t=se.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function Zx(n,t){const e=se.lFrame;e.bindingIndex=e.bindingRootIndex=n,Mh(t)}function Mh(n){se.lFrame.currentDirectiveIndex=n}function Sh(n){const t=se.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function G_(){return se.lFrame.currentQueryIndex}function Ih(n){se.lFrame.currentQueryIndex=n}function eP(n){const t=n[$];return 2===t.type?t.declTNode:1===t.type?n[zt]:null}function W_(n,t,e){if(e&ie.SkipSelf){let o=t,r=n;for(;!(o=o.parent,null!==o||e&ie.Host||(o=eP(r),null===o||(r=r[Hr],10&o.type))););if(null===o)return!1;t=o,n=r}const i=se.lFrame=q_();return i.currentTNode=t,i.lView=n,!0}function wh(n){const t=q_(),e=n[$];se.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function q_(){const n=se.lFrame,t=null===n?null:n.child;return null===t?J_(n):t}function J_(n){const t={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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function K_(){const n=se.lFrame;return se.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const X_=K_;function Dh(){const n=K_();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function rn(){return se.lFrame.selectedIndex}function Wo(n){se.lFrame.selectedIndex=n}function Je(){const n=se.lFrame;return B_(n.tView,n.selectedIndex)}function xh(){se.lFrame.currentNamespace=R_}function Ph(){!function oP(){se.lFrame.currentNamespace=null}()}function vc(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e<i;e++){const r=n.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:d}=r;s&&(n.contentHooks??(n.contentHooks=[])).push(-e,s),a&&((n.contentHooks??(n.contentHooks=[])).push(e,a),(n.contentCheckHooks??(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks??(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks??(n.viewHooks=[])).push(e,c),(n.viewCheckHooks??(n.viewCheckHooks=[])).push(e,c)),null!=d&&(n.destroyHooks??(n.destroyHooks=[])).push(e,d)}}function yc(n,t,e){Q_(n,t,3,e)}function bc(n,t,e,i){(3&n[ue])===e&&Q_(n,t,e,i)}function Eh(n,t){let e=n[ue];(3&e)===t&&(e&=2047,e+=1,n[ue]=e)}function Q_(n,t,e,i){const r=i??-1,s=t.length-1;let a=0;for(let l=void 0!==i?65535&n[jr]:0;l<s;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=i&&a>=i)break}else t[l]<0&&(n[jr]+=65536),(a<r||-1==r)&&(aP(n,e,t,l),n[jr]=(4294901760&n[jr])+l+2),l++}function aP(n,t,e,i){const o=e[i]<0,r=e[i+1],a=n[o?-e[i]:e[i]];if(o){if(n[ue]>>11<n[jr]>>16&&(3&n[ue])===t){n[ue]+=2048,jn(4,a,r);try{r.call(a)}finally{jn(5,a,r)}}}else{jn(4,a,r);try{r.call(a)}finally{jn(5,a,r)}}}const Gr=-1;class va{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Th(n,t,e){let i=0;for(;i<e.length;){const o=e[i];if("number"==typeof o){if(0!==o)break;i++;const r=e[i++],s=e[i++],a=e[i++];n.setAttribute(t,s,a,r)}else{const r=o,s=e[++i];Y_(r)?n.setProperty(t,r,s):n.setAttribute(t,r,s),i++}}return i}function Z_(n){return 3===n||4===n||6===n}function Y_(n){return 64===n.charCodeAt(0)}function ya(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let i=0;i<t.length;i++){const o=t[i];"number"==typeof o?e=o:0===e||ev(n,e,o,null,-1===e||2===e?t[++i]:null)}}return n}function ev(n,t,e,i,o){let r=0,s=n.length;if(-1===t)s=-1;else for(;r<n.length;){const a=n[r++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=r-1;break}}}for(;r<n.length;){const a=n[r];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==o&&(n[r+1]=o));if(i===n[r+1])return void(n[r+2]=o)}r++,null!==i&&r++,null!==o&&r++}-1!==s&&(n.splice(s,0,t),r=s+1),n.splice(r++,0,e),null!==i&&n.splice(r++,0,i),null!==o&&n.splice(r++,0,o)}function tv(n){return n!==Gr}function Cc(n){return 32767&n}function Mc(n,t){let e=function uP(n){return n>>16}(n),i=t;for(;e>0;)i=i[Hr],e--;return i}let Ah=!0;function Sc(n){const t=Ah;return Ah=n,t}const nv=255,iv=5;let hP=0;const Pi={};function Ic(n,t){const e=ov(n,t);if(-1!==e)return e;const i=t[$];i.firstCreatePass&&(n.injectorIndex=t.length,kh(i.data,n),kh(t,null),kh(i.blueprint,null));const o=Fh(n,t),r=n.injectorIndex;if(tv(o)){const s=Cc(o),a=Mc(o,t),l=a[$].data;for(let c=0;c<8;c++)t[r+c]=a[s+c]|l[s+c]}return t[r+8]=o,r}function kh(n,t){n.push(0,0,0,0,0,0,0,0,t)}function ov(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Fh(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,o=t;for(;null!==o;){if(i=uv(o),null===i)return Gr;if(e++,o=o[Hr],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return Gr}function Rh(n,t,e){!function fP(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(ua)&&(i=e[ua]),null==i&&(i=e[ua]=hP++);const o=i&nv;t.data[n+(o>>iv)]|=1<<o}(n,t,e)}function rv(n,t,e){if(e&ie.Optional||void 0!==n)return n;en()}function sv(n,t,e,i){if(e&ie.Optional&&void 0===i&&(i=null),!(e&(ie.Self|ie.Host))){const o=n[uc],r=Hn(void 0);try{return o?o.get(t,i,e&ie.Optional):y_(t,i,e&ie.Optional)}finally{Hn(r)}}return rv(i,0,e)}function av(n,t,e,i=ie.Default,o){if(null!==n){if(1024&t[ue]){const s=function vP(n,t,e,i,o){let r=n,s=t;for(;null!==r&&null!==s&&1024&s[ue]&&!(256&s[ue]);){const a=lv(r,s,e,i|ie.Self,Pi);if(a!==Pi)return a;let l=r.parent;if(!l){const c=s[x_];if(c){const d=c.get(e,Pi,i);if(d!==Pi)return d}l=uv(s),s=s[Hr]}r=l}return o}(n,t,e,i,Pi);if(s!==Pi)return s}const r=lv(n,t,e,i,Pi);if(r!==Pi)return r}return sv(t,e,i,o)}function lv(n,t,e,i,o){const r=function gP(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(ua)?n[ua]:void 0;return"number"==typeof t?t>=0?t&nv:_P:t}(e);if("function"==typeof r){if(!W_(t,n,i))return i&ie.Host?rv(o,0,i):sv(t,e,i,o);try{const s=r(i);if(null!=s||i&ie.Optional)return s;en()}finally{X_()}}else if("number"==typeof r){let s=null,a=ov(n,t),l=Gr,c=i&ie.Host?t[$t][zt]:null;for((-1===a||i&ie.SkipSelf)&&(l=-1===a?Fh(n,t):t[a+8],l!==Gr&&dv(i,!1)?(s=t[$],a=Cc(l),t=Mc(l,t)):a=-1);-1!==a;){const d=t[$];if(cv(r,a,d.data)){const u=mP(a,t,e,s,i,c);if(u!==Pi)return u}l=t[a+8],l!==Gr&&dv(i,t[$].data[a+8]===c)&&cv(r,a,t)?(s=d,a=Cc(l),t=Mc(l,t)):a=-1}}return o}function mP(n,t,e,i,o,r){const s=t[$],a=s.data[n+8],d=wc(a,s,e,null==i?ga(a)&&Ah:i!=s&&0!=(3&a.type),o&ie.Host&&r===a);return null!==d?qo(t,s,d,a):Pi}function wc(n,t,e,i,o){const r=n.providerIndexes,s=t.data,a=1048575&r,l=n.directiveStart,d=r>>20,h=o?a+d:n.directiveEnd;for(let f=i?a:a+d;f<h;f++){const m=s[f];if(f<l&&e===m||f>=l&&m.type===e)return f}if(o){const f=s[l];if(f&&hi(f)&&f.type===e)return l}return null}function qo(n,t,e,i){let o=n[e];const r=t.data;if(function lP(n){return n instanceof va}(o)){const s=o;s.resolving&&function ft(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new _(-200,`Circular dependency in DI detected for ${n}${e}`)}(function j(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():D(n)}(r[e]));const a=Sc(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Hn(s.injectImpl):null;W_(n,i,ie.Default);try{o=n[e]=s.factory(void 0,r,n,i),t.firstCreatePass&&e>=i.directiveStart&&function sP(n,t,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=t.type.prototype;if(i){const s=A_(t);(e.preOrderHooks??(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(n,s)}o&&(e.preOrderHooks??(e.preOrderHooks=[])).push(0-n,o),r&&((e.preOrderHooks??(e.preOrderHooks=[])).push(n,r),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(n,r))}(e,r[e],t)}finally{null!==l&&Hn(l),Sc(a),s.resolving=!1,X_()}}return o}function cv(n,t,e){return!!(e[t+(n>>iv)]&1<<n)}function dv(n,t){return!(n&ie.Self||n&ie.Host&&t)}class Wr{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return av(this._tNode,this._lView,t,lc(i),e)}}function _P(){return new Wr(Nt(),E())}function Se(n){return Ui(()=>{const t=n.prototype.constructor,e=t[Wi]||Nh(t),i=Object.prototype;let o=Object.getPrototypeOf(n.prototype).constructor;for(;o&&o!==i;){const r=o[Wi]||Nh(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Nh(n){return aa(n)?()=>{const t=Nh(Q(n));return t&&t()}:Go(n)}function uv(n){const t=n[$],e=t.type;return 2===e?t.declTNode:1===e?n[zt]:null}const Jr="__parameters__";function Xr(n,t,e){return Ui(()=>{const i=function Bh(n){return function(...e){if(n){const i=n(...e);for(const o in i)this[o]=i[o]}}}(t);function o(...r){if(this instanceof o)return i.apply(this,r),this;const s=new o(...r);return a.annotation=s,a;function a(l,c,d){const u=l.hasOwnProperty(Jr)?l[Jr]:Object.defineProperty(l,Jr,{value:[]})[Jr];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=n,o.annotationCls=o,o})}class L{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=z({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Jo(n,t){n.forEach(e=>Array.isArray(e)?Jo(e,t):t(e))}function fv(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function xc(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Ma(n,t){const e=[];for(let i=0;i<n;i++)e.push(t);return e}function Dn(n,t,e){let i=Qr(n,t);return i>=0?n[1|i]=e:(i=~i,function MP(n,t,e,i){let o=n.length;if(o==t)n.push(e,i);else if(1===o)n.push(i,n[0]),n[0]=e;else{for(o--,n.push(n[o-1],n[o]);o>t;)n[o]=n[o-2],o--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Vh(n,t){const e=Qr(n,t);if(e>=0)return n[1|e]}function Qr(n,t){return function pv(n,t,e){let i=0,o=n.length>>e;for(;o!==i;){const r=i+(o-i>>1),s=n[r<<e];if(t===s)return r<<e;s>t?o=r:i=r+1}return~(o<<e)}(n,t,1)}const Ec=da(Xr("Inject",n=>({token:n})),-1),Ko=da(Xr("Optional"),8),Oc=da(Xr("SkipSelf"),4);var mn=(()=>((mn=mn||{})[mn.Important=1]="Important",mn[mn.DashCase=2]="DashCase",mn))();const Uh=new Map;let UP=0;const Wh="__ngContext__";function Wt(n,t){In(t)?(n[Wh]=t[ma],function WP(n){Uh.set(n[ma],n)}(t)):n[Wh]=t}let qh;function Jh(n,t){return qh(n,t)}function Da(n){const t=n[it];return ui(t)?t[it]:t}function Kh(n){return Fv(n[fa])}function Xh(n){return Fv(n[di])}function Fv(n){for(;null!==n&&!ui(n);)n=n[di];return n}function Yr(n,t,e,i,o){if(null!=i){let r,s=!1;ui(i)?r=i:In(i)&&(s=!0,i=i[qi]);const a=Rt(i);0===n&&null!==e?null==o?Hv(t,e,a):Xo(t,e,a,o||null,!0):1===n&&null!==e?Xo(t,e,a,o||null,!0):2===n?function rf(n,t,e){const i=kc(n,t);i&&function hE(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=r&&function mE(n,t,e,i,o){const r=e[fc];r!==Rt(e)&&Yr(t,n,i,r,o);for(let a=nn;a<e.length;a++){const l=e[a];xa(l[$],l,n,t,i,r)}}(t,n,r,e,o)}}function Zh(n,t,e){return n.createElement(t,e)}function Nv(n,t){const e=n[zr],i=e.indexOf(t),o=t[it];512&t[ue]&&(t[ue]&=-513,yh(o,-1)),e.splice(i,1)}function Yh(n,t){if(n.length<=nn)return;const e=nn+t,i=n[e];if(i){const o=i[pa];null!==o&&o!==n&&Nv(o,i),t>0&&(n[e-1][di]=i[di]);const r=xc(n,nn+t);!function oE(n,t){xa(n,t,t[ge],2,null,null),t[qi]=null,t[zt]=null}(i[$],i);const s=r[Di];null!==s&&s.detachView(r[$]),i[it]=null,i[di]=null,i[ue]&=-65}return i}function Bv(n,t){if(!(128&t[ue])){const e=t[ge];e.destroyNode&&xa(n,t,e,3,null,null),function aE(n){let t=n[fa];if(!t)return ef(n[$],n);for(;t;){let e=null;if(In(t))e=t[fa];else{const i=t[nn];i&&(e=i)}if(!e){for(;t&&!t[di]&&t!==n;)In(t)&&ef(t[$],t),t=t[it];null===t&&(t=n),In(t)&&ef(t[$],t),e=t&&t[di]}t=e}}(t)}}function ef(n,t){if(!(128&t[ue])){t[ue]&=-65,t[ue]|=128,function uE(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i<e.length;i+=2){const o=t[e[i]];if(!(o instanceof va)){const r=e[i+1];if(Array.isArray(r))for(let s=0;s<r.length;s+=2){const a=o[r[s]],l=r[s+1];jn(4,a,l);try{l.call(a)}finally{jn(5,a,l)}}else{jn(4,o,r);try{r.call(o)}finally{jn(5,o,r)}}}}}(n,t),function dE(n,t){const e=n.cleanup,i=t[Vr];let o=-1;if(null!==e)for(let r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const s=e[r+3];s>=0?i[o=s]():i[o=-s].unsubscribe(),r+=2}else{const s=i[o=e[r+1]];e[r].call(s)}if(null!==i){for(let r=o+1;r<i.length;r++)(0,i[r])();t[Vr]=null}}(n,t),1===t[$].type&&t[ge].destroy();const e=t[pa];if(null!==e&&ui(t[it])){e!==t[it]&&Nv(e,t);const i=t[Di];null!==i&&i.detachView(n)}!function qP(n){Uh.delete(n[ma])}(t)}}function Lv(n,t,e){return function Vv(n,t,e){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return e[qi];{const{componentOffset:o}=i;if(o>-1){const{encapsulation:r}=n.data[i.directiveStart+o];if(r===ci.None||r===ci.Emulated)return null}return wn(i,e)}}(n,t.parent,e)}function Xo(n,t,e,i,o){n.insertBefore(t,e,i,o)}function Hv(n,t,e){n.appendChild(t,e)}function jv(n,t,e,i,o){null!==i?Xo(n,t,e,i,o):Hv(n,t,e)}function kc(n,t){return n.parentNode(t)}function zv(n,t,e){return Uv(n,t,e)}let tf,Nc,lf,Bc,Uv=function $v(n,t,e){return 40&n.type?wn(n,e):null};function Fc(n,t,e,i){const o=Lv(n,i,t),r=t[ge],a=zv(i.parent||t[zt],i,t);if(null!=o)if(Array.isArray(e))for(let l=0;l<e.length;l++)jv(r,o,e[l],a,!1);else jv(r,o,e,a,!1);void 0!==tf&&tf(r,i,t,e,o)}function Rc(n,t){if(null!==t){const e=t.type;if(3&e)return wn(t,n);if(4&e)return nf(-1,n[t.index]);if(8&e){const i=t.child;if(null!==i)return Rc(n,i);{const o=n[t.index];return ui(o)?nf(-1,o):Rt(o)}}if(32&e)return Jh(t,n)()||Rt(n[t.index]);{const i=Wv(n,t);return null!==i?Array.isArray(i)?i[0]:Rc(Da(n[$t]),i):Rc(n,t.next)}}return null}function Wv(n,t){return null!==t?n[$t][zt].projection[t.projection]:null}function nf(n,t){const e=nn+n+1;if(e<t.length){const i=t[e],o=i[$].firstChild;if(null!==o)return Rc(i,o)}return t[fc]}function sf(n,t,e,i,o,r,s){for(;null!=e;){const a=i[e.index],l=e.type;if(s&&0===t&&(a&&Wt(Rt(a),i),e.flags|=2),32!=(32&e.flags))if(8&l)sf(n,t,e.child,i,o,r,!1),Yr(t,n,o,a,r);else if(32&l){const c=Jh(e,i);let d;for(;d=c();)Yr(t,n,o,d,r);Yr(t,n,o,a,r)}else 16&l?qv(n,t,i,e,o,r):Yr(t,n,o,a,r);e=s?e.projectionNext:e.next}}function xa(n,t,e,i,o,r){sf(e,i,n.firstChild,t,o,r,!1)}function qv(n,t,e,i,o,r){const s=e[$t],l=s[zt].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Yr(t,n,o,l[c],r);else sf(n,t,l,s[it],o,r,!0)}function Jv(n,t,e){""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e)}function Kv(n,t,e){const{mergedAttrs:i,classes:o,styles:r}=e;null!==i&&Th(n,t,i),null!==o&&Jv(n,t,o),null!==r&&function _E(n,t,e){n.setAttribute(t,"style",e)}(n,t,r)}function es(n){return function af(){if(void 0===Nc&&(Nc=null,$e.trustedTypes))try{Nc=$e.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Nc}()?.createHTML(n)||n}function Qv(n){return function cf(){if(void 0===Bc&&(Bc=null,$e.trustedTypes))try{Bc=$e.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Bc}()?.createHTML(n)||n}class ey{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${y})`}}function So(n){return n instanceof ey?n.changingThisBreaksApplicationSecurity:n}class PE{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(es(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class EE{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const e=this.inertDocument.createElement("template");return e.innerHTML=es(t),e}}const TE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Xi(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Ea(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const ny=Xi("area,br,col,hr,img,wbr"),iy=Xi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),oy=Xi("rp,rt"),uf=Ea(ny,Ea(iy,Xi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ea(oy,Xi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ea(oy,iy)),hf=Xi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ry=Ea(hf,Xi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Xi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),AE=Xi("script,style,template");class kE{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!uf.hasOwnProperty(e))return this.sanitizedSomething=!0,!AE.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let o=0;o<i.length;o++){const r=i.item(o),s=r.name,a=s.toLowerCase();if(!ry.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=r.value;hf[a]&&(n=l,l=(n=String(n)).match(TE)?n:"unsafe:"+n),this.buf.push(" ",s,'="',sy(l),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();uf.hasOwnProperty(e)&&!ny.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(sy(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const FE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,RE=/([^\#-~ |!])/g;function sy(n){return n.replace(/&/g,"&amp;").replace(FE,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(RE,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Lc;function ff(n){return"content"in n&&function BE(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var mt=(()=>((mt=mt||{})[mt.NONE=0]="NONE",mt[mt.HTML=1]="HTML",mt[mt.STYLE=2]="STYLE",mt[mt.SCRIPT=3]="SCRIPT",mt[mt.URL=4]="URL",mt[mt.RESOURCE_URL=5]="RESOURCE_URL",mt))();function ay(n){const t=function Oa(){const n=E();return n&&n[mh]}();return t?Qv(t.sanitize(mt.HTML,n)||""):function Pa(n,t){const e=function xE(n){return n instanceof ey&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${y})`)}return e===t}(n,"HTML")?Qv(So(n)):function NE(n,t){let e=null;try{Lc=Lc||function ty(n){const t=new EE(n);return function OE(){try{return!!(new window.DOMParser).parseFromString(es(""),"text/html")}catch{return!1}}()?new PE(t):t}(n);let i=t?String(t):"";e=Lc.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=Lc.getInertBodyElement(i)}while(i!==r);return es((new kE).sanitizeChildren(ff(e)||e))}finally{if(e){const i=ff(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}(function Xv(){return void 0!==lf?lf:typeof document<"u"?document:void 0}(),D(n))}const dy=new L("ENVIRONMENT_INITIALIZER"),uy=new L("INJECTOR",-1),hy=new L("INJECTOR_DEF_TYPES");class fy{get(t,e=la){if(e===la){const i=new Error(`NullInjectorError: No provider for ${Ne(t)}!`);throw i.name="NullInjectorError",i}return e}}function GE(...n){return{\u0275providers:py(0,n),\u0275fromNgModule:!0}}function py(n,...t){const e=[],i=new Set;let o;return Jo(t,r=>{const s=r;pf(s,e,[],i)&&(o||(o=[]),o.push(s))}),void 0!==o&&my(o,e),e}function my(n,t){for(let e=0;e<n.length;e++){const{providers:o}=n[e];mf(o,r=>{t.push(r)})}}function pf(n,t,e,i){if(!(n=Q(n)))return!1;let o=null,r=__(n);const s=!r&&ke(n);if(r||s){if(s&&!s.standalone)return!1;o=n}else{const l=n.ngModule;if(r=__(l),!r)return!1;o=l}const a=i.has(o);if(s){if(a)return!1;if(i.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)pf(c,t,e,i)}}else{if(!r)return!1;{if(null!=r.imports&&!a){let c;i.add(o);try{Jo(r.imports,d=>{pf(d,t,e,i)&&(c||(c=[]),c.push(d))})}finally{}void 0!==c&&my(c,t)}if(!a){const c=Go(o)||(()=>new o);t.push({provide:o,useFactory:c,deps:Te},{provide:hy,useValue:o,multi:!0},{provide:dy,useValue:()=>w(o),multi:!0})}const l=r.providers;null==l||a||mf(l,d=>{t.push(d)})}}return o!==n&&void 0!==n.providers}function mf(n,t){for(let e of n)p(e)&&(e=e.\u0275providers),Array.isArray(e)?mf(e,t):t(e)}const WE=Ee({provide:String,useValue:Ee});function gf(n){return null!==n&&"object"==typeof n&&WE in n}function Qo(n){return"function"==typeof n}const _f=new L("Set Injector scope."),Vc={},JE={};let vf;function Hc(){return void 0===vf&&(vf=new fy),vf}class Zo{}class vy extends Zo{get destroyed(){return this._destroyed}constructor(t,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,bf(t,s=>this.processProvider(s)),this.records.set(uy,ts(void 0,this)),o.has("environment")&&this.records.set(Zo,ts(void 0,this));const r=this.records.get(_f);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(hy.multi,Te,ie.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=Lr(this),i=Hn(void 0);try{return t()}finally{Lr(e),Hn(i)}}get(t,e=la,i=ie.Default){this.assertNotDestroyed(),i=lc(i);const o=Lr(this),r=Hn(void 0);try{if(!(i&ie.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function YE(n){return"function"==typeof n||"object"==typeof n&&n instanceof L}(t)&&rc(t);a=l&&this.injectableDefInScope(l)?ts(yf(t),Vc):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&ie.Self?Hc():this.parent).get(t,e=i&ie.Optional&&e===la?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[ac]=s[ac]||[]).unshift(Ne(t)),o)throw s;return function xx(n,t,e,i){const o=n[ac];throw t[b_]&&o.unshift(t[b_]),n.message=function Px(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&n.charAt(1)==Ix?n.slice(2):n;let o=Ne(t);if(Array.isArray(t))o=t.map(Ne).join(" -> ");else if("object"==typeof t){let r=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];r.push(s+":"+("string"==typeof a?JSON.stringify(a):Ne(a)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${n.replace(Sx,"\n  ")}`}("\n"+n.message,o,e,i),n[Mx]=o,n[ac]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{Hn(r),Lr(o)}}resolveInjectorInitializers(){const t=Lr(this),e=Hn(void 0);try{const i=this.get(dy.multi,Te,ie.Self);for(const o of i)o()}finally{Lr(t),Hn(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(Ne(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new _(205,!1)}processProvider(t){let e=Qo(t=Q(t))?t:Q(t&&t.provide);const i=function XE(n){return gf(n)?ts(void 0,n.useValue):ts(yy(n),Vc)}(t);if(Qo(t)||!0!==t.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=ts(void 0,Vc,!0),o.factory=()=>hh(o.multi),this.records.set(e,o)),e=t,o.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Vc&&(e.value=JE,e.value=e.factory()),"object"==typeof e.value&&e.value&&function ZE(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Q(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function yf(n){const t=rc(n),e=null!==t?t.factory:Go(n);if(null!==e)return e;if(n instanceof L)throw new _(204,!1);if(n instanceof Function)return function KE(n){const t=n.length;if(t>0)throw Ma(t,"?"),new _(204,!1);const e=function yx(n){return n&&(n[sc]||n[v_])||null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new _(204,!1)}function yy(n,t,e){let i;if(Qo(n)){const o=Q(n);return Go(o)||yf(o)}if(gf(n))i=()=>Q(n.useValue);else if(function _y(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...hh(n.deps||[]));else if(function gy(n){return!(!n||!n.useExisting)}(n))i=()=>w(Q(n.useExisting));else{const o=Q(n&&(n.useClass||n.provide));if(!function QE(n){return!!n.deps}(n))return Go(o)||yf(o);i=()=>new o(...hh(n.deps))}return i}function ts(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function bf(n,t){for(const e of n)Array.isArray(e)?bf(e,t):e&&p(e)?bf(e.\u0275providers,t):t(e)}class e1{}class by{}class n1{resolveComponentFactory(t){throw function t1(n){const t=Error(`No component factory found for ${Ne(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Yo=(()=>{class n{}return n.NULL=new n1,n})();function o1(){return ns(Nt(),E())}function ns(n,t){return new oe(wn(n,t))}let oe=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=o1,n})();function r1(n){return n instanceof oe?n.nativeElement:n}class Ta{}let xn=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function s1(){const n=E(),e=pn(Nt().index,n);return(In(e)?e:n)[ge]}(),n})(),a1=(()=>{class n{}return n.\u0275prov=z({token:n,providedIn:"root",factory:()=>null}),n})();class Aa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const l1=new Aa("15.2.9"),Cf={},Mf="ngOriginalError";function Sf(n){return n[Mf]}class is{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&Sf(t);for(;e&&Sf(e);)e=Sf(e);return e||null}}function Sy(n,t,e){let i=n.length;for(;;){const o=n.indexOf(t,e);if(-1===o)return o;if(0===o||n.charCodeAt(o-1)<=32){const r=t.length;if(o+r===i||n.charCodeAt(o+r)<=32)return o}e=o+1}}const Iy="ng-template";function y1(n,t,e){let i=0,o=!0;for(;i<n.length;){let r=n[i++];if("string"==typeof r&&o){const s=n[i++];if(e&&"class"===r&&-1!==Sy(s.toLowerCase(),t,0))return!0}else{if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===t)return!0;return!1}"number"==typeof r&&(o=!1)}}return!1}function wy(n){return 4===n.type&&n.value!==Iy}function b1(n,t,e){return t===(4!==n.type||e?n.value:Iy)}function C1(n,t,e){let i=4;const o=n.attrs||[],r=function I1(n){for(let t=0;t<n.length;t++)if(Z_(n[t]))return t;return n.length}(o);let s=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!s)if(4&i){if(i=2|1&i,""!==l&&!b1(n,l,e)||""===l&&1===t.length){if(fi(i))return!1;s=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==n.attrs){if(!y1(n.attrs,c,e)){if(fi(i))return!1;s=!0}continue}const u=M1(8&i?"class":l,o,wy(n),e);if(-1===u){if(fi(i))return!1;s=!0;continue}if(""!==c){let h;h=u>r?"":o[u+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==Sy(f,c,0)||2&i&&c!==h){if(fi(i))return!1;s=!0}}}}else{if(!s&&!fi(i)&&!fi(l))return!1;if(s&&fi(l))continue;s=!1,i=l|1&i}}return fi(i)||s}function fi(n){return 0==(1&n)}function M1(n,t,e,i){if(null===t)return-1;let o=0;if(i||!e){let r=!1;for(;o<t.length;){const s=t[o];if(s===n)return o;if(3===s||6===s)r=!0;else{if(1===s||2===s){let a=t[++o];for(;"string"==typeof a;)a=t[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=r?1:2}return-1}return function w1(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const i=n[e];if("number"==typeof i)return-1;if(i===t)return e;e++}return-1}(t,n)}function Dy(n,t,e=!1){for(let i=0;i<t.length;i++)if(C1(n,t[i],e))return!0;return!1}function D1(n,t){e:for(let e=0;e<t.length;e++){const i=t[e];if(n.length===i.length){for(let o=0;o<n.length;o++)if(n[o]!==i[o])continue e;return!0}}return!1}function xy(n,t){return n?":not("+t.trim()+")":t}function x1(n){let t=n[0],e=1,i=2,o="",r=!1;for(;e<n.length;){let s=n[e];if("string"==typeof s)if(2&i){const a=n[++e];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?o+="."+s:4&i&&(o+=" "+s);else""!==o&&!fi(s)&&(t+=xy(r,o),o=""),i=s,r=r||!fi(i);e++}return""!==o&&(t+=xy(r,o)),t}const ae={};function P(n){Py(xe(),E(),rn()+n,!1)}function Py(n,t,e,i){if(!i)if(3==(3&t[ue])){const r=n.preOrderCheckHooks;null!==r&&yc(t,r,e)}else{const r=n.preOrderHooks;null!==r&&bc(t,r,0,e)}Wo(e)}function Ay(n,t=null,e=null,i){const o=ky(n,t,e,i);return o.resolveInjectorInitializers(),o}function ky(n,t=null,e=null,i,o=new Set){const r=[e||Te,GE(n)];return i=i||("object"==typeof n?void 0:Ne(n)),new vy(r,t||Hc(),i||null,o)}let $n=(()=>{class n{static create(e,i){if(Array.isArray(e))return Ay({name:""},i,e,"");{const o=e.name??"";return Ay({name:o},e.parent,e.providers,o)}}}return n.THROW_IF_NOT_FOUND=la,n.NULL=new fy,n.\u0275prov=z({token:n,providedIn:"any",factory:()=>w(uy)}),n.__NG_ELEMENT_ID__=-1,n})();function b(n,t=ie.Default){const e=E();return null===e?w(n,t):av(Nt(),e,Q(n),t)}function jy(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i+1];if(-1!==r){const s=n.data[r];Ih(e[i]),s.contentQueries(2,t[r],r)}}}function zc(n,t,e,i,o,r,s,a,l,c,d){const u=t.blueprint.slice();return u[qi]=o,u[ue]=76|i,(null!==d||n&&1024&n[ue])&&(u[ue]|=1024),L_(u),u[it]=u[Hr]=n,u[lt]=e,u[hc]=s||n&&n[hc],u[ge]=a||n&&n[ge],u[mh]=l||n&&n[mh]||null,u[uc]=c||n&&n[uc]||null,u[zt]=r,u[ma]=function GP(){return UP++}(),u[x_]=d,u[$t]=2==t.type?n[$t]:u,u}function ss(n,t,e,i,o){let r=n.data[t];if(null===r)r=function Pf(n,t,e,i,o){const r=j_(),s=bh(),l=n.data[t]=function Y1(n,t,e,i,o,r){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?r:r&&r.parent,e,t,i,o);return null===n.firstChild&&(n.firstChild=l),null!==r&&(s?null==r.child&&null!==l.parent&&(r.child=l):null===r.next&&(r.next=l,l.prev=r)),l}(n,t,e,i,o),function Qx(){return se.lFrame.inI18n}()&&(r.flags|=32);else if(64&r.type){r.type=e,r.value=i,r.attrs=o;const s=function _a(){const n=se.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();r.injectorIndex=null===s?-1:s.injectorIndex}return xi(r,!0),r}function ka(n,t,e,i){if(0===e)return-1;const o=t.length;for(let r=0;r<e;r++)t.push(i),n.blueprint.push(i),n.data.push(null);return o}function Ef(n,t,e){wh(t);try{const i=n.viewQuery;null!==i&&Lf(1,i,e);const o=n.template;null!==o&&zy(n,t,o,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&jy(n,t),n.staticViewQueries&&Lf(2,n.viewQuery,e);const r=n.components;null!==r&&function X1(n,t){for(let e=0;e<t.length;e++)yO(n,t[e])}(t,r)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{t[ue]&=-5,Dh()}}function $c(n,t,e,i){const o=t[ue];if(128!=(128&o)){wh(t);try{L_(t),function $_(n){return se.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&zy(n,t,e,2,i);const s=3==(3&o);if(s){const c=n.preOrderCheckHooks;null!==c&&yc(t,c,null)}else{const c=n.preOrderHooks;null!==c&&bc(t,c,0,null),Eh(t,0)}if(function _O(n){for(let t=Kh(n);null!==t;t=Xh(t)){if(!t[P_])continue;const e=t[zr];for(let i=0;i<e.length;i++){const o=e[i];512&o[ue]||yh(o[it],1),o[ue]|=512}}}(t),function gO(n){for(let t=Kh(n);null!==t;t=Xh(t))for(let e=nn;e<t.length;e++){const i=t[e],o=i[$];_c(i)&&$c(o,i,o.template,i[lt])}}(t),null!==n.contentQueries&&jy(n,t),s){const c=n.contentCheckHooks;null!==c&&yc(t,c)}else{const c=n.contentHooks;null!==c&&bc(t,c,1),Eh(t,1)}!function J1(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const o=e[i];if(o<0)Wo(~o);else{const r=o,s=e[++i],a=e[++i];Zx(s,r),a(2,t[r])}}}finally{Wo(-1)}}(n,t);const a=n.components;null!==a&&function K1(n,t){for(let e=0;e<t.length;e++)vO(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&Lf(2,l,i),s){const c=n.viewCheckHooks;null!==c&&yc(t,c)}else{const c=n.viewHooks;null!==c&&bc(t,c,2),Eh(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[ue]&=-41,512&t[ue]&&(t[ue]&=-513,yh(t[it],-1))}finally{Dh()}}}function zy(n,t,e,i,o){const r=rn(),s=2&i;try{Wo(-1),s&&t.length>Ue&&Py(n,t,Ue,!1),jn(s?2:0,o),e(i,o)}finally{Wo(r),jn(s?3:1,o)}}function Of(n,t,e){if(_h(t)){const o=t.directiveEnd;for(let r=t.directiveStart;r<o;r++){const s=n.data[r];s.contentQueries&&s.contentQueries(1,e[r],r)}}}function Tf(n,t,e){H_()&&(function sO(n,t,e,i){const o=e.directiveStart,r=e.directiveEnd;ga(e)&&function fO(n,t,e){const i=wn(t,n),o=$y(e),r=n[hc],s=Uc(n,zc(n,o,null,e.onPush?32:16,i,t,r,r.createRenderer(i,e),null,null,null));n[t.index]=s}(t,e,n.data[o+e.componentOffset]),n.firstCreatePass||Ic(e,t),Wt(i,t);const s=e.initialInputs;for(let a=o;a<r;a++){const l=n.data[a],c=qo(t,n,a,e);Wt(c,t),null!==s&&pO(0,a-o,c,l,0,s),hi(l)&&(pn(e.index,t)[lt]=qo(t,n,a,e))}}(n,t,e,wn(e,t)),64==(64&e.flags)&&Jy(n,t,e))}function Af(n,t,e=wn){const i=t.localNames;if(null!==i){let o=t.index+1;for(let r=0;r<i.length;r+=2){const s=i[r+1],a=-1===s?e(t,n):n[s];n[o++]=a}}}function $y(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=kf(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function kf(n,t,e,i,o,r,s,a,l,c){const d=Ue+i,u=d+o,h=function Q1(n,t){const e=[];for(let i=0;i<t;i++)e.push(i<n?null:ae);return e}(d,u),f="function"==typeof c?c():c;return h[$]={type:n,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:u,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Uy(n,t,e,i){const o=Xy(t);null===e?o.push(i):(o.push(e),n.firstCreatePass&&Qy(n).push(i,o.length-1))}function Gy(n,t,e,i){for(let o in n)if(n.hasOwnProperty(o)){e=null===e?{}:e;const r=n[o];null===i?Wy(e,t,o,r):i.hasOwnProperty(o)&&Wy(e,t,i[o],r)}return e}function Wy(n,t,e,i){n.hasOwnProperty(e)?n[e].push(t,i):n[e]=[t,i]}function Pn(n,t,e,i,o,r,s,a){const l=wn(t,e);let d,c=t.inputs;!a&&null!=c&&(d=c[i])?(Vf(n,e,d,i,o),ga(t)&&function nO(n,t){const e=pn(t,n);16&e[ue]||(e[ue]|=32)}(e,t.index)):3&t.type&&(i=function tO(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),o=null!=s?s(o,t.value||"",i):o,r.setProperty(l,i,o))}function Ff(n,t,e,i){if(H_()){const o=null===i?null:{"":-1},r=function lO(n,t){const e=n.directiveRegistry;let i=null,o=null;if(e)for(let r=0;r<e.length;r++){const s=e[r];if(Dy(t,s.selectors,!1))if(i||(i=[]),hi(s))if(null!==s.findHostDirectiveDefs){const a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),i.unshift(...a,s),Rf(n,t,a.length)}else i.unshift(s),Rf(n,t,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,i,o),i.push(s)}return null===i?null:[i,o]}(n,e);let s,a;null===r?s=a=null:[s,a]=r,null!==s&&qy(n,t,e,s,o,a),o&&function cO(n,t,e){if(t){const i=n.localNames=[];for(let o=0;o<t.length;o+=2){const r=e[t[o+1]];if(null==r)throw new _(-301,!1);i.push(t[o],r)}}}(e,i,o)}e.mergedAttrs=ya(e.mergedAttrs,e.attrs)}function qy(n,t,e,i,o,r){for(let c=0;c<i.length;c++)Rh(Ic(e,t),n,i[c].type);!function uO(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}(e,n.data.length,i.length);for(let c=0;c<i.length;c++){const d=i[c];d.providersResolver&&d.providersResolver(d)}let s=!1,a=!1,l=ka(n,t,i.length,null);for(let c=0;c<i.length;c++){const d=i[c];e.mergedAttrs=ya(e.mergedAttrs,d.hostAttrs),hO(n,e,t,l,d),dO(l,d,o),null!==d.contentQueries&&(e.flags|=4),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=64);const u=d.type.prototype;!s&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((n.preOrderHooks??(n.preOrderHooks=[])).push(e.index),s=!0),!a&&(u.ngOnChanges||u.ngDoCheck)&&((n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e.index),a=!0),l++}!function eO(n,t,e){const o=t.directiveEnd,r=n.data,s=t.attrs,a=[];let l=null,c=null;for(let d=t.directiveStart;d<o;d++){const u=r[d],h=e?e.get(u):null,m=h?h.outputs:null;l=Gy(u.inputs,d,l,h?h.inputs:null),c=Gy(u.outputs,d,c,m);const v=null===l||null===s||wy(t)?null:mO(l,d,s);a.push(v)}null!==l&&(l.hasOwnProperty("class")&&(t.flags|=8),l.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=l,t.outputs=c}(n,e,r)}function Jy(n,t,e){const i=e.directiveStart,o=e.directiveEnd,r=e.index,s=function Yx(){return se.lFrame.currentDirectiveIndex}();try{Wo(r);for(let a=i;a<o;a++){const l=n.data[a],c=t[a];Mh(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&aO(l,c)}}finally{Wo(-1),Mh(s)}}function aO(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function Rf(n,t,e){t.componentOffset=e,(n.components??(n.components=[])).push(t.index)}function dO(n,t,e){if(e){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)e[t.exportAs[i]]=n;hi(t)&&(e[""]=n)}}function hO(n,t,e,i,o){n.data[i]=o;const r=o.factory||(o.factory=Go(o.type)),s=new va(r,hi(o),b);n.blueprint[i]=s,e[i]=s,function oO(n,t,e,i,o){const r=o.hostBindings;if(r){let s=n.hostBindingOpCodes;null===s&&(s=n.hostBindingOpCodes=[]);const a=~t.index;(function rO(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,r)}}(n,t,i,ka(n,e,o.hostVars,ae),o)}function Ei(n,t,e,i,o,r){const s=wn(n,t);!function Nf(n,t,e,i,o,r,s){if(null==r)n.removeAttribute(t,o,e);else{const a=null==s?D(r):s(r,i||"",o);n.setAttribute(t,o,a,e)}}(t[ge],s,r,n.value,e,i,o)}function pO(n,t,e,i,o,r){const s=r[t];if(null!==s){const a=i.setInput;for(let l=0;l<s.length;){const c=s[l++],d=s[l++],u=s[l++];null!==a?i.setInput(e,u,c,d):e[d]=u}}}function mO(n,t,e){let i=null,o=0;for(;o<e.length;){const r=e[o];if(0!==r)if(5!==r){if("number"==typeof r)break;if(n.hasOwnProperty(r)){null===i&&(i=[]);const s=n[r];for(let a=0;a<s.length;a+=2)if(s[a]===t){i.push(r,s[a+1],e[o+1]);break}}o+=2}else o+=2;else o+=4}return i}function Ky(n,t,e,i){return[n,!0,!1,t,null,0,i,e,null,null]}function vO(n,t){const e=pn(t,n);if(_c(e)){const i=e[$];48&e[ue]?$c(i,e,i.template,e[lt]):e[Uo]>0&&Bf(e)}}function Bf(n){for(let i=Kh(n);null!==i;i=Xh(i))for(let o=nn;o<i.length;o++){const r=i[o];if(_c(r))if(512&r[ue]){const s=r[$];$c(s,r,s.template,r[lt])}else r[Uo]>0&&Bf(r)}const e=n[$].components;if(null!==e)for(let i=0;i<e.length;i++){const o=pn(e[i],n);_c(o)&&o[Uo]>0&&Bf(o)}}function yO(n,t){const e=pn(t,n),i=e[$];(function bO(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(i,e),Ef(i,e,e[lt])}function Uc(n,t){return n[fa]?n[D_][di]=t:n[fa]=t,n[D_]=t,t}function Gc(n){for(;n;){n[ue]|=32;const t=Da(n);if(Fx(n)&&!t)return n;n=t}return null}function Wc(n,t,e,i=!0){const o=t[hc];o.begin&&o.begin();try{$c(n,t,n.template,e)}catch(s){throw i&&Yy(t,s),s}finally{o.end&&o.end()}}function Lf(n,t,e){Ih(0),t(n,e)}function Xy(n){return n[Vr]||(n[Vr]=[])}function Qy(n){return n.cleanup||(n.cleanup=[])}function Yy(n,t){const e=n[uc],i=e?e.get(is,null):null;i&&i.handleError(t)}function Vf(n,t,e,i,o){for(let r=0;r<e.length;){const s=e[r++],a=e[r++],l=t[s],c=n.data[s];null!==c.setInput?c.setInput(l,o,i,a):l[a]=o}}function qc(n,t,e){let i=e?n.styles:null,o=e?n.classes:null,r=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?r=a:1==r?o=Br(o,a):2==r&&(i=Br(i,a+": "+t[++s]+";"))}e?n.styles=i:n.stylesWithoutHost=i,e?n.classes=o:n.classesWithoutHost=o}function Jc(n,t,e,i,o=!1){for(;null!==e;){const r=t[e.index];if(null!==r&&i.push(Rt(r)),ui(r))for(let a=nn;a<r.length;a++){const l=r[a],c=l[$].firstChild;null!==c&&Jc(l[$],l,c,i)}const s=e.type;if(8&s)Jc(n,t,e.child,i);else if(32&s){const a=Jh(e,t);let l;for(;l=a();)i.push(l)}else if(16&s){const a=Wv(t,e);if(Array.isArray(a))i.push(...a);else{const l=Da(t[$t]);Jc(l[$],l,a,i,!0)}}e=o?e.projectionNext:e.next}return i}class Fa{get rootNodes(){const t=this._lView,e=t[$];return Jc(e,t,e.firstChild,[])}constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[lt]}set context(t){this._lView[lt]=t}get destroyed(){return 128==(128&this._lView[ue])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[it];if(ui(t)){const e=t[pc],i=e?e.indexOf(this):-1;i>-1&&(Yh(t,i),xc(e,i))}this._attachedToViewContainer=!1}Bv(this._lView[$],this._lView)}onDestroy(t){Uy(this._lView[$],this._lView,null,t)}markForCheck(){Gc(this._cdRefInjectingView||this._lView)}detach(){this._lView[ue]&=-65}reattach(){this._lView[ue]|=64}detectChanges(){Wc(this._lView[$],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function sE(n,t){xa(n,t,t[ge],2,null,null)}(this._lView[$],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=t}}class CO extends Fa{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Wc(t[$],t,t[lt],!1)}checkNoChanges(){}get context(){return null}}class eb extends Yo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=ke(t);return new Ra(e,this.ngModule)}}function tb(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class SO{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){i=lc(i);const o=this.injector.get(t,Cf,i);return o!==Cf||e===Cf?o:this.parentInjector.get(t,e,i)}}class Ra extends by{get inputs(){return tb(this.componentDef.inputs)}get outputs(){return tb(this.componentDef.outputs)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function P1(n){return n.map(x1).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}create(t,e,i,o){let r=(o=o||this.ngModule)instanceof Zo?o:o?.injector;r&&null!==this.componentDef.getStandaloneInjector&&(r=this.componentDef.getStandaloneInjector(r)||r);const s=r?new SO(t,r):t,a=s.get(Ta,null);if(null===a)throw new _(407,!1);const l=s.get(a1,null),c=a.createRenderer(null,this.componentDef),d=this.componentDef.selectors[0][0]||"div",u=i?function Z1(n,t,e){return n.selectRootElement(t,e===ci.ShadowDom)}(c,i,this.componentDef.encapsulation):Zh(c,d,function MO(n){const t=n.toLowerCase();return"svg"===t?R_:"math"===t?"math":null}(d)),h=this.componentDef.onPush?288:272,f=kf(0,null,null,1,0,null,null,null,null,null),m=zc(null,f,null,h,null,null,a,c,l,s,null);let v,S;wh(m);try{const C=this.componentDef;let x,M=null;C.findHostDirectiveDefs?(x=[],M=new Map,C.findHostDirectiveDefs(C,x,M),x.push(C)):x=[C];const I=function wO(n,t){const e=n[$],i=Ue;return n[i]=t,ss(e,i,2,"#host",null)}(m,u),O=function DO(n,t,e,i,o,r,s,a){const l=o[$];!function xO(n,t,e,i){for(const o of n)t.mergedAttrs=ya(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(qc(t,t.mergedAttrs,!0),null!==e&&Kv(i,e,t))}(i,n,t,s);const c=r.createRenderer(t,e),d=zc(o,$y(e),null,e.onPush?32:16,o[n.index],n,r,c,a||null,null,null);return l.firstCreatePass&&Rf(l,n,i.length-1),Uc(o,d),o[n.index]=d}(I,u,C,x,m,a,c);S=B_(f,Ue),u&&function EO(n,t,e,i){if(i)Th(n,e,["ng-version",l1.full]);else{const{attrs:o,classes:r}=function E1(n){const t=[],e=[];let i=1,o=2;for(;i<n.length;){let r=n[i];if("string"==typeof r)2===o?""!==r&&t.push(r,n[++i]):8===o&&e.push(r);else{if(!fi(o))break;o=r}i++}return{attrs:t,classes:e}}(t.selectors[0]);o&&Th(n,e,o),r&&r.length>0&&Jv(n,e,r.join(" "))}}(c,C,u,i),void 0!==e&&function OO(n,t,e){const i=n.projection=[];for(let o=0;o<t.length;o++){const r=e[o];i.push(null!=r?Array.from(r):null)}}(S,this.ngContentSelectors,e),v=function PO(n,t,e,i,o,r){const s=Nt(),a=o[$],l=wn(s,o);qy(a,o,s,e,null,i);for(let d=0;d<e.length;d++)Wt(qo(o,a,s.directiveStart+d,s),o);Jy(a,o,s),l&&Wt(l,o);const c=qo(o,a,s.directiveStart+s.componentOffset,s);if(n[lt]=o[lt]=c,null!==r)for(const d of r)d(c,t);return Of(a,s,n),c}(O,C,x,M,m,[TO]),Ef(f,m,null)}finally{Dh()}return new IO(this.componentType,v,ns(S,m),m,S)}}class IO extends e1{constructor(t,e,i,o,r){super(),this.location=i,this._rootLView=o,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new CO(o),this.componentType=t}setInput(t,e){const i=this._tNode.inputs;let o;if(null!==i&&(o=i[t])){const r=this._rootLView;Vf(r[$],r,o,t,e),Gc(pn(this._tNode.index,r))}}get injector(){return new Wr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function TO(){const n=Nt();vc(E()[$],n)}function G(n){let t=function nb(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let o;if(hi(n))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new _(903,!1);o=t.\u0275dir}if(o){if(e){i.push(o);const s=n;s.inputs=Hf(n.inputs),s.declaredInputs=Hf(n.declaredInputs),s.outputs=Hf(n.outputs);const a=o.hostBindings;a&&RO(n,a);const l=o.viewQuery,c=o.contentQueries;if(l&&kO(n,l),c&&FO(n,c),li(n.inputs,o.inputs),li(n.declaredInputs,o.declaredInputs),li(n.outputs,o.outputs),hi(o)&&o.data.animation){const d=n.data;d.animation=(d.animation||[]).concat(o.data.animation)}}const r=o.features;if(r)for(let s=0;s<r.length;s++){const a=r[s];a&&a.ngInherit&&a(n),a===G&&(e=!1)}}t=Object.getPrototypeOf(t)}!function AO(n){let t=0,e=null;for(let i=n.length-1;i>=0;i--){const o=n[i];o.hostVars=t+=o.hostVars,o.hostAttrs=ya(o.hostAttrs,e=ya(e,o.hostAttrs))}}(i)}function Hf(n){return n===Gi?{}:n===Te?[]:n}function kO(n,t){const e=n.viewQuery;n.viewQuery=e?(i,o)=>{t(i,o),e(i,o)}:t}function FO(n,t){const e=n.contentQueries;n.contentQueries=e?(i,o,r)=>{t(i,o,r),e(i,o,r)}:t}function RO(n,t){const e=n.hostBindings;n.hostBindings=e?(i,o)=>{t(i,o),e(i,o)}:t}function Kc(n){return!!jf(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function jf(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Oi(n,t,e){return n[t]=e}function qt(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function J(n,t,e,i){const o=E();return qt(o,Ur(),t)&&(xe(),Ei(Je(),o,n,t,e,i)),J}function ce(n,t,e,i,o,r,s,a){const l=E(),c=xe(),d=n+Ue,u=c.firstCreatePass?function GO(n,t,e,i,o,r,s,a,l){const c=t.consts,d=ss(t,n,4,s||null,Mo(c,a));Ff(t,e,d,Mo(c,l)),vc(t,d);const u=d.tView=kf(2,d,i,o,r,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,d),u.queries=t.queries.embeddedTView(d)),d}(d,c,l,t,e,i,o,r,s):c.data[d];xi(u,!1);const h=l[ge].createComment("");Fc(c,l,h,u),Wt(h,l),Uc(l,l[d]=Ky(h,l,h,u)),mc(u)&&Tf(c,l,u),null!=s&&Af(l,u,a)}function R(n,t,e){const i=E();return qt(i,Ur(),t)&&Pn(xe(),Je(),i,n,t,i[ge],e,!1),R}function zf(n,t,e,i,o){const s=o?"class":"style";Vf(n,e,t.inputs[s],s,i)}function F(n,t,e,i){const o=E(),r=xe(),s=Ue+n,a=o[ge],l=r.firstCreatePass?function qO(n,t,e,i,o,r){const s=t.consts,l=ss(t,n,2,i,Mo(s,o));return Ff(t,e,l,Mo(s,r)),null!==l.attrs&&qc(l,l.attrs,!1),null!==l.mergedAttrs&&qc(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,r,o,t,e,i):r.data[s],c=o[s]=Zh(a,t,function rP(){return se.lFrame.currentNamespace}()),d=mc(l);return xi(l,!0),Kv(a,c,l),32!=(32&l.flags)&&Fc(r,o,c,l),0===function Gx(){return se.lFrame.elementDepthCount}()&&Wt(c,o),function Wx(){se.lFrame.elementDepthCount++}(),d&&(Tf(r,o,l),Of(r,l,o)),null!==i&&Af(o,l),F}function B(){let n=Nt();bh()?Ch():(n=n.parent,xi(n,!1));const t=n;!function qx(){se.lFrame.elementDepthCount--}();const e=xe();return e.firstCreatePass&&(vc(e,n),_h(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function cP(n){return 0!=(8&n.flags)}(t)&&zf(e,t,E(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function dP(n){return 0!=(16&n.flags)}(t)&&zf(e,t,E(),t.stylesWithoutHost,!1),B}function Jt(n,t,e,i){return F(n,t,e,i),B(),Jt}function It(n,t,e){const i=E(),o=xe(),r=n+Ue,s=o.firstCreatePass?function JO(n,t,e,i,o){const r=t.consts,s=Mo(r,i),a=ss(t,n,8,"ng-container",s);return null!==s&&qc(a,s,!0),Ff(t,e,a,Mo(r,o)),null!==t.queries&&t.queries.elementStart(t,a),a}(r,o,i,t,e):o.data[r];xi(s,!0);const a=i[r]=i[ge].createComment("");return Fc(o,i,a,s),Wt(a,i),mc(s)&&(Tf(o,i,s),Of(o,s,i)),null!=e&&Af(i,s),It}function wt(){let n=Nt();const t=xe();return bh()?Ch():(n=n.parent,xi(n,!1)),t.firstCreatePass&&(vc(t,n),_h(n)&&t.queries.elementEnd(n)),wt}function En(){return E()}function Qc(n){return!!n&&"function"==typeof n.then}function gb(n){return!!n&&"function"==typeof n.subscribe}const _b=gb;function he(n,t,e,i){const o=E(),r=xe(),s=Nt();return function yb(n,t,e,i,o,r,s){const a=mc(i),c=n.firstCreatePass&&Qy(n),d=t[lt],u=Xy(t);let h=!0;if(3&i.type||s){const v=wn(i,t),S=s?s(v):v,C=u.length,x=s?I=>s(Rt(I[i.index])):i.index;let M=null;if(!s&&a&&(M=function KO(n,t,e,i){const o=n.cleanup;if(null!=o)for(let r=0;r<o.length-1;r+=2){const s=o[r];if(s===e&&o[r+1]===i){const a=t[Vr],l=o[r+2];return a.length>l?a[l]:null}"string"==typeof s&&(r+=2)}return null}(n,t,o,i.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=r,M.__ngLastListenerFn__=r,h=!1;else{r=Cb(i,t,d,r,!1);const I=e.listen(S,o,r);u.push(r,I),c&&c.push(o,x,C,C+1)}}else r=Cb(i,t,d,r,!1);const f=i.outputs;let m;if(h&&null!==f&&(m=f[o])){const v=m.length;if(v)for(let S=0;S<v;S+=2){const O=t[m[S]][m[S+1]].subscribe(r),W=u.length;u.push(r,O),c&&c.push(o,i.index,W,-(W+1))}}}(r,o,o[ge],s,n,t,i),he}function bb(n,t,e,i){try{return jn(6,t,e),!1!==e(i)}catch(o){return Yy(n,o),!1}finally{jn(7,t,e)}}function Cb(n,t,e,i,o){return function r(s){if(s===Function)return i;Gc(n.componentOffset>-1?pn(n.index,t):t);let l=bb(t,e,i,s),c=r.__ngNextListenerFn__;for(;c;)l=bb(t,e,c,s)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function V(n=1){return function tP(n){return(se.lFrame.contextLView=function nP(n,t){for(;n>0;)t=t[Hr],n--;return t}(n,se.lFrame.contextLView))[lt]}(n)}function XO(n,t){let e=null;const i=function S1(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(!(1&e))return t[e+1]}return null}(n);for(let o=0;o<t.length;o++){const r=t[o];if("*"!==r){if(null===i?Dy(n,r,!0):D1(i,r))return o}else e=o}return e}function Ve(n){const t=E()[$t][zt];if(!t.projection){const i=t.projection=Ma(n?n.length:1,null),o=i.slice();let r=t.child;for(;null!==r;){const s=n?XO(r,n):0;null!==s&&(o[s]?o[s].projectionNext=r:i[s]=r,o[s]=r),r=r.next}}}function De(n,t=0,e){const i=E(),o=xe(),r=ss(o,Ue+n,16,null,e||null);null===r.projection&&(r.projection=t),Ch(),32!=(32&r.flags)&&function pE(n,t,e){qv(t[ge],0,t,e,Lv(n,e,t),zv(e.parent||t[zt],e,t))}(o,i,r)}function Zc(n,t){return n<<17|t<<2}function Io(n){return n>>17&32767}function Uf(n){return 2|n}function tr(n){return(131068&n)>>2}function Gf(n,t){return-131069&n|t<<2}function Wf(n){return 1|n}function Tb(n,t,e,i,o){const r=n[e+1],s=null===t;let a=i?Io(r):tr(r),l=!1;for(;0!==a&&(!1===l||s);){const d=n[a+1];nT(n[a],t)&&(l=!0,n[a+1]=i?Wf(d):Uf(d)),a=i?Io(d):tr(d)}l&&(n[e+1]=i?Uf(r):Wf(r))}function nT(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&Qr(n,t)>=0}const Dt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ab(n){return n.substring(Dt.key,Dt.keyEnd)}function iT(n){return n.substring(Dt.value,Dt.valueEnd)}function kb(n,t){const e=Dt.textEnd;return e===t?-1:(t=Dt.keyEnd=function sT(n,t,e){for(;t<e&&n.charCodeAt(t)>32;)t++;return t}(n,Dt.key=t,e),gs(n,t,e))}function Fb(n,t){const e=Dt.textEnd;let i=Dt.key=gs(n,t,e);return e===i?-1:(i=Dt.keyEnd=function aT(n,t,e){let i;for(;t<e&&(45===(i=n.charCodeAt(t))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(n,i,e),i=Nb(n,i,e),i=Dt.value=gs(n,i,e),i=Dt.valueEnd=function lT(n,t,e){let i=-1,o=-1,r=-1,s=t,a=s;for(;s<e;){const l=n.charCodeAt(s++);if(59===l)return a;34===l||39===l?a=s=Bb(n,l,s,e):t===s-4&&85===r&&82===o&&76===i&&40===l?a=s=Bb(n,41,s,e):l>32&&(a=s),r=o,o=i,i=-33&l}return a}(n,i,e),Nb(n,i,e))}function Rb(n){Dt.key=0,Dt.keyEnd=0,Dt.value=0,Dt.valueEnd=0,Dt.textEnd=n.length}function gs(n,t,e){for(;t<e&&n.charCodeAt(t)<=32;)t++;return t}function Nb(n,t,e,i){return(t=gs(n,t,e))<e&&t++,t}function Bb(n,t,e,i){let o=-1,r=e;for(;r<i;){const s=n.charCodeAt(r++);if(s==t&&92!==o)return r;o=92==s&&92===o?0:s}throw new Error}function nr(n,t,e){return mi(n,t,e,!1),nr}function Oe(n,t){return mi(n,t,null,!0),Oe}function cT(n,t){for(let e=function rT(n){return Rb(n),Fb(n,gs(n,0,Dt.textEnd))}(t);e>=0;e=Fb(t,e))Hb(n,Ab(t),iT(t))}function _s(n){gi(mT,Ai,n,!0)}function Ai(n,t){for(let e=function oT(n){return Rb(n),kb(n,gs(n,0,Dt.textEnd))}(t);e>=0;e=kb(t,e))Dn(n,Ab(t),!0)}function mi(n,t,e,i){const o=E(),r=xe(),s=Ki(2);r.firstUpdatePass&&Vb(r,n,s,i),t!==ae&&qt(o,s,t)&&jb(r,r.data[rn()],o,o[ge],n,o[s+1]=function _T(n,t){return null==n||""===n||("string"==typeof t?n+=t:"object"==typeof n&&(n=Ne(So(n)))),n}(t,e),i,s)}function gi(n,t,e,i){const o=xe(),r=Ki(2);o.firstUpdatePass&&Vb(o,null,r,i);const s=E();if(e!==ae&&qt(s,r,e)){const a=o.data[rn()];if($b(a,i)&&!Lb(o,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Br(l,e||"")),zf(o,a,s,e,i)}else!function gT(n,t,e,i,o,r,s,a){o===ae&&(o=Te);let l=0,c=0,d=0<o.length?o[0]:null,u=0<r.length?r[0]:null;for(;null!==d||null!==u;){const h=l<o.length?o[l+1]:void 0,f=c<r.length?r[c+1]:void 0;let v,m=null;d===u?(l+=2,c+=2,h!==f&&(m=u,v=f)):null===u||null!==d&&d<u?(l+=2,m=d):(c+=2,m=u,v=f),null!==m&&jb(n,t,e,i,m,v,s,a),d=l<o.length?o[l]:null,u=c<r.length?r[c]:null}}(o,a,s,s[ge],s[r+1],s[r+1]=function pT(n,t,e){if(null==e||""===e)return Te;const i=[],o=So(e);if(Array.isArray(o))for(let r=0;r<o.length;r++)n(i,o[r],!0);else if("object"==typeof o)for(const r in o)o.hasOwnProperty(r)&&n(i,r,o[r]);else"string"==typeof o&&t(i,o);return i}(n,t,e),i,r)}}function Lb(n,t){return t>=n.expandoStartIndex}function Vb(n,t,e,i){const o=n.data;if(null===o[e+1]){const r=o[rn()],s=Lb(n,e);$b(r,i)&&null===t&&!s&&(t=!1),t=function dT(n,t,e,i){const o=Sh(n);let r=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(e=Ba(e=qf(null,n,t,e,i),t.attrs,i),r=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==o)if(e=qf(o,n,t,e,i),null===r){let l=function uT(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==tr(i))return n[Io(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=qf(null,n,t,l[1],i),l=Ba(l,t.attrs,i),function hT(n,t,e,i){n[Io(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else r=function fT(n,t,e){let i;const o=t.directiveEnd;for(let r=1+t.directiveStylingLast;r<o;r++)i=Ba(i,n[r].hostAttrs,e);return Ba(i,t.attrs,e)}(n,t,i)}return void 0!==r&&(i?t.residualClasses=r:t.residualStyles=r),e}(o,r,t,i),function eT(n,t,e,i,o,r){let s=r?t.classBindings:t.styleBindings,a=Io(s),l=tr(s);n[i]=e;let d,c=!1;if(Array.isArray(e)?(d=e[1],(null===d||Qr(e,d)>0)&&(c=!0)):d=e,o)if(0!==l){const h=Io(n[a+1]);n[i+1]=Zc(h,a),0!==h&&(n[h+1]=Gf(n[h+1],i)),n[a+1]=function ZO(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Zc(a,0),0!==a&&(n[a+1]=Gf(n[a+1],i)),a=i;else n[i+1]=Zc(l,0),0===a?a=i:n[l+1]=Gf(n[l+1],i),l=i;c&&(n[i+1]=Uf(n[i+1])),Tb(n,d,i,!0),Tb(n,d,i,!1),function tT(n,t,e,i,o){const r=o?n.residualClasses:n.residualStyles;null!=r&&"string"==typeof t&&Qr(r,t)>=0&&(e[i+1]=Wf(e[i+1]))}(t,d,n,i,r),s=Zc(a,l),r?t.classBindings=s:t.styleBindings=s}(o,r,t,e,s,i)}}function qf(n,t,e,i,o){let r=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<s&&(r=t[a],i=Ba(i,r.hostAttrs,o),r!==n);)a++;return null!==n&&(e.directiveStylingLast=a),i}function Ba(n,t,e){const i=e?1:2;let o=-1;if(null!==t)for(let r=0;r<t.length;r++){const s=t[r];"number"==typeof s?o=s:o===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Dn(n,s,!!e||t[++r]))}return void 0===n?null:n}function Hb(n,t,e){Dn(n,t,So(e))}function mT(n,t,e){const i=String(t);""!==i&&!i.includes(" ")&&Dn(n,i,e)}function jb(n,t,e,i,o,r,s,a){if(!(3&t.type))return;const l=n.data,c=l[a+1],d=function YO(n){return 1==(1&n)}(c)?zb(l,t,e,o,tr(c),s):void 0;Yc(d)||(Yc(r)||function QO(n){return 2==(2&n)}(c)&&(r=zb(l,null,e,o,a,s)),function gE(n,t,e,i,o){if(t)o?n.addClass(e,i):n.removeClass(e,i);else{let r=-1===i.indexOf("-")?void 0:mn.DashCase;null==o?n.removeStyle(e,i,r):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),r|=mn.Important),n.setStyle(e,i,o,r))}}(i,s,gc(rn(),e),o,r))}function zb(n,t,e,i,o,r){const s=null===t;let a;for(;o>0;){const l=n[o],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let h=e[o+1];h===ae&&(h=u?Te:void 0);let f=u?Vh(h,i):d===i?h:void 0;if(c&&!Yc(f)&&(f=Vh(l,i)),Yc(f)&&(a=f,s))return a;const m=n[o+1];o=s?Io(m):tr(m)}if(null!==t){let l=r?t.residualClasses:t.residualStyles;null!=l&&(a=Vh(l,i))}return a}function Yc(n){return void 0!==n}function $b(n,t){return 0!=(n.flags&(t?8:16))}function de(n,t=""){const e=E(),i=xe(),o=n+Ue,r=i.firstCreatePass?ss(i,o,1,t,null):i.data[o],s=e[o]=function Qh(n,t){return n.createText(t)}(e[ge],t);Fc(i,e,s,r),xi(r,!1)}function _n(n){return Ke("",n,""),_n}function Ke(n,t,e){const i=E(),o=function ls(n,t,e,i){return qt(n,Ur(),e)?t+D(e)+i:ae}(i,n,t,e);return o!==ae&&function Zi(n,t,e){const i=gc(t,n);!function Rv(n,t,e){n.setValue(t,e)}(n[ge],i,e)}(i,rn(),o),Ke}function ed(n,t,e){const i=E();return qt(i,Ur(),t)&&Pn(xe(),Je(),i,n,t,i[ge],e,!0),ed}function Jf(n,t,e){const i=E();if(qt(i,Ur(),t)){const r=xe(),s=Je();Pn(r,s,i,n,t,function Zy(n,t,e){return(null===n||hi(n))&&(e=function jx(n){for(;Array.isArray(n);){if("object"==typeof n[gh])return n;n=n[qi]}return null}(e[t.index])),e[ge]}(Sh(r.data),s,i),e,!0)}return Jf}const ys="en-US";let cC=ys;function Qf(n,t,e,i,o){if(n=Q(n),Array.isArray(n))for(let r=0;r<n.length;r++)Qf(n[r],t,e,i,o);else{const r=xe(),s=E();let a=Qo(n)?n:Q(n.provide),l=yy(n);const c=Nt(),d=1048575&c.providerIndexes,u=c.directiveStart,h=c.providerIndexes>>20;if(Qo(n)||!n.multi){const f=new va(l,o,b),m=Yf(a,t,o?d:d+h,u);-1===m?(Rh(Ic(c,s),r,a),Zf(r,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[m]=f,s[m]=f)}else{const f=Yf(a,t,d+h,u),m=Yf(a,t,d,d+h),S=m>=0&&e[m];if(o&&!S||!o&&!(f>=0&&e[f])){Rh(Ic(c,s),r,a);const C=function RA(n,t,e,i,o){const r=new va(n,e,b);return r.multi=[],r.index=t,r.componentProviders=0,FC(r,o,i&&!e),r}(o?FA:kA,e.length,o,i,l);!o&&S&&(e[m].providerFactory=C),Zf(r,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(C),s.push(C)}else Zf(r,n,f>-1?f:m,FC(e[o?m:f],l,!o&&i));!o&&i&&S&&e[m].componentProviders++}}}function Zf(n,t,e,i){const o=Qo(t),r=function qE(n){return!!n.useClass}(t);if(o||r){const l=(r?Q(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!o&&t.multi){const d=c.indexOf(e);-1===d?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function FC(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Yf(n,t,e,i){for(let o=e;o<i;o++)if(t[o]===n)return o;return-1}function kA(n,t,e,i){return ep(this.multi,[])}function FA(n,t,e,i){const o=this.multi;let r;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=qo(e,e[$],this.providerFactory.index,i);r=a.slice(0,s),ep(o,r);for(let l=s;l<a.length;l++)r.push(a[l])}else r=[],ep(o,r);return r}function ep(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function ee(n,t=[]){return e=>{e.providersResolver=(i,o)=>function AA(n,t,e){const i=xe();if(i.firstCreatePass){const o=hi(n);Qf(e,i.data,i.blueprint,o,!0),Qf(t,i.data,i.blueprint,o,!1)}}(i,o?o(n):n,t)}}class bs{}class NA{}class RC extends bs{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new eb(this);const i=function Sn(n,t){const e=n[M_]||null;if(!e&&!0===t)throw new Error(`Type ${Ne(n)} does not have '\u0275mod' property.`);return e}(t);this._bootstrapComponents=function Qi(n){return n instanceof Function?n():n}(i.bootstrap),this._r3Injector=ky(t,e,[{provide:bs,useValue:this},{provide:Yo,useValue:this.componentFactoryResolver}],Ne(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class tp extends NA{constructor(t){super(),this.moduleType=t}create(t){return new RC(this.moduleType,t)}}class LA extends bs{constructor(t,e,i){super(),this.componentFactoryResolver=new eb(this),this.instance=null;const o=new vy([...t,{provide:bs,useValue:this},{provide:Yo,useValue:this.componentFactoryResolver}],e||Hc(),i,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}let VA=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=py(0,e.type),o=i.length>0?function NC(n,t,e=null){return new LA(n,t,e).injector}([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,o)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=z({token:n,providedIn:"environment",factory:()=>new n(w(Zo))}),n})();function Xe(n){n.getStandaloneInjector=t=>t.get(VA).getOrCreateStandaloneInjector(n)}function ip(n,t,e,i){return UC(E(),on(),n,t,e,i)}function $C(n,t,e,i,o){return function GC(n,t,e,i,o,r,s){const a=t+e;return function er(n,t,e,i){const o=qt(n,t,e);return qt(n,t+1,i)||o}(n,a,o,r)?Oi(n,a+2,s?i.call(s,o,r):i(o,r)):$a(n,a+2)}(E(),on(),n,t,e,i,o)}function $a(n,t){const e=n[t];return e===ae?void 0:e}function UC(n,t,e,i,o,r){const s=t+e;return qt(n,s,o)?Oi(n,s+1,r?i.call(r,o):i(o)):$a(n,s+1)}function rd(n,t){const e=xe();let i;const o=n+Ue;e.firstCreatePass?(i=function nk(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks??(e.destroyHooks=[])).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=Go(i.type)),s=Hn(b);try{const a=Sc(!1),l=r();return Sc(a),function WO(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,E(),o,l),l}finally{Hn(s)}}function sd(n,t,e){const i=n+Ue,o=E(),r=$r(o,i);return function Ua(n,t){return n[$].data[t].pure}(o,i)?UC(o,on(),t,r.transform,e,r):r.transform(e)}function op(n){return t=>{setTimeout(n,void 0,t)}}const le=class ak extends re{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let o=t,r=e||(()=>null),s=i;if(t&&"object"==typeof t){const l=t;o=l.next?.bind(l),r=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(r=op(r),o&&(o=op(o)),s&&(s=op(s)));const a=super.subscribe({next:o,error:r,complete:s});return t instanceof be&&t.add(a),a}};function lk(){return this._results[Symbol.iterator]()}class rp{get changes(){return this._changes||(this._changes=new le)}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=rp.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=lk)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const o=function zn(n){return n.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function bP(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i<n.length;i++){let o=n[i],r=t[i];if(e&&(o=e(o),r=e(r)),r!==o)return!1}return!0}(i._results,o,e))&&(i._results=o,i.length=o.length,i.last=o[this.length-1],i.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let Tt=(()=>{class n{}return n.__NG_ELEMENT_ID__=uk,n})();const ck=Tt,dk=class extends ck{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tView,o=zc(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);o[pa]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Di];return null!==s&&(o[Di]=s.createEmbeddedView(i)),Ef(i,o,t),new Fa(o)}};function uk(){return ad(Nt(),E())}function ad(n,t){return 4&n.type?new dk(t,n,ns(n,t)):null}let Kt=(()=>{class n{}return n.__NG_ELEMENT_ID__=hk,n})();function hk(){return QC(Nt(),E())}const fk=Kt,KC=class extends fk{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return ns(this._hostTNode,this._hostLView)}get injector(){return new Wr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Fh(this._hostTNode,this._hostLView);if(tv(t)){const e=Mc(t,this._hostLView),i=Cc(t);return new Wr(e[$].data[i+8],e)}return new Wr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=XC(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-nn}createEmbeddedView(t,e,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const s=t.createEmbeddedView(e||{},r);return this.insert(s,o),s}createComponent(t,e,i,o,r){const s=t&&!function Ca(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const u=e||{};a=u.index,i=u.injector,o=u.projectableNodes,r=u.environmentInjector||u.ngModuleRef}const l=s?t:new Ra(ke(t)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Zo,null);h&&(r=h)}const d=l.create(c,o,void 0,r);return this.insert(d.hostView,a),d}insert(t,e){const i=t._lView,o=i[$];if(function Ux(n){return ui(n[it])}(i)){const d=this.indexOf(t);if(-1!==d)this.detach(d);else{const u=i[it],h=new KC(u,u[zt],u[it]);h.detach(h.indexOf(t))}}const r=this._adjustIndex(e),s=this._lContainer;!function lE(n,t,e,i){const o=nn+i,r=e.length;i>0&&(e[o-1][di]=t),i<r-nn?(t[di]=e[o],fv(e,nn+i,t)):(e.push(t),t[di]=null),t[it]=e;const s=t[pa];null!==s&&e!==s&&function cE(n,t){const e=n[zr];t[$t]!==t[it][it][$t]&&(n[P_]=!0),null===e?n[zr]=[t]:e.push(t)}(s,t);const a=t[Di];null!==a&&a.insertView(n),t[ue]|=64}(o,i,s,r);const a=nf(r,s),l=i[ge],c=kc(l,s[fc]);return null!==c&&function rE(n,t,e,i,o,r){i[qi]=o,i[zt]=t,xa(n,i,e,1,o,r)}(o,s[zt],l,i,c,a),t.attachToViewContainerRef(),fv(sp(s),r,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=XC(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),i=Yh(this._lContainer,e);i&&(xc(sp(this._lContainer),e),Bv(i[$],i))}detach(t){const e=this._adjustIndex(t,-1),i=Yh(this._lContainer,e);return i&&null!=xc(sp(this._lContainer),e)?new Fa(i):null}_adjustIndex(t,e=0){return t??this.length+e}};function XC(n){return n[pc]}function sp(n){return n[pc]||(n[pc]=[])}function QC(n,t){let e;const i=t[n.index];if(ui(i))e=i;else{let o;if(8&n.type)o=Rt(i);else{const r=t[ge];o=r.createComment("");const s=wn(n,t);Xo(r,kc(r,s),o,function fE(n,t){return n.nextSibling(t)}(r,s),!1)}t[n.index]=e=Ky(i,t,o,n),Uc(t,e)}return new KC(e,n,t)}class ap{constructor(t){this.queryList=t,this.matches=null}clone(){return new ap(this.queryList)}setDirty(){this.queryList.setDirty()}}class lp{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,o=[];for(let r=0;r<i;r++){const s=e.getByIndex(r);o.push(this.queries[s.indexInDeclarationView].clone())}return new lp(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==n0(t,e).matches&&this.queries[e].setDirty()}}class ZC{constructor(t,e,i=null){this.predicate=t,this.flags=e,this.read=i}}class cp{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let i=0;i<this.length;i++){const o=null!==e?e.length:0,r=this.getByIndex(i).embeddedTView(t,o);r&&(r.indexInDeclarationView=i,null!==e?e.push(r):e=[r])}return null!==e?new cp(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class dp{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new dp(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let o=0;o<i.length;o++){const r=i[o];this.matchTNodeWithReadOption(t,e,pk(e,r)),this.matchTNodeWithReadOption(t,e,wc(e,t,r,!1,!1))}else i===Tt?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,wc(e,t,i,!1,!1))}matchTNodeWithReadOption(t,e,i){if(null!==i){const o=this.metadata.read;if(null!==o)if(o===oe||o===Kt||o===Tt&&4&e.type)this.addMatch(e.index,-2);else{const r=wc(e,t,o,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function pk(n,t){const e=n.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===t)return e[i+1];return null}function gk(n,t,e,i){return-1===e?function mk(n,t){return 11&n.type?ns(n,t):4&n.type?ad(n,t):null}(t,n):-2===e?function _k(n,t,e){return e===oe?ns(t,n):e===Tt?ad(t,n):e===Kt?QC(t,n):void 0}(n,t,i):qo(n,n[$],e,t)}function YC(n,t,e,i){const o=t[Di].queries[i];if(null===o.matches){const r=n.data,s=e.matches,a=[];for(let l=0;l<s.length;l+=2){const c=s[l];a.push(c<0?null:gk(t,r[c],s[l+1],e.metadata.read))}o.matches=a}return o.matches}function up(n,t,e,i){const o=n.queries.getByIndex(e),r=o.matches;if(null!==r){const s=YC(n,t,o,e);for(let a=0;a<r.length;a+=2){const l=r[a];if(l>0)i.push(s[a/2]);else{const c=r[a+1],d=t[-l];for(let u=nn;u<d.length;u++){const h=d[u];h[pa]===h[it]&&up(h[$],h,c,i)}if(null!==d[zr]){const u=d[zr];for(let h=0;h<u.length;h++){const f=u[h];up(f[$],f,c,i)}}}}}return i}function K(n){const t=E(),e=xe(),i=G_();Ih(i+1);const o=n0(e,i);if(n.dirty&&function $x(n){return 4==(4&n[ue])}(t)===(2==(2&o.metadata.flags))){if(null===o.matches)n.reset([]);else{const r=o.crossesNgTemplate?up(e,t,i,[]):YC(e,t,o,i);n.reset(r,r1),n.notifyOnChanges()}return!0}return!1}function Re(n,t,e){const i=xe();i.firstCreatePass&&(t0(i,new ZC(n,t,e),-1),2==(2&t)&&(i.staticViewQueries=!0)),e0(i,E(),t)}function He(n,t,e,i){const o=xe();if(o.firstCreatePass){const r=Nt();t0(o,new ZC(t,e,i),r.index),function yk(n,t){const e=n.contentQueries||(n.contentQueries=[]);t!==(e.length?e[e.length-1]:-1)&&e.push(n.queries.length-1,t)}(o,n),2==(2&e)&&(o.staticContentQueries=!0)}e0(o,E(),e)}function X(){return function vk(n,t){return n[Di].queries[t].queryList}(E(),G_())}function e0(n,t,e){const i=new rp(4==(4&e));Uy(n,t,i,i.destroy),null===t[Di]&&(t[Di]=new lp),t[Di].queries.push(new ap(i))}function t0(n,t,e){null===n.queries&&(n.queries=new cp),n.queries.track(new dp(t,e))}function n0(n,t){return n.queries.getByIndex(t)}function cd(...n){}const M0=new L("Application Initializer");let dd=(()=>{class n{constructor(e){this.appInits=e,this.resolve=cd,this.reject=cd,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const r=this.appInits[o]();if(Qc(r))e.push(r);else if(_b(r)){const s=new Promise((a,l)=>{r.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(w(M0,8))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Wa=new L("AppId",{providedIn:"root",factory:function S0(){return`${gp()}${gp()}${gp()}`}});function gp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const I0=new L("Platform Initializer"),Ss=new L("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),_p=new L("AnimationModuleType"),Yi=new L("LocaleId",{providedIn:"root",factory:()=>pt(Yi,ie.Optional|ie.SkipSelf)||function Hk(){return typeof $localize<"u"&&$localize.locale||ys}()}),Gk=(()=>Promise.resolve(0))();function vp(n){typeof Zone>"u"?Gk.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Ie{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new le(!1),this.onMicrotaskEmpty=new le(!1),this.onStable=new le(!1),this.onError=new le(!1),typeof Zone>"u")throw new _(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function Wk(){let n=$e.requestAnimationFrame,t=$e.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function Kk(n){const t=()=>{!function Jk(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call($e,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,bp(n),n.isCheckStableRunning=!0,yp(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),bp(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,s,a)=>{try{return x0(n),e.invokeTask(o,r,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||n.shouldCoalesceRunChangeDetection)&&t(),P0(n)}},onInvoke:(e,i,o,r,s,a,l)=>{try{return x0(n),e.invoke(o,r,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),P0(n)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(n._hasPendingMicrotasks=r.microTask,bp(n),yp(n)):"macroTask"==r.change&&(n.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),n.runOutsideAngular(()=>n.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ie.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(Ie.isInAngularZone())throw new _(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,o){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+o,t,qk,cd,cd);try{return r.runTask(s,e,i)}finally{r.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const qk={};function yp(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function bp(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function x0(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function P0(n){n._nesting--,yp(n)}class Xk{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new le,this.onMicrotaskEmpty=new le,this.onStable=new le,this.onError=new le}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,o){return t.apply(e,i)}}const E0=new L(""),ud=new L("");let Sp,Cp=(()=>{class n{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Sp||(function Qk(n){Sp=n}(o),o.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ie.assertNotInAngularZone(),vp(()=>{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())vp(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!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(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}}return n.\u0275fac=function(e){return new(e||n)(w(Ie),w(Mp),w(ud))},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})(),Mp=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Sp?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const eo=!1;let wo=null;const O0=new L("AllowMultipleToken"),Ip=new L("PlatformDestroyListeners"),Zk=new L("appBootstrapListener");function A0(n,t,e=[]){const i=`Platform: ${t}`,o=new L(i);return(r=[])=>{let s=wp();if(!s||s.injector.get(O0,!1)){const a=[...e,...r,{provide:o,useValue:!0}];n?n(a):function tF(n){if(wo&&!wo.get(O0,!1))throw new _(400,!1);wo=n;const t=n.get(F0);(function T0(n){const t=n.get(I0,null);t&&t.forEach(e=>e())})(n)}(function k0(n=[],t){return $n.create({name:t,providers:[{provide:_f,useValue:"platform"},{provide:Ip,useValue:new Set([()=>wo=null])},...n]})}(a,i))}return function iF(n){const t=wp();if(!t)throw new _(401,!1);return t}()}}function wp(){return wo?.get(F0)??null}let F0=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function N0(n,t){let e;return e="noop"===n?new Xk:("zone.js"===n?void 0:n)||new Ie(t),e}(i?.ngZone,function R0(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),r=[{provide:Ie,useValue:o}];return o.run(()=>{const s=$n.create({providers:r,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(is,null);if(!l)throw new _(402,!1);return o.runOutsideAngular(()=>{const c=o.onError.subscribe({next:d=>{l.handleError(d)}});a.onDestroy(()=>{hd(this._modules,a),c.unsubscribe()})}),function B0(n,t,e){try{const i=e();return Qc(i)?i.catch(o=>{throw t.runOutsideAngular(()=>n.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(l,o,()=>{const c=a.injector.get(dd);return c.runInitializers(),c.donePromise.then(()=>(function dC(n){Vn(n,"Expected localeId to be defined"),"string"==typeof n&&(cC=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Yi,ys)||ys),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const o=L0({},i);return function Yk(n,t,e){const i=new tp(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(or);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new _(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new _(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Ip,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(w($n))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function L0(n,t){return Array.isArray(t)?t.reduce(L0,n):{...n,...t}}let or=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,o){this._zone=e,this._injector=i,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new Le(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Le(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Ie.assertNotInAngularZone(),vp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Ie.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=$i(r,s.pipe(function ra(n={}){const{connector:t=(()=>new re),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=n;return r=>{let s,a,l,c=0,d=!1,u=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=l=void 0,d=u=!1},m=()=>{const v=s;f(),v?.unsubscribe()};return tt((v,S)=>{c++,!u&&!d&&h();const C=l=l??t();S.add(()=>{c--,0===c&&!u&&!d&&(a=$o(m,o))}),C.subscribe(S),!s&&c>0&&(s=new Si({next:x=>C.next(x),error:x=>{u=!0,h(),a=$o(f,e,x),C.error(x)},complete:()=>{d=!0,h(),a=$o(f,i),C.complete()}}),Mt(v).subscribe(s))})(r)}}()))}bootstrap(e,i){const o=e instanceof by;if(!this._injector.get(dd).done){!o&&function ha(n){const t=ke(n)||jt(n)||hn(n);return null!==t&&t.standalone}(e);throw new _(405,eo)}let s;s=o?e:this._injector.get(Yo).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function eF(n){return n.isBoundToModule}(s)?void 0:this._injector.get(bs),c=s.create($n.NULL,[],i||s.selector,a),d=c.location.nativeElement,u=c.injector.get(E0,null);return u?.registerApplication(d),c.onDestroy(()=>{this.detachView(c.hostView),hd(this.components,c),u?.unregisterApplication(d)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new _(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;hd(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(Zk,[]);i.push(...this._bootstrapListeners),i.forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>hd(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new _(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(w(Ie),w(Zo),w(is))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function hd(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let to=(()=>{class n{}return n.__NG_ELEMENT_ID__=rF,n})();function rF(n){return function sF(n,t,e){if(ga(n)&&!e){const i=pn(n.index,t);return new Fa(i,i)}return 47&n.type?new Fa(t[$t],t):null}(Nt(),E(),16==(16&n))}class $0{constructor(){}supports(t){return Kc(t)}create(t){return new hF(t)}}const uF=(n,t)=>t;class hF{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||uF}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const s=!i||e&&e.currentIndex<G0(i,o,r)?e:i,a=G0(s,o,r),l=s.currentIndex;if(s===i)o--,i=i._nextRemoved;else if(e=e._next,null==s.previousIndex)o++;else{r||(r=[]);const c=a-o,d=l-o;if(c!=d){for(let h=0;h<c;h++){const f=h<r.length?r[h]:r[h]=0,m=f+h;d<=m&&m<c&&(r[h]=f+1)}r[s.previousIndex]=d-c}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Kc(t))throw new _(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,r,s,e=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)r=t[a],s=this._trackByFn(a,r),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,r,s,a)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,s,a),i=!0),e=e._next}else o=0,function zO(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[Symbol.iterator]();let i;for(;!(i=e.next()).done;)t(i.value)}}(t,a=>{s=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,o){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,o)):t=this._addAfter(new fF(e,i),r,o),t}_verifyReinsertion(t,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?t=this._reinsertAfter(r,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,r=t._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const o=null===e?this._itHead:e._next;return t._next=o,t._prev=e,null===o?this._itTail=t:o._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new U0),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new U0),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 fF{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 pF{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class U0{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new pF,this.map.set(e,i)),i.add(t)}get(t,e){const o=this.map.get(t);return o?o.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 G0(n,t,e){const i=n.previousIndex;if(null===i)return i;let o=0;return e&&i<e.length&&(o=e[i]),i+t+o}class W0{constructor(){}supports(t){return t instanceof Map||jf(t)}create(){return new mF}}class mF{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||jf(t)))throw new _(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,o)=>{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,e);const r=o._prev,s=o._next;return r&&(r._next=s),s&&(s._prev=r),o._next=null,o._prev=null,o}const i=new gF(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class gF{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 q0(){return new no([new $0])}let no=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||q0()),deps:[[n,new Oc,new Ko]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new _(901,!1)}}return n.\u0275prov=z({token:n,providedIn:"root",factory:q0}),n})();function J0(){return new qa([new W0])}let qa=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||J0()),deps:[[n,new Oc,new Ko]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new _(901,!1)}}return n.\u0275prov=z({token:n,providedIn:"root",factory:J0}),n})();const yF=A0(null,"core",[]);let bF=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(w(or))},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({}),n})();function Op(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}let Tp=null;function io(){return Tp}class SF{}const Fe=new L("DocumentToken");let K0=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=z({token:n,factory:function(){return function IF(){return w(X0)}()},providedIn:"platform"}),n})(),X0=(()=>{class n extends K0{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return io().getBaseHref(this._doc)}onPopState(e){const i=io().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=io().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,i,o){Q0()?this._history.pushState(e,i,o):this._location.hash=o}replaceState(e,i,o){Q0()?this._history.replaceState(e,i,o):this._location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(w(Fe))},n.\u0275prov=z({token:n,factory:function(){return function wF(){return new X0(w(Fe))}()},providedIn:"platform"}),n})();function Q0(){return!!window.history.pushState}function Z0(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function Y0(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function sr(n){return n&&"?"!==n[0]?"?"+n:n}let Ap=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=z({token:n,factory:function(){return pt(xF)},providedIn:"root"}),n})();const DF=new L("appBaseHref");let xF=(()=>{class n extends Ap{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??pt(Fe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Z0(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+sr(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const s=this.prepareExternalUrl(o+sr(r));this._platformLocation.pushState(e,i,s)}replaceState(e,i,o,r){const s=this.prepareExternalUrl(o+sr(r));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(w(K0),w(DF,8))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),eM=(()=>{class n{constructor(e){this._subject=new le,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function OF(n){if(new RegExp("^(https?:)?//").test(n)){const[,e]=n.split(/\/\/[^\/]+/);return e}return n}(Y0(tM(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+sr(i))}normalize(e){return n.stripTrailingSlash(function EF(n,t){if(!n||!t.startsWith(n))return t;const e=t.substring(n.length);return""===e||["/",";","?","#"].includes(e[0])?e:t}(this._basePath,tM(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+sr(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+sr(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}}return n.normalizeQueryParams=sr,n.joinWithSlash=Z0,n.stripTrailingSlash=Y0,n.\u0275fac=function(e){return new(e||n)(w(Ap))},n.\u0275prov=z({token:n,factory:function(){return function PF(){return new eM(w(Ap))}()},providedIn:"root"}),n})();function tM(n){return n.replace(/\/index.html$/,"")}function dM(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===t)return decodeURIComponent(r)}return null}const zp=/\s+/,uM=[];let Id=(()=>{class n{constructor(e,i,o,r){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=o,this._renderer=r,this.initialClasses=uM,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(zp):uM}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(zp):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],o=e[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(zp).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return n.\u0275fac=function(e){return new(e||n)(b(no),b(qa),b(oe),b(xn))},n.\u0275dir=k({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class pR{constructor(t,e,i,o){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=o}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 $p=(()=>{class n{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((o,r,s)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new pR(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===r?void 0:r);else if(null!==r){const a=i.get(r);i.move(a,s),pM(a,o)}});for(let o=0,r=i.length;o<r;o++){const a=i.get(o).context;a.index=o,a.count=r,a.ngForOf=this._ngForOf}e.forEachIdentityChange(o=>{pM(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(b(Kt),b(Tt),b(no))},n.\u0275dir=k({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function pM(n,t){n.context.$implicit=t.item}let qn=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new gR,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){mM("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){mM("ngIfElse",e),this._elseTemplateRef=e,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(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(b(Kt),b(Tt))},n.\u0275dir=k({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class gR{constructor(){this.$implicit=null,this.ngIf=null}}function mM(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Ne(t)}'.`)}class yR{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class bR{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const CR=new bR,MR=new yR;let _M=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Qc(e))return CR;if(gb(e))return MR;throw function yi(n,t){return new _(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(b(to,16))},n.\u0275pipe=tn({name:"async",type:n,pure:!1,standalone:!0}),n})(),Jn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({}),n})();const yM="browser";function wd(n){return n===yM}class CM{}class gN extends SF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Xp extends gN{static makeCurrent(){!function MF(n){Tp||(Tp=n)}(new Xp)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!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=function _N(){return Qa=Qa||document.querySelector("base"),Qa?Qa.getAttribute("href"):null}();return null==e?null:function vN(n){Pd=Pd||document.createElement("a"),Pd.setAttribute("href",n);const t=Pd.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Qa=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return dM(document.cookie,t)}}let Pd,Qa=null;const DM=new L("TRANSITION_ID"),bN=[{provide:M0,useFactory:function yN(n,t,e){return()=>{e.get(dd).donePromise.then(()=>{const i=io(),o=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let r=0;r<o.length;r++)i.remove(o[r])})}},deps:[DM,Fe,$n],multi:!0}];let MN=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})();const Ed=new L("EventManagerPlugins");let Od=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}addGlobalEventListener(e,i,o){return this._findPluginFor(i).addGlobalEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const o=this._plugins;for(let r=0;r<o.length;r++){const s=o[r];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(w(Ed),w(Ie))},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})();class xM{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const o=io().getGlobalEventTarget(this._doc,t);if(!o)throw new Error(`Unsupported event target ${o} for event ${e}`);return this.addEventListener(o,e,i)}}let PM=(()=>{class n{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const o=this.usageCount;let r=o.get(e)??0;return r+=i,r>0?o.set(e,r):o.delete(e),r}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})(),Za=(()=>{class n extends PM{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(r=>r.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const o=this.doc.createElement("style");o.textContent=i,e.appendChild(o);const r=this.styleRef.get(i);r?r.push(o):this.styleRef.set(i,[o])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return n.\u0275fac=function(e){return new(e||n)(w(Fe))},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})();const Qp={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Zp=/%COMP%/g,TM=new L("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function AM(n,t){return t.flat(100).map(e=>e.replace(Zp,n))}function kM(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Td=(()=>{class n{constructor(e,i,o,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestory=r,this.rendererByCompId=new Map,this.defaultRenderer=new Yp(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const o=this.getOrCreateRenderer(e,i);return o instanceof NM?o.applyToHost(e):o instanceof em&&o.applyStyles(),o}getOrCreateRenderer(e,i){const o=this.rendererByCompId;let r=o.get(i.id);if(!r){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(i.encapsulation){case ci.Emulated:r=new NM(s,a,i,this.appId,l);break;case ci.ShadowDom:return new EN(s,a,e,i);default:r=new em(s,a,i,l)}r.onDestroy=()=>o.delete(i.id),o.set(i.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(w(Od),w(Za),w(Wa),w(TM))},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})();class Yp{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(Qp[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(RM(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(RM(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,o){if(o){e=o+":"+e;const r=Qp[o];r?t.setAttributeNS(r,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const o=Qp[i];o?t.removeAttributeNS(o,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,o){o&(mn.DashCase|mn.Important)?t.style.setProperty(e,i,o&mn.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&mn.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,kM(i)):this.eventManager.addEventListener(t,e,kM(i))}}function RM(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class EN extends Yp{constructor(t,e,i,o){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=AM(o.id,o.styles);for(const s of r){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class em extends Yp{constructor(t,e,i,o,r=i.id){super(t),this.sharedStylesHost=e,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=AM(r,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class NM extends em{constructor(t,e,i,o,r){const s=o+"-"+i.id;super(t,e,i,r,s),this.contentAttr=function DN(n){return"_ngcontent-%COMP%".replace(Zp,n)}(s),this.hostAttr=function xN(n){return"_nghost-%COMP%".replace(Zp,n)}(s)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}let ON=(()=>{class n extends xM{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}}return n.\u0275fac=function(e){return new(e||n)(w(Fe))},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})();const BM=["alt","control","meta","shift"],TN={"\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"},AN={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let kN=(()=>{class n extends xM{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,o){const r=n.parseEventName(i),s=n.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>io().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=n._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),BM.forEach(c=>{const d=i.indexOf(c);d>-1&&(i.splice(d,1),s+=c+".")}),s+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let o=TN[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),BM.forEach(s=>{s!==o&&(0,AN[s])(e)&&(r+=s+".")}),r+=o,r===i)}static eventCallback(e,i,o){return r=>{n.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(w(Fe))},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})();const BN=A0(yF,"browser",[{provide:Ss,useValue:yM},{provide:I0,useValue:function FN(){Xp.makeCurrent()},multi:!0},{provide:Fe,useFactory:function NN(){return function CE(n){lf=n}(document),document},deps:[]}]),HM=new L(""),jM=[{provide:ud,useClass:class CN{addToWindow(t){$e.getAngularTestability=(i,o=!0)=>{const r=t.findTestabilityInTree(i,o);if(null==r)throw new Error("Could not find testability for element.");return r},$e.getAllAngularTestabilities=()=>t.getAllTestabilities(),$e.getAllAngularRootElements=()=>t.getAllRootElements(),$e.frameworkStabilizers||($e.frameworkStabilizers=[]),$e.frameworkStabilizers.push(i=>{const o=$e.getAllAngularTestabilities();let r=o.length,s=!1;const a=function(l){s=s||l,r--,0==r&&i(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?io().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:E0,useClass:Cp,deps:[Ie,Mp,ud]},{provide:Cp,useClass:Cp,deps:[Ie,Mp,ud]}],zM=[{provide:_f,useValue:"root"},{provide:is,useFactory:function RN(){return new is},deps:[]},{provide:Ed,useClass:ON,multi:!0,deps:[Fe,Ie,Ss]},{provide:Ed,useClass:kN,multi:!0,deps:[Fe]},{provide:Td,useClass:Td,deps:[Od,Za,Wa,TM]},{provide:Ta,useExisting:Td},{provide:PM,useExisting:Za},{provide:Za,useClass:Za,deps:[Fe]},{provide:Od,useClass:Od,deps:[Ed,Ie]},{provide:CM,useClass:MN,deps:[]},[]];let $M=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:Wa,useValue:e.appId},{provide:DM,useExisting:Wa},bN]}}}return n.\u0275fac=function(e){return new(e||n)(w(HM,12))},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({providers:[...zM,...jM],imports:[Jn,bF]}),n})();typeof window<"u"&&window;const Kn_recaptcha_action="FORMASASERVICE",Kn_recaptcha_siteKey="6LciiGUcAAAAAC6SOrQS04hKRlH5KJzW58BwvlbU",Kn_contentstack_base_url="https://cdn.contentstack.io/v3/content_types",Kn_contentstack_api_key="bltaef1200413a7ff7c",Kn_contentstack_access_token="csf936889a835e6f60037e0920",Kn_contentstack_env="prod",im={now:()=>(im.delegate||Date).now(),delegate:void 0};class GN extends re{constructor(t=1/0,e=1/0,i=im){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:i,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:s}=this;e||(i.push(t),!o&&i.push(r.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:i,_buffer:o}=this,r=o.slice();for(let s=0;s<r.length&&!t.closed;s+=i?1:2)t.next(r[s]);return this._checkFinalizedStatuses(t),e}_trimBuffer(){const{_bufferSize:t,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:o}=this,r=(o?1:2)*t;if(t<1/0&&r<i.length&&i.splice(0,i.length-r),!o){const s=e.now();let a=0;for(let l=1;l<i.length&&i[l]<=s;l+=2)a=l;a&&i.splice(0,a+1)}}}function Ya(n,t){return tt((e,i)=>{let o=null,r=0,s=!1;const a=()=>s&&!o&&i.complete();e.subscribe(qe(i,l=>{o?.unsubscribe();let c=0;const d=r++;Mt(n(l,d)).subscribe(o=qe(i,u=>i.next(t?t(l,u,d,c++):u),()=>{o=null,a()}))},()=>{s=!0,a()}))})}const Ad={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if(typeof window>"u")return Ad.schedule(n,0);if(typeof window.requestAnimationFrame>"u")return Ad.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let om;function e2(n,t,e){let i=e;return function qN(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((o,r)=>!("*"===o||!function KN(n,t){if(!om){const e=Element.prototype;om=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&om.call(n,t)}(n,o)||(i=r,0))),i}class n2{constructor(t,e){this.componentFactory=e.get(Yo).resolveComponentFactory(t)}create(t){return new o2(this.componentFactory,t)}}class o2{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new GN(1),this.events=this.eventEmitters.pipe(Ya(i=>$i(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(Ie),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Ad.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function XN(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=$n.create({providers:[],parent:this.injector}),i=function YN(n,t){const e=n.childNodes,i=t.map(()=>[]);let o=-1;t.some((r,s)=>"*"===r&&(o=s,!0));for(let r=0,s=e.length;r<s;++r){const a=e[r],l=e2(a,t,o);-1!==l&&i[l].push(a)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,t),this.viewChangeDetectorRef=this.componentRef.injector.get(to),this.implementsOnChanges=function JN(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(or).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:i,templateName:o})=>t.instance[i].pipe(ze(s=>({name:o,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Ad.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[t];if(i)return void(i.currentValue=e);const o=this.unchangedInputs.has(t),r=o?void 0:this.getInputValue(t);this.inputChanges[t]=new T_(r,e,o)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class r2 extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function WM(n,t,e,i,o,r,s){try{var a=n[r](s),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,o)}function kd(n){return function(){var t=this,e=arguments;return new Promise(function(i,o){var r=n.apply(t,e);function s(l){WM(r,i,o,s,a,"next",l)}function a(l){WM(r,i,o,s,a,"throw",l)}s(void 0)})}}const{isArray:a2}=Array,{getPrototypeOf:l2,prototype:c2,keys:d2}=Object;const{isArray:f2}=Array;function qM(n){return ze(t=>function p2(n,t){return f2(t)?n(...t):n(t)}(n,t))}function m2(n,t){return n.reduce((e,i,o)=>(e[i]=t[o],e),{})}function g2(...n){const t=function un(n){return ye(yo(n))?n.pop():void 0}(n),{args:e,keys:i}=function u2(n){if(1===n.length){const t=n[0];if(a2(t))return{args:t,keys:null};if(function h2(n){return n&&"object"==typeof n&&l2(n)===c2}(t)){const e=d2(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}(n),o=new Le(r=>{const{length:s}=e;if(!s)return void r.complete();const a=new Array(s);let l=s,c=s;for(let d=0;d<s;d++){let u=!1;Mt(e[d]).subscribe(qe(r,h=>{u||(u=!0,c--),a[d]=h},()=>l--,void 0,()=>{(!l||!u)&&(c||r.next(i?m2(i,a):a),r.complete())}))}});return t?o.pipe(qM(t)):o}let JM=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(b(xn),b(oe))},n.\u0275dir=k({type:n}),n})(),ar=(()=>{class n extends JM{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Se(n)))(i||n)}}(),n.\u0275dir=k({type:n,features:[G]}),n})();const Xn=new L("NgValueAccessor"),_2={provide:Xn,useExisting:Pe(()=>rm),multi:!0};let rm=(()=>{class n extends ar{writeValue(e){this.setProperty("checked",e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Se(n)))(i||n)}}(),n.\u0275dir=k({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&he("change",function(r){return i.onChange(r.target.checked)})("blur",function(){return i.onTouched()})},features:[ee([_2]),G]}),n})();const v2={provide:Xn,useExisting:Pe(()=>el),multi:!0},b2=new L("CompositionEventMode");let el=(()=>{class n extends JM{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function y2(){const n=io()?io().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(b(xn),b(oe),b(b2,8))},n.\u0275dir=k({type:n,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(e,i){1&e&&he("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[ee([v2]),G]}),n})();const C2=!1;function xo(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function KM(n){return null!=n&&"number"==typeof n.length}const Bt=new L("NgValidators"),Po=new L("NgAsyncValidators"),M2=/^(?=.{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 On{static min(t){return function XM(n){return t=>{if(xo(t.value)||xo(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}(t)}static max(t){return function QM(n){return t=>{if(xo(t.value)||xo(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return ZM(t)}static requiredTrue(t){return function YM(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function eS(n){return xo(n.value)||M2.test(n.value)?null:{email:!0}}(t)}static minLength(t){return tS(t)}static maxLength(t){return nS(t)}static pattern(t){return iS(t)}static nullValidator(t){return null}static compose(t){return cS(t)}static composeAsync(t){return dS(t)}}function ZM(n){return xo(n.value)?{required:!0}:null}function tS(n){return t=>xo(t.value)||!KM(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}function nS(n){return t=>KM(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function iS(n){if(!n)return Fd;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(xo(i.value))return null;const o=i.value;return t.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function Fd(n){return null}function oS(n){return null!=n}function rS(n){const t=Qc(n)?zi(n):n;if(C2&&!_b(t)){let e="Expected async validator to return Promise or Observable.";throw"object"==typeof n&&(e+=" Are you using a synchronous validator where an async validator is expected?"),new _(-1101,e)}return t}function sS(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function aS(n,t){return t.map(e=>e(n))}function lS(n){return n.map(t=>function S2(n){return!n.validate}(t)?t:e=>t.validate(e))}function cS(n){if(!n)return null;const t=n.filter(oS);return 0==t.length?null:function(e){return sS(aS(e,t))}}function sm(n){return null!=n?cS(lS(n)):null}function dS(n){if(!n)return null;const t=n.filter(oS);return 0==t.length?null:function(e){return g2(aS(e,t).map(rS)).pipe(ze(sS))}}function am(n){return null!=n?dS(lS(n)):null}function uS(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function hS(n){return n._rawValidators}function fS(n){return n._rawAsyncValidators}function lm(n){return n?Array.isArray(n)?n:[n]:[]}function Rd(n,t){return Array.isArray(n)?n.includes(t):n===t}function pS(n,t){const e=lm(t);return lm(n).forEach(o=>{Rd(e,o)||e.push(o)}),e}function mS(n,t){return lm(t).filter(e=>!Rd(n,e))}class gS{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=sm(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=am(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}}class Xt extends gS{get formDirective(){return null}get path(){return null}}class yn extends gS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _S{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let cm=(()=>{class n extends _S{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(b(yn,2))},n.\u0275dir=k({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Oe("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[G]}),n})(),dm=(()=>{class n extends _S{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(b(Xt,10))},n.\u0275dir=k({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Oe("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[G]}),n})();function vS(n,t){return n?`with name: '${t}'`:`at index: ${t}`}const fm=!1,tl="VALID",Bd="INVALID",Is="PENDING",nl="DISABLED";function pm(n){return(Ld(n)?n.validators:n)||null}function mm(n,t){return(Ld(t)?t.asyncValidators:n)||null}function Ld(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function yS(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new _(1e3,fm?function x2(n){return`\n    There are no form controls registered with this ${n?"group":"array"} yet. If you're using ngModel,\n    you may want to check next tick (e.g. use setTimeout).\n  `}(t):"");if(!i[e])throw new _(1001,fm?function P2(n,t){return`Cannot find form control ${vS(n,t)}`}(t,e):"")}function bS(n,t,e){n._forEachChild((i,o)=>{if(void 0===e[o])throw new _(1002,fm?function E2(n,t){return`Must supply a value for form control ${vS(n,t)}`}(t,o):"")})}class Vd{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}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===tl}get invalid(){return this.status===Bd}get pending(){return this.status==Is}get disabled(){return this.status===nl}get enabled(){return this.status!==nl}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._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(pS(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(pS(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(mS(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(mS(t,this._rawAsyncValidators))}hasValidator(t){return Rd(this._rawValidators,t)}hasAsyncValidator(t){return Rd(this._rawAsyncValidators,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(e=>{e.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(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Is,!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=nl,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=tl,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===tl||this.status===Is)&&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()?nl:tl}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Is,this._hasOwnPendingAsyncValidator=!0;const e=rS(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new le,this.statusChanges=new le}_calculateStatus(){return this._allControlsDisabled()?nl:this.errors?Bd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Is)?Is:this._anyControlsHaveStatus(Bd)?Bd:tl}_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)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Ld(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function O2(n){return Array.isArray(n)?sm(n):n||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function T2(n){return Array.isArray(n)?am(n):n||null}(this._rawAsyncValidators)}}class lr extends Vd{constructor(t,e,i){super(pm(e),mm(i,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,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.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,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){bS(this,!0,t),Object.keys(t).forEach(i=>{yS(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const o=this.controls[i];o&&o.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,o)=>{i.reset(t[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}class CS extends lr{}const cr=new L("CallSetDisabledState",{providedIn:"root",factory:()=>il}),il="always";function Hd(n,t){return[...t.path,n]}function ol(n,t,e=il){gm(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||"always"===e)&&t.valueAccessor.setDisabledState?.(n.disabled),function k2(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&MS(n,t)})}(n,t),function R2(n,t){const e=(i,o)=>{t.valueAccessor.writeValue(i),o&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function F2(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&MS(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function A2(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function jd(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),$d(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function zd(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function gm(n,t){const e=hS(n);null!==t.validator?n.setValidators(uS(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=fS(n);null!==t.asyncValidator?n.setAsyncValidators(uS(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const o=()=>n.updateValueAndValidity();zd(t._rawValidators,o),zd(t._rawAsyncValidators,o)}function $d(n,t){let e=!1;if(null!==n){if(null!==t.validator){const o=hS(n);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==t.validator);r.length!==o.length&&(e=!0,n.setValidators(r))}}if(null!==t.asyncValidator){const o=fS(n);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==t.asyncValidator);r.length!==o.length&&(e=!0,n.setAsyncValidators(r))}}}const i=()=>{};return zd(t._rawValidators,i),zd(t._rawAsyncValidators,i),e}function MS(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function wS(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function DS(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const sl=class extends Vd{constructor(t=null,e,i){super(pm(e),mm(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ld(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=DS(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,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){wS(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){wS(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){DS(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}};let xS=(()=>{class n extends Xt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Hd(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Se(n)))(i||n)}}(),n.\u0275dir=k({type:n,features:[G]}),n})(),TS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const G2={provide:Xn,useExisting:Pe(()=>Cm),multi:!0};let kS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({}),n})(),W2=(()=>{class n{constructor(){this._accessors=[]}add(e,i){this._accessors.push([e,i])}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e)return void this._accessors.splice(i,1)}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)})}_isSameGroup(e,i){return!!e[0].control&&e[0]._parent===i._control._parent&&e[1].name===i.name}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:kS}),n})(),Cm=(()=>{class n extends ar{constructor(e,i,o,r){super(e,i),this._registry=o,this._injector=r,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=pt(cr,{optional:!0})??il}ngOnInit(){this._control=this._injector.get(yn),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return n.\u0275fac=function(e){return new(e||n)(b(xn),b(oe),b(W2),b($n))},n.\u0275dir=k({type:n,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,i){1&e&&he("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[ee([G2]),G]}),n})();const Mm=new L("NgModelWithFormControlWarning"),K2={provide:Xt,useExisting:Pe(()=>al)};let al=(()=>{class n extends Xt{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new le,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&($d(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return ol(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){jd(e.control||null,e,!1),function V2(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function IS(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(jd(i||null,e),(n=>n instanceof sl)(o)&&(ol(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function SS(n,t){gm(n,t)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function N2(n,t){return $d(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){gm(this.form,this),this._oldForm&&$d(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(b(Bt,10),b(Po,10),b(cr,8))},n.\u0275dir=k({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&he("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ee([K2]),G,fn]}),n})();const X2={provide:Xt,useExisting:Pe(()=>Sm)};let Sm=(()=>{class n extends xS{constructor(e,i,o){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){NS(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(b(Xt,13),b(Bt,10),b(Po,10))},n.\u0275dir=k({type:n,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[ee([X2]),G]}),n})();const Q2={provide:Xt,useExisting:Pe(()=>Ud)};let Ud=(()=>{class n extends Xt{constructor(e,i,o){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Hd(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){NS(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(b(Xt,13),b(Bt,10),b(Po,10))},n.\u0275dir=k({type:n,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[ee([Q2]),G]}),n})();function NS(n){return!(n instanceof Sm||n instanceof al||n instanceof Ud)}const Z2={provide:yn,useExisting:Pe(()=>Gd)};let Gd=(()=>{class n extends yn{set isDisabled(e){}constructor(e,i,o,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new le,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=function ym(n,t){if(!t)return null;let e,i,o;return Array.isArray(t),t.forEach(r=>{r.constructor===el?e=r:function L2(n){return Object.getPrototypeOf(n.constructor)===ar}(r)?i=r:o=r}),o||i||e||null}(0,r)}ngOnChanges(e){this._added||this._setUpControl(),function vm(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Hd(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(b(Xt,13),b(Bt,10),b(Po,10),b(Xn,10),b(Mm,8))},n.\u0275dir=k({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[ee([Z2]),G,fn]}),n})();const Y2={provide:Xn,useExisting:Pe(()=>ll),multi:!0};function BS(n,t){return null==n?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${n}: ${t}`.slice(0,50))}let ll=(()=>{class n extends ar{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const o=BS(this._getOptionId(e),e);this.setProperty("value",o)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function eB(n){return n.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Se(n)))(i||n)}}(),n.\u0275dir=k({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&he("change",function(r){return i.onChange(r.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[ee([Y2]),G]}),n})(),Im=(()=>{class n{constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(BS(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(e){return new(e||n)(b(oe),b(xn),b(ll,9))},n.\u0275dir=k({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();const tB={provide:Xn,useExisting:Pe(()=>wm),multi:!0};function LS(n,t){return null==n?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${n}: ${t}`.slice(0,50))}let wm=(()=>{class n extends ar{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const o=e.map(r=>this._getOptionId(r));i=(r,s)=>{r._setSelected(o.indexOf(s.toString())>-1)}}else i=(o,r)=>{o._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const o=[],r=i.selectedOptions;if(void 0!==r){const s=r;for(let a=0;a<s.length;a++){const c=this._getOptionValue(s[a].value);o.push(c)}}else{const s=i.options;for(let a=0;a<s.length;a++){const l=s[a];if(l.selected){const c=this._getOptionValue(l.value);o.push(c)}}}this.value=o,e(o)}}_registerOption(e){const i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){const i=function nB(n){return n.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Se(n)))(i||n)}}(),n.\u0275dir=k({type:n,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,i){1&e&&he("change",function(r){return i.onChange(r.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[ee([tB]),G]}),n})(),Dm=(()=>{class n{constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(LS(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(LS(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(e){return new(e||n)(b(oe),b(xn),b(wm,9))},n.\u0275dir=k({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();function VS(n){return"number"==typeof n?n:parseInt(n,10)}let dr=(()=>{class n{constructor(){this._validator=Fd}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Fd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,features:[fn]}),n})();const rB={provide:Bt,useExisting:Pe(()=>cl),multi:!0};let cl=(()=>{class n extends dr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Op,this.createValidator=e=>ZM}enabled(e){return e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Se(n)))(i||n)}}(),n.\u0275dir=k({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&J("required",i._enabled?"":null)},inputs:{required:"required"},features:[ee([rB]),G]}),n})();const lB={provide:Bt,useExisting:Pe(()=>Wd),multi:!0};let Wd=(()=>{class n extends dr{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>VS(e),this.createValidator=e=>tS(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Se(n)))(i||n)}}(),n.\u0275dir=k({type:n,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&J("minlength",i._enabled?i.minlength:null)},inputs:{minlength:"minlength"},features:[ee([lB]),G]}),n})();const cB={provide:Bt,useExisting:Pe(()=>qd),multi:!0};let qd=(()=>{class n extends dr{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>VS(e),this.createValidator=e=>nS(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Se(n)))(i||n)}}(),n.\u0275dir=k({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&J("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[ee([cB]),G]}),n})();const dB={provide:Bt,useExisting:Pe(()=>xm),multi:!0};let xm=(()=>{class n extends dr{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>iS(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Se(n)))(i||n)}}(),n.\u0275dir=k({type:n,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&J("pattern",i._enabled?i.pattern:null)},inputs:{pattern:"pattern"},features:[ee([dB]),G]}),n})(),GS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[kS]}),n})();class Jd extends Vd{constructor(t,e,i){super(pm(e),mm(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let o=this._adjustIndex(t);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){bS(this,!1,t),t.forEach((i,o)=>{yS(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,o)=>{i.reset(t[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_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)}_find(t){return this.at(t)??null}}function WS(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let qS=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,i=null){const o=this._reduceControls(e);let r={};return WS(i)?r=i:null!==i&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new lr(o,r)}record(e,i=null){const o=this._reduceControls(e);return new CS(o,i)}control(e,i,o){let r={};return this.useNonNullable?(WS(i)?r=i:(r.validators=i,r.asyncValidators=o),new sl(e,{...r,nonNullable:!0})):new sl(e,i,o)}array(e,i,o){const r=e.map(s=>this._createControl(s));return new Jd(r,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return e instanceof sl||e instanceof Vd?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pm=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:cr,useValue:e.callSetDisabledState??il}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[GS]}),n})(),JS=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Mm,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:cr,useValue:e.callSetDisabledState??il}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[GS]}),n})();class uB extends be{constructor(t,e){super()}schedule(t,e=0){return this}}const Kd={setInterval(n,t,...e){const{delegate:i}=Kd;return i?.setInterval?i.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=Kd;return(t?.clearInterval||clearInterval)(n)},delegate:void 0};class Em extends uB{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var i;if(this.closed)return this;this.state=t;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return Kd.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Kd.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let o,i=!1;try{this.work(t)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Us(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}class dl{constructor(t,e=dl.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}dl.now=im.now;class Om extends dl{constructor(t,e=dl.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const Tm=new Om(Em),hB=Tm;function KS(n=0,t,e=hB){let i=-1;return null!=t&&(nc(t)?e=t:i=t),new Le(o=>{let r=function fB(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;r<0&&(r=0);let s=0;return e.schedule(function(){o.closed||(o.next(s++),0<=i?this.schedule(void 0,i):o.complete())},r)})}function XS(n){return tt((t,e)=>{let r,i=null,o=!1;i=t.subscribe(qe(e,void 0,void 0,s=>{r=Mt(n(s,XS(n)(t))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function Am(n,t,e){const i=ye(n)||t||e?{next:n,error:t,complete:e}:n;return i?tt((o,r)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;o.subscribe(qe(r,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),r.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),r.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),r.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):mo}function ws(...n){return zi(n,si(n))}function ul(n,t){return tt((e,i)=>{let o=0;e.subscribe(qe(i,r=>n.call(t,r,o++)&&i.next(r)))})}class Xd{}class km{}class bi{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.entries(t).forEach(([e,i])=>{let o;if(o="string"==typeof i?[i]:"number"==typeof i?[i.toString()]:i.map(r=>r.toString()),o.length>0){const r=e.toLowerCase();this.headers.set(r,o),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 bi?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 bi;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof bi?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const o=("a"===t.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=t.value;if(r){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===r.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}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 gB{encodeKey(t){return QS(t)}encodeValue(t){return QS(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const vB=/%(\d[a-f0-9])/gi,yB={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function QS(n){return encodeURIComponent(n).replace(vB,(t,e)=>yB[e]??t)}function Qd(n){return`${n}`}class Eo{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new gB,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function _B(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[s,a]=-1==r?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,r)),t.decodeValue(o.slice(r+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],o=Array.isArray(i)?i.map(Qd):[Qd(i)];this.map.set(e,o)})):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(i=>{const o=t[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,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(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Eo({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(Qd(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const o=i.indexOf(Qd(t.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class bB{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}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function ZS(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function YS(n){return typeof Blob<"u"&&n instanceof Blob}function eI(n){return typeof FormData<"u"&&n instanceof FormData}class hl{constructor(t,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function CB(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new bi),this.context||(this.context=new bB),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+s}}else this.params=new Eo,this.urlWithParams=e}serializeBody(){return null===this.body?null:ZS(this.body)||YS(this.body)||eI(this.body)||function MB(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Eo?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||eI(this.body)?null:YS(this.body)?this.body.type||null:ZS(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Eo?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){const e=t.method||this.method,i=t.url||this.url,o=t.responseType||this.responseType,r=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let l=t.headers||this.headers,c=t.params||this.params;const d=t.context??this.context;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((u,h)=>u.set(h,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((u,h)=>u.set(h,t.setParams[h]),c)),new hl(e,i,r,{params:c,headers:l,context:d,reportProgress:a,responseType:o,withCredentials:s})}}var vt=(()=>((vt=vt||{})[vt.Sent=0]="Sent",vt[vt.UploadProgress=1]="UploadProgress",vt[vt.ResponseHeader=2]="ResponseHeader",vt[vt.DownloadProgress=3]="DownloadProgress",vt[vt.Response=4]="Response",vt[vt.User=5]="User",vt))();class Fm{constructor(t,e=200,i="OK"){this.headers=t.headers||new bi,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Rm extends Fm{constructor(t={}){super(t),this.type=vt.ResponseHeader}clone(t={}){return new Rm({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 Zd extends Fm{constructor(t={}){super(t),this.type=vt.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Zd({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 tI extends Fm{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 Nm(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Bm=(()=>{class n{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof hl)r=e;else{let l,c;l=o.headers instanceof bi?o.headers:new bi(o.headers),o.params&&(c=o.params instanceof Eo?o.params:new Eo({fromObject:o.params})),r=new hl(e,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=ws(r).pipe(function mB(n,t){return ye(t)?ri(n,t,1):ri(n,1)}(l=>this.handler.handle(l)));if(e instanceof hl||"events"===o.observe)return s;const a=s.pipe(ul(l=>l instanceof Zd));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(ze(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ze(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ze(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ze(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Eo).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,Nm(o,i))}post(e,i,o={}){return this.request("POST",e,Nm(o,i))}put(e,i,o={}){return this.request("PUT",e,Nm(o,i))}}return n.\u0275fac=function(e){return new(e||n)(w(Xd))},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})();function nI(n,t){return t(n)}function SB(n,t){return(e,i)=>t.intercept(e,{handle:o=>n(o,i)})}const wB=new L("HTTP_INTERCEPTORS"),fl=new L("HTTP_INTERCEPTOR_FNS");function DB(){let n=null;return(t,e)=>(null===n&&(n=(pt(wB,{optional:!0})??[]).reduceRight(SB,nI)),n(t,e))}let iI=(()=>{class n extends Xd{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(fl)));this.chain=i.reduceRight((o,r)=>function IB(n,t,e){return(i,o)=>e.runInContext(()=>t(i,r=>n(r,o)))}(o,r,this.injector),nI)}return this.chain(e,i=>this.backend.handle(i))}}return n.\u0275fac=function(e){return new(e||n)(w(km),w(Zo))},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})();const OB=/^\)\]\}',?\n/;let rI=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Le(i=>{const o=this.xhrFactory.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((f,m)=>o.setRequestHeader(f,m.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&o.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();o.responseType="json"!==f?f:"text"}const r=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=o.statusText||"OK",m=new bi(o.getAllResponseHeaders()),v=function TB(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(o)||e.url;return s=new Rm({headers:m,status:o.status,statusText:f,url:v}),s},l=()=>{let{headers:f,status:m,statusText:v,url:S}=a(),C=null;204!==m&&(C=typeof o.response>"u"?o.responseText:o.response),0===m&&(m=C?200:0);let x=m>=200&&m<300;if("json"===e.responseType&&"string"==typeof C){const M=C;C=C.replace(OB,"");try{C=""!==C?JSON.parse(C):null}catch(I){C=M,x&&(x=!1,C={error:I,text:C})}}x?(i.next(new Zd({body:C,headers:f,status:m,statusText:v,url:S||void 0})),i.complete()):i.error(new tI({error:C,headers:f,status:m,statusText:v,url:S||void 0}))},c=f=>{const{url:m}=a(),v=new tI({error:f,status:o.status||0,statusText:o.statusText||"Unknown Error",url:m||void 0});i.error(v)};let d=!1;const u=f=>{d||(i.next(a()),d=!0);let m={type:vt.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(m.total=f.total),"text"===e.responseType&&o.responseText&&(m.partialText=o.responseText),i.next(m)},h=f=>{let m={type:vt.UploadProgress,loaded:f.loaded};f.lengthComputable&&(m.total=f.total),i.next(m)};return o.addEventListener("load",l),o.addEventListener("error",c),o.addEventListener("timeout",c),o.addEventListener("abort",c),e.reportProgress&&(o.addEventListener("progress",u),null!==r&&o.upload&&o.upload.addEventListener("progress",h)),o.send(r),i.next({type:vt.Sent}),()=>{o.removeEventListener("error",c),o.removeEventListener("abort",c),o.removeEventListener("load",l),o.removeEventListener("timeout",c),e.reportProgress&&(o.removeEventListener("progress",u),null!==r&&o.upload&&o.upload.removeEventListener("progress",h)),o.readyState!==o.DONE&&o.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(w(CM))},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})();const Lm=new L("XSRF_ENABLED"),sI=new L("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),aI=new L("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class lI{}let FB=(()=>{class n{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=dM(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(w(Fe),w(Ss),w(sI))},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})();function RB(n,t){const e=n.url.toLowerCase();if(!pt(Lm)||"GET"===n.method||"HEAD"===n.method||e.startsWith("http://")||e.startsWith("https://"))return t(n);const i=pt(lI).getToken(),o=pt(aI);return null!=i&&!n.headers.has(o)&&(n=n.clone({headers:n.headers.set(o,i)})),t(n)}var ut=(()=>((ut=ut||{})[ut.Interceptors=0]="Interceptors",ut[ut.LegacyInterceptors=1]="LegacyInterceptors",ut[ut.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ut[ut.NoXsrfProtection=3]="NoXsrfProtection",ut[ut.JsonpSupport=4]="JsonpSupport",ut[ut.RequestsMadeViaParent=5]="RequestsMadeViaParent",ut))();function Ds(n,t){return{\u0275kind:n,\u0275providers:t}}function NB(...n){const t=[Bm,rI,iI,{provide:Xd,useExisting:iI},{provide:km,useExisting:rI},{provide:fl,useValue:RB,multi:!0},{provide:Lm,useValue:!0},{provide:lI,useClass:FB}];for(const e of n)t.push(...e.\u0275providers);return function UE(n){return{\u0275providers:n}}(t)}const cI=new L("LEGACY_INTERCEPTOR_FN");let LB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({providers:[NB(Ds(ut.LegacyInterceptors,[{provide:cI,useFactory:DB},{provide:fl,useExisting:cI,multi:!0}]))]}),n})();var Yd=(()=>{return(n=Yd||(Yd={})).SINGLE_STEP="template_campanha",n.MULTI_STEP="template_campanha_multi_step",Yd;var n})();let VB=(()=>{const t=class{getByCampaignId(i,o){return`${Kn_contentstack_base_url}/${o}/entries?environment=${Kn_contentstack_env}&query={"uid" : "${i}"}`}getHeaders(){return{headers:new bi({api_key:Kn_contentstack_api_key,access_token:Kn_contentstack_access_token})}}};let n=t;return t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"}),n})(),jB=(()=>{const t=class{constructor(i){this.http=i,this.isCharonSessionValid=!1}init(){return this.http.get("https://apicd.cloud.itau.com.br/charon/bg6l5eoz",{observe:"response"}).pipe(Am(i=>{this.endpoints=i.body?.links,this.charonSession=i.headers.get("x-charon-session"),this.isCharonSessionValid=!0,setTimeout(()=>this.isCharonSessionValid=!1,1e4)}))}get(i,o){return this.isCharonSessionValid?this.http.get(this.getEndpoint(i),this.getHeaders(o)):this.init().pipe(Ya(()=>this.http.get(this.getEndpoint(i),this.getHeaders(o))))}post(i,o,r){return this.isCharonSessionValid?this.http.post(this.getEndpoint(i),o,this.getHeaders(r)):this.init().pipe(Ya(()=>this.http.post(this.getEndpoint(i),o,this.getHeaders(r))))}getToken(){this.token=sessionStorage.getItem("Authorization")}getEndpoint(i){return this.endpoints.find(o=>o.rel===i).href}getHeaders(i){const o=i?.segment?String(i.segment).toLowerCase():"";i={...i,segment:o},this.getToken();let r=new bi({"x-itau-correlationID":Kn_contentstack_access_token,"x-charon-session":this.charonSession,"x-origin-cf-apigw":Kn_contentstack_api_key,"Content-Type":"application/json"});if(i){const s=btoa(JSON.stringify(i));r=r.set("X-Charon-Params",s)}return{headers:r}}};let n=t;return t.\u0275fac=function(o){return new(o||t)(w(Bm))},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"}),n})(),dI=(()=>{const t=class{showErrors(i){let o="";return o=i.error instanceof ErrorEvent?i.error.message:`Error Code: ${i.status}\nMessage: ${i.message}`,function zB(n,t){const e=ye(n)?n:()=>n,i=o=>o.error(e());return new Le(t?o=>t.schedule(i,0,o):i)}(()=>new Error(o))}convertToSlug(i){return(i=this.stripString(i)).toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"")}stripString(i,o=!1){const r="\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd8\xd9\xda\xdb\xdc\xdd\u0154\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff\u0155";let a="",l=!1;for(let c=0;c<i.length;c++){l=!1;for(let d=0;d<r.length;d++)if(i.slice(c,c+1)===r.slice(d,d+1)){a+="AAAAAAACEEEEIIIIDNOOOOOOUUUUYRsBaaaaaaaceeeeiiiionoooooouuuuybyr".slice(d,d+1),l=!0;break}!1===l&&(a+=i.slice(c,c+1))}return o?a.trim().replace(/[^\w\s]/gi,""):a.trim().replace(/[^\w\s:\-\/]/gi,"")}pascalCase(i){const o=this.stripString;return i.split(":").map(r=>(r=o(r,!0)).charAt(0).toUpperCase()+r.replace(/\s(.)/g,s=>s.toUpperCase()).replace(/\s/g,"").replace(/^(.)/,s=>s.toLowerCase()).slice(1)).join(":")}skewerCase(i,o){return this.stripString(i.substring(0,100).toLowerCase(),o).replace(/\s+/gi,"-")}};let n=t;return t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"}),n})(),$B=(()=>{const t=class{constructor(i,o,r,s){this.httpClient=i,this.contentStackService=o,this.caronteService=r,this.handlersService=s}getForm(i){return this.httpClient.get(this.contentStackService.getByCampaignId(i,Yd.SINGLE_STEP),this.contentStackService.getHeaders()).pipe(function pB(n=1/0){let t;t=n&&"object"==typeof n?n:{count:n};const{count:e=1/0,delay:i,resetOnSuccess:o=!1}=t;return e<=0?mo:tt((r,s)=>{let l,a=0;const c=()=>{let d=!1;l=r.subscribe(qe(s,u=>{o&&(a=0),s.next(u)},void 0,u=>{if(a++<e){const h=()=>{l?(l.unsubscribe(),l=null,c()):d=!0};if(null!=i){const f="number"==typeof i?KS(i):Mt(i(u,a)),m=qe(s,()=>{m.unsubscribe(),h()},()=>{s.complete()});f.subscribe(m)}else h()}else s.error(u)})),d&&(l.unsubscribe(),l=null,c())};c()})}(1),XS(this.handlersService.showErrors))}create(i){return this.caronteService.post("campanhas",i).pipe(Am(o=>{console.log("response",o)}))}};let n=t;return t.\u0275fac=function(o){return new(o||t)(w(Bm),w(VB),w(jB),w(dI))},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"}),n})();class ur extends re{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}}const UB=["addListener","removeListener"],GB=["addEventListener","removeEventListener"],WB=["on","off"];function xs(n,t,e,i){if(ye(e)&&(i=e,e=void 0),i)return xs(n,t,e).pipe(qM(i));const[o,r]=function KB(n){return ye(n.addEventListener)&&ye(n.removeEventListener)}(n)?GB.map(s=>a=>n[s](t,a,e)):function qB(n){return ye(n.addListener)&&ye(n.removeListener)}(n)?UB.map(uI(n,t)):function JB(n){return ye(n.on)&&ye(n.off)}(n)?WB.map(uI(n,t)):[];if(!o&&ta(n))return ri(s=>xs(s,t,e))(Mt(n));if(!o)throw new TypeError("Invalid event target");return new Le(s=>{const a=(...l)=>s.next(1<l.length?l:l[0]);return o(a),()=>r(a)})}function uI(n,t){return e=>i=>n[e](t,i)}function yt(n){return tt((t,e)=>{Mt(n).subscribe(qe(e,()=>e.complete(),Fo)),!e.closed&&t.subscribe(e)})}function hI(...n){return function XB(){return _o(1)}()(zi(n,si(n)))}function Vm(...n){const t=si(n);return tt((e,i)=>{(t?hI(n,e,t):hI(n,e)).subscribe(i)})}function pl(n){return n<=0?()=>vo:tt((t,e)=>{let i=0;t.subscribe(qe(e,o=>{++i<=n&&(e.next(o),n<=i&&e.complete())}))})}const ZB={Area_de_pessoas:"area_de_pessoas",Atlas:"atlas",Cartao_branco:"cartao_branco",Credicard:"credicard",Credicard_on:"credicard_on",Decathlon:"decathlon",Empresas:"empresas",Emps:"emps",Fast_shop_pay:"fast_shop_pay",Hipercard:"hipercard",Icarros:"icarros",Ids:"ids",Investment_service:"investment_service",Ion:"ion",Itau_bba:"itau_bba",Itau_gestao_de_ativos:"itau_gestao_de_ativos",Itaucard:"itaucard",Iti:"iti",Magalu:"magalu",Oca:"oca",Personal_bank:"personal_bank",Personnalite:"personnalite",Players_bank:"players_bank",Private:"private",Rede:"rede",Samsung:"samsung",Uniclass:"uniclass",Varejo:"varejo",Vivo:"vivo",Varejo_beta:"varejo_beta",Uniclass_beta:"uniclass_beta"};var ml={d:(n,t)=>{for(var e in t)ml.o(t,e)&&!ml.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},o:(n,t)=>Object.prototype.hasOwnProperty.call(n,t)},N={};ml.d(N,{Nm:()=>uL,bT:()=>yL,M7:()=>II,zs:()=>SI,K4:()=>kL,Mf:()=>FL,gT:()=>gL,Bg:()=>yI,qG:()=>bI,Jg:()=>CI,oj:()=>SL,Vw:()=>bL,bx:()=>HL,tm:()=>KL,qq:()=>qL,EP:()=>GL,LJ:()=>jL,l$:()=>RL,xg:()=>LL,_$:()=>BL,Vm:()=>NL,DP:()=>VL,BT:()=>XL,mw:()=>JL,DG:()=>WL,Oq:()=>UL,e4:()=>zL,u9:()=>$L,Vs:()=>QL,_Y:()=>AL,u7:()=>hL,IV:()=>wL,IO:()=>IL,XX:()=>dV,zX:()=>lV,wC:()=>gl,fN:()=>mL,$A:()=>YB,Z0:()=>OI,Az:()=>_L,Rh:()=>uV,mj:()=>Um,vg:()=>Os,NI:()=>tV,I8:()=>nV,yp:()=>dL,oV:()=>Zm,PW:()=>eL,ly:()=>Es,So:()=>aL,DX:()=>pL,T_:()=>Gm,xH:()=>PL,RD:()=>EL,vd:()=>ML,C1:()=>ZL,Cr:()=>eV,pm:()=>cV,yQ:()=>YL,zr:()=>vI,uf:()=>iL,lq:()=>zm,Wb:()=>iV,zi:()=>oV,w9:()=>rV,cR:()=>Wm,cg:()=>lL,hj:()=>MI,SZ:()=>DL,Te:()=>eu,kl:()=>TL,bG:()=>jm,J9:()=>vL,W_:()=>sV,Jv:()=>hr,Q1:()=>fV,hv:()=>fI,LU:()=>rL,jx:()=>sL,P$:()=>Hm,kP:()=>mI,R0:()=>hV,PT:()=>cL,Gl:()=>nL,bh:()=>fL,mA:()=>tL,QS:()=>oL,qS:()=>xL,sg:()=>OL});var Hm=function(n,t,e){void 0===e&&(e="true"),n.hasAttribute(t)||(n.setAttribute(t,e),n.setAttribute("data-setted-".concat(t),"true"))},fI=function(n,t){"true"!==n.getAttribute("data-setted-".concat(t))||(n.removeAttribute("data-setted-".concat(t)),n.removeAttribute(t))},YB=function(n){if(void 0===n&&(n=""),!n)return"";var t=n.split(" ");return t.length>1?"".concat(t[0][0]).concat(t[t.length-1][0]):"".concat(t[0][0])},jm=function(n){return void 0===n&&(n=""),n.normalize("NFKD").replace(/[\u0080-\uF8FF]/g,"").toLocaleLowerCase()},eL=function(n,t){return void 0===n&&(n=""),"upperCase"===t?n.toUpperCase():"lowerCase"===t?n.toLowerCase():n},tL=function(n){return void 0===n&&(n=""),n.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()},eu=function(n,t,e){void 0===e&&(e=0);var i=t.match(n);if(i){if(e>=0&&e<i.length)return i[e];if(e<0&&-e<=i.length)return i[i.length+e]}return""},zm=function(n,t,e){void 0===n&&(n=""),void 0===t&&(t="");var i=void 0===e?{}:e,o=i.normalize,r=void 0===o||o,s=i.method,a=void 0===s?"includes":s,l=(r?jm(n):n).trim(),c=(r?jm(t):t).trim();return"equals"===a?l===c:l[a](c)},$m=function(){return navigator.userAgent.includes("iPad")||!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Mac OS")&&navigator.maxTouchPoints>1},tu=function(){var n,t,e;return"Windows"===(null===(n=navigator.userAgentData)||void 0===n?void 0:n.platform)||navigator.userAgent.includes("Windows NT")?"Windows":"Android"===(null===(t=navigator.userAgentData)||void 0===t?void 0:t.platform)||navigator.userAgent.includes("Android")?"Android":"iPhone"===navigator.platform||navigator.userAgent.includes("iPhone")||$m()?"IOS":"macOS"===(null===(e=navigator.userAgentData)||void 0===e?void 0:e.platform)||navigator.userAgent.includes("Mac OS")||"MacIntel"===navigator.platform?"MacOS":"Windows"},pI=function(){var n,t,e,i,o=navigator.userAgent.includes("CriOS"),r=!o&&("iPhone"===navigator.platform||$m()),s=(navigator.vendor||"").includes("Apple Computer, Inc")&&("MacIntel"===navigator.platform||navigator.userAgent.includes("Macintosh"));return null!==(t=null===(n=navigator.userAgentData)||void 0===n?void 0:n.brands)&&void 0!==t&&t.some(function(a){return"Microsoft Edge"===a.brand})||navigator.userAgent.includes("Edg")||navigator.userAgent.includes("EdgiOS")?"Edge":o||null!==(i=null===(e=navigator.userAgentData)||void 0===e?void 0:e.brands)&&void 0!==i&&i.some(function(a){return"Google Chrome"===a.brand})?"Chrome":navigator.userAgent.includes("Firefox/")||navigator.userAgent.includes("FxiOS/")?"Firefox":r||s?"Safari":"Internet Explorer"},hr={get isMobile(){return t=tu(),!((null===(n=navigator.userAgentData)||void 0===n||!n.mobile)&&"Android"!==t&&"IOS"!==t);var n,t},get os(){return tu()},get userAgent(){return pI()},get userAgentVersion(){return n=tu(),t={Chrome:"".concat("IOS"===n?"CriOS":"Chrome"),Edge:"".concat("IOS"===n?"EdgiOS":"Edg"),Firefox:"".concat("IOS"===n?"FxiOS":"Firefox"),"Internet Explorer":"rv",Safari:"Version"}[pI()],e=new RegExp("".concat(t,"rv"!==t?"\\/(\\d+)":":(\\d+)")),eu(e,navigator.userAgent,1);var n,t,e},get osVersion(){return function(){var n,t=navigator.userAgent,e=(null===(n=t.match(/\((.*?)\)/))||void 0===n?void 0:n[1].replace(/_/g,"."))||"";if($m()){var i=t.includes("CPU OS")?"CPU OS":"Mac OS X";return eu(new RegExp("".concat(i," (\\d+(?:\\.\\d+)*)")),e,1)}var o=tu();return eu(new RegExp("".concat({Android:"Android",IOS:"iPhone OS",MacOS:"Mac OS X",Windows:"Windows NT"}[o]," (\\d+(?:\\.\\d+)*)")),e,1)}()}},Um=function(n){return"BUTTON"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName||"A"===n.tagName||"SELECT"===n.tagName||"SUMMARY"===n.tagName||n.hasAttribute("tabindex")},mI=function(n,t){var e=void 0===t?{}:t,i=e.focusInterval,o=void 0===i?10:i,r=e.focusTotalRepetitions,s=void 0===r?10:r,a=e.noBlur,l=void 0!==a&&a;return new Promise(function(c){l||n.blur();var d=0,u=setInterval(function(){n.focus(),++d>=s&&(clearInterval(u),c())},o)})},Gm=function(n){var t;Um(t=n)||Hm(t,"tabindex","-1"),"IOS"!==hr.os?"Windows"!==hr.os?n.focus():setTimeout(function(){return n.focus()}):mI(n)},gI=function(n){var t="string"==typeof n.firstChild||n.firstChild instanceof Text,e=Um(n),i="true"!==n.getAttribute("aria-hidden");return(t||e)&&i},_I=function(n){var t=Array.from(n.children);return t.length?t.reduce(function(e,i){return gI(e)?e:gI(i)?i:"true"===i.getAttribute("aria-hidden")?e:i.firstChild?_I(i):e},n):n},nL=function(n){var t="dialog"===n.getAttribute("role")||"DIALOG"===n.tagName;Gm("Android"===hr.os&&t?n:_I(n))},iL=function(n){return document.activeElement===n},oL=function(n,t,e){if(void 0===n&&(n=document.querySelector(".cdk-overlay-container")),void 0===t&&(t=!0),void 0===e&&(e=Array.from(document.querySelectorAll(".cdk-live-announcer-element"))),n){var i=function(o){var r,s;Array.from(null!==(s=null===(r=o.parentElement)||void 0===r?void 0:r.children)&&void 0!==s?s:[]).filter(function(a){return!a.isEqualNode(o)&&!e.some(function(l){return l.isEqualNode(a)})&&"SCRIPT"!==a.tagName&&"STYLE"!==a.tagName&&"LINK"!==a.tagName&&"HEAD"!==a.tagName}).forEach(function(a){t?Hm(a,"aria-hidden","true"):fI(a,"aria-hidden")}),o.parentElement&&i(o.parentElement)};i(n)}},Wm=function(n){var t=n instanceof Document?document.scrollingElement:n;if(!t||t instanceof DocumentFragment)return!1;var e=getComputedStyle(t),i=e.overflowX,o=e.overflowY;return("auto"===i||"scroll"===i)&&t.scrollWidth>t.offsetWidth||("auto"===o||"scroll"===o)&&t.scrollHeight>t.offsetHeight},rL=function(n,t,e){void 0===e&&(e="smooth"),t&&t.scrollTo&&t.scrollTo({left:n.offsetLeft-(t.clientWidth-n.offsetWidth)/2,behavior:e})},vI=function(n){return!n||n instanceof DocumentFragment?document.scrollingElement:Wm(n)?n:vI(n.parentNode)},sL=function(n,t,e){void 0===t&&(t=0),void 0===e&&(e=40);var i=n.offsetWidth%t,o=i>t-e/2?t-i+e:i<e?e-i:0;o>0&&(n.scrollLeft=o)},aL=function(n){!hr.isMobile&&n&&(Wm(n)?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex"))},nu=function(){return nu=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},nu.apply(this,arguments)};function ro(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var i,o,r=e.call(n),s=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(o)throw o.error}}return s}function Ps(n,t,e){if(e||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return n.concat(i||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var lL=function(n,t){return n.length===t.length&&n.every(function(e,i){return e===t[i]})},cL=function(n,t,e){void 0===t&&(t=0),void 0===e&&(e=!0);var i=Ps([],ro(n),!1);return i.sort(function(o,r){if(o[t]===r[t])return 0;var s=o[t]<r[t]?-1:1;return e?s:-1*s}),i},dL=function(n,t){return n.filter(function(e){return!t.includes(e)})},uL={success:"confirmacao",error:"error_circle_base"},qm="data:image/svg+xml;charset=UTF-8,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='40px' height='40px' viewBox='0 0 40 40' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3C!-- Generator: Sketch 58 (84663) - https://sketch.com --%3E%3Ctitle%3EGroup 2%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cdefs%3E%3ClinearGradient x1='50%25' y1='-20.7957192%25' x2='50%25' y2='75.0698753%25' id='linearGradient-1'%3E%3Cstop stop-color='%23EC7000' offset='0%25'%3E%3C/stop%3E%3Cstop stop-color='%23FFD735' offset='100%25'%3E%3C/stop%3E%3C/linearGradient%3E%3C/defs%3E%3Cg id='Page-2' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Artboard' transform='translate(-167.000000, -198.000000)'%3E%3Cg id='Group-2' transform='translate(167.000000, 198.000000)'%3E%3Cpath d='M20,0 C8.95454424,0 0,8.95442431 0,20.0002679 L0,20.0002679 C0,31.0455757 8.95454424,40 20,40 L20,40 C31.0465272,40 40,31.0455757 40,20.0002679 L40,20.0002679 C40,8.95442431 31.0465272,0 20,0 Z' id='Fill-1' fill='url(%23linearGradient-1)'%3E%3C/path%3E%3Cpath d='M16,29 L16,29 C18.3925714,27.6666667 21.6074286,27.6666667 24,29' id='Stroke-4' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3Cpath d='M28,22.9997596 C28,24.1047001 28.8952999,25 30.0002404,25 C31.1047001,25 32,24.1047001 32,22.9997596 C32,21.8952999 31.1047001,21 30.0002404,21 C28.8952999,21 28,21.8952999 28,22.9997596' id='Fill-10' fill='%23231D19'%3E%3C/path%3E%3Cpath d='M32,19.3979764 C31.5385928,19.1470489 30.9795309,19 30.3773987,19 C29.3876333,19 28.5151386,19.3966273 28,20' id='Stroke-12' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3Cpath d='M12,22.9997596 C12,24.1047001 11.1047001,25 9.99975959,25 C8.89529992,25 8,24.1047001 8,22.9997596 C8,21.8952999 8.89529992,21 9.99975959,21 C11.1047001,21 12,21.8952999 12,22.9997596' id='Fill-6' fill='%23231D19'%3E%3C/path%3E%3Cpath d='M8,19.3979764 C8.46135806,19.1470489 9.0203603,19 9.62242831,19 C10.6120883,19 11.4844899,19.3966273 12,20' id='Stroke-8' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",Jm="data:image/svg+xml;charset=UTF-8,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='41px' height='40px' viewBox='0 0 41 40' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3C!-- Generator: Sketch 58 (84663) - https://sketch.com --%3E%3Ctitle%3EGroup 2%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cg id='Page-2' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Artboard' transform='translate(-271.000000, -198.000000)'%3E%3Cg id='Group-2' transform='translate(271.000000, 198.000000)'%3E%3Ccircle id='Oval-Copy-8' fill='%23FFD735' cx='21' cy='20' r='20'%3E%3C/circle%3E%3Cpath d='M17,30 L17,30 C19.3925714,28.6666667 22.6074286,28.6666667 25,30' id='Stroke-3' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3Cpath d='M6.82823035,24.8650074 L4.14275994,22.0597038 C4.06655533,21.9800987 3.93146533,21.9800987 3.85476588,22.0597038 L1.16979031,24.8650074 C-0.389930105,26.4943268 -0.389930105,29.1455894 1.16979031,30.7759427 C1.92589844,31.5647567 2.93041381,32 3.99876291,32 C6.25026288,32 8,30.0920628 8,27.8202166 C8,26.7036779 7.5833488,25.6538213 6.82823035,24.8650074' id='Fill-5' fill='%23106EB0'%3E%3C/path%3E%3Cpath d='M29,22.9997596 C29,24.1047001 29.8952999,25 30.9997596,25 C32.1047001,25 33,24.1047001 33,22.9997596 C33,21.8952999 32.1047001,21 30.9997596,21 C29.8952999,21 29,21.8952999 29,22.9997596' id='Fill-8' fill='%23231D19'%3E%3C/path%3E%3Cpath d='M33,18.1994573 C32.4594054,18.7042062 31.8043967,19 31.0989258,19 C30.3045216,19 29.5750687,18.6255088 29,18' id='Stroke-10' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3Cpath d='M13,22.9997596 C13,24.1047001 12.1048077,25 11,25 C9.89567308,25 9,24.1047001 9,22.9997596 C9,21.8952999 9.89567308,21 11,21 C12.1048077,21 13,21.8952999 13,22.9997596' id='Fill-12' fill='%23231D19'%3E%3C/path%3E%3Cpath d='M9,18.1994573 C9.54052704,18.7042062 10.195454,19 10.9013363,19 C11.6951418,19 12.4245036,18.6255088 13,18' id='Stroke-14' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",Km="data:image/svg+xml;charset=UTF-8,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='40px' height='40px' viewBox='0 0 40 40' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3C!-- Generator: Sketch 58 (84663) - https://sketch.com --%3E%3Ctitle%3EGroup 3%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cg id='Page-2' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Artboard' transform='translate(-375.000000, -198.000000)'%3E%3Cg id='Group-3' transform='translate(375.000000, 198.000000)'%3E%3Ccircle id='Oval-Copy-7' fill='%23FFD735' cx='20' cy='20' r='20'%3E%3C/circle%3E%3Cpath d='M12,22.9997596 C12,24.1047001 11.1047001,25 9.99975959,25 C8.89529992,25 8,24.1047001 8,22.9997596 C8,21.8952999 8.89529992,21 9.99975959,21 C11.1047001,21 12,21.8952999 12,22.9997596' id='Fill-3-Copy-2' fill='%23231D19'%3E%3C/path%3E%3Cpath d='M32,22.9997596 C32,24.1047001 31.1047001,25 30.0002404,25 C28.8952999,25 28,24.1047001 28,22.9997596 C28,21.8952999 28.8952999,21 30.0002404,21 C31.1047001,21 32,21.8952999 32,22.9997596' id='Fill-5-Copy-2' fill='%23231D19'%3E%3C/path%3E%3Cpolyline id='Stroke-7-Copy-2' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' points='16 30 21.478863 30 24 30'%3E%3C/polyline%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",Xm="data:image/svg+xml;charset=UTF-8,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='40px' height='40px' viewBox='0 0 40 40' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3C!-- Generator: Sketch 58 (84663) - https://sketch.com --%3E%3Ctitle%3EGroup 3%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cg id='Page-2' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Artboard' transform='translate(-479.000000, -198.000000)'%3E%3Cg id='Group-3' transform='translate(479.000000, 198.000000)'%3E%3Ccircle id='Oval-Copy-6' fill='%23FFD735' cx='20' cy='20' r='20'%3E%3C/circle%3E%3Cpath d='M7.49285834,19.0780347 C7.37839458,19.384594 7.03130511,19.5424284 6.71761232,19.4305675 C6.40391953,19.3187067 6.24241249,18.9795101 6.35687625,18.6729507 C6.59489533,18.0354827 7.01764654,17.4819177 7.58593436,17.082183 C8.22762031,16.6313596 8.9910809,16.4222903 9.75734384,16.4743229 C10.0904645,16.4969433 10.3417479,16.7791874 10.3186012,17.1047328 C10.2954545,17.4302783 10.0066427,17.6758475 9.67352211,17.6532272 C9.18702517,17.6201919 8.70316854,17.7526932 8.29207472,18.0415116 C7.92339224,18.3008436 7.64878839,18.6604193 7.49285834,19.0780347 Z' id='Stroke-3-Copy' fill='%23231D19' fill-rule='nonzero' transform='translate(8.320080, 17.966527) rotate(-345.000000) translate(-8.320080, -17.966527) '%3E%3C/path%3E%3Cpath d='M30.4928583,19.0780347 C30.3783946,19.384594 30.0313051,19.5424284 29.7176123,19.4305675 C29.4039195,19.3187067 29.2424125,18.9795101 29.3568763,18.6729507 C29.5948953,18.0354827 30.0176465,17.4819177 30.5859344,17.082183 C31.2276203,16.6313596 31.9910809,16.4222903 32.7573438,16.4743229 C33.0904645,16.4969433 33.3417479,16.7791874 33.3186012,17.1047328 C33.2954545,17.4302783 33.0066427,17.6758475 32.6735221,17.6532272 C32.1870252,17.6201919 31.7031685,17.7526932 31.2920747,18.0415116 C30.9233922,18.3008436 30.6487884,18.6604193 30.4928583,19.0780347 Z' id='Stroke-3-Copy-2' fill='%23231D19' fill-rule='nonzero' transform='translate(31.320080, 17.966527) scale(-1, 1) rotate(-345.000000) translate(-31.320080, -17.966527) '%3E%3C/path%3E%3Cpath d='M11.9313297,22.4824008 C12.217328,23.5490421 11.5838057,24.6454859 10.517681,24.9314938 C9.45107552,25.217021 8.35466858,24.5839581 8.06867027,23.5173168 C7.78267197,22.4511562 8.41619426,21.3542317 9.48231904,21.0687045 C10.5489245,20.7826966 11.6453314,21.4157595 11.9313297,22.4824008' id='Fill-5-Copy' fill='%23231D19'%3E%3C/path%3E%3Cpath d='M28.0687016,23.5175791 C28.3546977,24.5846926 29.4506152,25.2172698 30.5176928,24.9312641 C31.5838091,24.6457392 32.2173263,23.5493041 31.9313303,22.4826713 C31.6453343,21.4160385 30.5489361,20.7829807 29.4823391,21.0685056 C28.4157422,21.3545113 27.7827056,22.4509463 28.0687016,23.5175791' id='Fill-9-Copy' fill='%23231D19'%3E%3C/path%3E%3Cpath d='M16,30 L16,30 C18.3925714,28.6666667 21.6074286,28.6666667 24,30' id='Stroke-3-Copy-3' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' transform='translate(20.000000, 29.500000) rotate(-180.000000) translate(-20.000000, -29.500000) '%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",Qm="data:image/svg+xml;charset=UTF-8,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='40px' height='40px' viewBox='0 0 40 40' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3C!-- Generator: Sketch 58 (84663) - https://sketch.com --%3E%3Ctitle%3EGroup 3%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cdefs%3E%3Cpath d='M7,7 C10.8659932,7 14,3.86599325 14,0 C14,0 0,0 0,0 C0,3.86599325 3.13400675,7 7,7 Z' id='path-1'%3E%3C/path%3E%3C/defs%3E%3Cg id='Page-2' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Artboard' transform='translate(-583.000000, -198.000000)'%3E%3Cg id='Group-3' transform='translate(583.000000, 198.000000)'%3E%3Ccircle id='Oval-Copy-2' fill='%23FFD735' cx='20' cy='20' r='20'%3E%3C/circle%3E%3Cg id='Rectangle-Copy-4' transform='translate(26.667347, 27.192474) rotate(-15.000000) translate(-26.667347, -27.192474) translate(19.667347, 23.692474)'%3E%3Cmask id='mask-2' fill='white'%3E%3Cuse xlink:href='%23path-1'%3E%3C/use%3E%3C/mask%3E%3Cuse id='Mask' fill='%23EC7000' xlink:href='%23path-1'%3E%3C/use%3E%3Crect id='Rectangle' fill='%23FFFFFF' mask='url(%23mask-2)' x='-0.774094079' y='-0.974744871' width='15' height='3'%3E%3C/rect%3E%3C/g%3E%3Cg id='Group-Copy-8' transform='translate(11.000000, 17.000000)'%3E%3Cpath d='M0,2 C0.206174855,1.43496906 0.57399436,0.92648719 1.09009945,0.555010381 C1.67077334,0.137558719 2.34496066,-0.0385249671 3,0.00699013699' id='Stroke-3-Copy' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3Cpath d='M4.93132973,3.48240078 C5.21732803,4.54904208 4.58380574,5.64548589 3.51768096,5.9314938 C2.45107552,6.21702104 1.35466858,5.58395813 1.06867027,4.51731683 C0.78267197,3.45115622 1.41619426,2.35423172 2.48231904,2.06870449 C3.54892448,1.78269657 4.64533142,2.41575948 4.93132973,3.48240078' id='Fill-5-Copy' fill='%23231D19'%3E%3C/path%3E%3C/g%3E%3Cg id='Group-Copy-9' transform='translate(30.750173, 14.885095) scale(-1, 1) rotate(34.000000) translate(-30.750173, -14.885095) translate(28.250173, 11.885095)'%3E%3Cpath d='M-3.63797881e-12,2 C0.206174855,1.43496906 0.57399436,0.92648719 1.09009945,0.555010381 C1.67077334,0.137558719 2.34496066,-0.0385249671 3,0.00699013699' id='Stroke-3-Copy' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3Cpath d='M4.93132973,3.48240078 C5.21732803,4.54904208 4.58380574,5.64548589 3.51768096,5.9314938 C2.45107552,6.21702104 1.35466858,5.58395813 1.06867027,4.51731683 C0.78267197,3.45115622 1.41619426,2.35423172 2.48231904,2.06870449 C3.54892448,1.78269657 4.64533142,2.41575948 4.93132973,3.48240078' id='Fill-5-Copy' fill='%23231D19'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",yI=[{key:"veryBad",value:"muito ruim",face:qm},{key:"bad",value:"ruim",face:Jm},{key:"okay",value:"regular",face:Km},{key:"good",value:["bom","boa"],face:Xm},{key:"veryGood",value:["muito bom","muito boa"],face:Qm}],bI=[{key:"veryBad",value:"very bad",face:qm},{key:"bad",value:"bad",face:Jm},{key:"okay",value:"okay",face:Km},{key:"good",value:"good",face:Xm},{key:"veryGood",value:"very good",face:Qm}],CI=[{key:"veryBad",value:["muy malo","muy mala"],face:qm},{key:"bad",value:["malo","mala"],face:Jm},{key:"okay",value:"regular",face:Km},{key:"good",value:["bueno","buena"],face:Xm},{key:"veryGood",value:["muy bueno","muy buena"],face:Qm}],hL={"pt-BR":yI,en:bI,es:CI},fL=function(n){if(void 0===n&&(n=""),"IOS"===hr.os){var e=hr.osVersion.match(/(\d+)/);if(e&&parseInt(e[0],10)<17)return n.replace(/(\r\n|\r|\n)/g,"  ").length}return n.length},pL=function(n,t,e){void 0===n&&(n=[]),void 0===t&&(t="");var i=(void 0===e?{}:e).filter,o=void 0===i?"none":i;return n.filter(function(r){var s=String(r.label),a=String(t);switch(o){case"startsWith":return zm(s,a,{method:"startsWith"});case"includes":return zm(s,a);case"none":return!0;default:return"function"!=typeof o||o(s,a)}})},mL={finished:"Conclu\xeddo",inprogress:"Em andamento",waiting:"Em espera",error:"N\xe3o realizado",alert:"Aten\xe7\xe3o",disabled:"Desabilitado"},gL={marker_radius:4,marker_width:8,marker_height:8,color_opacity:1,legend_item_gap:-4,legend_item_margin:8,multi_column_gap:1,font_family:"Itau Text",drop_shadow:0,line_thickness:1,donut_thickness:"72%",grid_color:"var(--ids_color_border_soft)",menu:!1,color_01:"var(--ids_color_chart_01)",color_02:"var(--ids_color_chart_02)",color_03:"var(--ids_color_chart_03)",color_04:"var(--ids_color_chart_04)",color_05:"var(--ids_color_chart_05)",color_06:"var(--ids_color_chart_06)",color_07:"var(--ids_color_chart_07)",color_08:"var(--ids_color_chart_08)",legend_color:"var(--ids_color_action_neutral_base)",label_color:"var(--ids_color_action_neutral_base)",title_color:"var(--ids_color_action_neutral_base)",background_color:"var(--ids_color_bg_base)"},_L=function(n){return void 0===n&&(n="R$ 0,00"),Number(n.replace("R$","").trim().replace(".","").replace(",","."))||0},MI=function(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))},vL=function(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t},Zm=function(n){return null!=n&&"false"!=="".concat(n)},Es=function(n,t){return void 0===t&&(t=0),MI(n)?Number(n):t},yL=(new Date).getDate(),SI=(new Date).getFullYear(),II=(new Date).getMonth(),bL=120,CL=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ML=function(n,t){void 0===n&&(n=SI),void 0===t&&(t=II);for(var e=Es(n),i=Es(t),o=new Date(e,i,1).getDay(),r=new Date(e,i+1,0).getDate(),s=1,a=[],l=function(d){var u=[];if(CL.forEach(function(){if(o>0)return u.push(""),void o--;s>r?u.length<=7&&(u.push(""),s++):(u.push(String(s)),s++)}),a.push(u),s>r)return"break"},c=0;c<6&&"break"!==l();c++);return a},SL={"cs-CZ":"dd/mm/yyyy","da-DK":"dd/mm/yyyy","de-AT":"dd/mm/yyyy","de-CH":"dd/mm/yyyy","de-DE":"dd/mm/yyyy","el-GR":"dd/mm/yyyy","en-AU":"dd/mm/yyyy","en-CA":"yyyy-mm-dd","en-GB":"dd/mm/yyyy","en-IE":"dd/mm/yyyy","en-IN":"dd/mm/yyyy","en-NZ":"dd/mm/yyyy","en-US":"mm/dd/yyyy","en-ZA":"yyyy/mm/dd","es-AR":"dd/mm/yyyy","es-CL":"dd/mm/yyyy","es-CO":"dd/mm/yyyy","es-ES":"dd/mm/yyyy","es-MX":"dd/mm/yyyy","es-US":"dd/mm/yyyy","fi-FI":"dd/mm/yyyy","fr-BE":"dd/mm/yyyy","fr-CA":"yyyy/mm/dd","fr-CH":"dd/mm/yyyy","fr-FR":"dd/mm/yyyy","he-IL":"dd/mm/yyyy","hi-IN":"dd/mm/yyyy","hu-HU":"yyyy/mm/dd","id-ID":"dd/mm/yyyy","it-CH":"dd/mm/yyyy","it-IT":"dd/mm/yyyy","ja-JP":"yyyy/mm/dd","ko-KR":"yyyy/mm/dd","nl-BE":"dd/mm/yyyy","nl-NL":"dd/mm/yyyy","no-NO":"dd/mm/yyyy","pl-PL":"dd/mm/yyyy","pt-BR":"dd/mm/yyyy","pt-PT":"dd/mm/yyyy","ro-RO":"dd/mm/yyyy","ru-RU":"dd/mm/yyyy","sk-SK":"dd/mm/yyyy","sv-SE":"yyyy/mm/dd","ta-IN":"dd/mm/yyyy","ta-LK":"dd/mm/yyyy","th-TH":"dd/mm/2566","tr-TR":"dd/mm/yyyy","zh-CN":"yyyy/mm/dd","zh-HK":"dd/mm/yyyy","zh-TW":"yyyy/mm/dd"},IL=[{id:0,name:"janeiro",abbr:"jan"},{id:1,name:"fevereiro",abbr:"fev"},{id:2,name:"mar\xe7o",abbr:"mar"},{id:3,name:"abril",abbr:"abr"},{id:4,name:"maio",abbr:"mai"},{id:5,name:"junho",abbr:"jun"},{id:6,name:"julho",abbr:"jul"},{id:7,name:"agosto",abbr:"ago"},{id:8,name:"setembro",abbr:"set"},{id:9,name:"outubro",abbr:"out"},{id:10,name:"novembro",abbr:"nov"},{id:11,name:"dezembro",abbr:"dez"}],wL=[{name:"domingo",abbr:"D"},{name:"segunda-feira",abbr:"S"},{name:"ter\xe7a-feira",abbr:"T"},{name:"quarta-feira",abbr:"Q"},{name:"quinta-feira",abbr:"Q"},{name:"sexta-feira",abbr:"S"},{name:"s\xe1bado",abbr:"S"}],DL=function(n){return void 0===n&&(n=""),/^\d{4}\/\d{2}\/\d{2}$/.test(n)},Os=function(n,t){var e,i,o;if(void 0===t&&(t="dd/mm/yyyy"),!n||n.length!==t.length)return n;var r=-1!==t.indexOf("d")?t.indexOf("d"):0,s=-1!==t.indexOf("m")?t.indexOf("m"):3,a=-1!==t.indexOf("y")?t.indexOf("y"):6,l=(null===(e=t.match(/d|D/g))||void 0===e?void 0:e.length)||2,c=(null===(i=t.match(/m|M/g))||void 0===i?void 0:i.length)||2,d=(null===(o=t.match(/y|Y/g))||void 0===o?void 0:o.length)||4,u=n.slice(r,r+l),h=n.slice(s,s+c),f=n.slice(a,a+d);return"".concat(f,"/").concat(h,"/").concat(u)},xL=function(n,t){var e=void 0===t?{}:t,i=e.min,o=e.max,r=e.format,s=void 0===r?"dd/mm/yyyy":r,a=e.filter;if(!n||n.length<s.length)return!1;var l=Os(n),c=new Date(l);if(isNaN(c.getTime()))return!1;var d=ro(l.split("/"),3),u=d[0],h=d[1];if(d[2]!==("0"+c.getDate()).slice(-2)||h!==("0"+(c.getMonth()+1)).slice(-2)||u!==String(c.getFullYear()))return!1;if(i){var f=new Date(Os(n,s)),m=new Date(Os(i,s));if(f.getTime()<m.getTime())return!1}if(o){f=new Date(Os(n,s));var v=new Date(Os(o,s));if(f.getTime()>v.getTime())return!1}return!a||a(c)},PL=function(n,t){var e=(void 0===t?{}:t).lang;return new Intl.DateTimeFormat(void 0===e?"pt-BR":e,{month:"2-digit",day:"2-digit",year:"numeric"}).format(n)},EL=function(n){var t=ro(n.split("/").map(Number),3);return new Date(t[2],t[1]-1,t[0])},OL=function(n){var t=n.getDay();return 0===t||6===t},TL=function(n){var t=n.command,e=void 0===t?"ArrowRight":t,i=n.calendar,o=void 0===i?[]:i,r=n.goToNextMonth,s=n.goToPrevMonth,a=n.focusDay,l=n.getCalendar,c=document.activeElement,d=Es(c?.getAttribute("data-row")),u=Es(c?.getAttribute("data-col")),h=o.length-1;(0,{ArrowDown:function(){(d+=d<h&&""===o[d+1][u]?2:1)>h&&(r(),JSON.stringify(o)!==JSON.stringify(l())&&(h=l().length-1,d=""===l()[0][u]?1:0))},ArrowUp:function(){(d-=d>0&&""===o[d-1][u]?2:1)<0&&(s(),JSON.stringify(o)!==JSON.stringify(l())&&(h=l().length-1,d=""===l()[h][u]?h-1:h))},ArrowRight:function(){var m=o[h].filter(function(v){return v}).length-1;d!==h&&6===u?(d+=1,u=0):u+=1,d===h&&u>m&&(r(),JSON.stringify(o)!==JSON.stringify(l())&&(u=l()[0].findIndex(function(v){return"1"===v}),d=""===l()[0][u]?1:0))},ArrowLeft:function(){0!==d&&0===u?(d-=1,u=6):u-=1;var m=o[0].findIndex(function(v){return"1"===v});u<m&&0===d&&(s(),JSON.stringify(o)!==JSON.stringify(l())&&(h=l().length-1,u=l()[h].filter(function(v){return v}).length-1,d=""===l()[h][u]?h-1:h))}}[e])?.(),a(d,u,c)},wI=function(n,t,e){return function(){for(var i=this,o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var s=t.map(function(c){return i[c]}),a=JSON.stringify(Ps(Ps([],ro(o),!1),ro(s),!1));if(e.has(a))return e.get(a);var l=n.apply(this,o);return e.set(a,l),l}},AL=function(n){return void 0===n&&(n=[]),function(t,e,i){var o=new Map;if(i?.value){var r=i.value;i.value=wI(r,n,o)}else i?.get&&(i.get=wI(r=i.get,n,o))}},kL=function(n){return function(t,e,i){var o,r=i.value;i.value=function(){for(var s=this,a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];clearTimeout(o),o=setTimeout(function(){return r.apply(s,a)},n)}}},FL=function(){return function(n,t,e){if(e?.set&&e){var i=e.set;e.set=function(o){i.apply(this,[Zm(o)])}}else r=t,Object.defineProperty(n,r,{get:function(){return this["_".concat(r)]},set:function(s){this["_".concat(r)]=Zm(s)},enumerable:!0,configurable:!0});var r}},RL={maxTouchPoints:0,userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36",userAgentData:{brands:[{brand:"Not A;Brand",version:"99"},{brand:"Chromium",version:"98"},{brand:"Google Chrome",version:"98"}],mobile:!1,platform:"Windows"},vendor:"Google Inc.",platform:"Win32"},NL={maxTouchPoints:0,userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0",userAgentData:void 0,vendor:"",platform:"Win32"},BL={maxTouchPoints:1,userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/122.0 Mobile/15E148 Safari/605.1.15",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"iPhone"},LL={maxTouchPoints:0,userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39",userAgentData:{brands:[{brand:"Not A;Brand",version:"99"},{brand:"Chromium",version:"99"},{brand:"Microsoft Edge",version:"99"}],mobile:!1,platform:"Windows"},vendor:"Google Inc.",platform:"Win32"},VL={maxTouchPoints:0,userAgent:"Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; itx; wbx 1.0.0; rv:11.0) like Gecko",userAgentData:void 0,vendor:"",platform:"Win32"},HL={maxTouchPoints:1,userAgent:"Mozilla/5.0 (Linux; Android 11; Mi A3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36",userAgentData:{brands:[{brand:"Not A;Brand",version:"99"},{brand:"Chromium",version:"98"},{brand:"Google Chrome",version:"99"}],mobile:!0,platform:"Android"},vendor:"Google Inc.",platform:"Linux armv8l"},jL={maxTouchPoints:0,userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36",userAgentData:{brands:[{brand:"Not A;Brand",version:"99"},{brand:"Chromium",version:"98"},{brand:"Google Chrome",version:"99"}],mobile:!1,platform:"macOS"},vendor:"Google Inc.",platform:"MacIntel"},zL={maxTouchPoints:0,userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.1",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"MacIntel"},$L={maxTouchPoints:0,userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",userAgentData:void 0,vendor:"Apple Computer, Inc.",platform:"MacIntel"},UL={maxTouchPoints:5,userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"iPhone"},GL={maxTouchPoints:5,userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/96.0.4664.53 Mobile/15E148 Safari/604.1",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"iPhone"},WL={maxTouchPoints:5,userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 17_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Mobile/15E148 Safari/604.1",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"iPhone"},qL={maxTouchPoints:5,userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 17_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/96.0.4664.53 Mobile/15E148 Safari/604.1",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"iPhone"},JL={maxTouchPoints:5,userAgent:"Mozilla/5.0 (iPad; CPU OS 17_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2 Mobile/15E148 Safari/604.1",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"iPad"},KL={maxTouchPoints:5,userAgent:"Mozilla/5.0 (iPad; CPU OS 17_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/121.0.6167.66 Mobile/15E148 Safari/604.1",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"iPad"},XL={maxTouchPoints:5,userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"iPad"},QL={maxTouchPoints:5,userAgent:"unknown",userAgentData:void 0,vendor:"unknown",platform:"unknown"},ZL=function(n){return Object.entries(n).reduce(function(t,e){var i=ro(e,2);return i[1]?t+" "+i[0]:t},"").replace(/\s\s/g," ").trim()},YL=function(n){var t=void 0===n?{}:n,e=t.scope,i=function(o,r){for(var s=[],a=[o];a.length>0;){var l=a.pop(),c=l.style.zIndex,d=getComputedStyle(l).getPropertyValue("z-index");c&&"auto"!==c&&l!==r&&s.push(Number(c)),d&&"auto"!==d&&l!==r&&s.push(Number(d));var u=Array.from(l.children);a.push.apply(a,Ps([],ro(u),!1))}return s}(void 0===e?document.body:e,t.except);return i.length>0?Math.max.apply(Math,Ps([],ro(i),!1))+1:1},eV=function(n,t){var e=void 0===t?{}:t,i=e.open,o=void 0!==i&&i,r=e.hasSelectedValue,s=void 0!==r&&r,a=e.editable,l=void 0!==a&&a,c=e.inOnTheFirstOption,u=e.hasValue,h=void 0!==u&&u;return"Backspace"===n.code&&l&&h?"erase":n.altKey&&"ArrowUp"===n.code?"close":n.altKey&&"ArrowDown"===n.code?"open":"Escape"===n.code?!o&&l?"clear":"close":"ArrowUp"===n.code?void 0!==c&&c?"close":o?s?"previous":"last":"none":"ArrowDown"===n.code?s?"next":"first":"Enter"===n.code||"NumpadEnter"===n.code?"select":"Tab"===n.code?s||h?"select":"out":1===n.key.length?l?"type":"search":"ArrowRight"===n.code&&l?"cursor-to-right":"ArrowLeft"===n.code&&l?"cursor-to-left":"Home"===n.code?l?"cursor-to-start":"first":"End"===n.code?l?"cursor-to-end":"last":"Delete"===n.code&&l?"clear":"none"},tV=function(n,t){var e=(void 0===t?{}:t).debounce,i=void 0===e?10:e,o=!1;return function(r){if("ArrowUp"===r.key||"ArrowDown"===r.key||"ArrowLeft"===r.key||"ArrowRight"===r.key){if(r.preventDefault(),o)return;o=!0,n&&n(r.key),setTimeout(function(){o=!1},i)}}},nV=function(n){return JSON.parse(JSON.stringify(n))},Ts=function(n){return n||0===n?"".concat(n,"px"):""},iu=function(n){return n?Number(n.replace("px","")):0},Ym=function(n,t,e){return void 0===e&&(e="add"),n||0===n?"add"===e?n+t:n-t:void 0},iV=function(n,t){return void 0===t&&(t=document.documentElement),n.getBoundingClientRect().bottom<t.getBoundingClientRect().top},oV=function(n,t){return void 0===t&&(t=document.documentElement),n.getBoundingClientRect().top>t.getBoundingClientRect().bottom},rV=function(n,t,e){return void 0===t&&(t=document.documentElement),void 0===e&&(e=0),n.getBoundingClientRect().bottom+e<t.getBoundingClientRect().bottom},sV=function(n,t){var e,i=n.style,o=(null===(e=t?.getBoundingClientRect)||void 0===e?void 0:e.call(t))||{},r=o.top,s=o.right,a=o.bottom,l=o.left,c=o.width,d=o.height,u=t?getComputedStyle(t):{},h=u.font,f=void 0===h?"":h,m=u.paddingTop,v=void 0===m?"0":m,S=u.paddingBottom,C=void 0===S?"0":S;i.top=Ts(Ym(r,iu(v))),i.right=Ts(s),i.bottom=Ts(Ym(a,iu(C),"subtract")),i.left=Ts(l),i.width=Ts(c),i.height=Ts(Ym(d,iu(v)+iu(C),"subtract")),i.position=t?"fixed":"",i.font=f};const DI=(ml.d(eg={},{BehaviorSubject:()=>ur}),eg);var eg;const aV=(ml.d(t={},{Themes:()=>ZB}),t);var t,gl=Object.keys(aV.Themes).reduce(function(n,t){var e;return nu(nu({},n),((e={})[t]=t.toLocaleLowerCase(),e))},{}),PI=new DI.BehaviorSubject("Varejo"),EI=new DI.BehaviorSubject(document.documentElement),lV={light:"light",dark:"dark"},cV=function(){return EI.value.getAttribute("data-theme")},dV=PI.asObservable(),OI=function(n,t,e){var i,o;void 0===n&&(n=gl.Varejo),void 0===t&&(t=document.documentElement);var r=[],s=t instanceof HTMLElement?t:document.documentElement;"string"==typeof t&&(s=null!==(o=document.querySelector(t))&&void 0!==o?o:s),s.classList.forEach(function(a){(a.startsWith("voxel-theme")||a.startsWith("ids-theme"))&&r.push(a)}),r.length>0&&(i=s.classList).remove.apply(i,Ps([],ro(r),!1)),s.classList.add("ids-theme-".concat(n)),s.removeAttribute("data-theme"),e&&s.setAttribute("data-theme",e),s.classList.contains("cdk-overlay-container")||EI.next(s)},uV=function(n,t,e){return void 0===n&&(n=gl.Varejo),void 0===t&&(t=document),s=function(){return function(a,l){var c,d,u,h,f={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return h={next:m(0),throw:m(1),return:m(2)},"function"==typeof Symbol&&(h[Symbol.iterator]=function(){return this}),h;function m(v){return function(S){return function(C){if(c)throw new TypeError("Generator is already executing.");for(;h&&(h=0,C[0]&&(f=0)),f;)try{if(c=1,d&&(u=2&C[0]?d.return:C[0]?d.throw||((u=d.return)&&u.call(d),0):d.next)&&!(u=u.call(d,C[1])).done)return u;switch(d=0,u&&(C=[2&C[0],u.value]),C[0]){case 0:case 1:u=C;break;case 4:return f.label++,{value:C[1],done:!1};case 5:f.label++,d=C[1],C=[0];continue;case 7:C=f.ops.pop(),f.trys.pop();continue;default:if(!((u=(u=f.trys).length>0&&u[u.length-1])||6!==C[0]&&2!==C[0])){f=0;continue}if(3===C[0]&&(!u||C[1]>u[0]&&C[1]<u[3])){f.label=C[1];break}if(6===C[0]&&f.label<u[1]){f.label=u[1],u=C;break}if(u&&f.label<u[2]){f.label=u[2],f.ops.push(C);break}u[2]&&f.ops.pop(),f.trys.pop();continue}C=l.call(a,f)}catch(x){C=[6,x],d=0}finally{c=u=0}if(5&C[0])throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}([v,S])}}}(this,function(a){var l;return OI(n,t,e),PI.next((l=n,Object.keys(gl).find(function(c){return gl[c]===l}))),[2]})},new((r=void 0)||(r=Promise))(function(a,l){function c(h){try{u(s.next(h))}catch(f){l(f)}}function d(h){try{u(s.throw(h))}catch(f){l(f)}}function u(h){var f;h.done?a(h.value):(f=h.value,f instanceof r?f:new r(function(m){m(f)})).then(c,d)}u((s=s.apply(void 0,[])).next())});var r,s},hV=function(n,t){return n.slice().sort(function(e,i){return(e[t.name]<i[t.name]?-1:1)*("asc"===t.direction?1:-1)})},fV=function(n,t){var e;void 0===n&&(n=0),void 0===t&&(t=16);var i="string"==typeof n?Es(null===(e=n.match(/([0-9]+)/gm))||void 0===e?void 0:e[0]):n;return"".concat(i/t,"rem")},pV=N.Nm,Qn=N.Mf,TI=N._Y,gV=N.I8,Ge=N.oV,AI=N.PW,_V=N.ly,vV=N.C1,yV=N.bG,kI=N.J9,Qt=N.Jv,bV=N.Q1,_l=N.bh;let tg;try{tg=typeof Intl<"u"&&Intl.v8BreakIterator}catch{tg=!1}let vl,ou,fr,ng,ki=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?wd(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!tg)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(w(Ss))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function RI(n){return function CV(){if(null==vl&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>vl=!0}))}finally{vl=vl||!1}return vl}()?n:!!n.capture}function NI(){if(null==fr){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return fr=!1,fr;if("scrollBehavior"in document.documentElement.style)fr=!0;else{const n=Element.prototype.scrollTo;fr=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return fr}function yl(){if("object"!=typeof document||!document)return 0;if(null==ou){const n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),ou=0,0===n.scrollLeft&&(n.scrollLeft=1,ou=0===n.scrollLeft?1:2),n.remove()}return ou}function pr(n){return n.composedPath?n.composedPath()[0]:n.target}function BI(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function kV(n,t){return n===t}function Fi(n){return null!=n&&"false"!=`${n}`}function LI(n){return Array.isArray(n)?n:[n]}function bt(n){return null==n?"":"string"==typeof n?n:`${n}px`}function ru(n){return n instanceof oe?n.nativeElement:n}const UV=new L("cdk-input-modality-detector-options"),GV={ignoreKeys:[18,17,224,91,16]},ks=RI({passive:!0,capture:!0});let WV=(()=>{class n{get mostRecentModality(){return this._modality.value}constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new ur(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=pr(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(function zV(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}(s)?"keyboard":"mouse"),this._mostRecentTarget=pr(s))},this._onTouchstart=s=>{!function $V(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}(s)?(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=pr(s)):this._modality.next("keyboard")},this._options={...GV,...r},this.modalityDetected=this._modality.pipe(function TV(n){return ul((t,e)=>n<=e)}(1)),this.modalityChanged=this.modalityDetected.pipe(function AV(n,t=mo){return n=n??kV,tt((e,i)=>{let o,r=!0;e.subscribe(qe(i,s=>{const a=t(s);(r||!n(o,a))&&(r=!1,o=a,i.next(s))}))})}()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,ks),o.addEventListener("mousedown",this._onMousedown,ks),o.addEventListener("touchstart",this._onTouchstart,ks)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ks),document.removeEventListener("mousedown",this._onMousedown,ks),document.removeEventListener("touchstart",this._onTouchstart,ks))}}return n.\u0275fac=function(e){return new(e||n)(w(ki),w(Ie),w(Fe),w(UV,8))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qV=new L("liveAnnouncerElement",{providedIn:"root",factory:function JV(){return null}}),KV=new L("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let XV=0,mr=(()=>{class n{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[r,s]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==s&&o&&(s=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r<i.length;r++)i[r].remove();return o.classList.add(e),o.classList.add("cdk-visually-hidden"),o.setAttribute("aria-atomic","true"),o.setAttribute("aria-live","polite"),o.id="cdk-live-announcer-"+XV++,this._document.body.appendChild(o),o}_exposeAnnouncerToModals(e){const i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<i.length;o++){const r=i[o],s=r.getAttribute("aria-owns");s?-1===s.indexOf(e)&&r.setAttribute("aria-owns",s+" "+e):r.setAttribute("aria-owns",e)}}}return n.\u0275fac=function(e){return new(e||n)(w(qV,8),w(Ie),w(Fe),w(KV,8))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const QV=new L("cdk-focus-monitor-default-options"),su=RI({passive:!0,capture:!0});let ZV=(()=>{class n{constructor(e,i,o,r,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new re,this._rootNodeFocusAndBlurListener=a=>{for(let c=pr(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=r,this._detectionMode=s?.detectionMode||0}monitor(e,i=!1){const o=ru(e);if(!this._platform.isBrowser||1!==o.nodeType)return ws(null);const r=function SV(n){if(function MV(){if(null==ng){const n=typeof document<"u"?document.head:null;ng=!(!n||!n.createShadowRoot&&!n.attachShadow)}return ng}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(o)||this._getDocument(),s=this._elementInfo.get(o);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new re,rootNode:r};return this._elementInfo.set(o,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=ru(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=ru(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=pr(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,su),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,su)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(yt(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,su),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,su),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let s=0;s<r.length;s++)if(r[s].contains(i))return!0;return!1}}return n.\u0275fac=function(e){return new(e||n)(w(Ie),w(ki),w(WV),w(Fe,8),w(QV,8))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const bl={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=bl;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const o=t(r=>{e=void 0,n(r)});return new be(()=>e?.(o))},requestAnimationFrame(...n){const{delegate:t}=bl;return(t?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=bl;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0},t3=new class e3 extends Om{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;t=t||i.shift();do{if(o=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,o){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw o}}}(class YV extends Em{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=bl.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:r}=t;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(bl.cancelAnimationFrame(e),t._scheduled=void 0)}});let ig,n3=1;const au={};function $I(n){return n in au&&(delete au[n],!0)}const i3={setImmediate(n){const t=n3++;return au[t]=!0,ig||(ig=Promise.resolve()),ig.then(()=>$I(t)&&n()),t},clearImmediate(n){$I(n)}},{setImmediate:o3,clearImmediate:r3}=i3,lu={setImmediate(...n){const{delegate:t}=lu;return(t?.setImmediate||o3)(...n)},clearImmediate(n){const{delegate:t}=lu;return(t?.clearImmediate||r3)(n)},delegate:void 0},l3=new class a3 extends Om{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;t=t||i.shift();do{if(o=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,o){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw o}}}(class s3 extends Em{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=lu.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:r}=t;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(lu.clearImmediate(e),t._scheduled===e&&(t._scheduled=void 0))}});function og(n,t=Tm){return function c3(n){return tt((t,e)=>{let i=!1,o=null,r=null,s=!1;const a=()=>{if(r?.unsubscribe(),r=null,i){i=!1;const c=o;o=null,e.next(c)}s&&e.complete()},l=()=>{r=null,s&&e.complete()};t.subscribe(qe(e,c=>{i=!0,o=c,r||Mt(n(c)).subscribe(r=qe(e,a,l))},()=>{s=!0,(!i||!r||r.closed)&&e.complete()}))})}(()=>KS(n,t))}const d3=new L("cdk-dir-doc",{providedIn:"root",factory:function u3(){return pt(Fe)}}),h3=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Fs=(()=>{class n{constructor(e){this.value="ltr",this.change=new le,e&&(this.value=function f3(n){const t=n?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?h3.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(w(d3,8))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({}),n})();const p3=["contentWrapper"],m3=["*"],g3=new L("VIRTUAL_SCROLL_STRATEGY");let cu=(()=>{class n{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new re,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Le(i=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(og(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ws()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const o=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ul(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let o=ru(i),r=e.getElementRef().nativeElement;do{if(o==r)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>xs(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(w(Ie),w(ki),w(Fe,8))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),UI=(()=>{class n{constructor(e,i,o,r){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=o,this.dir=r,this._destroyed=new re,this._elementScrolled=new Le(s=>this.ngZone.runOutsideAngular(()=>xs(this.elementRef.nativeElement,"scroll").pipe(yt(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,o=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=o?e.end:e.start),null==e.right&&(e.right=o?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),o&&0!=yl()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==yl()?e.left=e.right:1==yl()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;NI()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",o="right",r=this.elementRef.nativeElement;if("top"==e)return r.scrollTop;if("bottom"==e)return r.scrollHeight-r.clientHeight-r.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==e?e=s?o:i:"end"==e&&(e=s?i:o),s&&2==yl()?e==i?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:s&&1==yl()?e==i?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==i?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(b(oe),b(cu),b(Ie),b(Fs,8))},n.\u0275dir=k({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),n})(),du=(()=>{class n{constructor(e,i,o){this._platform=e,this._change=new re,this._changeListener=r=>{this._change.next(r)},this._document=o,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||o.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(og(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(w(ki),w(Ie),w(Fe,8))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const GI=new L("VIRTUAL_SCROLLABLE");let y3=(()=>{class n extends UI{constructor(e,i,o,r){super(e,i,o,r)}measureViewportSize(e){const i=this.elementRef.nativeElement;return"horizontal"===e?i.clientWidth:i.clientHeight}}return n.\u0275fac=function(e){return new(e||n)(b(oe),b(cu),b(Ie),b(Fs,8))},n.\u0275dir=k({type:n,features:[G]}),n})();const C3=typeof requestAnimationFrame<"u"?t3:l3;let M3=(()=>{class n extends y3{get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Fi(e)}constructor(e,i,o,r,s,a,l,c){super(e,a,o,s),this.elementRef=e,this._changeDetectorRef=i,this._scrollStrategy=r,this.scrollable=c,this._platform=pt(ki),this._detachedSubject=new re,this._renderedRangeSubject=new re,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new Le(d=>this._scrollStrategy.scrolledIndexChange.subscribe(u=>Promise.resolve().then(()=>this.ngZone.run(()=>d.next(u))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=be.EMPTY,this._viewportChanges=l.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Vm(null),og(0,C3)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(yt(this._detachedSubject)).subscribe(i=>{const o=i.length;o!==this._dataLength&&(this._dataLength=o,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function b3(n,t){return n.start==t.start&&n.end==t.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,i="to-start"){e=this.appendOnly&&"to-start"===i?0:e;const r="horizontal"==this.orientation,s=r?"X":"Y";let l=`translate${s}(${Number((r&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===i&&(l+=` translate${s}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=l&&(this._renderedContentTransform=l,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,i="auto"){const o={behavior:i};"horizontal"===this.orientation?o.start=e:o.top=e,this.scrollable.scrollTo(o)}scrollToIndex(e,i="auto"){this._scrollStrategy.scrollToIndex(e,i)}measureScrollOffset(e){let i;return i=this.scrollable==this?o=>super.measureScrollOffset(o):o=>this.scrollable.measureScrollOffset(o),Math.max(0,i(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let i;const o="left",r="right",s="rtl"==this.dir?.value;i="start"==e?s?r:o:"end"==e?s?o:r:e||("horizontal"===this.orientation?"left":"top");const a=this.scrollable.measureBoundingClientRectWithScrollOffset(i);return this.elementRef.nativeElement.getBoundingClientRect()[i]-a}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const i of e)i()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return n.\u0275fac=function(e){return new(e||n)(b(oe),b(to),b(Ie),b(g3,8),b(Fs,8),b(cu),b(du),b(GI,8))},n.\u0275cmp=me({type:n,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,i){if(1&e&&Re(p3,7),2&e){let o;K(o=X())&&(i._contentWrapper=o.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,i){2&e&&Oe("cdk-virtual-scroll-orientation-horizontal","horizontal"===i.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==i.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[ee([{provide:UI,useFactory:(t,e)=>t||e,deps:[[new Ko,new Ec(GI)],n]}]),G,Xe],ngContentSelectors:m3,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,i){1&e&&(Ve(),F(0,"div",0,1),De(2),B(),Jt(3,"div",2)),2&e&&(P(3),nr("width",i._totalContentWidth)("height",i._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),n})(),WI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({}),n})(),qI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[rg,WI,M3,rg,WI]}),n})();class sg{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class I3 extends sg{constructor(t,e,i,o,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=o,this.projectableNodes=r}}class JI extends sg{constructor(t,e,i,o){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i,this.injector=o}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class w3 extends sg{constructor(t){super(),this.element=t instanceof oe?t.nativeElement:t}}class D3{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof I3?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof JI?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof w3?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class x3 extends D3{constructor(t,e,i,o,r){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=o,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=r}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let o;return t.viewContainerRef?(o=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>o.destroy())):(o=i.create(t.injector||this._defaultInjector||$n.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=t,o}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(i);-1!==o&&e.remove(o)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let P3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({}),n})();const KI=NI();class E3{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=bt(-this._previousScrollPosition.left),t.style.top=bt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,o=this._document.body.style,r=i.scrollBehavior||"",s=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),KI&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),KI&&(i.scrollBehavior=r,o.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class O3{constructor(t,e,i,o){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0).pipe(ul(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class XI{enable(){}disable(){}attach(){}}function ag(n,t){return t.some(e=>n.bottom<e.top||n.top>e.bottom||n.right<e.left||n.left>e.right)}function QI(n,t){return t.some(e=>n.top<e.top||n.bottom>e.bottom||n.left<e.left||n.right>e.right)}class T3{constructor(t,e,i,o){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=o,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();ag(e,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let A3=(()=>{class n{constructor(e,i,o,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new XI,this.close=s=>new O3(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new E3(this._viewportRuler,this._document),this.reposition=s=>new T3(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=r}}return n.\u0275fac=function(e){return new(e||n)(w(cu),w(du),w(Ie),w(Fe))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class ZI{constructor(t){if(this.scrollStrategy=new XI,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class k3{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let YI=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(w(Fe))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),F3=(()=>{class n extends YI{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=o=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){const a=r[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(o)):a.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(w(Fe),w(Ie,8))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),R3=(()=>{class n extends YI{constructor(e,i,o){super(e),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=pr(r)},this._clickListener=r=>{const s=pr(r),a="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const d=l[c];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(s)||d.overlayElement.contains(a))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(r)):u.next(r)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(w(Fe),w(ki),w(Ie,8))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ew=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||BI()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r<o.length;r++)o[r].remove()}const i=this._document.createElement("div");i.classList.add(e),BI()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(e){return new(e||n)(w(Fe),w(ki))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class N3{constructor(t,e,i,o,r,s,a,l,c,d=!1){this._portalOutlet=t,this._host=e,this._pane=i,this._config=o,this._ngZone=r,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._backdropElement=null,this._backdropClick=new re,this._attachments=new re,this._detachments=new re,this._locationChanges=be.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new re,this._outsidePointerEvents=new re,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(pl(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=bt(this._config.width),t.height=bt(this._config.height),t.minWidth=bt(this._config.minWidth),t.minHeight=bt(this._config.minHeight),t.maxWidth=bt(this._config.maxWidth),t.maxHeight=bt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,i){const o=LI(e||[]).filter(r=>!!r);o.length&&(i?t.classList.add(...o):t.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(yt($i(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const tw="cdk-overlay-connected-position-bounding-box",B3=/([A-Za-z%]+)$/;class L3{get positions(){return this._preferredPositions}constructor(t,e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new re,this._resizeSubscription=be.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._validatePositions(),t.hostElement.classList.add(tw),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,o=this._containerRect,r=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,o,a),c=this._getOverlayPoint(l,e,a),d=this._getOverlayFit(c,e,i,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(d,c,i)?r.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleArea<d.visibleArea)&&(s={overlayFit:d,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}if(r.length){let a=null,l=-1;for(const c of r){const d=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);d>l&&(l=d,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&gr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(tw),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let o,r;if("center"==i.originX)o=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;o="start"==i.originX?s:a}return e.left<0&&(o-=e.left),r="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(t,e,i){let o,r;return o="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+o,y:t.y+r}}_getOverlayFit(t,e,i,o){const r=iw(e);let{x:s,y:a}=t,l=this._getOffset(o,"x"),c=this._getOffset(o,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+r.height-i.height,m=this._subtractOverflows(r.width,0-s,s+r.width-i.width),v=this._subtractOverflows(r.height,h,f),S=m*v;return{visibleArea:S,isCompletelyWithinViewport:r.width*r.height===S,fitsInViewportVertically:v===r.height,fitsInViewportHorizontally:m==r.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const o=i.bottom-e.y,r=i.right-e.x,s=nw(this._overlayRef.getConfig().minHeight),a=nw(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=s&&s<=o)&&(t.fitsInViewportHorizontally||null!=a&&a<=r)}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const o=iw(e),r=this._viewportRect,s=Math.max(t.x+o.width-r.width,0),a=Math.max(t.y+o.height-r.height,0),l=Math.max(r.top-i.top-t.y,0),c=Math.max(r.left-i.left-t.x,0);let d=0,u=0;return d=o.width<=r.width?c||-s:t.x<this._viewportMargin?r.left-i.left-t.x:0,u=o.height<=r.height?l||-a:t.y<this._viewportMargin?r.top-i.top-t.y:0,this._previousPushAmount={x:d,y:u},{x:t.x+d,y:t.y+u}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const i=this._getScrollVisibility(),o=new k3(t,i);this._positionChanges.next(o)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,o=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${i} ${o}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,o=this._isRtl();let r,s,a,d,u,h;if("top"===e.overlayY)s=t.y,r=i.height-s+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-t.y+2*this._viewportMargin,r=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-t.y+i.top,t.y),m=this._lastBoundingBoxSize.height;r=2*f,s=t.y-f,r>m&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-m/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)h=i.width-t.x+this._viewportMargin,d=t.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)u=t.x,d=i.right-t.x;else{const f=Math.min(i.right-t.x+i.left,t.x),m=this._lastBoundingBoxSize.width;d=2*f,u=t.x-f,d>m&&!this._isInitialRender&&!this._growAfterOpen&&(u=t.x-m/2)}return{top:s,left:u,bottom:a,right:h,width:d,height:r}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;o.height=bt(i.height),o.top=bt(i.top),o.bottom=bt(i.bottom),o.width=bt(i.width),o.left=bt(i.left),o.right=bt(i.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(o.maxHeight=bt(r)),s&&(o.maxWidth=bt(s))}this._lastBoundingBoxSize=i,gr(this._boundingBox.style,o)}_resetBoundingBoxStyles(){gr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){gr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(o){const d=this._viewportRuler.getViewportScrollPosition();gr(i,this._getExactOverlayY(e,t,d)),gr(i,this._getExactOverlayX(e,t,d))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(o?i.maxHeight=bt(s.maxHeight):r&&(i.maxHeight="")),s.maxWidth&&(o?i.maxWidth=bt(s.maxWidth):r&&(i.maxWidth="")),gr(this._pane.style,i)}_getExactOverlayY(t,e,i){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"bottom"===t.overlayY?o.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":o.top=bt(r.y),o}_getExactOverlayX(t,e,i){let s,o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=bt(r.x),o}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:QI(t,i),isOriginOutsideView:ag(t,i),isOverlayClipped:QI(e,i),isOverlayOutsideView:ag(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,o)=>i-Math.max(o,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&LI(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof oe)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function gr(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function nw(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(B3);return e&&"px"!==e?null:parseFloat(t)}return n||null}function iw(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const ow="cdk-global-overlay-wrapper";class V3{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(ow),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:s,maxHeight:a}=i,l=!("100%"!==o&&"100vw"!==o||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",m="",v="";l?v="flex-start":"center"===d?(v="center",h?m=u:f=u):h?"left"===d||"end"===d?(v="flex-end",f=u):("right"===d||"start"===d)&&(v="flex-start",m=u):"left"===d||"start"===d?(v="flex-start",f=u):("right"===d||"end"===d)&&(v="flex-end",m=u),t.position=this._cssPosition,t.marginLeft=l?"0":f,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":m,e.justifyContent=v,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(ow),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let H3=(()=>{class n{constructor(e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r}global(){return new V3}flexibleConnectedTo(e){return new L3(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(w(du),w(Fe),w(ki),w(ew))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),j3=0,lg=(()=>{class n{constructor(e,i,o,r,s,a,l,c,d,u,h,f){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=r,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=d,this._location=u,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(e){const i=this._createHostElement(),o=this._createPaneElement(i),r=this._createPortalOutlet(o),s=new ZI(e);return s.direction=s.direction||this._directionality.value,new N3(r,i,o,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+j3++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(or)),new x3(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(w(A3),w(ew),w(Yo),w(H3),w(F3),w($n),w(Ie),w(Fe),w(Fs),w(eM),w(R3),w(_p,8))},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const z3=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],rw=new L("cdk-connected-overlay-scroll-strategy");let Cl=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(b(oe))},n.\u0275dir=k({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),n})(),sw=(()=>{class n{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Fi(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Fi(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Fi(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Fi(e)}get push(){return this._push}set push(e){this._push=Fi(e)}constructor(e,i,o,r,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=be.EMPTY,this._attachSubscription=be.EMPTY,this._detachSubscription=be.EMPTY,this._positionSubscription=be.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new le,this.positionChange=new le,this.attach=new le,this.detach=new le,this.overlayKeydown=new le,this.overlayOutsideClick=new le,this._templatePortal=new JI(i,o),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=z3);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!function OV(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new ZI({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Cl?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function S3(n,t=!1){return tt((e,i)=>{let o=0;e.subscribe(qe(i,r=>{const s=n(r,o++);(s||t)&&i.next(r),!s&&i.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(b(lg),b(Tt),b(Kt),b(rw),b(Fs,8))},n.\u0275dir=k({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[fn]}),n})();const U3={provide:rw,deps:[lg],useFactory:function $3(n){return()=>n.scrollStrategies.reposition()}};let G3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({providers:[lg,U3],imports:[rg,P3,qI,qI]}),n})();class aw{}class W3{}const so="*";function q3(n,t){return{type:7,name:n,definitions:t,options:{}}}function lw(n,t=null){return{type:4,styles:t,timings:n}}function cw(n,t=null){return{type:2,steps:n,options:t}}function Ml(n){return{type:6,styles:n,offset:null}}function dw(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function uw(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function hw(n){Promise.resolve().then(n)}class Sl{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){hw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class fw{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,o=0;const r=this.players.length;0==r?hw(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==r&&this._onFinish()}),s.onDestroy(()=>{++i==r&&this._onDestroy()}),s.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const cg="!";Fl(386);const Lt=["*"],dH=["idsIconButton",""],uH=["alertTitleRef"],hH=["alertContentRef"];function fH(n,t){if(1&n&&(F(0,"div",6)(1,"ids-icon",7),de(2),B()()),2&n){const e=V(2);P(2),Ke(" ",e.iconName||"informacao_outline"," ")}}function pH(n,t){if(1&n&&(F(0,"h2",8,9),de(2),B()),2&n){const e=V(2);P(2),_n(e.header)}}function mH(n,t){if(1&n){const e=En();F(0,"div"),ce(1,fH,3,1,"div",1),F(2,"div",2),ce(3,pH,3,1,"h2",3),F(4,"section",null,4),De(6),B()(),F(7,"button",5),he("click",function(){return Ut(e),Gt(V().onClose())}),de(8," fechar "),B()()}if(2&n){const e=V();_s(e.classes),P(1),R("ngIf",e.icon),P(2),R("ngIf",e.header),P(4),J("aria-label",e.closeLabel)}}const gH=["panel"],yH=[[["ids-option"]]],bH=["ids-option"],BH=["idsContextualButton",""],LH=[[["ids-icon"]]],VH=["ids-icon"],HH=["idsMainButton",""];function jH(n,t){if(1&n&&Jt(0,"ids-loading",2),2&n){const e=V();R("variant","secondary"===e.variant?e.variant:void 0)("contrast","secondary"===e.variant?e.contrast:e.variant||e.contrast?void 0:"onBrand")}}const Cg=["content"];function zH(n,t){1&n&&(F(0,"ids-icon",4),de(1," aviso_outline "),B())}function $H(n,t){if(1&n&&(It(0),ce(1,zH,2,0,"ids-icon",1),F(2,"span",2,3),De(4),B(),wt()),2&n){const e=V();P(1),R("ngIf","error"===e.status),P(1),R("id",e.id)}}const UH=["dummy"],GH=["suffix"],WH=["prefix"],qH=["formField"];function JH(n,t){if(1&n&&(F(0,"label",13),de(1),B()),2&n){const e=V();R("for",e.field.controlId),J("id",e.field.labelId?e.field.labelId:null),P(1),Ke(" ",e.label," ")}}function KH(n,t){1&n&&(F(0,"ids-icon",14),de(1," editar_outline "),B())}function XH(n,t){if(1&n&&(F(0,"ids-icon",14),de(1),B()),2&n){const e=V();P(1),Ke(" ",e.externalSuffix," ")}}function QH(n,t){if(1&n&&(F(0,"div",15)(1,"ids-form-message",16),de(2),B()()),2&n){const e=V();P(1),R("status",e.hasError?"error":void 0)("id",e.describedById)("announceDescription",!e.isTextarea),P(1),Ke(" ",e.message," ")}}const ZH=[[["label"]],"*",[["ids-icon"],["","idsSuffix",""]],[["ids-listbox"]],[["ids-listbox"]]],YH=function(n,t){return{"--ids-form-field-text-width":n,"--ids-form-field-prefix-width":t}},ej=["label","*","ids-icon, [idsSuffix]","ids-listbox","ids-listbox"],tj=["select"];function nj(n,t){if(1&n){const e=En();F(0,"div",3,4),he("keydown",function(o){return Ut(e),Gt(V().handleKeydown(o))}),De(2),B()}if(2&n){const e=V();nr("max-height",e.listMaxHeight,"rem"),Oe("ids-listbox--top","top"===e.panelPosition),R("id",e.panelId),J("aria-labelledby",e.labelId)("aria-hidden",!e.panelOpen)}}const cj=["formSelectionLabel"],dj=[[["input"]],"*",[["ids-form-message"]]],uj=["input","*","ids-form-message"];function hj(n,t){if(1&n&&(F(0,"legend"),de(1),B()),2&n){const e=V();P(1),Ke(" ",e.legend," ")}}const fj=[[["legend"]],[["ids-form-selection"]]],pj=["legend","ids-form-selection"];let Ri=(()=>{class n{set size(e){this._size=AI(e,"upperCase")}get size(){return this._size}constructor(e){this._elementRef=e}ngOnInit(){this.role=this._elementRef.nativeElement.hasAttribute("aria-label")?"img":null}}return n.\u0275fac=function(e){return new(e||n)(b(oe))},n.\u0275cmp=me({type:n,selectors:[["ids-icon"]],hostVars:23,hostBindings:function(e,i){2&e&&(J("role",i.role),Oe("ids-icon",!0)("ids-icon--small","S"===i.size)("ids-icon--large","L"===i.size)("ids-icon--xlarge","XL"===i.size)("ids-icon--primary","primary"===i.variant)("ids-icon--neutral","neutral"===i.variant)("ids-icon--success","success"===i.variant)("ids-icon--alert","alert"===i.variant)("ids-icon--information","information"===i.variant)("ids-icon--error","error"===i.variant)("ids-icon--on-brand","onBrand"===i.contrast))},inputs:{size:"size",variant:"variant",contrast:"contrast"},standalone:!0,features:[Xe],ngContentSelectors:Lt,decls:2,vars:0,consts:[["aria-hidden","true"]],template:function(e,i){1&e&&(Ve(),F(0,"span",0),De(1),B())},encapsulation:2}),n})(),Oo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[Ri]}),n})(),Mg=(()=>{class n{constructor(e){this.elementRef=e,this.isMobile=Qt.isMobile}ngOnInit(){this.title=this.elementRef.nativeElement.getAttribute("title"),this.ariaLabel=this.elementRef.nativeElement.getAttribute("aria-label")}ngAfterContentInit(){this.icon&&(this.icon.contrast=this.contrast)}}return n.\u0275fac=function(e){return new(e||n)(b(oe))},n.\u0275cmp=me({type:n,selectors:[["","idsIconButton",""]],contentQueries:function(e,i,o){if(1&e&&He(o,Ri,5),2&e){let r;K(r=X())&&(i.icon=r.first)}},hostVars:16,hostBindings:function(e,i){2&e&&(J("title",i.isMobile?null:i.title)("aria-label",i.ariaLabel||i.title),Oe("ids-icon-button",!0)("ids-icon-button--neutral","neutral"===i.variant)("ids-icon-button--secondary","secondary"===i.variant)("ids-icon-button--on-brand","onBrand"===i.contrast)("ids-icon-button--small","S"===i.size)("ids-icon-button--large","L"===i.size)("ids-icon-button--xlarge","XL"===i.size))},inputs:{variant:"variant",contrast:"contrast",size:"size",title:"title",ariaLabel:["aria-label","ariaLabel"]},standalone:!0,features:[Xe],attrs:dH,ngContentSelectors:Lt,decls:1,vars:0,template:function(e,i){1&e&&(Ve(),De(0))},dependencies:[Oo],styles:['.ids-icon-button[_ngcontent-%COMP%], .ids-icon-button[_nghost-%COMP%]{all:unset;all:revert;box-sizing:border-box;align-items:center;background-color:transparent;border:0;color:var(--ids_color_action_primary_base);cursor:pointer;display:inline-flex;font:var(--ids_textStyle_icon_medium);font-feature-settings:"liga","dlig";-webkit-font-smoothing:antialiased;font-style:normal;font-variant-ligatures:discretionary-ligatures;justify-content:center;min-height:var(--ids_size_general_48x);min-width:var(--ids_size_general_48x);padding:var(--ids_spacing_3x)}.ids-icon-button[_ngcontent-%COMP%]:focus, .ids-icon-button[_nghost-%COMP%]:focus{outline:revert!important}.ids-icon-button[_ngcontent-%COMP%]:disabled, .ids-icon-button[aria-disabled=true][_ngcontent-%COMP%], .ids-icon-button[_nghost-%COMP%]:disabled, .ids-icon-button[aria-disabled=true][_nghost-%COMP%]{color:var(--ids_color_action_disabled_variant);cursor:not-allowed}@media (hover: hover) and (pointer: fine){.ids-icon-button[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-icon-button[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-icon-button[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-icon-button[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){color:var(--ids_color_action_primary_variant)}}.ids-icon-button--neutral[_ngcontent-%COMP%], .ids-icon-button--neutral[_nghost-%COMP%]{color:var(--ids_color_action_neutral_base)}@media (hover: hover) and (pointer: fine){.ids-icon-button--neutral[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-icon-button--neutral[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-icon-button--neutral[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-icon-button--neutral[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){color:var(--ids_color_action_neutral_variant)}}.ids-icon-button--secondary[_ngcontent-%COMP%], .ids-icon-button--secondary[_nghost-%COMP%]{color:var(--ids_color_action_secondary_base)}@media (hover: hover) and (pointer: fine){.ids-icon-button--secondary[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-icon-button--secondary[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-icon-button--secondary[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-icon-button--secondary[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){color:var(--ids_color_action_secondary_variant)}}.ids-icon-button--on-brand[_ngcontent-%COMP%], .ids-icon-button--on-brand[_nghost-%COMP%]{color:var(--ids_color_contrast_onBrand_primary)}.ids-icon-button--on-brand[_ngcontent-%COMP%]:disabled, .ids-icon-button--on-brand[aria-disabled=true][_ngcontent-%COMP%], .ids-icon-button--on-brand[_nghost-%COMP%]:disabled, .ids-icon-button--on-brand[aria-disabled=true][_nghost-%COMP%]{color:var(--ids_color_contrast_onBrand_primary_medium)}@media (hover: hover) and (pointer: fine){.ids-icon-button--on-brand[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-icon-button--on-brand[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-icon-button--on-brand[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-icon-button--on-brand[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){color:var(--ids_color_contrast_onBrand_primary_strong)}}.ids-icon-button--small[_ngcontent-%COMP%], .ids-icon-button--small[_nghost-%COMP%]{font:var(--ids_textStyle_icon_small)}.ids-icon-button--large[_ngcontent-%COMP%], .ids-icon-button--large[_nghost-%COMP%]{font:var(--ids_textStyle_icon_large)}.ids-icon-button--xlarge[_ngcontent-%COMP%], .ids-icon-button--xlarge[_nghost-%COMP%]{font:var(--ids_textStyle_icon_xLarge)}']}),n})(),Cw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[Mg]}),n})(),Tj=(()=>{class n{set origin(e){this._origin=e instanceof Cl?e:new Cl(new oe(e))}get origin(){return this._origin||this._autoDetectedOrigin}set show(e){if(!e&&this._show)return this._show=e,setTimeout(()=>{this.visible=e},200),void this._liveAnnouncer.announce(this.closeMessage,200);e&&(this._autoDetectedOrigin=new Cl(new oe(document.activeElement))),this.visible=e,setTimeout(()=>{this._show=e})}get show(){return this._show}get classes(){return{"ids-alert":!0,"ids-alert--success":"success"===this.variant,"ids-alert--error":"error"===this.variant,"ids-alert--closing":!this._show}}get iconName(){return pV[this.variant]}constructor(e,i){this._liveAnnouncer=e,this._renderer=i,this._destroy=new re,this.visible=this.show,this.closeLabel="fechar",this.closeMessage="fechado",this.close=new le,this.showChange=new le,this.hostClass=null}_getElementToFocus(){const e=this.alertContentList.get(0);if(!e)return null;const i=e.nativeElement.firstElementChild||e.nativeElement;return this._renderer.setAttribute(i,"tabindex","-1"),i}ngAfterViewInit(){this.alertContentList.changes.pipe(yt(this._destroy)).subscribe(e=>{if(0===e.length||this.skipFocus)return;const i=this.header?this.alertTitle?.nativeElement:this._getElementToFocus();i&&setTimeout(()=>{i.focus()},250)})}ngOnDestroy(){this._destroy.complete()}onClose(){this.origin?.elementRef?.nativeElement?.focus(),this.showChange.emit(!this.show),this.close.emit()}}return n.\u0275fac=function(e){return new(e||n)(b(mr),b(xn))},n.\u0275cmp=me({type:n,selectors:[["ids-alert"]],viewQuery:function(e,i){if(1&e&&(Re(uH,5),Re(hH,5)),2&e){let o;K(o=X())&&(i.alertTitle=o.first),K(o=X())&&(i.alertContentList=o)}},hostVars:2,hostBindings:function(e,i){2&e&&_s(i.hostClass)},inputs:{closeLabel:"closeLabel",closeMessage:"closeMessage",icon:"icon",header:"header",origin:"origin",show:"show",skipFocus:"skipFocus",variant:"variant"},outputs:{close:"close",showChange:"showChange"},standalone:!0,features:[Xe],ngContentSelectors:Lt,decls:1,vars:1,consts:[[3,"class",4,"ngIf"],["class","ids-alert__icon",4,"ngIf"],[1,"ids-alert__content"],["tabindex","-1","class","ids-alert__title",4,"ngIf"],["alertContentRef",""],["idsIconButton","","variant","neutral","size","S","type","button",3,"click"],[1,"ids-alert__icon"],["size","L"],["tabindex","-1",1,"ids-alert__title"],["alertTitleRef",""]],template:function(e,i){1&e&&(Ve(),ce(0,mH,9,5,"div",0)),2&e&&R("ngIf",i.visible)},dependencies:[Jn,qn,Oo,Ri,Cw,Mg],styles:[".ids-animation-fade-in-start[_ngcontent-%COMP%]{opacity:0}.ids-animation-fade-in-moderate-end[_ngcontent-%COMP%]{opacity:1;transition:opacity .2s cubic-bezier(.42,0,.58,1)}.ids-animation-fade-out-start[_ngcontent-%COMP%]{opacity:1}.ids-animation-fade-out-moderate-output-end[_ngcontent-%COMP%]{opacity:0;transition:opacity 275ms cubic-bezier(.42,0,.58,1)}.ids-animation-scale-x-down[_ngcontent-%COMP%]{transform:scaleX(0);transform:scaleX(var(--ids-scale-x-down, 0))}.ids-animation-scale-x-up[_ngcontent-%COMP%]{transform:scaleX(1);transform:scaleX(var(--ids-scale-x-up, 100%))}.ids-animation-time-transform-slow[_ngcontent-%COMP%]{transition:transform 2s cubic-bezier(0,0,.58,1)}.ids-animation-width-down[_ngcontent-%COMP%]{width:0;width:var(--ids-width-down, 0)}.ids-animation-width-up[_ngcontent-%COMP%]{width:100%;width:var(--ids-width-up, 100%)}.ids-animation-time-width-slow[_ngcontent-%COMP%]{transition:width 2s cubic-bezier(0,0,.58,1)}.ids-motion-none[_ngcontent-%COMP%], .ids-motion-none[_ngcontent-%COMP%]:before, .ids-motion-none[_ngcontent-%COMP%]:after, .ids-motion-none[_ngcontent-%COMP%]   *[_ngcontent-%COMP%], .ids-motion-none[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]:before, .ids-motion-none[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]:after{animation:none!important;transition:none!important}.ids-alert[_ngcontent-%COMP%]{align-items:flex-start;background-color:var(--ids_color_bg_base);border:var(--ids_size_border_small) solid var(--ids_color_feedback_neutral);border-radius:var(--ids_size_cornerRadius_card_02);color:var(--ids_color_text_body_01);display:flex;font:var(--ids_textStyle_f02_s14_h20_wrg);overflow:hidden;transition:transform .2s cubic-bezier(.42,0,.58,1),opacity .2s linear;width:100%}.ids-alert__content[_ngcontent-%COMP%]{padding:var(--ids_size_general_16x) 0 var(--ids_size_general_16x) var(--ids_size_general_16x);text-align:left;width:100%}.ids-alert__content[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{font:var(--ids_textStyle_f02_s14_h20_wrg)}.ids-alert__icon[_ngcontent-%COMP%]{align-self:center;font-size:0;line-height:1;padding-left:var(--ids_size_general_16x)}.ids-alert[_ngcontent-%COMP%]   .ids-icon-button[_ngcontent-%COMP%]{border-radius:inherit}.ids-alert[_ngcontent-%COMP%]     .ids-icon-button{border-radius:inherit}.ids-alert__title[_ngcontent-%COMP%]{color:var(--ids_color_feedback_neutral);font:var(--ids_textStyle_f02_s14_h20_wbd)}.ids-alert--success[_ngcontent-%COMP%]{border-color:var(--ids_color_feedback_success)}.ids-alert--success[_ngcontent-%COMP%]   .ids-alert__icon[_ngcontent-%COMP%]   .ids-icon[_ngcontent-%COMP%]{color:var(--ids_color_feedback_success)}.ids-alert--error[_ngcontent-%COMP%]{border-color:var(--ids_color_feedback_error)}.ids-alert--error[_ngcontent-%COMP%]   .ids-alert__icon[_ngcontent-%COMP%]   .ids-icon[_ngcontent-%COMP%]{color:var(--ids_color_feedback_error)}.ids-alert--closing[_ngcontent-%COMP%]{opacity:0;transform:scale(.8)}ids-alert[_nghost-%COMP%]{display:block}"]}),st([Qn(),at("design:type",Object)],n.prototype,"icon",void 0),st([Qn(),at("design:type",Object),at("design:paramtypes",[Object])],n.prototype,"show",null),st([Qn(),at("design:type",Object)],n.prototype,"skipFocus",void 0),st([TI(["variant","_show"]),at("design:type",Object),at("design:paramtypes",[])],n.prototype,"classes",null),n})(),Aj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[Tj]}),n})();const Mw=(...n)=>n,kj=n=>(()=>{class e extends n{get viewModelChange$(){return this._viewModelChange.asObservable()}constructor(...o){super(...o),this.formState=new re,this._disabled=!1,this._focused=!1,this._active=!1,this._updateFirstOnBlur=!1,this.formAcessorChanged=Mw,this.formAcessorTouched=Mw,this._destroy=new re,this._viewModelChange=new ur(this.value),this.ngControl&&(this.ngControl.valueAccessor=this),this.errorState=this.formState.pipe(ul(()=>Boolean(this.ngControl)),ze(()=>Boolean((this.ngControl.touched||this.ngControl.dirty)&&this.ngControl.invalid&&(!this.updateFirstOnBlur||this.updateFirstOnBlur&&this.ngControl.touched))))}ngOnDestroy(){this._destroy.complete(),this.formState.complete()}set value(o){o!==this._value&&(this._value=o,this.formAcessorChanged(o))}get value(){return this._value}set disabled(o){this._disabled=Ge(o)}get disabled(){return this._disabled}set focused(o){this._focused=o}get focused(){return this._focused}set active(o){this._active=o}get active(){return this._active}set updateFirstOnBlur(o){this._updateFirstOnBlur=o}get updateFirstOnBlur(){return this._updateFirstOnBlur}formAcessorHandleChange(){setTimeout(()=>{this.formState.next()},0)}formAcessorHandleFocus(){this.focused=!0,this.formState.next()}formAcessorHandleBlur(){this.focused=!1,this.active=!1,this.formAcessorTouched(),this.formState.next()}writeValue(o){o!==this._value&&(this.value=o,this.elementRef.nativeElement.value=o,this.formAcessorTouched(),this._viewModelChange.next(o))}registerOnChange(o){this.formAcessorChanged=r=>{this.focused&&(this.active=!0),o(r),this.formState.next()}}registerOnTouched(o){this.formAcessorTouched=o}setDisabledState(o){this._disabled=o,this.formState.next()}}return e.\u0275fac=function(o){!function Hy(){throw new Error("invalid")}()},e.\u0275dir=k({type:e,inputs:{value:"value",disabled:"disabled"},features:[G]}),e})(),Sw=n=>{const t={originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},e={originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},i=[];return{top:()=>i.push(e),bottom:()=>i.push(t),auto:()=>i.push(t,e)}[n](),i};class Fj{constructor(t,e,i){this.ngControl=t,this.elementRef=e,this.errorState=i}}let _r=(()=>{class n extends(kj(Fj)){get input$(){return xs(this.elementRef.nativeElement,"input")}get keydown$(){return xs(this.elementRef.nativeElement,"keydown")}constructor(e,i){super(e,i),this.ngControl=e,this.elementRef=i,this._externalDescribedBy=!1,this.invalid=null,this._controlDescribedBy=null,this.ariaLabelledby=null,this.ariaLabel=null}set controlDescribedBy(e){this._externalDescribedBy=!0,this._controlDescribedBy=e}get controlDescribedBy(){return this._controlDescribedBy}get controlAriaInvalid(){return"IOS"===Qt.os?null:this.invalid}set controlAriaInvalid(e){this.invalid=e}get nativeElement(){return this.elementRef.nativeElement}handleInvalid(e){this.controlAriaInvalid=e||null}handleDescribedby(e){this._externalDescribedBy||(this._controlDescribedBy=e||null)}focus(){this.elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(b(yn,10),b(oe))},n.\u0275dir=k({type:n,selectors:[["do-not-use-ids-form-control-mixin-base"]],hostVars:4,hostBindings:function(e,i){2&e&&J("aria-describedby",i.controlDescribedBy)("aria-labelledby",i.ariaLabelledby)("aria-label",i.ariaLabel)("aria-invalid",i.controlAriaInvalid)},inputs:{controlDescribedBy:["aria-describedby","controlDescribedBy"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaLabel:["aria-label","ariaLabel"],controlAriaInvalid:["invalid","controlAriaInvalid"]},features:[G]}),n})(),bu=(()=>{class n{constructor(){this.classes=[],this.listboxOpen=!1,this._classesSubject=new ur([]),this._suffixIconSubject=new ur(""),this._inputSubject=new re,this._listboxSubject=new re,this._formFieldElementSubject=new re,this._listboxOpenSubject=new re}emitClasses(){this._classesSubject.next(this.classes)}emitSuffixIcon(){this._suffixIconSubject.next(this.suffixIcon)}emitInput(){this._inputSubject.next(this.input)}emitListbox(){this._listboxSubject.next(this.listbox)}emitFormFieldElement(){this._formFieldElementSubject.next(this.formFieldElement)}emitListboxOpen(){this._listboxOpenSubject.next(this.listboxOpen)}classes$(){return this._classesSubject.asObservable()}suffixIcon$(){return this._suffixIconSubject.asObservable()}input$(){return this._inputSubject.asObservable()}listbox$(){return this._listboxSubject.asObservable()}formFieldElement$(){return this._formFieldElementSubject.asObservable()}listboxOpen$(){return this._listboxOpenSubject.asObservable()}addClass(e){this.classes.push(e),this.emitClasses()}sendSuffixIcon(e){this.suffixIcon=e,this.emitSuffixIcon()}sendInput(e){this.input=e,this.emitInput()}sendListbox(e){this.listbox=e,this.emitListbox()}sendFormFieldElement(e){this.formFieldElement=e,this.emitFormFieldElement()}sendListboxOpen(e){this.listboxOpen=e,this.emitListboxOpen()}removeClass(e){this.classes=this.classes.filter(i=>i!==e),this.emitClasses()}removeSuffixIcon(){this.suffixIcon="",this.emitSuffixIcon()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:null}),n})(),Rj=0,Iw=(()=>{class n{get title(){return this.label||null}set selected(e){!this._selected&&e&&this.selectedChange.emit(),this._selected=e}get selected(){return this._selected}set label(e){e&&(this._label=e)}get label(){return this._label||(this.element.nativeElement.textContent||"").trim()}get optionLabel(){return this.label}get value(){return this._value}set value(e){this._value=e}get disabled(){return this._disabled}set disabled(e){this._disabled=Ge(e)}get small(){return this._small}set small(e){this._small=Ge(e)}onClick(){this.selectAndClose()}constructor(e){this.element=e,this._destroy=new re,this.highlighted=!1,this.showing=!0,this._selected=!1,this.id="ids-option-"+Rj++,this._disabled=!1,this._small=!1,this.change=new le,this.selectedChange=new le}_emitOptionChangeEvent(e){this.change.emit({option:this,close:e})}show(){this.showing=!0}hide(){this.showing=!1}select(e=!1){this.disabled||(this.selected=!0,this._emitOptionChangeEvent(e))}selectAndClose(){this.select(!0)}highlight(){this.highlighted=!0}unhighlight(){this.highlighted=!1}deselect(){this.selected=!1}ngOnDestroy(){this._destroy.complete()}}return n.\u0275fac=function(e){return new(e||n)(b(oe))},n.\u0275cmp=me({type:n,selectors:[["ids-option"]],hostVars:18,hostBindings:function(e,i){1&e&&he("click",function(){return i.onClick()}),2&e&&(J("id",i.id)("role","option")("tabindex",i.disabled?"-1":"0")("aria-selected",i.selected)("aria-disabled",i.disabled)("title",i.title),Oe("ids-option",!0)("ids-option--selected",i.selected)("ids-option--disabled",i.disabled)("ids-option--highlighted",i.highlighted)("ids-option--small",i.small)("ids-option--hide",!i.showing))},inputs:{selected:"selected",label:"label",id:"id",value:"value",disabled:"disabled",small:"small"},outputs:{change:"change",selectedChange:"selectedChange"},standalone:!0,features:[Xe],ngContentSelectors:Lt,decls:3,vars:0,consts:[[1,"ids-option__text"],["option",""]],template:function(e,i){1&e&&(Ve(),F(0,"span",0,1),De(2),B())},styles:[".ids-option[_ngcontent-%COMP%], .ids-option[_nghost-%COMP%]{align-items:center;background-color:var(--ids_color_bg_base);border-left:var(--ids_size_border_large) solid var(--ids_color_bg_base);color:var(--ids_color_action_neutral_variant);cursor:pointer;display:flex;font:var(--ids_textStyle_label_medium_regular);min-height:var(--ids_size_general_48x);text-align:left}.ids-option[_ngcontent-%COMP%]:not(.ids-option--small):hover, .ids-option[_nghost-%COMP%]:not(.ids-option--small):hover{background-color:var(--ids_color_bg_variant_02);border-left-color:var(--ids_color_bg_variant_02)}.ids-option[_ngcontent-%COMP%]   [aria-selected=true][_ngcontent-%COMP%], .ids-option--selected[_ngcontent-%COMP%], .ids-option[_nghost-%COMP%]   [aria-selected=true][_ngcontent-%COMP%], .ids-option--selected[_nghost-%COMP%]{border-left-color:var(--ids_color_action_primary_variant);font:var(--ids_textStyle_label_medium_bold)}.ids-option[_ngcontent-%COMP%]   [aria-selected=true][_ngcontent-%COMP%]:hover, .ids-option--selected[_ngcontent-%COMP%]:hover, .ids-option[_nghost-%COMP%]   [aria-selected=true][_ngcontent-%COMP%]:hover, .ids-option--selected[_nghost-%COMP%]:hover{border-left-color:var(--ids_color_action_primary_variant)}.ids-option[_ngcontent-%COMP%]   [aria-disabled=true][_ngcontent-%COMP%], .ids-option--disabled[_ngcontent-%COMP%], .ids-option[_nghost-%COMP%]   [aria-disabled=true][_ngcontent-%COMP%], .ids-option--disabled[_nghost-%COMP%]{background-color:var(--ids_color_bg_variant_01);border-left-color:var(--ids_color_bg_variant_01);color:var(--ids_color_action_disabled_variant);pointer-events:none}.ids-option--highlighted[_ngcontent-%COMP%], .ids-option--highlighted[_nghost-%COMP%]{background-color:var(--ids_color_bg_variant_02);border-left-color:var(--ids_color_bg_variant_02)}.ids-option--hide[_ngcontent-%COMP%], .ids-option--hide[_nghost-%COMP%]{display:none}.ids-option__text[_ngcontent-%COMP%], .ids-option__text[_nghost-%COMP%]{flex:1;overflow:hidden;padding:var(--ids_size_general_12x) var(--ids_size_general_8x);text-overflow:ellipsis;white-space:nowrap}"]}),n})(),Sg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[Iw]}),n})(),Nj=0,ww=(()=>{class n extends _r{get isTypeNumberOnIOS(){return"IOS"===Qt.os&&"number"===this._type}get isTypeNumberOnMobile(){return Qt.isMobile&&"number"===this._type}set readonly(e){this._readonly=Ge(e)}get readonly(){return this._readonly}set noLabel(e){this._noLabel=Ge(e)}get noLabel(){return this._noLabel}get controlDisabled(){return this.disabled&&!this.controlValue||null}get controlReadOnly(){return this.disabled&&!!this.controlValue||this.readonly}get controlValue(){return this.value}get inputClasses(){return this.noStyles?null:vV({"ids-input":!0,"ids-input--large":"L"===this.size,"ids-input--center":this.noLabel,"ids-input--small":this.noLabel})}set type(e){this._type=e}get type(){return this.isTypeNumberOnMobile?"text":this._type}set inputmode(e){this._inputmode=e}get inputmode(){return this.isTypeNumberOnMobile?"decimal":this._inputmode}set pattern(e){this._pattern=e}get pattern(){return this.isTypeNumberOnIOS?"[0-9]*":this._pattern}set controlUpdateFirstOnBlur(e){this.updateFirstOnBlur=Ge(e)}controlInput({value:e,valueAsNumber:i}){const o=this.elementRef.nativeElement.maxLength,s=(_l(e)>o||_l(String(i))>o)&&(e?.substring(0,o)||Number(String(i)?.substring(0,o)));this.value=s||i||e,this.valueChange.emit(this.value),this.elementRef.nativeElement.value=this.value}controlChange(e){this.value=e,this.formAcessorHandleChange()}controlFocus(){this.formAcessorHandleFocus()}controlBlur(){this.formAcessorHandleBlur()}controlKeyup(e){const i=e.target;this.verifyAndAnnouceLimit(i),this.autoResize&&this.handleElementHeight(i)}constructor(e,i,o,r){super(e,i),this.ngControl=e,this.elementRef=i,this.liveAnnoucer=o,this.renderer=r,this._readonly=null,this._noLabel=!1,this.autoResize=Qt.isMobile,this.noStyles=!1,this.controlId="ids-input-"+Nj++,this.valueChange=new le}verifyAndAnnouceLimit(e){const i=e.maxLength;-1!==i&&_l(e.value)>=i&&"MacOS"!==Qt.os&&this.liveAnnoucer.announce("Limite de caracteres atingido",1e3)}handleElementHeight(e){"TEXTAREA"===e.tagName&&(e.style.height="auto",e.style.height=`${e.scrollHeight+1}px`)}ngAfterViewInit(){setTimeout(()=>{this.handleElementHeight(this.nativeElement)},500)}ngDoCheck(){this.ngControl&&this.ngControl.touched&&this.ngControl.invalid&&!this.active&&this.formAcessorHandleBlur()}setControlValue(e){this.renderer.setProperty(this.elementRef.nativeElement,"value",e),this.value=e,this.valueChange.emit(e)}resetControlValue(){this.setControlValue("")}}return n.\u0275fac=function(e){return new(e||n)(b(yn,10),b(oe),b(mr),b(xn))},n.\u0275dir=k({type:n,selectors:[["","idsInput","",3,"idsDatepicker",""]],hostVars:8,hostBindings:function(e,i){1&e&&he("input",function(r){return i.controlInput(r.target)})("ngModelChange",function(r){return i.controlChange(r)})("focus",function(){return i.controlFocus()})("blur",function(){return i.controlBlur()})("keyup",function(r){return i.controlKeyup(r)}),2&e&&J("disabled",i.controlDisabled)("readonly",i.controlReadOnly)("value",i.controlValue)("class",i.inputClasses)("id",i.controlId)("type",i.type)("inputmode",i.inputmode)("pattern",i.pattern)},inputs:{readonly:"readonly",autoResize:"autoResize",noStyles:"noStyles",noLabel:"noLabel",controlId:["id","controlId"],type:"type",inputmode:"inputmode",pattern:"pattern",controlUpdateFirstOnBlur:["updateFirstOnBlur","controlUpdateFirstOnBlur"],size:"size"},outputs:{valueChange:"valueChange"},standalone:!0,features:[ee([{provide:_r,useExisting:Pe(()=>n)}]),G]}),st([Qn(),at("design:type",Object)],n.prototype,"autoResize",void 0),st([Qn(),at("design:type",Object)],n.prototype,"noStyles",void 0),n})(),Bj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=me({type:n,selectors:[["ids-checkbox"]],standalone:!0,features:[Xe],ngContentSelectors:Lt,decls:3,vars:0,consts:[[1,"ids-checkbox"],["aria-hidden","true",1,"ids-checkbox__icon","ids-icon"]],template:function(e,i){1&e&&(Ve(),F(0,"span",0),De(1),Jt(2,"span",1),B())},encapsulation:2}),n})(),Cu=(()=>{class n{constructor(){this.labelIds=[],this.inputIdSubject=new re,this.labelIdsSubject=new re}setInputId(e=""){e&&this.inputIdSubject.next(e)}setLabelId(e="",i){!e||this.labelIds.includes(e)||("number"==typeof i?this.labelIds[i]=e:this.labelIds.push(e),this.labelIdsSubject.next(this.labelIds))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=z({token:n,factory:n.\u0275fac,providedIn:null}),n})(),vr=(()=>{class n{set rootClasses(e){this._rootClasses=e}get rootClasses(){return this._rootClasses}get control(){return this.ngControl?.control}get rtlDirection(){return this._rtlDirection}set disabled(e){this._disabled=Ge(e)}get disabled(){return this._disabled}set invalid(e){this._invalid=Ge(e)}get invalid(){return this._invalid}set id(e){this.formSelectionService&&this.formSelectionService.setInputId(e),this._id=e}get id(){return this._id}get ariaInvalid(){return"IOS"===Qt.os?null:this.invalid}set ariaLabelledBy(e){this._ariaLabelledBy=e}get ariaLabelledBy(){return this._ariaLabelledBy||("IOS"!==Qt.os?`${this.id}-label`:"")}constructor(e,i,o){this.ngControl=e,this.elementRef=i,this.formSelectionService=o,this.state="",this.destroy=new re,this._rtlDirection=!1,this._isFocused=!1,this._disabled=!1,this._invalid=!1,this._ariaLabelledBy="",this.subscribeLabelId()}ngOnInit(){this.formSelectionService&&this.formSelectionService.setInputId(this.id)}ngOnDestroy(){this.destroy.complete()}subscribeLabelId(){this.formSelectionService&&this.formSelectionService.labelIdsSubject.pipe(yt(this.destroy)).subscribe(e=>{let i="";e.forEach(o=>{i=`${i} ${o}`}),this.ariaLabelledBy=i.trim()})}onFocus(){this._isFocused=!0}onFocusout(){this._isFocused=!1}}return n.\u0275fac=function(e){return new(e||n)(b(yn,10),b(oe),b(Cu,8))},n.\u0275dir=k({type:n,hostVars:3,hostBindings:function(e,i){1&e&&he("focus",function(){return i.onFocus()})("focusout",function(){return i.onFocusout()}),2&e&&J("id",i.id)("aria-invalid",i.ariaInvalid)("aria-labelledby",i.ariaLabelledBy)},inputs:{contrast:"contrast",disabled:"disabled",invalid:"invalid",id:"id",ariaLabelledBy:["aria-labelledby","ariaLabelledBy"]}}),n})(),Lj=0,Dw=(()=>{class n extends vr{constructor(){super(...arguments),this._id="ids-checkbox-"+ ++Lj}get rootClasses(){return{"ids-checkbox":!0,"ids-checkbox--invalid":this.invalid}}get iconClasses(){return"ids-checkbox__icon ids-icon ids-icon--medium"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Se(n)))(i||n)}}(),n.\u0275dir=k({type:n,selectors:[["","idsCheckbox",""]],hostVars:3,hostBindings:function(e,i){2&e&&(J("type","checkbox"),Oe("ids-checkbox__input",!0))},standalone:!0,features:[ee([{provide:vr,useExisting:n}]),G]}),n})(),Vj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[Bj]}),n})(),xw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=me({type:n,selectors:[["","idsContextualButton",""]],hostVars:4,hostBindings:function(e,i){2&e&&Oe("ids-contextual-button",!0)("ids-contextual-button--on-brand","onBrand"===i.contrast)},inputs:{contrast:"contrast"},standalone:!0,features:[Xe],attrs:BH,ngContentSelectors:Lt,decls:1,vars:0,template:function(e,i){1&e&&(Ve(),De(0))},styles:[".ids-contextual-button[_ngcontent-%COMP%], .ids-contextual-button[_nghost-%COMP%]{all:unset;all:revert;box-sizing:border-box;align-items:center;background-color:transparent;border:currentcolor solid var(--ids_size_border_small);border-radius:var(--ids_size_cornerRadius_button);color:var(--ids_color_action_secondary_base);cursor:pointer;display:inline-flex;font:var(--ids_textStyle_f02_s14_h20_wbd);justify-content:center;min-height:var(--ids_size_general_32x);outline-offset:var(--ids_size_general_4x);padding:var(--ids_size_general_5x) var(--ids_size_general_16x);text-align:center;text-decoration:none}.ids-contextual-button[_ngcontent-%COMP%]:focus, .ids-contextual-button[_nghost-%COMP%]:focus{outline:revert!important}.ids-contextual-button[_ngcontent-%COMP%]:disabled, .ids-contextual-button[aria-disabled=true][_ngcontent-%COMP%], .ids-contextual-button[_nghost-%COMP%]:disabled, .ids-contextual-button[aria-disabled=true][_nghost-%COMP%]{border-color:var(--ids_color_action_disabled_base);color:var(--ids_color_action_disabled_variant);cursor:not-allowed}@media (hover: hover) and (pointer: fine){.ids-contextual-button[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-contextual-button[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-contextual-button[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-contextual-button[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){background-color:var(--ids_color_action_secondary_base_soft);color:var(--ids_color_action_secondary_variant)}}.ids-contextual-button--on-brand[_ngcontent-%COMP%], .ids-contextual-button--on-brand[_nghost-%COMP%]{color:var(--ids_color_contrast_onBrand_primary)}.ids-contextual-button--on-brand[_ngcontent-%COMP%]:disabled, .ids-contextual-button--on-brand[aria-disabled=true][_ngcontent-%COMP%], .ids-contextual-button--on-brand[_nghost-%COMP%]:disabled, .ids-contextual-button--on-brand[aria-disabled=true][_nghost-%COMP%]{border-color:var(--ids_color_contrast_onBrand_primary_medium);color:var(--ids_color_contrast_onBrand_primary_medium)}@media (hover: hover) and (pointer: fine){.ids-contextual-button--on-brand[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-contextual-button--on-brand[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-contextual-button--on-brand[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-contextual-button--on-brand[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){background-color:var(--ids_color_contrast_onBrand_primary_soft);color:var(--ids_color_contrast_onBrand_primary)}}"]}),n})(),Hj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[xw]}),n})();const Pw=new L("currency.config"),Ew=new L("date.config");class $j{constructor(t,e){this.iCurrencyConfig=t,this.iDateConfig=e}}let Ow=(()=>{class n extends(function jj(n){return class extends n{constructor(...t){super(...t),this.currencyTemplate={allowNegative:!1,decimal:",",precision:2,thousands:".",prefix:"R$ ",suffix:""},this.currencyMask=(e,i)=>{const{allowNegative:o,decimal:r,precision:s,thousands:a,prefix:l,suffix:c}={...this.currencyTemplate,...i};if(""===e)return{mask:this.regExpMask(l+c),valueMask:"",value:""};const d=this.removeMask(e,!0);let u=d.slice(0,d.length-s).replace(/^0*/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,a);""===u&&(u="0"),u=u.replace(/\B(?=([0-9]{3})+(?![0-9]))/g,a);const h=d.slice(d.length-s),f=parseInt(h,10)||0;let m=parseInt(u,10)+f/100;m=e.indexOf("-")>-1?-m:m,s>0&&(u+="0"===u&&h.length<s?r+"0".repeat(s-1)+h:r+h);const v=e.indexOf("-")>-1&&o&&0!==m?"-":"",S=parseFloat(u.split(a).join("").replace(r,".")).toFixed(s);return{mask:this.regExpMask(v+l+u+c),valueMask:u,value:S}},this.currencyTemplate={...this.currencyTemplate,...t[0]}}}}(function zj(n){return class extends n{constructor(...e){super(...e),this.dateTemplate={format:"dd/mm/yyyy"},this.dateMask=(i,o)=>{const r=o?.format||this.dateTemplate.format,s=[],a=o?.range;let c=0;r.split("").forEach(v=>{if(/([^dmyHMS])/.test(v))return/[^0-9]/.test(i.split("")[c])&&c++,void s.push(v);s.push(/[^0-9]/.test(i.split("")[c])?"":i.split("")[c]),c++});const d=r.split(/([^dmyHMS])/),m=d[r.split(/([^dmyHMS])/).findIndex(v=>v.includes("yy"))].length>2?[/[0-9]/,/[0-9]/,/[0-9]/,/[0-9]/]:[/[0-9]/,/[0-9]/];return d.splice(d.indexOf("dd"),1,/[0-9]/,/[0-9]/),d.splice(d.indexOf("mm"),1,/[0-9]/,/[0-9]/),d.splice(d.indexOf("yyyy"),1,...m),a&&d.push(" ","-"," ",...d),d},this.dateTemplate={...this.dateTemplate,...e[1]}}}}($j))){constructor(e,i){super(e,i),this.iCurrencyConfig=e,this.iDateConfig=i,this.placeholderChar="_"}removeMask(e,i=!1){const o=i?/\D/g:/[^A-Za-z0-9]/g;return this.valueIsNotEmpty(e)?e.replace(o,""):""}valueIsNotEmpty(e){return e&&""!==e}regExpMask(e){return e.split("").map(i=>Number.isNaN(parseInt(i,10))?i:new RegExp(/[0-9]/))}convertMaskToPlaceholder(e){return e.map(i=>i instanceof RegExp?this.placeholderChar:i).join("")}valueWithMask(e="",i,o="",r=0,s=!1,a=!1,l=!1,c){let d="";if("function"==typeof i){const M=i(e,c);i=M.mask?M.mask:M,e=Object.prototype.hasOwnProperty.call(M,"valueMask")?M.valueMask:e,d=Object.prototype.hasOwnProperty.call(M,"value")?M.value:d}if(l){const M=this.removeMask(e,!0);let I=0;i.map(W=>{I=W instanceof RegExp?I+1:I}).join("");let O=M.replace(/^0*/g,"");O.length>I&&(O=M.slice(0,-1)),e="0".repeat(I-O.length)+O}const u=!1===s&&void 0!==o,h=this.convertMaskToPlaceholder(i),f=e.length-o.length,m=f>0,v=r+(m?-f:0),S=v+Math.abs(f);let C="";if(!m&&a){let M="";for(let I=v;I<S;I++)h[I]===this.placeholderChar&&(M+=this.placeholderChar);e=e.slice(0,v)+M+e.slice(v,e.length)}const x=e.split("").map((M,I)=>({char:M,isNew:I>=v&&I<S}));for(let M=e.length-1;M>=0;M--){x[M].char!==this.placeholderChar&&x[M].char===h[M>=v&&o.length===i.length?M-f:M]&&x.splice(M,1);break}e:for(let M=0;M<h.length;M++){if(h[M]===this.placeholderChar){if(x.length>0)for(;x.length>0;){const I=x.shift();if(I&&this.placeholderChar===I.char&&!u){C+=this.placeholderChar;continue e}if(I&&i[M].test(I.char)){if(a&&I.isNew&&""!==o&&s&&m){let O=null;for(let W=0;x.length>W;W++){const we=x[W];if(we.char!==this.placeholderChar&&!we.isNew)break;if(we.char===this.placeholderChar){O=W;break}}null!==O?(C+=I.char,x.splice(O,1)):M--}else C+=I.char;continue e}}u||(C+=h.substr(M,h.length));break}C+=h[M]}if(u&&!m){let M=null;for(let I=0;I<C.length;I++)h[I]===this.placeholderChar&&(M=I);C=null!==M?C.substr(0,M+1):""}return d=this.verifyAndAdjustDecimal(c,C,this.valueIsNotEmpty(d)?d:this.removeMask(C)),{valueMask:C,placeholder:h,value:d}}adjustCaretPosition(e="",i,o,r,s="",a=!1,l=!1,c=!1,d=!1,u=[]){if(0===r||!e.length)return 0;const f=s.length,m=o.length,v=i.length,S=e.length-f,C=S>0,x=C&&(s===i||i===o);if((!c||c&&C||l)&&(!a||a&&!C)&&(!l||l&&!C)&&v===f&&!x&&i!==s)return r+1;let M=0,I="";if(x)M=r-S;else{const O=i.toLowerCase(),Ye=e.toLowerCase().substr(0,r).split("").filter(ht=>-1!==O.indexOf(ht));I=Ye[Ye.length-1];const rt=Ye.filter(ht=>ht===I).length,Pt=o.substr(0,o.indexOf(this.placeholderChar)).split("").filter((ht,bn)=>ht===I&&e[bn]!==ht).length+rt;let kn=0;for(let ht=0;ht<v&&(M=ht+1,O[ht]===I&&kn++,!(kn>=Pt));ht++);}if(C){let O=M;for(let W=M;W<=m;W++)if(o[W]===this.placeholderChar&&(O=W),o[W]===this.placeholderChar||u&&-1!==u.indexOf(W)||W===m)return O}for(let O=M;O>=0;O--){const W=d&&-1!==o[O-1].search(/[ /-]/g);if(o[O-1]===this.placeholderChar||W||-1!==u.indexOf(O)||0===O)return O}}verifyAndAdjustDecimal(e,i,o){if(!this.valueIsNotEmpty(o)||-1!==o.indexOf(".")||!e?.decimal)return o;const{decimal:r,precision:s=0}=e,a=i.indexOf(r);if(-1===a)return o;const l=`${o.slice(0,a)}.${o.slice(a)}`;return s>0?parseFloat(l).toFixed(s):l}}return n.\u0275fac=function(e){return new(e||n)(w(Pw,8),w(Ew,8))},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})(),Ig=(()=>{class n{constructor(e,i,o,r,s){this.ngControl=e,this.elementRef=i,this.idsMaskService=o,this.renderer=r,this.la=s,this._announce=!1,this._lastKey="",this._shouldKeepMask=!1,this._onChange=a=>{},this._onTouched=()=>{},this.allowLeadingZeros=!1,this.forceEndCursor=!1,this.guide=!1,this.keepCharPositions=!1,this.ngControl&&(this.ngControl.valueAccessor=this)}ngOnInit(){this._handleMaskType()}ngAfterViewInit(){(this._value&&"string"==typeof this._value||this._value?.length>0||this.guide&&"date"!==this.idsMask)&&this.setValueMask()}get isCurrencyOnIOS(){return"IOS"===Qt.os&&"currency"===this.idsMask}get isCurrencyOnMobile(){return Qt.isMobile&&"currency"===this.idsMask}get isRangeDate(){return this.config?.range}set announce(e){this._announce=Ge(e)}get announce(){return this._announce||"date"===this.idsMask||"currency"===this.idsMask}set config(e){this._config=gV(e)}get config(){return this._config}set disabled(e){this._disabled=Ge(e)}get disabled(){return this._disabled||this.ngControl&&this.ngControl.disabled&&!this.controlValue||null}set idsMask(e){this._idsMask=e,this.ngControl?.dirty&&this._handleMaskType()}get idsMask(){return this._idsMask}set readonly(e){this._readonly=Ge(e)}get readonly(){return this._readonly||this.ngControl&&this.ngControl.disabled&&!!this.controlValue||null}set shouldKeepMask(e){this._shouldKeepMask=Ge(e)}get shouldKeepMask(){return this._shouldKeepMask||"date"===this.idsMask}set value(e){e!==this._value&&(this._value=this.handleValue(e),this._onChange(e))}get value(){return this._value}handleValue(e){return"number"==typeof e&&("currency"===this.idsMask||this.config&&this.config.decimal)?e.toFixed(this.config?.precision??"2"):e}get controlValue(){return this._value}get inputmode(){const e=this.elementRef.nativeElement.getAttribute("inputmode");return this.isCurrencyOnMobile?e||"decimal":e}get pattern(){const e=this.elementRef.nativeElement.getAttribute("pattern");return this.isCurrencyOnIOS?e||"[0-9.?,]*":e}controlBlur(){this._onTouched()}controlChange(){this._onChange(this.value)}onInput(e){if("date"===this.idsMask)return this._handleMaskOnInput(e,i=>this._transformDateValue(i,!1)),void(this.value=this.isRangeDate?this._setDateRangeValue():this.value);this._handleMaskOnInput(e)}onKeyDown(e=""){this._lastKey=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}writeValue(e){this.value=e,this._mask&&this.setValueMask()}setValueMask(){const e=this.valueMask(this._value?.toString(),this.elementRef.nativeElement.selectionEnd);this.renderer.setProperty(this.elementRef.nativeElement,"value",e.valueMask),this._previousMaskValue=e.valueMask}valueMask(e,i){const o=this.idsMaskService.valueWithMask(e,this._mask,this._previousMaskValue,i,Boolean(this.guide),Boolean(this.keepCharPositions),Boolean(this.allowLeadingZeros),this.config),r=this.idsMaskService.adjustCaretPosition(e,o.valueMask,o.placeholder,i,this._previousMaskValue,Boolean(this.guide),Boolean(this.allowLeadingZeros),Boolean(this.keepCharPositions),"date"===this.idsMask);return{valueMask:o.valueMask,cleanValue:o.value,position:r}}_announceValue(){this.announce&&this.la.announce("currency"===this.idsMask&&this.prefixToBeAnnounced?`${this.prefixToBeAnnounced} ${this._valueMask.valueMask}`:this._valueMask.valueMask,1e3)}_handleMaskOnInput(e,i){let o=e.value;i&&(o=i(o)),this._valueMask=this.valueMask(o,e.selectionEnd??0),this.value=this.shouldKeepMask?this._valueMask.valueMask:this._valueMask.cleanValue,this._renderElementValue(),this._setCursorPosition(e),this._previousMaskValue=this._valueMask.valueMask,this._announceValue()}_renderElementValue(){this.renderer.setProperty(this.elementRef.nativeElement,"value",this._valueMask.valueMask)}_handleMaskType(){return"currency"===this.idsMask?this._mask=this.idsMaskService.currencyMask:"date"===this.idsMask?(this.guide=!0,this.keepCharPositions=!0,this._mask=this.idsMaskService.dateMask):this._mask="string"==typeof this.idsMask?this.idsMaskService.regExpMask(this.idsMask):this.idsMask}_transformDateValue(e="",i=!0){const o=this.idsMaskService.placeholderChar,r=i?RegExp(`${o}`,"g"):/ /g,s=i?" ":`${o}`,l=RegExp("(\\s?-\\s?)|\\s","g"),c=!e.includes("-")&&"Backspace"===this._lastKey||"Space"===this._lastKey||/\w-|-\w/.test(e);let d;if(!e)return e;d=i||!this.isRangeDate?e.replace(r,s):c?this._previousMaskValue:e.replace(l,(h,f)=>f||"_");const u=d.replace(/[ /-]/g,"");return i&&0===u.length&&(d=""),d}_setCursorPosition(e){const i="Backspace"===this._lastKey,{position:o,valueMask:r}=this._valueMask;this.forceEndCursor&&i&&(o===r.length-1||o===r.length)||"currency"===this.idsMask||e.setSelectionRange(o??0,o??0,"none")}_setDateRangeValue(){const{valueMask:e,cleanValue:i}=this._valueMask,o=this.config?.format?.length||10,r=this.config?.format?.replace(/[/-]/g,"").length||8,s=e.substring(o+3,2*o+3);return[e.substring(0,o),i.length>r?s:""]}}return n.\u0275fac=function(e){return new(e||n)(b(yn,10),b(oe),b(Ow),b(xn),b(mr))},n.\u0275dir=k({type:n,selectors:[["","idsMask",""]],hostVars:5,hostBindings:function(e,i){1&e&&he("blur",function(){return i.controlBlur()})("change",function(){return i.controlChange()})("input",function(r){return i.onInput(r.target)})("keydown",function(r){return i.onKeyDown(r.code)}),2&e&&(ed("disabled",i.disabled)("readonly",i.readonly),J("value",i.controlValue)("inputmode",i.inputmode)("pattern",i.pattern))},inputs:{announce:"announce",allowLeadingZeros:"allowLeadingZeros",config:"config",disabled:"disabled",forceEndCursor:"forceEndCursor",guide:"guide",idsMask:"idsMask",keepCharPositions:"keepCharPositions",readonly:"readonly",shouldKeepMask:"shouldKeepMask",value:"value"},standalone:!0}),st([Qn(),at("design:type",Object)],n.prototype,"allowLeadingZeros",void 0),st([Qn(),at("design:type",Object)],n.prototype,"forceEndCursor",void 0),st([Qn(),at("design:type",Object)],n.prototype,"guide",void 0),st([Qn(),at("design:type",Object)],n.prototype,"keepCharPositions",void 0),n})(),Uj=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:Pw,useValue:e.currencyConfig},{provide:Ew,useValue:e.dateConfig}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({providers:[Ow]}),n})(),Gj=0,wg=(()=>{class n{set size(e){this._size=e,this.circleRadius=this._circleRadiusValues[this.size]}get size(){return AI(this._size,"upperCase")}constructor(e){this.liveAnnouncer=e,this._circleRadiusValues={XS:8,S:12,L:32,XL:64},this.circleRadius=16,this.id="ids-loading-"+Gj++,this.ariaLabel="carregando"}ngAfterViewInit(){this.ariaLive&&this.liveAnnouncer.announce(this.ariaLabel,this.ariaLive,1e3)}}return n.\u0275fac=function(e){return new(e||n)(b(mr))},n.\u0275cmp=me({type:n,selectors:[["ids-loading"]],hostVars:6,hostBindings:function(e,i){2&e&&(J("id",null)("aria-hidden",null)("aria-label",null)("aria-live",null)("role",null),Jf("@inOut",!0))},inputs:{id:"id",ariaHidden:["aria-hidden","ariaHidden"],ariaLabel:["aria-label","ariaLabel"],ariaLive:["aria-live","ariaLive"],role:"role",contrast:"contrast",variant:"variant",size:"size"},standalone:!0,features:[Xe],ngContentSelectors:VH,decls:8,vars:18,consts:[[1,"ids-loading"],["xmlns","http://www.w3.org/2000/svg","role","img",1,"ids-loading__svg"],["cx","50%","cy","50%",1,"ids-loading__circle-ring"],["cx","50%","cy","50%",1,"ids-loading__circle-spinner"],[1,"ids-loading__icon"]],template:function(e,i){1&e&&(Ve(LH),F(0,"div",0),xh(),F(1,"svg",1)(2,"title"),de(3),B(),Jt(4,"circle",2)(5,"circle",3),B(),Ph(),F(6,"div",4),De(7),B()()),2&e&&(Oe("ids-loading--xsmall","XS"===i.size)("ids-loading--small","S"===i.size)("ids-loading--large","L"===i.size)("ids-loading--xlarge","XL"===i.size)("ids-loading--on-brand","onBrand"===i.contrast)("ids-loading--secondary","secondary"===i.variant),J("id",i.id)("aria-hidden",i.ariaHidden)("role",i.role),P(3),_n(i.ariaLabel),P(1),J("r",i.circleRadius),P(1),J("r",i.circleRadius))},styles:["@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ids-loading[_ngcontent-%COMP%]{color:var(--ids_color_action_primary_base);display:inline-block;height:calc(var(--ids_size_general_32x) + var(--ids_size_general_3x) * 2);position:relative;width:calc(var(--ids_size_general_32x) + var(--ids_size_general_3x) * 2)}.ids-loading__svg[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin .8s linear infinite;height:calc(var(--ids_size_general_32x) + var(--ids_size_general_3x) * 2);width:calc(var(--ids_size_general_32x) + var(--ids_size_general_3x) * 2)}.ids-loading__circle-ring[_ngcontent-%COMP%]{fill:transparent;opacity:var(--ids_opacity_soft);stroke:currentcolor;stroke-width:var(--ids_size_general_3x)}.ids-loading__circle-spinner[_ngcontent-%COMP%]{--spin-value: var(--ids_size_general_3x);fill:transparent;stroke:currentcolor;stroke-dasharray:100.5309649149;stroke-dashoffset:75.3982236862;stroke-linecap:round;stroke-width:var(--ids_size_general_3x)}.ids-loading__icon[_ngcontent-%COMP%]{display:flex;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.ids-loading--xsmall[_ngcontent-%COMP%], .ids-loading--xsmall[_ngcontent-%COMP%]   .ids-loading__svg[_ngcontent-%COMP%]{height:calc(var(--ids_size_general_16x) + var(--ids_size_general_2x) * 2);width:calc(var(--ids_size_general_16x) + var(--ids_size_general_2x) * 2)}.ids-loading--xsmall[_ngcontent-%COMP%]   .ids-loading__circle-ring[_ngcontent-%COMP%]{stroke-width:var(--ids_size_general_2x)}.ids-loading--xsmall[_ngcontent-%COMP%]   .ids-loading__circle-spinner[_ngcontent-%COMP%]{--spin-value: var(--ids_size_general_2x);stroke-dasharray:50.2654824574;stroke-dashoffset:37.6991118431;stroke-width:var(--ids_size_general_2x)}.ids-loading--small[_ngcontent-%COMP%], .ids-loading--small[_ngcontent-%COMP%]   .ids-loading__svg[_ngcontent-%COMP%]{height:calc(var(--ids_size_general_24x) + var(--ids_size_general_2x) * 2);width:calc(var(--ids_size_general_24x) + var(--ids_size_general_2x) * 2)}.ids-loading--small[_ngcontent-%COMP%]   .ids-loading__circle-ring[_ngcontent-%COMP%]{stroke-width:var(--ids_size_general_2x)}.ids-loading--small[_ngcontent-%COMP%]   .ids-loading__circle-spinner[_ngcontent-%COMP%]{--spin-value: var(--ids_size_general_2x);stroke-dasharray:75.3982236862;stroke-dashoffset:56.5486677646;stroke-width:var(--ids_size_general_2x)}.ids-loading--large[_ngcontent-%COMP%], .ids-loading--large[_ngcontent-%COMP%]   .ids-loading__svg[_ngcontent-%COMP%]{height:calc(var(--ids_size_general_64x) + var(--ids_size_general_4x) * 2);width:calc(var(--ids_size_general_64x) + var(--ids_size_general_4x) * 2)}.ids-loading--large[_ngcontent-%COMP%]   .ids-loading__circle-ring[_ngcontent-%COMP%]{stroke-width:var(--ids_size_general_4x)}.ids-loading--large[_ngcontent-%COMP%]   .ids-loading__circle-spinner[_ngcontent-%COMP%]{--spin-value: var(--ids_size_general_4x);stroke-dasharray:201.0619298297;stroke-dashoffset:150.7964473723;stroke-width:var(--ids_size_general_4x)}.ids-loading--xlarge[_ngcontent-%COMP%], .ids-loading--xlarge[_ngcontent-%COMP%]   .ids-loading__svg[_ngcontent-%COMP%]{height:calc(var(--ids_size_general_128x) + var(--ids_size_general_5x) * 2);width:calc(var(--ids_size_general_128x) + var(--ids_size_general_5x) * 2)}.ids-loading--xlarge[_ngcontent-%COMP%]   .ids-loading__circle-ring[_ngcontent-%COMP%]{stroke-width:var(--ids_size_general_5x)}.ids-loading--xlarge[_ngcontent-%COMP%]   .ids-loading__circle-spinner[_ngcontent-%COMP%]{--spin-value: var(--ids_size_general_5x);stroke-dasharray:402.1238596595;stroke-dashoffset:301.5928947446;stroke-width:var(--ids_size_general_5x)}.ids-loading--secondary[_ngcontent-%COMP%]{color:var(--ids_color_action_secondary_base)}.ids-loading--on-brand[_ngcontent-%COMP%]{color:var(--ids_color_contrast_onBrand_primary)}"],data:{animation:[q3("inOut",[dw(":enter",[uw(".ids-loading",[Ml({opacity:"0"}),lw("200ms ease-in-out",Ml({opacity:"1"}))])]),dw(":leave",[uw(".ids-loading",[lw("250ms ease-in-out",Ml({opacity:"0"}))])])])]}}),n})(),Tw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[wg]}),n})(),Dg=(()=>{class n{constructor(){this._full=!1,this._loading=!1}get full(){return this._full}set full(e){this._full=Ge(e)}get loading(){return this._loading}set loading(e){this._loading=Ge(e)}onKeydown(e){this.loading&&e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=me({type:n,selectors:[["button","idsMainButton",""]],hostVars:10,hostBindings:function(e,i){1&e&&he("keydown",function(r){return i.onKeydown(r)}),2&e&&Oe("ids-main-button",!0)("ids-main-button--full",i.full)("ids-main-button--secondary","secondary"===i.variant)("ids-main-button--on-brand","onBrand"===i.contrast)("ids-main-button--loading",i.loading)},inputs:{contrast:"contrast",variant:"variant",full:"full",loading:"loading"},standalone:!0,features:[Xe],attrs:HH,ngContentSelectors:Lt,decls:3,vars:3,consts:[[1,"ids-main-button__content"],["class","ids-main-button__loading","size","S","aria-live","polite",3,"variant","contrast",4,"ngIf"],["size","S","aria-live","polite",1,"ids-main-button__loading",3,"variant","contrast"]],template:function(e,i){1&e&&(Ve(),F(0,"span",0),De(1),B(),ce(2,jH,1,2,"ids-loading",1)),2&e&&(Oe("ids-main-button__content--hidden",i.loading),P(2),R("ngIf",i.loading))},dependencies:[Jn,qn,Tw,wg],styles:[".ids-main-button[_ngcontent-%COMP%], .ids-main-button[_nghost-%COMP%]{all:unset;all:revert;box-sizing:border-box;background:var(--ids_color_action_primary_base);border:var(--ids_size_border_small) solid transparent;border-radius:var(--ids_size_cornerRadius_button);color:var(--ids_color_action_primary_contrast);cursor:pointer;font:var(--ids_textStyle_f02_s16_h24_wbd);min-height:3.125rem;outline-offset:var(--ids_size_general_4x);padding:var(--ids_size_general_10x) calc(var(--ids_size_general_24x) - var(--ids_size_border_small));position:relative;text-align:center;text-decoration:none}.ids-main-button[_ngcontent-%COMP%]:focus, .ids-main-button[_nghost-%COMP%]:focus{outline:revert!important}.ids-main-button__content[_ngcontent-%COMP%], .ids-main-button__content[_nghost-%COMP%]{align-items:center;display:inline-flex;gap:var(--ids_size_general_10x);justify-content:center}.ids-main-button__content--hidden[_ngcontent-%COMP%], .ids-main-button__content--hidden[_nghost-%COMP%]{visibility:hidden}.ids-main-button__loading[_ngcontent-%COMP%], .ids-main-button__loading[_nghost-%COMP%]{left:0;position:absolute;right:0;width:100%}.ids-main-button--loading[_ngcontent-%COMP%], .ids-main-button--loading[_nghost-%COMP%]{pointer-events:none}.ids-main-button--full[_ngcontent-%COMP%], .ids-main-button--full[_nghost-%COMP%]{width:100%}.ids-main-button--full[_ngcontent-%COMP%]   .ids-main-button__content[_ngcontent-%COMP%], .ids-main-button--full[_nghost-%COMP%]   .ids-main-button__content[_ngcontent-%COMP%]{width:100%}.ids-main-button--full[_ngcontent-%COMP%]   .ids-icon[_ngcontent-%COMP%], .ids-main-button--full[_nghost-%COMP%]   .ids-icon[_ngcontent-%COMP%]{margin-left:auto}.ids-main-button--full[_ngcontent-%COMP%]     ids-icon, .ids-main-button--full[_nghost-%COMP%]     ids-icon{margin-left:auto}.ids-main-button[_ngcontent-%COMP%]:disabled, .ids-main-button[aria-disabled=true][_ngcontent-%COMP%], .ids-main-button[_nghost-%COMP%]:disabled, .ids-main-button[aria-disabled=true][_nghost-%COMP%]{background-color:var(--ids_color_action_disabled_base);border-color:var(--ids_color_action_disabled_base);color:var(--ids_color_action_disabled_variant);cursor:not-allowed}@media (hover: hover) and (pointer: fine){.ids-main-button[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-main-button[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-main-button[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-main-button[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){background-color:var(--ids_color_action_primary_variant)}}.ids-main-button--secondary[_ngcontent-%COMP%], .ids-main-button--secondary[_nghost-%COMP%]{background-color:transparent;border-color:currentcolor;color:var(--ids_color_action_secondary_base)}.ids-main-button--secondary[_ngcontent-%COMP%]:disabled, .ids-main-button--secondary[aria-disabled=true][_ngcontent-%COMP%], .ids-main-button--secondary[_nghost-%COMP%]:disabled, .ids-main-button--secondary[aria-disabled=true][_nghost-%COMP%]{background-color:transparent;color:var(--ids_color_action_disabled_variant)}@media (hover: hover) and (pointer: fine){.ids-main-button--secondary[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-main-button--secondary[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-main-button--secondary[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-main-button--secondary[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){background-color:var(--ids_color_action_secondary_base_soft);color:var(--ids_color_action_secondary_variant)}}.ids-main-button--on-brand[_ngcontent-%COMP%], .ids-main-button--on-brand[_nghost-%COMP%]{background-color:var(--ids_color_action_primary_contrast);border-color:var(--ids_color_action_primary_contrast);color:var(--ids_color_action_primary_base)}.ids-main-button--on-brand[_ngcontent-%COMP%]:disabled, .ids-main-button--on-brand[aria-disabled=true][_ngcontent-%COMP%], .ids-main-button--on-brand[_nghost-%COMP%]:disabled, .ids-main-button--on-brand[aria-disabled=true][_nghost-%COMP%]{background-color:var(--ids_color_action_primary_contrast);border-color:var(--ids_color_action_primary_contrast);color:var(--ids_color_action_disabled_variant)}@media (hover: hover) and (pointer: fine){.ids-main-button--on-brand[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-main-button--on-brand[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-main-button--on-brand[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-main-button--on-brand[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){background-color:var(--ids_color_action_primary_contrast);color:var(--ids_color_action_primary_variant)}}.ids-main-button--on-brand.ids-main-button--secondary[_ngcontent-%COMP%], .ids-main-button--on-brand.ids-main-button--secondary[_nghost-%COMP%]{background-color:transparent;border-color:currentcolor;color:var(--ids_color_action_primary_contrast)}.ids-main-button--on-brand.ids-main-button--secondary[_ngcontent-%COMP%]:disabled, .ids-main-button--on-brand.ids-main-button--secondary[aria-disabled=true][_ngcontent-%COMP%], .ids-main-button--on-brand.ids-main-button--secondary[_nghost-%COMP%]:disabled, .ids-main-button--on-brand.ids-main-button--secondary[aria-disabled=true][_nghost-%COMP%]{background-color:transparent;color:var(--ids_color_action_primary_contrast_medium)}@media (hover: hover) and (pointer: fine){.ids-main-button--on-brand.ids-main-button--secondary[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-main-button--on-brand.ids-main-button--secondary[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-main-button--on-brand.ids-main-button--secondary[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-main-button--on-brand.ids-main-button--secondary[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){background-color:var(--ids_color_action_primary_contrast_soft);color:var(--ids_color_action_primary_contrast)}}@media (min-width: 64rem){.ids-main-button[_ngcontent-%COMP%], .ids-main-button[_nghost-%COMP%]{font:var(--ids_textStyle_f02_s20_h26_wbd)}}"]}),n})(),Aw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[Dg]}),n})(),Wj=0,kw=(()=>{class n{constructor(){this.classes=!0,this.id="ids-prefix-"+Wj++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["","idsPrefix",""]],hostVars:3,hostBindings:function(e,i){2&e&&(J("id",i.id),Oe("ids-form-field__prefix",i.classes))},inputs:{id:"id"},exportAs:["idsPrefix"],standalone:!0}),n})(),Fw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["","idsSuffix",""]],exportAs:["idsSuffix"],standalone:!0}),n})(),Rw=(()=>{class n{get formFieldLabelClass(){return!0}constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(b(oe))},n.\u0275dir=k({type:n,selectors:[["","idsFormFieldLabel",""]],hostVars:2,hostBindings:function(e,i){2&e&&Oe("ids-form-field__label",i.formFieldLabelClass)},standalone:!0}),n})(),qj=0,Ls=(()=>{class n{get classes(){return{"ids-form-message":!0,"ids-form-message--disabled":"disabled"===this.status,"ids-form-message--error":"error"===this.status,"ids-form-message--on-brand":"onBrand"===this.contrast}}constructor(e){this.liveAnnouncer=e,this.observer=new MutationObserver(()=>this._checkAriaLive()),this.id="ids-form-message-"+ ++qj,this._hostId=null,this.ariaLive="off",this.show=!0}ngAfterViewInit(){this.contentRef&&"off"===this.ariaLive&&"Windows"!==Qt.os&&this._listenToMutation()}ngOnDestroy(){this.observer.disconnect()}_listenToMutation(){this.observer.observe(this.contentRef.nativeElement,{subtree:!0,characterData:!0})}_checkAriaLive(){this.ariaLive="polite","Safari"===Qt.userAgent&&this.announceDescription&&this.liveAnnouncer.announce(this.contentRef.nativeElement.textContent,1e3)}}return n.\u0275fac=function(e){return new(e||n)(b(mr))},n.\u0275cmp=me({type:n,selectors:[["ids-form-message"]],viewQuery:function(e,i){if(1&e&&Re(Cg,5),2&e){let o;K(o=X())&&(i.contentRef=o.first)}},hostVars:2,hostBindings:function(e,i){2&e&&J("aria-live",null)("id",i._hostId)},inputs:{id:"id",contrast:"contrast",ariaLive:["aria-live","ariaLive"],show:"show",announceDescription:"announceDescription",status:"status"},standalone:!0,features:[Xe],ngContentSelectors:Lt,decls:2,vars:4,consts:[[4,"ngIf"],["size","S",4,"ngIf"],[3,"id"],["content",""],["size","S"]],template:function(e,i){1&e&&(Ve(),F(0,"div"),ce(1,$H,5,2,"ng-container",0),B()),2&e&&(_s(i.classes),J("aria-live",i.ariaLive),P(1),R("ngIf",i.show))},dependencies:[Jn,qn,Oo,Ri],styles:[".ids-form-message[_ngcontent-%COMP%]{align-items:center;color:var(--ids_color_action_neutral_base);display:flex;font:var(--ids_textStyle_f02_s14_h20_wrg);margin-right:var(--ids_spacing_2x)}.ids-form-message[_ngcontent-%COMP%]   .ids-icon[_ngcontent-%COMP%]{margin-right:var(--ids_size_general_4x);margin-top:var(--ids_size_general_1x)}.ids-form-message--error[_ngcontent-%COMP%]{color:var(--ids_color_feedback_error)}.ids-form-message--disabled[_ngcontent-%COMP%]{color:var(--ids_color_action_disabled_variant)}.ids-form-message--hidden[_ngcontent-%COMP%]{display:none}.ids-form-message--on-brand[_ngcontent-%COMP%]{color:var(--ids_color_contrast_onBrand_primary)}.ids-form-message--on-brand.ids-form-message--disabled[_ngcontent-%COMP%]{color:var(--ids_color_contrast_onBrand_primary_medium)}"]}),st([Qn(),at("design:type",Object)],n.prototype,"show",void 0),st([Qn(),at("design:type",Object)],n.prototype,"announceDescription",void 0),n})(),Nw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[Ls]}),n})(),Jj=(()=>{class n{transform(e=0){return bV(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=tn({name:"pxToRem",type:n,pure:!0,standalone:!0}),n})(),Kj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({}),n})(),Bw=0,Mu=(()=>{class n{get hasValue(){return Boolean(this.field.value||this.field.nativeElement.value||"date"===this.field.nativeElement.type)}get classes(){const e=this.externalClasses.join(" ");return this.field?{"ids-form-field":!0,"ids-form-field--error":this.hasError,"ids-form-field--large":"L"===this.size||this.isCurrency&&this.center,"ids-form-field--value":this.hasValue,"ids-form-field--button-suffix":this.isButtonSuffix,"ids-form-field--center":this.center,"ids-form-field--placeholder":this.hasPlaceHolder,"ids-form-field--focus":this.isFocused,"ids-form-field--visible-focus":this.canShowVisibleFocus,"ids-form-field--disabled":this.isDisabled||this.isReadOnly,"ids-form-field--suffix":this.hasSuffix,"ids-form-field--outline":this.outline,"ids-form-field--on-brand":"onBrand"===this.contrast,"ids-form-field--secondary":"secondary"===this.variant,"ids-form-field--no-label":!this.hasLabel,"ids-form-field--no-border":this.noBorder,"ids-form-field--no-message":this.noMessage,[e]:!0}:""}get isCurrency(){return this.mask&&"currency"===this.mask.idsMask}get isDisabled(){return Boolean(this.field.nativeElement.disabled||this.field.nativeElement.disabled||this.field.disabled)}get isReadOnly(){return Boolean(this.field.nativeElement.readOnly)}get hasPrefix(){return Boolean(this.prefix||this.isCurrency&&this.hasValue)}get hasSuffix(){return Boolean(this.hasContentSuffix||this.externalSuffix||this.edit)}get hasPlaceHolder(){return Boolean(this.field.nativeElement.placeholder)}get hasLabel(){return Boolean(this.labelDirective||this.label)}get isTextarea(){return"textarea"===this.field?.nativeElement?.type}get maxLength(){return this.field.nativeElement.maxLength}get hasMaxLength(){return this.maxLength>=0}get isButtonSuffix(){return!this.outline&&this.suffix?.nativeElement?.querySelector("button")}get isFocused(){return(this.field.focused||document.activeElement===this.field.nativeElement)&&!(this.field.disabled||this.field.nativeElement.disabled)}get lastCharactersMessage(){const e=this.maxLength-_l(this.field.value.toString());return e>1?`${e} ${this.charactersRemainingMessage.plural}`:`${e} ${this.charactersRemainingMessage.singular}`}get message(){return this.hasError?this.errorMessage:this.description}get isFieldInvalid(){return Boolean((this.field.ngControl.touched||this.field.ngControl.dirty)&&this.field.invalid&&(!this.field.updateFirstOnBlur||this.field.updateFirstOnBlur&&this.field.ngControl.touched))}get prefixWidth(){return this.prefixElement?.nativeElement.offsetWidth||0}get textWidth(){return this.dummy.nativeElement.offsetWidth||0}set describedById(e){this._externalDescription=!0,this._describedById=e}get describedById(){return this._describedById}set thresholdAnnounce(e){this._thresholdAnnounce=_V(e)}get thresholdAnnounce(){return this._thresholdAnnounce}set noBorder(e){this._noBorder=Ge(e)}get noBorder(){return this._noBorder}get errorMessage(){return this._errorMessage}set errorMessage(e){this._errorMessage=e}set description(e){this._description=e}get description(){return this.isTextarea&&this.hasMaxLength&&this.maxLength-_l(this.field.value.toString())<=this.thresholdAnnounce?this.lastCharactersMessage:this._description}set edit(e){this._edit=Ge(e)}get edit(){return this._edit}set noValidate(e){this._noValidate=Ge(e)}get noValidate(){return this._noValidate}set center(e){this._center=Ge(e)}get center(){return this._center}get hasContentSuffix(){return this.contentIcon||this.contentSuffix}describedHandler(){return(this.field.active||!this.field.focused)&&!this.hasError}updateAriaLabelledByWithPrefix(){this.prefix&&(this.field.ariaLabelledby=`${this.field.controlId} ${this.prefix.id}`)}constructor(e,i,o){this._focusMonitor=e,this._formFieldService=i,this.cdr=o,this._errorShowed=!1,this.externalSuffix="",this.externalClasses=[],this.outline=!1,this.canShowVisibleFocus=!1,this.hasError=!1,this.selector="IdsFormFieldComponent",this.fieldDefined=!1,this._describedById="ids-describedby-"+ ++Bw,this._externalDescription=!1,this._destroy=new re,this.label="",this._thresholdAnnounce=15,this._errorMessage="o preenchimento do campo \xe9 obrigat\xf3rio",this._description="",this._edit=!1,this._noValidate=!1,this._center=!1,this.charactersRemainingMessage={singular:"caracter restante",plural:"caracteres restantes"},this._formFieldService.classes$().subscribe(r=>{this.externalClasses=r}),this._formFieldService.suffixIcon$().subscribe(r=>{this.externalSuffix=r})}ngAfterContentInit(){if(this.isCurrency){if(this.fieldPrefix=this.mask.config?.prefix||"R$",this.mask.prefixToBeAnnounced=this.fieldPrefix.trim(),this.mask.config)return void(this.mask.config={...this.mask.config,prefix:""});this.mask.config={allowNegative:!1,decimal:",",precision:2,thousands:".",prefix:"",suffix:""}}this.fieldSetup(),this.labelSetup()}ngAfterViewInit(){this._formFieldService.sendFormFieldElement(this.formField.nativeElement)}ngAfterViewChecked(){this.fieldDefined||Promise.resolve().then(()=>{this.fieldSetup()}),this.cdr.detectChanges()}initializeField(){this.field.errorState.pipe(Vm(!1),yt(this._destroy)).subscribe(e=>{const i=this.noValidate?this.isFieldInvalid:e;"IOS"===Qt.os&&i!==this._errorShowed&&(this.describedById="ids-describedby-"+ ++Bw,this._errorShowed=i),this.hasError=i,this.field.handleDescribedby(this.describedById),this.noValidate||this.field.handleInvalid(this.hasError)}),this.updateAriaLabelledByWithPrefix()}activateFocusMonitor(){this._focusMonitor.monitor(this.field.nativeElement,!0).pipe(yt(this._destroy)).subscribe(e=>this.canShowVisibleFocus="keyboard"===e||"program"===e)}labelSetup(){this.labelDirective&&(this.labelDirective.elementRef.nativeElement.setAttribute("for",this.field.controlId),this.field.labelId&&this.labelDirective.elementRef.nativeElement.setAttribute("id",this.field.labelId))}fieldSetup(){this.field&&(this.initializeField(),this.activateFocusMonitor(),this.fieldDefined=!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.field),this._destroy.complete()}}return n.\u0275fac=function(e){return new(e||n)(b(ZV),b(bu),b(to))},n.\u0275cmp=me({type:n,selectors:[["ids-form-field"]],contentQueries:function(e,i,o){if(1&e&&(He(o,Ig,5),He(o,_r,7),He(o,kw,7),He(o,Rw,7),He(o,Fw,7),He(o,Ri,7)),2&e){let r;K(r=X())&&(i.mask=r.first),K(r=X())&&(i.field=r.first),K(r=X())&&(i.prefix=r.first),K(r=X())&&(i.labelDirective=r.first),K(r=X())&&(i.contentSuffix=r.first),K(r=X())&&(i.contentIcon=r.first)}},viewQuery:function(e,i){if(1&e&&(Re(UH,7),Re(GH,5),Re(WH,5),Re(qH,5),Re(Ls,5)),2&e){let o;K(o=X())&&(i.dummy=o.first),K(o=X())&&(i.suffix=o.first),K(o=X())&&(i.prefixElement=o.first),K(o=X())&&(i.formField=o.first),K(o=X())&&(i.formMessage=o.first)}},inputs:{describedById:["aria-describedby","describedById"],contrast:"contrast",label:"label",size:"size",noMessage:"noMessage",thresholdAnnounce:"thresholdAnnounce",variant:"variant",noBorder:"noBorder",errorMessage:"errorMessage",description:"description",edit:"edit",noValidate:"noValidate",center:"center",charactersRemainingMessage:"charactersRemainingMessage"},standalone:!0,features:[ee([{provide:bu},{provide:Ig}]),Xe],ngContentSelectors:ej,decls:23,vars:18,consts:[[3,"ngClass"],["formField",""],[1,"ids-form-field__container"],["class","ids-form-field__label",3,"for",4,"ngIf"],[1,"ids-form-field__content"],["aria-hidden","true",1,"ids-form-field__prefix"],["prefix",""],[1,"ids-form-field__suffix"],["suffix",""],["variant","primary",4,"ngIf"],["class","ids-form-field__status-message",4,"ngIf"],["aria-hidden","true",1,"ids-input","ids-dummy-width"],["dummy",""],[1,"ids-form-field__label",3,"for"],["variant","primary"],[1,"ids-form-field__status-message"],[3,"status","id","announceDescription"]],template:function(e,i){1&e&&(Ve(ZH),F(0,"div",0,1),rd(2,"pxToRem"),rd(3,"pxToRem"),F(4,"div",2),ce(5,JH,2,3,"label",3),De(6),F(7,"div",4)(8,"div",5,6),de(10),B(),De(11,1),F(12,"div",7,8),De(14,2),ce(15,KH,2,0,"ids-icon",9),ce(16,XH,2,1,"ids-icon",9),B()(),De(17,3),De(18,4),B(),ce(19,QH,3,4,"div",10),F(20,"div",11,12),de(22),B()()),2&e&&(function pi(n){gi(Hb,cT,n,!1)}($C(15,YH,sd(2,11,i.textWidth),sd(3,13,i.prefixWidth))),R("ngClass",i.classes),P(5),R("ngIf",i.label&&!i.labelDirective),P(3),nr("visibility",i.isCurrency&&i.hasValue?"visible":"hidden"),P(2),Ke(" ",i.fieldPrefix," "),P(5),R("ngIf",i.edit),P(1),R("ngIf",i.externalSuffix&&!i.hasContentSuffix),P(3),R("ngIf",!i.noMessage),P(3),Ke(" ",i.field.nativeElement.value," "))},dependencies:[Jn,Id,qn,Oo,Ri,Nw,Ls,Kj,Jj],styles:["ids-form-field{display:block}\n"],encapsulation:2}),st([TI(["hasValue","size","hasError","isButtonSuffix","center","hasPlaceHolder","isFocused","canShowVisibleFocus","isDisabled","isReadOnly","hasSuffix","outline","contrast","variant","hasLabel","noBorder","noMessage"]),at("design:type",Object),at("design:paramtypes",[])],n.prototype,"classes",null),st([Qn(),at("design:type",Object)],n.prototype,"noMessage",void 0),n})(),Lw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[Mu]}),n})();const Vw=(n,t)=>{let e;return null===n?`${t}`:(t&&"object"==typeof t&&(e="Object"),`${n}: ${e}`.slice(0,50))};let Xj=0,xg=(()=>{class n extends _r{get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e}controlSelect({value:e}){this.value=this.getOptionValue(e),this.value||this._renderer.setProperty(this.elementRef.nativeElement,"value",null)}controlChange(){this.formAcessorHandleChange()}controlFocus(){this.formAcessorHandleFocus()}controlBlur(){this.formAcessorHandleBlur()}constructor(e,i,o,r){super(e,i),this.ngControl=e,this.elementRef=i,this._renderer=o,this._formFieldService=r,this._compareWith=kI,this._platform=Qt,this.optionMap=new Map,this.idCounter=0,this.controlId="ids-native-select-"+Xj++}ngOnInit(){this._formFieldService.sendSuffixIcon("seta_baixo")}ngDoCheck(){this.ngControl&&this.ngControl.touched&&this.ngControl.invalid&&!this.active&&this.formAcessorHandleBlur()}ngAfterViewInit(){("IOS"===this._platform.os||"MacOS"===this._platform.os)&&!this.value&&this._renderer.setProperty(this.elementRef.nativeElement,"value",null)}writeValue(e){this.value=e;const i=this.getOptionId(e);null===i&&this._renderer.setProperty(this.elementRef.nativeElement,"selectedIndex",-1);const o=Vw(i,e)||null;this._renderer.setProperty(this.elementRef.nativeElement,"value",o)}registerOption(){return(this.idCounter++).toString()}getOptionId(e){for(const i of Array.from(this.optionMap.keys()))if(this.compareWith(this.optionMap.get(i),e))return i;return null}getOptionValue(e){const i=this.extractId(e);return this.optionMap.has(i)?this.optionMap.get(i):e}extractId(e){return e.split(":")[0]}}return n.\u0275fac=function(e){return new(e||n)(b(yn,10),b(oe),b(xn),b(bu))},n.\u0275dir=k({type:n,selectors:[["","idsNativeSelect",""]],hostVars:5,hostBindings:function(e,i){1&e&&he("change",function(r){return i.controlSelect(r.target)})("ngModelChange",function(){return i.controlChange()})("focus",function(){return i.controlFocus()})("blur",function(){return i.controlBlur()}),2&e&&(J("id",i.controlId)("disabled",i.disabled||null)("value",i.value),Oe("ids-input",!0))},inputs:{controlId:["id","controlId"],compareWith:"compareWith"},standalone:!0,features:[ee([{provide:_r,useExisting:Pe(()=>n)}]),G]}),n})(),Hw=(()=>{class n{constructor(e,i,o){this.element=e,this.renderer=i,this.select=o,this.select&&(this.id=this.select.registerOption())}set ngValue(e){null!==this.select&&(this.select.optionMap.set(this.id,e),this.setElementValue(Vw(this.id,e)),this.select.writeValue(this.select.value))}set value(e){this.setElementValue(e),this.select&&this.select.writeValue(this.select.value)}setElementValue(e){this.renderer.setProperty(this.element.nativeElement,"value",e)}}return n.\u0275fac=function(e){return new(e||n)(b(oe),b(xn),b(xg,9))},n.\u0275dir=k({type:n,selectors:[["","idsNativeOption",""]],inputs:{ngValue:"ngValue",value:"value"},standalone:!0}),n})(),Su=0,Qj=(()=>{class n extends _r{get arrayOption(){return this.options.toArray()}get enabledOptions(){return this.arrayOption.filter(e=>!e.disabled&&e.value)}get hightlightedDisabledOption(){return this.arrayOption.find(e=>e.highlighted)}get optionTextValue(){return null!=this.value&&void 0!==this.value&&""!==this.value&&this.options.find(e=>this.compareWith(e.value,this.value))?.optionLabel||""}get ariaActiveDescendant(){return this.hightlightedDisabledOption?this.hightlightedDisabledOption.id:this.panelOpen&&this.lastSelectedOption?this.lastSelectedOption.id:null}get eventObject(){return{source:this,value:this.value}}get listMaxHeight(){return 3*this.visibleOptions+1.5}get position(){return this._position}set position(e){this._position=e,this.positions=Sw(this.position)}set required(e){this._required=Ge(e)}get required(){return this._required}set noLabel(e){this._noLabel=Ge(e)}get noLabel(){return this._noLabel}set small(e){this._small=Ge(e)}get small(){return this._small}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e}controlChange(){this.formAcessorHandleChange()}constructor(e,i,o,r,s,a,l){super(s,a),this._appRef=e,this._cdr=i,this._la=o,this._platform=r,this.ngControl=s,this.elementRef=a,this._formFieldService=l,this._compareWith=kI,this._destroy=new re,this._clearSearchString=new re,this.containerPadding=24,this.panelId=`ids-select__panel-options-${Su}`,this.labelId=`ids-select-label-${Su}`,this.valueId=`ids-select-value-${Su}`,this.panelOpen=!1,this.panelPosition="bottom",this.searchString="",this.positions=[],this.controlId="ids-select-"+Su++,this.visibleOptions=5,this._position="auto",this.change=new le,this.focusOutput=new le,this.blur=new le,this.opened=new le,this.closed=new le}ngOnInit(){this._formFieldService.sendSuffixIcon("seta_baixo")}ngAfterContentInit(){this._initializeSelection(),this._listenToControlChanges(),this._listenToOptionsChanges(),this._listenToPositionChanges(),this.positions=Sw(this.position)}ngOnDestroy(){this._destroy.complete()}_announceValue(e){this._la.announce(e,"assertive",1e3)}_clearSelection(){this.lastSelectedOption&&(this.lastSelectedOption.deselect(),this.lastSelectedOption=null)}_filterAndSelectOption(e){const i=""===this.searchString&&"Space"===e.code;!/[a-zA-Z0-9-_ ]/.test(e.key)||e.key.length>1||i||(e.preventDefault(),this.searchString+=e.key,this.arrayOption.find(o=>yV(o.optionLabel??"").includes(this.searchString)&&!o.disabled)?.select(),0===this._clearSearchString.observers.length&&this._initializeSearchStringObserver(),this._clearSearchString.next())}_handleClosedKeydown(e){const i="Enter"===e.code||"NumpadEnter"===e.code||"Space"===e.code,o="ArrowUp"===e.code||"ArrowDown"===e.code,r=this.lastSelectedOption?this.enabledOptions.findIndex(s=>s.id===this.lastSelectedOption?.id):-1;if(i||e.altKey&&o)return e.preventDefault(),void this._open();if("Home"===e.code)return e.preventDefault(),this.enabledOptions[0].selectAndClose(),void this._announceValue(this.optionTextValue);if("End"===e.code)return e.preventDefault(),this.enabledOptions[this.enabledOptions.length-1].selectAndClose(),void this._announceValue(this.optionTextValue);if(("ArrowUp"===e.code||"ArrowLeft"===e.code)&&!e.altKey){e.preventDefault();const s=this.enabledOptions[r-1]||(-1===r||this.compareWith(this.enabledOptions[r].value,this.arrayOption[0].value)?null:this.arrayOption[0]);if(!s)return;return s.selectAndClose(),void this._announceValue(this.optionTextValue)}if(("ArrowDown"===e.code||"ArrowRight"===e.code)&&!e.altKey){e.preventDefault();const s=this.enabledOptions[r+1];if(!s)return;return s.selectAndClose(),void this._announceValue(this.optionTextValue)}}_handleOpenKeydown(e){const r=this._platform.SAFARI;if("Enter"===e.code||"NumpadEnter"===e.code||"Tab"===e.code||("ArrowUp"===e.code||"ArrowDown"===e.code)&&e.altKey||"Space"===e.code&&""===this.searchString){if(e.preventDefault(),this.hightlightedDisabledOption)return;return this.lastSelectedOption&&!this.compareWith(this.lastSelectedOption.value,this.value)?void this.lastSelectedOption.selectAndClose():void(this.panelOpen&&this.detach())}return"Escape"===e.code?(e.preventDefault(),void(this.panelOpen&&this.detach())):"Home"===e.code?(e.preventDefault(),this.enabledOptions[0].select(),void(r&&this._announceValue(this.optionTextValue))):"End"===e.code?(e.preventDefault(),this.enabledOptions[this.enabledOptions.length-1].select(),void(r&&this._announceValue(this.optionTextValue))):"ArrowUp"!==e.code||e.altKey?"ArrowDown"!==e.code||e.altKey?void this._filterAndSelectOption(e):(e.preventDefault(),this._setSelectedOptionByIndex(1),void(r&&this._announceValue(this.optionTextValue))):(e.preventDefault(),this._setSelectedOptionByIndex(-1),void(r&&this._announceValue(this.optionTextValue)))}_initializeSearchStringObserver(){this._clearSearchString.pipe(function QB(n,t=Tm){return tt((e,i)=>{let o=null,r=null,s=null;const a=()=>{if(o){o.unsubscribe(),o=null;const c=r;r=null,i.next(c)}};function l(){const c=s+n,d=t.now();if(d<c)return o=this.schedule(void 0,c-d),void i.add(o);a()}e.subscribe(qe(i,c=>{r=c,s=t.now(),o||(o=t.schedule(l,n),i.add(o))},()=>{a(),i.complete()},void 0,()=>{r=o=null}))})}(1e3),yt(this._destroy)).subscribe(()=>{this.searchString=""})}_initializeSelection(){const e=this.ngControl?this.ngControl.value:this.value,i=this.enabledOptions.find(o=>this.compareWith(o.value,e));i?setTimeout(()=>{i.select()}):e&&(this._setControlValue(null),this._clearSelection())}_open(){const e=this.elementRef.nativeElement.parentElement?.parentElement?.offsetWidth||this.elementRef.nativeElement.offsetWidth;this.panelOpen=!0,this.selectWidth=e,this.arrayOption.length>0&&!this.lastSelectedOption&&this.arrayOption[0].select(),this.value&&this.lastSelectedOption&&!this.compareWith(this.value,this.lastSelectedOption.value)&&(this.hightlightedDisabledOption&&this.hightlightedDisabledOption.unhighlight(),this.arrayOption.find(i=>this.compareWith(this.value,i.value))?.select()),this.opened.emit(this.eventObject)}_listenToControlChanges(){this.ngControl&&this.ngControl.valueChanges?.pipe(yt(this._destroy)).subscribe(e=>{if(e&&(!this.lastSelectedOption||!this.compareWith(this.lastSelectedOption.value,e)))return this._appRef.tick(),void this._initializeSelection();!this.value&&this.lastSelectedOption&&this._clearSelection()})}_listenToOptionsChanges(){this.options.changes.pipe(yt(this._destroy),Vm(this.options),Ya(()=>$i(...this.options.map(e=>e.change)))).subscribe(e=>{this._setSelectedOption(e)})}_listenToPositionChanges(){this.overlayDir.positionChange.pipe(yt(this._destroy)).subscribe(e=>{const i="bottom"===e.connectionPair.originY?"bottom":"top";i!==this.panelPosition&&(this.panelPosition=i,this._cdr.detectChanges())})}_setControlValue(e){this.value=e,this.nativeElement.value=e}_setSelectedOption(e){const i=e.option,o=e.close||!1;if(this.lastSelectedOption&&!this.compareWith(this.lastSelectedOption.value,i.value)&&this.lastSelectedOption.deselect(),this.lastSelectedOption=i,o)return this.compareWith(i.value,this.value)||(this._setControlValue(i.value),this.change.emit(this.eventObject)),!this.value&&this.lastSelectedOption&&this._clearSelection(),void(this.panelOpen&&this.detach());this.panel?this._setScrollPosition(i):this.overlayDir.positionChange.pipe(pl(1)).subscribe(()=>this._setScrollPosition(i))}_setScrollPosition(e){const o=e.element.nativeElement,r=o.offsetTop-this.panel.nativeElement.scrollTop;r/o.offsetHeight>=this.visibleOptions?o.scrollIntoView(!1):r<0&&o.scrollIntoView()}_setSelectedOptionByIndex(e=1){const i=this.lastSelectedOption||this.hightlightedDisabledOption?this.arrayOption.findIndex(r=>r.highlighted||r.selected):-1,o=this.arrayOption[i+e];if(o){if(o.disabled)return o.highlight(),this.lastSelectedOption?.deselect(),this._clearSelection(),void this._setScrollPosition(o);this.hightlightedDisabledOption&&this.hightlightedDisabledOption.unhighlight(),o.select()}}attach(){this.overlayDir.positionChange.pipe(pl(1)).subscribe(()=>{this.lastSelectedOption&&this._setScrollPosition(this.lastSelectedOption)})}detach(){this.panelOpen=!1,this.select.nativeElement.focus(),this.closed.emit(this.eventObject)}handleKeydown(e){if(!this.disabled){if(this.panelOpen)return void this._handleOpenKeydown(e);this._handleClosedKeydown(e)}}onBlur(){this.formAcessorHandleBlur(),this.blur.emit(this.eventObject)}onFocus(){this.formAcessorHandleFocus(),this.focusOutput.emit(this.eventObject)}toggle(){if(!this.disabled){if(this.panelOpen)return void this.detach();this._open()}}}return n.\u0275fac=function(e){return new(e||n)(b(or),b(to),b(mr),b(ki),b(yn,10),b(oe),b(bu))},n.\u0275cmp=me({type:n,selectors:[["ids-select"]],contentQueries:function(e,i,o){if(1&e&&He(o,Iw,5),2&e){let r;K(r=X())&&(i.options=r)}},viewQuery:function(e,i){if(1&e&&(Re(tj,7),Re(sw,7),Re(gH,5)),2&e){let o;K(o=X())&&(i.select=o.first),K(o=X())&&(i.overlayDir=o.first),K(o=X())&&(i.panel=o.first)}},hostVars:3,hostBindings:function(e,i){1&e&&he("ngModelChange",function(){return i.controlChange()}),2&e&&J("id",null)("aria-labelledby",null)("aria-label",null)},inputs:{controlId:["id","controlId"],visibleOptions:"visibleOptions",position:"position",required:"required",noLabel:"noLabel",small:"small",compareWith:"compareWith"},outputs:{change:"change",focusOutput:"focus",blur:"blur",opened:"opened",closed:"closed"},standalone:!0,features:[ee([{provide:_r,useExisting:Pe(()=>n)}]),G,Xe],ngContentSelectors:bH,decls:5,vars:22,consts:[["cdkOverlayOrigin","","role","combobox","aria-haspopup","listbox",1,"ids-input",3,"id","tabindex","click","keydown","focus","blur"],["select","","origin","cdkOverlayOrigin"],["cdkConnectedOverlay","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop","cdkConnectedOverlayPanelClass","ids-listbox-wrapper",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach"],["role","listbox","tabindex","-1",1,"ids-listbox",3,"id","keydown"],["panel",""]],template:function(e,i){if(1&e&&(Ve(yH),F(0,"div",0,1),he("click",function(){return i.toggle()})("keydown",function(r){return i.handleKeydown(r)})("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()}),de(3),B(),ce(4,nj,3,7,"ng-template",2),he("backdropClick",function(){return i.detach()})("attach",function(){return i.attach()})),2&e){const o=function mb(n){return $r(function Xx(){return se.lFrame.contextLView}(),Ue+n)}(2);Oe("ids-input--disabled",i.disabled)("ids-input--center",i.noLabel)("ids-input--small",i.small),R("id",i.controlId)("tabindex",i.disabled&&!i.value?"-1":"0"),J("aria-disabled",i.disabled||null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel)("aria-describedby",i.controlDescribedBy)("aria-labelledby",i.ariaLabel?null:i.ariaLabelledby||i.labelId)("aria-invalid",i.controlAriaInvalid)("aria-activedescendant",i.ariaActiveDescendant)("aria-controls",i.panelId)("aria-required",i.required),P(3),Ke(" ",i.optionTextValue,"\n"),P(1),R("cdkConnectedOverlayOrigin",o)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i.positions)("cdkConnectedOverlayWidth",i.selectWidth)}},dependencies:[G3,sw,Cl,Oo,Sg],encapsulation:2}),n})(),jw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[Qj,Sg]}),n})(),Yj=(()=>{class n{constructor(){this._formSelectionGroupLegendClass=!0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["legend"]],hostVars:2,hostBindings:function(e,i){2&e&&Oe("ids-form-selection-legend",i._formSelectionGroupLegendClass)},standalone:!0}),n})(),Pg=(()=>{class n{constructor(e){this._cdr=e,this._destroy=new re,this.COMPONENT_NOT_FOUND='IdsComponents: N\xe3o foi poss\xedvel encontrar a diretiva idsCheckbox ou idsRadioButton, nem o input type="checkbox" ou type="radio" dentro do ids-form-selection.',this.ariaHidden="IOS"!==Qt.os}ngOnInit(){this.input&&(this.input.contrast=this.contrast)}ngAfterContentInit(){if(!this.input)throw new Error(this.COMPONENT_NOT_FOUND)}ngAfterViewInit(){this.formSelectionLabel.nativeElement.getElementsByTagName("a").length&&(this.ariaHidden=null,this.formSelectionLabel.nativeElement.style.position="relative",this._cdr.detectChanges())}ngOnDestroy(){this._destroy.complete()}}return n.\u0275fac=function(e){return new(e||n)(b(to))},n.\u0275cmp=me({type:n,selectors:[["ids-form-selection"]],contentQueries:function(e,i,o){if(1&e&&(He(o,vr,7),He(o,Ls,4)),2&e){let r;K(r=X())&&(i.input=r.first),K(r=X())&&(i.status=r)}},viewQuery:function(e,i){if(1&e&&Re(cj,5),2&e){let o;K(o=X())&&(i.formSelectionLabel=o.first)}},inputs:{contrast:"contrast"},standalone:!0,features:[Xe],ngContentSelectors:uj,decls:10,vars:15,consts:[[1,"ids-form-selection"],[1,"ids-form-selection__input"],["inputRef",""],["aria-hidden","true"],[1,"ids-form-selection__label",3,"for","id"],["formSelectionLabel",""]],template:function(e,i){1&e&&(Ve(dj),F(0,"div",0)(1,"div",1,2)(3,"span"),De(4),Jt(5,"i",3),B()(),F(6,"label",4,5),De(8,1),B()(),De(9,2)),2&e&&(Oe("ids-form-selection--on-brand","onBrand"===i.contrast||"onBrand"===i.input.contrast)("ids-form-selection--disabled",i.input.disabled||i.input.elementRef.nativeElement.disabled)("ids-form-selection--invalid",i.input.ariaInvalid||"true"===i.input.elementRef.nativeElement.getAttribute("aria-invalid"))("ids-form-selection--rtl",i.input.rtlDirection),P(3),_s(i.input.rootClasses),P(2),_s(i.input.iconClasses),P(1),R("for",i.input.id)("id",i.input.id+"-label"),J("aria-hidden",i.ariaHidden))},dependencies:[Jn],encapsulation:2}),n})(),ez=0,zw=(()=>{class n{constructor(){this.id="ids-selection-group-"+ ++ez,this._hostId=null,this._inline=!1,this.legend=""}set inline(e){this._inline=Ge(e)}get inline(){return this._inline}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=me({type:n,selectors:[["ids-form-selection-group"]],contentQueries:function(e,i,o){if(1&e&&(He(o,Pg,4),He(o,Ls,4)),2&e){let r;K(r=X())&&(i.options=r),K(r=X())&&(i.status=r)}},hostVars:1,hostBindings:function(e,i){2&e&&J("id",i._hostId)},inputs:{id:"id",inline:"inline",legend:"legend"},standalone:!0,features:[Xe],ngContentSelectors:pj,decls:5,vars:4,consts:[[1,"ids-form-selection-group",3,"id"],[4,"ngIf"],[1,"ids-form-selection-group__options"]],template:function(e,i){1&e&&(Ve(fj),F(0,"fieldset",0),ce(1,hj,2,1,"legend",1),De(2),F(3,"div",2),De(4,1),B()()),2&e&&(Oe("ids-form-selection-group--inline",i.inline),R("id",i.id),P(1),R("ngIf",i.legend))},dependencies:[Jn,qn],styles:[".ids-form-selection-group[_ngcontent-%COMP%]{display:grid;grid-gap:var(--ids_size_general_8x);gap:var(--ids_size_general_8x)}.ids-form-selection-group__options[_ngcontent-%COMP%]{display:grid}.ids-form-selection-group--inline[_ngcontent-%COMP%]   .ids-form-selection-group__options[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:0 var(--ids_size_general_24x);width:100%}"]}),n})(),tz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[zw]}),n})(),nz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[Pg]}),n})(),Eg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({}),n})(),iz=0,$w=(()=>{class n extends vr{constructor(){super(...arguments),this._id="ids-radio-button-"+ ++iz,this.inputClasses="ids-radio-button__input",this.type="radio"}get rootClasses(){return{"ids-radio-button":!0,"ids-radio-button--invalid":this.invalid}}get iconClasses(){return"ids-radio-button__icon ids-icon ids-icon--medium"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Se(n)))(i||n)}}(),n.\u0275dir=k({type:n,selectors:[["","idsRadioButton",""]],hostVars:5,hostBindings:function(e,i){2&e&&(ed("type",i.type),J("type","radio")("class",i.inputClasses),Oe("ids-radio-button__input",!0))},standalone:!0,features:[ee([{provide:vr,useExisting:n}]),G]}),n})(),hz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=me({type:n,selectors:[["ids-radio-button"]],standalone:!0,features:[Xe],ngContentSelectors:Lt,decls:3,vars:0,consts:[[1,"ids-radio-button"],["aria-hidden","true",1,"ids-radio-button__icon","ids-icon"]],template:function(e,i){1&e&&(Ve(),F(0,"span",0),De(1),Jt(2,"span",1),B())},encapsulation:2}),n})(),fz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[hz]}),n})();new L("SegmentTypeDefault");new L("SegmentTypeConfig"),new L("ElementToApplySegmentDefault"),new L("ElementToApplySegmentConfig");new L("SegmentColorModeConfig"),new Ko,new Ko;const Sz=["titleRef"];function Iz(n,t){if(1&n){const e=En();F(0,"div",1)(1,"div",2)(2,"h4",3,4),de(4),B(),F(5,"button",5),he("click",function(){return Ut(e),Gt(V().onClose())}),de(6),B()()()}if(2&n){const e=V();P(4),_n(e.title),P(2),Ke(" ",e.textButton," ")}}let Qw=(()=>{const t=class{constructor(){this.title="Seus dados foram enviados com sucesso.",this.textButton="Ok, entendi",this.showChange=new le}onClose(){this.showChange.emit({show:!1,type:"success"})}onFocus(){setTimeout(()=>{this.titleRef.nativeElement.focus()})}};let n=t;return t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=me({type:t,selectors:[["app-success"]],viewQuery:function(o,r){if(1&o&&Re(Sz,5),2&o){let s;K(s=X())&&(r.titleRef=s.first)}},inputs:{show:"show",title:"title",textButton:"textButton"},outputs:{showChange:"showChange"},decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"box"],["tabindex","-1",1,"ids-title","-small","-bold","title"],["titleRef",""],["idsMainButton","",3,"click"]],template:function(o,r){1&o&&ce(0,Iz,7,2,"div",0),2&o&&R("ngIf",r.show)},dependencies:[qn,Dg],styles:['@font-face{font-family:ItauDisplay-Light;font-style:normal;font-weight:300;src:url(itaudisplay_lt-webfont.eot),url(itaudisplay_lt-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_lt-webfont.woff2) format("woff2"),url(itaudisplay_lt-webfont.woff) format("woff"),url(itaudisplay_lt-webfont.ttf) format("truetype"),url(itaudisplay_lt-webfont.svg#itau_displaylight) format("svg")}@font-face{font-family:ItauDisplay-Regular;font-style:normal;font-weight:400;src:url(itaudisplay_rg-webfont.eot),url(itaudisplay_rg-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_rg-webfont.woff2) format("woff2"),url(itaudisplay_rg-webfont.woff) format("woff"),url(itaudisplay_rg-webfont.ttf) format("truetype"),url(itaudisplay_rg-webfont.svg#itau_displayregular) format("svg")}@font-face{font-family:ItauDisplay-Bold;font-style:normal;font-weight:700;src:url(itaudisplay_bd-webfont.eot),url(itaudisplay_bd-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_bd-webfont.woff2) format("woff2"),url(itaudisplay_bd-webfont.woff) format("woff"),url(itaudisplay_bd-webfont.ttf) format("truetype"),url(itaudisplay_bd-webfont.svg#itau_displaybold) format("svg")}@font-face{font-family:ItauDisplay-XBold;font-style:normal;font-weight:800;src:url(itaudisplay_xbd-webfont.eot),url(itaudisplay_xbd-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_xbd-webfont.woff2) format("woff2"),url(itaudisplay_xbd-webfont.woff) format("woff"),url(itaudisplay_xbd-webfont.ttf) format("truetype"),url(itaudisplay_xbd-webfont.svg#itau_displayxbold) format("svg")}@font-face{font-family:itau-font;font-style:normal;font-weight:900;src:url(itaudisplay_blk-webfont.eot),url(itaudisplay_blk-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_blk-webfont.woff2) format("woff2"),url(itaudisplay_blk-webfont.woff) format("woff"),url(itaudisplay_blk-webfont.ttf) format("truetype"),url(itaudisplay_blk-webfont.svg#itau_displayblack) format("svg")}@font-face{font-family:ItauText-Light;font-style:normal;font-weight:300;src:url(ItauText_Lt.eot),url(ItauText_Lt.eot?#iefix) format("embedded-opentype"),url(ItauText_Lt.woff2) format("woff2"),url(ItauText_Lt.woff) format("woff"),url(ItauText_Lt.ttf) format("truetype")}@font-face{font-family:ItauText-Regular;font-style:normal;font-weight:500;src:url(ItauText_Rg.eot),url(ItauText_Rg.eot?#iefix) format("embedded-opentype"),url(ItauText_Rg.woff2) format("woff2"),url(ItauText_Rg.woff) format("woff"),url(ItauText_Rg.ttf) format("truetype")}@font-face{font-family:ItauText-Bold;font-style:normal;font-weight:800;src:url(ItauText_Bd.eot),url(ItauText_Bd.eot?#iefix) format("embedded-opentype"),url(ItauText_Bd.woff2) format("woff2"),url(ItauText_Bd.woff) format("woff"),url(ItauText_Bd.ttf) format("truetype")}@font-face{font-family:ItauText-XBold;font-style:normal;font-weight:900;src:url(ItauText_XBd.eot),url(ItauText_XBd.eot?#iefix) format("embedded-opentype"),url(ItauText_XBd.woff2) format("woff2"),url(ItauText_XBd.woff) format("woff"),url(ItauText_XBd.ttf) format("truetype")}[_ngcontent-%COMP%]:root{--faas-primary-color: #ec7000;--faas-secondary-color: #dd6100;--faas-error-color: #781b8e;--faas-focus: #56504c;--faas-font-light: ItauDisplay-Light, sans-serif;--faas-font-regular: ItauText-Regular, sans-serif;--faas-font-bold: ItauText-Bold, sans-serif;--faas-font-xbold: ItauText-XBold, sans-serif}*[_ngcontent-%COMP%]{box-sizing:border-box;font:var(--ids_textStyle_f02_s16_h24_wrg, --faas-font-regular, "ItauText-Regular", sans-serif)}body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{margin:0;padding:0;scroll-behavior:smooth}fieldset[_ngcontent-%COMP%]{border:0;padding:0}.title[_ngcontent-%COMP%]{margin:0;max-width:493px}@media screen and (max-width: 768px){.title[_ngcontent-%COMP%]{font-size:24px}}.text-interface[_ngcontent-%COMP%]{font-family:var(--faas-font-regular, "ItauText-Regular", sans-serif);font-style:normal;font-weight:400;font-size:16px;line-height:150%;color:#595959}.btn-primary[_ngcontent-%COMP%]{cursor:pointer;font-family:var(--faas-font-bold, "ItauText-Bold", sans-serif);background-color:var(--faas-primary-color, #ec7000);border-radius:4px;border:1px solid var(--faas-secondary-color, #dd6100);height:48px;font-weight:700;color:#fff;font-size:20px;line-height:32px;width:398px}@media screen and (max-width: 768px){.btn-primary[_ngcontent-%COMP%]{width:259.5px}}@media screen and (max-width: 480px){.btn-primary[_ngcontent-%COMP%]{width:100%;font-size:16px}}@media screen and (max-width: 320px){.btn-primary[_ngcontent-%COMP%]{width:288px}}.btn-danger[_ngcontent-%COMP%]{cursor:pointer;background-color:#fff;border-radius:4px;border:1px solid #106eb0;height:30px;width:120px;font-family:var(--faas-font-bold, "ItauText-Bold", sans-serif);color:#106eb0;font-size:14px;line-height:24px}.invalid-feedback[_ngcontent-%COMP%]{color:var(--faas-error-color, #781b8e);font-size:12px;line-height:18px;margin:0}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=date][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=date][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}.uniclass[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #ec7000);border:1px solid var(--faas-secondary-color, #D9640B)}.family-office[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, "");border:1px solid var(--faas-secondary-color, "")}.cartoes[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .varejo[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .private-bank[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .empresas[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #ec7000);border:1px solid var(--faas-secondary-color, #dd6100)}.personnalite-rebranding[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #0d1733);border:1px solid var(--faas-secondary-color, #122047)}.container[_ngcontent-%COMP%]{background-color:var(--ids_color_bg_base);position:absolute;width:100%;height:96%;left:0;top:15px;display:flex;align-items:center;justify-content:center;flex-direction:column}@media screen and (max-width: 480px){.container[_ngcontent-%COMP%]{position:fixed;height:100%;top:0}}.box[_ngcontent-%COMP%]{width:276px;display:flex;align-items:center;justify-content:center;flex-direction:column}.box[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:208px}.title[_ngcontent-%COMP%]{text-align:center;margin-bottom:20px}']}),n})(),Zw=(()=>{const t=class{constructor(i){this.handlers=i}getSdk(i){return kd(function*(){const o=document.createElement("script");return new Promise((r,s)=>{o.src=i,o.async=!0,o.onload=()=>r(window.SDKAnalytics),o.onerror=s,document.head.appendChild(o)})})()}initSdk(){var i=this;return kd(function*(){const o=i.getGtm();return i.SDKAnalytics=i.getSdk("https://sdk-analytics-web.cloud.itau.com.br/index.js").then(r=>{i.ItauDigitalAnalytics=r({gtm:o,dual_tagging:!1})}),i.SDKAnalytics})()}getGtm(){return window._containerGTM||"GTM-5NGCP8C"}formatPageName(){let i=document.location.pathname;return i.endsWith("/")&&(i=i.slice(0,-1)),i}screenView(){let i=this.formatPageName();this.ItauDigitalAnalytics.track({analytics:{event_name:"screen_view",parameters:{custom_path:`${this.handlers.skewerCase(i,!1)}`,implementation_team:"sinl:martech"}}})}trackEvent(i){const{eventName:o,action:r,text:s,type:a}=i,l=a?`${a}:`:"",c=this.handlers.skewerCase(r,!1),d=this.handlers.skewerCase(s,!1);let u=this.formatPageName();this.ItauDigitalAnalytics.track({analytics:{event_name:`${o}`,parameters:{detail:`${l}${c}:${d}`,custom_path:`${this.handlers.skewerCase(u,!1)}`,implementation_team:"sinl:martech"}}})}};let n=t;return t.\u0275fac=function(o){return new(o||t)(w(dI))},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"}),n})();const wz=["titleRef"],Dz=function(n){return{container:n}};function xz(n,t){if(1&n){const e=En();F(0,"div",1)(1,"div",2)(2,"div",3),xh(),F(3,"svg",4),Jt(4,"path",5),B(),Ph(),F(5,"h4",6,7),de(7),B(),F(8,"p",8),de(9),B(),F(10,"button",9),he("click",function(){return Ut(e),Gt(V().onClose())}),de(11),B()()()()}if(2&n){const e=V();R("ngClass",ip(4,Dz,!e.isMultiStep)),P(7),_n(e.title),P(2),_n(e.description),P(2),Ke(" ",e.textButton," ")}}let Yw=(()=>{const t=class{constructor(i){this.analyticsService=i,this.title="Algo deu errado",this.description="N\xe3o foi poss\xedvel carregar as informa\xe7\xf5es.",this.textButton="Ok, entendi",this.campaignName="",this.isMultiStep=!1,this.showChange=new le}onClose(){this.showChange.emit({show:!1,type:"error"}),this.analyticsService.trackEvent({eventName:"click",action:`Faas:${this.campaignName}`,type:"btn",text:`${this.textButton}`})}onFocus(){setTimeout(()=>{this.titleRef.nativeElement.focus()})}};let n=t;return t.\u0275fac=function(o){return new(o||t)(b(Zw))},t.\u0275cmp=me({type:t,selectors:[["app-error"]],viewQuery:function(o,r){if(1&o&&Re(wz,5),2&o){let s;K(s=X())&&(r.titleRef=s.first)}},inputs:{show:"show",title:"title",description:"description",textButton:"textButton",campaignName:"campaignName",isMultiStep:"isMultiStep"},outputs:{showChange:"showChange"},decls:1,vars:1,consts:[[3,"ngClass",4,"ngIf"],[3,"ngClass"],[1,"box"],[1,"container-error"],["width","21","height","20","viewBox","0 0 21 20","fill","none","xmlns","http://www.w3.org/2000/svg","aria-hidden","true",1,"error-alert-svg-icon"],["d","M10.5 1.97729C10.5781 1.97729 10.7031 2.00854 10.875 2.07104C11.0625 2.11792 11.2188 2.25073 11.3438 2.46948L19.2656 16.321C19.3438 16.4617 19.3984 16.6101 19.4297 16.7664C19.4766 16.9226 19.5 17.0789 19.5 17.2351C19.5 17.3914 19.4766 17.5398 19.4297 17.6804C19.3984 17.821 19.3438 17.9617 19.2656 18.1023C19.1875 18.2273 19.0938 18.3445 18.9844 18.4539C18.875 18.5632 18.7578 18.657 18.6328 18.7351C18.4922 18.8132 18.3438 18.8757 18.1875 18.9226C18.0469 18.9539 17.8906 18.9695 17.7188 18.9695H3.28125C3.10938 18.9695 2.94531 18.9539 2.78906 18.9226C2.64844 18.8757 2.50781 18.8132 2.36719 18.7351C2.24219 18.657 2.125 18.5632 2.01562 18.4539C1.90625 18.3445 1.8125 18.2273 1.73438 18.1023C1.65625 17.9617 1.59375 17.821 1.54688 17.6804C1.51562 17.5398 1.5 17.3914 1.5 17.2351C1.5 17.0789 1.51562 16.9226 1.54688 16.7664C1.59375 16.6101 1.65625 16.4617 1.73438 16.321L9.65625 2.46948C9.78125 2.25073 9.92969 2.11792 10.1016 2.07104C10.2891 2.00854 10.4219 1.97729 10.5 1.97729ZM10.5 0.969482C10.1719 0.969482 9.85156 1.05542 9.53906 1.22729C9.22656 1.38354 8.97656 1.63354 8.78906 1.97729L0.867188 15.8289C0.335938 16.7507 0.335938 17.6726 0.867188 18.5945C1.41406 19.5164 2.21875 19.9773 3.28125 19.9773H17.7188C18.7812 19.9773 19.5781 19.5164 20.1094 18.5945C20.6562 17.6726 20.6641 16.7507 20.1328 15.8289L12.2109 1.97729C12.0234 1.63354 11.7734 1.38354 11.4609 1.22729C11.1484 1.05542 10.8281 0.969482 10.5 0.969482ZM10.0078 7.97729H10.9922V13.9773H10.0078V7.97729ZM11.25 15.7351C11.25 15.9382 11.1719 16.1179 11.0156 16.2742C10.875 16.4148 10.7031 16.4851 10.5 16.4851C10.2969 16.4851 10.1172 16.4148 9.96094 16.2742C9.82031 16.1179 9.75 15.9382 9.75 15.7351C9.75 15.5164 9.82031 15.3367 9.96094 15.196C10.1172 15.0554 10.2969 14.9851 10.5 14.9851C10.7031 14.9851 10.875 15.0554 11.0156 15.196C11.1719 15.3367 11.25 15.5164 11.25 15.7351Z","fill","#B71C1C",2,"fill","var(--ids_color_feedback_error)"],["tabindex","-1",1,"title","ids-title","-small"],["titleRef",""],[1,"description","ids-body-text"],["idsContextualButton","",1,"btn-danger",3,"click"]],template:function(o,r){1&o&&ce(0,xz,12,6,"div",0),2&o&&R("ngIf",r.show)},dependencies:[Id,qn,xw],styles:['@font-face{font-family:ItauDisplay-Light;font-style:normal;font-weight:300;src:url(itaudisplay_lt-webfont.eot),url(itaudisplay_lt-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_lt-webfont.woff2) format("woff2"),url(itaudisplay_lt-webfont.woff) format("woff"),url(itaudisplay_lt-webfont.ttf) format("truetype"),url(itaudisplay_lt-webfont.svg#itau_displaylight) format("svg")}@font-face{font-family:ItauDisplay-Regular;font-style:normal;font-weight:400;src:url(itaudisplay_rg-webfont.eot),url(itaudisplay_rg-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_rg-webfont.woff2) format("woff2"),url(itaudisplay_rg-webfont.woff) format("woff"),url(itaudisplay_rg-webfont.ttf) format("truetype"),url(itaudisplay_rg-webfont.svg#itau_displayregular) format("svg")}@font-face{font-family:ItauDisplay-Bold;font-style:normal;font-weight:700;src:url(itaudisplay_bd-webfont.eot),url(itaudisplay_bd-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_bd-webfont.woff2) format("woff2"),url(itaudisplay_bd-webfont.woff) format("woff"),url(itaudisplay_bd-webfont.ttf) format("truetype"),url(itaudisplay_bd-webfont.svg#itau_displaybold) format("svg")}@font-face{font-family:ItauDisplay-XBold;font-style:normal;font-weight:800;src:url(itaudisplay_xbd-webfont.eot),url(itaudisplay_xbd-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_xbd-webfont.woff2) format("woff2"),url(itaudisplay_xbd-webfont.woff) format("woff"),url(itaudisplay_xbd-webfont.ttf) format("truetype"),url(itaudisplay_xbd-webfont.svg#itau_displayxbold) format("svg")}@font-face{font-family:itau-font;font-style:normal;font-weight:900;src:url(itaudisplay_blk-webfont.eot),url(itaudisplay_blk-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_blk-webfont.woff2) format("woff2"),url(itaudisplay_blk-webfont.woff) format("woff"),url(itaudisplay_blk-webfont.ttf) format("truetype"),url(itaudisplay_blk-webfont.svg#itau_displayblack) format("svg")}@font-face{font-family:ItauText-Light;font-style:normal;font-weight:300;src:url(ItauText_Lt.eot),url(ItauText_Lt.eot?#iefix) format("embedded-opentype"),url(ItauText_Lt.woff2) format("woff2"),url(ItauText_Lt.woff) format("woff"),url(ItauText_Lt.ttf) format("truetype")}@font-face{font-family:ItauText-Regular;font-style:normal;font-weight:500;src:url(ItauText_Rg.eot),url(ItauText_Rg.eot?#iefix) format("embedded-opentype"),url(ItauText_Rg.woff2) format("woff2"),url(ItauText_Rg.woff) format("woff"),url(ItauText_Rg.ttf) format("truetype")}@font-face{font-family:ItauText-Bold;font-style:normal;font-weight:800;src:url(ItauText_Bd.eot),url(ItauText_Bd.eot?#iefix) format("embedded-opentype"),url(ItauText_Bd.woff2) format("woff2"),url(ItauText_Bd.woff) format("woff"),url(ItauText_Bd.ttf) format("truetype")}@font-face{font-family:ItauText-XBold;font-style:normal;font-weight:900;src:url(ItauText_XBd.eot),url(ItauText_XBd.eot?#iefix) format("embedded-opentype"),url(ItauText_XBd.woff2) format("woff2"),url(ItauText_XBd.woff) format("woff"),url(ItauText_XBd.ttf) format("truetype")}[_ngcontent-%COMP%]:root{--faas-primary-color: #ec7000;--faas-secondary-color: #dd6100;--faas-error-color: #781b8e;--faas-focus: #56504c;--faas-font-light: ItauDisplay-Light, sans-serif;--faas-font-regular: ItauText-Regular, sans-serif;--faas-font-bold: ItauText-Bold, sans-serif;--faas-font-xbold: ItauText-XBold, sans-serif}*[_ngcontent-%COMP%]{box-sizing:border-box;font:var(--ids_textStyle_f02_s16_h24_wrg, --faas-font-regular, "ItauText-Regular", sans-serif)}body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{margin:0;padding:0;scroll-behavior:smooth}fieldset[_ngcontent-%COMP%]{border:0;padding:0}.title[_ngcontent-%COMP%]{margin:0;max-width:493px}@media screen and (max-width: 768px){.title[_ngcontent-%COMP%]{font-size:24px}}.text-interface[_ngcontent-%COMP%]{font-family:var(--faas-font-regular, "ItauText-Regular", sans-serif);font-style:normal;font-weight:400;font-size:16px;line-height:150%;color:#595959}.btn-primary[_ngcontent-%COMP%]{cursor:pointer;font-family:var(--faas-font-bold, "ItauText-Bold", sans-serif);background-color:var(--faas-primary-color, #ec7000);border-radius:4px;border:1px solid var(--faas-secondary-color, #dd6100);height:48px;font-weight:700;color:#fff;font-size:20px;line-height:32px;width:398px}@media screen and (max-width: 768px){.btn-primary[_ngcontent-%COMP%]{width:259.5px}}@media screen and (max-width: 480px){.btn-primary[_ngcontent-%COMP%]{width:100%;font-size:16px}}@media screen and (max-width: 320px){.btn-primary[_ngcontent-%COMP%]{width:288px}}.btn-danger[_ngcontent-%COMP%]{cursor:pointer;background-color:#fff;border-radius:4px;border:1px solid #106eb0;height:30px;width:120px;font-family:var(--faas-font-bold, "ItauText-Bold", sans-serif);color:#106eb0;font-size:14px;line-height:24px}.invalid-feedback[_ngcontent-%COMP%]{color:var(--faas-error-color, #781b8e);font-size:12px;line-height:18px;margin:0}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=date][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=date][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}.uniclass[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #ec7000);border:1px solid var(--faas-secondary-color, #D9640B)}.family-office[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, "");border:1px solid var(--faas-secondary-color, "")}.cartoes[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .varejo[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .private-bank[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .empresas[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #ec7000);border:1px solid var(--faas-secondary-color, #dd6100)}.personnalite-rebranding[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #0d1733);border:1px solid var(--faas-secondary-color, #122047)}.container[_ngcontent-%COMP%]{background-color:var(--ids_color_bg_base);position:absolute;width:100%;height:96%;left:0;top:15px;display:flex;align-items:center;justify-content:center;flex-direction:column}@media screen and (max-width: 480px){.container[_ngcontent-%COMP%]{position:fixed;height:100%;top:0}}.box[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;width:240px}.box[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:center;flex-direction:column}.box[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:14px;line-height:24px}.box[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .box[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:32px;height:32px}.description[_ngcontent-%COMP%]{margin-bottom:30px}.title[_ngcontent-%COMP%]{margin:16px 0 0}.title[_ngcontent-%COMP%]:focus-visible{outline:none}']}),n})();function Iu(n){return Iu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iu(n)}function wu(n,t){if(t.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+t.length+" present")}function Og(n){wu(1,arguments);var t=Object.prototype.toString.call(n);return n instanceof Date||"object"===Iu(n)&&"[object Date]"===t?new Date(n.getTime()):"number"==typeof n||"[object Number]"===t?new Date(n):(("string"==typeof n||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function To(n){return n.replace(/\D/g,"")}function tD(n){return n.charCodeAt(0)-48}function Ci(n){return String(n).replace(/[^\d]/g,"")}var rD=8;var Ze={AC:{code:"2",areaCodes:[68],ieLength:13,name:"Acre"},AL:{code:"4",areaCodes:[82],ieLength:9,name:"Alagoas"},AP:{code:"2",areaCodes:[96],ieLength:9,name:"Amap\xe1"},AM:{code:"2",areaCodes:[92,97],ieLength:9,name:"Amazonas"},BA:{code:"5",areaCodes:[71,73,74,75,77],ieLength:[8,9],name:"Bahia"},CE:{code:"3",areaCodes:[85,88],ieLength:9,name:"Cear\xe1"},DF:{code:"1",areaCodes:[61],ieLength:13,name:"Distrito Federal"},ES:{code:"7",areaCodes:[27,28],ieLength:9,name:"Esp\xedrito Santo"},GO:{code:"1",areaCodes:[62,64],ieLength:9,name:"Goi\xe1s"},MA:{code:"3",areaCodes:[98,99],ieLength:9,name:"Maranh\xe3o"},MG:{code:"6",areaCodes:[31,32,33,34,35,37,38],ieLength:13,name:"Minas Gerais"},MT:{code:"1",areaCodes:[65,66],ieLength:11,name:"Mato Grosso"},MS:{code:"1",areaCodes:[67],ieLength:9,name:"Mato Grosso do Sul"},PA:{code:"2",areaCodes:[91,93,94],ieLength:9,name:"Par\xe1"},PB:{code:"4",areaCodes:[83],ieLength:9,name:"Para\xedba"},PE:{code:"4",areaCodes:[81,87],ieLength:9,name:"Pernambuco"},PI:{code:"3",areaCodes:[86,89],ieLength:9,name:"Piau\xed"},PR:{code:"9",areaCodes:[41,42,43,44,45,46],ieLength:10,name:"Paran\xe1"},RJ:{code:"7",areaCodes:[21,22,24],ieLength:8,name:"Rio de Janeiro"},RN:{code:"4",areaCodes:[84],ieLength:[9,10],name:"Rio Grande do Norte"},RO:{code:"2",areaCodes:[69],ieLength:14,name:"Rond\xf4nia"},RS:{code:"0",areaCodes:[51,53,54,55],ieLength:10,name:"Rio Grande do Sul"},RR:{code:"2",areaCodes:[95],ieLength:9,name:"Roraima"},SC:{code:"9",areaCodes:[47,48,49],ieLength:9,name:"Santa Catarina"},SE:{code:"5",areaCodes:[79],ieLength:9,name:"Sergipe"},SP:{code:"8",areaCodes:[11,12,13,14,15,16,17,18,19],ieLength:12,name:"S\xe3o Paulo"},TO:{code:"1",areaCodes:[63],ieLength:[9,11],name:"Tocantins"}},r5=Object.keys(Ze).reduce(function(n,t){return n.concat(Ze[t].areaCodes)},[]),uD=10,hD=11,s5=[6,7,8,9],a5=[2,3,4,5];function d5(n){var t=function Vg(n){return{isValidDigits:!!n&&"string"==typeof n,digits:Ci(n)}}(n),i=t.digits;return!!t.isValidDigits&&function l5(n){return function pD(n){return n.length>=uD&&n.length<hD}(n)||function fD(n){return n.length===hD}(n)}(i)&&function c5(n){return n.length===uD?function gD(n){return a5.includes(Number(n.charAt(2)))}(n):function mD(n){return s5.includes(Number(n.charAt(2)))}(n)}(i)&&function Lg(n){return r5.includes(Number(n.substr(0,2)))}(i)}class br{static isValidDate(){return({value:t})=>{let i=!1;if(/^([0-2]\d|(3)[0-1])(\/)(((0)\d)|((1)[0-2]))(\/)\d{4}$/.test(t)){const o=new Date,r=Number(t.split("/")[0]),s=Number(t.split("/")[1]),a=Number(t.split("/")[2]);if(Math.abs(a-o.getFullYear())<=100&&r>=1&&r<=31&&s>=1&&s<=12&&(i=!0),i){const u=this.stringToDate(t);i=function Ez(n){if(wu(1,arguments),!function Pz(n){return wu(1,arguments),n instanceof Date||"object"===Iu(n)&&"[object Date]"===Object.prototype.toString.call(n)}(n)&&"number"!=typeof n)return!1;var t=Og(n);return!isNaN(Number(t))}(u),i&&function Oz(n,t){wu(2,arguments);var e=Og(n),i=Og(t);return e.getTime()>i.getTime()}(u,o)&&(i=!1)}}return i?null:{invalidDate:!0}}}static isValidCpfCnpj(){return({value:t})=>function eD(n){const t=To(n);if(11!==t.length||/^(\d)\1{10}$/.test(t))return!1;let e=0;for(let s=0;s<9;s++)e+=parseInt(t.charAt(s))*(10-s);let i=e%11;const o=i<2?0:11-i;if(parseInt(t.charAt(9))!==o)return!1;e=0;for(let s=0;s<10;s++)e+=parseInt(t.charAt(s))*(11-s);i=e%11;const r=i<2?0:11-i;return parseInt(t.charAt(10))===r}(t)||function Tg(n){const t=/[a-zA-Z]/.test(n),e=t?function Pl(n){return n.replace(/[^a-zA-Z0-9]/g,"")}(n):To(n);if(14!==e.length||!t&&/^(\d)\1{13}$/.test(e)||t&&!/\d{2}$/.test(e))return!1;let i=e.length-2,o=e.substring(0,i);const r=e.substring(i);let s=0,a=2;for(let d=i-1;d>=0;d--)s+=(t?tD(o.charAt(d)):parseInt(o.charAt(d)))*a,a=9===a?2:a+1;let l=s%11,c=l<2?0:11-l;if(c!==parseInt(r.charAt(0)))return!1;i+=1,o=e.substring(0,i),s=0,a=2;for(let d=i-1;d>=0;d--)s+=(t?tD(o.charAt(d)):parseInt(o.charAt(d)))*a,a=9===a?2:a+1;return l=s%11,c=l<2?0:11-l,c===parseInt(r.charAt(1))}(t)?null:{invalidCpfCnpj:!0}}static requiredMinCheckbox(t=1){return i=>{if(i instanceof Jd)return i.controls.map(r=>r.value).reduce((r,s)=>s?r+s:r,0)>=t?null:{required:!0};throw new Error("formArray is not an instance of FormArray")}}static isValidPhone(){return({value:t})=>d5(t)?null:{invalidPhone:!0}}static isValidPostalCode(){return({value:t})=>function qz(n){return!(!n||"string"!=typeof n)&&function Wz(n){return n.length===rD}(Ci(n))}(t)?null:{invalidPostalCode:!0}}static stringToDate(t){const[e,i,o]=t.split("/").map(r=>Number(r));return new Date(Date.UTC(o,i-1,e))}static currencyValidator(t,e,i){return o=>{const r=o.value;if("string"==typeof r){if("BRL"===i){const s=r.replace(/[^0-9,]/g,"").split(",")[0];return parseInt(s)<t||parseInt(s)>e?{invalidCurrency:!0}:null}{const s=r.replace(/[^0-9.]/g,"").split(".")[0];return parseInt(s)<t||parseInt(s)>e?{invalidCurrency:!0}:null}}return null}}}const yD={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let xu;const _5=new Uint8Array(16);function v5(){if(!xu&&(xu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!xu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return xu(_5)}const Vt=[];for(let n=0;n<256;++n)Vt.push((n+256).toString(16).slice(1));const Cr=function y5(n,t,e){if(yD.randomUUID&&!t&&!n)return yD.randomUUID();const i=(n=n||{}).random||(n.rng||v5)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){e=e||0;for(let o=0;o<16;++o)t[e+o]=i[o];return t}return function bD(n,t=0){return(Vt[n[t+0]]+Vt[n[t+1]]+Vt[n[t+2]]+Vt[n[t+3]]+"-"+Vt[n[t+4]]+Vt[n[t+5]]+"-"+Vt[n[t+6]]+Vt[n[t+7]]+"-"+Vt[n[t+8]]+Vt[n[t+9]]+"-"+Vt[n[t+10]]+Vt[n[t+11]]+Vt[n[t+12]]+Vt[n[t+13]]+Vt[n[t+14]]+Vt[n[t+15]]).toLowerCase()}(i)},b5=[{label:"AC",value:"AC"},{label:"AL",value:"AL"},{label:"AP",value:"AP"},{label:"AM",value:"AM"},{label:"BA",value:"BA"},{label:"CE",value:"CE"},{label:"DF",value:"DF"},{label:"ES",value:"ES"},{label:"GO",value:"GO"},{label:"MA",value:"MA"},{label:"MS",value:"MS"},{label:"MT",value:"MT"},{label:"MG",value:"MG"},{label:"PA",value:"PA"},{label:"PB",value:"PB"},{label:"PR",value:"PR"},{label:"PE",value:"PE"},{label:"PI",value:"PI"},{label:"RJ",value:"RJ"},{label:"RN",value:"RN"},{label:"RS",value:"RS"},{label:"RO",value:"RO"},{label:"RR",value:"RR"},{label:"SC",value:"SC"},{label:"SP",value:"SP"},{label:"SE",value:"SE"},{label:"TO",value:"TO"}];var js=(()=>{return(n=js||(js={})).BRL="R$",n.USD="$",n.EUR="\u20ac",js;var n})(),ve=(()=>{return(n=ve||(ve={})).stringMax150="string_0_150",n.stringNoLimit="string_mais_150",n.numberMax150="number_0_150",n.email="email",n.cpfCnpj="cpf_cnpj",n.telephone="telephone",n.date="date_field",n.checkbox="checkbox",n.required="required",n.postalcode="postalcode",n.image="imagem",n.moeda="moeda",n.agencia="agencia",n.conta="conta",ve;var n})();const C5=["(",/[1-9]/,/\d/,")"," ",/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d$/],M5=["(",/[1-9]/,/\d/,")"," ",/\d/,/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d$/];let CD=(()=>{const t=class{constructor(i){this.fb=i,this.maskConta=o=>o.length<=8?[/\d/,/\d/,/\d/,/\d/,/\d/,"-",/\d/]:[],this.maskAgencia=o=>o.length<=4?[/\d/,/\d/,/\d/,/\d/]:[]}getValidator(i){const o=[];return"complemento"!==i.fieldName&&o.push(On.required),i.validator===ve.stringMax150&&o.push(On.maxLength(150)),i.validator===ve.numberMax150&&o.push(On.maxLength(150),On.pattern("^[0-9]*$")),i.validator===ve.email&&o.push(On.pattern("[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}")),i.validator===ve.cpfCnpj&&o.push(br.isValidCpfCnpj()),i.validator===ve.date&&o.push(br.isValidDate()),i.validator===ve.telephone&&o.push(br.isValidPhone()),i.validator===ve.postalcode&&o.push(br.isValidPostalCode()),i.validator===ve.agencia&&o.push(On.required,On.pattern("^(?!0{4})[0-9]{4}$")),i.validator===ve.conta&&o.push(On.required,On.pattern(/\d{5}-\d/)),i.validator===ve.moeda&&o.push(br.currencyValidator(i.minimum??0,i.maximum??0,i.type)),o}createFormControls(i,o,r=!0){for(const s of i)if(s.options&&s.fieldType===ve.checkbox){const a=s.options.map(l=>this.fb.control(!1));o.addControl(s.fieldName,this.fb.array(a,r?br.requiredMinCheckbox():null))}else"address"!==s.fieldType&&"image"!==s.fieldType&&o.addControl(s.fieldName,this.fb.control("",r?this.getValidator(s):null))}generateNameField(i){return i.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/([^\w]+|\s+)/g,"_").replace(/\-\-+/g,"_").replace(/(^-+|-+$)/,"_").toLowerCase()}formatFormFields(i){const o=[];console.log("[fields]",i);for(const r of i)r.textos_de_0_a_150&&o.push({id:r.textos_de_0_a_150._metadata.uid,fieldLabel:r.textos_de_0_a_150.string_0_150,fieldName:this.generateNameField(r.textos_de_0_a_150.string_0_150),fieldType:"text",validator:ve.stringMax150,inputMode:"text"}),r.numerico_de_0_a_150&&o.push({id:r.numerico_de_0_a_150._metadata.uid,fieldLabel:r.numerico_de_0_a_150.number_0_150,fieldName:this.generateNameField(r.numerico_de_0_a_150.number_0_150),fieldType:"number",validator:ve.numberMax150,inputMode:"numeric"}),r.email&&o.push({id:r.email._metadata.uid,fieldLabel:r.email.email,fieldName:this.generateNameField(r.email.email),fieldType:"email",validator:ve.email,inputMode:"email"}),r.cpf_cnpj&&o.push({id:r.cpf_cnpj._metadata.uid,fieldLabel:r.cpf_cnpj.cpf_cnpj,fieldName:this.generateNameField(r.cpf_cnpj.cpf_cnpj),fieldType:"text",validator:ve.cpfCnpj}),r.telefone&&o.push({id:r.telefone._metadata.uid,fieldLabel:r.telefone.telephone,fieldName:this.generateNameField(r.telefone.telephone),fieldType:"text",validator:ve.telephone}),r.textos_mais_150&&o.push({id:r.textos_mais_150._metadata.uid,fieldLabel:r.textos_mais_150.string_mais_150,fieldName:this.generateNameField(r.textos_mais_150.string_mais_150),fieldType:"text",validator:ve.stringNoLimit,inputMode:"text"}),r.boolean&&o.push({id:r.boolean._metadata.uid,fieldLabel:r.boolean.options_field_name,fieldName:this.generateNameField(r.boolean.options_field_name),fieldType:r.boolean.check_or_radio,options:r.boolean.options_fields.map((s,a)=>({id:`${r.boolean?._metadata.uid}${a}`,description:s})),validator:ve.required}),r.date_field&&o.push({id:r.date_field._metadata.uid,fieldLabel:r.date_field.nome_do_campo_data,fieldName:this.generateNameField(r.date_field.nome_do_campo_data),fieldType:"date",validator:ve.date}),r?.address?.active&&(o.push({id:r.address._metadata.uid,fieldLabel:"Address",fieldName:"address",fieldType:"address"}),o.push(...this.formatFieldAddress())),r?.image?.picture&&o.push({id:r.image._metadata.uid,fieldLabel:"Image",fieldName:"image-"+r.image._metadata.uid,fieldType:"image",image:{path:r.image.picture.path,alt:r.image.picture.title}}),r.dropdown&&o.push({id:r.dropdown._metadata.uid,fieldLabel:r.dropdown.input_name,fieldName:this.generateNameField(r.dropdown.input_name),fieldType:"select",validator:ve.required,options:r.dropdown.input_options.map(s=>({label:s,value:s}))}),r.moeda&&o.push({id:r.moeda._metadata.uid,fieldLabel:r.moeda.input_name,fieldName:this.generateNameField(r.moeda.input_name),fieldType:"text",validator:ve.moeda,type:r.moeda.type,minimum:r.moeda.minimum,maximum:r.moeda.maximum}),r.agencia&&o.push({id:r.agencia._metadata.uid,fieldLabel:r.agencia.input_name,fieldName:this.generateNameField(r.agencia.input_name),fieldType:"text",validator:ve.agencia}),r.conta&&o.push({id:r.conta._metadata.uid,fieldLabel:r.conta.input_name,fieldName:this.generateNameField(r.conta.input_name),fieldType:"text",validator:ve.conta});return o}formatFieldAddress(){return[{id:Cr(),fieldLabel:"Endere\xe7o",fieldName:"endereco",fieldType:"text",validator:"required"},{id:Cr(),fieldLabel:"N\xfamero",fieldName:"numero",fieldType:"text",validator:"required"},{id:Cr(),fieldLabel:"Complemento (opcional)",fieldName:"complemento",fieldType:"text"},{id:Cr(),fieldLabel:"Bairro",fieldName:"bairro",fieldType:"text",validator:"required"},{id:Cr(),fieldLabel:"CEP",fieldName:"cep",fieldType:"text",validator:ve.postalcode,inputMode:"numeric"},{id:Cr(),fieldLabel:"Cidade",fieldName:"cidade",validator:"required",fieldType:"text"},{id:Cr(),fieldLabel:"Estado",fieldName:"estado",fieldType:"select",validator:"required",options:b5}]}formatFieldsToSend(i,o){for(const r in i)if(Object.prototype.hasOwnProperty.call(i,r)){const s=i[r];if(s instanceof Array){const l=o.find(d=>d.fieldName===r)?.options,c=s.map((d,u)=>d?l[u].description:null).filter(d=>null!==d).join(",");i[r]=c}}return i}sanitizeValue(i,o){return o.validator===ve.cpfCnpj&&(i=this.sanitizeStringUperCase(i)),(o.validator===ve.stringMax150||o.validator===ve.stringNoLimit)&&(i=this.sanitizeString(i)),o.validator===ve.telephone&&(i=this.sanitizePhone(i)),i}sanitizeStringUperCase(i){return i.toUpperCase()}sanitizeString(i){return/^[a-zA-Z \xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd8\xd9\xda\xdb\xdc\xdd\u0154\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff\u0155]*$/.test(i)?i:i.replace(/[^a-zA-Z \xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd8\xd9\xda\xdb\xdc\xdd\u0154\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff\u0155]*/g,"")}sanitizeNumber(i){return/^\d*$/.test(i)?i:i.replace(/\D*/g,"")}sanitizePhone(i){return/^\(\d{2}\) \d{4,5}-\d{4}$/.test(i)?i:i.replace(/\D*/g,"")}sanitizeCep(i){return/^\d{5}-\d{3}$/.test(i)?i:i.replace(/\D*/g,"")}sanitizeAddress(i){return/^[a-zA-Z0-9 \xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd8\xd9\xda\xdb\xdc\xdd\u0154\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff\u0155]*$/.test(i)?i:i.replace(/[^a-zA-Z0-9 \xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd8\xd9\xda\xdb\xdc\xdd\u0154\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff\u0155]*/g,"")}maskCpfCnpj(i){return(i=i.replace(/[^a-z0-9]+/gi,"")).length<=11?[/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,".",/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,".",/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,"-",/[0-9a-zA-Z]/,/[0-9a-zA-Z]/]:[/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,".",/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,".",/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,"/",/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,"-",/[0-9a-zA-Z]/,/[0-9a-zA-Z]/]}phoneMask(i){return i.length<15?C5:M5}getErrorMessage(i,o){return i.get(o.fieldName)?.errors?.required?`Campo ${o.fieldLabel.toLowerCase()} \xe9 obrigat\xf3rio`:`Campo ${o.fieldLabel.toLowerCase()} inv\xe1lido`}currencyMaskConfig(i){return{allowNegative:!1,decimal:"R$"===js[i]?",":".",precision:2,thousands:"R$"===js[i]?".":",",prefix:`${js[i]} `}}};let n=t;return t.\u0275fac=function(o){return new(o||t)(w(qS))},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"}),n})();const MD_loadScript=function S5(n,t,e,i,o){window.ng2recaptchaloaded=()=>{t(grecaptcha)};const r=document.createElement("script");r.innerHTML="",r.src=`${i||"https://www.google.com/recaptcha/api.js"}?render=${n}&onload=ng2recaptchaloaded${e}`,o&&(r.nonce=o),r.async=!0,r.defer=!0,document.head.appendChild(r)},SD=new L("recaptcha-language"),ID=new L("recaptcha-base-url"),wD=new L("recaptcha-nonce-tag"),Hg=(new L("recaptcha-settings"),new L("recaptcha-v3-site-key"));let PD=(()=>{class n{constructor(e,i,o,r,s,a){this.onLoadComplete=l=>{this.grecaptcha=l,this.actionBacklog&&this.actionBacklog.length>0&&(this.actionBacklog.forEach(([c,d])=>this.executeActionWithSubject(c,d)),this.actionBacklog=void 0)},this.zone=e,this.isBrowser=wd(o),this.siteKey=i,this.nonce=s,this.language=a,this.baseUrl=r,this.init()}get onExecute(){return this.onExecuteSubject||(this.onExecuteSubject=new re,this.onExecuteObservable=this.onExecuteSubject.asObservable()),this.onExecuteObservable}get onExecuteError(){return this.onExecuteErrorSubject||(this.onExecuteErrorSubject=new re,this.onExecuteErrorObservable=this.onExecuteErrorSubject.asObservable()),this.onExecuteErrorObservable}execute(e){const i=new re;return this.isBrowser&&(this.grecaptcha?this.executeActionWithSubject(e,i):(this.actionBacklog||(this.actionBacklog=[]),this.actionBacklog.push([e,i]))),i.asObservable()}executeActionWithSubject(e,i){const o=r=>{this.zone.run(()=>{i.error(r),this.onExecuteErrorSubject&&this.onExecuteErrorSubject.next({action:e,error:r})})};this.zone.runOutsideAngular(()=>{try{this.grecaptcha.execute(this.siteKey,{action:e}).then(r=>{this.zone.run(()=>{i.next(r),i.complete(),this.onExecuteSubject&&this.onExecuteSubject.next({action:e,token:r})})},o)}catch(r){o(r)}})}init(){this.isBrowser&&("grecaptcha"in window?this.grecaptcha=grecaptcha:MD_loadScript(this.siteKey,this.onLoadComplete,this.language?"&hl="+this.language:"",this.baseUrl,this.nonce))}}return n.\u0275fac=function(e){return new(e||n)(w(Ie),w(Hg),w(Ss),w(ID,8),w(wD,8),w(SD,8))},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})(),x5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({providers:[PD]}),n})(),ED=(()=>{const t=class{constructor(){this.loading=new re}start(){this.loading.next(!0)}stop(){this.loading.next(!1)}};let n=t;return t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"}),n})();function P5(n,t){1&n&&(F(0,"div",1),Jt(1,"ids-loading",2),F(2,"p",3),de(3,"Processando..."),B()())}let E5=(()=>{const t=class{constructor(i){this.loaderService=i,this.loading=this.loaderService.loading}};let n=t;return t.\u0275fac=function(o){return new(o||t)(b(ED))},t.\u0275cmp=me({type:t,selectors:[["app-loader"]],decls:2,vars:3,consts:[["class","container","role","alert","aria-busy","false",4,"ngIf"],["role","alert","aria-busy","false",1,"container"],["size","L"],[1,"loader-text"]],template:function(o,r){1&o&&(ce(0,P5,4,0,"div",0),rd(1,"async")),2&o&&R("ngIf",sd(1,1,r.loading))},dependencies:[qn,wg,_M],styles:['@font-face{font-family:ItauDisplay-Light;font-style:normal;font-weight:300;src:url(itaudisplay_lt-webfont.eot),url(itaudisplay_lt-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_lt-webfont.woff2) format("woff2"),url(itaudisplay_lt-webfont.woff) format("woff"),url(itaudisplay_lt-webfont.ttf) format("truetype"),url(itaudisplay_lt-webfont.svg#itau_displaylight) format("svg")}@font-face{font-family:ItauDisplay-Regular;font-style:normal;font-weight:400;src:url(itaudisplay_rg-webfont.eot),url(itaudisplay_rg-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_rg-webfont.woff2) format("woff2"),url(itaudisplay_rg-webfont.woff) format("woff"),url(itaudisplay_rg-webfont.ttf) format("truetype"),url(itaudisplay_rg-webfont.svg#itau_displayregular) format("svg")}@font-face{font-family:ItauDisplay-Bold;font-style:normal;font-weight:700;src:url(itaudisplay_bd-webfont.eot),url(itaudisplay_bd-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_bd-webfont.woff2) format("woff2"),url(itaudisplay_bd-webfont.woff) format("woff"),url(itaudisplay_bd-webfont.ttf) format("truetype"),url(itaudisplay_bd-webfont.svg#itau_displaybold) format("svg")}@font-face{font-family:ItauDisplay-XBold;font-style:normal;font-weight:800;src:url(itaudisplay_xbd-webfont.eot),url(itaudisplay_xbd-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_xbd-webfont.woff2) format("woff2"),url(itaudisplay_xbd-webfont.woff) format("woff"),url(itaudisplay_xbd-webfont.ttf) format("truetype"),url(itaudisplay_xbd-webfont.svg#itau_displayxbold) format("svg")}@font-face{font-family:itau-font;font-style:normal;font-weight:900;src:url(itaudisplay_blk-webfont.eot),url(itaudisplay_blk-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_blk-webfont.woff2) format("woff2"),url(itaudisplay_blk-webfont.woff) format("woff"),url(itaudisplay_blk-webfont.ttf) format("truetype"),url(itaudisplay_blk-webfont.svg#itau_displayblack) format("svg")}@font-face{font-family:ItauText-Light;font-style:normal;font-weight:300;src:url(ItauText_Lt.eot),url(ItauText_Lt.eot?#iefix) format("embedded-opentype"),url(ItauText_Lt.woff2) format("woff2"),url(ItauText_Lt.woff) format("woff"),url(ItauText_Lt.ttf) format("truetype")}@font-face{font-family:ItauText-Regular;font-style:normal;font-weight:500;src:url(ItauText_Rg.eot),url(ItauText_Rg.eot?#iefix) format("embedded-opentype"),url(ItauText_Rg.woff2) format("woff2"),url(ItauText_Rg.woff) format("woff"),url(ItauText_Rg.ttf) format("truetype")}@font-face{font-family:ItauText-Bold;font-style:normal;font-weight:800;src:url(ItauText_Bd.eot),url(ItauText_Bd.eot?#iefix) format("embedded-opentype"),url(ItauText_Bd.woff2) format("woff2"),url(ItauText_Bd.woff) format("woff"),url(ItauText_Bd.ttf) format("truetype")}@font-face{font-family:ItauText-XBold;font-style:normal;font-weight:900;src:url(ItauText_XBd.eot),url(ItauText_XBd.eot?#iefix) format("embedded-opentype"),url(ItauText_XBd.woff2) format("woff2"),url(ItauText_XBd.woff) format("woff"),url(ItauText_XBd.ttf) format("truetype")}[_ngcontent-%COMP%]:root{--faas-primary-color: #ec7000;--faas-secondary-color: #dd6100;--faas-error-color: #781b8e;--faas-focus: #56504c;--faas-font-light: ItauDisplay-Light, sans-serif;--faas-font-regular: ItauText-Regular, sans-serif;--faas-font-bold: ItauText-Bold, sans-serif;--faas-font-xbold: ItauText-XBold, sans-serif}*[_ngcontent-%COMP%]{box-sizing:border-box;font:var(--ids_textStyle_f02_s16_h24_wrg, --faas-font-regular, "ItauText-Regular", sans-serif)}body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{margin:0;padding:0;scroll-behavior:smooth}fieldset[_ngcontent-%COMP%]{border:0;padding:0}.title[_ngcontent-%COMP%]{margin:0;max-width:493px}@media screen and (max-width: 768px){.title[_ngcontent-%COMP%]{font-size:24px}}.text-interface[_ngcontent-%COMP%]{font-family:var(--faas-font-regular, "ItauText-Regular", sans-serif);font-style:normal;font-weight:400;font-size:16px;line-height:150%;color:#595959}.btn-primary[_ngcontent-%COMP%]{cursor:pointer;font-family:var(--faas-font-bold, "ItauText-Bold", sans-serif);background-color:var(--faas-primary-color, #ec7000);border-radius:4px;border:1px solid var(--faas-secondary-color, #dd6100);height:48px;font-weight:700;color:#fff;font-size:20px;line-height:32px;width:398px}@media screen and (max-width: 768px){.btn-primary[_ngcontent-%COMP%]{width:259.5px}}@media screen and (max-width: 480px){.btn-primary[_ngcontent-%COMP%]{width:100%;font-size:16px}}@media screen and (max-width: 320px){.btn-primary[_ngcontent-%COMP%]{width:288px}}.btn-danger[_ngcontent-%COMP%]{cursor:pointer;background-color:#fff;border-radius:4px;border:1px solid #106eb0;height:30px;width:120px;font-family:var(--faas-font-bold, "ItauText-Bold", sans-serif);color:#106eb0;font-size:14px;line-height:24px}.invalid-feedback[_ngcontent-%COMP%]{color:var(--faas-error-color, #781b8e);font-size:12px;line-height:18px;margin:0}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=date][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=date][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}.uniclass[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #ec7000);border:1px solid var(--faas-secondary-color, #D9640B)}.family-office[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, "");border:1px solid var(--faas-secondary-color, "")}.cartoes[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .varejo[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .private-bank[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .empresas[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #ec7000);border:1px solid var(--faas-secondary-color, #dd6100)}.personnalite-rebranding[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #0d1733);border:1px solid var(--faas-secondary-color, #122047)}.container[_ngcontent-%COMP%]{background-color:var(--ids_color_bg_base);position:absolute;width:100%;height:100%;left:0;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:1}.container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:16px;line-height:24px;color:var(--ids_color_text_body_01);margin-top:25px}@media screen and (max-width: 480px){.container[_ngcontent-%COMP%]{position:fixed;height:100%;top:0}}.lds-ring[_ngcontent-%COMP%]{display:flex;justify-content:center;position:relative;width:64px;height:64px}.lds-ring[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:4px solid black;border-radius:50%;animation:_ngcontent-%COMP%_lds-ring 1.2s linear infinite;border-color:#ec7000 rgba(236,112,0,.16) rgba(236,112,0,.16) rgba(236,112,0,.16)}@keyframes _ngcontent-%COMP%_lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}']}),n})();const Pu=new L("ngx-mask config"),OD=new L("new ngx-mask config"),TD=new L("initial ngx-mask config"),O5={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,apm:!1,leadZero:!1,keepCharacterPositions:!1,triggerOnMaskChange:!1,inputTransformFn:n=>n,outputTransformFn:n=>n,maskFilled:new le,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},T5=["Hh:m0:s0","Hh:m0","m0:s0"],A5=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let k5=(()=>{class n{constructor(){this._config=pt(Pu),this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.hiddenInput=this._config.hiddenInput,this.clearIfNotMatch=this._config.clearIfNotMatch,this.specialCharacters=this._config.specialCharacters,this.patterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime,this.leadZero=this._config.leadZero,this.apm=this._config.apm,this.inputTransformFn=this._config.inputTransformFn,this.outputTransformFn=this._config.outputTransformFn,this.keepCharacterPositions=this._config.keepCharacterPositions,this._shift=new Set,this.maskExpression="",this.actualValue="",this.showKeepCharacterExp="",this.shownMaskExpression="",this.deletedSpecialCharacter=!1,this._formatWithSeparators=(e,i,o,r)=>{let s=[],a="";if(Array.isArray(o)){const h=new RegExp(o.map(f=>"[\\^$.|?*+()".indexOf(f)>=0?`\\${f}`:f).join("|"));s=e.split(h),a=e.match(h)?.[0]??""}else s=e.split(o),a=o;const l=s.length>1?`${a}${s[1]}`:"";let c=s[0]??"";const d=this.separatorLimit.replace(/\s/g,"");d&&+d&&(c="-"===c[0]?`-${c.slice(1,c.length).slice(0,d.length)}`:c.slice(0,d.length));const u=/(\d+)(\d{3})/;for(;i&&u.test(c);)c=c.replace(u,"$1"+i+"$2");return void 0===r?c+l:0===r?c:c+l.substring(0,r+1)},this.percentage=e=>{const i=e.replace(",","."),o=Number(i);return!isNaN(o)&&o>=0&&o<=100},this.getPrecision=e=>{const i=e.split(".");return i.length>1?Number(i[i.length-1]):1/0},this.checkAndRemoveSuffix=e=>{for(let i=this.suffix?.length-1;i>=0;i--){const o=this.suffix.substring(i,this.suffix?.length);if(e.includes(o)&&i!==this.suffix?.length-1&&(i-1<0||!e.includes(this.suffix.substring(i-1,this.suffix?.length))))return e.replace(o,"")}return e},this.checkInputPrecision=(e,i,o)=>{if(i<1/0){if(Array.isArray(o)){const l=o.find(c=>c!==this.thousandSeparator);o=l||o[0]}const r=new RegExp(this._charToRegExpExpression(o)+`\\d{${i}}.*$`),s=e.match(r),a=(s&&s[0]?.length)??0;a-1>i&&(e=e.substring(0,e.length-(a-1-i))),0===i&&this._compareOrIncludes(e[e.length-1],o,this.thousandSeparator)&&(e=e.substring(0,e.length-1))}return e}}applyMaskWithPattern(e,i){const[o,r]=i;return this.customPattern=r,this.applyMask(e,o)}applyMask(e,i,o=0,r=!1,s=!1,a=(()=>{})){if(!i||"string"!=typeof e)return"";let l=0,c="",d=!1,u=!1,h=1,f=!1;e.slice(0,this.prefix.length)===this.prefix&&!this.showMaskTyped&&(e=e.slice(this.prefix.length,e.length)),this.suffix&&e?.length>0&&(e=this.checkAndRemoveSuffix(e)),"("===e&&this.prefix&&(e="");const m=e.toString().split("");if(this.allowNegativeNumbers&&"-"===e.slice(l,l+1)&&(c+=e.slice(l,l+1)),"IP"===i){const I=e.split(".");this.ipError=this._validIP(I),i="099.099.099.099"}const v=[];for(let I=0;I<e.length;I++)e[I]?.match("\\d")&&v.push(e[I]??"");if("CPF_CNPJ"===i&&(this.cpfCnpjError=11!==v.length&&14!==v.length,i=v.length>11?"00.000.000/0000-00":"000.000.000-00"),i.startsWith("percent")){if(e.match("[a-z]|[A-Z]")||e.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!s){e=this._stripToDecimal(e);const W=this.getPrecision(i);e=this.checkInputPrecision(e,W,this.decimalMarker)}const I="string"==typeof this.decimalMarker?this.decimalMarker:".";if(e.indexOf(I)>0&&!this.percentage(e.substring(0,e.indexOf(I)))){let W=e.substring(0,e.indexOf(I)-1);this.allowNegativeNumbers&&"-"===e.slice(l,l+1)&&!s&&(W=e.substring(0,e.indexOf(I))),e=`${W}${e.substring(e.indexOf(I),e.length)}`}let O="";O=this.allowNegativeNumbers&&"-"===e.slice(l,l+1)?e.slice(l+1,l+e.length):e,c=this.percentage(O)?this._splitPercentZero(e):this._splitPercentZero(e.substring(0,e.length-1))}else if(i.startsWith("separator")){(e.match("[w\u0430-\u044f\u0410-\u042f]")||e.match("[\u0401\u0451\u0410-\u044f]")||e.match("[a-z]|[A-Z]")||e.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\]:";<>.?/]/)||e.match("[^A-Za-z0-9,]"))&&(e=this._stripToDecimal(e)),e=e.length>1&&"0"===e[0]&&e[1]!==this.thousandSeparator&&!this._compareOrIncludes(e[1],this.decimalMarker,this.thousandSeparator)&&!s?e.slice(0,e.length-1):e,s&&(e=this._compareOrIncludes(e[e.length-1],this.decimalMarker,this.thousandSeparator)?e.slice(0,e.length-1):e);const I=this._charToRegExpExpression(this.thousandSeparator);let O='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(I,"");if(Array.isArray(this.decimalMarker))for(const Pt of this.decimalMarker)O=O.replace(this._charToRegExpExpression(Pt),"");else O=O.replace(this._charToRegExpExpression(this.decimalMarker),"");const W=new RegExp("["+O+"]");(e.match(W)||1===e.length&&this._compareOrIncludes(e,this.decimalMarker,this.thousandSeparator))&&(e=e.substring(0,e.length-1));const we=this.getPrecision(i),Ye=(e=this.checkInputPrecision(e,we,this.decimalMarker)).replace(new RegExp(I,"g"),"");c=this._formatWithSeparators(Ye,this.thousandSeparator,this.decimalMarker,we);const rt=c.indexOf(",")-e.indexOf(","),et=c.length-e.length;if(et>0&&c[o]!==this.thousandSeparator){u=!0;let Pt=0;do{this._shift.add(o+Pt),Pt++}while(Pt<et)}else c[o-1]===this.decimalMarker||-4===et||-3===et||","===c[o]?(this._shift.clear(),this._shift.add(o-1)):0!==rt&&o>0&&!(c.indexOf(",")>=o&&o>3)||!(c.indexOf(".")>=o&&o>3)&&et<=0?(this._shift.clear(),u=!0,h=et,this._shift.add(o+=et)):this._shift.clear()}else for(let I=0,O=m[0];I<m.length&&l!==i.length;I++,O=m[I]??""){const W="*"in this.patterns;if(this._checkSymbolMask(O,i[l]??"")&&"?"===i[l+1])c+=O,l+=2;else if("*"===i[l+1]&&d&&this._checkSymbolMask(O,i[l+2]??""))c+=O,l+=3,d=!1;else if(this._checkSymbolMask(O,i[l]??"")&&"*"===i[l+1]&&!W)c+=O,d=!0;else if("?"===i[l+1]&&this._checkSymbolMask(O,i[l+2]??""))c+=O,l+=3;else if(this._checkSymbolMask(O,i[l]??"")){if("H"===i[l]&&(this.apm?Number(O)>9:Number(O)>2)){o+=1,l+=1,this._shiftStep(i,l,m.length),I--,this.leadZeroDateTime&&(c+="0");continue}if("h"===i[l]&&(this.apm?1===c.length&&Number(c)>1||"1"===c&&Number(O)>2||1===e.slice(l-1,l).length&&Number(e.slice(l-1,l))>2||"1"===e.slice(l-1,l)&&Number(O)>2:"2"===c&&Number(O)>3||("2"===c.slice(l-2,l)||"2"===c.slice(l-3,l)||"2"===c.slice(l-4,l)||"2"===c.slice(l-1,l))&&Number(O)>3&&l>10)){o+=1,l+=1,I--;continue}if(("m"===i[l]||"s"===i[l])&&Number(O)>5){o+=1,l+=1,this._shiftStep(i,l,m.length),I--,this.leadZeroDateTime&&(c+="0");continue}const we=31,Ye=e[l],rt=e[l+1],et=e[l+2],Pt=e[l-1],kn=e[l-2],ht=e[l-3],bn=e.slice(l-3,l-1),wr=e.slice(l-1,l+1),U=e.slice(l,l+2),q=e.slice(l-2,l);if("d"===i[l]){const Y="M0"===i.slice(0,2),Me="M0"===i.slice(0,2)&&this.specialCharacters.includes(kn);if(Number(O)>3&&this.leadZeroDateTime||!Y&&(Number(U)>we||Number(wr)>we||this.specialCharacters.includes(rt))||(Me?Number(wr)>we||!this.specialCharacters.includes(Ye)&&this.specialCharacters.includes(et)||this.specialCharacters.includes(Ye):Number(U)>we||this.specialCharacters.includes(rt))){o+=1,l+=1,this._shiftStep(i,l,m.length),I--,this.leadZeroDateTime&&(c+="0");continue}}if("M"===i[l]){const Me=0===l&&(Number(O)>2||Number(U)>12||this.specialCharacters.includes(rt)),Ct=i.slice(l+2,l+3),ei=bn.includes(Ct)&&(this.specialCharacters.includes(kn)&&Number(wr)>12&&!this.specialCharacters.includes(Ye)||this.specialCharacters.includes(Ye)||this.specialCharacters.includes(ht)&&Number(q)>12&&!this.specialCharacters.includes(Pt)||this.specialCharacters.includes(Pt)),ln=Number(bn)<=we&&!this.specialCharacters.includes(bn)&&this.specialCharacters.includes(Pt)&&(Number(U)>12||this.specialCharacters.includes(rt)),Li=Number(U)>12&&5===l||this.specialCharacters.includes(rt)&&5===l,We=Number(bn)>we&&!this.specialCharacters.includes(bn)&&!this.specialCharacters.includes(q)&&Number(q)>12,Gu=Number(bn)<=we&&!this.specialCharacters.includes(bn)&&!this.specialCharacters.includes(Pt)&&Number(wr)>12;if(Number(O)>1&&this.leadZeroDateTime||Me||ei||Gu||We||ln||Li&&!this.leadZeroDateTime){o+=1,l+=1,this._shiftStep(i,l,m.length),I--,this.leadZeroDateTime&&(c+="0");continue}}c+=O,l++}else" "===O&&" "===i[l]||"/"===O&&"/"===i[l]?(c+=O,l++):-1!==this.specialCharacters.indexOf(i[l]??"")?(c+=i[l],l++,this._shiftStep(i,l,m.length),I--):"9"===i[l]&&this.showMaskTyped?this._shiftStep(i,l,m.length):this.patterns[i[l]??""]&&this.patterns[i[l]??""]?.optional?(m[l]&&"099.099.099.099"!==i&&"000.000.000-00"!==i&&"00.000.000/0000-00"!==i&&!i.match(/^9+\.0+$/)&&!this.patterns[i[l]??""]?.optional&&(c+=m[l]),i.includes("9*")&&i.includes("0*")&&l++,l++,I--):"*"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2]??"")&&this._findSpecialChar(O)===this.maskExpression[l+2]&&d||"?"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2]??"")&&this._findSpecialChar(O)===this.maskExpression[l+2]&&d?(l+=3,c+=O):this.showMaskTyped&&this.specialCharacters.indexOf(O)<0&&O!==this.placeHolderCharacter&&1===this.placeHolderCharacter.length&&(f=!0)}c.length+1===i.length&&-1!==this.specialCharacters.indexOf(i[i.length-1]??"")&&(c+=i[i.length-1]);let S=o+1;for(;this._shift.has(S);)h++,S++;let C=r&&!i.startsWith("separator")?l:this._shift.has(o)?h:0;f&&C--,a(C,u),h<0&&this._shift.clear();let x=!1;s&&(x=m.every(I=>this.specialCharacters.includes(I)));let M=`${this.prefix}${x?"":c}${this.suffix}`;if(0===c.length&&(M=this.dropSpecialCharacters?`${c}`:`${this.prefix}${c}`),c.includes("-")&&this.prefix&&this.allowNegativeNumbers){if(s&&"-"===c)return"";M=`-${this.prefix}${c.split("-").join("")}${this.suffix}`}return M}_findSpecialChar(e){return this.specialCharacters.find(i=>i===e)}_checkSymbolMask(e,i){return this.patterns=this.customPattern?this.customPattern:this.patterns,(this.patterns[i]?.pattern&&this.patterns[i]?.pattern.test(e))??!1}_stripToDecimal(e){return e.split("").filter((i,o)=>{const r="string"==typeof this.decimalMarker?i===this.decimalMarker:this.decimalMarker.includes(i);return i.match("^-?\\d")||i===this.thousandSeparator||r||"-"===i&&0===o&&this.allowNegativeNumbers}).join("")}_charToRegExpExpression(e){return e&&(" "===e?"\\s":"[\\^$.|?*+()".indexOf(e)>=0?`\\${e}`:e)}_shiftStep(e,i,o){const r=/[*?]/g.test(e.slice(0,i))?o:i;this._shift.add(r+this.prefix.length||0)}_compareOrIncludes(e,i,o){return Array.isArray(i)?i.filter(r=>r!==o).includes(e):e===i}_validIP(e){return!(4===e.length&&!e.some((i,o)=>e.length!==o+1?""===i||Number(i)>255:""===i||Number(i.substring(0,3))>255))}_splitPercentZero(e){const i=e.indexOf("string"==typeof this.decimalMarker?this.decimalMarker:".");if(-1===i){const o=parseInt(e,10);return isNaN(o)?"":o.toString()}{const o=parseInt(e.substring(0,i),10),r=e.substring(i+1),s=isNaN(o)?"":o.toString();return""===s?"":s+("string"==typeof this.decimalMarker?this.decimalMarker:".")+r}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})(),jg=(()=>{class n extends k5{constructor(){super(...arguments),this.isNumberValue=!1,this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.maskChanged=!1,this._maskExpressionArray=[],this.triggerOnMaskChange=!1,this._emitValue=!1,this._previousValue="",this._currentValue="",this.onChange=e=>{},this.document=pt(Fe),this._config=pt(Pu),this._elementRef=pt(oe,{optional:!0}),this._renderer=pt(xn,{optional:!0})}applyMask(e,i,o=0,r=!1,s=!1,a=(()=>{})){if(!i)return e!==this.actualValue?this.actualValue:e;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),!e&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const l=e&&"number"==typeof this.selStart?e[this.selStart]??"":"";let c="";if(void 0!==this.hiddenInput&&!this.writingValue){let f=e&&1===e.length?e.split(""):this.actualValue.split("");"object"==typeof this.selStart&&"object"==typeof this.selEnd?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):""!==e&&f.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(e.length>f.length?f.splice(this.selStart,0,l):e.length<f.length&&(f.length-e.length==1?f.splice(s?this.selStart-1:e.length-1,1):f.splice(this.selStart,this.selEnd-this.selStart))):f=[],this.showMaskTyped&&(this.hiddenInput||(e=this.removeMask(e))),c=this.actualValue.length&&f.length<=e.length?this.shiftTypedSymbols(f.join("")):e}if(r&&(this.hiddenInput||!this.hiddenInput)&&(c=e),this.deletedSpecialCharacter&&o&&(this.specialCharacters.includes(this.actualValue.slice(o,o+1))?o+=1:"M0"!==i.slice(o-1,o+1)&&(o-=2),this.deletedSpecialCharacter=!1),this.showMaskTyped&&1===this.placeHolderCharacter.length&&!this.leadZeroDateTime&&(e=this.removeMask(e)),c=this.maskChanged?e:Boolean(c)&&c.length?c:e,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!r){const f=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(f),this.actualValue?this.actualValue:this.prefix+this.maskIsShown+this.suffix}const d=super.applyMask(c,i,o,r,s,a);if(this.actualValue=this.getActualValue(d),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.specialCharacters=this.specialCharacters.filter(f=>!this._compareOrIncludes(f,this.decimalMarker,this.thousandSeparator))),(d||""===d)&&(this._previousValue=this._currentValue,this._currentValue=d,this._emitValue=this._previousValue!==this._currentValue||this.maskChanged||this._previousValue===this._currentValue&&r),this._emitValue&&this.formControlResult(d),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?s?this.hideInput(d,this.maskExpression):this.hideInput(d,this.maskExpression)+this.maskIsShown.slice(d.length):d;const u=d.length,h=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const f=this._numberSkipedSymbols(d);return d+h.slice(u+f)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?d+h:d+h.slice(u)}_numberSkipedSymbols(e){const i=/(^|\D)(\d\D)/g;let o=i.exec(e),r=0;for(;null!=o;)r+=1,o=i.exec(e);return r}applyValueChanges(e,i,o,r=(()=>{})){const s=this._elementRef?.nativeElement;s&&(s.value=this.applyMask(s.value,this.maskExpression,e,i,o,r),s!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(e,i){return e.split("").map((o,r)=>this.patterns&&this.patterns[i[r]??""]&&this.patterns[i[r]??""]?.symbol?this.patterns[i[r]??""]?.symbol:o).join("")}getActualValue(e){const i=e.split("").filter((o,r)=>{const s=this.maskExpression[r]??"";return this._checkSymbolMask(o,s)||this.specialCharacters.includes(s)&&o===s});return i.join("")===e?i.join(""):e}shiftTypedSymbols(e){let i="";return(e&&e.split("").map((r,s)=>{if(this.specialCharacters.includes(e[s+1]??"")&&e[s+1]!==this.maskExpression[s+1])return i=r,e[s+1];if(i.length){const a=i;return i="",a}return r})||[]).join("")}numberToString(e){return!e&&0!==e||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith("separator")&&this.separatorLimit.length>14&&String(e).length>14?String(e):Number(e).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace("/-/","-")}showMaskInInput(e){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(e){if("IP"===this.maskExpression)return this._checkForIp(e);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(e)}return this.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const e=this._elementRef?.nativeElement;e&&this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==e.value.replace(this.placeHolderCharacter,"").length&&(this.formElementProperty=["value",""],this.applyMask("",this.maskExpression))}set formElementProperty([e,i]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>this._renderer?.setProperty(this._elementRef?.nativeElement,e,i))}checkSpecialCharAmount(e){return e.split("").filter(o=>this._findSpecialChar(o)).length}removeMask(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(e){if("#"===e)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const i=[];for(let o=0;o<e.length;o++){const r=e[o]??"";r&&r.match("\\d")&&i.push(r)}return i.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>3&&i.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>6&&i.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(e){const i=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,o=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===e)return i;const r=[];for(let s=0;s<e.length;s++){const a=e[s]??"";a&&a.match("\\d")&&r.push(a)}return r.length<=3?i.slice(r.length,i.length):r.length>3&&r.length<=6?i.slice(r.length+1,i.length):r.length>6&&r.length<=9?i.slice(r.length+2,i.length):r.length>9&&r.length<11?i.slice(r.length+3,i.length):11===r.length?"":12===r.length?o.slice(17===e.length?16:15,o.length):r.length>12&&r.length<=14?o.slice(r.length+4,o.length):""}_getActiveElement(e=this.document){const i=e?.activeElement?.shadowRoot;return i?.activeElement?this._getActiveElement(i):e.activeElement}formControlResult(e){if(this.writingValue||!this.triggerOnMaskChange&&this.maskChanged)return this.maskChanged&&this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(e)))))),void(this.maskChanged=!1);Array.isArray(this.dropSpecialCharacters)?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.dropSpecialCharacters))))):this.onChange(this.outputTransformFn(this._toNumber(this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===e?this._checkSymbols(this._removeSuffix(this._removePrefix(e))):e)))}_toNumber(e){if(!this.isNumberValue||""===e||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters))return e;if(String(e).length>16&&this.separatorLimit.length>14)return String(e);const i=Number(e);if(this.maskExpression.startsWith("separator")&&Number.isNaN(i)){const o=String(e).replace(",",".");return Number(o)}return Number.isNaN(i)?e:i}_removeMask(e,i){return this.maskExpression.startsWith("percent")&&e.includes(".")?e:e&&e.replace(this._regExpForRemove(i),"")}_removePrefix(e){return this.prefix?e&&e.replace(this.prefix,""):e}_removeSuffix(e){return this.suffix?e&&e.replace(this.suffix,""):e}_retrieveSeparatorValue(e){const i=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(o=>this.dropSpecialCharacters.includes(o)):this.specialCharacters;return this._removeMask(e,i)}_regExpForRemove(e){return new RegExp(e.map(i=>`\\${i}`).join("|"),"gi")}_replaceDecimalMarkerToDot(e){const i=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return e.replace(this._regExpForRemove(i),".")}_checkSymbols(e){if(""===e)return e;this.maskExpression.startsWith("percent")&&","===this.decimalMarker&&(e=e.replace(",","."));const i=this._retrieveSeparatorPrecision(this.maskExpression),o=this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(e));return this.isNumberValue&&i?e===this.decimalMarker?null:this.separatorLimit.length>14?String(o):this._checkPrecision(this.maskExpression,o):o}_retrieveSeparatorPrecision(e){const i=e.match(new RegExp("^separator\\.([^d]*)"));return i?Number(i[1]):null}_checkPrecision(e,i){const o=e.slice(10,11);return e.indexOf("2")>0||this.leadZero&&Number(o)>1?(","===this.decimalMarker&&this.leadZero&&(i=i.replace(",",".")),this.leadZero?Number(i).toFixed(Number(o)):Number(i).toFixed(2)):this.numberToString(i)}_repeatPatternSymbols(e){return e.match(/{[0-9]+}/)&&e.split("").reduce((i,o,r)=>{if(this._start="{"===o?r:this._start,"}"!==o)return this._findSpecialChar(o)?i+o:i;this._end=r;const s=Number(e.slice(this._start+1,this._end)),a=new Array(s+1).join(e[this._start-1]);if(e.slice(0,this._start).length>1&&e.includes("S")){const l=e.slice(0,this._start-1);return l.includes("{")?i+a:l+i+a}return i+a},"")||e}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Se(n)))(i||n)}}(),n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})();function F5(){const n=pt(TD),t=pt(OD);return t instanceof Function?{...n,...t()}:{...n,...t}}function zg(n){return[{provide:OD,useValue:n},{provide:TD,useValue:O5},{provide:Pu,useFactory:F5},jg]}let AD=(()=>{class n{constructor(){this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this.leadZero=null,this.triggerOnMaskChange=null,this.apm=null,this.inputTransformFn=null,this.outputTransformFn=null,this.keepCharacterPositions=null,this.maskFilled=new le,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this._isComposing=!1,this.document=pt(Fe),this._maskService=pt(jg,{self:!0}),this._config=pt(Pu),this.onChange=e=>{},this.onTouch=()=>{}}ngOnChanges(e){const{maskExpression:i,specialCharacters:o,patterns:r,prefix:s,suffix:a,thousandSeparator:l,decimalMarker:c,dropSpecialCharacters:d,hiddenInput:u,showMaskTyped:h,placeHolderCharacter:f,shownMaskExpression:m,showTemplate:v,clearIfNotMatch:S,validation:C,separatorLimit:x,allowNegativeNumbers:M,leadZeroDateTime:I,leadZero:O,triggerOnMaskChange:W,apm:we,inputTransformFn:Ye,outputTransformFn:rt,keepCharacterPositions:et}=e;if(i&&(i.currentValue!==i.previousValue&&!i.firstChange&&(this._maskService.maskChanged=!0),M&&(this._maskService.allowNegativeNumbers=M.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.specialCharacters=this._maskService.specialCharacters.filter(Pt=>"-"!==Pt))),i.currentValue&&i.currentValue.split("||").length>1?(this._maskExpressionArray=i.currentValue.split("||").sort((Pt,kn)=>Pt.length-kn.length),this._setMask()):(this._maskExpressionArray=[],this._maskValue=i.currentValue||"",this._maskService.maskExpression=this._maskValue)),o){if(!o.currentValue||!Array.isArray(o.currentValue))return;this._maskService.specialCharacters=o.currentValue||[]}r&&r.currentValue&&(this._maskService.patterns=r.currentValue),we&&we.currentValue&&(this._maskService.apm=we.currentValue),s&&(this._maskService.prefix=s.currentValue),a&&(this._maskService.suffix=a.currentValue),l&&(this._maskService.thousandSeparator=l.currentValue),c&&(this._maskService.decimalMarker=c.currentValue),d&&(this._maskService.dropSpecialCharacters=d.currentValue),u&&(this._maskService.hiddenInput=u.currentValue),h&&(this._maskService.showMaskTyped=h.currentValue),f&&(this._maskService.placeHolderCharacter=f.currentValue),m&&(this._maskService.shownMaskExpression=m.currentValue),v&&(this._maskService.showTemplate=v.currentValue),S&&(this._maskService.clearIfNotMatch=S.currentValue),C&&(this._maskService.validation=C.currentValue),x&&(this._maskService.separatorLimit=x.currentValue),I&&(this._maskService.leadZeroDateTime=I.currentValue),O&&(this._maskService.leadZero=O.currentValue),W&&(this._maskService.triggerOnMaskChange=W.currentValue),Ye&&(this._maskService.inputTransformFn=Ye.currentValue),rt&&(this._maskService.outputTransformFn=rt.currentValue),et&&(this._maskService.keepCharacterPositions=et.currentValue),this._applyMask()}validate({value:e}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(e);if(this._maskService.cpfCnpjError)return this._createValidationError(e);if(this._maskValue.startsWith("separator")||A5.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(T5.includes(this._maskValue))return this._validateTime(e);if(e&&e.toString().length>=1){let i=0;if(this._maskValue.startsWith("percent"))return null;for(const o in this._maskService.patterns)if(this._maskService.patterns[o]?.optional&&(this._maskValue.indexOf(o)!==this._maskValue.lastIndexOf(o)?i+=this._maskValue.split("").filter(s=>s===o).join("").length:-1!==this._maskValue.indexOf(o)&&i++,-1!==this._maskValue.indexOf(o)&&e.toString().length>=this._maskValue.indexOf(o)||i===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&e.toString().length===this._maskValue.length+Number((this._maskValue.split("{")[1]??"").split("}")[0])-4)return null;if(this._maskValue.indexOf("*")>1&&e.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&e.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(e);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){e="number"==typeof e?String(e):e;const o=this._maskValue.split("*"),r=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-i:this.prefix?this._maskValue.length+this.prefix.length-i:this._maskValue.length-i;if(1===o.length&&e.toString().length<r)return this._createValidationError(e);if(o.length>1){const s=o[o.length-1];if(s&&this._maskService.specialCharacters.includes(s[0])&&String(e).includes(s[0]??"")&&!this.dropSpecialCharacters){const a=e.split(s[0]);return a[a.length-1].length===s.length-1?null:this._createValidationError(e)}return(s&&!this._maskService.specialCharacters.includes(s[0])||!s||this._maskService.dropSpecialCharacters)&&e.length>=r-1?null:this._createValidationError(e)}}if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null}return e&&this.maskFilled.emit(),null}onPaste(){this._justPasted=!0}onModelChange(e){(""===e||null==e)&&this._maskService.actualValue&&(this._maskService.actualValue=this._maskService.getActualValue(""))}onInput(e){if(this._isComposing)return;const i=e.target,o=this._maskService.inputTransformFn(i.value);if("number"!==i.type)if("string"==typeof o||"number"==typeof o){if(i.value=o.toString(),this._inputValue=i.value,this._setMask(),!this._maskValue)return void this.onChange(i.value);let r=1===i.selectionStart?i.selectionStart+this._maskService.prefix.length:i.selectionStart;if(this.showMaskTyped&&this.keepCharacterPositions&&1===this._maskService.placeHolderCharacter.length){const c=i.value.slice(r-1,r),d=this.prefix.length,u=this._maskService._checkSymbolMask(c,this._maskService.maskExpression[r-1-d]??""),h=this._maskService._checkSymbolMask(c,this._maskService.maskExpression[r+1-d]??""),f=this._maskService.selStart===this._maskService.selEnd,m=Number(this._maskService.selStart)-d,v=Number(this._maskService.selEnd)-d;if("Backspace"===this._code)if(f){if(!this._maskService.specialCharacters.includes(this._maskService.maskExpression.slice(r-this.prefix.length,r+1-this.prefix.length))&&f)if(1===m&&this.prefix)this._maskService.actualValue=this.prefix+this._maskService.placeHolderCharacter+i.value.split(this.prefix).join("").split(this.suffix).join("")+this.suffix,r-=1;else{const S=i.value.substring(0,r),C=i.value.substring(r);this._maskService.actualValue=S+this._maskService.placeHolderCharacter+C}}else this._maskService.actualValue=this._maskService.selStart===d?this.prefix+this._maskService.maskIsShown.slice(0,v)+this._inputValue.split(this.prefix).join(""):this._maskService.selStart===this._maskService.maskIsShown.length+d?this._inputValue+this._maskService.maskIsShown.slice(m,v):this.prefix+this._inputValue.split(this.prefix).join("").slice(0,m)+this._maskService.maskIsShown.slice(m,v)+this._maskService.actualValue.slice(v+d,this._maskService.maskIsShown.length+d)+this.suffix;"Backspace"!==this._code&&(u||h||!f?this._maskService.specialCharacters.includes(i.value.slice(r,r+1))&&h&&!this._maskService.specialCharacters.includes(i.value.slice(r+1,r+2))?(this._maskService.actualValue=i.value.slice(0,r-1)+i.value.slice(r,r+1)+c+i.value.slice(r+2),r+=1):u&&(this._maskService.actualValue=i.value.slice(0,r-1)+c+i.value.slice(r+1).split(this.suffix).join("")+this.suffix):r=Number(i.selectionStart)-1)}let s=0,a=!1;if("Delete"===this._code&&(this._maskService.deletedSpecialCharacter=!0),this._inputValue.length>=this._maskService.maskExpression.length-1&&"Backspace"!==this._code&&"d0/M0/0000"===this._maskService.maskExpression&&r<10){const c=this._inputValue.slice(r-1,r);i.value=this._inputValue.slice(0,r-1)+c+this._inputValue.slice(r+1)}if("Hh:m0:s0"===this._maskService.maskExpression&&this.apm&&(this._justPasted&&"00"===i.value.slice(0,2)&&(i.value=i.value.slice(1,2)+i.value.slice(2,i.value.length)),i.value="00"===i.value?"0":i.value),this._maskService.applyValueChanges(r,this._justPasted,"Backspace"===this._code||"Delete"===this._code,(c,d)=>{this._justPasted=!1,s=c,a=d}),this._getActiveElement()!==i)return;this._maskExpressionArray.length&&(r="Backspace"===this._code?this.specialCharacters.includes(this._inputValue.slice(r-1,r))?r-1:r:1===i.selectionStart?i.selectionStart+this._maskService.prefix.length:i.selectionStart),this._position=1===this._position&&1===this._inputValue.length?null:this._position;let l=this._position?this._inputValue.length+r+s:r+("Backspace"!==this._code||a?s:0);l>this._getActualInputLength()&&(l=this._getActualInputLength()),l<0&&(l=0),i.setSelectionRange(l,l),this._position=null}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof o);else this._maskService.applyValueChanges(i.value.length,this._justPasted,"Backspace"===this._code||"Delete"===this._code)}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,this._justPasted=!0,this.onInput(e)}onBlur(e){if(this._maskValue){const i=e.target;if(this.leadZero&&i.value.length>0&&"string"==typeof this.decimalMarker){const o=this._maskService.maskExpression,r=Number(this._maskService.maskExpression.slice(o.length-1,o.length));if(r>1){i.value=this.suffix?i.value.split(this.suffix).join(""):i.value;const s=i.value.split(this.decimalMarker)[1];i.value=i.value.includes(this.decimalMarker)?i.value+"0".repeat(r-s.length)+this.suffix:i.value+this.decimalMarker+"0".repeat(r)+this.suffix,this._maskService.actualValue=i.value}}this._maskService.clearIfNotMatchFn()}this.onTouch()}onClick(e){if(!this._maskValue)return;const i=e.target;null!==i&&null!==i.selectionStart&&i.selectionStart===i.selectionEnd&&i.selectionStart>this._maskService.prefix.length&&38!==e.keyCode&&this._maskService.showMaskTyped&&!this.keepCharacterPositions&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),i.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===i.value?(i.focus(),i.setSelectionRange(0,0)):i.selectionStart>this._maskService.actualValue.length&&i.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const s=i&&(i.value===this._maskService.prefix?this._maskService.prefix+this._maskService.maskIsShown:i.value);i&&i.value!==s&&(i.value=s),i&&"number"!==i.type&&(i.selectionStart||i.selectionEnd)<=this._maskService.prefix.length?i.selectionStart=this._maskService.prefix.length:i&&i.selectionEnd>this._getActualInputLength()&&(i.selectionEnd=this._getActualInputLength())}onKeyDown(e){if(!this._maskValue)return;if(this._isComposing)return void("Enter"===e.key&&this.onCompositionEnd(e));this._code=e.code?e.code:e.key;const i=e.target;if(this._inputValue=i.value,this._setMask(),"number"!==i.type){if("ArrowUp"===e.key&&e.preventDefault(),"ArrowLeft"===e.key||"Backspace"===e.key||"Delete"===e.key){if("Backspace"===e.key&&0===i.value.length&&(i.selectionStart=i.selectionEnd),"Backspace"===e.key&&0!==i.selectionStart)if(this.specialCharacters=this.specialCharacters?.length?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&i.selectionStart<=this.prefix.length)i.setSelectionRange(this.prefix.length,i.selectionEnd);else if(this._inputValue.length!==i.selectionStart&&1!==i.selectionStart)for(;this.specialCharacters.includes((this._inputValue[i.selectionStart-1]??"").toString())&&(this.prefix.length>=1&&i.selectionStart>this.prefix.length||0===this.prefix.length);)i.setSelectionRange(i.selectionStart-1,i.selectionEnd);this.checkSelectionOnDeletion(i),this._maskService.prefix.length&&i.selectionStart<=this._maskService.prefix.length&&i.selectionEnd<=this._maskService.prefix.length&&e.preventDefault(),"Backspace"===e.key&&!i.readOnly&&0===i.selectionStart&&i.selectionEnd===i.value.length&&0!==i.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<i.selectionStart?i.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):("KeyA"===e.code&&e.ctrlKey||"KeyA"===e.code&&e.metaKey)&&(i.setSelectionRange(0,this._getActualInputLength()),e.preventDefault()),this._maskService.selStart=i.selectionStart,this._maskService.selEnd=i.selectionEnd}}writeValue(e){var i=this;return kd(function*(){if("object"==typeof e&&null!==e&&"value"in e&&("disable"in e&&i.setDisabledState(Boolean(e.disable)),e=e.value),null!==e&&(e=i.inputTransformFn?i.inputTransformFn(e):e),"string"==typeof e||"number"==typeof e||null===e){let o=e;if("number"==typeof o||i._maskValue.startsWith("separator")){o=String(o);const r=i._maskService.currentLocaleDecimalMarker();Array.isArray(i._maskService.decimalMarker)||(o=i._maskService.decimalMarker!==r?o.replace(r,i._maskService.decimalMarker):o),i._maskService.leadZero&&o&&i.maskExpression&&!1!==i.dropSpecialCharacters&&(o=i._maskService._checkPrecision(i._maskService.maskExpression,o)),","===i._maskService.decimalMarker&&(o=o.toString().replace(".",",")),i.maskExpression?.startsWith("separator")&&i.leadZero&&requestAnimationFrame(()=>{i._maskService.applyMask(o?.toString()??"",i._maskService.maskExpression)}),i._maskService.isNumberValue=!0}"string"!=typeof o&&(o=""),i._inputValue=o,i._setMask(),o&&i._maskService.maskExpression||i._maskService.maskExpression&&(i._maskService.prefix||i._maskService.showMaskTyped)?("function"!=typeof i.inputTransformFn&&(i._maskService.writingValue=!0),i._maskService.formElementProperty=["value",i._maskService.applyMask(o,i._maskService.maskExpression)],"function"!=typeof i.inputTransformFn&&(i._maskService.writingValue=!1)):i._maskService.formElementProperty=["value",o],i._inputValue=o}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof e)})()}registerOnChange(e){this._maskService.onChange=this.onChange=e}registerOnTouched(e){this.onTouch=e}_getActiveElement(e=this.document){const i=e?.activeElement?.shadowRoot;return i?.activeElement?this._getActiveElement(i):e.activeElement}checkSelectionOnDeletion(e){e.selectionStart=Math.min(Math.max(this.prefix.length,e.selectionStart),this._inputValue.length-this.suffix.length),e.selectionEnd=Math.min(Math.max(this.prefix.length,e.selectionEnd),this._inputValue.length-this.suffix.length)}setDisabledState(e){this._maskService.formElementProperty=["disabled",e]}_applyMask(){this._maskService.maskExpression=this._maskService._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(e){const i=this._maskValue.split("").filter(o=>":"!==o).length;return e&&(0==+(e[e.length-1]??-1)&&e.length<i||e.length<=i-2)?this._createValidationError(e):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(e){return{mask:{requiredMask:this._maskValue,actualValue:e}}}_setMask(){this._maskExpressionArray.some(e=>{if(e.split("").some(o=>this._maskService.specialCharacters.includes(o))&&this._inputValue&&!e.includes("S")||e.includes("{")){const o=this._maskService.removeMask(this._inputValue)?.length<=this._maskService.removeMask(e)?.length;if(o)return this._maskValue=this.maskExpression=this._maskService.maskExpression=e.includes("{")?this._maskService._repeatPatternSymbols(e):e,o;{const r=this._maskExpressionArray[this._maskExpressionArray.length-1]??"";this._maskValue=this.maskExpression=this._maskService.maskExpression=r.includes("{")?this._maskService._repeatPatternSymbols(r):r}}else{const o=this._inputValue?.split("").every((r,s)=>{const a=e.charAt(s);return this._maskService._checkSymbolMask(r,a)});if(o)return this._maskValue=this.maskExpression=this._maskService.maskExpression=e,o}})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(e,i){1&e&&he("paste",function(){return i.onPaste()})("ngModelChange",function(r){return i.onModelChange(r)})("input",function(r){return i.onInput(r)})("compositionstart",function(r){return i.onCompositionStart(r)})("compositionend",function(r){return i.onCompositionEnd(r)})("blur",function(r){return i.onBlur(r)})("click",function(r){return i.onClick(r)})("keydown",function(r){return i.onKeyDown(r)})},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime",leadZero:"leadZero",triggerOnMaskChange:"triggerOnMaskChange",apm:"apm",inputTransformFn:"inputTransformFn",outputTransformFn:"outputTransformFn",keepCharacterPositions:"keepCharacterPositions"},outputs:{maskFilled:"maskFilled"},exportAs:["mask","ngxMask"],standalone:!0,features:[ee([{provide:Xn,useExisting:n,multi:!0},{provide:Bt,useExisting:n,multi:!0},jg]),fn]}),n})();function R5(n,t){if(1&n){const e=En();F(0,"ids-form-field",3)(1,"input",4),he("input",function(o){Ut(e);const r=V().$implicit;return Gt(V().sanitizeInputOnChange(o,r))})("keydown",function(o){return Ut(e),Gt(V(2).handleKeyDown(o))})("blur",function(o){Ut(e);const r=V().$implicit;return Gt(V().handleBlur(o,r))}),B()()}if(2&n){const e=V().$implicit,i=V();R("label",e.fieldLabel)("errorMessage",i.getErrorMessage(i.form,e)),P(1),R("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("type",e.fieldType||"text")("inputmode","cep"===e.fieldName?"numeric":"")("required",(e.validator===i.validatorTypes.required||e.validator===i.validatorTypes.postalcode)&&!i.removeRequired)("mask","cep"!==e.fieldName||i.removeRequired?null:"00000-000")("maxlength",i.removeRequired?null:"cep"===e.fieldName?9:150)("minlength",i.removeRequired?null:"numero"===e.fieldName?1:"endereco"===e.fieldName?3:"bairro"===e.fieldName||"cidade"===e.fieldName?2:null),J("data-testid",e.fieldName)}}function N5(n,t){if(1&n){const e=En();F(0,"ids-form-field",3)(1,"input",5),he("input",function(o){Ut(e);const r=V().$implicit;return Gt(V().sanitizeInputOnChange(o,r))})("keydown",function(o){return Ut(e),Gt(V(2).handleKeyDown(o))}),B()()}if(2&n){const e=V().$implicit,i=V();R("label",e.fieldLabel)("errorMessage",i.getErrorMessage(i.form,e)),P(1),R("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("required",(e.validator===i.validatorTypes.required||e.validator===i.validatorTypes.postalcode)&&!i.removeRequired),J("data-testid",e.fieldName)}}function B5(n,t){if(1&n&&(F(0,"option",9),de(1),B()),2&n){const e=t.$implicit;R("value",e.value),P(1),Ke(" ",e.label," ")}}function L5(n,t){if(1&n&&(F(0,"ids-form-field",3)(1,"select",6),ce(2,B5,2,2,"option",7),B(),F(3,"ids-icon",8),de(4,"seta_baixo"),B()()),2&n){const e=V().$implicit,i=V();R("label",e.fieldLabel)("errorMessage",i.getErrorMessage(i.form,e)),P(1),R("required",e.validator===i.validatorTypes.required&&!i.removeRequired)("formControlName",e.fieldName)("id",e.id)("name",e.fieldName),J("data-testid",e.fieldName),P(1),R("ngForOf",e.options)}}function V5(n,t){if(1&n&&(It(0),ce(1,R5,2,12,"ids-form-field",2),ce(2,N5,2,7,"ids-form-field",2),ce(3,L5,5,8,"ids-form-field",2),wt()),2&n){const e=t.$implicit;P(1),R("ngIf","select"!==e.fieldType&&"number"!==e.fieldType),P(1),R("ngIf","number"==e.fieldType),P(1),R("ngIf","select"==e.fieldType)}}const H5=function(n){return{isMultiStep:n}};let j5=(()=>{const t=class{constructor(i,o,r){this.controlContainer=i,this.fieldService=o,this.fb=r,this.removeRequired=!1,this.isMultiStep=!1,this.addressFields=[],this.validatorTypes=ve,this.getErrorMessage=this.fieldService.getErrorMessage}ngOnInit(){this.form=this.controlContainer.control,this.addFieldsControl(),this.updateAddressFields()}addFieldsControl(){const i=this.removeRequired?null:On.required,o=this.removeRequired?null:[On.required,br.isValidPostalCode()];this.form.addControl("endereco",this.fb.control("",i)),this.form.addControl("numero",this.fb.control("",i)),this.form.addControl("complemento",this.fb.control("")),this.form.addControl("bairro",this.fb.control("",i)),this.form.addControl("cep",this.fb.control("",o)),this.form.addControl("cidade",this.fb.control("",i)),this.form.addControl("estado",this.fb.control("",i))}updateAddressFields(){for(const i of this.formFields)["endereco","complemento","numero","bairro","cidade","estado","cep"].includes(i.fieldName)&&this.addressFields.push(i)}sanitizeInputOnChange(i,o){const r=i.target,s=r.value,a=this.form.get(o.fieldName),l=d=>{r.value=d.toString(),a?.setValue(d)},c=(d,u)=>{d&&(r.value.length<u?d.setValidators([On.minLength(u)]):d.clearValidators(),d.updateValueAndValidity())};switch(o.fieldName){case"endereco":case"bairro":case"cidade":case"numero":case"complemento":l(this.fieldService.sanitizeAddress(s)),"endereco"===o.fieldName?c(a,3):("cidade"===o.fieldName||"bairro"===o.fieldName)&&c(a,2);break;case"cep":l(this.fieldService.sanitizeCep(s))}}handleKeyDown(i){"Enter"===i.key&&i.preventDefault()}handleBlur(i,o){const r=this.form.get(o.fieldName);r&&""===r.value&&-1==["complemento"].indexOf(o.fieldName)&&r.setErrors({required:!0})}};let n=t;return t.\u0275fac=function(o){return new(o||t)(b(Xt),b(CD),b(qS))},t.\u0275cmp=me({type:t,selectors:[["app-address-form"]],inputs:{formFields:"formFields",removeRequired:"removeRequired",isMultiStep:"isMultiStep"},decls:2,vars:5,consts:[[1,"address-container",3,"formGroup","ngClass"],[4,"ngFor","ngForOf"],[3,"label","errorMessage",4,"ngIf"],[3,"label","errorMessage"],["idsInput","","autocomplete","off",3,"id","name","formControlName","type","inputmode","required","mask","maxlength","minlength","input","keydown","blur"],["idsInput","","maxlength","1000000",3,"id","name","formControlName","required","input","keydown"],["idsNativeSelect","",3,"required","formControlName","id","name"],["idsNativeOption","",3,"value",4,"ngFor","ngForOf"],["variant","primary"],["idsNativeOption","",3,"value"]],template:function(o,r){1&o&&(F(0,"div",0),ce(1,V5,4,3,"ng-container",1),B()),2&o&&(R("formGroup",r.form)("ngClass",ip(3,H5,r.isMultiStep)),P(1),R("ngForOf",r.addressFields))},dependencies:[Id,$p,qn,Im,Dm,el,ll,cm,dm,cl,Wd,qd,ww,al,Gd,xg,Hw,Mu,Ri,AD],styles:[".address-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.address-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-outer-spin-button, .address-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.address-container[_ngcontent-%COMP%]   input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}@media screen and (min-width: 768px){.address-container[_ngcontent-%COMP%]:not(.isMultiStep){flex-direction:row;flex-wrap:wrap;gap:1rem}}.address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form[_ngcontent-%COMP%], .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form-ids[_ngcontent-%COMP%], .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   ids-form-field[_ngcontent-%COMP%]{--input-field-margin: 1rem}@media screen and (min-width: 768px){.address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form[_ngcontent-%COMP%]:first-child, .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form-ids[_ngcontent-%COMP%]:first-child, .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   ids-form-field[_ngcontent-%COMP%]:first-child{width:100%}.address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form[_ngcontent-%COMP%]:nth-child(2), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form-ids[_ngcontent-%COMP%]:nth-child(2), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   ids-form-field[_ngcontent-%COMP%]:nth-child(2){width:126px}.address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form[_ngcontent-%COMP%]:nth-child(3), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form-ids[_ngcontent-%COMP%]:nth-child(3), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   ids-form-field[_ngcontent-%COMP%]:nth-child(3){width:256px}.address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form[_ngcontent-%COMP%]:nth-child(4), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form-ids[_ngcontent-%COMP%]:nth-child(4), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   ids-form-field[_ngcontent-%COMP%]:nth-child(4){width:229px}.address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form[_ngcontent-%COMP%]:nth-child(5), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form-ids[_ngcontent-%COMP%]:nth-child(5), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   ids-form-field[_ngcontent-%COMP%]:nth-child(5){width:153px}.address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form[_ngcontent-%COMP%]:nth-child(6), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form-ids[_ngcontent-%COMP%]:nth-child(6), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   ids-form-field[_ngcontent-%COMP%]:nth-child(6){width:242px}.address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form[_ngcontent-%COMP%]:nth-child(7), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form-ids[_ngcontent-%COMP%]:nth-child(7), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   ids-form-field[_ngcontent-%COMP%]:nth-child(7){width:140px}}.address-container.isMultiStep[_ngcontent-%COMP%]   app-input-form[_ngcontent-%COMP%], .address-container.isMultiStep[_ngcontent-%COMP%]   app-input-form-ids[_ngcontent-%COMP%], .address-container.isMultiStep[_ngcontent-%COMP%]   ids-form-field[_ngcontent-%COMP%]{width:100%}"]}),n})();const z5=["formRef"],$5=["main"];function U5(n,t){if(1&n&&(F(0,"div",15)(1,"h2",16),de(2),B(),F(3,"p",17),de(4),B()()),2&n){const e=V();P(2),_n(e.formTitle),P(2),_n(e.formSubtitle)}}function G5(n,t){if(1&n&&(It(0),F(1,"ids-form-field",20),Jt(2,"input",21),B(),wt()),2&n){const e=V().$implicit,i=V();P(1),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),P(1),R("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("type",e.fieldType)("inputmode",e.inputMode||"")("pattern","email"===e.type?"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}":"")("maxlength","string_0_150"===e.validator?150:500),J("data-testid",e.fieldName)}}function W5(n,t){if(1&n&&(It(0),F(1,"ids-form-field",20)(2,"input",22),he("keydown.e",function(i){return i.preventDefault()}),B()(),wt()),2&n){const e=V().$implicit,i=V();P(1),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),P(1),R("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("aria-label",e.fieldLabel)("type",e.fieldType),J("data-testid",e.fieldName)}}function q5(n,t){if(1&n){const e=En();It(0),F(1,"ids-form-field",20)(2,"input",23),he("input",function(o){Ut(e);const r=V().$implicit;return Gt(V().sanitizeInputOnChange(o,r))}),B()(),wt()}if(2&n){const e=V().$implicit,i=V();P(1),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),P(1),R("id",e.id)("type","text")("name",e.fieldName)("formControlName",e.fieldName),J("data-testid",e.fieldName)}}function J5(n,t){if(1&n){const e=En();It(0),F(1,"ids-form-field",20)(2,"input",24),he("input",function(o){Ut(e);const r=V().$implicit;return Gt(V().sanitizeInputOnChange(o,r))}),B()(),wt()}if(2&n){const e=V().$implicit,i=V();P(1),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),P(1),R("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("idsMask",i.maskCpfCnpj),J("data-testid",e.fieldName)}}function K5(n,t){if(1&n){const e=En();It(0),F(1,"ids-form-field",20)(2,"input",25),he("input",function(o){Ut(e);const r=V().$implicit;return Gt(V().sanitizeInputOnChange(o,r))}),B()(),wt()}if(2&n){const e=V().$implicit,i=V();P(1),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),P(1),R("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("type","tel")("idsMask",i.phoneMask)("inputmode","numeric"),J("data-testid",e.fieldName)}}function X5(n,t){if(1&n&&(F(0,"ids-form-selection",30),Jt(1,"input",31),F(2,"span",27),de(3),B()()),2&n){const e=t.index,i=V(2).$implicit;R("formArrayName",i.fieldName),P(1),R("name",i.fieldName)("formControlName",e)("id",i.options[e].id),J("data-testid",i.options[e].id),P(2),_n(i.options[e].description)}}function Q5(n,t){if(1&n&&(It(0),F(1,"ids-form-selection-group",26)(2,"legend",27),de(3),B(),ce(4,X5,4,6,"ids-form-selection",28),B(),F(5,"ids-form-message",29),de(6),B(),wt()),2&n){const e=V().$implicit,i=V();P(1),R("id",e.id),P(2),_n(e.fieldLabel),P(1),R("ngForOf",i.getControls(e.fieldName)),P(1),R("show",i.verifyError(e.fieldName)),P(1),Ke(" ",i.errorMessage(i.form,e)," ")}}function Z5(n,t){if(1&n&&(It(0),Jt(1,"app-address-form",32),wt()),2&n){const e=V(2);P(1),R("formFields",e.formFields)}}function Y5(n,t){if(1&n&&(F(0,"option",36),de(1),B()),2&n){const e=t.$implicit;R("value",e.value),P(1),Ke(" ",e.label," ")}}function e9(n,t){if(1&n&&(It(0),F(1,"ids-form-field",20)(2,"select",33),ce(3,Y5,2,2,"option",34),B(),F(4,"ids-icon",35),de(5,"seta_baixo"),B()(),wt()),2&n){const e=V().$implicit,i=V();P(1),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),P(1),R("required",e.validator||"")("formControlName",e.fieldName)("id",e.id)("name",e.fieldName),J("data-testid",e.fieldName),P(1),R("ngForOf",e.options)}}function t9(n,t){if(1&n&&(F(0,"ids-form-selection"),Jt(1,"input",38),F(2,"span",27),de(3),B()()),2&n){const e=t.$implicit,i=V(2).$implicit;P(1),R("id",e.id)("value",e.description)("name",i.fieldName)("formControlName",i.fieldName),J("data-testid",i.fieldName),P(2),_n(e.description)}}function n9(n,t){if(1&n&&(It(0),F(1,"ids-form-selection-group")(2,"legend",27),de(3),B(),ce(4,t9,4,6,"ids-form-selection",37),B(),F(5,"ids-form-message",29),de(6),B(),wt()),2&n){const e=V().$implicit,i=V();P(3),_n(e.fieldLabel),P(1),R("ngForOf",e.options),P(1),R("show",i.verifyError(e.fieldName)),P(1),Ke(" ",i.errorMessage(i.form,e)," ")}}function i9(n,t){if(1&n){const e=En();It(0),F(1,"ids-form-field",20)(2,"input",39),he("input",function(o){Ut(e);const r=V().$implicit;return Gt(V().sanitizeInputOnChange(o,r))}),B()(),wt()}if(2&n){const e=V().$implicit,i=V();P(1),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),P(1),R("config",i.currencyConfig(e.type||"BRL"))("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("type",e.fieldType),J("data-testid",e.fieldName)}}function o9(n,t){if(1&n){const e=En();It(0),F(1,"ids-form-field",20)(2,"input",40),he("input",function(o){Ut(e);const r=V().$implicit;return Gt(V().sanitizeInputOnChange(o,r))}),B()(),wt()}if(2&n){const e=V().$implicit,i=V();P(1),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),P(1),R("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("type",e.fieldType)("idsMask",i.maskAgencia),J("data-testid",e.fieldName)}}function r9(n,t){if(1&n){const e=En();It(0),F(1,"ids-form-field",20)(2,"input",41),he("input",function(o){Ut(e);const r=V().$implicit;return Gt(V().sanitizeInputOnChange(o,r))}),B()(),wt()}if(2&n){const e=V().$implicit,i=V();P(1),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),P(1),R("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("type",e.fieldType)("idsMask",i.maskConta),J("data-testid",e.fieldName)}}function s9(n,t){if(1&n&&(F(0,"div",18),ce(1,G5,3,10,"ng-container",19),ce(2,W5,3,8,"ng-container",19),ce(3,q5,3,7,"ng-container",19),ce(4,J5,3,7,"ng-container",19),ce(5,K5,3,9,"ng-container",19),ce(6,Q5,7,5,"ng-container",19),ce(7,Z5,2,1,"ng-container",19),ce(8,e9,6,8,"ng-container",19),ce(9,n9,7,4,"ng-container",19),ce(10,i9,3,8,"ng-container",19),ce(11,o9,3,8,"ng-container",19),ce(12,r9,3,8,"ng-container",19),B()),2&n){const e=t.$implicit;P(1),R("ngIf","text"===e.fieldType&&("string_0_150"===e.validator||"string_mais_150"===e.validator)||"email"===e.fieldType),P(1),R("ngIf","number"===e.fieldType&&"numero"!==e.fieldName),P(1),R("ngIf","date"===e.fieldType&&"date_field"===e.validator),P(1),R("ngIf","text"===e.fieldType&&"cpf_cnpj"===e.validator),P(1),R("ngIf","text"===e.fieldType&&"telephone"===e.validator),P(1),R("ngIf","checkbox"===e.fieldType&&e.options&&e.options.length>0),P(1),R("ngIf","address"===e.fieldType),P(1),R("ngIf","select"===e.fieldType&&"estado"!==e.fieldName),P(1),R("ngIf","radio"===e.fieldType),P(1),R("ngIf","text"===e.fieldType&&"moeda"===e.validator),P(1),R("ngIf","text"===e.fieldType&&"agencia"===e.validator),P(1),R("ngIf","text"===e.fieldType&&"conta"===e.validator)}}let a9=(()=>{const t=class{constructor(i,o,r,s,a){this.formService=i,this.recaptchaV3Service=o,this.loaderService=r,this.fieldService=s,this.analyticsService=a,this.segment="varejo",this.formFields=[],this.form=new lr({},{updateOn:"change"}),this.errorMessage=(l,c)=>this.fieldService.getErrorMessage(l,c),this.contentError={show:!1,title:"",errors:[]},this.error={show:!1},this.success={show:!1},this.submittedError=!1,this.campaignName="",this.maskCpfCnpj=this.fieldService.maskCpfCnpj,this.phoneMask=this.fieldService.phoneMask,this.maskConta=this.fieldService.maskConta,this.maskAgencia=this.fieldService.maskAgencia,this.currencyConfig=l=>this.fieldService.currencyMaskConfig(l),this.initializeAnalytics()}initializeAnalytics(){var i=this;return kd(function*(){try{yield i.analyticsService.initSdk(),i.analyticsService.screenView()}catch(o){console.error("Failed to initialize analytics",o)}})()}ngOnInit(){this.formService.getForm(this.campaignId).subscribe(i=>{this.legalText=i.entries[0].legal_text,this.formTitle=i.entries[0].form_title,this.formSubtitle=i.entries[0].form_subtitle,this.formFields=this.fieldService.formatFormFields(i.entries[0].form_fields),this.fieldService.createFormControls(this.formFields,this.form),this.campaignName=this.formTitle}),this.isMobile=window.innerWidth<=480}ngAfterViewInit(){window.onload=()=>this.findHyperlinks()}onSubmit(){const i=this.form.controls;if(this.submittedError&&(this.submittedError=!1),this.form.valid){this.setCurrencyObj();const o=this.form.value;for(const r in o)if(Object.prototype.hasOwnProperty.call(o,r)){const s=o[r];if(s instanceof Array){const l=this.formFields.find(d=>d.fieldName===r)?.options,c=s.map((d,u)=>d?l[u].description:null).filter(d=>null!==d).join(",");o[r]=c}}this.addOverflow(),this.loaderService.start(),this.analyticsService.trackEvent({eventName:"click",action:`Faas:${this.campaignName}`,type:"btn",text:"enviar"}),this.recaptchaV3Service.execute(Kn_recaptcha_action).subscribe({next:r=>{o.recaptchaToken=r,o.id_campanha=this.campaignId,this.formService.create(o).subscribe({next:s=>{this.formRef.nativeElement.style.visibility="hidden",this.loaderService.stop(),this.success.show=!0,this.successRef.onFocus(),this.contentError.show=!1,this.reset(i),this.analyticsService.trackEvent({eventName:"success",action:`Faas:${this.campaignName}`,type:"",text:"mensagem de sucesso:seus dados foram enviados com sucesso"})},error:s=>{this.formRef.nativeElement.style.visibility="hidden",this.contentError.show=!1,this.error={show:!0,description:s.error.errors[0].message},this.errorRef.onFocus(),this.loaderService.stop(),this.reset(i),this.analyticsService.trackEvent({eventName:"visualization",action:`Faas:${this.campaignName}`,type:"",text:`mensagem de erro:${String(this.error.description)}`})},complete:()=>{console.log("Form submission completed.")}})},error:r=>{this.formRef.nativeElement.style.visibility="hidden",this.contentError.show=!1,this.error={show:!0,description:"Ocorreu um erro inesperado"},this.errorRef.onFocus(),this.loaderService.stop(),this.reset(i),this.analyticsService.trackEvent({eventName:"visualization",action:`Faas:${this.campaignName}`,type:"",text:`mensagem de erro:${String(this.error.description)}`})},complete:()=>{console.log("ReCaptcha execution completed.")}})}else this.loaderService.stop(),this.verifyForm(this.form)}verifyForm(i){const o=Object.keys(i.controls),r=o.filter(l=>i.get(l).invalid),s=o.map(l=>i.get(l)),a=s.filter(l=>l.invalid);this.handleErrorValidation(a,r),this.submittedError=!0,s.forEach(l=>{l.markAsDirty(),l.markAsTouched(),(l instanceof lr||l instanceof Jd)&&this.verifyForm(l)})}handleErrorValidation(i,o){const r=i.length;if(r>0){const s=[];let a;o.forEach(l=>{const c=this.formFields.find(d=>d.fieldName===l);if(c&&this.form.get(l)?.errors&&(s.push({id:c.id,description:`O campo \u201c${c.fieldLabel}\u201d tem um erro de preenchimento`}),!a)){a=l;const u=document.querySelector(`input[name="${l}"]`),h=document.querySelector(`select[name="${l}"]`),f=document.querySelector('input[type="radio"]');(h||f)&&(f?.focus(),f?.scrollTo({top:0,behavior:"smooth"}),h?.focus(),h?.scrollTo({top:0,behavior:"smooth"})),u?.focus(),u?.scrollTo({top:0,behavior:"smooth"})}}),this.contentError={title:`Existem ${r} erros que precisam ser corrigidos:`,show:!0,errors:s},this.analyticsService.trackEvent({eventName:"visualization",action:`Faas:${this.campaignName}`,type:"",text:`mensagem de erro:${String(this.contentError.title)}`})}}verifyError(i){const o=this.form.get(i),r=o?.invalid&&(o?.touched||o?.dirty);return(this.submittedError&&r||!r&&"submit"!==o?.updateOn)&&this.changeFormUpdateStrategy(o,"change"),r}getControls(i){return this.form.get(i)?this.form.get(i).controls:null}onClose(i){"contentError"===i.type?this.contentError.show=i.show:(this.removeOverflow(),this[i.type].show=i.show,this.formRef.nativeElement.style.visibility="visible")}onFocus(i){const o=this.formRef.nativeElement[i];o&&("fieldset"===o.type?o.children[1].children[0].children[0].focus():o.focus())}changeFormUpdateStrategy(i,o){Object.defineProperty(i,"updateOn",{get:()=>o,configurable:!0})}reset(i){this.form.reset();for(const o in i)this.form.get(o)?.markAsUntouched(),this.form.get(o)?.markAsPristine()}addOverflow(){this.isMobile&&this.main.nativeElement.classList.add("handle-overflow")}removeOverflow(){const i=this.main.nativeElement.classList;i.contains("handle-overflow")&&i.remove("handle-overflow")}sanitizeInputOnChange(i,o){const r=i.target,s=r.value;(o.validator===ve.stringMax150||o.validator===ve.stringNoLimit)&&(r.value=this.fieldService.sanitizeString(s),this.form.get(o.fieldName)?.setValue(r.value)),o.validator===ve.numberMax150&&(r.value=this.fieldService.sanitizeNumber(s),this.form.get(o.fieldName)?.setValue(Number(r.value))),o.validator===ve.telephone&&(r.value=this.fieldService.sanitizePhone(s),this.form.get(o.fieldName)?.setValue(r.value)),o.validator===ve.moeda&&this.form.get(o.fieldName)?.setValue(r.value),o.validator===ve.cpfCnpj?(r.value=s.toUpperCase(),this.form.get(o.fieldName)?.setValue(r.value)):this.form.get(o.fieldName)?.setValue(r.value)}findHyperlinks(){Array.from(document.getElementsByClassName("legal-text")||[]).forEach(o=>{Array.from(o.getElementsByTagName("a")).forEach(s=>{s&&s.addEventListener("click",a=>{a.preventDefault(),this.analyticsService.trackEvent({eventName:"click",action:`Faas:${this.campaignName}`,type:"lnk",text:s.textContent??""})})})})}setCurrencyObj(){this.formFields.filter(o=>o.validator===ve.moeda).forEach(o=>{const r=this.form.get(o.fieldName);if(r&&"string"==typeof r.value){const s=r.value,a="BRL"===o.type?s.replace(/[^0-9,]/g,"").replace(/,/g,"."):s.replace(/[^0-9.]/g,"").replace(/,/g,"."),l={type:o.type,minimum:o.minimum,maximum:o.maximum,formatted:s,value:parseFloat(a)};r.setValue(l)}})}};let n=t;return t.\u0275fac=function(o){return new(o||t)(b($B),b(PD),b(ED),b(CD),b(Zw))},t.\u0275cmp=me({type:t,selectors:[["lib-martech-faas"]],viewQuery:function(o,r){if(1&o&&(Re(z5,5),Re($5,5),Re(Yw,5),Re(Qw,5)),2&o){let s;K(s=X())&&(r.formRef=s.first),K(s=X())&&(r.main=s.first),K(s=X())&&(r.errorRef=s.first),K(s=X())&&(r.successRef=s.first)}},inputs:{campaignId:"campaignId",segment:"segment"},decls:17,vars:9,consts:[[1,"container","ids-content-section"],["main",""],[1,"ids-container-lg",2,"width","100%"],[1,"box","ids-row"],["class","text-box",4,"ngIf"],[1,"main-box"],[3,"show","showChange"],["successRef",""],[3,"show","description","campaignName","showChange"],["errorRef",""],["aria-labelledby","titleFormLead","role","form","idsForm","",1,"form-box",3,"formGroup","ngSubmit"],["formRef",""],["class","control",4,"ngFor","ngForOf"],[1,"legal-text","ids-body-text","-xsmall",3,"innerHTML"],["idsMainButton","","data-testid","button-submit","full","","type","submit",3,"disabled"],[1,"text-box"],["id","titleFormLead",1,"ids-title","-small","-bold","title"],[1,"ids-overline-text","text-interface"],[1,"control"],[4,"ngIf"],[3,"label","errorMessage"],["idsInput","","required","",3,"id","name","formControlName","type","inputmode","pattern","maxlength"],["idsInput","","required","",3,"id","name","formControlName","aria-label","type","keydown.e"],["idsInput","","inputmode","numeric","mask","00/00/0000","maxlength","10","minlength","10","required","",3,"id","type","name","formControlName","input"],["idsInput","","type","text","maxlength","18","autocomplete","off","required","",3,"id","name","formControlName","idsMask","input"],["idsInput","","maxlength","15","required","",3,"id","name","formControlName","type","idsMask","inputmode","input"],[3,"id"],[1,"ids-color-text-body-1"],["class","checkbox-radio-control",3,"formArrayName",4,"ngFor","ngForOf"],["status","error",3,"show"],[1,"checkbox-radio-control",3,"formArrayName"],["idsCheckbox","","type","checkbox","aria-required","true",1,"form-control",3,"name","formControlName","id"],[3,"formFields"],["idsNativeSelect","",3,"required","formControlName","id","name"],["idsNativeOption","",3,"value",4,"ngFor","ngForOf"],["variant","primary"],["idsNativeOption","",3,"value"],[4,"ngFor","ngForOf"],["type","radio","idsRadioButton","",3,"id","value","name","formControlName"],["idsInput","","idsMask","currency","announce","","required","",3,"config","id","name","formControlName","type","input"],["idsInput","","maxlength","4","inputmode","numeric","required","",3,"id","name","formControlName","type","idsMask","input"],["idsInput","","inputmode","numeric","required","",3,"id","name","formControlName","type","idsMask","input"]],template:function(o,r){1&o&&(F(0,"div",0,1)(2,"div",2)(3,"div",3),ce(4,U5,5,2,"div",4),F(5,"div",5)(6,"app-success",6,7),he("showChange",function(a){return r.onClose(a)}),B(),F(8,"app-error",8,9),he("showChange",function(a){return r.onClose(a)}),B(),Jt(10,"app-loader"),F(11,"form",10,11),he("ngSubmit",function(){return r.onSubmit()}),ce(13,s9,13,12,"div",12),Jt(14,"p",13),F(15,"button",14),de(16,"Enviar"),B()()()()()()),2&o&&(P(4),R("ngIf",r.formTitle||r.formSubtitle),P(2),R("show",r.success.show),P(2),R("show",r.error.show)("description",r.error.description)("campaignName",r.campaignName),P(3),R("formGroup",r.form),P(2),R("ngForOf",r.formFields),P(1),R("innerHTML",r.legalText,ay),P(1),R("disabled",!r.form.valid))},dependencies:[$p,qn,TS,Im,Dm,el,rm,ll,Cm,cm,dm,cl,Wd,qd,xm,al,Gd,Ud,Qw,Yw,E5,j5,ww,Mu,Pg,zw,Yj,Ls,Dw,$w,Dg,AD,Ig,Ri,xg,Hw],styles:['@font-face{font-family:ItauDisplay-Light;font-style:normal;font-weight:300;src:url(itaudisplay_lt-webfont.eot),url(itaudisplay_lt-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_lt-webfont.woff2) format("woff2"),url(itaudisplay_lt-webfont.woff) format("woff"),url(itaudisplay_lt-webfont.ttf) format("truetype"),url(itaudisplay_lt-webfont.svg#itau_displaylight) format("svg")}@font-face{font-family:ItauDisplay-Regular;font-style:normal;font-weight:400;src:url(itaudisplay_rg-webfont.eot),url(itaudisplay_rg-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_rg-webfont.woff2) format("woff2"),url(itaudisplay_rg-webfont.woff) format("woff"),url(itaudisplay_rg-webfont.ttf) format("truetype"),url(itaudisplay_rg-webfont.svg#itau_displayregular) format("svg")}@font-face{font-family:ItauDisplay-Bold;font-style:normal;font-weight:700;src:url(itaudisplay_bd-webfont.eot),url(itaudisplay_bd-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_bd-webfont.woff2) format("woff2"),url(itaudisplay_bd-webfont.woff) format("woff"),url(itaudisplay_bd-webfont.ttf) format("truetype"),url(itaudisplay_bd-webfont.svg#itau_displaybold) format("svg")}@font-face{font-family:ItauDisplay-XBold;font-style:normal;font-weight:800;src:url(itaudisplay_xbd-webfont.eot),url(itaudisplay_xbd-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_xbd-webfont.woff2) format("woff2"),url(itaudisplay_xbd-webfont.woff) format("woff"),url(itaudisplay_xbd-webfont.ttf) format("truetype"),url(itaudisplay_xbd-webfont.svg#itau_displayxbold) format("svg")}@font-face{font-family:itau-font;font-style:normal;font-weight:900;src:url(itaudisplay_blk-webfont.eot),url(itaudisplay_blk-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_blk-webfont.woff2) format("woff2"),url(itaudisplay_blk-webfont.woff) format("woff"),url(itaudisplay_blk-webfont.ttf) format("truetype"),url(itaudisplay_blk-webfont.svg#itau_displayblack) format("svg")}@font-face{font-family:ItauText-Light;font-style:normal;font-weight:300;src:url(ItauText_Lt.eot),url(ItauText_Lt.eot?#iefix) format("embedded-opentype"),url(ItauText_Lt.woff2) format("woff2"),url(ItauText_Lt.woff) format("woff"),url(ItauText_Lt.ttf) format("truetype")}@font-face{font-family:ItauText-Regular;font-style:normal;font-weight:500;src:url(ItauText_Rg.eot),url(ItauText_Rg.eot?#iefix) format("embedded-opentype"),url(ItauText_Rg.woff2) format("woff2"),url(ItauText_Rg.woff) format("woff"),url(ItauText_Rg.ttf) format("truetype")}@font-face{font-family:ItauText-Bold;font-style:normal;font-weight:800;src:url(ItauText_Bd.eot),url(ItauText_Bd.eot?#iefix) format("embedded-opentype"),url(ItauText_Bd.woff2) format("woff2"),url(ItauText_Bd.woff) format("woff"),url(ItauText_Bd.ttf) format("truetype")}@font-face{font-family:ItauText-XBold;font-style:normal;font-weight:900;src:url(ItauText_XBd.eot),url(ItauText_XBd.eot?#iefix) format("embedded-opentype"),url(ItauText_XBd.woff2) format("woff2"),url(ItauText_XBd.woff) format("woff"),url(ItauText_XBd.ttf) format("truetype")}[_ngcontent-%COMP%]:root{--faas-primary-color: #ec7000;--faas-secondary-color: #dd6100;--faas-error-color: #781b8e;--faas-focus: #56504c;--faas-font-light: ItauDisplay-Light, sans-serif;--faas-font-regular: ItauText-Regular, sans-serif;--faas-font-bold: ItauText-Bold, sans-serif;--faas-font-xbold: ItauText-XBold, sans-serif}*[_ngcontent-%COMP%]{box-sizing:border-box;font:var(--ids_textStyle_f02_s16_h24_wrg, --faas-font-regular, "ItauText-Regular", sans-serif)}body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{margin:0;padding:0;scroll-behavior:smooth}fieldset[_ngcontent-%COMP%]{border:0;padding:0}.title[_ngcontent-%COMP%]{margin:0;max-width:493px}@media screen and (max-width: 768px){.title[_ngcontent-%COMP%]{font-size:24px}}.text-interface[_ngcontent-%COMP%]{font-family:var(--faas-font-regular, "ItauText-Regular", sans-serif);font-style:normal;font-weight:400;font-size:16px;line-height:150%;color:#595959}.btn-primary[_ngcontent-%COMP%]{cursor:pointer;font-family:var(--faas-font-bold, "ItauText-Bold", sans-serif);background-color:var(--faas-primary-color, #ec7000);border-radius:4px;border:1px solid var(--faas-secondary-color, #dd6100);height:48px;font-weight:700;color:#fff;font-size:20px;line-height:32px;width:398px}@media screen and (max-width: 768px){.btn-primary[_ngcontent-%COMP%]{width:259.5px}}@media screen and (max-width: 480px){.btn-primary[_ngcontent-%COMP%]{width:100%;font-size:16px}}@media screen and (max-width: 320px){.btn-primary[_ngcontent-%COMP%]{width:288px}}.btn-danger[_ngcontent-%COMP%]{cursor:pointer;background-color:#fff;border-radius:4px;border:1px solid #106eb0;height:30px;width:120px;font-family:var(--faas-font-bold, "ItauText-Bold", sans-serif);color:#106eb0;font-size:14px;line-height:24px}.invalid-feedback[_ngcontent-%COMP%]{color:var(--faas-error-color, #781b8e);font-size:12px;line-height:18px;margin:0}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=date][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=date][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}.uniclass[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #ec7000);border:1px solid var(--faas-secondary-color, #D9640B)}.family-office[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, "");border:1px solid var(--faas-secondary-color, "")}.cartoes[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .varejo[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .private-bank[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .empresas[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #ec7000);border:1px solid var(--faas-secondary-color, #dd6100)}.personnalite-rebranding[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #0d1733);border:1px solid var(--faas-secondary-color, #122047)}.container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column}.box[_ngcontent-%COMP%]{background-color:var(--ids_color_bg_base);padding:32px;border-radius:10px;gap:32px;display:flex;justify-content:center;align-items:center}@media screen and (max-width: 480px){.box[_ngcontent-%COMP%]{flex-direction:column;width:100%;box-shadow:none;background-color:transparent;padding:24px;gap:16px}}@media screen and (max-width: 768px){.box[_ngcontent-%COMP%]   .text-box[_ngcontent-%COMP%]{max-width:287.5px}}@media screen and (max-width: 480px){.box[_ngcontent-%COMP%]   .text-box[_ngcontent-%COMP%]{width:100%}}@media screen and (max-width: 320px){.box[_ngcontent-%COMP%]   .text-box[_ngcontent-%COMP%]{max-width:288px}}.box[_ngcontent-%COMP%]   .main-box[_ngcontent-%COMP%]{position:relative;border-radius:10px;border:1px solid var(--border-soft, #E1E9ED)}@media screen and (max-width: 480px){.box[_ngcontent-%COMP%]   .main-box[_ngcontent-%COMP%]{padding:0;width:100%;border:none}}.box[_ngcontent-%COMP%]   .form-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:32px}.box[_ngcontent-%COMP%]   .form-box[_ngcontent-%COMP%]   .control[_ngcontent-%COMP%]:nth-child(n){width:398px}@media screen and (max-width: 768px){.box[_ngcontent-%COMP%]   .form-box[_ngcontent-%COMP%]   .control[_ngcontent-%COMP%]:nth-child(n){width:316px}}@media screen and (max-width: 480px){.box[_ngcontent-%COMP%]   .form-box[_ngcontent-%COMP%]   .control[_ngcontent-%COMP%]:nth-child(n){width:100%}}@media screen and (max-width: 320px){.box[_ngcontent-%COMP%]   .form-box[_ngcontent-%COMP%]   .control[_ngcontent-%COMP%]:nth-child(n){width:288px}}@media screen and (max-width: 480px){.box[_ngcontent-%COMP%]   .form-box[_ngcontent-%COMP%]{padding:0}}.box[_ngcontent-%COMP%]   ids-form-selection-group[_ngcontent-%COMP%]   legend[_ngcontent-%COMP%]{padding-top:24px}p.legal-text.ids-body-text.-xsmall[_ngcontent-%COMP%]{color:var(--ids_color_text_body_02);margin:16px 0;width:398px}p.legal-text.ids-body-text.-xsmall[_ngcontent-%COMP%]   a.ids-link[_ngcontent-%COMP%]{font-weight:700}@media screen and (max-width: 768px){p.legal-text.ids-body-text.-xsmall[_ngcontent-%COMP%]{width:316px}}@media screen and (max-width: 480px){p.legal-text.ids-body-text.-xsmall[_ngcontent-%COMP%]{width:100%}}@media screen and (max-width: 320px){p.legal-text.ids-body-text.-xsmall[_ngcontent-%COMP%]{width:288px}}.form-group[_ngcontent-%COMP%]{margin-bottom:2rem}.input-label[_ngcontent-%COMP%]{font-size:16px;color:var(--faas-focus, #56504c);margin-bottom:10px}.uniclass[_ngcontent-%COMP%]   .input-label[_ngcontent-%COMP%], .family-office[_ngcontent-%COMP%]   .input-label[_ngcontent-%COMP%], .cartoes[_ngcontent-%COMP%]   .input-label[_ngcontent-%COMP%], .varejo[_ngcontent-%COMP%]   .input-label[_ngcontent-%COMP%], .private-bank[_ngcontent-%COMP%]   .input-label[_ngcontent-%COMP%], .empresas[_ngcontent-%COMP%]   .input-label[_ngcontent-%COMP%], .personnalite-rebranding[_ngcontent-%COMP%]   .input-label[_ngcontent-%COMP%]{color:var(--faas-focus, #56504c)}.handle-overflow[_ngcontent-%COMP%]{height:100vh;overflow:hidden}']}),n})();function kD(n){return new _(3e3,!1)}function z9(){return typeof window<"u"&&typeof window.document<"u"}function $g(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Ao(n){switch(n.length){case 0:return new Sl;case 1:return n[0];default:return new fw(n)}}function FD(n,t,e,i,o=new Map,r=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(d=>{const u=d.get("offset"),h=u==l,f=h&&c||new Map;d.forEach((m,v)=>{let S=v,C=m;if("offset"!==v)switch(S=t.normalizePropertyName(S,s),C){case cg:C=o.get(v);break;case so:C=r.get(v);break;default:C=t.normalizeStyleValue(v,S,C,s)}f.set(S,C)}),h||a.push(f),c=f,l=u}),s.length)throw function O9(n){return new _(3502,!1)}();return a}function Ug(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Gg(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Gg(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Gg(e,"destroy",n)))}}function Gg(n,t,e){const r=Wg(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),s=n._data;return null!=s&&(r._data=s),r}function Wg(n,t,e,i,o="",r=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!s}}function Tn(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function RD(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let qg=(n,t)=>!1,ND=(n,t,e)=>[],BD=null;function Jg(n){const t=n.parentNode||n.host;return t===BD?null:t}($g()||typeof Element<"u")&&(z9()?(BD=(()=>document.documentElement)(),qg=(n,t)=>{for(;t;){if(t===n)return!0;t=Jg(t)}return!1}):qg=(n,t)=>n.contains(t),ND=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let Mr=null,LD=!1;const VD=qg,HD=ND;let jD=(()=>{class n{validateStyleProperty(e){return function U9(n){Mr||(Mr=function G9(){return typeof document<"u"?document.body:null}()||{},LD=!!Mr.style&&"WebkitAppearance"in Mr.style);let t=!0;return Mr.style&&!function $9(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Mr.style,!t&&LD&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Mr.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return VD(e,i)}getParentElement(e){return Jg(e)}query(e,i,o){return HD(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,s,a=[],l){return new Sl(o,r)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})(),Kg=(()=>{class n{}return n.NOOP=new jD,n})();const W9=1e3,Xg="ng-enter",Eu="ng-leave",Ou="ng-trigger",Tu=".ng-trigger",$D="ng-animating",Qg=".ng-animating";function co(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Zg(parseFloat(t[1]),t[2])}function Zg(n,t){return"s"===t?n*W9:n}function Au(n,t,e){return n.hasOwnProperty("duration")?n:function J9(n,t,e){let o,r=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(kD()),{duration:0,delay:0,easing:""};o=Zg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=Zg(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else o=n;if(!e){let a=!1,l=t.length;o<0&&(t.push(function l9(){return new _(3100,!1)}()),a=!0),r<0&&(t.push(function c9(){return new _(3101,!1)}()),a=!0),a&&t.splice(l,0,kD())}return{duration:o,delay:r,easing:s}}(n,t,e)}function Ol(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function UD(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function ko(n,t=new Map,e){if(e)for(let[i,o]of e)t.set(i,o);for(let[i,o]of n)t.set(i,o);return t}function WD(n,t,e){return e?t+":"+e+";":""}function qD(n){let t="";for(let e=0;e<n.style.length;e++){const i=n.style.item(e);t+=WD(0,i,n.style.getPropertyValue(i))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=WD(0,Z9(e),n.style[e]));n.setAttribute("style",t)}function Bi(n,t,e){n.style&&(t.forEach((i,o)=>{const r=e_(o);e&&!e.has(o)&&e.set(o,n.style[r]),n.style[r]=i}),$g()&&qD(n))}function Sr(n,t){n.style&&(t.forEach((e,i)=>{const o=e_(i);n.style[o]=""}),$g()&&qD(n))}function Tl(n){return Array.isArray(n)?1==n.length?n[0]:cw(n):n}const Yg=new RegExp("{{\\s*(.+?)\\s*}}","g");function JD(n){let t=[];if("string"==typeof n){let e;for(;e=Yg.exec(n);)t.push(e[1]);Yg.lastIndex=0}return t}function Al(n,t,e){const i=n.toString(),o=i.replace(Yg,(r,s)=>{let a=t[s];return null==a&&(e.push(function u9(n){return new _(3003,!1)}()),a=""),a.toString()});return o==i?n:o}function ku(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const Q9=/-+([a-z0-9])/g;function e_(n){return n.replace(Q9,(...t)=>t[1].toUpperCase())}function Z9(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function An(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function h9(n){return new _(3004,!1)}()}}function KD(n,t){return window.getComputedStyle(n)[t]}const Nu="*";function o8(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function r8(n,t,e){if(":"==n[0]){const l=function s8(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return t.push(function D9(n){return new _(3016,!1)}()),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function w9(n){return new _(3015,!1)}()),t;const o=i[1],r=i[2],s=i[3];t.push(XD(o,s));"<"==r[0]&&!(o==Nu&&s==Nu)&&t.push(XD(s,o))}(i,e,t)):e.push(n),e}const Bu=new Set(["true","1"]),Lu=new Set(["false","0"]);function XD(n,t){const e=Bu.has(n)||Lu.has(n),i=Bu.has(t)||Lu.has(t);return(o,r)=>{let s=n==Nu||n==o,a=t==Nu||t==r;return!s&&e&&"boolean"==typeof o&&(s=o?Bu.has(n):Lu.has(n)),!a&&i&&"boolean"==typeof r&&(a=r?Bu.has(t):Lu.has(t)),s&&a}}const a8=new RegExp("s*:selfs*,?","g");function t_(n,t,e,i){return new l8(n).build(t,e,i)}class l8{constructor(t){this._driver=t}build(t,e,i){const o=new u8(e);return this._resetContextStyleTimingState(o),An(this,Tl(t),o)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function p9(){return new _(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,o+=l.depCount,s.push(l)}else e.errors.push(function m9(){return new _(3007,!1)}())}),{type:7,name:t.name,states:r,transitions:s,queryCount:i,depCount:o,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),o=t.options&&t.options.params||null;if(i.containsDynamicStyles){const r=new Set,s=o||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{JD(l).forEach(c=>{s.hasOwnProperty(c)||r.add(c)})})}),r.size&&(ku(r.values()),e.errors.push(function g9(n,t){return new _(3008,!1)}()))}return{type:0,name:t.name,style:i,options:o?{params:o}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=An(this,Tl(t.animation),e);return{type:1,matchers:o8(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ir(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>An(this,i,e)),options:Ir(t.options)}}visitGroup(t,e){const i=e.currentTime;let o=0;const r=t.steps.map(s=>{e.currentTime=i;const a=An(this,s,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:3,steps:r,options:Ir(t.options)}}visitAnimate(t,e){const i=function f8(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return n_(Au(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=n_(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=Au(e,t);return n_(o.duration,o.delay,o.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let o,r=t.styles?t.styles:Ml({});if(5==r.type)o=this.visitKeyframes(r,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Ml(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,o=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:o,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],o=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of o)"string"==typeof a?a===so?i.push(a):e.errors.push(new _(3002,!1)):i.push(UD(a));let r=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!r))for(let l of a.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),d=c.get(l);let u=!0;d&&(r!=o&&r>=d.startTime&&o<=d.endTime&&(e.errors.push(function v9(n,t,e,i,o){return new _(3010,!1)}()),u=!1),r=d.startTime),u&&c.set(l,{startTime:r,endTime:o}),e.options&&function X9(n,t,e){const i=t.params||{},o=JD(n);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function d9(n){return new _(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function y9(){return new _(3011,!1)}()),i;let r=0;const s=[];let a=!1,l=!1,c=0;const d=t.steps.map(C=>{const x=this._makeStyleAst(C,e);let M=null!=x.offset?x.offset:function h8(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(x.styles),I=0;return null!=M&&(r++,I=x.offset=M),l=l||I<0||I>1,a=a||I<c,c=I,s.push(I),x});l&&e.errors.push(function b9(){return new _(3012,!1)}()),a&&e.errors.push(function C9(){return new _(3200,!1)}());const u=t.steps.length;let h=0;r>0&&r<u?e.errors.push(function M9(){return new _(3202,!1)}()):0==r&&(h=1/(u-1));const f=u-1,m=e.currentTime,v=e.currentAnimateTimings,S=v.duration;return d.forEach((C,x)=>{const M=h>0?x==f?1:h*x:s[x],I=M*S;e.currentTime=m+v.delay+I,v.duration=I,this._validateStyleAst(C,e),C.offset=M,i.styles.push(C)}),i}visitReference(t,e){return{type:8,animation:An(this,Tl(t.animation),e),options:Ir(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Ir(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ir(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,o=t.options||{};e.queryCount++,e.currentQuery=t;const[r,s]=function c8(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(a8,"")),n=n.replace(/@\*/g,Tu).replace(/@\w+/g,e=>Tu+"-"+e.slice(1)).replace(/:animating/g,Qg),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+r:r,Tn(e.collectedStyles,e.currentQuerySelector,new Map);const a=An(this,Tl(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Ir(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function S9(){return new _(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Au(t.timings,e.errors,!0);return{type:12,animation:An(this,Tl(t.animation),e),timings:i,options:null}}}class u8{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ir(n){return n?(n=Ol(n)).params&&(n.params=function d8(n){return n?Ol(n):null}(n.params)):n={},n}function n_(n,t,e){return{duration:n,delay:t,easing:e}}function i_(n,t,e,i,o,r,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:s,subTimeline:a}}class Vu{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const g8=new RegExp(":enter","g"),v8=new RegExp(":leave","g");function o_(n,t,e,i,o,r=new Map,s=new Map,a,l,c=[]){return(new y8).buildKeyframes(n,t,e,i,o,r,s,a,l,c)}class y8{buildKeyframes(t,e,i,o,r,s,a,l,c,d=[]){c=c||new Vu;const u=new r_(t,e,c,o,r,d,[]);u.options=l;const h=l.delay?co(l.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,l),An(this,i,u);const f=u.timelines.filter(m=>m.containsAnimation());if(f.length&&a.size){let m;for(let v=f.length-1;v>=0;v--){const S=f[v];if(S.element===e){m=S;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,u.errors,l)}return f.length?f.map(m=>m.buildKeyframes()):[i_(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,o,o.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(const o of t){const r=o?.delay;if(r){const s="number"==typeof r?r:co(Al(r,o?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(t,e,i){let r=e.currentTimeline.currentTime;const s=null!=i.duration?co(i.duration):null,a=null!=i.delay?co(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),An(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let o=e;const r=t.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Hu);const s=co(r.delay);o.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>An(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let o=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?co(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);r&&a.delayNextStep(r),An(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(o),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Au(e.params?Al(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(r):i.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(o+r),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,o=t.options||{},r=o.delay?co(o.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Hu);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(t.options,c);r&&u.delayNextStep(r),c===e.element&&(l=u.currentTimeline),An(this,t.animation,u),u.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,o=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const d=e.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;An(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=o.currentTime-u+(o.startTime-i.currentTimeline.startTime)}}const Hu={};class r_{constructor(t,e,i,o,r,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Hu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ju(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let o=this.options;null!=i.duration&&(o.duration=co(i.duration)),null!=i.delay&&(o.delay=co(i.delay));const r=i.params;if(r){let s=o.params;s||(s=this.options.params={}),Object.keys(r).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Al(r[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return t}createSubContext(t=null,e,i){const o=e||this.element,r=new r_(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=Hu,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const o={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},r=new b8(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,o,t.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,o,r,s){let a=[];if(o&&a.push(this.element),t.length>0){t=(t=t.replace(g8,"."+this._enterClassName)).replace(v8,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&0==a.length&&s.push(function I9(n){return new _(3014,!1)}()),a}}class ju{constructor(t,e,i,o){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new ju(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||so),this._currentKeyframe.set(e,so);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,o){e&&this._previousKeyframe.set("easing",e);const r=o&&o.params||{},s=function C8(n,t){const e=new Map;let i;return n.forEach(o=>{if("*"===o){i=i||t.keys();for(let r of i)e.set(r,so)}else ko(o,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=Al(l,r,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??so),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const c=ko(a,new Map,this._backFill);c.forEach((d,u)=>{d===cg?t.add(u):d===so&&e.add(u)}),i||c.set("offset",l/this.duration),o.push(c)});const r=t.size?ku(t.values()):[],s=e.size?ku(e.values()):[];if(i){const a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return i_(this.element,o,r,s,this.duration,this.startTime,this.easing,!1)}}class b8 extends ju{constructor(t,e,i,o,r,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=i+e,a=e/s,l=ko(t[0]);l.set("offset",0),r.push(l);const c=ko(t[0]);c.set("offset",YD(a)),r.push(c);const d=t.length-1;for(let u=1;u<=d;u++){let h=ko(t[u]);const f=h.get("offset");h.set("offset",YD((e+f*i)/s)),r.push(h)}i=s,e=0,o="",t=r}return i_(this.element,t,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function YD(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class s_{}const M8=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class S8 extends s_{normalizePropertyName(t,e){return e_(t)}normalizeStyleValue(t,e,i,o){let r="";const s=i.toString().trim();if(M8.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function f9(n,t){return new _(3005,!1)}())}return s+r}}function ex(n,t,e,i,o,r,s,a,l,c,d,u,h){return{type:0,element:n,triggerName:t,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}const a_={};class tx{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,o){return function I8(n,t,e,i,o){return n.some(r=>r(t,e,i,o))}(this.ast.matchers,t,e,i,o)}buildStyles(t,e,i){let o=this._stateStyles.get("*");return void 0!==t&&(o=this._stateStyles.get(t?.toString())||o),o?o.buildStyles(e,i):new Map}build(t,e,i,o,r,s,a,l,c,d){const u=[],h=this.ast.options&&this.ast.options.params||a_,m=this.buildStyles(i,a&&a.params||a_,u),v=l&&l.params||a_,S=this.buildStyles(o,v,u),C=new Set,x=new Map,M=new Map,I="void"===o,O={params:w8(v,h),delay:this.ast.options?.delay},W=d?[]:o_(t,e,this.ast.animation,r,s,m,S,O,c,u);let we=0;if(W.forEach(rt=>{we=Math.max(rt.duration+rt.delay,we)}),u.length)return ex(e,this._triggerName,i,o,I,m,S,[],[],x,M,we,u);W.forEach(rt=>{const et=rt.element,Pt=Tn(x,et,new Set);rt.preStyleProps.forEach(ht=>Pt.add(ht));const kn=Tn(M,et,new Set);rt.postStyleProps.forEach(ht=>kn.add(ht)),et!==e&&C.add(et)});const Ye=ku(C.values());return ex(e,this._triggerName,i,o,I,m,S,W,Ye,x,M,we)}}function w8(n,t){const e=Ol(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class D8{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,o=Ol(this.defaultParams);return Object.keys(t).forEach(r=>{const s=t[r];null!==s&&(o[r]=s)}),this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((s,a)=>{s&&(s=Al(s,o,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class P8{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new D8(o.style,o.options&&o.options.params||{},i))}),nx(this.states,"true","1"),nx(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new tx(t,o,this.states))}),this.fallbackTransition=function E8(n,t,e){return new tx(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,o){return this.transitionFactories.find(s=>s.match(t,e,i,o))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function nx(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const O8=new Vu;class T8{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],o=[],r=t_(this._driver,e,i,o);if(i.length)throw function T9(n){return new _(3503,!1)}();this._animations.set(t,r)}_buildPlayer(t,e,i){const o=t.element,r=FD(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(o,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const o=[],r=this._animations.get(t);let s;const a=new Map;if(r?(s=o_(this._driver,e,r,Xg,Eu,new Map,new Map,i,O8,o),s.forEach(d=>{const u=Tn(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(o.push(function A9(){return new _(3300,!1)}()),s=[]),o.length)throw function k9(n){return new _(3504,!1)}();a.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,so))})});const c=Ao(s.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function F9(n){return new _(3301,!1)}();return e}listen(t,e,i,o){const r=Wg(e,"","","");return Ug(this._getPlayer(t),i,r,o),()=>{}}command(t,e,i,o){if("register"==i)return void this.register(t,o[0]);if("create"==i)return void this.create(t,e,o[0]||{});const r=this._getPlayer(t);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(t)}}}const ix="ng-animate-queued",l_="ng-animate-disabled",N8=[],ox={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},B8={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zn="__ng_removed";class c_{get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function j8(n){return n??null}(i?t.value:t),i){const r=Ol(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const kl="void",d_=new c_(kl);class L8{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Yn(e,this._hostClassName)}listen(t,e,i,o){if(!this._triggers.has(e))throw function R9(n,t){return new _(3302,!1)}();if(null==i||0==i.length)throw function N9(n){return new _(3303,!1)}();if(!function z8(n){return"start"==n||"done"==n}(i))throw function B9(n,t){return new _(3400,!1)}();const r=Tn(this._elementListeners,t,[]),s={name:e,phase:i,callback:o};r.push(s);const a=Tn(this._engine.statesByElement,t,new Map);return a.has(e)||(Yn(t,Ou),Yn(t,Ou+"-"+e),a.set(e,d_)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(s);l>=0&&r.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function L9(n){return new _(3401,!1)}();return e}trigger(t,e,i,o=!0){const r=this._getTrigger(e),s=new u_(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Yn(t,Ou),Yn(t,Ou+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new c_(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=d_),c.value!==kl&&l.value===c.value){if(!function G8(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let o=0;o<e.length;o++){const r=e[o];if(!t.hasOwnProperty(r)||n[r]!==t[r])return!1}return!0}(l.params,c.params)){const v=[],S=r.matchStyles(l.value,l.params,v),C=r.matchStyles(c.value,c.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{Sr(t,S),Bi(t,C)})}return}const h=Tn(this._engine.playersByElement,t,[]);h.forEach(v=>{v.namespaceId==this.id&&v.triggerName==e&&v.queued&&v.destroy()});let f=r.matchTransition(l.value,c.value,t,c.params),m=!1;if(!f){if(!o)return;f=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:m}),m||(Yn(t,ix),s.onStart(()=>{zs(t,ix)})),s.onDone(()=>{let v=this.players.indexOf(s);v>=0&&this.players.splice(v,1);const S=this._engine.playersByElement.get(t);if(S){let C=S.indexOf(s);C>=0&&S.splice(C,1)}}),this.players.push(s),h.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Tu,!0);i.forEach(o=>{if(o[Zn])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(s=>s.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(t,e,i,o){const r=this._engine.statesByElement.get(t),s=new Map;if(r){const a=[];if(r.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const d=this.trigger(t,c,kl,o);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&Ao(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const o=new Set;e.forEach(r=>{const s=r.name;if(o.has(s))return;o.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||d_,d=new c_(kl),u=new u_(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(t):[];if(r&&r.length)o=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(t),o)i.markElementAsRemoved(this.id,t,!1,e);else{const r=t[Zn];(!r||r===ox)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Yn(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,s=this._elementListeners.get(r);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Wg(r,i.triggerName,i.fromState.value,i.toState.value);l._data=t,Ug(i.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,s=o.transition.ast.depCount;return 0==r||0==s?r-s:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class V8{_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,r)=>{}}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new L8(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=o.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return o.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let o=this._namespaceLookup[t];o&&o.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(t,e,i,o){if(zu(e)){const r=this._fetchNamespace(t);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(t,e,i,o){if(!zu(e))return;const r=e[Zn];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Yn(t,l_)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),zs(t,l_))}removeNode(t,e,i,o){if(zu(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,o):this.markElementAsRemoved(t,e,!1,o),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(t,e,i,o,r){this.collectedLeaveElements.push(e),e[Zn]={namespaceId:t,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(t,e,i,o,r){return zu(e)?this._fetchNamespace(t).listen(e,i,o,r):()=>{}}_buildInstruction(t,e,i,o,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,o,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,Tu,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Qg,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Ao(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Zn];if(e&&e.setForRemoval){if(t[Zn]=ox,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(l_)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Yn(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}finally{for(let o=0;o<i.length;o++)i[o]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Ao(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(t){throw function V9(n){return new _(3402,!1)}()}_flushAnimations(t,e){const i=new Vu,o=[],r=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(U=>{d.add(U);const q=this.driver.query(U,".ng-animate-queued",!0);for(let Y=0;Y<q.length;Y++)d.add(q[Y])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=ax(h,this.collectedEnterElements),m=new Map;let v=0;f.forEach((U,q)=>{const Y=Xg+v++;m.set(q,Y),U.forEach(Me=>Yn(Me,Y))});const S=[],C=new Set,x=new Set;for(let U=0;U<this.collectedLeaveElements.length;U++){const q=this.collectedLeaveElements[U],Y=q[Zn];Y&&Y.setForRemoval&&(S.push(q),C.add(q),Y.hasAnimation?this.driver.query(q,".ng-star-inserted",!0).forEach(Me=>C.add(Me)):x.add(q))}const M=new Map,I=ax(h,Array.from(C));I.forEach((U,q)=>{const Y=Eu+v++;M.set(q,Y),U.forEach(Me=>Yn(Me,Y))}),t.push(()=>{f.forEach((U,q)=>{const Y=m.get(q);U.forEach(Me=>zs(Me,Y))}),I.forEach((U,q)=>{const Y=M.get(q);U.forEach(Me=>zs(Me,Y))}),S.forEach(U=>{this.processLeaveNode(U)})});const O=[],W=[];for(let U=this._namespaceList.length-1;U>=0;U--)this._namespaceList[U].drainQueuedTransitions(e).forEach(Y=>{const Me=Y.player,Ct=Y.element;if(O.push(Me),this.collectedEnterElements.length){const Zt=Ct[Zn];if(Zt&&Zt.setForMove){if(Zt.previousTriggersValues&&Zt.previousTriggersValues.has(Y.triggerName)){const Dr=Zt.previousTriggersValues.get(Y.triggerName),ti=this.statesByElement.get(Y.element);if(ti&&ti.has(Y.triggerName)){const Wu=ti.get(Y.triggerName);Wu.value=Dr,ti.set(Y.triggerName,Wu)}}return void Me.destroy()}}const ei=!u||!this.driver.containsElement(u,Ct),ln=M.get(Ct),Li=m.get(Ct),We=this._buildInstruction(Y,i,Li,ln,ei);if(We.errors&&We.errors.length)return void W.push(We);if(ei)return Me.onStart(()=>Sr(Ct,We.fromStyles)),Me.onDestroy(()=>Bi(Ct,We.toStyles)),void o.push(Me);if(Y.isFallbackTransition)return Me.onStart(()=>Sr(Ct,We.fromStyles)),Me.onDestroy(()=>Bi(Ct,We.toStyles)),void o.push(Me);const Gu=[];We.timelines.forEach(Zt=>{Zt.stretchStartingKeyframe=!0,this.disabledNodes.has(Zt.element)||Gu.push(Zt)}),We.timelines=Gu,i.append(Ct,We.timelines),s.push({instruction:We,player:Me,element:Ct}),We.queriedElements.forEach(Zt=>Tn(a,Zt,[]).push(Me)),We.preStyleProps.forEach((Zt,Dr)=>{if(Zt.size){let ti=l.get(Dr);ti||l.set(Dr,ti=new Set),Zt.forEach((Wu,p_)=>ti.add(p_))}}),We.postStyleProps.forEach((Zt,Dr)=>{let ti=c.get(Dr);ti||c.set(Dr,ti=new Set),Zt.forEach((Wu,p_)=>ti.add(p_))})});if(W.length){const U=[];W.forEach(q=>{U.push(function H9(n,t){return new _(3505,!1)}())}),O.forEach(q=>q.destroy()),this.reportError(U)}const we=new Map,Ye=new Map;s.forEach(U=>{const q=U.element;i.has(q)&&(Ye.set(q,q),this._beforeAnimationBuild(U.player.namespaceId,U.instruction,we))}),o.forEach(U=>{const q=U.element;this._getPreviousPlayers(q,!1,U.namespaceId,U.triggerName,null).forEach(Me=>{Tn(we,q,[]).push(Me),Me.destroy()})});const rt=S.filter(U=>cx(U,l,c)),et=new Map;sx(et,this.driver,x,c,so).forEach(U=>{cx(U,l,c)&&rt.push(U)});const kn=new Map;f.forEach((U,q)=>{sx(kn,this.driver,new Set(U),l,cg)}),rt.forEach(U=>{const q=et.get(U),Y=kn.get(U);et.set(U,new Map([...Array.from(q?.entries()??[]),...Array.from(Y?.entries()??[])]))});const ht=[],bn=[],wr={};s.forEach(U=>{const{element:q,player:Y,instruction:Me}=U;if(i.has(q)){if(d.has(q))return Y.onDestroy(()=>Bi(q,Me.toStyles)),Y.disabled=!0,Y.overrideTotalTime(Me.totalTime),void o.push(Y);let Ct=wr;if(Ye.size>1){let ln=q;const Li=[];for(;ln=ln.parentNode;){const We=Ye.get(ln);if(We){Ct=We;break}Li.push(ln)}Li.forEach(We=>Ye.set(We,Ct))}const ei=this._buildAnimation(Y.namespaceId,Me,we,r,kn,et);if(Y.setRealPlayer(ei),Ct===wr)ht.push(Y);else{const ln=this.playersByElement.get(Ct);ln&&ln.length&&(Y.parentPlayer=Ao(ln)),o.push(Y)}}else Sr(q,Me.fromStyles),Y.onDestroy(()=>Bi(q,Me.toStyles)),bn.push(Y),d.has(q)&&o.push(Y)}),bn.forEach(U=>{const q=r.get(U.element);if(q&&q.length){const Y=Ao(q);U.setRealPlayer(Y)}}),o.forEach(U=>{U.parentPlayer?U.syncPlayerEvents(U.parentPlayer):U.destroy()});for(let U=0;U<S.length;U++){const q=S[U],Y=q[Zn];if(zs(q,Eu),Y&&Y.hasAnimation)continue;let Me=[];if(a.size){let ei=a.get(q);ei&&ei.length&&Me.push(...ei);let ln=this.driver.query(q,Qg,!0);for(let Li=0;Li<ln.length;Li++){let We=a.get(ln[Li]);We&&We.length&&Me.push(...We)}}const Ct=Me.filter(ei=>!ei.destroyed);Ct.length?$8(this,q,Ct):this.processLeaveNode(q)}return S.length=0,ht.forEach(U=>{this.players.push(U),U.onDone(()=>{U.destroy();const q=this.players.indexOf(U);this.players.splice(q,1)}),U.play()}),ht}elementContainsData(t,e){let i=!1;const o=e[Zn];return o&&o.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,o,r){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!r||r==kl;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||s.push(c)})}}return(i||o)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){const r=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,d=c!==r,u=Tn(i,c,[]);this._getPreviousPlayers(c,d,s,a,e.toState).forEach(f=>{const m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),u.push(f)})}Sr(r,e.fromStyles)}_buildAnimation(t,e,i,o,r,s){const a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,h=e.timelines.map(m=>{const v=m.element;d.add(v);const S=v[Zn];if(S&&S.removedBeforeQueried)return new Sl(m.duration,m.delay);const C=v!==l,x=function U8(n){const t=[];return lx(n,t),t}((i.get(v)||N8).map(we=>we.getRealPlayer())).filter(we=>!!we.element&&we.element===v),M=r.get(v),I=s.get(v),O=FD(0,this._normalizer,0,m.keyframes,M,I),W=this._buildPlayer(m,O,x);if(m.subTimeline&&o&&u.add(v),C){const we=new u_(t,a,v);we.setRealPlayer(W),c.push(we)}return W});c.forEach(m=>{Tn(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function H8(n,t,e){let i=n.get(t);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>Yn(m,$D));const f=Ao(h);return f.onDestroy(()=>{d.forEach(m=>zs(m,$D)),Bi(l,e.toStyles)}),u.forEach(m=>{Tn(o,m,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Sl(t.duration,t.delay)}}class u_{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Sl,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>Ug(t,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Tn(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function zu(n){return n&&1===n.nodeType}function rx(n,t){const e=n.style.display;return n.style.display=t??"none",e}function sx(n,t,e,i,o){const r=[];e.forEach(l=>r.push(rx(l)));const s=[];i.forEach((l,c)=>{const d=new Map;l.forEach(u=>{const h=t.computeStyle(c,u,o);d.set(u,h),(!h||0==h.length)&&(c[Zn]=B8,s.push(c))}),n.set(c,d)});let a=0;return e.forEach(l=>rx(l,r[a++])),s}function ax(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const i=1,o=new Set(t),r=new Map;function s(a){if(!a)return i;let l=r.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:o.has(c)?i:s(c),r.set(a,l),l}return t.forEach(a=>{const l=s(a);l!==i&&e.get(l).push(a)}),e}function Yn(n,t){n.classList?.add(t)}function zs(n,t){n.classList?.remove(t)}function $8(n,t,e){Ao(e).onDone(()=>n.processLeaveNode(t))}function lx(n,t){for(let e=0;e<n.length;e++){const i=n[e];i instanceof fw?lx(i.players,t):t.push(i)}}function cx(n,t,e){const i=e.get(n);if(!i)return!1;let o=t.get(n);return o?i.forEach(r=>o.add(r)):t.set(n,i),e.delete(n),!0}class $u{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,r)=>{},this._transitionEngine=new V8(t,e,i),this._timelineEngine=new T8(t,e,i),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(t,e,i,o,r){const s=t+"-"+o;let a=this._triggerCache[s];if(!a){const l=[],c=[],d=t_(this._driver,r,l,c);if(l.length)throw function E9(n,t){return new _(3404,!1)}();a=function x8(n,t,e){return new P8(n,t,e)}(o,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,o,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,o){this._transitionEngine.insertNode(t,e,i,o)}onRemove(t,e,i,o){this._transitionEngine.removeNode(t,e,o||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,o){if("@"==i.charAt(0)){const[r,s]=RD(i);this._timelineEngine.command(r,e,s,o)}else this._transitionEngine.trigger(t,e,i,o)}listen(t,e,i,o,r){if("@"==i.charAt(0)){const[s,a]=RD(i);return this._timelineEngine.listen(s,e,a,r)}return this._transitionEngine.listen(t,e,i,o,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let q8=(()=>{class n{constructor(e,i,o){this._element=e,this._startStyles=i,this._endStyles=o,this._state=0;let r=n.initialStylesByElement.get(e);r||n.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Bi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Bi(this._element,this._initialStyles),this._endStyles&&(Bi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Sr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Sr(this._element,this._endStyles),this._endStyles=null),Bi(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function h_(n){let t=null;return n.forEach((e,i)=>{(function J8(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class dx{constructor(t,e,i,o){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&t.set(o,this._finished?i:KD(this.element,o))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class K8{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return VD(t,e)}getParentElement(t){return Jg(t)}query(t,e,i){return HD(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,o,r,s=[]){const l={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const c=new Map,d=s.filter(f=>f instanceof dx);(function Y9(n,t){return 0===n||0===t})(i,o)&&d.forEach(f=>{f.currentSnapshot.forEach((m,v)=>c.set(v,m))});let u=function K9(n){return n.length?n[0]instanceof Map?n:n.map(t=>UD(t)):[]}(e).map(f=>ko(f));u=function e8(n,t,e){if(e.size&&t.length){let i=t[0],o=[];if(e.forEach((r,s)=>{i.has(s)||o.push(s),i.set(s,r)}),o.length)for(let r=1;r<t.length;r++){let s=t[r];o.forEach(a=>s.set(a,KD(n,a)))}}return t}(t,u,c);const h=function W8(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=h_(t[0]),t.length>1&&(i=h_(t[t.length-1]))):t instanceof Map&&(e=h_(t)),e||i?new q8(n,e,i):null}(t,u);return new dx(t,u,l,h)}}let X8=(()=>{class n extends aw{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:ci.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?cw(e):e;return ux(this._renderer,null,i,"register",[o]),new Q8(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(w(Ta),w(Fe))},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})();class Q8 extends W3{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Z8(this._id,t,e||{},this._renderer)}}class Z8{constructor(t,e,i,o){this.id=t,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return ux(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function ux(n,t,e,i,o){return n.setProperty(t,`@@${e}:${i}`,o)}const hx="@.disabled";let Y8=(()=>{class n{constructor(e,i,o){this.delegate=e,this.engine=i,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,s)=>{const a=s?.parentNode(r);a&&s.removeChild(a,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let d=this._rendererCache.get(r);return d||(d=new fx("",r,this.engine,()=>this._rendererCache.delete(r)),this._rendererCache.set(r,d)),d}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=d=>{Array.isArray(d)?d.forEach(l):this.engine.registerTrigger(s,a,e,d.name,d)};return i.data.animation.forEach(l),new e$(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,o){e>=0&&e<this._microtaskId?this._zone.run(()=>i(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[s,a]=r;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(w(Ta),w($u),w(Ie))},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})();class fx{constructor(t,e,i,o){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=o,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,o=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,o)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,o){this.delegate.setAttribute(t,e,i,o)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,o){this.delegate.setStyle(t,e,i,o)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==hx?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class e$ extends fx{constructor(t,e,i,o,r){super(e,i,o,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==hx?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const o=function t$(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let r=e.slice(1),s="";return"@"!=r.charAt(0)&&([r,s]=function n$(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(r)),this.engine.listen(this.namespaceId,o,r,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}const px=[{provide:aw,useClass:X8},{provide:s_,useFactory:function o$(){return new S8}},{provide:$u,useClass:(()=>{class n extends $u{constructor(e,i,o,r){super(e.body,i,o)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(w(Fe),w(Kg),w(s_),w(or))},n.\u0275prov=z({token:n,factory:n.\u0275fac}),n})()},{provide:Ta,useFactory:function r$(n,t,e){return new Y8(n,t,e)},deps:[Td,$u,Ie]}],f_=[{provide:Kg,useFactory:()=>new K8},{provide:_p,useValue:"BrowserAnimations"},...px],mx=[{provide:Kg,useClass:jD},{provide:_p,useValue:"NoopAnimations"},...px];let s$=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?mx:f_}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({providers:f_,imports:[$M]}),n})(),a$=(()=>{const t=class{};let n=t;return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=_e({type:t}),t.\u0275inj=pe({providers:[zg()],imports:[Jn,s$,Pm,Eg,JS,Eg,jw,Sg,Lw,Aj,Oo,Tw,Aw,Hj,Jn,Pm,JS]}),n})(),l$=(()=>{const t=class{};let n=t;return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=_e({type:t}),t.\u0275inj=pe({providers:[{provide:Hg,useValue:Kn_recaptcha_siteKey}],imports:[Jn,$M,LB,x5]}),n})(),c$=(()=>{const t=class{constructor(i){this.injector=i}ngDoBootstrap(){const i=function s2(n,t){const e=function ZN(n,t){return t.get(Yo).resolveComponentFactory(n).inputs}(n,t.injector),i=t.strategyFactory||new n2(n,t.injector),o=function QN(n){const t={};return n.forEach(({propName:e,templateName:i})=>{t[function WN(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(i)]=e}),t}(e);class r extends r2{get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,d){this.ngElementStrategy.setInputValue(o[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return r.observedAttributes=Object.keys(o),e.forEach(({propName:s})=>{Object.defineProperty(r.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),r}(a9,{injector:this.injector});customElements.define("form-as-a-service",i)}};let n=t;return t.\u0275fac=function(o){return new(o||t)(w($n))},t.\u0275mod=_e({type:t}),t.\u0275inj=pe({providers:[zg()],imports:[a$,l$,Eg,Lw,nz,tz,Nw,Vj,fz,Aw,Uj,Oo,jw]}),n})();BN().bootstrapModule(c$).catch(n=>console.error(n))},386:(xr,$s,Fl)=>{var ye;!function(kt,Pr,Us,be){"use strict";var dn,Gs=["","webkit","Moz","MS","ms","o"],Rl=Pr.createElement("div"),Nl="function",cn=Math.round,Fn=Math.abs,Er=Date.now;function Fo(p,g,y){return setTimeout(Ro(p,y),g)}function uo(p,g,y){return!!Array.isArray(p)&&(ni(p,y[g],y),!0)}function ni(p,g,y){var _;if(p)if(p.forEach)p.forEach(g,y);else if(p.length!==be)for(_=0;_<p.length;)g.call(y,p[_],_,p),_++;else for(_ in p)p.hasOwnProperty(_)&&g.call(y,p[_],_,p)}function Bl(p,g,y){var _="DEPRECATED METHOD: "+g+"\n"+y+" AT \n";return function(){var T=new Error("get-stack-trace"),D=T&&T.stack?T.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",j=kt.console&&(kt.console.warn||kt.console.log);return j&&j.call(kt.console,_,D),p.apply(this,arguments)}}dn="function"!=typeof Object.assign?function(g){if(g===be||null===g)throw new TypeError("Cannot convert undefined or null to object");for(var y=Object(g),_=1;_<arguments.length;_++){var T=arguments[_];if(T!==be&&null!==T)for(var D in T)T.hasOwnProperty(D)&&(y[D]=T[D])}return y}:Object.assign;var Mi=Bl(function(g,y,_){for(var T=Object.keys(y),D=0;D<T.length;)(!_||_&&g[T[D]]===be)&&(g[T[D]]=y[T[D]]),D++;return g},"extend","Use `assign`."),Or=Bl(function(g,y){return Mi(g,y,!0)},"merge","Use `assign`.");function Yt(p,g,y){var T,_=g.prototype;(T=p.prototype=Object.create(_)).constructor=p,T._super=_,y&&dn(T,y)}function Ro(p,g){return function(){return p.apply(g,arguments)}}function Ws(p,g){return typeof p==Nl?p.apply(g&&g[0]||be,g):p}function Tr(p,g){return p===be?g:p}function Ar(p,g,y){ni(ho(g),function(_){p.addEventListener(_,y,!1)})}function Si(p,g,y){ni(ho(g),function(_){p.removeEventListener(_,y,!1)})}function No(p,g){for(;p;){if(p==g)return!0;p=p.parentNode}return!1}function Vi(p,g){return p.indexOf(g)>-1}function ho(p){return p.trim().split(/\s+/g)}function fo(p,g,y){if(p.indexOf&&!y)return p.indexOf(g);for(var _=0;_<p.length;){if(y&&p[_][y]==g||!y&&p[_]===g)return _;_++}return-1}function po(p){return Array.prototype.slice.call(p,0)}function mo(p,g,y){for(var _=[],T=[],D=0;D<p.length;){var j=g?p[D][g]:p[D];fo(T,j)<0&&_.push(p[D]),T[D]=j,D++}return y&&(_=g?_.sort(function(Ot,Ft){return Ot[g]>Ft[g]}):_.sort()),_}function qs(p,g){for(var y,_,T=g[0].toUpperCase()+g.slice(1),D=0;D<Gs.length;){if((_=(y=Gs[D])?y+T:g)in p)return _;D++}return be}var Ll=1;function Js(p){var g=p.ownerDocument||p;return g.defaultView||g.parentWindow||kt}var Vl="ontouchstart"in kt,Ju=qs(kt,"PointerEvent")!==be,re=Vl&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),go="touch",tt="mouse",Ku=25,ze=1,ii=2,nt=4,Et=8,kr=1,st=2,Bo=4,Lo=8,Vo=16,Rn=st|Bo,Hi=Lo|Vo,at=Rn|Hi,Ks=["x","y"],Fr=["clientX","clientY"];function Ht(p,g){var y=this;this.manager=p,this.callback=g,this.element=p.element,this.target=p.options.inputTarget,this.domHandler=function(_){Ws(p.options.enable,[p])&&y.handler(_)},this.init()}function Xs(p,g,y){var _=y.pointers.length,T=y.changedPointers.length,D=g&ze&&_-T==0,j=g&(nt|Et)&&_-T==0;y.isFirst=!!D,y.isFinal=!!j,D&&(p.session={}),y.eventType=g,function jl(p,g){var y=p.session,_=g.pointers,T=_.length;y.firstInput||(y.firstInput=zl(g)),T>1&&!y.firstMultiple?y.firstMultiple=zl(g):1===T&&(y.firstMultiple=!1);var D=y.firstInput,j=y.firstMultiple,ft=j?j.center:D.center,Ot=g.center=oi(_);g.timeStamp=Er(),g.deltaTime=g.timeStamp-D.timeStamp,g.angle=Zs(ft,Ot),g.distance=Ho(ft,Ot),function Qu(p,g){var y=g.center,_=p.offsetDelta||{},T=p.prevDelta||{},D=p.prevInput||{};(g.eventType===ze||D.eventType===nt)&&(T=p.prevDelta={x:D.deltaX||0,y:D.deltaY||0},_=p.offsetDelta={x:y.x,y:y.y}),g.deltaX=T.x+(y.x-_.x),g.deltaY=T.y+(y.y-_.y)}(y,g),g.offsetDirection=$l(g.deltaX,g.deltaY);var Ft=Qs(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=Ft.x,g.overallVelocityY=Ft.y,g.overallVelocity=Fn(Ft.x)>Fn(Ft.y)?Ft.x:Ft.y,g.scale=j?function Ys(p,g){return Ho(g[0],g[1],Fr)/Ho(p[0],p[1],Fr)}(j.pointers,_):1,g.rotation=j?function Yu(p,g){return Zs(g[1],g[0],Fr)+Zs(p[1],p[0],Fr)}(j.pointers,_):0,g.maxPointers=y.prevInput?g.pointers.length>y.prevInput.maxPointers?g.pointers.length:y.prevInput.maxPointers:g.pointers.length,function Zu(p,g){var T,D,j,ft,y=p.lastInterval||g,_=g.timeStamp-y.timeStamp;if(g.eventType!=Et&&(_>Ku||y.velocity===be)){var Ot=g.deltaX-y.deltaX,Ft=g.deltaY-y.deltaY,en=Qs(_,Ot,Ft);D=en.x,j=en.y,T=Fn(en.x)>Fn(en.y)?en.x:en.y,ft=$l(Ot,Ft),p.lastInterval=g}else T=y.velocity,D=y.velocityX,j=y.velocityY,ft=y.direction;g.velocity=T,g.velocityX=D,g.velocityY=j,g.direction=ft}(y,g);var en=p.element;No(g.srcEvent.target,en)&&(en=g.srcEvent.target),g.target=en}(p,y),p.emit("hammer.input",y),p.recognize(y),p.session.prevInput=y}function zl(p){for(var g=[],y=0;y<p.pointers.length;)g[y]={clientX:cn(p.pointers[y].clientX),clientY:cn(p.pointers[y].clientY)},y++;return{timeStamp:Er(),pointers:g,center:oi(g),deltaX:p.deltaX,deltaY:p.deltaY}}function oi(p){var g=p.length;if(1===g)return{x:cn(p[0].clientX),y:cn(p[0].clientY)};for(var y=0,_=0,T=0;T<g;)y+=p[T].clientX,_+=p[T].clientY,T++;return{x:cn(y/g),y:cn(_/g)}}function Qs(p,g,y){return{x:g/p||0,y:y/p||0}}function $l(p,g){return p===g?kr:Fn(p)>=Fn(g)?p<0?st:Bo:g<0?Lo:Vo}function Ho(p,g,y){y||(y=Ks);var _=g[y[0]]-p[y[0]],T=g[y[1]]-p[y[1]];return Math.sqrt(_*_+T*T)}function Zs(p,g,y){return y||(y=Ks),180*Math.atan2(g[y[1]]-p[y[1]],g[y[0]]-p[y[0]])/Math.PI}Ht.prototype={handler:function(){},init:function(){this.evEl&&Ar(this.element,this.evEl,this.domHandler),this.evTarget&&Ar(this.target,this.evTarget,this.domHandler),this.evWin&&Ar(Js(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&Si(this.element,this.evEl,this.domHandler),this.evTarget&&Si(this.target,this.evTarget,this.domHandler),this.evWin&&Si(Js(this.element),this.evWin,this.domHandler)}};var eh={mousedown:ze,mousemove:ii,mouseup:nt},th="mousedown",nh="mousemove mouseup";function Rr(){this.evEl=th,this.evWin=nh,this.pressed=!1,Ht.apply(this,arguments)}Yt(Rr,Ht,{handler:function(g){var y=eh[g.type];y&ze&&0===g.button&&(this.pressed=!0),y&ii&&1!==g.which&&(y=nt),this.pressed&&(y&nt&&(this.pressed=!1),this.callback(this.manager,y,{pointers:[g],changedPointers:[g],pointerType:tt,srcEvent:g}))}});var ih={pointerdown:ze,pointermove:ii,pointerup:nt,pointercancel:Et,pointerout:Et},oh={2:go,3:"pen",4:tt,5:"kinect"},Ul="pointerdown",Gl="pointermove pointerup pointercancel";function ea(){this.evEl=Ul,this.evWin=Gl,Ht.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}kt.MSPointerEvent&&!kt.PointerEvent&&(Ul="MSPointerDown",Gl="MSPointerMove MSPointerUp MSPointerCancel"),Yt(ea,Ht,{handler:function(g){var y=this.store,_=!1,T=g.type.toLowerCase().replace("ms",""),D=ih[T],j=oh[g.pointerType]||g.pointerType,ft=j==go,Ot=fo(y,g.pointerId,"pointerId");D&ze&&(0===g.button||ft)?Ot<0&&(y.push(g),Ot=y.length-1):D&(nt|Et)&&(_=!0),!(Ot<0)&&(y[Ot]=g,this.callback(this.manager,D,{pointers:y,changedPointers:[g],pointerType:j,srcEvent:g}),_&&y.splice(Ot,1))}});var m_={touchstart:ze,touchmove:ii,touchend:nt,touchcancel:Et},ta="touchstart",Wl="touchstart touchmove touchend touchcancel";function na(){this.evTarget=ta,this.evWin=Wl,this.started=!1,Ht.apply(this,arguments)}function ql(p,g){var y=po(p.touches),_=po(p.changedTouches);return g&(nt|Et)&&(y=mo(y.concat(_),"identifier",!0)),[y,_]}Yt(na,Ht,{handler:function(g){var y=m_[g.type];if(y===ze&&(this.started=!0),this.started){var _=ql.call(this,g,y);y&(nt|Et)&&_[0].length-_[1].length==0&&(this.started=!1),this.callback(this.manager,y,{pointers:_[0],changedPointers:_[1],pointerType:go,srcEvent:g})}}});var Jl={touchstart:ze,touchmove:ii,touchend:nt,touchcancel:Et},rh="touchstart touchmove touchend touchcancel";function jo(){this.evTarget=rh,this.targetIds={},Ht.apply(this,arguments)}function Kl(p,g){var y=po(p.touches),_=this.targetIds;if(g&(ze|ii)&&1===y.length)return _[y[0].identifier]=!0,[y,y];var T,D,j=po(p.changedTouches),ft=[],Ot=this.target;if(D=y.filter(function(Ft){return No(Ft.target,Ot)}),g===ze)for(T=0;T<D.length;)_[D[T].identifier]=!0,T++;for(T=0;T<j.length;)_[j[T].identifier]&&ft.push(j[T]),g&(nt|Et)&&delete _[j[T].identifier],T++;return ft.length?[mo(D.concat(ft),"identifier",!0),ft]:void 0}Yt(jo,Ht,{handler:function(g){var y=Jl[g.type],_=Kl.call(this,g,y);_&&this.callback(this.manager,y,{pointers:_[0],changedPointers:_[1],pointerType:go,srcEvent:g})}});var Xl=2500,ia=25;function Mt(){Ht.apply(this,arguments);var p=Ro(this.handler,this);this.touch=new jo(this.manager,p),this.mouse=new Rr(this.manager,p),this.primaryTouch=null,this.lastTouches=[]}function sh(p,g){p&ze?(this.primaryTouch=g.changedPointers[0].identifier,Ql.call(this,g)):p&(nt|Et)&&Ql.call(this,g)}function Ql(p){var g=p.changedPointers[0];if(g.identifier===this.primaryTouch){var y={x:g.clientX,y:g.clientY};this.lastTouches.push(y);var _=this.lastTouches;setTimeout(function(){var D=_.indexOf(y);D>-1&&_.splice(D,1)},Xl)}}function ah(p){for(var g=p.srcEvent.clientX,y=p.srcEvent.clientY,_=0;_<this.lastTouches.length;_++){var T=this.lastTouches[_],D=Math.abs(g-T.x),j=Math.abs(y-T.y);if(D<=ia&&j<=ia)return!0}return!1}Yt(Mt,Ht,{handler:function(g,y,_){var D=_.pointerType==tt;if(!(D&&_.sourceCapabilities&&_.sourceCapabilities.firesTouchEvents)){if(_.pointerType==go)sh.call(this,y,_);else if(D&&ah.call(this,_))return;this.callback(g,y,_)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Zl=qs(Rl.style,"touchAction"),oa=Zl!==be,Yl="compute",Nn="manipulation",ji="none",ri="pan-x",_o="pan-y",vo=function nc(){if(!oa)return!1;var p={},g=kt.CSS&&kt.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(y){p[y]=!g||kt.CSS.supports("touch-action",y)}),p}();function tc(p,g){this.manager=p,this.set(g)}tc.prototype={set:function(p){p==Yl&&(p=this.compute()),oa&&this.manager.element.style&&vo[p]&&(this.manager.element.style[Zl]=p),this.actions=p.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var p=[];return ni(this.manager.recognizers,function(g){Ws(g.options.enable,[g])&&(p=p.concat(g.getTouchAction()))}),function lh(p){if(Vi(p,ji))return ji;var g=Vi(p,ri),y=Vi(p,_o);return g&&y?ji:g||y?g?ri:_o:Vi(p,Nn)?Nn:"auto"}(p.join(" "))},preventDefaults:function(p){var g=p.srcEvent,y=p.offsetDirection;if(!this.manager.session.prevented){var _=this.actions,T=Vi(_,ji)&&!vo[ji],D=Vi(_,_o)&&!vo[_o],j=Vi(_,ri)&&!vo[ri];if(T&&1===p.pointers.length&&p.distance<2&&p.deltaTime<250)return;return j&&D||!(T||D&&y&Rn||j&&y&Hi)?void 0:this.preventSrc(g)}g.preventDefault()},preventSrc:function(p){this.manager.session.prevented=!0,p.preventDefault()}};var yo=1,un=2,si=4,Ii=8,Bn=Ii,bo=16;function ai(p){this.options=dn({},this.defaults,p||{}),this.id=function Le(){return Ll++}(),this.manager=null,this.options.enable=Tr(this.options.enable,!0),this.state=yo,this.simultaneous={},this.requireFail=[]}function ic(p){return p&bo?"cancel":p&Ii?"end":p&si?"move":p&un?"start":""}function oc(p){return p==Vo?"down":p==Lo?"up":p==st?"left":p==Bo?"right":""}function zo(p,g){var y=g.manager;return y?y.get(p):p}function Cn(){ai.apply(this,arguments)}function Nr(){Cn.apply(this,arguments),this.pX=null,this.pY=null}function zi(){Cn.apply(this,arguments)}function $i(){ai.apply(this,arguments),this._timer=null,this._input=null}function ra(){Cn.apply(this,arguments)}function $o(){Cn.apply(this,arguments)}function Ee(){ai.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function li(p,g){return(g=g||{}).recognizers=Tr(g.recognizers,li.defaults.preset),new sa(p,g)}function sa(p,g){this.options=dn({},li.defaults,g||{}),this.options.inputTarget=this.options.inputTarget||p,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=p,this.input=function Xu(p){return new(p.options.inputClass||(Ju?ea:re?jo:Vl?Mt:Rr))(p,Xs)}(this),this.touchAction=new tc(this,this.options.touchAction),Pe(this,!0),ni(this.options.recognizers,function(y){var _=this.add(new y[0](y[1]));y[2]&&_.recognizeWith(y[2]),y[3]&&_.requireFailure(y[3])},this)}function Pe(p,g){var _,y=p.element;y.style&&(ni(p.options.cssProps,function(T,D){_=qs(y.style,D),g?(p.oldCssProps[_]=y.style[_],y.style[_]=T):y.style[_]=p.oldCssProps[_]||""}),g||(p.oldCssProps={}))}ai.prototype={defaults:{},set:function(p){return dn(this.options,p),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(p){if(uo(p,"recognizeWith",this))return this;var g=this.simultaneous;return g[(p=zo(p,this)).id]||(g[p.id]=p,p.recognizeWith(this)),this},dropRecognizeWith:function(p){return uo(p,"dropRecognizeWith",this)||(p=zo(p,this),delete this.simultaneous[p.id]),this},requireFailure:function(p){if(uo(p,"requireFailure",this))return this;var g=this.requireFail;return-1===fo(g,p=zo(p,this))&&(g.push(p),p.requireFailure(this)),this},dropRequireFailure:function(p){if(uo(p,"dropRequireFailure",this))return this;p=zo(p,this);var g=fo(this.requireFail,p);return g>-1&&this.requireFail.splice(g,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(p){return!!this.simultaneous[p.id]},emit:function(p){var g=this,y=this.state;function _(T){g.manager.emit(T,p)}y<Ii&&_(g.options.event+ic(y)),_(g.options.event),p.additionalEvent&&_(p.additionalEvent),y>=Ii&&_(g.options.event+ic(y))},tryEmit:function(p){if(this.canEmit())return this.emit(p);this.state=32},canEmit:function(){for(var p=0;p<this.requireFail.length;){if(!(this.requireFail[p].state&(32|yo)))return!1;p++}return!0},recognize:function(p){var g=dn({},p);if(!Ws(this.options.enable,[this,g]))return this.reset(),void(this.state=32);this.state&(Bn|bo|32)&&(this.state=yo),this.state=this.process(g),this.state&(un|si|Ii|bo)&&this.tryEmit(g)},process:function(p){},getTouchAction:function(){},reset:function(){}},Yt(Cn,ai,{defaults:{pointers:1},attrTest:function(p){var g=this.options.pointers;return 0===g||p.pointers.length===g},process:function(p){var g=this.state,y=p.eventType,_=g&(un|si),T=this.attrTest(p);return _&&(y&Et||!T)?g|bo:_||T?y&nt?g|Ii:g&un?g|si:un:32}}),Yt(Nr,Cn,{defaults:{event:"pan",threshold:10,pointers:1,direction:at},getTouchAction:function(){var p=this.options.direction,g=[];return p&Rn&&g.push(_o),p&Hi&&g.push(ri),g},directionTest:function(p){var g=this.options,y=!0,_=p.distance,T=p.direction,D=p.deltaX,j=p.deltaY;return T&g.direction||(g.direction&Rn?(T=0===D?kr:D<0?st:Bo,y=D!=this.pX,_=Math.abs(p.deltaX)):(T=0===j?kr:j<0?Lo:Vo,y=j!=this.pY,_=Math.abs(p.deltaY))),p.direction=T,y&&_>g.threshold&&T&g.direction},attrTest:function(p){return Cn.prototype.attrTest.call(this,p)&&(this.state&un||!(this.state&un)&&this.directionTest(p))},emit:function(p){this.pX=p.deltaX,this.pY=p.deltaY;var g=oc(p.direction);g&&(p.additionalEvent=this.options.event+g),this._super.emit.call(this,p)}}),Yt(zi,Cn,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ji]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.scale-1)>this.options.threshold||this.state&un)},emit:function(p){1!==p.scale&&(p.additionalEvent=this.options.event+(p.scale<1?"in":"out")),this._super.emit.call(this,p)}}),Yt($i,ai,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(p){var g=this.options,y=p.pointers.length===g.pointers,_=p.distance<g.threshold,T=p.deltaTime>g.time;if(this._input=p,!_||!y||p.eventType&(nt|Et)&&!T)this.reset();else if(p.eventType&ze)this.reset(),this._timer=Fo(function(){this.state=Bn,this.tryEmit()},g.time,this);else if(p.eventType&nt)return Bn;return 32},reset:function(){clearTimeout(this._timer)},emit:function(p){this.state===Bn&&(p&&p.eventType&nt?this.manager.emit(this.options.event+"up",p):(this._input.timeStamp=Er(),this.manager.emit(this.options.event,this._input)))}}),Yt(ra,Cn,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ji]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.rotation)>this.options.threshold||this.state&un)}}),Yt($o,Cn,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Rn|Hi,pointers:1},getTouchAction:function(){return Nr.prototype.getTouchAction.call(this)},attrTest:function(p){var y,g=this.options.direction;return g&(Rn|Hi)?y=p.overallVelocity:g&Rn?y=p.overallVelocityX:g&Hi&&(y=p.overallVelocityY),this._super.attrTest.call(this,p)&&g&p.offsetDirection&&p.distance>this.options.threshold&&p.maxPointers==this.options.pointers&&Fn(y)>this.options.velocity&&p.eventType&nt},emit:function(p){var g=oc(p.offsetDirection);g&&this.manager.emit(this.options.event+g,p),this.manager.emit(this.options.event,p)}}),Yt(Ee,ai,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Nn]},process:function(p){var g=this.options,y=p.pointers.length===g.pointers,_=p.distance<g.threshold,T=p.deltaTime<g.time;if(this.reset(),p.eventType&ze&&0===this.count)return this.failTimeout();if(_&&T&&y){if(p.eventType!=nt)return this.failTimeout();var D=!this.pTime||p.timeStamp-this.pTime<g.interval,j=!this.pCenter||Ho(this.pCenter,p.center)<g.posThreshold;if(this.pTime=p.timeStamp,this.pCenter=p.center,j&&D?this.count+=1:this.count=1,this._input=p,0==this.count%g.taps)return this.hasRequireFailures()?(this._timer=Fo(function(){this.state=Bn,this.tryEmit()},g.interval,this),un):Bn}return 32},failTimeout:function(){return this._timer=Fo(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Bn&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),li.VERSION="2.0.7",li.defaults={domEvents:!1,touchAction:Yl,enable:!0,inputTarget:null,inputClass:null,preset:[[ra,{enable:!1}],[zi,{enable:!1},["rotate"]],[$o,{direction:Rn}],[Nr,{direction:Rn},["swipe"]],[Ee],[Ee,{event:"doubletap",taps:2},["tap"]],[$i]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},sa.prototype={set:function(p){return dn(this.options,p),p.touchAction&&this.touchAction.update(),p.inputTarget&&(this.input.destroy(),this.input.target=p.inputTarget,this.input.init()),this},stop:function(p){this.session.stopped=p?2:1},recognize:function(p){var g=this.session;if(!g.stopped){this.touchAction.preventDefaults(p);var y,_=this.recognizers,T=g.curRecognizer;(!T||T&&T.state&Bn)&&(T=g.curRecognizer=null);for(var D=0;D<_.length;)y=_[D],2===g.stopped||T&&y!=T&&!y.canRecognizeWith(T)?y.reset():y.recognize(p),!T&&y.state&(un|si|Ii)&&(T=g.curRecognizer=y),D++}},get:function(p){if(p instanceof ai)return p;for(var g=this.recognizers,y=0;y<g.length;y++)if(g[y].options.event==p)return g[y];return null},add:function(p){if(uo(p,"add",this))return this;var g=this.get(p.options.event);return g&&this.remove(g),this.recognizers.push(p),p.manager=this,this.touchAction.update(),p},remove:function(p){if(uo(p,"remove",this))return this;if(p=this.get(p)){var g=this.recognizers,y=fo(g,p);-1!==y&&(g.splice(y,1),this.touchAction.update())}return this},on:function(p,g){if(p!==be&&g!==be){var y=this.handlers;return ni(ho(p),function(_){y[_]=y[_]||[],y[_].push(g)}),this}},off:function(p,g){if(p!==be){var y=this.handlers;return ni(ho(p),function(_){g?y[_]&&y[_].splice(fo(y[_],g),1):delete y[_]}),this}},emit:function(p,g){this.options.domEvents&&function Q(p,g){var y=Pr.createEvent("Event");y.initEvent(p,!0,!0),y.gesture=g,g.target.dispatchEvent(y)}(p,g);var y=this.handlers[p]&&this.handlers[p].slice();if(y&&y.length){g.type=p,g.preventDefault=function(){g.srcEvent.preventDefault()};for(var _=0;_<y.length;)y[_](g),_++}},destroy:function(){this.element&&Pe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},dn(li,{INPUT_START:ze,INPUT_MOVE:ii,INPUT_END:nt,INPUT_CANCEL:Et,STATE_POSSIBLE:yo,STATE_BEGAN:un,STATE_CHANGED:si,STATE_ENDED:Ii,STATE_RECOGNIZED:Bn,STATE_CANCELLED:bo,STATE_FAILED:32,DIRECTION_NONE:kr,DIRECTION_LEFT:st,DIRECTION_RIGHT:Bo,DIRECTION_UP:Lo,DIRECTION_DOWN:Vo,DIRECTION_HORIZONTAL:Rn,DIRECTION_VERTICAL:Hi,DIRECTION_ALL:at,Manager:sa,Input:Ht,TouchAction:tc,TouchInput:jo,MouseInput:Rr,PointerEventInput:ea,TouchMouseInput:Mt,SingleTouchInput:na,Recognizer:ai,AttrRecognizer:Cn,Tap:Ee,Pan:Nr,Swipe:$o,Pinch:zi,Rotate:ra,Press:$i,on:Ar,off:Si,each:ni,merge:Or,extend:Mi,assign:dn,inherit:Yt,bindFn:Ro,prefixed:qs}),(typeof kt<"u"?kt:typeof self<"u"?self:{}).Hammer=li,(ye=function(){return li}.call($s,Fl,$s,xr))!==be&&(xr.exports=ye)}(window,document)}},xr=>{xr(xr.s=894)}]);
