import{E as pe,F as me,H as U,J as ye,a as C,b as le,c as fe,d as f,l as he}from"./chunk-GR55BOSQ.js";import{Ad as ce,Bd as I,Cd as N,Db as E,Dd as x,Eb as S,Fb as ee,Gb as te,Ha as y,Hb as ne,Ia as m,Ib as re,Jb as oe,Kb as se,La as l,Lb as ie,Ma as q,Mb as g,Oa as A,Pd as ue,Qa as c,Qd as de,Sb as M,Wa as w,Za as W,Zb as ae,a as k,ac as v,b as G,cb as X,ob as _,ub as J,vb as O,wb as Q,xb as T,zb as j}from"./chunk-HC2G7LSI.js";var V=class extends fe{constructor(){super(...arguments),this.supportsDOMEvents=!0}},$=class s extends V{static makeCurrent(){le(new s)}onAndCancel(e,o,t){return e.addEventListener(o,t),()=>{e.removeEventListener(o,t)}}dispatchEvent(e,o){e.dispatchEvent(o)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,o){return o=o||this.getDefaultDocument(),o.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,o){return o==="window"?window:o==="document"?e:o==="body"?e.body:null}getBaseHref(e){let o=Re();return o==null?null:be(o)}resetBaseElement(){D=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return he(document.cookie,e)}},D=null;function Re(){return D=D||document.querySelector("base"),D?D.getAttribute("href"):null}function be(s){return new URL(s,document.baseURI).pathname}var K=class{addToWindow(e){m.getAngularTestability=(t,n=!0)=>{let r=e.findTestabilityInTree(t,n);if(r==null)throw new y(5103,!1);return r},m.getAllAngularTestabilities=()=>e.getAllTestabilities(),m.getAllAngularRootElements=()=>e.getAllRootElements();let o=t=>{let n=m.getAllAngularTestabilities(),r=n.length,i=function(){r--,r==0&&t()};n.forEach(a=>{a.whenStable(i)})};m.frameworkStabilizers||(m.frameworkStabilizers=[]),m.frameworkStabilizers.push(o)}findTestabilityInTree(e,o,t){if(o==null)return null;let n=e.getTestability(o);return n??(t?C().isShadowRoot(o)?this.findTestabilityInTree(e,o.host,!0):this.findTestabilityInTree(e,o.parentElement,!0):null)}},Ae=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=l({token:e,factory:e.\u0275fac});let s=e;return s})(),Z=new A(""),Se=(()=>{let e=class e{constructor(t,n){this._zone=n,this._eventNameToPlugin=new Map,t.forEach(r=>{r.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,n,r){return this._findPluginFor(n).addEventListener(t,n,r)}getZone(){return this._zone}_findPluginFor(t){let n=this._eventNameToPlugin.get(t);if(n)return n;if(n=this._plugins.find(i=>i.supports(t)),!n)throw new y(5101,!1);return this._eventNameToPlugin.set(t,n),n}};e.\u0275fac=function(n){return new(n||e)(c(Z),c(v))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let s=e;return s})(),P=class{constructor(e){this._doc=e}},F="ng-app-id",we=(()=>{let e=class e{constructor(t,n,r,i={}){this.doc=t,this.appId=n,this.nonce=r,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=U(i),this.resetHostNodes()}addStyles(t){for(let n of t)this.changeUsageCount(n,1)===1&&this.onStyleAdded(n)}removeStyles(t){for(let n of t)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(n=>n.remove()),t.clear());for(let n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let n of this.getAllStyles())this.addStyleToHost(t,n)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let n of this.hostNodes)this.addStyleToHost(n,t)}onStyleRemoved(t){let n=this.styleRef;n.get(t)?.elements?.forEach(r=>r.remove()),n.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${F}="${this.appId}"]`);if(t?.length){let n=new Map;return t.forEach(r=>{r.textContent!=null&&n.set(r.textContent,r)}),n}return null}changeUsageCount(t,n){let r=this.styleRef;if(r.has(t)){let i=r.get(t);return i.usage+=n,i.usage}return r.set(t,{usage:n,elements:[]}),n}getStyleElement(t,n){let r=this.styleNodesInDOM,i=r?.get(n);if(i?.parentNode===t)return r.delete(n),i.removeAttribute(F),i;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=n,this.platformIsServer&&a.setAttribute(F,this.appId),t.appendChild(a),a}}addStyleToHost(t,n){let r=this.getStyleElement(t,n),i=this.styleRef,a=i.get(n)?.elements;a?a.push(r):i.set(n,{elements:[r],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(n){return new(n||e)(c(f),c(O),c(j,8),c(T))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let s=e;return s})(),B={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/"},Y=/%COMP%/g,Te="%COMP%",Oe=`_nghost-${Te}`,Ie=`_ngcontent-${Te}`,Ne=!0,Pe=new A("",{providedIn:"root",factory:()=>Ne});function Le(s){return Ie.replace(Y,s)}function He(s){return Oe.replace(Y,s)}function Me(s,e){return e.map(o=>o.replace(Y,s))}var ge=(()=>{let e=class e{constructor(t,n,r,i,a,u,d,h=null){this.eventManager=t,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestroy=i,this.doc=a,this.platformId=u,this.ngZone=d,this.nonce=h,this.rendererByCompId=new Map,this.platformIsServer=U(u),this.defaultRenderer=new R(t,a,d,this.platformIsServer)}createRenderer(t,n){if(!t||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===w.ShadowDom&&(n=G(k({},n),{encapsulation:w.Emulated}));let r=this.getOrCreateRenderer(t,n);return r instanceof L?r.applyToHost(t):r instanceof b&&r.applyStyles(),r}getOrCreateRenderer(t,n){let r=this.rendererByCompId,i=r.get(n.id);if(!i){let a=this.doc,u=this.ngZone,d=this.eventManager,h=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,H=this.platformIsServer;switch(n.encapsulation){case w.Emulated:i=new L(d,h,n,this.appId,p,a,u,H);break;case w.ShadowDom:return new z(d,h,t,n,a,u,this.nonce,H);default:i=new b(d,h,n,p,a,u,H);break}r.set(n.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(n){return new(n||e)(c(Se),c(we),c(O),c(Pe),c(f),c(T),c(v),c(j))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let s=e;return s})(),R=class{constructor(e,o,t,n){this.eventManager=e,this.doc=o,this.ngZone=t,this.platformIsServer=n,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,o){return o?this.doc.createElementNS(B[o]||o,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,o){(ve(e)?e.content:e).appendChild(o)}insertBefore(e,o,t){e&&(ve(e)?e.content:e).insertBefore(o,t)}removeChild(e,o){e&&e.removeChild(o)}selectRootElement(e,o){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new y(-5104,!1);return o||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,o,t,n){if(n){o=n+":"+o;let r=B[n];r?e.setAttributeNS(r,o,t):e.setAttribute(o,t)}else e.setAttribute(o,t)}removeAttribute(e,o,t){if(t){let n=B[t];n?e.removeAttributeNS(n,o):e.removeAttribute(`${t}:${o}`)}else e.removeAttribute(o)}addClass(e,o){e.classList.add(o)}removeClass(e,o){e.classList.remove(o)}setStyle(e,o,t,n){n&(M.DashCase|M.Important)?e.style.setProperty(o,t,n&M.Important?"important":""):e.style[o]=t}removeStyle(e,o,t){t&M.DashCase?e.style.removeProperty(o):e.style[o]=""}setProperty(e,o,t){e!=null&&(e[o]=t)}setValue(e,o){e.nodeValue=o}listen(e,o,t){if(typeof e=="string"&&(e=C().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${o}`);return this.eventManager.addEventListener(e,o,this.decoratePreventDefault(t))}decoratePreventDefault(e){return o=>{if(o==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(o)):e(o))===!1&&o.preventDefault()}}};function ve(s){return s.tagName==="TEMPLATE"&&s.content!==void 0}var z=class extends R{constructor(e,o,t,n,r,i,a,u){super(e,r,i,u),this.sharedStylesHost=o,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=Me(n.id,n.styles);for(let h of d){let p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=h,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,o){return super.appendChild(this.nodeOrShadowRoot(e),o)}insertBefore(e,o,t){return super.insertBefore(this.nodeOrShadowRoot(e),o,t)}removeChild(e,o){return super.removeChild(this.nodeOrShadowRoot(e),o)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},b=class extends R{constructor(e,o,t,n,r,i,a,u){super(e,r,i,a),this.sharedStylesHost=o,this.removeStylesOnCompDestroy=n,this.styles=u?Me(u,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},L=class extends b{constructor(e,o,t,n,r,i,a,u){let d=n+"-"+t.id;super(e,o,t,r,i,a,u,d),this.contentAttr=Le(d),this.hostAttr=He(d)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,o){let t=super.createElement(e,o);return super.setAttribute(t,this.contentAttr,""),t}},ke=(()=>{let e=class e extends P{constructor(t){super(t)}supports(t){return!0}addEventListener(t,n,r){return t.addEventListener(n,r,!1),()=>this.removeEventListener(t,n,r)}removeEventListener(t,n,r){return t.removeEventListener(n,r)}};e.\u0275fac=function(n){return new(n||e)(c(f))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let s=e;return s})(),Ee=["alt","control","meta","shift"],_e={"\b":"Backspace","	":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},je={alt:s=>s.altKey,control:s=>s.ctrlKey,meta:s=>s.metaKey,shift:s=>s.shiftKey},xe=(()=>{let e=class e extends P{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,n,r){let i=e.parseEventName(n),a=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>C().onAndCancel(t,i.domEventName,a))}static parseEventName(t){let n=t.toLowerCase().split("."),r=n.shift();if(n.length===0||!(r==="keydown"||r==="keyup"))return null;let i=e._normalizeKey(n.pop()),a="",u=n.indexOf("code");if(u>-1&&(n.splice(u,1),a="code."),Ee.forEach(h=>{let p=n.indexOf(h);p>-1&&(n.splice(p,1),a+=h+".")}),a+=i,n.length!=0||i.length===0)return null;let d={};return d.domEventName=r,d.fullKey=a,d}static matchEventFullKeyCode(t,n){let r=_e[t.key]||t.key,i="";return n.indexOf("code.")>-1&&(r=t.code,i="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),Ee.forEach(a=>{if(a!==r){let u=je[a];u(t)&&(i+=a+".")}}),i+=r,i===n)}static eventCallback(t,n,r){return i=>{e.matchEventFullKeyCode(i,t)&&r.runGuarded(()=>n(i))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(n){return new(n||e)(c(f))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let s=e;return s})();function yt(s,e){return de(k({rootComponent:s},Ue(e)))}function Ue(s){return{appProviders:[...Ce,...s?.providers??[]],platformProviders:$e}}function Fe(){$.makeCurrent()}function Be(){return new _}function Ve(){return J(document),document}var $e=[{provide:T,useValue:me},{provide:Q,useValue:Fe,multi:!0},{provide:f,useFactory:Ve,deps:[]}];var Ke=new A(""),Ze=[{provide:I,useClass:K,deps:[]},{provide:ce,useClass:N,deps:[v,x,I]},{provide:N,useClass:N,deps:[v,x,I]}],Ce=[{provide:X,useValue:"root"},{provide:_,useFactory:Be,deps:[]},{provide:Z,useClass:ke,multi:!0,deps:[f,v,T]},{provide:Z,useClass:xe,multi:!0,deps:[f]},ge,we,Se,{provide:ae,useExisting:ge},{provide:ye,useClass:Ae,deps:[]},[]],gt=(()=>{let e=class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:O,useValue:t.appId}]}}};e.\u0275fac=function(n){return new(n||e)(c(Ke,12))},e.\u0275mod=W({type:e}),e.\u0275inj=q({providers:[...Ce,...Ze],imports:[pe,ue]});let s=e;return s})(),vt=(()=>{let e=class e{constructor(t){this._doc=t,this._dom=C()}addTag(t,n=!1){return t?this._getOrCreateElement(t,n):null}addTags(t,n=!1){return t?t.reduce((r,i)=>(i&&r.push(this._getOrCreateElement(i,n)),r),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];let n=this._doc.querySelectorAll(`meta[${t}]`);return n?[].slice.call(n):[]}updateTag(t,n){if(!t)return null;n=n||this._parseSelector(t);let r=this.getTag(n);return r?this._setMetaElementAttributes(t,r):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,n=!1){if(!n){let a=this._parseSelector(t),u=this.getTags(a).filter(d=>this._containsAttributes(t,d))[0];if(u!==void 0)return u}let r=this._dom.createElement("meta");return this._setMetaElementAttributes(t,r),this._doc.getElementsByTagName("head")[0].appendChild(r),r}_setMetaElementAttributes(t,n){return Object.keys(t).forEach(r=>n.setAttribute(this._getMetaKeyMap(r),t[r])),n}_parseSelector(t){let n=t.name?"name":"property";return`${n}="${t[n]}"`}_containsAttributes(t,n){return Object.keys(t).every(r=>n.getAttribute(this._getMetaKeyMap(r))===t[r])}_getMetaKeyMap(t){return ze[t]||t}};e.\u0275fac=function(n){return new(n||e)(c(f))},e.\u0275prov=l({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),ze={httpEquiv:"http-equiv"},Et=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(n){return new(n||e)(c(f))},e.\u0275prov=l({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var Ye=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=l({token:e,factory:function(n){let r=null;return n?r=new(n||e):r=c(Ge),r},providedIn:"root"});let s=e;return s})(),Ge=(()=>{let e=class e extends Ye{constructor(t){super(),this._doc=t}sanitize(t,n){if(n==null)return null;switch(t){case g.NONE:return n;case g.HTML:return S(n,"HTML")?E(n):ie(this._doc,String(n)).toString();case g.STYLE:return S(n,"Style")?E(n):n;case g.SCRIPT:if(S(n,"Script"))return E(n);throw new y(5200,!1);case g.URL:return S(n,"URL")?E(n):se(String(n));case g.RESOURCE_URL:if(S(n,"ResourceURL"))return E(n);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(t){return ee(t)}bypassSecurityTrustStyle(t){return te(t)}bypassSecurityTrustScript(t){return ne(t)}bypassSecurityTrustUrl(t){return re(t)}bypassSecurityTrustResourceUrl(t){return oe(t)}};e.\u0275fac=function(n){return new(n||e)(c(f))},e.\u0275prov=l({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();export{ge as a,yt as b,gt as c,vt as d,Et as e,Ye as f};