diff --git a/chunk-JUMNKZRS.js b/chunk-ODWGZIIL.js similarity index 99% rename from chunk-JUMNKZRS.js rename to chunk-ODWGZIIL.js index 88f3115..00194d4 100644 --- a/chunk-JUMNKZRS.js +++ b/chunk-ODWGZIIL.js @@ -1 +1 @@ -import{L as E,M as gt,a as ue,c as pt}from"./chunk-V6SH2TEE.js";var _=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(_||{}),B="*";function yt(n,e=null){return{type:_.Sequence,steps:n,options:e}}function Me(n){return{type:_.Style,styles:n,offset:null}}var U=class{constructor(e=0,t=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=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ie=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,s=0,i=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==r&&this._onFinish()}),o.onDestroy(()=>{++s==r&&this._onDestroy()}),o.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(s=>{let i=s.totalTime?Math.min(1,t/s.totalTime):1;s.setPosition(i)})}getPosition(){let e=this.players.reduce((t,s)=>t===null||s.totalTime>t.totalTime?s:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ce="!";function _t(n){return new E(3e3,!1)}function Ht(){return new E(3100,!1)}function Yt(){return new E(3101,!1)}function Xt(n){return new E(3001,!1)}function xt(n){return new E(3003,!1)}function Zt(n){return new E(3004,!1)}function Jt(n,e){return new E(3005,!1)}function es(){return new E(3006,!1)}function ts(){return new E(3007,!1)}function ss(n,e){return new E(3008,!1)}function is(n){return new E(3002,!1)}function ns(n,e,t,s,i){return new E(3010,!1)}function rs(){return new E(3011,!1)}function os(){return new E(3012,!1)}function as(){return new E(3200,!1)}function ls(){return new E(3202,!1)}function hs(){return new E(3013,!1)}function us(n){return new E(3014,!1)}function cs(n){return new E(3015,!1)}function fs(n){return new E(3016,!1)}function ds(n){return new E(3500,!1)}function ms(n){return new E(3501,!1)}function ps(n,e){return new E(3404,!1)}function gs(n){return new E(3502,!1)}function ys(n){return new E(3503,!1)}function _s(){return new E(3300,!1)}function Ss(n){return new E(3504,!1)}function Es(n){return new E(3301,!1)}function vs(n,e){return new E(3302,!1)}function Ts(n){return new E(3303,!1)}function ws(n,e){return new E(3400,!1)}function bs(n){return new E(3401,!1)}function Ps(n){return new E(3402,!1)}function As(n,e){return new E(3505,!1)}var Ns=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function j(n){switch(n.length){case 0:return new U;case 1:return n[0];default:return new ie(n)}}function It(n,e,t=new Map,s=new Map){let i=[],r=[],o=-1,a=null;if(e.forEach(l=>{let h=l.get("offset"),c=h==o,u=c&&a||new Map;l.forEach((S,y)=>{let d=y,g=S;if(y!=="offset")switch(d=n.normalizePropertyName(d,i),g){case ce:g=t.get(y);break;case B:g=s.get(y);break;default:g=n.normalizeStyleValue(y,d,g,i);break}u.set(d,g)}),c||r.push(u),a=u,o=h}),i.length)throw gs(i);return r}function tt(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&Ce(t,"start",n)));break;case"done":n.onDone(()=>s(t&&Ce(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&Ce(t,"destroy",n)));break}}function Ce(n,e,t){let s=t.totalTime,i=!!t.disabled,r=st(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),o=n._data;return o!=null&&(r._data=o),r}function st(n,e,t,s,i="",r=0,o){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!o}}function O(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function St(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var Ds=typeof document>"u"?null:document.documentElement;function it(n){let e=n.parentNode||n.host||null;return e===Ds?null:e}function Ms(n){return n.substring(1,6)=="ebkit"}var Y=null,Et=!1;function Cs(n){Y||(Y=ks()||{},Et=Y.style?"WebkitAppearance"in Y.style:!1);let e=!0;return Y.style&&!Ms(n)&&(e=n in Y.style,!e&&Et&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Y.style)),e}function Ai(n){return Ns.has(n)}function ks(){return typeof document<"u"?document.body:null}function Kt(n,e){for(;e;){if(e===n)return!0;e=it(e)}return!1}function qt(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var zt=(()=>{let e=class e{validateStyleProperty(s){return Cs(s)}matchesElement(s,i){return!1}containsElement(s,i){return Kt(s,i)}getParentElement(s){return it(s)}query(s,i,r){return qt(s,i,r)}computeStyle(s,i,r){return r||""}animate(s,i,r,o,a,l=[],h){return new U(r,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=gt({token:e,factory:e.\u0275fac});let n=e;return n})(),ut=class ut{};ut.NOOP=new zt;var vt=ut,Ie=class{},Ke=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,i){return s}},Fs=1e3,Bt="{{",Rs="}}",nt="ng-enter",ye="ng-leave",fe="ng-trigger",_e=".ng-trigger",Tt="ng-animating",qe=".ng-animating";function $(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ze(parseFloat(e[1]),e[2])}function ze(n,e){switch(e){case"s":return n*Fs;default:return n}}function Se(n,e,t){return n.hasOwnProperty("duration")?n:Os(n,e,t)}function Os(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,o="";if(typeof n=="string"){let a=n.match(s);if(a===null)return e.push(_t(n)),{duration:0,delay:0,easing:""};i=ze(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=ze(parseFloat(l),a[4]));let h=a[5];h&&(o=h)}else i=n;if(!t){let a=!1,l=e.length;i<0&&(e.push(Ht()),a=!0),r<0&&(e.push(Yt()),a=!0),a&&e.splice(l,0,_t(n))}return{duration:i,delay:r,easing:o}}function Ls(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function wt(n){return Array.isArray(n)?new Map(...n):new Map(n)}function Q(n,e,t){e.forEach((s,i)=>{let r=rt(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function x(n,e){e.forEach((t,s)=>{let i=rt(s);n.style[i]=""})}function ne(n){return Array.isArray(n)?n.length==1?n[0]:yt(n):n}function Is(n,e,t){let s=e.params||{},i=Qt(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(Xt(r))})}var Be=new RegExp(`${Bt}\\s*(.+?)\\s*${Rs}`,"g");function Qt(n){let e=[];if(typeof n=="string"){let t;for(;t=Be.exec(n);)e.push(t[1]);Be.lastIndex=0}return e}function oe(n,e,t){let s=`${n}`,i=s.replace(Be,(r,o)=>{let a=e[o];return a==null&&(t.push(xt(o)),a=""),a.toString()});return i==s?n:i}var Ks=/-+([a-z0-9])/g;function rt(n){return n.replace(Ks,(...e)=>e[1].toUpperCase())}function Ni(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function qs(n,e){return n===0||e===0}function zs(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,o)=>{s.has(o)||i.push(o),s.set(o,r)}),i.length)for(let r=1;ro.set(a,ot(n,a)))}}return e}function R(n,e,t){switch(e.type){case _.Trigger:return n.visitTrigger(e,t);case _.State:return n.visitState(e,t);case _.Transition:return n.visitTransition(e,t);case _.Sequence:return n.visitSequence(e,t);case _.Group:return n.visitGroup(e,t);case _.Animate:return n.visitAnimate(e,t);case _.Keyframes:return n.visitKeyframes(e,t);case _.Style:return n.visitStyle(e,t);case _.Reference:return n.visitReference(e,t);case _.AnimateChild:return n.visitAnimateChild(e,t);case _.AnimateRef:return n.visitAnimateRef(e,t);case _.Query:return n.visitQuery(e,t);case _.Stagger:return n.visitStagger(e,t);default:throw Zt(e.type)}}function ot(n,e){return window.getComputedStyle(n)[e]}var Bs=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"]),Qe=class extends Ie{normalizePropertyName(e,t){return rt(e)}normalizeStyleValue(e,t,s,i){let r="",o=s.toString().trim();if(Bs.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(Jt(e,s))}return o+r}};var Ee="*";function Qs(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>$s(s,t,e)):t.push(n),t}function $s(n,e,t){if(n[0]==":"){let l=Vs(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(cs(n)),e;let i=s[1],r=s[2],o=s[3];e.push(bt(i,o));let a=i==Ee&&o==Ee;r[0]=="<"&&!a&&e.push(bt(o,i))}function Vs(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var de=new Set(["true","1"]),me=new Set(["false","0"]);function bt(n,e){let t=de.has(n)||me.has(n),s=de.has(e)||me.has(e);return(i,r)=>{let o=n==Ee||n==i,a=e==Ee||e==r;return!o&&t&&typeof i=="boolean"&&(o=i?de.has(n):me.has(n)),!a&&s&&typeof r=="boolean"&&(a=r?de.has(e):me.has(e)),o&&a}}var $t=":self",Us=new RegExp(`s*${$t}s*,?`,"g");function at(n,e,t,s){return new $e(n).build(e,t,s)}var Pt="",$e=class{constructor(e){this._driver=e}build(e,t,s){let i=new Ve(t);return this._resetContextStyleTimingState(i),R(this,ne(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Pt,e.collectedStyles=new Map,e.collectedStyles.set(Pt,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(es()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==_.State){let l=a,h=l.name;h.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=h}else if(a.type==_.Transition){let l=this.visitTransition(a,t);s+=l.queryCount,i+=l.depCount,o.push(l)}else t.errors.push(ts())}),{type:_.Trigger,name:e.name,states:r,transitions:o,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,o=i||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Qt(l).forEach(h=>{o.hasOwnProperty(h)||r.add(h)})})}),r.size&&t.errors.push(ss(e.name,[...r.values()]))}return{type:_.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=R(this,ne(e.animation),t),i=Qs(e.expr,t.errors);return{type:_.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:X(e.options)}}visitSequence(e,t){return{type:_.Sequence,steps:e.steps.map(s=>R(this,s,t)),options:X(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(o=>{t.currentTime=s;let a=R(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:_.Group,steps:r,options:X(e.options)}}visitAnimate(e,t){let s=Hs(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:Me({});if(r.type==_.Keyframes)i=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let h={};s.easing&&(h.easing=s.easing),o=Me(h)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:_.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===B?s.push(a):t.errors.push(is(a)):s.push(new Map(Object.entries(a)));let r=!1,o=null;return s.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(Bt)>=0){r=!0;break}}}),{type:_.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let h=t.collectedStyles.get(t.currentQuerySelector),c=h.get(l),u=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push(ns(l,c.startTime,c.endTime,r,i)),u=!1),r=c.startTime),u&&h.set(l,{startTime:r,endTime:i}),t.options&&Is(a,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(rs()),s;let i=1,r=0,o=[],a=!1,l=!1,h=0,c=e.steps.map(b=>{let P=this._makeStyleAst(b,t),M=P.offset!=null?P.offset:Gs(P.styles),N=0;return M!=null&&(r++,N=P.offset=M),l=l||N<0||N>1,a=a||N0&&r{let M=S>0?P==y?1:S*P:o[P],N=M*T;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(b,t),b.offset=M,s.styles.push(b)}),s}visitReference(e,t){return{type:_.Reference,animation:R(this,ne(e.animation),t),options:X(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:X(e.options)}}visitAnimateRef(e,t){return{type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:X(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=js(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,O(t.collectedStyles,t.currentQuerySelector,new Map);let a=R(this,ne(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:_.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:X(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(hs());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Se(e.timings,t.errors,!0);return{type:_.Stagger,animation:R(this,ne(e.animation),t),timings:s,options:null}}};function js(n){let e=!!n.split(/\s*,\s*/).find(t=>t==$t);return e&&(n=n.replace(Us,"")),n=n.replace(/@\*/g,_e).replace(/@\w+/g,t=>_e+"-"+t.slice(1)).replace(/:animating/g,qe),[n,e]}function Ws(n){return n?ue({},n):null}var Ve=class{constructor(e){this.errors=e,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 Gs(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Hs(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=Se(n,e).duration;return ke(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ke(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=Se(t,e);return ke(i.duration,i.delay,i.easing)}function X(n){return n?(n=ue({},n),n.params&&(n.params=Ws(n.params))):n={},n}function ke(n,e,t){return{duration:n,delay:e,easing:t}}function lt(n,e,t,s,i,r,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}var se=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ys=1,Xs=":enter",xs=new RegExp(Xs,"g"),Zs=":leave",Js=new RegExp(Zs,"g");function ht(n,e,t,s,i,r=new Map,o=new Map,a,l,h=[]){return new Ue().buildKeyframes(n,e,t,s,i,r,o,a,l,h)}var Ue=class{buildKeyframes(e,t,s,i,r,o,a,l,h,c=[]){h=h||new se;let u=new je(e,t,h,i,r,c,[]);u.options=l;let S=l.delay?$(l.delay):0;u.currentTimeline.delayNextStep(S),u.currentTimeline.setStyles([o],null,u.errors,l),R(this,s,u);let y=u.timelines.filter(d=>d.containsAnimation());if(y.length&&a.size){let d;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){d=T;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([a],null,u.errors,l)}return y.length?y.map(d=>d.buildKeyframes()):[lt(t,[],[],[],0,S,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let o=typeof r=="number"?r:$(oe(r,i?.params??{},t.errors));s.delayNextStep(o)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,o=s.duration!=null?$(s.duration):null,a=s.delay!=null?$(s.delay):null;return o!==0&&e.forEach(l=>{let h=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,h.duration+h.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),R(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==_.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ve);let o=$(r.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>R(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?$(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),R(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),s.push(a.currentTimeline)}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?oe(s,t.params,t.errors):s;return Se(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,a=t.createSubContext().currentTimeline;a.easing=s.easing,e.styles.forEach(l=>{let h=l.offset||0;a.forwardTime(h*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?$(i.delay):0;r&&(t.previousNode.type===_.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ve);let o=s,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((h,c)=>{t.currentQueryIndex=c;let u=t.createSubContext(e.options,h);r&&u.delayNextStep(r),h===t.element&&(l=u.currentTimeline),R(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let S=u.currentTimeline.currentTime;o=Math.max(o,S)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=s.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let u=c.currentTime;R(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-u+(i.startTime-s.currentTimeline.startTime)}},ve={},je=class n{constructor(e,t,s,i,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ve,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Te(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=$(s.duration)),s.delay!=null&&(i.delay=$(s.delay));let r=s.params;if(r){let o=i.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=oe(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=ve,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new We(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,o){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(xs,"."+this._enterClassName),e=e.replace(Js,"."+this._leaveClassName);let l=s!=1,h=this._driver.query(this.element,e,l);s!==0&&(h=s<0?h.slice(h.length+s,h.length):h.slice(0,s)),a.push(...h)}return!r&&a.length==0&&o.push(us(t)),a}},Te=class n{constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||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+=Ys,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},o=ei(e,this._globalTimelineStyles);for(let[a,l]of o){let h=oe(l,r,s);this._pendingStyles.set(a,h),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??B),this._updateStyle(a,h)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,l)=>{let h=new Map([...this._backFill,...a]);h.forEach((c,u)=>{c===ce?e.add(u):c===B&&t.add(u)}),s||h.set("offset",l/this.duration),i.push(h)});let r=[...e.values()],o=[...t.values()];if(s){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return lt(this.element,i,r,o,this.duration,this.startTime,this.easing,!1)}},We=class extends Te{constructor(e,t,s,i,r,o,a=!1){super(e,t,o.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=s+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let h=new Map(e[0]);h.set("offset",At(a)),r.push(h);let c=e.length-1;for(let u=1;u<=c;u++){let S=new Map(e[u]),y=S.get("offset"),d=t+y*s;S.set("offset",At(d/o)),r.push(S)}s=o,t=0,i="",e=r}return lt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}};function At(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function ei(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,B)}else for(let[r,o]of i)t.set(r,o)}),t}function Nt(n,e,t,s,i,r,o,a,l,h,c,u,S){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:S}}var Fe={},we=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return ti(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,o,a,l,h,c){let u=[],S=this.ast.options&&this.ast.options.params||Fe,y=a&&a.params||Fe,d=this.buildStyles(s,y,u),g=l&&l.params||Fe,T=this.buildStyles(i,g,u),b=new Set,P=new Map,M=new Map,N=i==="void",Z={params:Vt(g,S),delay:this.ast.options?.delay},q=c?[]:ht(e,t,this.ast.animation,r,o,d,T,Z,h,u),C=0;return q.forEach(k=>{C=Math.max(k.duration+k.delay,C)}),u.length?Nt(t,this._triggerName,s,i,N,d,T,[],[],P,M,C,u):(q.forEach(k=>{let W=k.element,J=O(P,W,new Set);k.preStyleProps.forEach(G=>J.add(G));let ct=O(M,W,new Set);k.postStyleProps.forEach(G=>ct.add(G)),W!==t&&b.add(W)}),Nt(t,this._triggerName,s,i,N,d,T,q,[...b.values()],P,M,C))}};function ti(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function Vt(n,e){let t=ue({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var Ge=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=Vt(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=oe(o,i,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o)})}),s}};function si(n,e,t){return new He(n,e,t)}var He=class{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new Ge(i.style,r,s))}),Dt(this.states,"true","1"),Dt(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new we(e,i,this.states))}),this.fallbackTransition=ii(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(o=>o.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ii(n,e,t){let s=[(o,a)=>!0],i={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new we(n,r,e)}function Dt(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var ni=new se,Ye=class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let s=[],i=[],r=at(this._driver,t,s,i);if(s.length)throw ys(s);i.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=It(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),o,a=new Map;if(r?(o=ht(this._driver,t,r,nt,ye,new Map,new Map,s,ni,i),o.forEach(c=>{let u=O(a,c.element,new Map);c.postStyleProps.forEach(S=>u.set(S,null))})):(i.push(_s()),o=[]),i.length)throw Ss(i);a.forEach((c,u)=>{c.forEach((S,y)=>{c.set(y,this._driver.computeStyle(u,y,B))})});let l=o.map(c=>{let u=a.get(c.element);return this._buildPlayer(c,new Map,u)}),h=j(l);return this._playersById.set(e,h),h.onDestroy(()=>this.destroy(e)),this.players.push(h),h}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Es(e);return t}listen(e,t,s,i){let r=st(t,"","","");return tt(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let o=i[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(s){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(i[0]));break;case"destroy":this.destroy(e);break}}},Mt="ng-animate-queued",ri=".ng-animate-queued",Re="ng-animate-disabled",oi=".ng-animate-disabled",ai="ng-star-inserted",li=".ng-star-inserted",hi=[],Ut={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ui={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},K="__ng_removed",ae=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=fi(i),s){let r=e,{value:o}=r,a=pt(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},re="void",Oe=new ae(re),Xe=class{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw vs(s,t);if(s==null||s.length==0)throw Ts(t);if(!di(s))throw ws(s,t);let r=O(this._elementListeners,e,[]),o={name:t,phase:s,callback:i};r.push(o);let a=O(this._engine.statesByElement,e,new Map);return a.has(t)||(I(e,fe),I(e,fe+"-"+t),a.set(t,Oe)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw bs(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),o=new le(this.id,t,e),a=this._engine.statesByElement.get(e);a||(I(e,fe),I(e,fe+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),h=new ae(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&h.absorbOptions(l.options),a.set(t,h),l||(l=Oe),!(h.value===re)&&l.value===h.value){if(!gi(l.params,h.params)){let g=[],T=r.matchStyles(l.value,l.params,g),b=r.matchStyles(h.value,h.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{x(e,T),Q(e,b)})}return}let S=O(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,h.value,e,h.params),d=!1;if(!y){if(!i)return;y=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:h,player:o,isFallbackTransition:d}),d||(I(e,Mt),o.onStart(()=>{ee(e,Mt)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let b=T.indexOf(o);b>=0&&T.splice(b,1)}}),this.players.push(o),S.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,_e,!0);s.forEach(i=>{if(i[K])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,h)=>{if(o.set(h,l.value),this._triggers.has(h)){let c=this.trigger(e,h,re,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),s&&j(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let o=r.name;if(i.has(o))return;i.add(o);let l=this._triggers.get(o).fallbackTransition,h=s.get(o)||Oe,c=new ae(re),u=new le(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:h,toState:c,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[K];(!r||r===Ut)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==s.triggerName){let l=st(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,tt(s.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,o=i.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},xe=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s,i){this.bodyNode=e,this.driver=t,this._normalizer=s,this.scheduler=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=(r,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Xe(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=i.get(a);if(l){let h=s.indexOf(l);s.splice(h+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(pe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!pe(t))return;let r=t[K];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Re)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,Re))}removeNode(e,t,s){if(pe(t)){this.scheduler?.notify();let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[K]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return pe(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,_e,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,qe,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return j(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[K];if(t&&t.setForRemoval){if(e[K]=Ut,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Re)&&this.markElementAsDisabled(e,!1),this.driver.query(e,oi,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?j(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw Ps(e)}_flushAnimations(e,t){let s=new se,i=[],r=new Map,o=[],a=new Map,l=new Map,h=new Map,c=new Set;this.disabledNodes.forEach(f=>{c.add(f);let m=this.driver.query(f,ri,!0);for(let p=0;p{let p=nt+g++;d.set(m,p),f.forEach(v=>I(v,p))});let T=[],b=new Set,P=new Set;for(let f=0;fb.add(v)):P.add(m))}let M=new Map,N=Ft(S,Array.from(b));N.forEach((f,m)=>{let p=ye+g++;M.set(m,p),f.forEach(v=>I(v,p))}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(v=>ee(v,p))}),N.forEach((f,m)=>{let p=M.get(m);f.forEach(v=>ee(v,p))}),T.forEach(f=>{this.processLeaveNode(f)})});let Z=[],q=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let v=p.player,A=p.element;if(Z.push(v),this.collectedEnterElements.length){let D=A[K];if(D&&D.setForMove){if(D.previousTriggersValues&&D.previousTriggersValues.has(p.triggerName)){let H=D.previousTriggersValues.get(p.triggerName),L=this.statesByElement.get(p.element);if(L&&L.has(p.triggerName)){let he=L.get(p.triggerName);he.value=H,L.set(p.triggerName,he)}}v.destroy();return}}let z=!u||!this.driver.containsElement(u,A),F=M.get(A),V=d.get(A),w=this._buildInstruction(p,s,V,F,z);if(w.errors&&w.errors.length){q.push(w);return}if(z){v.onStart(()=>x(A,w.fromStyles)),v.onDestroy(()=>Q(A,w.toStyles)),i.push(v);return}if(p.isFallbackTransition){v.onStart(()=>x(A,w.fromStyles)),v.onDestroy(()=>Q(A,w.toStyles)),i.push(v);return}let mt=[];w.timelines.forEach(D=>{D.stretchStartingKeyframe=!0,this.disabledNodes.has(D.element)||mt.push(D)}),w.timelines=mt,s.append(A,w.timelines);let Gt={instruction:w,player:v,element:A};o.push(Gt),w.queriedElements.forEach(D=>O(a,D,[]).push(v)),w.preStyleProps.forEach((D,H)=>{if(D.size){let L=l.get(H);L||l.set(H,L=new Set),D.forEach((he,De)=>L.add(De))}}),w.postStyleProps.forEach((D,H)=>{let L=h.get(H);L||h.set(H,L=new Set),D.forEach((he,De)=>L.add(De))})});if(q.length){let f=[];q.forEach(m=>{f.push(As(m.triggerName,m.errors))}),Z.forEach(m=>m.destroy()),this.reportError(f)}let C=new Map,k=new Map;o.forEach(f=>{let m=f.element;s.has(m)&&(k.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,C))}),i.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(v=>{O(C,m,[]).push(v),v.destroy()})});let W=T.filter(f=>Rt(f,l,h)),J=new Map;kt(J,this.driver,P,h,B).forEach(f=>{Rt(f,l,h)&&W.push(f)});let G=new Map;y.forEach((f,m)=>{kt(G,this.driver,new Set(f),l,ce)}),W.forEach(f=>{let m=J.get(f),p=G.get(f);J.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Ne=[],ft=[],dt={};o.forEach(f=>{let{element:m,player:p,instruction:v}=f;if(s.has(m)){if(c.has(m)){p.onDestroy(()=>Q(m,v.toStyles)),p.disabled=!0,p.overrideTotalTime(v.totalTime),i.push(p);return}let A=dt;if(k.size>1){let F=m,V=[];for(;F=F.parentNode;){let w=k.get(F);if(w){A=w;break}V.push(F)}V.forEach(w=>k.set(w,A))}let z=this._buildAnimation(p.namespaceId,v,C,r,G,J);if(p.setRealPlayer(z),A===dt)Ne.push(p);else{let F=this.playersByElement.get(A);F&&F.length&&(p.parentPlayer=j(F)),i.push(p)}}else x(m,v.fromStyles),p.onDestroy(()=>Q(m,v.toStyles)),ft.push(p),c.has(m)&&i.push(p)}),ft.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=j(m);f.setRealPlayer(p)}}),i.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f!z.destroyed);A.length?mi(this,m,A):this.processLeaveNode(m)}return T.length=0,Ne.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Ne}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==re;a.forEach(h=>{h.queued||!l&&h.triggerName!=i||o.push(h)})}}return(s||i)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let h=l.element,c=h!==r,u=O(s,h,[]);this._getPreviousPlayers(h,c,o,a,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),u.push(y)})}x(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,o){let a=t.triggerName,l=t.element,h=[],c=new Set,u=new Set,S=t.timelines.map(d=>{let g=d.element;c.add(g);let T=g[K];if(T&&T.removedBeforeQueried)return new U(d.duration,d.delay);let b=g!==l,P=pi((s.get(g)||hi).map(C=>C.getRealPlayer())).filter(C=>{let k=C;return k.element?k.element===g:!1}),M=r.get(g),N=o.get(g),Z=It(this._normalizer,d.keyframes,M,N),q=this._buildPlayer(d,Z,P);if(d.subTimeline&&i&&u.add(g),b){let C=new le(e,a,g);C.setRealPlayer(q),h.push(C)}return q});h.forEach(d=>{O(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>ci(this.playersByQueriedElement,d.element,d))}),c.forEach(d=>I(d,Tt));let y=j(S);return y.onDestroy(()=>{c.forEach(d=>ee(d,Tt)),Q(l,t.toStyles)}),u.forEach(d=>{O(i,d,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new U(e.duration,e.delay)}},le=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new U,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(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>tt(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){O(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1: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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function ci(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function fi(n){return n??null}function pe(n){return n&&n.nodeType===1}function di(n){return n=="start"||n=="done"}function Ct(n,e){let t=n.style.display;return n.style.display=e??"none",t}function kt(n,e,t,s,i){let r=[];t.forEach(l=>r.push(Ct(l)));let o=[];s.forEach((l,h)=>{let c=new Map;l.forEach(u=>{let S=e.computeStyle(h,u,i);c.set(u,S),(!S||S.length==0)&&(h[K]=ui,o.push(h))}),n.set(h,c)});let a=0;return t.forEach(l=>Ct(l,r[a++])),o}function Ft(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function o(a){if(!a)return s;let l=r.get(a);if(l)return l;let h=a.parentNode;return t.has(h)?l=h:i.has(h)?l=s:l=o(h),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==s&&t.get(l).push(a)}),t}function I(n,e){n.classList?.add(e)}function ee(n,e){n.classList?.remove(e)}function mi(n,e,t){j(t).onDone(()=>n.processLeaveNode(e))}function pi(n){let e=[];return jt(n,e),e}function jt(n,e){for(let t=0;ti.add(r)):e.set(n,s),t.delete(n),!0}var be=class{constructor(e,t,s,i){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new xe(e.body,t,s,i),this._timelineEngine=new Ye(e.body,t,s),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,t,s,i,r){let o=e+"-"+i,a=this._triggerCache[o];if(!a){let l=[],h=[],c=at(this._driver,r,l,h);if(l.length)throw ps(i,l);h.length&&void 0,a=si(i,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,o]=St(s),a=i;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[o,a]=St(s);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,s,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function yi(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Le(e[0]),e.length>1&&(s=Le(e[e.length-1]))):e instanceof Map&&(t=Le(e)),t||s?new Ze(n,t,s):null}var te=class te{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let i=te.initialStylesByElement.get(e);i||te.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(te.initialStylesByElement.delete(this._element),this._startStyles&&(x(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(x(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}};te.initialStylesByElement=new WeakMap;var Ze=te;function Le(n){let e=null;return n.forEach((t,s)=>{_i(s)&&(e=e||new Map,e.set(s,t))}),e}function _i(n){return n==="display"||n==="position"}var Pe=class{constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,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=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:ot(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Je=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return Kt(e,t)}getParentElement(e){return it(e)}query(e,t,s){return qt(e,t,s)}computeStyle(e,t,s){return ot(e,t)}animate(e,t,s,i,r,o=[]){let a=i==0?"both":"forwards",l={duration:s,delay:i,fill:a};r&&(l.easing=r);let h=new Map,c=o.filter(y=>y instanceof Pe);qs(s,i)&&c.forEach(y=>{y.currentSnapshot.forEach((d,g)=>h.set(g,d))});let u=Ls(t).map(y=>new Map(y));u=zs(e,u,h);let S=yi(e,u);return new Pe(e,u,l,S)}};function Di(n,e,t){return n==="noop"?new be(e,new zt,new Ke,t):new be(e,new Je,new Qe,t)}var Ot=class{constructor(e,t){this._driver=e;let s=[],i=[],r=at(e,t,s,i);if(s.length)throw ds(s);i.length&&void 0,this._animationAst=r}buildTimelines(e,t,s,i,r){let o=Array.isArray(t)?wt(t):t,a=Array.isArray(s)?wt(s):s,l=[];r=r||new se;let h=ht(this._driver,e,this._animationAst,nt,ye,o,a,i,r,l);if(l.length)throw ms(l);return h}},ge="@",Wt="@.disabled",Ae=class{constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==ge&&t==Wt?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},et=class extends Ae{constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==ge?t.charAt(1)=="."&&t==Wt?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==ge){let i=Si(e),r=t.slice(1),o="";return r.charAt(0)!=ge&&([r,o]=Ei(r)),this.engine.listen(this.namespaceId,i,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,s,a)})}return this.delegate.listen(e,t,s)}};function Si(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Ei(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var Lt=class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,r)=>{let o=r?.parentNode(i);o&&r.removeChild(o,i)}}createRenderer(e,t){let s="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let h=this._rendererCache,c=h.get(i);if(!c){let u=()=>h.delete(i);c=new Ae(s,i,this.engine,u),h.set(i,c)}return c}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=h=>{Array.isArray(h)?h.forEach(a):this.engine.registerTrigger(r,o,e,h.name,h)};return t.data.animation.forEach(a),new et(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};export{vt as AnimationDriver,zt as NoopAnimationDriver,Ot as \u0275Animation,be as \u0275AnimationEngine,et as \u0275AnimationRenderer,Lt as \u0275AnimationRendererFactory,Ie as \u0275AnimationStyleNormalizer,Ae as \u0275BaseAnimationRenderer,Ke as \u0275NoopAnimationStyleNormalizer,Je as \u0275WebAnimationsDriver,Pe as \u0275WebAnimationsPlayer,Qe as \u0275WebAnimationsStyleNormalizer,qs as \u0275allowPreviousPlayerStylesMerge,Ni as \u0275camelCaseToDashCase,Kt as \u0275containsElement,Di as \u0275createEngine,it as \u0275getParentElement,qt as \u0275invokeQuery,Ls as \u0275normalizeKeyframes,Cs as \u0275validateStyleProperty,Ai as \u0275validateWebAnimatableStyleProperty}; +import{P as E,Q as gt,a as ue,c as pt}from"./chunk-RPKWFZ3A.js";var _=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(_||{}),B="*";function yt(n,e=null){return{type:_.Sequence,steps:n,options:e}}function Me(n){return{type:_.Style,styles:n,offset:null}}var U=class{constructor(e=0,t=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=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ie=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,s=0,i=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==r&&this._onFinish()}),o.onDestroy(()=>{++s==r&&this._onDestroy()}),o.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(s=>{let i=s.totalTime?Math.min(1,t/s.totalTime):1;s.setPosition(i)})}getPosition(){let e=this.players.reduce((t,s)=>t===null||s.totalTime>t.totalTime?s:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ce="!";function _t(n){return new E(3e3,!1)}function Ht(){return new E(3100,!1)}function Yt(){return new E(3101,!1)}function Xt(n){return new E(3001,!1)}function xt(n){return new E(3003,!1)}function Zt(n){return new E(3004,!1)}function Jt(n,e){return new E(3005,!1)}function es(){return new E(3006,!1)}function ts(){return new E(3007,!1)}function ss(n,e){return new E(3008,!1)}function is(n){return new E(3002,!1)}function ns(n,e,t,s,i){return new E(3010,!1)}function rs(){return new E(3011,!1)}function os(){return new E(3012,!1)}function as(){return new E(3200,!1)}function ls(){return new E(3202,!1)}function hs(){return new E(3013,!1)}function us(n){return new E(3014,!1)}function cs(n){return new E(3015,!1)}function fs(n){return new E(3016,!1)}function ds(n){return new E(3500,!1)}function ms(n){return new E(3501,!1)}function ps(n,e){return new E(3404,!1)}function gs(n){return new E(3502,!1)}function ys(n){return new E(3503,!1)}function _s(){return new E(3300,!1)}function Ss(n){return new E(3504,!1)}function Es(n){return new E(3301,!1)}function vs(n,e){return new E(3302,!1)}function Ts(n){return new E(3303,!1)}function ws(n,e){return new E(3400,!1)}function bs(n){return new E(3401,!1)}function Ps(n){return new E(3402,!1)}function As(n,e){return new E(3505,!1)}var Ns=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function j(n){switch(n.length){case 0:return new U;case 1:return n[0];default:return new ie(n)}}function It(n,e,t=new Map,s=new Map){let i=[],r=[],o=-1,a=null;if(e.forEach(l=>{let h=l.get("offset"),c=h==o,u=c&&a||new Map;l.forEach((S,y)=>{let d=y,g=S;if(y!=="offset")switch(d=n.normalizePropertyName(d,i),g){case ce:g=t.get(y);break;case B:g=s.get(y);break;default:g=n.normalizeStyleValue(y,d,g,i);break}u.set(d,g)}),c||r.push(u),a=u,o=h}),i.length)throw gs(i);return r}function tt(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&Ce(t,"start",n)));break;case"done":n.onDone(()=>s(t&&Ce(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&Ce(t,"destroy",n)));break}}function Ce(n,e,t){let s=t.totalTime,i=!!t.disabled,r=st(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),o=n._data;return o!=null&&(r._data=o),r}function st(n,e,t,s,i="",r=0,o){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!o}}function O(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function St(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var Ds=typeof document>"u"?null:document.documentElement;function it(n){let e=n.parentNode||n.host||null;return e===Ds?null:e}function Ms(n){return n.substring(1,6)=="ebkit"}var Y=null,Et=!1;function Cs(n){Y||(Y=ks()||{},Et=Y.style?"WebkitAppearance"in Y.style:!1);let e=!0;return Y.style&&!Ms(n)&&(e=n in Y.style,!e&&Et&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Y.style)),e}function Ai(n){return Ns.has(n)}function ks(){return typeof document<"u"?document.body:null}function Kt(n,e){for(;e;){if(e===n)return!0;e=it(e)}return!1}function qt(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var zt=(()=>{let e=class e{validateStyleProperty(s){return Cs(s)}matchesElement(s,i){return!1}containsElement(s,i){return Kt(s,i)}getParentElement(s){return it(s)}query(s,i,r){return qt(s,i,r)}computeStyle(s,i,r){return r||""}animate(s,i,r,o,a,l=[],h){return new U(r,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=gt({token:e,factory:e.\u0275fac});let n=e;return n})(),ut=class ut{};ut.NOOP=new zt;var vt=ut,Ie=class{},Ke=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,i){return s}},Fs=1e3,Bt="{{",Rs="}}",nt="ng-enter",ye="ng-leave",fe="ng-trigger",_e=".ng-trigger",Tt="ng-animating",qe=".ng-animating";function $(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ze(parseFloat(e[1]),e[2])}function ze(n,e){switch(e){case"s":return n*Fs;default:return n}}function Se(n,e,t){return n.hasOwnProperty("duration")?n:Os(n,e,t)}function Os(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,o="";if(typeof n=="string"){let a=n.match(s);if(a===null)return e.push(_t(n)),{duration:0,delay:0,easing:""};i=ze(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=ze(parseFloat(l),a[4]));let h=a[5];h&&(o=h)}else i=n;if(!t){let a=!1,l=e.length;i<0&&(e.push(Ht()),a=!0),r<0&&(e.push(Yt()),a=!0),a&&e.splice(l,0,_t(n))}return{duration:i,delay:r,easing:o}}function Ls(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function wt(n){return Array.isArray(n)?new Map(...n):new Map(n)}function Q(n,e,t){e.forEach((s,i)=>{let r=rt(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function x(n,e){e.forEach((t,s)=>{let i=rt(s);n.style[i]=""})}function ne(n){return Array.isArray(n)?n.length==1?n[0]:yt(n):n}function Is(n,e,t){let s=e.params||{},i=Qt(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(Xt(r))})}var Be=new RegExp(`${Bt}\\s*(.+?)\\s*${Rs}`,"g");function Qt(n){let e=[];if(typeof n=="string"){let t;for(;t=Be.exec(n);)e.push(t[1]);Be.lastIndex=0}return e}function oe(n,e,t){let s=`${n}`,i=s.replace(Be,(r,o)=>{let a=e[o];return a==null&&(t.push(xt(o)),a=""),a.toString()});return i==s?n:i}var Ks=/-+([a-z0-9])/g;function rt(n){return n.replace(Ks,(...e)=>e[1].toUpperCase())}function Ni(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function qs(n,e){return n===0||e===0}function zs(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,o)=>{s.has(o)||i.push(o),s.set(o,r)}),i.length)for(let r=1;ro.set(a,ot(n,a)))}}return e}function R(n,e,t){switch(e.type){case _.Trigger:return n.visitTrigger(e,t);case _.State:return n.visitState(e,t);case _.Transition:return n.visitTransition(e,t);case _.Sequence:return n.visitSequence(e,t);case _.Group:return n.visitGroup(e,t);case _.Animate:return n.visitAnimate(e,t);case _.Keyframes:return n.visitKeyframes(e,t);case _.Style:return n.visitStyle(e,t);case _.Reference:return n.visitReference(e,t);case _.AnimateChild:return n.visitAnimateChild(e,t);case _.AnimateRef:return n.visitAnimateRef(e,t);case _.Query:return n.visitQuery(e,t);case _.Stagger:return n.visitStagger(e,t);default:throw Zt(e.type)}}function ot(n,e){return window.getComputedStyle(n)[e]}var Bs=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"]),Qe=class extends Ie{normalizePropertyName(e,t){return rt(e)}normalizeStyleValue(e,t,s,i){let r="",o=s.toString().trim();if(Bs.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(Jt(e,s))}return o+r}};var Ee="*";function Qs(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>$s(s,t,e)):t.push(n),t}function $s(n,e,t){if(n[0]==":"){let l=Vs(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(cs(n)),e;let i=s[1],r=s[2],o=s[3];e.push(bt(i,o));let a=i==Ee&&o==Ee;r[0]=="<"&&!a&&e.push(bt(o,i))}function Vs(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var de=new Set(["true","1"]),me=new Set(["false","0"]);function bt(n,e){let t=de.has(n)||me.has(n),s=de.has(e)||me.has(e);return(i,r)=>{let o=n==Ee||n==i,a=e==Ee||e==r;return!o&&t&&typeof i=="boolean"&&(o=i?de.has(n):me.has(n)),!a&&s&&typeof r=="boolean"&&(a=r?de.has(e):me.has(e)),o&&a}}var $t=":self",Us=new RegExp(`s*${$t}s*,?`,"g");function at(n,e,t,s){return new $e(n).build(e,t,s)}var Pt="",$e=class{constructor(e){this._driver=e}build(e,t,s){let i=new Ve(t);return this._resetContextStyleTimingState(i),R(this,ne(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Pt,e.collectedStyles=new Map,e.collectedStyles.set(Pt,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(es()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==_.State){let l=a,h=l.name;h.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=h}else if(a.type==_.Transition){let l=this.visitTransition(a,t);s+=l.queryCount,i+=l.depCount,o.push(l)}else t.errors.push(ts())}),{type:_.Trigger,name:e.name,states:r,transitions:o,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,o=i||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Qt(l).forEach(h=>{o.hasOwnProperty(h)||r.add(h)})})}),r.size&&t.errors.push(ss(e.name,[...r.values()]))}return{type:_.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=R(this,ne(e.animation),t),i=Qs(e.expr,t.errors);return{type:_.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:X(e.options)}}visitSequence(e,t){return{type:_.Sequence,steps:e.steps.map(s=>R(this,s,t)),options:X(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(o=>{t.currentTime=s;let a=R(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:_.Group,steps:r,options:X(e.options)}}visitAnimate(e,t){let s=Hs(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:Me({});if(r.type==_.Keyframes)i=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let h={};s.easing&&(h.easing=s.easing),o=Me(h)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:_.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===B?s.push(a):t.errors.push(is(a)):s.push(new Map(Object.entries(a)));let r=!1,o=null;return s.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(Bt)>=0){r=!0;break}}}),{type:_.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let h=t.collectedStyles.get(t.currentQuerySelector),c=h.get(l),u=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push(ns(l,c.startTime,c.endTime,r,i)),u=!1),r=c.startTime),u&&h.set(l,{startTime:r,endTime:i}),t.options&&Is(a,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(rs()),s;let i=1,r=0,o=[],a=!1,l=!1,h=0,c=e.steps.map(b=>{let P=this._makeStyleAst(b,t),M=P.offset!=null?P.offset:Gs(P.styles),N=0;return M!=null&&(r++,N=P.offset=M),l=l||N<0||N>1,a=a||N0&&r{let M=S>0?P==y?1:S*P:o[P],N=M*T;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(b,t),b.offset=M,s.styles.push(b)}),s}visitReference(e,t){return{type:_.Reference,animation:R(this,ne(e.animation),t),options:X(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:X(e.options)}}visitAnimateRef(e,t){return{type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:X(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=js(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,O(t.collectedStyles,t.currentQuerySelector,new Map);let a=R(this,ne(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:_.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:X(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(hs());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Se(e.timings,t.errors,!0);return{type:_.Stagger,animation:R(this,ne(e.animation),t),timings:s,options:null}}};function js(n){let e=!!n.split(/\s*,\s*/).find(t=>t==$t);return e&&(n=n.replace(Us,"")),n=n.replace(/@\*/g,_e).replace(/@\w+/g,t=>_e+"-"+t.slice(1)).replace(/:animating/g,qe),[n,e]}function Ws(n){return n?ue({},n):null}var Ve=class{constructor(e){this.errors=e,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 Gs(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Hs(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=Se(n,e).duration;return ke(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ke(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=Se(t,e);return ke(i.duration,i.delay,i.easing)}function X(n){return n?(n=ue({},n),n.params&&(n.params=Ws(n.params))):n={},n}function ke(n,e,t){return{duration:n,delay:e,easing:t}}function lt(n,e,t,s,i,r,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}var se=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ys=1,Xs=":enter",xs=new RegExp(Xs,"g"),Zs=":leave",Js=new RegExp(Zs,"g");function ht(n,e,t,s,i,r=new Map,o=new Map,a,l,h=[]){return new Ue().buildKeyframes(n,e,t,s,i,r,o,a,l,h)}var Ue=class{buildKeyframes(e,t,s,i,r,o,a,l,h,c=[]){h=h||new se;let u=new je(e,t,h,i,r,c,[]);u.options=l;let S=l.delay?$(l.delay):0;u.currentTimeline.delayNextStep(S),u.currentTimeline.setStyles([o],null,u.errors,l),R(this,s,u);let y=u.timelines.filter(d=>d.containsAnimation());if(y.length&&a.size){let d;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){d=T;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([a],null,u.errors,l)}return y.length?y.map(d=>d.buildKeyframes()):[lt(t,[],[],[],0,S,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let o=typeof r=="number"?r:$(oe(r,i?.params??{},t.errors));s.delayNextStep(o)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,o=s.duration!=null?$(s.duration):null,a=s.delay!=null?$(s.delay):null;return o!==0&&e.forEach(l=>{let h=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,h.duration+h.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),R(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==_.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ve);let o=$(r.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>R(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?$(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),R(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),s.push(a.currentTimeline)}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?oe(s,t.params,t.errors):s;return Se(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,a=t.createSubContext().currentTimeline;a.easing=s.easing,e.styles.forEach(l=>{let h=l.offset||0;a.forwardTime(h*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?$(i.delay):0;r&&(t.previousNode.type===_.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ve);let o=s,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((h,c)=>{t.currentQueryIndex=c;let u=t.createSubContext(e.options,h);r&&u.delayNextStep(r),h===t.element&&(l=u.currentTimeline),R(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let S=u.currentTimeline.currentTime;o=Math.max(o,S)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=s.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let u=c.currentTime;R(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-u+(i.startTime-s.currentTimeline.startTime)}},ve={},je=class n{constructor(e,t,s,i,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ve,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Te(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=$(s.duration)),s.delay!=null&&(i.delay=$(s.delay));let r=s.params;if(r){let o=i.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=oe(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=ve,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new We(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,o){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(xs,"."+this._enterClassName),e=e.replace(Js,"."+this._leaveClassName);let l=s!=1,h=this._driver.query(this.element,e,l);s!==0&&(h=s<0?h.slice(h.length+s,h.length):h.slice(0,s)),a.push(...h)}return!r&&a.length==0&&o.push(us(t)),a}},Te=class n{constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||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+=Ys,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},o=ei(e,this._globalTimelineStyles);for(let[a,l]of o){let h=oe(l,r,s);this._pendingStyles.set(a,h),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??B),this._updateStyle(a,h)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,l)=>{let h=new Map([...this._backFill,...a]);h.forEach((c,u)=>{c===ce?e.add(u):c===B&&t.add(u)}),s||h.set("offset",l/this.duration),i.push(h)});let r=[...e.values()],o=[...t.values()];if(s){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return lt(this.element,i,r,o,this.duration,this.startTime,this.easing,!1)}},We=class extends Te{constructor(e,t,s,i,r,o,a=!1){super(e,t,o.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=s+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let h=new Map(e[0]);h.set("offset",At(a)),r.push(h);let c=e.length-1;for(let u=1;u<=c;u++){let S=new Map(e[u]),y=S.get("offset"),d=t+y*s;S.set("offset",At(d/o)),r.push(S)}s=o,t=0,i="",e=r}return lt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}};function At(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function ei(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,B)}else for(let[r,o]of i)t.set(r,o)}),t}function Nt(n,e,t,s,i,r,o,a,l,h,c,u,S){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:S}}var Fe={},we=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return ti(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,o,a,l,h,c){let u=[],S=this.ast.options&&this.ast.options.params||Fe,y=a&&a.params||Fe,d=this.buildStyles(s,y,u),g=l&&l.params||Fe,T=this.buildStyles(i,g,u),b=new Set,P=new Map,M=new Map,N=i==="void",Z={params:Vt(g,S),delay:this.ast.options?.delay},q=c?[]:ht(e,t,this.ast.animation,r,o,d,T,Z,h,u),C=0;return q.forEach(k=>{C=Math.max(k.duration+k.delay,C)}),u.length?Nt(t,this._triggerName,s,i,N,d,T,[],[],P,M,C,u):(q.forEach(k=>{let W=k.element,J=O(P,W,new Set);k.preStyleProps.forEach(G=>J.add(G));let ct=O(M,W,new Set);k.postStyleProps.forEach(G=>ct.add(G)),W!==t&&b.add(W)}),Nt(t,this._triggerName,s,i,N,d,T,q,[...b.values()],P,M,C))}};function ti(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function Vt(n,e){let t=ue({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var Ge=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=Vt(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=oe(o,i,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o)})}),s}};function si(n,e,t){return new He(n,e,t)}var He=class{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new Ge(i.style,r,s))}),Dt(this.states,"true","1"),Dt(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new we(e,i,this.states))}),this.fallbackTransition=ii(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(o=>o.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ii(n,e,t){let s=[(o,a)=>!0],i={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new we(n,r,e)}function Dt(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var ni=new se,Ye=class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let s=[],i=[],r=at(this._driver,t,s,i);if(s.length)throw ys(s);i.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=It(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),o,a=new Map;if(r?(o=ht(this._driver,t,r,nt,ye,new Map,new Map,s,ni,i),o.forEach(c=>{let u=O(a,c.element,new Map);c.postStyleProps.forEach(S=>u.set(S,null))})):(i.push(_s()),o=[]),i.length)throw Ss(i);a.forEach((c,u)=>{c.forEach((S,y)=>{c.set(y,this._driver.computeStyle(u,y,B))})});let l=o.map(c=>{let u=a.get(c.element);return this._buildPlayer(c,new Map,u)}),h=j(l);return this._playersById.set(e,h),h.onDestroy(()=>this.destroy(e)),this.players.push(h),h}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Es(e);return t}listen(e,t,s,i){let r=st(t,"","","");return tt(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let o=i[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(s){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(i[0]));break;case"destroy":this.destroy(e);break}}},Mt="ng-animate-queued",ri=".ng-animate-queued",Re="ng-animate-disabled",oi=".ng-animate-disabled",ai="ng-star-inserted",li=".ng-star-inserted",hi=[],Ut={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ui={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},K="__ng_removed",ae=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=fi(i),s){let r=e,{value:o}=r,a=pt(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},re="void",Oe=new ae(re),Xe=class{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw vs(s,t);if(s==null||s.length==0)throw Ts(t);if(!di(s))throw ws(s,t);let r=O(this._elementListeners,e,[]),o={name:t,phase:s,callback:i};r.push(o);let a=O(this._engine.statesByElement,e,new Map);return a.has(t)||(I(e,fe),I(e,fe+"-"+t),a.set(t,Oe)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw bs(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),o=new le(this.id,t,e),a=this._engine.statesByElement.get(e);a||(I(e,fe),I(e,fe+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),h=new ae(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&h.absorbOptions(l.options),a.set(t,h),l||(l=Oe),!(h.value===re)&&l.value===h.value){if(!gi(l.params,h.params)){let g=[],T=r.matchStyles(l.value,l.params,g),b=r.matchStyles(h.value,h.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{x(e,T),Q(e,b)})}return}let S=O(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,h.value,e,h.params),d=!1;if(!y){if(!i)return;y=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:h,player:o,isFallbackTransition:d}),d||(I(e,Mt),o.onStart(()=>{ee(e,Mt)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let b=T.indexOf(o);b>=0&&T.splice(b,1)}}),this.players.push(o),S.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,_e,!0);s.forEach(i=>{if(i[K])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,h)=>{if(o.set(h,l.value),this._triggers.has(h)){let c=this.trigger(e,h,re,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),s&&j(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let o=r.name;if(i.has(o))return;i.add(o);let l=this._triggers.get(o).fallbackTransition,h=s.get(o)||Oe,c=new ae(re),u=new le(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:h,toState:c,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[K];(!r||r===Ut)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==s.triggerName){let l=st(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,tt(s.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,o=i.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},xe=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s,i){this.bodyNode=e,this.driver=t,this._normalizer=s,this.scheduler=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=(r,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Xe(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=i.get(a);if(l){let h=s.indexOf(l);s.splice(h+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(pe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!pe(t))return;let r=t[K];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Re)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,Re))}removeNode(e,t,s){if(pe(t)){this.scheduler?.notify();let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[K]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return pe(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,_e,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,qe,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return j(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[K];if(t&&t.setForRemoval){if(e[K]=Ut,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Re)&&this.markElementAsDisabled(e,!1),this.driver.query(e,oi,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?j(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw Ps(e)}_flushAnimations(e,t){let s=new se,i=[],r=new Map,o=[],a=new Map,l=new Map,h=new Map,c=new Set;this.disabledNodes.forEach(f=>{c.add(f);let m=this.driver.query(f,ri,!0);for(let p=0;p{let p=nt+g++;d.set(m,p),f.forEach(v=>I(v,p))});let T=[],b=new Set,P=new Set;for(let f=0;fb.add(v)):P.add(m))}let M=new Map,N=Ft(S,Array.from(b));N.forEach((f,m)=>{let p=ye+g++;M.set(m,p),f.forEach(v=>I(v,p))}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(v=>ee(v,p))}),N.forEach((f,m)=>{let p=M.get(m);f.forEach(v=>ee(v,p))}),T.forEach(f=>{this.processLeaveNode(f)})});let Z=[],q=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let v=p.player,A=p.element;if(Z.push(v),this.collectedEnterElements.length){let D=A[K];if(D&&D.setForMove){if(D.previousTriggersValues&&D.previousTriggersValues.has(p.triggerName)){let H=D.previousTriggersValues.get(p.triggerName),L=this.statesByElement.get(p.element);if(L&&L.has(p.triggerName)){let he=L.get(p.triggerName);he.value=H,L.set(p.triggerName,he)}}v.destroy();return}}let z=!u||!this.driver.containsElement(u,A),F=M.get(A),V=d.get(A),w=this._buildInstruction(p,s,V,F,z);if(w.errors&&w.errors.length){q.push(w);return}if(z){v.onStart(()=>x(A,w.fromStyles)),v.onDestroy(()=>Q(A,w.toStyles)),i.push(v);return}if(p.isFallbackTransition){v.onStart(()=>x(A,w.fromStyles)),v.onDestroy(()=>Q(A,w.toStyles)),i.push(v);return}let mt=[];w.timelines.forEach(D=>{D.stretchStartingKeyframe=!0,this.disabledNodes.has(D.element)||mt.push(D)}),w.timelines=mt,s.append(A,w.timelines);let Gt={instruction:w,player:v,element:A};o.push(Gt),w.queriedElements.forEach(D=>O(a,D,[]).push(v)),w.preStyleProps.forEach((D,H)=>{if(D.size){let L=l.get(H);L||l.set(H,L=new Set),D.forEach((he,De)=>L.add(De))}}),w.postStyleProps.forEach((D,H)=>{let L=h.get(H);L||h.set(H,L=new Set),D.forEach((he,De)=>L.add(De))})});if(q.length){let f=[];q.forEach(m=>{f.push(As(m.triggerName,m.errors))}),Z.forEach(m=>m.destroy()),this.reportError(f)}let C=new Map,k=new Map;o.forEach(f=>{let m=f.element;s.has(m)&&(k.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,C))}),i.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(v=>{O(C,m,[]).push(v),v.destroy()})});let W=T.filter(f=>Rt(f,l,h)),J=new Map;kt(J,this.driver,P,h,B).forEach(f=>{Rt(f,l,h)&&W.push(f)});let G=new Map;y.forEach((f,m)=>{kt(G,this.driver,new Set(f),l,ce)}),W.forEach(f=>{let m=J.get(f),p=G.get(f);J.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Ne=[],ft=[],dt={};o.forEach(f=>{let{element:m,player:p,instruction:v}=f;if(s.has(m)){if(c.has(m)){p.onDestroy(()=>Q(m,v.toStyles)),p.disabled=!0,p.overrideTotalTime(v.totalTime),i.push(p);return}let A=dt;if(k.size>1){let F=m,V=[];for(;F=F.parentNode;){let w=k.get(F);if(w){A=w;break}V.push(F)}V.forEach(w=>k.set(w,A))}let z=this._buildAnimation(p.namespaceId,v,C,r,G,J);if(p.setRealPlayer(z),A===dt)Ne.push(p);else{let F=this.playersByElement.get(A);F&&F.length&&(p.parentPlayer=j(F)),i.push(p)}}else x(m,v.fromStyles),p.onDestroy(()=>Q(m,v.toStyles)),ft.push(p),c.has(m)&&i.push(p)}),ft.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=j(m);f.setRealPlayer(p)}}),i.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f!z.destroyed);A.length?mi(this,m,A):this.processLeaveNode(m)}return T.length=0,Ne.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Ne}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==re;a.forEach(h=>{h.queued||!l&&h.triggerName!=i||o.push(h)})}}return(s||i)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let h=l.element,c=h!==r,u=O(s,h,[]);this._getPreviousPlayers(h,c,o,a,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),u.push(y)})}x(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,o){let a=t.triggerName,l=t.element,h=[],c=new Set,u=new Set,S=t.timelines.map(d=>{let g=d.element;c.add(g);let T=g[K];if(T&&T.removedBeforeQueried)return new U(d.duration,d.delay);let b=g!==l,P=pi((s.get(g)||hi).map(C=>C.getRealPlayer())).filter(C=>{let k=C;return k.element?k.element===g:!1}),M=r.get(g),N=o.get(g),Z=It(this._normalizer,d.keyframes,M,N),q=this._buildPlayer(d,Z,P);if(d.subTimeline&&i&&u.add(g),b){let C=new le(e,a,g);C.setRealPlayer(q),h.push(C)}return q});h.forEach(d=>{O(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>ci(this.playersByQueriedElement,d.element,d))}),c.forEach(d=>I(d,Tt));let y=j(S);return y.onDestroy(()=>{c.forEach(d=>ee(d,Tt)),Q(l,t.toStyles)}),u.forEach(d=>{O(i,d,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new U(e.duration,e.delay)}},le=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new U,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(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>tt(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){O(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1: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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function ci(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function fi(n){return n??null}function pe(n){return n&&n.nodeType===1}function di(n){return n=="start"||n=="done"}function Ct(n,e){let t=n.style.display;return n.style.display=e??"none",t}function kt(n,e,t,s,i){let r=[];t.forEach(l=>r.push(Ct(l)));let o=[];s.forEach((l,h)=>{let c=new Map;l.forEach(u=>{let S=e.computeStyle(h,u,i);c.set(u,S),(!S||S.length==0)&&(h[K]=ui,o.push(h))}),n.set(h,c)});let a=0;return t.forEach(l=>Ct(l,r[a++])),o}function Ft(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function o(a){if(!a)return s;let l=r.get(a);if(l)return l;let h=a.parentNode;return t.has(h)?l=h:i.has(h)?l=s:l=o(h),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==s&&t.get(l).push(a)}),t}function I(n,e){n.classList?.add(e)}function ee(n,e){n.classList?.remove(e)}function mi(n,e,t){j(t).onDone(()=>n.processLeaveNode(e))}function pi(n){let e=[];return jt(n,e),e}function jt(n,e){for(let t=0;ti.add(r)):e.set(n,s),t.delete(n),!0}var be=class{constructor(e,t,s,i){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new xe(e.body,t,s,i),this._timelineEngine=new Ye(e.body,t,s),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,t,s,i,r){let o=e+"-"+i,a=this._triggerCache[o];if(!a){let l=[],h=[],c=at(this._driver,r,l,h);if(l.length)throw ps(i,l);h.length&&void 0,a=si(i,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,o]=St(s),a=i;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[o,a]=St(s);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,s,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function yi(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Le(e[0]),e.length>1&&(s=Le(e[e.length-1]))):e instanceof Map&&(t=Le(e)),t||s?new Ze(n,t,s):null}var te=class te{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let i=te.initialStylesByElement.get(e);i||te.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(te.initialStylesByElement.delete(this._element),this._startStyles&&(x(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(x(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}};te.initialStylesByElement=new WeakMap;var Ze=te;function Le(n){let e=null;return n.forEach((t,s)=>{_i(s)&&(e=e||new Map,e.set(s,t))}),e}function _i(n){return n==="display"||n==="position"}var Pe=class{constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,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=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:ot(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Je=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return Kt(e,t)}getParentElement(e){return it(e)}query(e,t,s){return qt(e,t,s)}computeStyle(e,t,s){return ot(e,t)}animate(e,t,s,i,r,o=[]){let a=i==0?"both":"forwards",l={duration:s,delay:i,fill:a};r&&(l.easing=r);let h=new Map,c=o.filter(y=>y instanceof Pe);qs(s,i)&&c.forEach(y=>{y.currentSnapshot.forEach((d,g)=>h.set(g,d))});let u=Ls(t).map(y=>new Map(y));u=zs(e,u,h);let S=yi(e,u);return new Pe(e,u,l,S)}};function Di(n,e,t){return n==="noop"?new be(e,new zt,new Ke,t):new be(e,new Je,new Qe,t)}var Ot=class{constructor(e,t){this._driver=e;let s=[],i=[],r=at(e,t,s,i);if(s.length)throw ds(s);i.length&&void 0,this._animationAst=r}buildTimelines(e,t,s,i,r){let o=Array.isArray(t)?wt(t):t,a=Array.isArray(s)?wt(s):s,l=[];r=r||new se;let h=ht(this._driver,e,this._animationAst,nt,ye,o,a,i,r,l);if(l.length)throw ms(l);return h}},ge="@",Wt="@.disabled",Ae=class{constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==ge&&t==Wt?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},et=class extends Ae{constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==ge?t.charAt(1)=="."&&t==Wt?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==ge){let i=Si(e),r=t.slice(1),o="";return r.charAt(0)!=ge&&([r,o]=Ei(r)),this.engine.listen(this.namespaceId,i,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,s,a)})}return this.delegate.listen(e,t,s)}};function Si(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Ei(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var Lt=class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,r)=>{let o=r?.parentNode(i);o&&r.removeChild(o,i)}}createRenderer(e,t){let s="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let h=this._rendererCache,c=h.get(i);if(!c){let u=()=>h.delete(i);c=new Ae(s,i,this.engine,u),h.set(i,c)}return c}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=h=>{Array.isArray(h)?h.forEach(a):this.engine.registerTrigger(r,o,e,h.name,h)};return t.data.animation.forEach(a),new et(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};export{vt as AnimationDriver,zt as NoopAnimationDriver,Ot as \u0275Animation,be as \u0275AnimationEngine,et as \u0275AnimationRenderer,Lt as \u0275AnimationRendererFactory,Ie as \u0275AnimationStyleNormalizer,Ae as \u0275BaseAnimationRenderer,Ke as \u0275NoopAnimationStyleNormalizer,Je as \u0275WebAnimationsDriver,Pe as \u0275WebAnimationsPlayer,Qe as \u0275WebAnimationsStyleNormalizer,qs as \u0275allowPreviousPlayerStylesMerge,Ni as \u0275camelCaseToDashCase,Kt as \u0275containsElement,Di as \u0275createEngine,it as \u0275getParentElement,qt as \u0275invokeQuery,Ls as \u0275normalizeKeyframes,Cs as \u0275validateStyleProperty,Ai as \u0275validateWebAnimatableStyleProperty}; diff --git a/chunk-RPKWFZ3A.js b/chunk-RPKWFZ3A.js new file mode 100644 index 0000000..7129020 --- /dev/null +++ b/chunk-RPKWFZ3A.js @@ -0,0 +1,7 @@ +var Ac=Object.defineProperty,Oc=Object.defineProperties;var Fc=Object.getOwnPropertyDescriptors;var zt=Object.getOwnPropertySymbols;var _i=Object.prototype.hasOwnProperty,xi=Object.prototype.propertyIsEnumerable;var Mi=(e,t,n)=>t in e?Ac(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gt=(e,t)=>{for(var n in t||={})_i.call(t,n)&&Mi(e,n,t[n]);if(zt)for(var n of zt(t))xi.call(t,n)&&Mi(e,n,t[n]);return e},mt=(e,t)=>Oc(e,Fc(t));var bm=(e,t)=>{var n={};for(var r in e)_i.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&zt)for(var r of zt(e))t.indexOf(r)<0&&xi.call(e,r)&&(n[r]=e[r]);return n};var Ti=null;var sr=1,Si=Symbol("SIGNAL");function b(e){let t=Ti;return Ti=e,t}var Ni={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Rc(e){if(!(cr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===sr)){if(!e.producerMustRecompute(e)&&!ar(e)){e.dirty=!1,e.lastCleanEpoch=sr;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=sr}}function Ai(e){return e&&(e.nextProducerIndex=0),b(e)}function Oi(e,t){if(b(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(cr(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ar(e){Wt(e);for(let t=0;t0}function Wt(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Pc(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function kc(){throw new Error}var Lc=kc;function Ri(e){Lc=e}function g(e){return typeof e=="function"}function We(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var qt=We(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Me(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var O=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(g(r))try{r()}catch(i){t=i instanceof qt?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Pi(i)}catch(s){t=t??[],s instanceof qt?t=[...t,...s.errors]:t.push(s)}}if(t)throw new qt(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Pi(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Me(n,t)}remove(t){let{_finalizers:n}=this;n&&Me(n,t),t instanceof e&&t._removeParent(this)}};O.EMPTY=(()=>{let e=new O;return e.closed=!0,e})();var lr=O.EMPTY;function Yt(e){return e instanceof O||e&&"closed"in e&&g(e.remove)&&g(e.add)&&g(e.unsubscribe)}function Pi(e){g(e)?e():e.unsubscribe()}var W={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var qe={setTimeout(e,t,...n){let{delegate:r}=qe;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=qe;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Qt(e){qe.setTimeout(()=>{let{onUnhandledError:t}=W;if(t)t(e);else throw e})}function yt(){}var ki=dr("C",void 0,void 0);function Li(e){return dr("E",void 0,e)}function ji(e){return dr("N",e,void 0)}function dr(e,t,n){return{kind:e,value:t,error:n}}var _e=null;function Ye(e){if(W.useDeprecatedSynchronousErrorHandling){let t=!_e;if(t&&(_e={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=_e;if(_e=null,n)throw r}}else e()}function Vi(e){W.useDeprecatedSynchronousErrorHandling&&_e&&(_e.errorThrown=!0,_e.error=e)}var xe=class extends O{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Yt(t)&&t.add(this)):this.destination=Bc}static create(t,n,r){return new ie(t,n,r)}next(t){this.isStopped?pr(ji(t),this):this._next(t)}error(t){this.isStopped?pr(Li(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?pr(ki,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()}}},jc=Function.prototype.bind;function fr(e,t){return jc.call(e,t)}var hr=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Zt(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Zt(r)}else Zt(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Zt(n)}}},ie=class extends xe{constructor(t,n,r){super();let o;if(g(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&W.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&fr(t.next,i),error:t.error&&fr(t.error,i),complete:t.complete&&fr(t.complete,i)}):o=t}this.destination=new hr(o)}};function Zt(e){W.useDeprecatedSynchronousErrorHandling?Vi(e):Qt(e)}function Vc(e){throw e}function pr(e,t){let{onStoppedNotification:n}=W;n&&qe.setTimeout(()=>n(e,t))}var Bc={closed:!0,next:yt,error:Vc,complete:yt};var Qe=typeof Symbol=="function"&&Symbol.observable||"@@observable";function k(e){return e}function $c(...e){return gr(e)}function gr(e){return e.length===0?k:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var C=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Uc(n)?n:new ie(n,r,o);return Ye(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Bi(r),new r((o,i)=>{let s=new ie({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Qe](){return this}pipe(...n){return gr(n)(this)}toPromise(n){return n=Bi(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Bi(e){var t;return(t=e??W.Promise)!==null&&t!==void 0?t:Promise}function Hc(e){return e&&g(e.next)&&g(e.error)&&g(e.complete)}function Uc(e){return e&&e instanceof xe||Hc(e)&&Yt(e)}function mr(e){return g(e?.lift)}function y(e){return t=>{if(mr(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function D(e,t,n,r,o){return new yr(e,t,n,r,o)}var yr=class extends xe{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function Dr(){return y((e,t)=>{let n=null;e._refCount++;let r=D(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var vr=class extends C{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,mr(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new O;let n=this.getSubject();t.add(this.source.subscribe(D(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=O.EMPTY)}return t}refCount(){return Dr()(this)}};var $i=We(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var te=(()=>{class e extends C{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Kt(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new $i}next(n){Ye(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Ye(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Ye(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?lr:(this.currentObservers=null,i.push(n),new O(()=>{this.currentObservers=null,Me(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new C;return n.source=this,n}}return e.create=(t,n)=>new Kt(t,n),e})(),Kt=class extends te{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:lr}};var Dt=class extends te{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Ir={now(){return(Ir.delegate||Date).now()},delegate:void 0};var Jt=class extends O{constructor(t,n){super()}schedule(t,n=0){return this}};var vt={setInterval(e,t,...n){let{delegate:r}=vt;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=vt;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Xt=class extends Jt{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return vt.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&vt.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Me(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Ze=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Ze.now=Ir.now;var en=class extends Ze{constructor(t,n=Ze.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Hi=new en(Xt);var It=new C(e=>e.complete());function Ui(e){return e&&g(e.schedule)}function Gi(e){return e[e.length-1]}function tn(e){return g(Gi(e))?e.pop():void 0}function ge(e){return Ui(Gi(e))?e.pop():void 0}function Wi(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function zi(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Te(e){return this instanceof Te?(this.v=e,this):new Te(e)}function qi(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(p){return new Promise(function(m,w){i.push([f,p,m,w])>1||a(f,p)})})}function a(f,p){try{u(r[f](p))}catch(m){d(i[0][3],m)}}function u(f){f.value instanceof Te?Promise.resolve(f.value.v).then(c,l):d(i[0][2],f)}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,p){f(p),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Yi(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof zi=="function"?zi(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var nn=e=>e&&typeof e.length=="number"&&typeof e!="function";function rn(e){return g(e?.then)}function on(e){return g(e[Qe])}function sn(e){return Symbol.asyncIterator&&g(e?.[Symbol.asyncIterator])}function an(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Gc(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var un=Gc();function cn(e){return g(e?.[un])}function ln(e){return qi(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Te(n.read());if(o)return yield Te(void 0);yield yield Te(r)}}finally{n.releaseLock()}})}function dn(e){return g(e?.getReader)}function T(e){if(e instanceof C)return e;if(e!=null){if(on(e))return zc(e);if(nn(e))return Wc(e);if(rn(e))return qc(e);if(sn(e))return Qi(e);if(cn(e))return Yc(e);if(dn(e))return Qc(e)}throw an(e)}function zc(e){return new C(t=>{let n=e[Qe]();if(g(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Wc(e){return new C(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Qt)})}function Yc(e){return new C(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Qi(e){return new C(t=>{Zc(e,t).catch(n=>t.error(n))})}function Qc(e){return Qi(ln(e))}function Zc(e,t){var n,r,o,i;return Wi(this,void 0,void 0,function*(){try{for(n=Yi(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function L(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function fn(e,t=0){return y((n,r)=>{n.subscribe(D(r,o=>L(r,e,()=>r.next(o),t),()=>L(r,e,()=>r.complete(),t),o=>L(r,e,()=>r.error(o),t)))})}function pn(e,t=0){return y((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Zi(e,t){return T(e).pipe(pn(t),fn(t))}function Ki(e,t){return T(e).pipe(pn(t),fn(t))}function Ji(e,t){return new C(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Xi(e,t){return new C(n=>{let r;return L(n,t,()=>{r=e[un](),L(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>g(r?.return)&&r.return()})}function hn(e,t){if(!e)throw new Error("Iterable cannot be null");return new C(n=>{L(n,t,()=>{let r=e[Symbol.asyncIterator]();L(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function es(e,t){return hn(ln(e),t)}function ts(e,t){if(e!=null){if(on(e))return Zi(e,t);if(nn(e))return Ji(e,t);if(rn(e))return Ki(e,t);if(sn(e))return hn(e,t);if(cn(e))return Xi(e,t);if(dn(e))return es(e,t)}throw an(e)}function me(e,t){return t?ts(e,t):T(e)}function Kc(...e){let t=ge(e);return me(e,t)}function Jc(e,t){let n=g(e)?e:()=>e,r=o=>o.error(n());return new C(t?o=>t.schedule(r,0,o):r)}function Xc(e){return!!e&&(e instanceof C||g(e.lift)&&g(e.subscribe))}var Se=We(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function ne(e,t){return y((n,r)=>{let o=0;n.subscribe(D(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:el}=Array;function tl(e,t){return el(t)?e(...t):e(t)}function gn(e){return ne(t=>tl(e,t))}var{isArray:nl}=Array,{getPrototypeOf:rl,prototype:ol,keys:il}=Object;function mn(e){if(e.length===1){let t=e[0];if(nl(t))return{args:t,keys:null};if(sl(t)){let n=il(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function sl(e){return e&&typeof e=="object"&&rl(e)===ol}function yn(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function al(...e){let t=ge(e),n=tn(e),{args:r,keys:o}=mn(e);if(r.length===0)return me([],t);let i=new C(ul(r,t,o?s=>yn(o,s):k));return n?i.pipe(gn(n)):i}function ul(e,t,n=k){return r=>{ns(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let u=0;u{let c=me(e[u],t),l=!1;c.subscribe(D(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ns(e,t,n){e?L(n,e,t):t()}function rs(e,t,n,r,o,i,s,a){let u=[],c=0,l=0,d=!1,f=()=>{d&&!u.length&&!c&&t.complete()},p=w=>c{i&&t.next(w),c++;let ee=!1;T(n(w,l++)).subscribe(D(t,P=>{o?.(P),i?p(P):t.next(P)},()=>{ee=!0},void 0,()=>{if(ee)try{for(c--;u.length&&cm(P)):m(P)}f()}catch(P){t.error(P)}}))};return e.subscribe(D(t,p,()=>{d=!0,f()})),()=>{a?.()}}function Ne(e,t,n=1/0){return g(t)?Ne((r,o)=>ne((i,s)=>t(r,i,o,s))(T(e(r,o))),n):(typeof t=="number"&&(n=t),y((r,o)=>rs(r,o,e,n)))}function os(e=1/0){return Ne(k,e)}function is(){return os(1)}function Dn(...e){return is()(me(e,ge(e)))}function cl(e){return new C(t=>{T(e()).subscribe(t)})}function ll(...e){let t=tn(e),{args:n,keys:r}=mn(e),o=new C(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=f},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?yn(r,a):a),i.complete())}))}});return t?o.pipe(gn(t)):o}function Ae(e,t){return y((n,r)=>{let o=0;n.subscribe(D(r,i=>e.call(t,i,o++)&&r.next(i)))})}function ss(e){return y((t,n)=>{let r=null,o=!1,i;r=t.subscribe(D(n,void 0,void 0,s=>{i=T(e(s,ss(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function as(e,t,n,r,o){return(i,s)=>{let a=n,u=t,c=0;i.subscribe(D(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function dl(e,t){return g(t)?Ne(e,t,1):Ne(e,1)}function fl(e,t=Hi){return y((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,r.next(c)}};function u(){let c=s+e,l=t.now();if(l{i=c,s=t.now(),o||(o=t.schedule(u,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function wt(e){return y((t,n)=>{let r=!1;t.subscribe(D(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function wr(e){return e<=0?()=>It:y((t,n)=>{let r=0;t.subscribe(D(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function pl(e){return ne(()=>e)}function hl(e,t=k){return e=e??gl,y((n,r)=>{let o,i=!0;n.subscribe(D(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function gl(e,t){return e===t}function vn(e=ml){return y((t,n)=>{let r=!1;t.subscribe(D(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function ml(){return new Se}function yl(e){return y((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function us(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ae((o,i)=>e(o,i,r)):k,wr(1),n?wt(t):vn(()=>new Se))}function Er(e){return e<=0?()=>It:y((t,n)=>{let r=[];t.subscribe(D(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Dl(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ae((o,i)=>e(o,i,r)):k,Er(1),n?wt(t):vn(()=>new Se))}function vl(e,t){return y(as(e,t,arguments.length>=2,!0))}function Il(e={}){let{connector:t=()=>new te,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,c=0,l=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},p=()=>{f(),s=u=void 0,l=d=!1},m=()=>{let w=s;p(),w?.unsubscribe()};return y((w,ee)=>{c++,!d&&!l&&f();let P=u=u??t();ee.add(()=>{c--,c===0&&!d&&!l&&(a=Cr(m,o))}),P.subscribe(ee),!s&&c>0&&(s=new ie({next:pe=>P.next(pe),error:pe=>{d=!0,f(),a=Cr(p,n,pe),P.error(pe)},complete:()=>{l=!0,f(),a=Cr(p,r),P.complete()}}),T(w).subscribe(s))})(i)}}function Cr(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new ie({next:()=>{r.unsubscribe(),e()}});return T(t(...n)).subscribe(r)}function wl(e){return Ae((t,n)=>e<=n)}function El(...e){let t=ge(e);return y((n,r)=>{(t?Dn(e,n,t):Dn(e,n)).subscribe(r)})}function Cl(e,t){return y((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(D(r,u=>{o?.unsubscribe();let c=0,l=i++;T(e(u,l)).subscribe(o=D(r,d=>r.next(t?t(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function bl(e){return y((t,n)=>{T(e).subscribe(D(n,()=>n.complete(),yt)),!n.closed&&t.subscribe(n)})}function cs(e,t,n){let r=g(e)||t||n?{next:e,error:t,complete:n}:e;return r?y((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(D(i,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),i.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),i.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),i.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):k}var qs="https://g.co/ng/security#xss",M=class extends Error{constructor(t,n){super(Ys(t,n)),this.code=t}};function Ys(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function Rt(e){return{toString:e}.toString()}var In="__parameters__";function Ml(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Qs(e,t,n){return Rt(()=>{let r=Ml(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(In)?u[In]:Object.defineProperty(u,In,{value:[]})[In];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var et=globalThis;function _(e){for(let t in e)if(e[t]===_)return t;throw Error("Could not find renamed property on target object.")}function _l(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function V(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(V).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function Lr(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var xl=_({__forward_ref__:_});function Zs(e){return e.__forward_ref__=Zs,e.toString=function(){return V(this())},e}function G(e){return Ks(e)?e():e}function Ks(e){return typeof e=="function"&&e.hasOwnProperty(xl)&&e.__forward_ref__===Zs}function A(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Js(e){return{providers:e.providers||[],imports:e.imports||[]}}function Zn(e){return ls(e,Xs)||ls(e,ea)}function rC(e){return Zn(e)!==null}function ls(e,t){return e.hasOwnProperty(t)?e[t]:null}function Tl(e){let t=e&&(e[Xs]||e[ea]);return t||null}function ds(e){return e&&(e.hasOwnProperty(fs)||e.hasOwnProperty(Sl))?e[fs]:null}var Xs=_({\u0275prov:_}),fs=_({\u0275inj:_}),ea=_({ngInjectableDef:_}),Sl=_({ngInjectorDef:_}),S=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=A({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ta(e){return e&&!!e.\u0275providers}var Nl=_({\u0275cmp:_}),Al=_({\u0275dir:_}),Ol=_({\u0275pipe:_}),Fl=_({\u0275mod:_}),An=_({\u0275fac:_}),Et=_({__NG_ELEMENT_ID__:_}),ps=_({__NG_ENV_ID__:_});function $o(e){return typeof e=="string"?e:e==null?"":String(e)}function Rl(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():$o(e)}function Pl(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new M(-200,e)}function Ho(e,t){throw new M(-201,!1)}var I=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(I||{}),jr;function na(){return jr}function U(e){let t=jr;return jr=e,t}function ra(e,t,n){let r=Zn(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&I.Optional)return null;if(t!==void 0)return t;Ho(e,"Injector")}var kl={},Ct=kl,Vr="__NG_DI_FLAG__",On="ngTempTokenPath",Ll="ngTokenPath",jl=/\n/gm,Vl="\u0275",hs="__source",tt;function Bl(){return tt}function ye(e){let t=tt;return tt=e,t}function $l(e,t=I.Default){if(tt===void 0)throw new M(-203,!1);return tt===null?ra(e,void 0,t):tt.get(e,t&I.Optional?null:void 0,t)}function B(e,t=I.Default){return(na()||$l)(G(e),t)}function N(e,t=I.Default){return B(e,Kn(t))}function Kn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Br(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):V(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(jl,` + `)}`}var zl=oa(Qs("Optional"),8);var Wl=oa(Qs("SkipSelf"),4);function ot(e,t){let n=e.hasOwnProperty(An);return n?e[An]:null}function ql(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?Uo(n,t):t(n))}function ia(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Fn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ql(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Go(e,t,n){let r=Pt(e,t);return r>=0?e[r|1]=n:(r=~r,Zl(e,r,t,n)),r}function br(e,t){let n=Pt(e,t);if(n>=0)return e[n|1]}function Pt(e,t){return Kl(e,t,1)}function Kl(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(q(r))return!1;s=!0}}}}return q(r)||s}function q(e){return(e&1)===0}function rd(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!q(s)&&(t+=ms(i,o),o=""),r=s,i=i||!q(r);n++}return o!==""&&(t+=ms(i,o)),t}function cd(e){return e.map(ud).join(",")}function ld(e){let t=[],n=[],r=1,o=2;for(;r{let t=ya(e),n=mt(gt({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ua.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||bt.Emulated,styles:e.styles||j,_:null,schemas:e.schemas||null,tView:null,id:""});Da(n);let r=e.dependencies;return n.directiveDefs=Ds(r,!1),n.pipeDefs=Ds(r,!0),n.id=hd(n),n})}function dd(e){return Pe(e)||ha(e)}function fd(e){return e!==null}function fa(e){return Rt(()=>({type:e.type,bootstrap:e.bootstrap||j,declarations:e.declarations||j,imports:e.imports||j,exports:e.exports||j,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ys(e,t){if(e==null)return it;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Re.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Re.None?[r,a]:r,t[i]=s):n[i]=r}return n}function pa(e){return Rt(()=>{let t=ya(e);return Da(t),t})}function Pe(e){return e[Nl]||null}function ha(e){return e[Al]||null}function ga(e){return e[Ol]||null}function pd(e){let t=Pe(e)||ha(e)||ga(e);return t!==null?t.standalone:!1}function ma(e,t){let n=e[Fl]||null;if(!n&&t===!0)throw new Error(`Type ${V(e)} does not have '\u0275mod' property.`);return n}function ya(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||it,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||j,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ys(e.inputs,t),outputs:ys(e.outputs),debugInfo:null}}function Da(e){e.features?.forEach(t=>t(e))}function Ds(e,t){if(!e)return null;let n=t?ga:dd;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(fd)}function hd(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function gd(e){return{\u0275providers:e}}function md(...e){return{\u0275providers:va(!0,e),\u0275fromNgModule:!0}}function va(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Uo(t,s=>{let a=s;Hr(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Ia(o,i),n}function Ia(e,t){for(let n=0;n{t(i,r)})}}function Hr(e,t,n,r){if(e=G(e),!e)return!1;let o=null,i=ds(e),s=!i&&Pe(e);if(!i&&!s){let u=e.ngModule;if(i=ds(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Hr(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Uo(i.imports,l=>{Hr(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Ia(c,t)}if(!a){let c=ot(o)||(()=>new o);t({provide:o,useFactory:c,deps:j},o),t({provide:aa,useValue:o,multi:!0},o),t({provide:Rn,useValue:()=>B(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;Wo(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Wo(e,t){for(let n of e)ta(n)&&(n=n.\u0275providers),Array.isArray(n)?Wo(n,t):t(n)}var yd=_({provide:String,useValue:_});function wa(e){return e!==null&&typeof e=="object"&&yd in e}function Dd(e){return!!(e&&e.useExisting)}function vd(e){return!!(e&&e.useFactory)}function Ur(e){return typeof e=="function"}var Ea=new S(""),Mn={},Id={},Mr;function qo(){return Mr===void 0&&(Mr=new Pn),Mr}var Ie=class{},_t=class extends Ie{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,zr(t,s=>this.processProvider(s)),this.records.set(sa,Ke(void 0,this)),o.has("environment")&&this.records.set(Ie,Ke(void 0,this));let i=this.records.get(Ea);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(aa,j,I.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=b(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),b(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=ye(this),r=U(void 0),o;try{return t()}finally{ye(n),U(r)}}get(t,n=Ct,r=I.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(ps))return t[ps](this);r=Kn(r);let o,i=ye(this),s=U(void 0);try{if(!(r&I.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=_d(t)&&Zn(t);c&&this.injectableDefInScope(c)?u=Ke(Gr(t),Mn):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&I.Self?qo():this.parent;return n=r&I.Optional&&n===Ct?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[On]=a[On]||[]).unshift(V(t)),i)throw a;return Ul(a,t,"R3InjectorError",this.source)}else throw a}finally{U(s),ye(i)}}resolveInjectorInitializers(){let t=b(null),n=ye(this),r=U(void 0),o;try{let i=this.get(Rn,j,I.Self);for(let s of i)s()}finally{ye(n),U(r),b(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(V(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processProvider(t){t=G(t);let n=Ur(t)?t:G(t&&t.provide),r=Ed(t);if(!Ur(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Ke(void 0,Mn,!0),o.factory=()=>Br(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=b(null);try{return n.value===Mn&&(n.value=Id,n.value=n.factory()),typeof n.value=="object"&&n.value&&Md(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{b(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=G(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Gr(e){let t=Zn(e),n=t!==null?t.factory:ot(e);if(n!==null)return n;if(e instanceof S)throw new M(204,!1);if(e instanceof Function)return wd(e);throw new M(204,!1)}function wd(e){if(e.length>0)throw new M(204,!1);let n=Tl(e);return n!==null?()=>n.factory(e):()=>new e}function Ed(e){if(wa(e))return Ke(void 0,e.useValue);{let t=Cd(e);return Ke(t,Mn)}}function Cd(e,t,n){let r;if(Ur(e)){let o=G(e);return ot(o)||Gr(o)}else if(wa(e))r=()=>G(e.useValue);else if(vd(e))r=()=>e.useFactory(...Br(e.deps||[]));else if(Dd(e))r=()=>B(G(e.useExisting));else{let o=G(e&&(e.useClass||e.provide));if(bd(e))r=()=>new o(...Br(e.deps));else return ot(o)||Gr(o)}return r}function Ke(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function bd(e){return!!e.deps}function Md(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function _d(e){return typeof e=="function"||typeof e=="object"&&e instanceof S}function zr(e,t){for(let n of e)Array.isArray(n)?zr(n,t):n&&ta(n)?zr(n.\u0275providers,t):t(n)}function iC(e,t){e instanceof _t&&e.assertNotDestroyed();let n,r=ye(e),o=U(void 0);try{return t()}finally{ye(r),U(o)}}function xd(){return na()!==void 0||Bl()!=null}function Td(e){return typeof e=="function"}var le=0,v=1,h=2,F=3,Q=4,H=5,xt=6,kn=7,we=8,st=9,oe=10,R=11,Tt=12,vs=13,kt=14,K=15,Lt=16,Je=17,se=18,Jn=19,Ca=20,ve=21,_r=22,ke=23,ae=25,ba=1;var Le=7,Ln=8,at=9,$=10,Yo=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Yo||{});function nt(e){return Array.isArray(e)&&typeof e[ba]=="object"}function de(e){return Array.isArray(e)&&e[ba]===!0}function Ma(e){return(e.flags&4)!==0}function Xn(e){return e.componentOffset>-1}function _a(e){return(e.flags&1)===1}function je(e){return!!e.template}function Sd(e){return(e[h]&512)!==0}var Wr=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function xa(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Ta(){return Sa}function Sa(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ad),Nd}Ta.ngInherit=!0;function Nd(){let e=Aa(this),t=e?.current;if(t){let n=e.previous;if(n===it)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Ad(e,t,n,r,o){let i=this.declaredInputs[r],s=Aa(e)||Od(e,{previous:it,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Wr(c&&c.currentValue,n,u===it),xa(e,t,o,n)}var Na="__ngSimpleChanges__";function Aa(e){return e[Na]||null}function Od(e,t){return e[Na]=t}var Is=null;var De=function(e,t,n){Is?.(e,t,n)},Fd="svg",Rd="math",Pd=!1;function kd(){return Pd}function ue(e){for(;Array.isArray(e);)e=e[le];return e}function Oa(e,t){return ue(t[e])}function J(e,t){return ue(t[e.index])}function Fa(e,t){return e.data[t]}function ft(e,t){let n=t[e];return nt(n)?n:n[le]}function Ld(e){return(e[h]&4)===4}function Qo(e){return(e[h]&128)===128}function jd(e){return de(e[F])}function jn(e,t){return t==null?null:e[t]}function Ra(e){e[Je]=0}function Vd(e){e[h]&1024||(e[h]|=1024,Qo(e)&&St(e))}function Zo(e){return!!(e[h]&9216||e[ke]?.dirty)}function qr(e){e[oe].changeDetectionScheduler?.notify(1),Zo(e)?St(e):e[h]&64&&(kd()?(e[h]|=1024,St(e)):e[oe].changeDetectionScheduler?.notify())}function St(e){e[oe].changeDetectionScheduler?.notify();let t=Nt(e);for(;t!==null&&!(t[h]&8192||(t[h]|=8192,!Qo(t)));)t=Nt(t)}function Pa(e,t){if((e[h]&256)===256)throw new M(911,!1);e[ve]===null&&(e[ve]=[]),e[ve].push(t)}function Bd(e,t){if(e[ve]===null)return;let n=e[ve].indexOf(t);n!==-1&&e[ve].splice(n,1)}function Nt(e){let t=e[F];return de(t)?t[F]:t}var E={lFrame:za(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function $d(){return E.lFrame.elementDepthCount}function Hd(){E.lFrame.elementDepthCount++}function Ud(){E.lFrame.elementDepthCount--}function ka(){return E.bindingsEnabled}function La(){return E.skipHydrationRootTNode!==null}function Gd(e){return E.skipHydrationRootTNode===e}function zd(){E.skipHydrationRootTNode=null}function x(){return E.lFrame.lView}function z(){return E.lFrame.tView}function X(){let e=ja();for(;e!==null&&e.type===64;)e=e.parent;return e}function ja(){return E.lFrame.currentTNode}function Wd(){let e=E.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function jt(e,t){let n=E.lFrame;n.currentTNode=e,n.isParent=t}function Va(){return E.lFrame.isParent}function Ba(){E.lFrame.isParent=!1}function qd(e){return E.lFrame.bindingIndex=e}function Ko(){return E.lFrame.bindingIndex++}function $a(e){let t=E.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Yd(){return E.lFrame.inI18n}function Qd(e,t){let n=E.lFrame;n.bindingIndex=n.bindingRootIndex=e,Yr(t)}function Zd(){return E.lFrame.currentDirectiveIndex}function Yr(e){E.lFrame.currentDirectiveIndex=e}function Kd(e){let t=E.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ha(){return E.lFrame.currentQueryIndex}function Jo(e){E.lFrame.currentQueryIndex=e}function Jd(e){let t=e[v];return t.type===2?t.declTNode:t.type===1?e[H]:null}function Ua(e,t,n){if(n&I.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&I.Host);)if(o=Jd(i),o===null||(i=i[kt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=E.lFrame=Ga();return r.currentTNode=t,r.lView=e,!0}function Xo(e){let t=Ga(),n=e[v];E.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ga(){let e=E.lFrame,t=e===null?null:e.child;return t===null?za(e):t}function za(e){let 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:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Wa(){let e=E.lFrame;return E.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var qa=Wa;function ei(){let e=Wa();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ue(){return E.lFrame.selectedIndex}function Ve(e){E.lFrame.selectedIndex=e}function Ya(){let e=E.lFrame;return Fa(e.tView,e.selectedIndex)}function Xd(){return E.lFrame.currentNamespace}var Qa=!0;function ti(){return Qa}function ni(e){Qa=e}function ef(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Sa(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function ri(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[Je]+=65536),(a>14>16&&(e[h]&3)===t&&(e[h]+=16384,ws(a,i)):ws(a,i)}var rt=-1,At=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function nf(e){return e instanceof At}function rf(e){return(e.flags&8)!==0}function of(e){return(e.flags&16)!==0}function Ka(e){return e!==rt}function Vn(e){return e&32767}function sf(e){return e>>16}function Bn(e,t){let n=sf(e),r=t;for(;n>0;)r=r[kt],n--;return r}var Qr=!0;function Es(e){let t=Qr;return Qr=e,t}var af=256,Ja=af-1,Xa=5,uf=0,re={};function cf(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Et)&&(r=n[Et]),r==null&&(r=n[Et]=uf++);let o=r&Ja,i=1<>Xa)]|=i}function eu(e,t){let n=tu(e,t);if(n!==-1)return n;let r=t[v];r.firstCreatePass&&(e.injectorIndex=t.length,Tr(r.data,e),Tr(t,null),Tr(r.blueprint,null));let o=oi(e,t),i=e.injectorIndex;if(Ka(o)){let s=Vn(o),a=Bn(o,t),u=a[v].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function Tr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function tu(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function oi(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=su(o),r===null)return rt;if(n++,o=o[kt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return rt}function lf(e,t,n){cf(e,t,n)}function df(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,f=o?a+l:c;for(let p=d;p=u&&m.type===n)return p}if(o){let p=s[u];if(p&&je(p)&&p.type===n)return u}return null}function ut(e,t,n,r){let o=e[n],i=t.data;if(nf(o)){let s=o;s.resolving&&Pl(Rl(i[n]));let a=Es(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?U(s.injectImpl):null,l=Ua(e,r,I.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&ef(n,i[n],t)}finally{c!==null&&U(c),Es(a),s.resolving=!1,qa()}}return o}function pf(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Et)?e[Et]:void 0;return typeof t=="number"?t>=0?t&Ja:hf:t}function Cs(e,t,n){let r=1<>Xa)]&r)}function bs(e,t){return!(e&I.Self)&&!(e&I.Host&&t)}var Fe=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return ou(this._tNode,this._lView,t,Kn(r),n)}};function hf(){return new Fe(X(),x())}function sC(e){return Rt(()=>{let t=e.prototype.constructor,n=t[An]||Zr(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[An]||Zr(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Zr(e){return Ks(e)?()=>{let t=Zr(G(e));return t&&t()}:ot(e)}function gf(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[h]&2048&&!(s[h]&512);){let a=iu(i,s,n,r|I.Self,re);if(a!==re)return a;let u=i.parent;if(!u){let c=s[Ca];if(c){let l=c.get(n,re,r);if(l!==re)return l}u=su(s),s=s[kt]}i=u}return o}function su(e){let t=e[v],n=t.type;return n===2?t.declTNode:n===1?e[H]:null}function mf(e){return df(X(),e)}function Ms(e,t=null,n=null,r){let o=au(e,t,n,r);return o.resolveInjectorInitializers(),o}function au(e,t=null,n=null,r,o=new Set){let i=[n||j,md(e)];return r=r||(typeof e=="object"?void 0:V(e)),new _t(i,t||qo(),r||null,o)}var ii=(()=>{let t=class t{static create(r,o){if(Array.isArray(r))return Ms({name:""},o,r,"");{let i=r.name??"";return Ms({name:i},r.parent,r.providers,i)}}};t.THROW_IF_NOT_FOUND=Ct,t.NULL=new Pn,t.\u0275prov=A({token:t,providedIn:"any",factory:()=>B(sa)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var yf="ngOriginalError";function Sr(e){return e[yf]}var ct=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Sr(t);for(;n&&Sr(n);)n=Sr(n);return n||null}},uu=new S("",{providedIn:"root",factory:()=>N(ct).handleError.bind(void 0)}),cu=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Df,t.__NG_ENV_ID__=r=>r;let e=t;return e})(),Kr=class extends cu{constructor(t){super(),this._lView=t}onDestroy(t){return Pa(this._lView,t),()=>Bd(this._lView,t)}};function Df(){return new Kr(x())}function vf(){return pt(X(),x())}function pt(e,t){return new ht(J(e,t))}var ht=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=vf;let e=t;return e})();function If(e){return e instanceof ht?e.nativeElement:e}var Jr=class extends te{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,xd()&&(this.destroyRef=N(cu,{optional:!0})??void 0)}emit(t){let n=b(null);try{super.next(t)}finally{b(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=Nr(i),o&&(o=Nr(o)),s&&(s=Nr(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof O&&t.add(a),a}};function Nr(e){return t=>{setTimeout(e,void 0,t)}}var Oe=Jr;function wf(){return this._results[Symbol.iterator]()}var Xr=class e{get changes(){return this._changes??=new Oe}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=wf)}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,n){return this._results.reduce(t,n)}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,n){this.dirty=!1;let r=Yl(t);(this._changesDetected=!ql(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function lu(e){return(e.flags&128)===128}var du=new Map,Ef=0;function Cf(){return Ef++}function bf(e){du.set(e[Jn],e)}function Mf(e){du.delete(e[Jn])}var _s="__ngContext__";function Be(e,t){nt(t)?(e[_s]=t[Jn],bf(t)):e[_s]=t}function fu(e){return hu(e[Tt])}function pu(e){return hu(e[Q])}function hu(e){for(;e!==null&&!de(e);)e=e[Q];return e}var eo;function aC(e){eo=e}function _f(){if(eo!==void 0)return eo;if(typeof document<"u")return document;throw new M(210,!1)}var uC=new S("",{providedIn:"root",factory:()=>xf}),xf="ng",Tf=new S(""),Sf=new S("",{providedIn:"platform",factory:()=>"unknown"});var cC=new S(""),lC=new S("",{providedIn:"root",factory:()=>_f().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Nf="h",Af="b";var Of=()=>null;function si(e,t,n=!1){return Of(e,t,n)}var gu=!1,Ff=new S("",{providedIn:"root",factory:()=>gu});var wn;function Rf(){if(wn===void 0&&(wn=null,et.trustedTypes))try{wn=et.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return wn}function er(e){return Rf()?.createHTML(e)||e}var ce=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qs})`}},to=class extends ce{getTypeName(){return"HTML"}},no=class extends ce{getTypeName(){return"Style"}},ro=class extends ce{getTypeName(){return"Script"}},oo=class extends ce{getTypeName(){return"URL"}},io=class extends ce{getTypeName(){return"ResourceURL"}};function ai(e){return e instanceof ce?e.changingThisBreaksApplicationSecurity:e}function dC(e,t){let n=Pf(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${qs})`)}return n===t}function Pf(e){return e instanceof ce&&e.getTypeName()||null}function fC(e){return new to(e)}function pC(e){return new no(e)}function hC(e){return new ro(e)}function gC(e){return new oo(e)}function mC(e){return new io(e)}function kf(e){let t=new ao(e);return Lf()?new so(t):t}var so=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(er(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}},ao=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=er(t),n}};function Lf(){try{return!!new window.DOMParser().parseFromString(er(""),"text/html")}catch{return!1}}var jf=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Vf(e){return e=String(e),e.match(jf)?e:"unsafe:"+e}function fe(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Vt(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var mu=fe("area,br,col,hr,img,wbr"),yu=fe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Du=fe("rp,rt"),Bf=Vt(Du,yu),$f=Vt(yu,fe("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")),Hf=Vt(Du,fe("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")),xs=Vt(mu,$f,Hf,Bf),vu=fe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Uf=fe("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"),Gf=fe("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"),zf=Vt(vu,Uf,Gf),Wf=fe("script,style,template"),uo=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=Qf(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=Yf(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=Ts(t).toLowerCase();if(!xs.hasOwnProperty(n))return this.sanitizedSomething=!0,!Wf.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=Ts(t).toLowerCase();xs.hasOwnProperty(n)&&!mu.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Ss(t))}};function qf(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Yf(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Iu(t);return t}function Qf(e){let t=e.firstChild;if(t&&qf(e,t))throw Iu(t);return t}function Ts(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Iu(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Zf=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Kf=/([^\#-~ |!])/g;function Ss(e){return e.replace(/&/g,"&").replace(Zf,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Kf,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var En;function yC(e,t){let n=null;try{En=En||kf(e);let r=t?String(t):"";n=En.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=En.getInertBodyElement(r)}while(r!==i);let a=new uo().sanitizeChildren(Ns(n)||n);return er(a)}finally{if(n){let r=Ns(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Ns(e){return"content"in e&&Jf(e)?e.content:null}function Jf(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Xf=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Xf||{});function wu(e){return e instanceof Function?e():e}var $n=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}($n||{}),ep;function ui(e,t){return ep(e,t)}function Xe(e,t,n,r,o){if(r!=null){let i,s=!1;de(r)?i=r:nt(r)&&(s=!0,r=r[le]);let a=ue(r);e===0&&n!==null?o==null?xu(t,n,a):Hn(t,n,a,o||null,!0):e===1&&n!==null?Hn(t,n,a,o||null,!0):e===2?gp(t,a,s):e===3&&t.destroyNode(a),i!=null&&yp(t,e,i,n,o)}}function tp(e,t){return e.createText(t)}function np(e,t,n){e.setValue(t,n)}function Eu(e,t,n){return e.createElement(t,n)}function rp(e,t){Cu(e,t),t[le]=null,t[H]=null}function op(e,t,n,r,o,i){r[le]=o,r[H]=t,tr(e,r,n,1,o,i)}function Cu(e,t){t[oe].changeDetectionScheduler?.notify(1),tr(e,t,t[R],2,null,null)}function ip(e){let t=e[Tt];if(!t)return Ar(e[v],e);for(;t;){let n=null;if(nt(t))n=t[Tt];else{let r=t[$];r&&(n=r)}if(!n){for(;t&&!t[Q]&&t!==e;)nt(t)&&Ar(t[v],t),t=t[F];t===null&&(t=e),nt(t)&&Ar(t[v],t),n=t&&t[Q]}t=n}}function sp(e,t,n,r){let o=$+r,i=n.length;r>0&&(n[o-1][Q]=t),r0&&(e[n-1][Q]=r[Q]);let i=Fn(e,$+t);rp(r[v],r);let s=i[se];s!==null&&s.detachView(i[v]),r[F]=null,r[Q]=null,r[h]&=-129}return r}function Mu(e,t){if(!(t[h]&256)){let n=t[R];n.destroyNode&&tr(e,t,n,3,null,null),ip(t)}}function Ar(e,t){if(t[h]&256)return;let n=b(null);try{t[h]&=-129,t[h]|=256,t[ke]&&Fi(t[ke]),cp(e,t),up(e,t),t[v].type===1&&t[R].destroy();let r=t[Lt];if(r!==null&&de(t[F])){r!==t[F]&&bu(r,t);let o=t[se];o!==null&&o.detachView(e)}Mf(t)}finally{b(n)}}function up(e,t){let n=e.cleanup,r=t[kn];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[kn]=null);let o=t[ve];if(o!==null){t[ve]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===bt.None||i===bt.Emulated)return null}return J(r,n)}}function Hn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function xu(e,t,n){e.appendChild(t,n)}function As(e,t,n,r,o){r!==null?Hn(e,t,n,r,o):xu(e,t,n)}function dp(e,t,n,r){e.removeChild(t,n,r)}function ci(e,t){return e.parentNode(t)}function fp(e,t){return e.nextSibling(t)}function Tu(e,t,n){return hp(e,t,n)}function pp(e,t,n){return e.type&40?J(e,n):null}var hp=pp,Os;function li(e,t,n,r){let o=_u(e,r,t),i=t[R],s=r.parent||t[H],a=Tu(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;uae&&Fu(e,t,ae,!1),De(s?2:0,o),n(r,o)}finally{Ve(i),De(s?3:1,o)}}function Lu(e,t,n){if(Ma(t)){let r=b(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function _p(e,t,n,r){let o=Wp(t);o.push(n),e.firstCreatePass&&qp(e).push(r,o.length-1)}function xp(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return La()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,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}}function Fs(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=Re.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?Rs(r,n,c,a,u):Rs(r,n,c,a)}return r}function Rs(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function Tp(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Rp(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Xn(n)&&$p(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||eu(n,t),Be(r,t);let s=n.initialInputs;for(let a=o;a{St(e.lView)},consumerOnSignalRead(){this.lView[ke]=this}}),qu=100;function Yu(e,t=!0,n=0){let r=e[oe],o=r.rendererFactory,i=!1;i||o.begin?.();try{sh(e,n)}catch(s){throw t&&Yp(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function sh(e,t){ho(e,t);let n=0;for(;Zo(e);){if(n===qu)throw new M(103,!1);n++,ho(e,1)}}function ah(e,t,n,r){let o=t[h];if((o&256)===256)return;let i=!1;!i&&t[oe].inlineEffectRunner?.flush(),Xo(t);let s=null,a=null;!i&&uh(e)&&(a=nh(t),s=Ai(a));try{Ra(t),qd(e.bindingStartIndex),n!==null&&ku(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let d=e.preOrderCheckHooks;d!==null&&_n(t,d,null)}else{let d=e.preOrderHooks;d!==null&&xn(t,d,0,null),xr(t,0)}if(ch(t),Qu(t,0),e.contentQueries!==null&&zu(e,t),!i)if(u){let d=e.contentCheckHooks;d!==null&&_n(t,d)}else{let d=e.contentHooks;d!==null&&xn(t,d,1),xr(t,1)}Ip(e,t);let c=e.components;c!==null&&Ku(t,c,0);let l=e.viewQuery;if(l!==null&&po(2,l,r),!i)if(u){let d=e.viewCheckHooks;d!==null&&_n(t,d)}else{let d=e.viewHooks;d!==null&&xn(t,d,2),xr(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[_r]){for(let d of t[_r])d();t[_r]=null}i||(t[h]&=-73)}catch(u){throw St(t),u}finally{a!==null&&(Oi(a,s),oh(a)),ei()}}function uh(e){return e.type!==2}function Qu(e,t){for(let n=fu(e);n!==null;n=pu(n))for(let r=$;r-1&&(co(t,r),Fn(n,r))}this._attachedToViewContainer=!1}Mu(this._lView[v],this._lView)}onDestroy(t){Pa(this._lView,t)}markForCheck(){Ju(this._cdRefInjectingView||this._lView)}detach(){this._lView[h]&=-129}reattach(){qr(this._lView),this._lView[h]|=128}detectChanges(){this._lView[h]|=1024,Yu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Cu(this._lView[v],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=t,qr(this._lView)}},lt=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=ph;let e=t;return e})(),dh=lt,fh=class extends dh{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Xp(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new $e(o)}};function ph(){return gi(X(),x())}function gi(e,t){return e.type&4?new fh(t,e,pt(e,t)):null}var wC=new RegExp(`^(\\d+)*(${Af}|${Nf})*(.*)`);var hh=()=>null;function ks(e,t){return hh(e,t)}var go=class{},mo=class{},Gn=class{};function gh(e){let t=Error(`No component factory found for ${V(e)}.`);return t[mh]=e,t}var mh="ngComponent";var yo=class{resolveComponentFactory(t){throw gh(t)}},or=(()=>{let t=class t{};t.NULL=new yo;let e=t;return e})(),Do=class{};var yh=(()=>{let t=class t{};t.\u0275prov=A({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),Or={};var Ls=new Set;function Xu(e){Ls.has(e)||(Ls.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function js(...e){}function Dh(){let e=typeof et.requestAnimationFrame=="function",t=et[e?"requestAnimationFrame":"setTimeout"],n=et[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){let r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);let o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}var Z=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Oe(!1),this.onMicrotaskEmpty=new Oe(!1),this.onStable=new Oe(!1),this.onError=new Oe(!1),typeof Zone>"u")throw new M(908,!1);Zone.assertZonePatched();let 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=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=Dh().nativeRequestAnimationFrame,wh(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new M(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,vh,js,js);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},vh={};function mi(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ih(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(et,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,vo(e),e.isCheckStableRunning=!0,mi(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),vo(e))}function wh(e){let t=()=>{Ih(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(Eh(a))return n.invokeTask(o,i,s,a);try{return Vs(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Bs(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return Vs(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),Bs(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&(i.change=="microTask"?(e._hasPendingMicrotasks=i.microTask,vo(e),mi(e)):i.change=="macroTask"&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function vo(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Vs(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Bs(e){e._nesting--,mi(e)}function Eh(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}var ec=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=A({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Io(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Au(e,n,i.join(" "))}}function Sh(e,t,n){let r=e.projection=[];for(let o=0;o{let t=class t{};t.__NG_ELEMENT_ID__=Ah;let e=t;return e})();function Ah(){let e=X();return nc(e,x())}var Oh=Ht,tc=class extends Oh{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return pt(this._hostTNode,this._hostLView)}get injector(){return new Fe(this._hostTNode,this._hostLView)}get parentInjector(){let t=oi(this._hostTNode,this._hostLView);if(Ka(t)){let n=Bn(t,this._hostLView),r=Vn(t),o=n[v].data[r+8];return new Fe(o,n)}else return new Fe(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Hs(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-$}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=ks(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Ps(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Td(t),a;if(s)a=n;else{let m=n||{};a=m.index,r=m.injector,o=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef}let u=s?t:new Ot(Pe(t)),c=r||this.parentInjector;if(!i&&u.ngModule==null){let w=(s?c:this.parentInjector).get(Ie,null);w&&(i=w)}let l=Pe(u.componentType??{}),d=ks(this._lContainer,l?.id??null),f=d?.firstChild??null,p=u.create(c,o,f,i);return this.insertImpl(p.hostView,a,Ps(this._hostTNode,d)),p}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(jd(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=o[F],c=new tc(u,u[H],u[F]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return eh(s,o,i,r),t.attachToViewContainerRef(),ia(Fr(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Hs(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=co(this._lContainer,n);r&&(Fn(Fr(this._lContainer),n),Mu(r[v],r))}detach(t){let n=this._adjustIndex(t,-1),r=co(this._lContainer,n);return r&&Fn(Fr(this._lContainer),n)!=null?new $e(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Hs(e){return e[Ln]}function Fr(e){return e[Ln]||(e[Ln]=[])}function nc(e,t){let n,r=t[e.index];return de(r)?n=r:(n=Gu(r,t,null,e),t[e.index]=n,rr(t,n)),Rh(n,t,e,r),new tc(n,e,t)}function Fh(e,t){let n=e[R],r=n.createComment(""),o=J(t,e),i=ci(n,o);return Hn(n,i,r,fp(n,o),!1),r}var Rh=Lh,Ph=()=>!1;function kh(e,t,n){return Ph(e,t,n)}function Lh(e,t,n,r){if(e[Le])return;let o;n.type&8?o=ue(r):o=Fh(t,n),e[Le]=o}var Co=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},bo=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let c=i[a+1],l=t[-u];for(let d=$;dt.trim())}function Wh(e,t,n){e.queries===null&&(e.queries=new _o),e.queries.track(new xo(t,n))}function qh(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function yi(e,t){return e.queries.getByIndex(t)}function Yh(e,t){let n=e[v],r=yi(n,t);return r.crossesNgTemplate?To(n,e,t,[]):rc(n,e,r,t)}function Qh(e){return Object.getPrototypeOf(e.prototype).constructor}function Zh(e){let t=Qh(e.type),n=!0,r=[e];for(;t;){let o;if(je(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new M(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Cn(e.inputs),s.inputTransforms=Cn(e.inputTransforms),s.declaredInputs=Cn(e.declaredInputs),s.outputs=Cn(e.outputs);let a=o.hostBindings;a&&tg(e,a);let u=o.viewQuery,c=o.contentQueries;if(u&&Xh(e,u),c&&eg(e,c),Kh(e,o),_l(e.outputs,o.outputs),je(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Mt(o.hostAttrs,n=Mt(n,o.hostAttrs))}}function Cn(e){return e===it?{}:e===j?[]:e}function Xh(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function eg(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function tg(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function ng(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}var Ee=class{},So=class{};var No=class extends Ee{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new zn(this);let o=ma(t);this._bootstrapComponents=wu(o.bootstrap),this._r3Injector=au(t,n,[{provide:Ee,useValue:this},{provide:or,useValue:this.componentFactoryResolver},...r],V(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Ao=class extends So{constructor(t){super(),this.moduleType=t}create(t){return new No(this.moduleType,t,[])}};var Wn=class extends Ee{constructor(t){super(),this.componentFactoryResolver=new zn(this),this.instance=null;let n=new _t([...t.providers,{provide:Ee,useValue:this},{provide:or,useValue:this.componentFactoryResolver}],t.parent||qo(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function rg(e,t,n=null){return new Wn({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var oc=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Dt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ic(e){return ig(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function og(e,t){if(Array.isArray(e))for(let n=0;n>17&32767}function pg(e){return(e&2)==2}function hg(e,t){return e&131071|t<<17}function Oo(e){return e|2}function dt(e){return(e&131068)>>2}function Rr(e,t){return e&-131069|t<<2}function gg(e){return(e&1)===1}function Fo(e){return e|1}function mg(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=He(s),u=dt(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Pt(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let f=He(e[a+1]);e[r+1]=bn(f,a),f!==0&&(e[f+1]=Rr(e[f+1],r)),e[a+1]=hg(e[a+1],r)}else e[r+1]=bn(a,0),a!==0&&(e[a+1]=Rr(e[a+1],r)),a=r;else e[r+1]=bn(u,0),a===0?a=r:e[u+1]=Rr(e[u+1],r),u=r;c&&(e[r+1]=Oo(e[r+1])),Us(e,l,r,!0),Us(e,l,r,!1),yg(t,l,e,r,i),s=bn(a,u),i?t.classBindings=s:t.styleBindings=s}function yg(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Pt(i,t)>=0&&(n[r+1]=Fo(n[r+1]))}function Us(e,t,n,r){let o=e[n+1],i=t===null,s=r?He(o):dt(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];Dg(u,t)&&(a=!0,e[s+1]=r?Fo(c):Oo(c)),s=r?He(c):dt(c)}a&&(e[n+1]=r?Oo(o):Fo(o))}function Dg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Pt(e,t)>=0:!1}var Y={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function vg(e){return e.substring(Y.key,Y.keyEnd)}function Ig(e){return wg(e),sc(e,ac(e,0,Y.textEnd))}function sc(e,t){let n=Y.textEnd;return n===t?-1:(t=Y.keyEnd=Eg(e,Y.key=t,n),ac(e,t,n))}function wg(e){Y.key=0,Y.keyEnd=0,Y.value=0,Y.valueEnd=0,Y.textEnd=e.length}function ac(e,t,n){for(;t32;)t++;return t}function Cg(e,t,n){let r=x(),o=Ko();if(Ut(r,o,t)){let i=z(),s=Ya();Np(i,s,r,e,t,r[R],n,!1)}return Cg}function Ro(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";pi(e,n,i[s],s,r)}function bg(e,t){return _g(e,t,null,!0),bg}function CC(e){xg(Fg,Mg,e,!0)}function Mg(e,t){for(let n=Ig(t);n>=0;n=sc(t,n))Go(e,vg(t),!0)}function _g(e,t,n,r){let o=x(),i=z(),s=$a(2);if(i.firstUpdatePass&&cc(i,e,s,r),t!==Ce&&Ut(o,s,t)){let a=i.data[Ue()];lc(i,a,o,o[R],e,o[s+1]=Pg(t,n),r,s)}}function xg(e,t,n,r){let o=z(),i=$a(2);o.firstUpdatePass&&cc(o,null,i,r);let s=x();if(n!==Ce&&Ut(s,i,n)){let a=o.data[Ue()];if(dc(a,r)&&!uc(o,i)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=Lr(u,n||"")),Ro(o,a,s,n,r)}else Rg(o,a,s,s[R],s[i+1],s[i+1]=Og(e,t,n),r,i)}}function uc(e,t){return t>=e.expandoStartIndex}function cc(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ue()],s=uc(e,n);dc(i,r)&&t===null&&!s&&(t=!1),t=Tg(o,i,t,r),mg(o,i,t,n,s,r)}}function Tg(e,t,n,r){let o=Kd(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Pr(null,e,t,n,r),n=Ft(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Pr(o,e,t,n,r),i===null){let u=Sg(e,t,r);u!==void 0&&Array.isArray(u)&&(u=Pr(null,e,t,u[1],r),u=Ft(u,t.attrs,r),Ng(e,t,r,u))}else i=Ag(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Sg(e,t,n){let r=n?t.classBindings:t.styleBindings;if(dt(r)!==0)return e[He(r)]}function Ng(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[He(o)]=r}function Ag(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,f=n[o+1];f===Ce&&(f=d?j:void 0);let p=d?br(f,r):l===r?f:void 0;if(c&&!qn(p)&&(p=br(u,r)),qn(p)&&(a=p,s))return a;let m=e[o+1];o=s?He(m):dt(m)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=br(u,r))}return a}function qn(e){return e!==void 0}function Pg(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=V(ai(e)))),e}function dc(e,t){return(e.flags&(t?8:16))!==0}function kg(e,t,n,r,o,i){let s=t.consts,a=jn(s,o),u=$t(t,e,2,r,a);return $u(t,n,u,jn(s,i)),u.attrs!==null&&Io(u,u.attrs,!1),u.mergedAttrs!==null&&Io(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function fc(e,t,n,r){let o=x(),i=z(),s=ae+e,a=o[R],u=i.firstCreatePass?kg(s,i,o,t,n,r):i.data[s],c=jg(i,o,u,a,t,e);o[s]=c;let l=_a(u);return jt(u,!0),Ou(a,c,u),!sg(u)&&ti()&&li(i,o,c,u),$d()===0&&Be(c,o),Hd(),l&&(ju(i,o,u),Lu(i,u,o)),r!==null&&Vu(o,u),fc}function pc(){let e=X();Va()?Ba():(e=e.parent,jt(e,!1));let t=e;Gd(t)&&zd(),Ud();let n=z();return n.firstCreatePass&&(ri(n,e),Ma(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&rf(t)&&Ro(n,t,x(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&of(t)&&Ro(n,t,x(),t.stylesWithoutHost,!1),pc}function Lg(e,t,n,r){return fc(e,t,n,r),pc(),Lg}var jg=(e,t,n,r,o,i)=>(ni(!0),Eu(r,o,Xd()));var Yn="en-US";var Vg=Yn;function Bg(e){typeof e=="string"&&(Vg=e.toLowerCase().replace(/_/g,"-"))}function $g(e,t){let n=null,r=od(e);for(let o=0;o(ni(!0),tp(t[R],r));function Ug(e){return hc("",e,""),Ug}function hc(e,t,n){let r=x(),o=fg(r,e,t,n);return o!==Ce&&Qp(r,Ue(),o),hc}var Gg=(()=>{let t=class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let o=va(!1,r.type),i=o.length>0?rg([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,i)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=A({token:t,providedIn:"environment",factory:()=>new t(B(Ie))});let e=t;return e})();function NC(e){Xu("NgStandalone"),e.getStandaloneInjector=t=>t.get(Gg).getOrCreateStandaloneInjector(e)}var AC=(()=>{let t=class t{log(r){console.log(r)}warn(r){console.warn(r)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var zg=new S("");function Di(e){return!!e&&typeof e.then=="function"}function gc(e){return!!e&&typeof e.subscribe=="function"}var Wg=new S(""),mc=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=N(Wg,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(Di(s))r.push(s);else if(gc(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),qg=new S("");function Yg(){Ri(()=>{throw new M(600,!1)})}function Qg(e){return e.isBoundToModule}function Zg(e,t,n){try{let r=n();return Di(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var yc=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=N(uu),this.afterRenderEffectManager=N(ec),this.externalTestViews=new Set,this.beforeRender=new te,this.afterTick=new te,this.componentTypes=[],this.components=[],this.isStable=N(oc).hasPendingTasks.pipe(ne(r=>!r)),this._injector=N(Ie)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof Gn;if(!this._injector.get(mc).done){let p=!i&&pd(r),m=!1;throw new M(405,m)}let a;i?a=r:a=this._injector.get(or).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let u=Qg(a)?void 0:this._injector.get(Ee),c=o||a.selector,l=a.create(ii.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(zg,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),kr(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new M(101,!1);let o=b(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(i){this.internalErrorHandler(i)}finally{this.afterTick.next(),this._runningTick=!1,b(o)}}detectChangesInAttachedViews(r){let o=0,i=this.afterRenderEffectManager;for(;;){if(o===qu)throw new M(103,!1);if(r){let s=o===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:u}of this._views)Kg(a,s,u)}if(o++,i.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Po(s))&&(i.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Po(s))))break}}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;kr(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(qg,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>kr(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new M(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function kr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Kg(e,t,n){!t&&!Po(e)||Jg(e,n,t)}function Po(e){return Zo(e)}function Jg(e,t,n){let r;n?(r=0,e[h]|=1024):e[h]&64?r=0:r=1,Yu(e,t,r)}var ko=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},OC=(()=>{let t=class t{compileModuleSync(r){return new Ao(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let o=this.compileModuleSync(r),i=ma(r),s=wu(i.declarations).reduce((a,u)=>{let c=Pe(u);return c&&a.push(new Ot(c)),a},[]);return new ko(o,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Xg=(()=>{let t=class t{constructor(){this.zone=N(Z),this.applicationRef=N(yc)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function em(e){return[{provide:Z,useFactory:e},{provide:Rn,multi:!0,useFactory:()=>{let t=N(Xg,{optional:!0});return()=>t.initialize()}},{provide:Rn,multi:!0,useFactory:()=>{let t=N(om);return()=>{t.initialize()}}},{provide:uu,useFactory:tm}]}function tm(){let e=N(Z),t=N(ct);return n=>e.runOutsideAngular(()=>t.handleError(n))}function nm(e){let t=em(()=>new Z(rm(e)));return gd([[],t])}function rm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var om=(()=>{let t=class t{constructor(){this.subscription=new O,this.initialized=!1,this.zone=N(Z),this.pendingTasks=N(oc)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Z.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Z.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function im(){return typeof $localize<"u"&&$localize.locale||Yn}var vi=new S("",{providedIn:"root",factory:()=>N(vi,I.Optional|I.SkipSelf)||im()});var Dc=new S("");var Nn=null;function sm(e=[],t){return ii.create({name:t,providers:[{provide:Ea,useValue:"platform"},{provide:Dc,useValue:new Set([()=>Nn=null])},...e]})}function am(e=[]){if(Nn)return Nn;let t=sm(e);return Nn=t,Yg(),um(t),t}function um(e){e.get(Tf,null)?.forEach(n=>n())}var vc=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=cm;let e=t;return e})();function cm(e){return lm(X(),x(),(e&16)===16)}function lm(e,t,n){if(Xn(e)&&!n){let r=ft(e.index,t);return new $e(r,r)}else if(e.type&47){let r=t[K];return new $e(r,t)}return null}var Lo=class{constructor(){}supports(t){return ic(t)}create(t){return new jo(t)}},dm=(e,t)=>t,jo=class{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||dm}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Vo(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Qn),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Qn),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Vo=class{constructor(t,n){this.item=t,this.trackById=n,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}},Bo=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(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,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Qn=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Bo,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function zs(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{let t=class t{constructor(r){this.factories=r}static create(r,o){if(o!=null){let i=o.factories.slice();r=r.concat(i)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||Ws()),deps:[[t,new Wl,new zl]]}}find(r){let o=this.factories.find(i=>i.supports(r));if(o!=null)return o;throw new M(901,!1)}};t.\u0275prov=A({token:t,providedIn:"root",factory:Ws});let e=t;return e})();function FC(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=am(r),i=[nm(),...n||[]],a=new Wn({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(Z);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(ct,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:p=>{c.handleError(p)}})});let d=()=>a.destroy(),f=o.get(Dc);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),Zg(c,u,()=>{let p=a.get(mc);return p.runInitializers(),p.donePromise.then(()=>{let m=a.get(vi,Yn);Bg(m||Yn);let w=a.get(yc);return t!==void 0&&w.bootstrap(t),w})})})}catch(t){return Promise.reject(t)}}function fm(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Mc=null;function wi(){return Mc}function sb(e){Mc??=e}var Ic=class{};var _c=new S(""),xc=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:()=>N(gm),providedIn:"platform"});let e=t;return e})();var gm=(()=>{let t=class t extends xc{constructor(){super(),this._doc=N(_c),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return wi().getBaseHref(this._doc)}onPopState(r){let o=wi().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",r,!1),()=>o.removeEventListener("popstate",r)}onHashChange(r){let o=wi().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",r,!1),()=>o.removeEventListener("hashchange",r)}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(r){this._location.pathname=r}pushState(r,o,i){this._history.pushState(r,o,i)}replaceState(r,o,i){this._history.replaceState(r,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function Tc(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function wc(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Ge(e){return e&&e[0]!=="?"?"?"+e:e}var Ci=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:()=>N(ym),providedIn:"root"});let e=t;return e})(),mm=new S(""),ym=(()=>{let t=class t extends Ci{constructor(r,o){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??N(_c).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return Tc(this._baseHref,r)}path(r=!1){let o=this._platformLocation.pathname+Ge(this._platformLocation.search),i=this._platformLocation.hash;return i&&r?`${o}${i}`:o}pushState(r,o,i,s){let a=this.prepareExternalUrl(i+Ge(s));this._platformLocation.pushState(r,o,a)}replaceState(r,o,i,s){let a=this.prepareExternalUrl(i+Ge(s));this._platformLocation.replaceState(r,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};t.\u0275fac=function(o){return new(o||t)(B(xc),B(mm,8))},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Dm=(()=>{let t=class t{constructor(r){this._subject=new Oe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let o=this._locationStrategy.getBaseHref();this._basePath=wm(wc(Ec(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,o=""){return this.path()==this.normalize(r+Ge(o))}normalize(r){return t.stripTrailingSlash(Im(this._basePath,Ec(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,o="",i=null){this._locationStrategy.pushState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ge(o)),i)}replaceState(r,o="",i=null){this._locationStrategy.replaceState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ge(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){this._locationStrategy.historyGo?.(r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",o){this._urlChangeListeners.forEach(i=>i(r,o))}subscribe(r,o,i){return this._subject.subscribe({next:r,error:o,complete:i})}};t.normalizeQueryParams=Ge,t.joinWithSlash=Tc,t.stripTrailingSlash=wc,t.\u0275fac=function(o){return new(o||t)(B(Ci))},t.\u0275prov=A({token:t,factory:()=>vm(),providedIn:"root"});let e=t;return e})();function vm(){return new Dm(B(Ci))}function Im(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Ec(e){return e.replace(/\/index.html$/,"")}function wm(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function ab(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Ei=class{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},ub=(()=>{let t=class t{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,o,i){this._viewContainer=r,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let o=this._viewContainer;r.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new Ei(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let u=o.get(s);o.move(u,a),Cc(u,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);Cc(s,i)})}static ngTemplateContextGuard(r,o){return!0}};t.\u0275fac=function(o){return new(o||t)(Bt(Ht),Bt(lt),Bt(Ii))},t.\u0275dir=pa({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function Cc(e,t){e.context.$implicit=t.item}var cb=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=fa({type:t}),t.\u0275inj=Js({});let e=t;return e})(),Em="browser",Cm="server";function lb(e){return e===Em}function db(e){return e===Cm}var bc=class{};export{gt as a,mt as b,bm as c,O as d,$c as e,C as f,Dr as g,vr as h,te as i,Dt as j,It as k,me as l,Kc as m,Jc as n,Xc as o,Se as p,ne as q,al as r,Ne as s,Dn as t,cl as u,ll as v,Ae as w,ss as x,dl as y,fl as z,wt as A,wr as B,pl as C,hl as D,yl as E,us as F,Er as G,Dl as H,vl as I,Il as J,wl as K,El as L,Cl as M,bl as N,cs as O,M as P,A as Q,Js as R,rC as S,S as T,I as U,B as V,N as W,bt as X,Re as Y,oC as Z,fa as _,pa as $,gd as aa,Ea as ba,Ie as ca,iC as da,Ta as ea,sC as fa,mf as ga,ii as ha,ct as ia,ht as ja,Oe as ka,aC as la,uC as ma,Tf as na,Sf as oa,cC as pa,lC as qa,ai as ra,dC as sa,fC as ta,pC as ua,hC as va,gC as wa,mC as xa,Vf as ya,yC as za,Xf as Aa,$n as Ba,DC as Ca,Bt as Da,vC as Ea,go as Fa,Do as Ga,Xu as Ha,Z as Ia,Ht as Ja,Zh as Ka,ng as La,So as Ma,rg as Na,oc as Oa,ug as Pa,dg as Qa,Cg as Ra,bg as Sa,CC as Ta,fc as Ua,pc as Va,Lg as Wa,bC as Xa,MC as Ya,_C as Za,xC as _a,TC as $a,SC as ab,Ug as bb,NC as cb,AC as db,Di as eb,qg as fb,yc as gb,OC as hb,vc as ib,FC as jb,fm as kb,wi as lb,sb as mb,Ic as nb,_c as ob,Dm as pb,ab as qb,ub as rb,cb as sb,Em as tb,lb as ub,db as vb,bc as wb}; diff --git a/chunk-V6SH2TEE.js b/chunk-V6SH2TEE.js deleted file mode 100644 index 3fd5ced..0000000 --- a/chunk-V6SH2TEE.js +++ /dev/null @@ -1,7 +0,0 @@ -var au=Object.defineProperty,uu=Object.defineProperties;var cu=Object.getOwnPropertyDescriptors;var wt=Object.getOwnPropertySymbols;var _o=Object.prototype.hasOwnProperty,xo=Object.prototype.propertyIsEnumerable;var Mo=(e,t,n)=>t in e?au(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ze=(e,t)=>{for(var n in t||={})_o.call(t,n)&&Mo(e,n,t[n]);if(wt)for(var n of wt(t))xo.call(t,n)&&Mo(e,n,t[n]);return e},Ke=(e,t)=>uu(e,cu(t));var Sp=(e,t)=>{var n={};for(var r in e)_o.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&wt)for(var r of wt(e))t.indexOf(r)<0&&xo.call(e,r)&&(n[r]=e[r]);return n};var To=null;var On=1,So=Symbol("SIGNAL");function C(e){let t=To;return To=e,t}var No={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function lu(e){if(!(Pn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===On)){if(!e.producerMustRecompute(e)&&!Fn(e)){e.dirty=!1,e.lastCleanEpoch=On;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=On}}function Ao(e){return e&&(e.nextProducerIndex=0),C(e)}function Oo(e,t){if(C(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Pn(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Fn(e){Et(e);for(let t=0;t0}function Et(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function du(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function fu(){throw new Error}var pu=fu;function Ro(e){pu=e}function g(e){return typeof e=="function"}function Oe(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ct=Oe(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: -${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Je(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var A=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(g(r))try{r()}catch(i){t=i instanceof Ct?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Po(i)}catch(s){t=t??[],s instanceof Ct?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ct(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Po(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Je(n,t)}remove(t){let{_finalizers:n}=this;n&&Je(n,t),t instanceof e&&t._removeParent(this)}};A.EMPTY=(()=>{let e=new A;return e.closed=!0,e})();var kn=A.EMPTY;function bt(e){return e instanceof A||e&&"closed"in e&&g(e.remove)&&g(e.add)&&g(e.unsubscribe)}function Po(e){g(e)?e():e.unsubscribe()}var U={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Fe={setTimeout(e,t,...n){let{delegate:r}=Fe;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Fe;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Mt(e){Fe.setTimeout(()=>{let{onUnhandledError:t}=U;if(t)t(e);else throw e})}function Xe(){}var ko=Ln("C",void 0,void 0);function Lo(e){return Ln("E",void 0,e)}function jo(e){return Ln("N",e,void 0)}function Ln(e,t,n){return{kind:e,value:t,error:n}}var ye=null;function Re(e){if(U.useDeprecatedSynchronousErrorHandling){let t=!ye;if(t&&(ye={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=ye;if(ye=null,n)throw r}}else e()}function Vo(e){U.useDeprecatedSynchronousErrorHandling&&ye&&(ye.errorThrown=!0,ye.error=e)}var De=class extends A{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,bt(t)&&t.add(this)):this.destination=mu}static create(t,n,r){return new Pe(t,n,r)}next(t){this.isStopped?Vn(jo(t),this):this._next(t)}error(t){this.isStopped?Vn(Lo(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Vn(ko,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()}}},hu=Function.prototype.bind;function jn(e,t){return hu.call(e,t)}var Bn=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){_t(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){_t(r)}else _t(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){_t(n)}}},Pe=class extends De{constructor(t,n,r){super();let o;if(g(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&U.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&jn(t.next,i),error:t.error&&jn(t.error,i),complete:t.complete&&jn(t.complete,i)}):o=t}this.destination=new Bn(o)}};function _t(e){U.useDeprecatedSynchronousErrorHandling?Vo(e):Mt(e)}function gu(e){throw e}function Vn(e,t){let{onStoppedNotification:n}=U;n&&Fe.setTimeout(()=>n(e,t))}var mu={closed:!0,next:Xe,error:gu,complete:Xe};var ke=typeof Symbol=="function"&&Symbol.observable||"@@observable";function k(e){return e}function yu(...e){return $n(e)}function $n(e){return e.length===0?k:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var w=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=vu(n)?n:new Pe(n,r,o);return Re(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Bo(r),new r((o,i)=>{let s=new Pe({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[ke](){return this}pipe(...n){return $n(n)(this)}toPromise(n){return n=Bo(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Bo(e){var t;return(t=e??U.Promise)!==null&&t!==void 0?t:Promise}function Du(e){return e&&g(e.next)&&g(e.error)&&g(e.complete)}function vu(e){return e&&e instanceof De||Du(e)&&bt(e)}function Hn(e){return g(e?.lift)}function D(e){return t=>{if(Hn(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function m(e,t,n,r,o){return new Un(e,t,n,r,o)}var Un=class extends De{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function Gn(){return D((e,t)=>{let n=null;e._refCount++;let r=m(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var zn=class extends w{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Hn(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new A;let n=this.getSubject();t.add(this.source.subscribe(m(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=A.EMPTY)}return t}refCount(){return Gn()(this)}};var $o=Oe(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ie=(()=>{class e extends w{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new xt(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new $o}next(n){Re(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Re(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Re(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?kn:(this.currentObservers=null,i.push(n),new A(()=>{this.currentObservers=null,Je(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new w;return n.source=this,n}}return e.create=(t,n)=>new xt(t,n),e})(),xt=class extends ie{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:kn}};var et=class extends ie{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var tt=new w(e=>e.complete());function Ho(e){return e&&g(e.schedule)}function Uo(e){return e[e.length-1]}function Tt(e){return g(Uo(e))?e.pop():void 0}function se(e){return Ho(Uo(e))?e.pop():void 0}function zo(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function Go(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ve(e){return this instanceof ve?(this.v=e,this):new ve(e)}function Wo(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(p){return new Promise(function(I,_){i.push([f,p,I,_])>1||a(f,p)})})}function a(f,p){try{u(r[f](p))}catch(I){d(i[0][3],I)}}function u(f){f.value instanceof ve?Promise.resolve(f.value.v).then(c,l):d(i[0][2],f)}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,p){f(p),i.shift(),i.length&&a(i[0][0],i[0][1])}}function qo(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Go=="function"?Go(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var St=e=>e&&typeof e.length=="number"&&typeof e!="function";function Nt(e){return g(e?.then)}function At(e){return g(e[ke])}function Ot(e){return Symbol.asyncIterator&&g(e?.[Symbol.asyncIterator])}function Ft(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Iu(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Rt=Iu();function Pt(e){return g(e?.[Rt])}function kt(e){return Wo(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield ve(n.read());if(o)return yield ve(void 0);yield yield ve(r)}}finally{n.releaseLock()}})}function Lt(e){return g(e?.getReader)}function S(e){if(e instanceof w)return e;if(e!=null){if(At(e))return wu(e);if(St(e))return Eu(e);if(Nt(e))return Cu(e);if(Ot(e))return Yo(e);if(Pt(e))return bu(e);if(Lt(e))return Mu(e)}throw Ft(e)}function wu(e){return new w(t=>{let n=e[ke]();if(g(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Eu(e){return new w(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Mt)})}function bu(e){return new w(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Yo(e){return new w(t=>{_u(e,t).catch(n=>t.error(n))})}function Mu(e){return Yo(kt(e))}function _u(e,t){var n,r,o,i;return zo(this,void 0,void 0,function*(){try{for(n=qo(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function R(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function jt(e,t=0){return D((n,r)=>{n.subscribe(m(r,o=>R(r,e,()=>r.next(o),t),()=>R(r,e,()=>r.complete(),t),o=>R(r,e,()=>r.error(o),t)))})}function Vt(e,t=0){return D((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Qo(e,t){return S(e).pipe(Vt(t),jt(t))}function Zo(e,t){return S(e).pipe(Vt(t),jt(t))}function Ko(e,t){return new w(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Jo(e,t){return new w(n=>{let r;return R(n,t,()=>{r=e[Rt](),R(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>g(r?.return)&&r.return()})}function Bt(e,t){if(!e)throw new Error("Iterable cannot be null");return new w(n=>{R(n,t,()=>{let r=e[Symbol.asyncIterator]();R(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Xo(e,t){return Bt(kt(e),t)}function ei(e,t){if(e!=null){if(At(e))return Qo(e,t);if(St(e))return Ko(e,t);if(Nt(e))return Zo(e,t);if(Ot(e))return Bt(e,t);if(Pt(e))return Jo(e,t);if(Lt(e))return Xo(e,t)}throw Ft(e)}function ae(e,t){return t?ei(e,t):S(e)}function xu(...e){let t=se(e);return ae(e,t)}function Tu(e,t){let n=g(e)?e:()=>e,r=o=>o.error(n());return new w(t?o=>t.schedule(r,0,o):r)}function Su(e){return!!e&&(e instanceof w||g(e.lift)&&g(e.subscribe))}var Ie=Oe(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Y(e,t){return D((n,r)=>{let o=0;n.subscribe(m(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Nu}=Array;function Au(e,t){return Nu(t)?e(...t):e(t)}function $t(e){return Y(t=>Au(e,t))}var{isArray:Ou}=Array,{getPrototypeOf:Fu,prototype:Ru,keys:Pu}=Object;function Ht(e){if(e.length===1){let t=e[0];if(Ou(t))return{args:t,keys:null};if(ku(t)){let n=Pu(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function ku(e){return e&&typeof e=="object"&&Fu(e)===Ru}function Ut(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Lu(...e){let t=se(e),n=Tt(e),{args:r,keys:o}=Ht(e);if(r.length===0)return ae([],t);let i=new w(ju(r,t,o?s=>Ut(o,s):k));return n?i.pipe($t(n)):i}function ju(e,t,n=k){return r=>{ti(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let u=0;u{let c=ae(e[u],t),l=!1;c.subscribe(m(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ti(e,t,n){e?R(n,e,t):t()}function ni(e,t,n,r,o,i,s,a){let u=[],c=0,l=0,d=!1,f=()=>{d&&!u.length&&!c&&t.complete()},p=_=>c{i&&t.next(_),c++;let ge=!1;S(n(_,l++)).subscribe(m(t,H=>{o?.(H),i?p(H):t.next(H)},()=>{ge=!0},void 0,()=>{if(ge)try{for(c--;u.length&&cI(H)):I(H)}f()}catch(H){t.error(H)}}))};return e.subscribe(m(t,p,()=>{d=!0,f()})),()=>{a?.()}}function we(e,t,n=1/0){return g(t)?we((r,o)=>Y((i,s)=>t(r,i,o,s))(S(e(r,o))),n):(typeof t=="number"&&(n=t),D((r,o)=>ni(r,o,e,n)))}function ri(e=1/0){return we(k,e)}function oi(){return ri(1)}function Gt(...e){return oi()(ae(e,se(e)))}function Vu(e){return new w(t=>{S(e()).subscribe(t)})}function Bu(...e){let t=Tt(e),{args:n,keys:r}=Ht(e),o=new w(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=f},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?Ut(r,a):a),i.complete())}))}});return t?o.pipe($t(t)):o}function nt(e,t){return D((n,r)=>{let o=0;n.subscribe(m(r,i=>e.call(t,i,o++)&&r.next(i)))})}function ii(e){return D((t,n)=>{let r=null,o=!1,i;r=t.subscribe(m(n,void 0,void 0,s=>{i=S(e(s,ii(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function si(e,t,n,r,o){return(i,s)=>{let a=n,u=t,c=0;i.subscribe(m(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function $u(e,t){return g(t)?we(e,t,1):we(e,1)}function rt(e){return D((t,n)=>{let r=!1;t.subscribe(m(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Wn(e){return e<=0?()=>tt:D((t,n)=>{let r=0;t.subscribe(m(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Hu(e){return Y(()=>e)}function zt(e=Uu){return D((t,n)=>{let r=!1;t.subscribe(m(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Uu(){return new Ie}function Gu(e){return D((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function ai(e,t){let n=arguments.length>=2;return r=>r.pipe(e?nt((o,i)=>e(o,i,r)):k,Wn(1),n?rt(t):zt(()=>new Ie))}function qn(e){return e<=0?()=>tt:D((t,n)=>{let r=[];t.subscribe(m(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function zu(e,t){let n=arguments.length>=2;return r=>r.pipe(e?nt((o,i)=>e(o,i,r)):k,qn(1),n?rt(t):zt(()=>new Ie))}function Wu(e,t){return D(si(e,t,arguments.length>=2,!0))}function qu(...e){let t=se(e);return D((n,r)=>{(t?Gt(e,n,t):Gt(e,n)).subscribe(r)})}function Yu(e,t){return D((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(m(r,u=>{o?.unsubscribe();let c=0,l=i++;S(e(u,l)).subscribe(o=m(r,d=>r.next(t?t(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Qu(e){return D((t,n)=>{S(e).subscribe(m(n,()=>n.complete(),Xe)),!n.closed&&t.subscribe(n)})}function ui(e,t,n){let r=g(e)||t||n?{next:e,error:t,complete:n}:e;return r?D((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(m(i,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),i.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),i.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),i.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):k}var b=class extends Error{constructor(t,n){super(Ui(t,n)),this.code=t}};function Ui(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function gt(e){return{toString:e}.toString()}var Wt="__parameters__";function Zu(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Gi(e,t,n){return gt(()=>{let r=Zu(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(Wt)?u[Wt]:Object.defineProperty(u,Wt,{value:[]})[Wt];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var qt=globalThis;function M(e){for(let t in e)if(e[t]===M)return t;throw Error("Could not find renamed property on target object.")}function L(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(L).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function ci(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Ku=M({__forward_ref__:M});function zi(e){return e.__forward_ref__=zi,e.toString=function(){return L(this())},e}function B(e){return Wi(e)?e():e}function Wi(e){return typeof e=="function"&&e.hasOwnProperty(Ku)&&e.__forward_ref__===zi}function N(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function qi(e){return{providers:e.providers||[],imports:e.imports||[]}}function Dn(e){return li(e,Yi)||li(e,Qi)}function Tv(e){return Dn(e)!==null}function li(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ju(e){let t=e&&(e[Yi]||e[Qi]);return t||null}function di(e){return e&&(e.hasOwnProperty(fi)||e.hasOwnProperty(Xu))?e[fi]:null}var Yi=M({\u0275prov:M}),fi=M({\u0275inj:M}),Qi=M({ngInjectableDef:M}),Xu=M({ngInjectorDef:M}),x=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=N({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Zi(e){return e&&!!e.\u0275providers}var ec=M({\u0275cmp:M}),tc=M({\u0275dir:M}),nc=M({\u0275pipe:M}),rc=M({\u0275mod:M}),Xt=M({\u0275fac:M}),ot=M({__NG_ELEMENT_ID__:M}),pi=M({__NG_ENV_ID__:M});function Ki(e){return typeof e=="string"?e:e==null?"":String(e)}function oc(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Ki(e)}function ic(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new b(-200,e)}function Hr(e,t){throw new b(-201,!1)}var y=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(y||{}),or;function Ji(){return or}function V(e){let t=or;return or=e,t}function Xi(e,t,n){let r=Dn(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&y.Optional)return null;if(t!==void 0)return t;Hr(e,"Injector")}var sc={},it=sc,ir="__NG_DI_FLAG__",en="ngTempTokenPath",ac="ngTokenPath",uc=/\n/gm,cc="\u0275",hi="__source",$e;function lc(){return $e}function ue(e){let t=$e;return $e=e,t}function dc(e,t=y.Default){if($e===void 0)throw new b(-203,!1);return $e===null?Xi(e,void 0,t):$e.get(e,t&y.Optional?null:void 0,t)}function P(e,t=y.Default){return(Ji()||dc)(B(e),t)}function T(e,t=y.Default){return P(e,vn(t))}function vn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function sr(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):L(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(uc,` - `)}`}var gc=es(Gi("Optional"),8);var mc=es(Gi("SkipSelf"),4);function Ge(e,t){let n=e.hasOwnProperty(Xt);return n?e[Xt]:null}function Ur(e,t){e.forEach(n=>Array.isArray(n)?Ur(n,t):t(n))}function ts(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function tn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var st={},Q=[],nn=new x(""),ns=new x("",-1),rs=new x(""),rn=class{get(t,n=it){if(n===it){let r=new Error(`NullInjectorError: No provider for ${L(t)}!`);throw r.name="NullInjectorError",r}return n}},os=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(os||{}),at=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(at||{}),Ce=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Ce||{});function yc(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function ar(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(G(r))return!1;s=!0}}}}return G(r)||s}function G(e){return(e&1)===0}function Cc(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!G(s)&&(t+=mi(i,o),o=""),r=s,i=i||!G(r);n++}return o!==""&&(t+=mi(i,o)),t}function Tc(e){return e.map(xc).join(",")}function Sc(e){let t=[],n=[],r=1,o=2;for(;r{let t=ds(e),n=Ke(Ze({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===os.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||at.Emulated,styles:e.styles||Q,_:null,schemas:e.schemas||null,tView:null,id:""});fs(n);let r=e.dependencies;return n.directiveDefs=Di(r,!1),n.pipeDefs=Di(r,!0),n.id=Fc(n),n})}function Nc(e){return be(e)||us(e)}function Ac(e){return e!==null}function ss(e){return gt(()=>({type:e.type,bootstrap:e.bootstrap||Q,declarations:e.declarations||Q,imports:e.imports||Q,exports:e.exports||Q,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function yi(e,t){if(e==null)return st;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Ce.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Ce.None?[r,a]:r,t[i]=s):n[i]=r}return n}function as(e){return gt(()=>{let t=ds(e);return fs(t),t})}function be(e){return e[ec]||null}function us(e){return e[tc]||null}function cs(e){return e[nc]||null}function Oc(e){let t=be(e)||us(e)||cs(e);return t!==null?t.standalone:!1}function ls(e,t){let n=e[rc]||null;if(!n&&t===!0)throw new Error(`Type ${L(e)} does not have '\u0275mod' property.`);return n}function ds(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||st,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Q,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:yi(e.inputs,t),outputs:yi(e.outputs),debugInfo:null}}function fs(e){e.features?.forEach(t=>t(e))}function Di(e,t){if(!e)return null;let n=t?cs:Nc;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Ac)}function Fc(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Rc(e){return{\u0275providers:e}}function Pc(...e){return{\u0275providers:ps(!0,e),\u0275fromNgModule:!0}}function ps(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Ur(t,s=>{let a=s;ur(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&hs(o,i),n}function hs(e,t){for(let n=0;n{t(i,r)})}}function ur(e,t,n,r){if(e=B(e),!e)return!1;let o=null,i=di(e),s=!i&&be(e);if(!i&&!s){let u=e.ngModule;if(i=di(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)ur(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Ur(i.imports,l=>{ur(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&hs(c,t)}if(!a){let c=Ge(o)||(()=>new o);t({provide:o,useFactory:c,deps:Q},o),t({provide:rs,useValue:o,multi:!0},o),t({provide:nn,useValue:()=>P(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;Wr(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Wr(e,t){for(let n of e)Zi(n)&&(n=n.\u0275providers),Array.isArray(n)?Wr(n,t):t(n)}var kc=M({provide:String,useValue:M});function gs(e){return e!==null&&typeof e=="object"&&kc in e}function Lc(e){return!!(e&&e.useExisting)}function jc(e){return!!(e&&e.useFactory)}function cr(e){return typeof e=="function"}var ms=new x(""),Yt={},Vc={},Yn;function qr(){return Yn===void 0&&(Yn=new rn),Yn}var de=class{},ut=class extends de{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,dr(t,s=>this.processProvider(s)),this.records.set(ns,Le(void 0,this)),o.has("environment")&&this.records.set(de,Le(void 0,this));let i=this.records.get(ms);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(rs,Q,y.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=C(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),C(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=ue(this),r=V(void 0),o;try{return t()}finally{ue(n),V(r)}}get(t,n=it,r=y.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(pi))return t[pi](this);r=vn(r);let o,i=ue(this),s=V(void 0);try{if(!(r&y.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=zc(t)&&Dn(t);c&&this.injectableDefInScope(c)?u=Le(lr(t),Yt):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&y.Self?qr():this.parent;return n=r&y.Optional&&n===it?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[en]=a[en]||[]).unshift(L(t)),i)throw a;return pc(a,t,"R3InjectorError",this.source)}else throw a}finally{V(s),ue(i)}}resolveInjectorInitializers(){let t=C(null),n=ue(this),r=V(void 0),o;try{let i=this.get(nn,Q,y.Self);for(let s of i)s()}finally{ue(n),V(r),C(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(L(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(t){t=B(t);let n=cr(t)?t:B(t&&t.provide),r=$c(t);if(!cr(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Le(void 0,Yt,!0),o.factory=()=>sr(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=C(null);try{return n.value===Yt&&(n.value=Vc,n.value=n.factory()),typeof n.value=="object"&&n.value&&Gc(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{C(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=B(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function lr(e){let t=Dn(e),n=t!==null?t.factory:Ge(e);if(n!==null)return n;if(e instanceof x)throw new b(204,!1);if(e instanceof Function)return Bc(e);throw new b(204,!1)}function Bc(e){if(e.length>0)throw new b(204,!1);let n=Ju(e);return n!==null?()=>n.factory(e):()=>new e}function $c(e){if(gs(e))return Le(void 0,e.useValue);{let t=Hc(e);return Le(t,Yt)}}function Hc(e,t,n){let r;if(cr(e)){let o=B(e);return Ge(o)||lr(o)}else if(gs(e))r=()=>B(e.useValue);else if(jc(e))r=()=>e.useFactory(...sr(e.deps||[]));else if(Lc(e))r=()=>P(B(e.useExisting));else{let o=B(e&&(e.useClass||e.provide));if(Uc(e))r=()=>new o(...sr(e.deps));else return Ge(o)||lr(o)}return r}function Le(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Uc(e){return!!e.deps}function Gc(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function zc(e){return typeof e=="function"||typeof e=="object"&&e instanceof x}function dr(e,t){for(let n of e)Array.isArray(n)?dr(n,t):n&&Zi(n)?dr(n.\u0275providers,t):t(n)}function Nv(e,t){e instanceof ut&&e.assertNotDestroyed();let n,r=ue(e),o=V(void 0);try{return t()}finally{ue(r),V(o)}}function Wc(){return Ji()!==void 0||lc()!=null}function qc(e){return typeof e=="function"}var te=0,v=1,h=2,O=3,z=4,q=5,on=6,vi=7,fe=8,ze=9,K=10,j=11,ct=12,Ii=13,mt=14,J=15,In=16,je=17,We=18,wn=19,ys=20,le=21,Qn=22,Me=23,pe=25,Ds=1;var _e=7,sn=8,an=9,$=10,Yr=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Yr||{});function He(e){return Array.isArray(e)&&typeof e[Ds]=="object"}function ne(e){return Array.isArray(e)&&e[Ds]===!0}function vs(e){return(e.flags&4)!==0}function En(e){return e.componentOffset>-1}function Is(e){return(e.flags&1)===1}function yt(e){return!!e.template}function Yc(e){return(e[h]&512)!==0}var fr=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ws(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Es(){return Cs}function Cs(e){return e.type.prototype.ngOnChanges&&(e.setInput=Zc),Qc}Es.ngInherit=!0;function Qc(){let e=Ms(this),t=e?.current;if(t){let n=e.previous;if(n===st)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Zc(e,t,n,r,o){let i=this.declaredInputs[r],s=Ms(e)||Kc(e,{previous:st,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new fr(c&&c.currentValue,n,u===st),ws(e,t,o,n)}var bs="__ngSimpleChanges__";function Ms(e){return e[bs]||null}function Kc(e,t){return e[bs]=t}var wi=null;var ce=function(e,t,n){wi?.(e,t,n)},Jc="svg",Xc="math",el=!1;function tl(){return el}function ee(e){for(;Array.isArray(e);)e=e[te];return e}function nl(e,t){return ee(t[e])}function X(e,t){return ee(t[e.index])}function _s(e,t){return e.data[t]}function Ye(e,t){let n=t[e];return He(n)?n:n[te]}function Qr(e){return(e[h]&128)===128}function rl(e){return ne(e[O])}function un(e,t){return t==null?null:e[t]}function xs(e){e[je]=0}function ol(e){e[h]&1024||(e[h]|=1024,Qr(e)&<(e))}function Zr(e){return!!(e[h]&9216||e[Me]?.dirty)}function pr(e){e[K].changeDetectionScheduler?.notify(1),Zr(e)?lt(e):e[h]&64&&(tl()?(e[h]|=1024,lt(e)):e[K].changeDetectionScheduler?.notify())}function lt(e){e[K].changeDetectionScheduler?.notify();let t=dt(e);for(;t!==null&&!(t[h]&8192||(t[h]|=8192,!Qr(t)));)t=dt(t)}function Ts(e,t){if((e[h]&256)===256)throw new b(911,!1);e[le]===null&&(e[le]=[]),e[le].push(t)}function il(e,t){if(e[le]===null)return;let n=e[le].indexOf(t);n!==-1&&e[le].splice(n,1)}function dt(e){let t=e[O];return ne(t)?t[O]:t}var E={lFrame:ks(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function sl(){return E.lFrame.elementDepthCount}function al(){E.lFrame.elementDepthCount++}function ul(){E.lFrame.elementDepthCount--}function Ss(){return E.bindingsEnabled}function cl(){return E.skipHydrationRootTNode!==null}function ll(e){return E.skipHydrationRootTNode===e}function dl(){E.skipHydrationRootTNode=null}function F(){return E.lFrame.lView}function Qe(){return E.lFrame.tView}function re(){let e=Ns();for(;e!==null&&e.type===64;)e=e.parent;return e}function Ns(){return E.lFrame.currentTNode}function fl(){let e=E.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Dt(e,t){let n=E.lFrame;n.currentTNode=e,n.isParent=t}function As(){return E.lFrame.isParent}function pl(){E.lFrame.isParent=!1}function hl(e){return E.lFrame.bindingIndex=e}function Os(){return E.lFrame.bindingIndex++}function gl(){return E.lFrame.inI18n}function ml(e,t){let n=E.lFrame;n.bindingIndex=n.bindingRootIndex=e,hr(t)}function yl(){return E.lFrame.currentDirectiveIndex}function hr(e){E.lFrame.currentDirectiveIndex=e}function Fs(e){E.lFrame.currentQueryIndex=e}function Dl(e){let t=e[v];return t.type===2?t.declTNode:t.type===1?e[q]:null}function Rs(e,t,n){if(n&y.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&y.Host);)if(o=Dl(i),o===null||(i=i[mt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=E.lFrame=Ps();return r.currentTNode=t,r.lView=e,!0}function Kr(e){let t=Ps(),n=e[v];E.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ps(){let e=E.lFrame,t=e===null?null:e.child;return t===null?ks(e):t}function ks(e){let 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:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Ls(){let e=E.lFrame;return E.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var js=Ls;function Jr(){let e=Ls();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Xr(){return E.lFrame.selectedIndex}function xe(e){E.lFrame.selectedIndex=e}function vl(){let e=E.lFrame;return _s(e.tView,e.selectedIndex)}function Il(){return E.lFrame.currentNamespace}var Vs=!0;function eo(){return Vs}function to(e){Vs=e}function wl(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Cs(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function no(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[je]+=65536),(a>14>16&&(e[h]&3)===t&&(e[h]+=16384,Ei(a,i)):Ei(a,i)}var Ue=-1,ft=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Cl(e){return e instanceof ft}function bl(e){return(e.flags&8)!==0}function Ml(e){return(e.flags&16)!==0}function $s(e){return e!==Ue}function cn(e){return e&32767}function _l(e){return e>>16}function ln(e,t){let n=_l(e),r=t;for(;n>0;)r=r[mt],n--;return r}var gr=!0;function Ci(e){let t=gr;return gr=e,t}var xl=256,Hs=xl-1,Us=5,Tl=0,Z={};function Sl(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(ot)&&(r=n[ot]),r==null&&(r=n[ot]=Tl++);let o=r&Hs,i=1<>Us)]|=i}function Gs(e,t){let n=zs(e,t);if(n!==-1)return n;let r=t[v];r.firstCreatePass&&(e.injectorIndex=t.length,Kn(r.data,e),Kn(t,null),Kn(r.blueprint,null));let o=ro(e,t),i=e.injectorIndex;if($s(o)){let s=cn(o),a=ln(o,t),u=a[v].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function Kn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function zs(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ro(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Zs(o),r===null)return Ue;if(n++,o=o[mt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Ue}function Nl(e,t,n){Sl(e,t,n)}function Ws(e,t,n){if(n&y.Optional||e!==void 0)return e;Hr(t,"NodeInjector")}function qs(e,t,n,r){if(n&y.Optional&&r===void 0&&(r=null),!(n&(y.Self|y.Host))){let o=e[ze],i=V(void 0);try{return o?o.get(t,r,n&y.Optional):Xi(t,r,n&y.Optional)}finally{V(i)}}return Ws(r,t,n)}function Ys(e,t,n,r=y.Default,o){if(e!==null){if(t[h]&2048&&!(r&y.Self)){let s=Pl(e,t,n,r,Z);if(s!==Z)return s}let i=Qs(e,t,n,r,Z);if(i!==Z)return i}return qs(t,n,r,o)}function Qs(e,t,n,r,o){let i=Fl(n);if(typeof i=="function"){if(!Rs(t,e,r))return r&y.Host?Ws(o,n,r):qs(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&y.Optional))Hr(n);else return s}finally{js()}}else if(typeof i=="number"){let s=null,a=zs(e,t),u=Ue,c=r&y.Host?t[J][q]:null;for((a===-1||r&y.SkipSelf)&&(u=a===-1?ro(e,t):t[a+8],u===Ue||!Mi(r,!1)?a=-1:(s=t[v],a=cn(u),t=ln(u,t)));a!==-1;){let l=t[v];if(bi(i,a,l.data)){let d=Al(a,t,n,s,r,c);if(d!==Z)return d}u=t[a+8],u!==Ue&&Mi(r,t[v].data[a+8]===c)&&bi(i,a,t)?(s=l,a=cn(u),t=ln(u,t)):a=-1}}return o}function Al(e,t,n,r,o,i){let s=t[v],a=s.data[e+8],u=r==null?En(a)&&gr:r!=s&&(a.type&3)!==0,c=o&y.Host&&i===a,l=Ol(a,s,n,u,c);return l!==null?pt(t,s,l,a):Z}function Ol(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,u=e.directiveStart,c=e.directiveEnd,l=i>>20,d=r?a:a+l,f=o?a+l:c;for(let p=d;p=u&&I.type===n)return p}if(o){let p=s[u];if(p&&yt(p)&&p.type===n)return u}return null}function pt(e,t,n,r){let o=e[n],i=t.data;if(Cl(o)){let s=o;s.resolving&&ic(oc(i[n]));let a=Ci(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?V(s.injectImpl):null,l=Rs(e,r,y.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&wl(n,i[n],t)}finally{c!==null&&V(c),Ci(a),s.resolving=!1,js()}}return o}function Fl(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(ot)?e[ot]:void 0;return typeof t=="number"?t>=0?t&Hs:Rl:t}function bi(e,t,n){let r=1<>Us)]&r)}function Mi(e,t){return!(e&y.Self)&&!(e&y.Host&&t)}var Ee=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Ys(this._tNode,this._lView,t,vn(r),n)}};function Rl(){return new Ee(re(),F())}function Av(e){return gt(()=>{let t=e.prototype.constructor,n=t[Xt]||mr(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Xt]||mr(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function mr(e){return Wi(e)?()=>{let t=mr(B(e));return t&&t()}:Ge(e)}function Pl(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[h]&2048&&!(s[h]&512);){let a=Qs(i,s,n,r|y.Self,Z);if(a!==Z)return a;let u=i.parent;if(!u){let c=s[ys];if(c){let l=c.get(n,Z,r);if(l!==Z)return l}u=Zs(s),s=s[mt]}i=u}return o}function Zs(e){let t=e[v],n=t.type;return n===2?t.declTNode:n===1?e[q]:null}function _i(e,t=null,n=null,r){let o=Ks(e,t,n,r);return o.resolveInjectorInitializers(),o}function Ks(e,t=null,n=null,r,o=new Set){let i=[n||Q,Pc(e)];return r=r||(typeof e=="object"?void 0:L(e)),new ut(i,t||qr(),r||null,o)}var oo=(()=>{let t=class t{static create(r,o){if(Array.isArray(r))return _i({name:""},o,r,"");{let i=r.name??"";return _i({name:i},r.parent,r.providers,i)}}};t.THROW_IF_NOT_FOUND=it,t.NULL=new rn,t.\u0275prov=N({token:t,providedIn:"any",factory:()=>P(ns)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var kl="ngOriginalError";function Jn(e){return e[kl]}var qe=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Jn(t);for(;n&&Jn(n);)n=Jn(n);return n||null}},Js=new x("",{providedIn:"root",factory:()=>T(qe).handleError.bind(void 0)}),Xs=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Ll,t.__NG_ENV_ID__=r=>r;let e=t;return e})(),yr=class extends Xs{constructor(t){super(),this._lView=t}onDestroy(t){return Ts(this._lView,t),()=>il(this._lView,t)}};function Ll(){return new yr(F())}function jl(){return Cn(re(),F())}function Cn(e,t){return new io(X(e,t))}var io=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=jl;let e=t;return e})();var Dr=class extends ie{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,Wc()&&(this.destroyRef=T(Xs,{optional:!0})??void 0)}emit(t){let n=C(null);try{super.next(t)}finally{C(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=Xn(i),o&&(o=Xn(o)),s&&(s=Xn(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof A&&t.add(a),a}};function Xn(e){return t=>{setTimeout(e,void 0,t)}}var Ve=Dr;function ea(e){return(e.flags&128)===128}var ta=new Map,Vl=0;function Bl(){return Vl++}function $l(e){ta.set(e[wn],e)}function Hl(e){ta.delete(e[wn])}var xi="__ngContext__";function Te(e,t){He(t)?(e[xi]=t[wn],$l(t)):e[xi]=t}function na(e){return oa(e[ct])}function ra(e){return oa(e[z])}function oa(e){for(;e!==null&&!ne(e);)e=e[z];return e}var vr;function Ov(e){vr=e}function Ul(){if(vr!==void 0)return vr;if(typeof document<"u")return document;throw new b(210,!1)}var Fv=new x("",{providedIn:"root",factory:()=>Gl}),Gl="ng",zl=new x(""),Wl=new x("",{providedIn:"platform",factory:()=>"unknown"});var Rv=new x(""),Pv=new x("",{providedIn:"root",factory:()=>Ul().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var ql="h",Yl="b";var Ql=()=>null;function so(e,t,n=!1){return Ql(e,t,n)}var ia=!1,Zl=new x("",{providedIn:"root",factory:()=>ia});function sa(e){return e instanceof Function?e():e}var aa=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(aa||{}),Kl;function ao(e,t){return Kl(e,t)}function Be(e,t,n,r,o){if(r!=null){let i,s=!1;ne(r)?i=r:He(r)&&(s=!0,r=r[te]);let a=ee(r);e===0&&n!==null?o==null?fa(t,n,a):dn(t,n,a,o||null,!0):e===1&&n!==null?dn(t,n,a,o||null,!0):e===2?hd(t,a,s):e===3&&t.destroyNode(a),i!=null&&md(t,e,i,n,o)}}function Jl(e,t){return e.createText(t)}function Xl(e,t,n){e.setValue(t,n)}function ua(e,t,n){return e.createElement(t,n)}function ed(e,t){ca(e,t),t[te]=null,t[q]=null}function td(e,t,n,r,o,i){r[te]=o,r[q]=t,bn(e,r,n,1,o,i)}function ca(e,t){t[K].changeDetectionScheduler?.notify(1),bn(e,t,t[j],2,null,null)}function nd(e){let t=e[ct];if(!t)return er(e[v],e);for(;t;){let n=null;if(He(t))n=t[ct];else{let r=t[$];r&&(n=r)}if(!n){for(;t&&!t[z]&&t!==e;)He(t)&&er(t[v],t),t=t[O];t===null&&(t=e),He(t)&&er(t[v],t),n=t&&t[z]}t=n}}function rd(e,t,n,r){let o=$+r,i=n.length;r>0&&(n[o-1][z]=t),r0&&(e[n-1][z]=r[z]);let i=tn(e,$+t);ed(r[v],r);let s=i[We];s!==null&&s.detachView(i[v]),r[O]=null,r[z]=null,r[h]&=-129}return r}function da(e,t){if(!(t[h]&256)){let n=t[j];n.destroyNode&&bn(e,t,n,3,null,null),nd(t)}}function er(e,t){if(t[h]&256)return;let n=C(null);try{t[h]&=-129,t[h]|=256,t[Me]&&Fo(t[Me]),sd(e,t),id(e,t),t[v].type===1&&t[j].destroy();let r=t[In];if(r!==null&&ne(t[O])){r!==t[O]&&la(r,t);let o=t[We];o!==null&&o.detachView(e)}Hl(t)}finally{C(n)}}function id(e,t){let n=e.cleanup,r=t[vi];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[vi]=null);let o=t[le];if(o!==null){t[le]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===at.None||i===at.Emulated)return null}return X(r,n)}}function dn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function fa(e,t,n){e.appendChild(t,n)}function Ti(e,t,n,r,o){r!==null?dn(e,t,n,r,o):fa(e,t,n)}function cd(e,t,n,r){e.removeChild(t,n,r)}function uo(e,t){return e.parentNode(t)}function ld(e,t){return e.nextSibling(t)}function dd(e,t,n){return pd(e,t,n)}function fd(e,t,n){return e.type&40?X(e,n):null}var pd=fd,Si;function co(e,t,n,r){let o=ad(e,r,t),i=t[j],s=r.parent||t[q],a=dd(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;upe&&ma(e,t,pe,!1),ce(s?2:0,o),n(r,o)}finally{xe(i),ce(s?3:1,o)}}function Ia(e,t,n){if(vs(t)){let r=C(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function bd(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return cl()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,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}}function Ni(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=Ce.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?Ai(r,n,c,a,u):Ai(r,n,c,a)}return r}function Ai(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function Md(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Ad(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;En(n)&&jd(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Gs(n,t),Te(r,t);let s=n.initialInputs;for(let a=o;a{lt(e.lView)},consumerOnSignalRead(){this.lView[Me]=this}}),Na=100;function Aa(e,t=!0,n=0){let r=e[K],o=r.rendererFactory,i=!1;i||o.begin?.();try{Xd(e,n)}catch(s){throw t&&$d(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function Xd(e,t){br(e,t);let n=0;for(;Zr(e);){if(n===Na)throw new b(103,!1);n++,br(e,1)}}function ef(e,t,n,r){let o=t[h];if((o&256)===256)return;let i=!1;!i&&t[K].inlineEffectRunner?.flush(),Kr(t);let s=null,a=null;!i&&tf(e)&&(a=Qd(t),s=Ao(a));try{xs(t),hl(e.bindingStartIndex),n!==null&&va(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let d=e.preOrderCheckHooks;d!==null&&Qt(t,d,null)}else{let d=e.preOrderHooks;d!==null&&Zt(t,d,0,null),Zn(t,0)}if(nf(t),Oa(t,0),e.contentQueries!==null&&Ta(e,t),!i)if(u){let d=e.contentCheckHooks;d!==null&&Qt(t,d)}else{let d=e.contentHooks;d!==null&&Zt(t,d,1),Zn(t,1)}Dd(e,t);let c=e.components;c!==null&&Ra(t,c,0);let l=e.viewQuery;if(l!==null&&Cr(2,l,r),!i)if(u){let d=e.viewCheckHooks;d!==null&&Qt(t,d)}else{let d=e.viewHooks;d!==null&&Zt(t,d,2),Zn(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Qn]){for(let d of t[Qn])d();t[Qn]=null}i||(t[h]&=-73)}catch(u){throw lt(t),u}finally{a!==null&&(Oo(a,s),Kd(a)),Jr()}}function tf(e){return e.type!==2}function Oa(e,t){for(let n=na(e);n!==null;n=ra(n))for(let r=$;r-1&&(Ir(t,r),tn(n,r))}this._attachedToViewContainer=!1}da(this._lView[v],this._lView)}onDestroy(t){Ts(this._lView,t)}markForCheck(){Pa(this._cdRefInjectingView||this._lView)}detach(){this._lView[h]&=-129}reattach(){pr(this._lView),this._lView[h]|=128}detectChanges(){this._lView[h]|=1024,Aa(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,ca(this._lView[v],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=t,pr(this._lView)}},go=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=af;let e=t;return e})(),of=go,sf=class extends of{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Wd(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Se(o)}};function af(){return uf(re(),F())}function uf(e,t){return e.type&4?new sf(t,e,Cn(e,t)):null}var Vv=new RegExp(`^(\\d+)*(${Yl}|${ql})*(.*)`);var cf=()=>null;function Fi(e,t){return cf(e,t)}var Mr=class{},_r=class{},pn=class{};function lf(e){let t=Error(`No component factory found for ${L(e)}.`);return t[df]=e,t}var df="ngComponent";var xr=class{resolveComponentFactory(t){throw lf(t)}},Sn=(()=>{let t=class t{};t.NULL=new xr;let e=t;return e})(),Tr=class{};var ff=(()=>{let t=class t{};t.\u0275prov=N({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),tr={};var Ri=new Set;function ka(e){Ri.has(e)||(Ri.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Pi(...e){}function pf(){let e=typeof qt.requestAnimationFrame=="function",t=qt[e?"requestAnimationFrame":"setTimeout"],n=qt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){let r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);let o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}var W=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ve(!1),this.onMicrotaskEmpty=new Ve(!1),this.onStable=new Ve(!1),this.onError=new Ve(!1),typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();let 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=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=pf().nativeRequestAnimationFrame,mf(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new b(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,hf,Pi,Pi);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},hf={};function mo(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function gf(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(qt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Sr(e),e.isCheckStableRunning=!0,mo(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Sr(e))}function mf(e){let t=()=>{gf(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(yf(a))return n.invokeTask(o,i,s,a);try{return ki(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Li(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return ki(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),Li(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&(i.change=="microTask"?(e._hasPendingMicrotasks=i.microTask,Sr(e),mo(e)):i.change=="macroTask"&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function Sr(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function ki(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Li(e){e._nesting--,mo(e)}function yf(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}var La=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=N({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Nr(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&ha(e,n,i.join(" "))}}function bf(e,t,n){let r=e.projection=[];for(let o=0;o{let t=class t{};t.__NG_ELEMENT_ID__=_f;let e=t;return e})();function _f(){let e=re();return Tf(e,F())}var xf=yo,ja=class extends xf{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Cn(this._hostTNode,this._hostLView)}get injector(){return new Ee(this._hostTNode,this._hostLView)}get parentInjector(){let t=ro(this._hostTNode,this._hostLView);if($s(t)){let n=ln(t,this._hostLView),r=cn(t),o=n[v].data[r+8];return new Ee(o,n)}else return new Ee(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Vi(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-$}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Fi(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Oi(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!qc(t),a;if(s)a=n;else{let I=n||{};a=I.index,r=I.injector,o=I.projectableNodes,i=I.environmentInjector||I.ngModuleRef}let u=s?t:new ht(be(t)),c=r||this.parentInjector;if(!i&&u.ngModule==null){let _=(s?c:this.parentInjector).get(de,null);_&&(i=_)}let l=be(u.componentType??{}),d=Fi(this._lContainer,l?.id??null),f=d?.firstChild??null,p=u.create(c,o,f,i);return this.insertImpl(p.hostView,a,Oi(this._hostTNode,d)),p}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(rl(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=o[O],c=new ja(u,u[q],u[O]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return qd(s,o,i,r),t.attachToViewContainerRef(),ts(nr(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Vi(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Ir(this._lContainer,n);r&&(tn(nr(this._lContainer),n),da(r[v],r))}detach(t){let n=this._adjustIndex(t,-1),r=Ir(this._lContainer,n);return r&&tn(nr(this._lContainer),n)!=null?new Se(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Vi(e){return e[sn]}function nr(e){return e[sn]||(e[sn]=[])}function Tf(e,t){let n,r=t[e.index];return ne(r)?n=r:(n=xa(r,t,null,e),t[e.index]=n,Tn(t,n)),Nf(n,t,e,r),new ja(n,e,t)}function Sf(e,t){let n=e[j],r=n.createComment(""),o=X(t,e),i=uo(n,o);return dn(n,i,r,ld(n,o),!1),r}var Nf=Ff,Af=()=>!1;function Of(e,t,n){return Af(e,t,n)}function Ff(e,t,n,r){if(e[_e])return;let o;n.type&8?o=ee(r):o=Sf(t,n),e[_e]=o}var he=class{},Fr=class{};var Rr=class extends he{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new hn(this);let o=ls(t);this._bootstrapComponents=sa(o.bootstrap),this._r3Injector=Ks(t,n,[{provide:he,useValue:this},{provide:Sn,useValue:this.componentFactoryResolver},...r],L(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Pr=class extends Fr{constructor(t){super(),this.moduleType=t}create(t){return new Rr(this.moduleType,t,[])}};var gn=class extends he{constructor(t){super(),this.componentFactoryResolver=new hn(this),this.instance=null;let n=new ut([...t.providers,{provide:he,useValue:this},{provide:Sn,useValue:this.componentFactoryResolver}],t.parent||qr(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Rf(e,t,n=null){return new gn({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Va=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new et(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Ba(e){return kf(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Pf(e,t){if(Array.isArray(e))for(let n=0;n(to(!0),ua(r,o,Il()));var mn="en-US";var qf=mn;function Yf(e){typeof e=="string"&&(qf=e.toLowerCase().replace(/_/g,"-"))}function $v(e,t=""){let n=F(),r=Qe(),o=e+pe,i=r.firstCreatePass?xn(r,o,1,t,null):r.data[o],s=Qf(r,n,i,t,e);n[o]=s,eo()&&co(r,n,s,i),Dt(i,!1)}var Qf=(e,t,n,r,o)=>(to(!0),Jl(t[j],r));function Zf(e){return Ga("",e,""),Zf}function Ga(e,t,n){let r=F(),o=Hf(r,e,t,n);return o!==Mn&&Hd(r,Xr(),o),Ga}var Kf=(()=>{let t=class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let o=ps(!1,r.type),i=o.length>0?Rf([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,i)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=N({token:t,providedIn:"environment",factory:()=>new t(P(de))});let e=t;return e})();function Hv(e){ka("NgStandalone"),e.getStandaloneInjector=t=>t.get(Kf).getOrCreateStandaloneInjector(e)}var Uv=(()=>{let t=class t{log(r){console.log(r)}warn(r){console.warn(r)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var Jf=new x("");function Do(e){return!!e&&typeof e.then=="function"}function za(e){return!!e&&typeof e.subscribe=="function"}var Xf=new x(""),Wa=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=T(Xf,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(Do(s))r.push(s);else if(za(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ep=new x("");function tp(){Ro(()=>{throw new b(600,!1)})}function np(e){return e.isBoundToModule}function rp(e,t,n){try{let r=n();return Do(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var qa=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=T(Js),this.afterRenderEffectManager=T(La),this.externalTestViews=new Set,this.beforeRender=new ie,this.afterTick=new ie,this.componentTypes=[],this.components=[],this.isStable=T(Va).hasPendingTasks.pipe(Y(r=>!r)),this._injector=T(de)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof pn;if(!this._injector.get(Wa).done){let p=!i&&Oc(r),I=!1;throw new b(405,I)}let a;i?a=r:a=this._injector.get(Sn).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let u=np(a)?void 0:this._injector.get(he),c=o||a.selector,l=a.create(oo.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(Jf,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),rr(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new b(101,!1);let o=C(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(i){this.internalErrorHandler(i)}finally{this.afterTick.next(),this._runningTick=!1,C(o)}}detectChangesInAttachedViews(r){let o=0,i=this.afterRenderEffectManager;for(;;){if(o===Na)throw new b(103,!1);if(r){let s=o===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:u}of this._views)op(a,s,u)}if(o++,i.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>kr(s))&&(i.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>kr(s))))break}}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;rr(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(ep,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>rr(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new b(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function rr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function op(e,t,n){!t&&!kr(e)||ip(e,n,t)}function kr(e){return Zr(e)}function ip(e,t,n){let r;n?(r=0,e[h]|=1024):e[h]&64?r=0:r=1,Aa(e,t,r)}var Lr=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Gv=(()=>{let t=class t{compileModuleSync(r){return new Pr(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let o=this.compileModuleSync(r),i=ls(r),s=sa(i.declarations).reduce((a,u)=>{let c=be(u);return c&&a.push(new ht(c)),a},[]);return new Lr(o,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var sp=(()=>{let t=class t{constructor(){this.zone=T(W),this.applicationRef=T(qa)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ap(e){return[{provide:W,useFactory:e},{provide:nn,multi:!0,useFactory:()=>{let t=T(sp,{optional:!0});return()=>t.initialize()}},{provide:nn,multi:!0,useFactory:()=>{let t=T(dp);return()=>{t.initialize()}}},{provide:Js,useFactory:up}]}function up(){let e=T(W),t=T(qe);return n=>e.runOutsideAngular(()=>t.handleError(n))}function cp(e){let t=ap(()=>new W(lp(e)));return Rc([[],t])}function lp(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var dp=(()=>{let t=class t{constructor(){this.subscription=new A,this.initialized=!1,this.zone=T(W),this.pendingTasks=T(Va)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{W.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{W.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function fp(){return typeof $localize<"u"&&$localize.locale||mn}var vo=new x("",{providedIn:"root",factory:()=>T(vo,y.Optional|y.SkipSelf)||fp()});var Ya=new x("");var Jt=null;function pp(e=[],t){return oo.create({name:t,providers:[{provide:ms,useValue:"platform"},{provide:Ya,useValue:new Set([()=>Jt=null])},...e]})}function hp(e=[]){if(Jt)return Jt;let t=pp(e);return Jt=t,tp(),gp(t),t}function gp(e){e.get(zl,null)?.forEach(n=>n())}var Qa=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=mp;let e=t;return e})();function mp(e){return yp(re(),F(),(e&16)===16)}function yp(e,t,n){if(En(e)&&!n){let r=Ye(e.index,t);return new Se(r,r)}else if(e.type&47){let r=t[J];return new Se(r,t)}return null}var jr=class{constructor(){}supports(t){return Ba(t)}create(t){return new Vr(t)}},Dp=(e,t)=>t,Vr=class{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||Dp}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<$i(r,o,i)?n:r,a=$i(s,o,i),u=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let c=a-o,l=u-o;if(c!=l){for(let f=0;f{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Br(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new yn),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new yn),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Br=class{constructor(t,n){this.item=t,this.trackById=n,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}},$r=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(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,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},yn=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new $r,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function $i(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{let t=class t{constructor(r){this.factories=r}static create(r,o){if(o!=null){let i=o.factories.slice();r=r.concat(i)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||Hi()),deps:[[t,new mc,new gc]]}}find(r){let o=this.factories.find(i=>i.supports(r));if(o!=null)return o;throw new b(901,!1)}};t.\u0275prov=N({token:t,providedIn:"root",factory:Hi});let e=t;return e})();function zv(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=hp(r),i=[cp(),...n||[]],a=new gn({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(W);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(qe,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:p=>{c.handleError(p)}})});let d=()=>a.destroy(),f=o.get(Ya);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),rp(c,u,()=>{let p=a.get(Wa);return p.runInitializers(),p.donePromise.then(()=>{let I=a.get(vo,mn);Yf(I||mn);let _=a.get(qa);return t!==void 0&&_.bootstrap(t),_})})})}catch(t){return Promise.reject(t)}}var tu=null;function wo(){return tu}function EI(e){tu??=e}var Za=class{};var nu=new x(""),ru=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:()=>T(wp),providedIn:"platform"});let e=t;return e})();var wp=(()=>{let t=class t extends ru{constructor(){super(),this._doc=T(nu),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return wo().getBaseHref(this._doc)}onPopState(r){let o=wo().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",r,!1),()=>o.removeEventListener("popstate",r)}onHashChange(r){let o=wo().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",r,!1),()=>o.removeEventListener("hashchange",r)}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(r){this._location.pathname=r}pushState(r,o,i){this._history.pushState(r,o,i)}replaceState(r,o,i){this._history.replaceState(r,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function ou(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Ka(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Ne(e){return e&&e[0]!=="?"?"?"+e:e}var Co=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:()=>T(Cp),providedIn:"root"});let e=t;return e})(),Ep=new x(""),Cp=(()=>{let t=class t extends Co{constructor(r,o){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??T(nu).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return ou(this._baseHref,r)}path(r=!1){let o=this._platformLocation.pathname+Ne(this._platformLocation.search),i=this._platformLocation.hash;return i&&r?`${o}${i}`:o}pushState(r,o,i,s){let a=this.prepareExternalUrl(i+Ne(s));this._platformLocation.pushState(r,o,a)}replaceState(r,o,i,s){let a=this.prepareExternalUrl(i+Ne(s));this._platformLocation.replaceState(r,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};t.\u0275fac=function(o){return new(o||t)(P(ru),P(Ep,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var bp=(()=>{let t=class t{constructor(r){this._subject=new Ve,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let o=this._locationStrategy.getBaseHref();this._basePath=xp(Ka(Ja(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,o=""){return this.path()==this.normalize(r+Ne(o))}normalize(r){return t.stripTrailingSlash(_p(this._basePath,Ja(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,o="",i=null){this._locationStrategy.pushState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ne(o)),i)}replaceState(r,o="",i=null){this._locationStrategy.replaceState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ne(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){this._locationStrategy.historyGo?.(r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",o){this._urlChangeListeners.forEach(i=>i(r,o))}subscribe(r,o,i){return this._subject.subscribe({next:r,error:o,complete:i})}};t.normalizeQueryParams=Ne,t.joinWithSlash=ou,t.stripTrailingSlash=Ka,t.\u0275fac=function(o){return new(o||t)(P(Co))},t.\u0275prov=N({token:t,factory:()=>Mp(),providedIn:"root"});let e=t;return e})();function Mp(){return new bp(P(Co))}function _p(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Ja(e){return e.replace(/\/index.html$/,"")}function xp(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function CI(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Eo=class{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},bI=(()=>{let t=class t{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,o,i){this._viewContainer=r,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let o=this._viewContainer;r.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new Eo(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let u=o.get(s);o.move(u,a),Xa(u,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);Xa(s,i)})}static ngTemplateContextGuard(r,o){return!0}};t.\u0275fac=function(o){return new(o||t)(vt(yo),vt(go),vt(Io))},t.\u0275dir=as({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function Xa(e,t){e.context.$implicit=t.item}var MI=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ss({type:t}),t.\u0275inj=qi({});let e=t;return e})(),_I="browser",Tp="server";function xI(e){return e===Tp}var eu=class{};export{Ze as a,Ke as b,Sp as c,A as d,yu as e,w as f,Gn as g,zn as h,ie as i,et as j,tt as k,ae as l,xu as m,Tu as n,Su as o,Ie as p,Y as q,Lu as r,we as s,Gt as t,Vu as u,Bu as v,nt as w,ii as x,$u as y,rt as z,Wn as A,Hu as B,Gu as C,ai as D,qn as E,zu as F,Wu as G,qu as H,Yu as I,Qu as J,ui as K,b as L,N as M,qi as N,Tv as O,x as P,y as Q,P as R,T as S,at as T,Sv as U,ss as V,as as W,Rc as X,ms as Y,de as Z,Nv as _,Es as $,Av as aa,oo as ba,qe as ca,Ve as da,Ov as ea,Fv as fa,zl as ga,Wl as ha,Rv as ia,Pv as ja,aa as ka,kv as la,vt as ma,Lv as na,Mr as oa,Tr as pa,ka as qa,W as ra,yo as sa,Fr as ta,Rf as ua,Va as va,Vf as wa,Uf as xa,Ha as ya,Ua as za,zf as Aa,$v as Ba,Zf as Ca,Hv as Da,Uv as Ea,Do as Fa,ep as Ga,qa as Ha,Gv as Ia,Qa as Ja,zv as Ka,wo as La,EI as Ma,Za as Na,nu as Oa,bp as Pa,CI as Qa,bI as Ra,MI as Sa,_I as Ta,xI as Ua,eu as Va}; diff --git a/index.html b/index.html index e450eb4..f1636b1 100644 --- a/index.html +++ b/index.html @@ -9,8 +9,8 @@ + - + diff --git a/main-DY4RR65X.js b/main-DY4RR65X.js new file mode 100644 index 0000000..dba1e54 --- /dev/null +++ b/main-DY4RR65X.js @@ -0,0 +1,2 @@ +import{$ as rt,$a as Ze,A as Un,Aa as W,B as nt,Ba as de,C as vo,Ca as qe,D as yo,Da as R,E as ut,Ea as le,F as gt,Fa as Fo,G as zn,Ga as Ge,H as _o,Ha as Hn,I as wo,Ia as D,J as xo,Ja as Po,K as Ve,Ka as jo,L as We,La as Mt,M as Y,Ma as Lo,N as Bt,Na as Uo,O as A,Oa as ue,P as T,Pa as qn,Q as g,Qa as kt,R as S,Ra as Gn,S as Io,Sa as vt,T as w,Ta as qt,U as $n,Ua as X,V as m,Va as J,W as h,Wa as it,X as se,Xa as Ot,Y as k,Ya as yt,Z as O,Za as Kn,_ as M,_a as Ke,a as u,aa as Rt,ab as at,b as L,ba as Eo,bb as zo,ca as Vt,cb as N,d as re,da as mt,db as Ye,e as fo,ea as Bn,eb as $o,f as ze,fa as Vn,fb as Zn,g as Fn,ga as Wn,gb as Xe,h as Pn,ha as Co,hb as Yn,i as K,ia as At,ib as Je,j as $,ja as B,jb as Bo,k as ft,ka as Dt,kb as st,l as V,la as To,lb as Xn,m as b,ma as He,mb as Vo,n as Ct,na as Ro,nb as Wo,o as bo,oa as ht,ob as C,p as go,pa as St,pb as Qe,q as v,qa as ce,qb as tn,r as ae,ra as Wt,rb as Ho,s as Z,sa as Ht,sb as Jn,t as $e,ta as Ao,tb as qo,u as jn,ua as Do,ub as Go,v as Be,va as So,vb as en,w as lt,wa as Mo,wb as nn,x as bt,xa as ko,y as Tt,ya as Oo,z as Ln,za as No}from"./chunk-RPKWFZ3A.js";var he=class{},rn=class{},Nt=class n{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` +`).forEach(o=>{let e=o.indexOf(":");if(e>0){let i=o.slice(0,e),r=i.toLowerCase(),a=o.slice(e+1).trim();this.maybeSetNormalizedName(i,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((o,e)=>{this.setHeaderEntries(e,o)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([o,e])=>{this.setHeaderEntries(o,e)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let o=this.headers.get(t.toLowerCase());return o&&o.length>0?o[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,o){return this.clone({name:t,value:o,op:"a"})}set(t,o){return this.clone({name:t,value:o,op:"s"})}delete(t,o){return this.clone({name:t,value:o,op:"d"})}maybeSetNormalizedName(t,o){this.normalizedNames.has(o)||this.normalizedNames.set(o,t)}init(){this.lazyInit&&(this.lazyInit instanceof n?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(o=>{this.headers.set(o,t.headers.get(o)),this.normalizedNames.set(o,t.normalizedNames.get(o))})}clone(t){let o=new n;return o.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,o.lazyUpdate=(this.lazyUpdate||[]).concat([t]),o}applyUpdate(t){let o=t.name.toLowerCase();switch(t.op){case"a":case"s":let e=t.value;if(typeof e=="string"&&(e=[e]),e.length===0)return;this.maybeSetNormalizedName(t.name,o);let i=(t.op==="a"?this.headers.get(o):void 0)||[];i.push(...e),this.headers.set(o,i);break;case"d":let r=t.value;if(!r)this.headers.delete(o),this.normalizedNames.delete(o);else{let a=this.headers.get(o);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(o),this.normalizedNames.delete(o)):this.headers.set(o,a)}break}}setHeaderEntries(t,o){let e=(Array.isArray(o)?o:[o]).map(r=>r.toString()),i=t.toLowerCase();this.headers.set(i,e),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(o=>t(this.normalizedNames.get(o),this.headers.get(o)))}};var ti=class{encodeKey(t){return Ko(t)}encodeValue(t){return Ko(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function qa(n,t){let o=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{let r=i.indexOf("="),[a,s]=r==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,r)),t.decodeValue(i.slice(r+1))],d=o.get(a)||[];d.push(s),o.set(a,d)}),o}var Ga=/%(\d[a-f0-9])/gi,Ka={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ko(n){return encodeURIComponent(n).replace(Ga,(t,o)=>Ka[o]??t)}function on(n){return`${n}`}var _t=class n{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new ti,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=qa(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(o=>{let e=t.fromObject[o],i=Array.isArray(e)?e.map(on):[on(e)];this.map.set(o,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let o=this.map.get(t);return o?o[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,o){return this.clone({param:t,value:o,op:"a"})}appendAll(t){let o=[];return Object.keys(t).forEach(e=>{let i=t[e];Array.isArray(i)?i.forEach(r=>{o.push({param:e,value:r,op:"a"})}):o.push({param:e,value:i,op:"a"})}),this.clone(o)}set(t,o){return this.clone({param:t,value:o,op:"s"})}delete(t,o){return this.clone({param:t,value:o,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let o=this.encoder.encodeKey(t);return this.map.get(t).map(e=>o+"="+this.encoder.encodeValue(e)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let o=new n({encoder:this.encoder});return o.cloneFrom=this.cloneFrom||this,o.updates=(this.updates||[]).concat(t),o}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(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":let o=(t.op==="a"?this.map.get(t.param):void 0)||[];o.push(on(t.value)),this.map.set(t.param,o);break;case"d":if(t.value!==void 0){let e=this.map.get(t.param)||[],i=e.indexOf(on(t.value));i!==-1&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var ei=class{constructor(){this.map=new Map}set(t,o){return this.map.set(t,o),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 Za(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Zo(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Yo(n){return typeof Blob<"u"&&n instanceof Blob}function Xo(n){return typeof FormData<"u"&&n instanceof FormData}function Ya(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var me=class n{constructor(t,o,e,i){this.url=o,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let r;if(Za(this.method)||i?(this.body=e!==void 0?e:null,r=i):r=e,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.transferCache=r.transferCache),this.headers??=new Nt,this.context??=new ei,!this.params)this.params=new _t,this.urlWithParams=o;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=o;else{let s=o.indexOf("?"),d=s===-1?"?":sf.set(_,t.setHeaders[_]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((f,_)=>f.set(_,t.setParams[_]),l)),new n(o,e,a,{params:l,headers:c,context:p,reportProgress:d,responseType:i,withCredentials:s,transferCache:r})}},Gt=function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n}(Gt||{}),pe=class{constructor(t,o=cn.Ok,e="OK"){this.headers=t.headers||new Nt,this.status=t.status!==void 0?t.status:o,this.statusText=t.statusText||e,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},ni=class n extends pe{constructor(t={}){super(t),this.type=Gt.ResponseHeader}clone(t={}){return new n({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},an=class n extends pe{constructor(t={}){super(t),this.type=Gt.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},sn=class extends pe{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},cn=function(n){return n[n.Continue=100]="Continue",n[n.SwitchingProtocols=101]="SwitchingProtocols",n[n.Processing=102]="Processing",n[n.EarlyHints=103]="EarlyHints",n[n.Ok=200]="Ok",n[n.Created=201]="Created",n[n.Accepted=202]="Accepted",n[n.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",n[n.NoContent=204]="NoContent",n[n.ResetContent=205]="ResetContent",n[n.PartialContent=206]="PartialContent",n[n.MultiStatus=207]="MultiStatus",n[n.AlreadyReported=208]="AlreadyReported",n[n.ImUsed=226]="ImUsed",n[n.MultipleChoices=300]="MultipleChoices",n[n.MovedPermanently=301]="MovedPermanently",n[n.Found=302]="Found",n[n.SeeOther=303]="SeeOther",n[n.NotModified=304]="NotModified",n[n.UseProxy=305]="UseProxy",n[n.Unused=306]="Unused",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n[n.BadRequest=400]="BadRequest",n[n.Unauthorized=401]="Unauthorized",n[n.PaymentRequired=402]="PaymentRequired",n[n.Forbidden=403]="Forbidden",n[n.NotFound=404]="NotFound",n[n.MethodNotAllowed=405]="MethodNotAllowed",n[n.NotAcceptable=406]="NotAcceptable",n[n.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",n[n.RequestTimeout=408]="RequestTimeout",n[n.Conflict=409]="Conflict",n[n.Gone=410]="Gone",n[n.LengthRequired=411]="LengthRequired",n[n.PreconditionFailed=412]="PreconditionFailed",n[n.PayloadTooLarge=413]="PayloadTooLarge",n[n.UriTooLong=414]="UriTooLong",n[n.UnsupportedMediaType=415]="UnsupportedMediaType",n[n.RangeNotSatisfiable=416]="RangeNotSatisfiable",n[n.ExpectationFailed=417]="ExpectationFailed",n[n.ImATeapot=418]="ImATeapot",n[n.MisdirectedRequest=421]="MisdirectedRequest",n[n.UnprocessableEntity=422]="UnprocessableEntity",n[n.Locked=423]="Locked",n[n.FailedDependency=424]="FailedDependency",n[n.TooEarly=425]="TooEarly",n[n.UpgradeRequired=426]="UpgradeRequired",n[n.PreconditionRequired=428]="PreconditionRequired",n[n.TooManyRequests=429]="TooManyRequests",n[n.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",n[n.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",n[n.InternalServerError=500]="InternalServerError",n[n.NotImplemented=501]="NotImplemented",n[n.BadGateway=502]="BadGateway",n[n.ServiceUnavailable=503]="ServiceUnavailable",n[n.GatewayTimeout=504]="GatewayTimeout",n[n.HttpVersionNotSupported=505]="HttpVersionNotSupported",n[n.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",n[n.InsufficientStorage=507]="InsufficientStorage",n[n.LoopDetected=508]="LoopDetected",n[n.NotExtended=510]="NotExtended",n[n.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",n}(cn||{});function Qn(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,transferCache:n.transferCache}}var fe=(()=>{let t=class t{constructor(e){this.handler=e}request(e,i,r={}){let a;if(e instanceof me)a=e;else{let c;r.headers instanceof Nt?c=r.headers:c=new Nt(r.headers);let l;r.params&&(r.params instanceof _t?l=r.params:l=new _t({fromObject:r.params})),a=new me(e,i,r.body!==void 0?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let s=b(a).pipe(Tt(c=>this.handler.handle(c)));if(e instanceof me||r.observe==="events")return s;let d=s.pipe(lt(c=>c instanceof an));switch(r.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return d.pipe(v(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return d.pipe(v(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return d.pipe(v(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return d.pipe(v(c=>c.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${r.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 _t().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Qn(r,i))}post(e,i,r={}){return this.request("POST",e,Qn(r,i))}put(e,i,r={}){return this.request("PUT",e,Qn(r,i))}};t.\u0275fac=function(i){return new(i||t)(m(he))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})();function er(n,t){return t(n)}function Xa(n,t){return(o,e)=>t.intercept(o,{handle:i=>n(i,e)})}function Ja(n,t,o){return(e,i)=>mt(o,()=>t(e,r=>n(r,i)))}var Qa=new w(""),ii=new w(""),ts=new w(""),es=new w("");function ns(){let n=null;return(t,o)=>{n===null&&(n=(h(Qa,{optional:!0})??[]).reduceRight(Xa,er));let e=h(ue),i=e.add();return n(t,o).pipe(ut(()=>e.remove(i)))}}var Jo=(()=>{let t=class t extends he{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=h(ue);let r=h(es,{optional:!0});this.backend=r??e}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(ii),...this.injector.get(ts,[])]));this.chain=r.reduceRight((a,s)=>Ja(a,s,this.injector),er)}let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(ut(()=>this.pendingTasks.remove(i)))}};t.\u0275fac=function(i){return new(i||t)(m(rn),m(Vt))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})();var is=/^\)\]\}',?\n/;function os(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}var Qo=(()=>{let t=class t{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new T(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?V(i.\u0275loadImpl()):b(null)).pipe(Y(()=>new ze(a=>{let s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((E,x)=>s.setRequestHeader(E,x.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let E=e.detectContentTypeHeader();E!==null&&s.setRequestHeader("Content-Type",E)}if(e.responseType){let E=e.responseType.toLowerCase();s.responseType=E!=="json"?E:"text"}let d=e.serializeBody(),c=null,l=()=>{if(c!==null)return c;let E=s.statusText||"OK",x=new Nt(s.getAllResponseHeaders()),et=os(s)||e.url;return c=new ni({headers:x,status:s.status,statusText:E,url:et}),c},p=()=>{let{headers:E,status:x,statusText:et,url:po}=l(),z=null;x!==cn.NoContent&&(z=typeof s.response>"u"?s.responseText:s.response),x===0&&(x=z?cn.Ok:0);let Nn=x>=200&&x<300;if(e.responseType==="json"&&typeof z=="string"){let za=z;z=z.replace(is,"");try{z=z!==""?JSON.parse(z):null}catch($a){z=za,Nn&&(Nn=!1,z={error:$a,text:z})}}Nn?(a.next(new an({body:z,headers:E,status:x,statusText:et,url:po||void 0})),a.complete()):a.error(new sn({error:z,headers:E,status:x,statusText:et,url:po||void 0}))},f=E=>{let{url:x}=l(),et=new sn({error:E,status:s.status||0,statusText:s.statusText||"Unknown Error",url:x||void 0});a.error(et)},_=!1,G=E=>{_||(a.next(l()),_=!0);let x={type:Gt.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(x.total=E.total),e.responseType==="text"&&s.responseText&&(x.partialText=s.responseText),a.next(x)},j=E=>{let x={type:Gt.UploadProgress,loaded:E.loaded};E.lengthComputable&&(x.total=E.total),a.next(x)};return s.addEventListener("load",p),s.addEventListener("error",f),s.addEventListener("timeout",f),s.addEventListener("abort",f),e.reportProgress&&(s.addEventListener("progress",G),d!==null&&s.upload&&s.upload.addEventListener("progress",j)),s.send(d),a.next({type:Gt.Sent}),()=>{s.removeEventListener("error",f),s.removeEventListener("abort",f),s.removeEventListener("load",p),s.removeEventListener("timeout",f),e.reportProgress&&(s.removeEventListener("progress",G),d!==null&&s.upload&&s.upload.removeEventListener("progress",j)),s.readyState!==s.DONE&&s.abort()}})))}};t.\u0275fac=function(i){return new(i||t)(m(nn))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})(),nr=new w(""),rs="XSRF-TOKEN",as=new w("",{providedIn:"root",factory:()=>rs}),ss="X-XSRF-TOKEN",cs=new w("",{providedIn:"root",factory:()=>ss}),dn=class{},ds=(()=>{let t=class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=tn(e,this.cookieName),this.lastCookieString=e),this.lastToken}};t.\u0275fac=function(i){return new(i||t)(m(C),m(ht),m(as))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})();function ls(n,t){let o=n.url.toLowerCase();if(!h(nr)||n.method==="GET"||n.method==="HEAD"||o.startsWith("http://")||o.startsWith("https://"))return t(n);let e=h(dn).getToken(),i=h(cs);return e!=null&&!n.headers.has(i)&&(n=n.clone({headers:n.headers.set(i,e)})),t(n)}var ir=function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n}(ir||{});function us(n,t){return{\u0275kind:n,\u0275providers:t}}function oi(...n){let t=[fe,Qo,Jo,{provide:he,useExisting:Jo},{provide:rn,useExisting:Qo},{provide:ii,useValue:ls,multi:!0},{provide:nr,useValue:!0},{provide:dn,useClass:ds}];for(let o of n)t.push(...o.\u0275providers);return Rt(t)}var tr=new w("");function ms(){return us(ir.LegacyInterceptors,[{provide:tr,useFactory:ns},{provide:ii,useExisting:tr,multi:!0}])}var or=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=S({providers:[oi(ms())]});let n=t;return n})();var si=class extends Wo{constructor(){super(...arguments),this.supportsDOMEvents=!0}},ci=class n extends si{static makeCurrent(){Vo(new n)}onAndCancel(t,o,e){return t.addEventListener(o,e),()=>{t.removeEventListener(o,e)}}dispatchEvent(t,o){t.dispatchEvent(o)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,o){return o=o||this.getDefaultDocument(),o.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,o){return o==="window"?window:o==="document"?t:o==="body"?t.body:null}getBaseHref(t){let o=ps();return o==null?null:fs(o)}resetBaseElement(){be=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return tn(document.cookie,t)}},be=null;function ps(){return be=be||document.querySelector("base"),be?be.getAttribute("href"):null}function fs(n){return new URL(n,document.baseURI).pathname}var bs=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})(),di=new w(""),lr=(()=>{let t=class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(a=>a.supports(e)),!i)throw new T(5101,!1);return this._eventNameToPlugin.set(e,i),i}};t.\u0275fac=function(i){return new(i||t)(m(di),m(D))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})(),ln=class{constructor(t){this._doc=t}},ri="ng-app-id",ur=(()=>{let t=class t{constructor(e,i,r,a={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=en(a),this.resetHostNodes()}addStyles(e){for(let i of e)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(e){for(let i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){let i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${ri}="${this.appId}"]`);if(e?.length){let i=new Map;return e.forEach(r=>{r.textContent!=null&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){let r=this.styleRef;if(r.has(e)){let a=r.get(e);return a.usage+=i,a.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){let r=this.styleNodesInDOM,a=r?.get(i);if(a?.parentNode===e)return r.delete(i),a.removeAttribute(ri),a;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(ri,this.appId),e.appendChild(s),s}}addStyleToHost(e,i){let r=this.getStyleElement(e,i),a=this.styleRef,s=a.get(i)?.elements;s?s.push(r):a.set(i,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}};t.\u0275fac=function(i){return new(i||t)(m(C),m(He),m(ce,8),m(ht))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})(),ai={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/"},ui=/%COMP%/g,mr="%COMP%",gs=`_nghost-${mr}`,vs=`_ngcontent-${mr}`,ys=!0,_s=new w("",{providedIn:"root",factory:()=>ys});function ws(n){return vs.replace(ui,n)}function xs(n){return gs.replace(ui,n)}function hr(n,t){return t.map(o=>o.replace(ui,n))}var un=(()=>{let t=class t{constructor(e,i,r,a,s,d,c,l=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=a,this.doc=s,this.platformId=d,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=en(d),this.defaultRenderer=new ge(e,s,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===se.ShadowDom&&(i=L(u({},i),{encapsulation:se.Emulated}));let r=this.getOrCreateRenderer(e,i);return r instanceof mn?r.applyToHost(e):r instanceof ve&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,a=r.get(i.id);if(!a){let s=this.doc,d=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case se.Emulated:a=new mn(c,l,i,this.appId,p,s,d,f);break;case se.ShadowDom:return new li(c,l,e,i,s,d,this.nonce,f);default:a=new ve(c,l,i,p,s,d,f);break}r.set(i.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(i){return new(i||t)(m(lr),m(ur),m(He),m(_s),m(C),m(ht),m(D),m(ce))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})(),ge=class{constructor(t,o,e,i){this.eventManager=t,this.doc=o,this.ngZone=e,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,o){return o?this.doc.createElementNS(ai[o]||o,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,o){(ar(t)?t.content:t).appendChild(o)}insertBefore(t,o,e){t&&(ar(t)?t.content:t).insertBefore(o,e)}removeChild(t,o){t&&t.removeChild(o)}selectRootElement(t,o){let e=typeof t=="string"?this.doc.querySelector(t):t;if(!e)throw new T(-5104,!1);return o||(e.textContent=""),e}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,o,e,i){if(i){o=i+":"+o;let r=ai[i];r?t.setAttributeNS(r,o,e):t.setAttribute(o,e)}else t.setAttribute(o,e)}removeAttribute(t,o,e){if(e){let i=ai[e];i?t.removeAttributeNS(i,o):t.removeAttribute(`${e}:${o}`)}else t.removeAttribute(o)}addClass(t,o){t.classList.add(o)}removeClass(t,o){t.classList.remove(o)}setStyle(t,o,e,i){i&(de.DashCase|de.Important)?t.style.setProperty(o,e,i&de.Important?"important":""):t.style[o]=e}removeStyle(t,o,e){e&de.DashCase?t.style.removeProperty(o):t.style[o]=""}setProperty(t,o,e){t!=null&&(t[o]=e)}setValue(t,o){t.nodeValue=o}listen(t,o,e){if(typeof t=="string"&&(t=Xn().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${o}`);return this.eventManager.addEventListener(t,o,this.decoratePreventDefault(e))}decoratePreventDefault(t){return o=>{if(o==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(o)):t(o))===!1&&o.preventDefault()}}};function ar(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var li=class extends ge{constructor(t,o,e,i,r,a,s,d){super(t,r,a,d),this.sharedStylesHost=o,this.hostEl=e,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=hr(i.id,i.styles);for(let l of c){let p=document.createElement("style");s&&p.setAttribute("nonce",s),p.textContent=l,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,o){return super.appendChild(this.nodeOrShadowRoot(t),o)}insertBefore(t,o,e){return super.insertBefore(this.nodeOrShadowRoot(t),o,e)}removeChild(t,o){return super.removeChild(this.nodeOrShadowRoot(t),o)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},ve=class extends ge{constructor(t,o,e,i,r,a,s,d){super(t,r,a,s),this.sharedStylesHost=o,this.removeStylesOnCompDestroy=i,this.styles=d?hr(d,e.styles):e.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},mn=class extends ve{constructor(t,o,e,i,r,a,s,d){let c=i+"-"+e.id;super(t,o,e,r,a,s,d,c),this.contentAttr=ws(c),this.hostAttr=xs(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,o){let e=super.createElement(t,o);return super.setAttribute(e,this.contentAttr,""),e}},Is=(()=>{let t=class t extends ln{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}};t.\u0275fac=function(i){return new(i||t)(m(C))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})(),sr=["alt","control","meta","shift"],Es={"\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"},Cs={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},Ts=(()=>{let t=class t extends ln{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Xn().onAndCancel(e,a.domEventName,s))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let a=t._normalizeKey(i.pop()),s="",d=i.indexOf("code");if(d>-1&&(i.splice(d,1),s="code."),sr.forEach(l=>{let p=i.indexOf(l);p>-1&&(i.splice(p,1),s+=l+".")}),s+=a,i.length!=0||a.length===0)return null;let c={};return c.domEventName=r,c.fullKey=s,c}static matchEventFullKeyCode(e,i){let r=Es[e.key]||e.key,a="";return i.indexOf("code.")>-1&&(r=e.code,a="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),sr.forEach(s=>{if(s!==r){let d=Cs[s];d(e)&&(a+=s+".")}}),a+=r,a===i)}static eventCallback(e,i,r){return a=>{t.matchEventFullKeyCode(a,e)&&r.runGuarded(()=>i(a))}}static _normalizeKey(e){return e==="esc"?"escape":e}};t.\u0275fac=function(i){return new(i||t)(m(C))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})();function pr(n,t){return Bo(u({rootComponent:n},Rs(t)))}function Rs(n){return{appProviders:[...ks,...n?.providers??[]],platformProviders:Ms}}function As(){ci.makeCurrent()}function Ds(){return new At}function Ss(){return To(document),document}var Ms=[{provide:ht,useValue:qo},{provide:Ro,useValue:As,multi:!0},{provide:C,useFactory:Ss,deps:[]}];var ks=[{provide:Eo,useValue:"root"},{provide:At,useFactory:Ds,deps:[]},{provide:di,useClass:Is,multi:!0,deps:[C,D,ht]},{provide:di,useClass:Ts,multi:!0,deps:[C]},un,ur,lr,{provide:Ge,useExisting:un},{provide:nn,useClass:bs,deps:[]},[]];var fr=(()=>{let t=class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}};t.\u0275fac=function(i){return new(i||t)(m(C))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var mi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=m(Os),r},providedIn:"root"});let n=t;return n})(),Os=(()=>{let t=class t extends mi{constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case W.NONE:return i;case W.HTML:return Ht(i,"HTML")?Wt(i):No(this._doc,String(i)).toString();case W.STYLE:return Ht(i,"Style")?Wt(i):i;case W.SCRIPT:if(Ht(i,"Script"))return Wt(i);throw new T(5200,!1);case W.URL:return Ht(i,"URL")?Wt(i):Oo(String(i));case W.RESOURCE_URL:if(Ht(i,"ResourceURL"))return Wt(i);throw new T(5201,!1);default:throw new T(5202,!1)}}bypassSecurityTrustHtml(e){return Ao(e)}bypassSecurityTrustStyle(e){return Do(e)}bypassSecurityTrustScript(e){return So(e)}bypassSecurityTrustUrl(e){return Mo(e)}bypassSecurityTrustResourceUrl(e){return ko(e)}};t.\u0275fac=function(i){return new(i||t)(m(C))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var y="primary",Oe=Symbol("RouteTitle"),gi=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let o=this.params[t];return Array.isArray(o)?o[0]:o}return null}getAll(t){if(this.has(t)){let o=this.params[t];return Array.isArray(o)?o:[o]}return[]}get keys(){return Object.keys(this.params)}};function Jt(n){return new gi(n)}function Ps(n,t,o){let e=o.path.split("/");if(e.length>n.length||o.pathMatch==="full"&&(t.hasChildren()||e.lengthe[r]===i)}else return n===t}function Ir(n){return n.length>0?n[n.length-1]:null}function It(n){return bo(n)?n:$o(n)?V(Promise.resolve(n)):b(n)}var Ls={exact:Cr,subset:Tr},Er={exact:Us,subset:zs,ignored:()=>!0};function gr(n,t,o){return Ls[o.paths](n.root,t.root,o.matrixParams)&&Er[o.queryParams](n.queryParams,t.queryParams)&&!(o.fragment==="exact"&&n.fragment!==t.fragment)}function Us(n,t){return ct(n,t)}function Cr(n,t,o){if(!Pt(n.segments,t.segments)||!fn(n.segments,t.segments,o)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let e in t.children)if(!n.children[e]||!Cr(n.children[e],t.children[e],o))return!1;return!0}function zs(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(o=>xr(n[o],t[o]))}function Tr(n,t,o){return Rr(n,t,t.segments,o)}function Rr(n,t,o,e){if(n.segments.length>o.length){let i=n.segments.slice(0,o.length);return!(!Pt(i,o)||t.hasChildren()||!fn(i,o,e))}else if(n.segments.length===o.length){if(!Pt(n.segments,o)||!fn(n.segments,o,e))return!1;for(let i in t.children)if(!n.children[i]||!Tr(n.children[i],t.children[i],e))return!1;return!0}else{let i=o.slice(0,n.segments.length),r=o.slice(n.segments.length);return!Pt(n.segments,i)||!fn(n.segments,i,e)||!n.children[y]?!1:Rr(n.children[y],t,r,e)}}function fn(n,t,o){return t.every((e,i)=>Er[o](n[i].parameters,e.parameters))}var wt=class{constructor(t=new I([],{}),o={},e=null){this.root=t,this.queryParams=o,this.fragment=e}get queryParamMap(){return this._queryParamMap??=Jt(this.queryParams),this._queryParamMap}toString(){return Vs.serialize(this)}},I=class{constructor(t,o){this.segments=t,this.children=o,this.parent=null,Object.values(o).forEach(e=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bn(this)}},Ft=class{constructor(t,o){this.path=t,this.parameters=o}get parameterMap(){return this._parameterMap??=Jt(this.parameters),this._parameterMap}toString(){return Dr(this)}};function $s(n,t){return Pt(n,t)&&n.every((o,e)=>ct(o.parameters,t[e].parameters))}function Pt(n,t){return n.length!==t.length?!1:n.every((o,e)=>o.path===t[e].path)}function Bs(n,t){let o=[];return Object.entries(n.children).forEach(([e,i])=>{e===y&&(o=o.concat(t(i,e)))}),Object.entries(n.children).forEach(([e,i])=>{e!==y&&(o=o.concat(t(i,e)))}),o}var Wi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:()=>new vn,providedIn:"root"});let n=t;return n})(),vn=class{parse(t){let o=new _i(t);return new wt(o.parseRootSegment(),o.parseQueryParams(),o.parseFragment())}serialize(t){let o=`/${ye(t.root,!0)}`,e=qs(t.queryParams),i=typeof t.fragment=="string"?`#${Ws(t.fragment)}`:"";return`${o}${e}${i}`}},Vs=new vn;function bn(n){return n.segments.map(t=>Dr(t)).join("/")}function ye(n,t){if(!n.hasChildren())return bn(n);if(t){let o=n.children[y]?ye(n.children[y],!1):"",e=[];return Object.entries(n.children).forEach(([i,r])=>{i!==y&&e.push(`${i}:${ye(r,!1)}`)}),e.length>0?`${o}(${e.join("//")})`:o}else{let o=Bs(n,(e,i)=>i===y?[ye(n.children[y],!1)]:[`${i}:${ye(e,!1)}`]);return Object.keys(n.children).length===1&&n.children[y]!=null?`${bn(n)}/${o[0]}`:`${bn(n)}/(${o.join("//")})`}}function Ar(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function hn(n){return Ar(n).replace(/%3B/gi,";")}function Ws(n){return encodeURI(n)}function yi(n){return Ar(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function gn(n){return decodeURIComponent(n)}function vr(n){return gn(n.replace(/\+/g,"%20"))}function Dr(n){return`${yi(n.path)}${Hs(n.parameters)}`}function Hs(n){return Object.entries(n).map(([t,o])=>`;${yi(t)}=${yi(o)}`).join("")}function qs(n){let t=Object.entries(n).map(([o,e])=>Array.isArray(e)?e.map(i=>`${hn(o)}=${hn(i)}`).join("&"):`${hn(o)}=${hn(e)}`).filter(o=>o);return t.length?`?${t.join("&")}`:""}var Gs=/^[^\/()?;#]+/;function hi(n){let t=n.match(Gs);return t?t[0]:""}var Ks=/^[^\/()?;=#]+/;function Zs(n){let t=n.match(Ks);return t?t[0]:""}var Ys=/^[^=?&#]+/;function Xs(n){let t=n.match(Ys);return t?t[0]:""}var Js=/^[^&#]+/;function Qs(n){let t=n.match(Js);return t?t[0]:""}var _i=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new I([],{}):new I([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let o={};this.peekStartsWith("/(")&&(this.capture("/"),o=this.parseParens(!0));let e={};return this.peekStartsWith("(")&&(e=this.parseParens(!1)),(t.length>0||Object.keys(o).length>0)&&(e[y]=new I(t,o)),e}parseSegment(){let t=hi(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new T(4009,!1);return this.capture(t),new Ft(gn(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let o=Zs(this.remaining);if(!o)return;this.capture(o);let e="";if(this.consumeOptional("=")){let i=hi(this.remaining);i&&(e=i,this.capture(e))}t[gn(o)]=gn(e)}parseQueryParam(t){let o=Xs(this.remaining);if(!o)return;this.capture(o);let e="";if(this.consumeOptional("=")){let a=Qs(this.remaining);a&&(e=a,this.capture(e))}let i=vr(o),r=vr(e);if(t.hasOwnProperty(i)){let a=t[i];Array.isArray(a)||(a=[a],t[i]=a),a.push(r)}else t[i]=r}parseParens(t){let o={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let e=hi(this.remaining),i=this.remaining[e.length];if(i!=="/"&&i!==")"&&i!==";")throw new T(4010,!1);let r;e.indexOf(":")>-1?(r=e.slice(0,e.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=y);let a=this.parseChildren();o[r]=Object.keys(a).length===1?a[y]:new I([],a),this.consumeOptional("//")}return o}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new T(4011,!1)}};function Sr(n){return n.segments.length>0?new I([],{[y]:n}):n}function Mr(n){let t={};for(let[e,i]of Object.entries(n.children)){let r=Mr(i);if(e===y&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))t[a]=s;else(r.segments.length>0||r.hasChildren())&&(t[e]=r)}let o=new I(n.segments,t);return tc(o)}function tc(n){if(n.numberOfChildren===1&&n.children[y]){let t=n.children[y];return new I(n.segments.concat(t.segments),t.children)}return n}function Qt(n){return n instanceof wt}function ec(n,t,o=null,e=null){let i=kr(n);return Or(i,t,o,e)}function kr(n){let t;function o(r){let a={};for(let d of r.children){let c=o(d);a[d.outlet]=c}let s=new I(r.url,a);return r===n&&(t=s),s}let e=o(n.root),i=Sr(e);return t??i}function Or(n,t,o,e){let i=n;for(;i.parent;)i=i.parent;if(t.length===0)return pi(i,i,i,o,e);let r=nc(t);if(r.toRoot())return pi(i,i,new I([],{}),o,e);let a=ic(r,i,n),s=a.processChildren?xe(a.segmentGroup,a.index,r.commands):Fr(a.segmentGroup,a.index,r.commands);return pi(i,a.segmentGroup,s,o,e)}function yn(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Ce(n){return typeof n=="object"&&n!=null&&n.outlets}function pi(n,t,o,e,i){let r={};e&&Object.entries(e).forEach(([d,c])=>{r[d]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let a;n===t?a=o:a=Nr(n,t,o);let s=Sr(Mr(a));return new wt(s,r,i)}function Nr(n,t,o){let e={};return Object.entries(n.children).forEach(([i,r])=>{r===t?e[i]=o:e[i]=Nr(r,t,o)}),new I(n.segments,e)}var _n=class{constructor(t,o,e){if(this.isAbsolute=t,this.numberOfDoubleDots=o,this.commands=e,t&&e.length>0&&yn(e[0]))throw new T(4003,!1);let i=e.find(Ce);if(i&&i!==Ir(e))throw new T(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function nc(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new _n(!0,0,n);let t=0,o=!1,e=n.reduce((i,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([d,c])=>{s[d]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:s}]}if(r.segmentPath)return[...i,r.segmentPath]}return typeof r!="string"?[...i,r]:a===0?(r.split("/").forEach((s,d)=>{d==0&&s==="."||(d==0&&s===""?o=!0:s===".."?t++:s!=""&&i.push(s))}),i):[...i,r]},[]);return new _n(o,t,e)}var Yt=class{constructor(t,o,e){this.segmentGroup=t,this.processChildren=o,this.index=e}};function ic(n,t,o){if(n.isAbsolute)return new Yt(t,!0,0);if(!o)return new Yt(t,!1,NaN);if(o.parent===null)return new Yt(o,!0,0);let e=yn(n.commands[0])?0:1,i=o.segments.length-1+e;return oc(o,i,n.numberOfDoubleDots)}function oc(n,t,o){let e=n,i=t,r=o;for(;r>i;){if(r-=i,e=e.parent,!e)throw new T(4005,!1);i=e.segments.length}return new Yt(e,!1,i-r)}function rc(n){return Ce(n[0])?n[0].outlets:{[y]:n}}function Fr(n,t,o){if(n??=new I([],{}),n.segments.length===0&&n.hasChildren())return xe(n,t,o);let e=ac(n,t,o),i=o.slice(e.commandIndex);if(e.match&&e.pathIndexr!==y)&&n.children[y]&&n.numberOfChildren===1&&n.children[y].segments.length===0){let r=xe(n.children[y],t,o);return new I(n.segments,r.children)}return Object.entries(e).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[r]=Fr(n.children[r],t,a))}),Object.entries(n.children).forEach(([r,a])=>{e[r]===void 0&&(i[r]=a)}),new I(n.segments,i)}}function ac(n,t,o){let e=0,i=t,r={match:!1,pathIndex:0,commandIndex:0};for(;i=o.length)return r;let a=n.segments[i],s=o[e];if(Ce(s))break;let d=`${s}`,c=e0&&d===void 0)break;if(d&&c&&typeof c=="object"&&c.outlets===void 0){if(!_r(d,c,a))return r;e+=2}else{if(!_r(d,{},a))return r;e++}i++}return{match:!0,pathIndex:i,commandIndex:e}}function wi(n,t,o){let e=n.segments.slice(0,t),i=0;for(;i{typeof e=="string"&&(e=[e]),e!==null&&(t[o]=wi(new I([],{}),0,e))}),t}function yr(n){let t={};return Object.entries(n).forEach(([o,e])=>t[o]=`${e}`),t}function _r(n,t,o){return n==o.path&&ct(t,o.parameters)}var Ie="imperative",P=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(P||{}),Q=class{constructor(t,o){this.id=t,this.url=o}},Te=class extends Q{constructor(t,o,e="imperative",i=null){super(t,o),this.type=P.NavigationStart,this.navigationTrigger=e,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},jt=class extends Q{constructor(t,o,e){super(t,o),this.urlAfterRedirects=e,this.type=P.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},q=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(q||{}),xi=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(xi||{}),xt=class extends Q{constructor(t,o,e,i){super(t,o),this.reason=e,this.code=i,this.type=P.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Lt=class extends Q{constructor(t,o,e,i){super(t,o),this.reason=e,this.code=i,this.type=P.NavigationSkipped}},Re=class extends Q{constructor(t,o,e,i){super(t,o),this.error=e,this.target=i,this.type=P.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},wn=class extends Q{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=P.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ii=class extends Q{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=P.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ei=class extends Q{constructor(t,o,e,i,r){super(t,o),this.urlAfterRedirects=e,this.state=i,this.shouldActivate=r,this.type=P.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ci=class extends Q{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=P.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ti=class extends Q{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=P.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ri=class{constructor(t){this.route=t,this.type=P.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ai=class{constructor(t){this.route=t,this.type=P.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Di=class{constructor(t){this.snapshot=t,this.type=P.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Si=class{constructor(t){this.snapshot=t,this.type=P.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Mi=class{constructor(t){this.snapshot=t,this.type=P.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ki=class{constructor(t){this.snapshot=t,this.type=P.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Ae=class{},De=class{constructor(t){this.url=t}};var Oi=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Rn,this.attachRef=null}},Rn=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new Oi,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),xn=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let o=this.pathFromRoot(t);return o.length>1?o[o.length-2]:null}children(t){let o=Ni(t,this._root);return o?o.children.map(e=>e.value):[]}firstChild(t){let o=Ni(t,this._root);return o&&o.children.length>0?o.children[0].value:null}siblings(t){let o=Fi(t,this._root);return o.length<2?[]:o[o.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return Fi(t,this._root).map(o=>o.value)}};function Ni(n,t){if(n===t.value)return t;for(let o of t.children){let e=Ni(n,o);if(e)return e}return null}function Fi(n,t){if(n===t.value)return[t];for(let o of t.children){let e=Fi(n,o);if(e.length)return e.unshift(t),e}return[]}var H=class{constructor(t,o){this.value=t,this.children=o}toString(){return`TreeNode(${this.value})`}};function Zt(n){let t={};return n&&n.children.forEach(o=>t[o.value.outlet]=o),t}var In=class extends xn{constructor(t,o){super(t),this.snapshot=o,qi(this,t)}toString(){return this.snapshot.toString()}};function Pr(n){let t=cc(n),o=new $([new Ft("",{})]),e=new $({}),i=new $({}),r=new $({}),a=new $(""),s=new te(o,e,r,a,i,y,n,t.root);return s.snapshot=t.root,new In(new H(s,[]),t)}function cc(n){let t={},o={},e={},i="",r=new Se([],t,e,i,o,y,n,null,{});return new En("",new H(r,[]))}var te=class{constructor(t,o,e,i,r,a,s,d){this.urlSubject=t,this.paramsSubject=o,this.queryParamsSubject=e,this.fragmentSubject=i,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=d,this.title=this.dataSubject?.pipe(v(c=>c[Oe]))??b(void 0),this.url=t,this.params=o,this.queryParams=e,this.fragment=i,this.data=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(v(t=>Jt(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(t=>Jt(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Hi(n,t,o="emptyOnly"){let e,{routeConfig:i}=n;return t!==null&&(o==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?e={params:u(u({},t.params),n.params),data:u(u({},t.data),n.data),resolve:u(u(u(u({},n.data),t.data),i?.data),n._resolvedData)}:e={params:u({},n.params),data:u({},n.data),resolve:u(u({},n.data),n._resolvedData??{})},i&&Lr(i)&&(e.resolve[Oe]=i.title),e}var Se=class{get title(){return this.data?.[Oe]}constructor(t,o,e,i,r,a,s,d,c){this.url=t,this.params=o,this.queryParams=e,this.fragment=i,this.data=r,this.outlet=a,this.component=s,this.routeConfig=d,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Jt(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Jt(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(e=>e.toString()).join("/"),o=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${o}')`}},En=class extends xn{constructor(t,o){super(o),this.url=t,qi(this,o)}toString(){return jr(this._root)}};function qi(n,t){t.value._routerState=n,t.children.forEach(o=>qi(n,o))}function jr(n){let t=n.children.length>0?` { ${n.children.map(jr).join(", ")} } `:"";return`${n.value}${t}`}function fi(n){if(n.snapshot){let t=n.snapshot,o=n._futureSnapshot;n.snapshot=o,ct(t.queryParams,o.queryParams)||n.queryParamsSubject.next(o.queryParams),t.fragment!==o.fragment&&n.fragmentSubject.next(o.fragment),ct(t.params,o.params)||n.paramsSubject.next(o.params),js(t.url,o.url)||n.urlSubject.next(o.url),ct(t.data,o.data)||n.dataSubject.next(o.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function Pi(n,t){let o=ct(n.params,t.params)&&$s(n.url,t.url),e=!n.parent!=!t.parent;return o&&!e&&(!n.parent||Pi(n.parent,t.parent))}function Lr(n){return typeof n.title=="string"||n.title===null}var Gi=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=y,this.activateEvents=new Dt,this.deactivateEvents=new Dt,this.attachEvents=new Dt,this.detachEvents=new Dt,this.parentContexts=h(Rn),this.location=h(Po),this.changeDetector=h(Je),this.environmentInjector=h(Vt),this.inputBinder=h(Ki,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new T(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new T(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new T(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new T(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,d=this.parentContexts.getOrCreateContext(this.name).children,c=new ji(e,d,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=rt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Bn]});let n=t;return n})(),ji=class n{__ngOutletInjector(t){return new n(this.route,this.childContexts,t)}constructor(t,o,e){this.route=t,this.childContexts=o,this.parent=e}get(t,o){return t===te?this.route:t===Rn?this.childContexts:this.parent.get(t,o)}},Ki=new w("");function dc(n,t,o){let e=Me(n,t._root,o?o._root:void 0);return new In(e,t)}function Me(n,t,o){if(o&&n.shouldReuseRoute(t.value,o.value.snapshot)){let e=o.value;e._futureSnapshot=t.value;let i=lc(n,t,o);return new H(e,i)}else{if(n.shouldAttach(t.value)){let r=n.retrieve(t.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(s=>Me(n,s)),a}}let e=uc(t.value),i=t.children.map(r=>Me(n,r));return new H(e,i)}}function lc(n,t,o){return t.children.map(e=>{for(let i of o.children)if(n.shouldReuseRoute(e.value,i.value.snapshot))return Me(n,e,i);return Me(n,e)})}function uc(n){return new te(new $(n.url),new $(n.params),new $(n.queryParams),new $(n.fragment),new $(n.data),n.outlet,n.component,n)}var Ur="ngNavigationCancelingError";function zr(n,t){let{redirectTo:o,navigationBehaviorOptions:e}=Qt(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=$r(!1,q.Redirect);return i.url=o,i.navigationBehaviorOptions=e,i}function $r(n,t){let o=new Error(`NavigationCancelingError: ${n||""}`);return o[Ur]=!0,o.cancellationCode=t,o}function mc(n){return Br(n)&&Qt(n.url)}function Br(n){return!!n&&n[Ur]}var hc=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=O({type:t,selectors:[["ng-component"]],standalone:!0,features:[N],decls:1,vars:0,template:function(i,r){i&1&&it(0,"router-outlet")},dependencies:[Gi],encapsulation:2});let n=t;return n})();function pc(n,t){return n.providers&&!n._injector&&(n._injector=Uo(n.providers,t,`Route: ${n.path}`)),n._injector??t}function Zi(n){let t=n.children&&n.children.map(Zi),o=t?L(u({},n),{children:t}):u({},n);return!o.component&&!o.loadComponent&&(t||o.loadChildren)&&o.outlet&&o.outlet!==y&&(o.component=hc),o}function dt(n){return n.outlet||y}function fc(n,t){let o=n.filter(e=>dt(e)===t);return o.push(...n.filter(e=>dt(e)!==t)),o}function Ne(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let o=t.routeConfig;if(o?._loadedInjector)return o._loadedInjector;if(o?._injector)return o._injector}return null}var bc=(n,t,o,e)=>v(i=>(new Li(t,i.targetRouterState,i.currentRouterState,o,e).activate(n),i)),Li=class{constructor(t,o,e,i,r){this.routeReuseStrategy=t,this.futureState=o,this.currState=e,this.forwardEvent=i,this.inputBindingEnabled=r}activate(t){let o=this.futureState._root,e=this.currState?this.currState._root:null;this.deactivateChildRoutes(o,e,t),fi(this.futureState.root),this.activateChildRoutes(o,e,t)}deactivateChildRoutes(t,o,e){let i=Zt(o);t.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,i[a],e),delete i[a]}),Object.values(i).forEach(r=>{this.deactivateRouteAndItsChildren(r,e)})}deactivateRoutes(t,o,e){let i=t.value,r=o?o.value:null;if(i===r)if(i.component){let a=e.getContext(i.outlet);a&&this.deactivateChildRoutes(t,o,a.children)}else this.deactivateChildRoutes(t,o,e);else r&&this.deactivateRouteAndItsChildren(o,e)}deactivateRouteAndItsChildren(t,o){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,o):this.deactivateRouteAndOutlet(t,o)}detachAndStoreRouteSubtree(t,o){let e=o.getContext(t.value.outlet),i=e&&t.value.component?e.children:o,r=Zt(t);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,i);if(e&&e.outlet){let a=e.outlet.detach(),s=e.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:a,route:t,contexts:s})}}deactivateRouteAndOutlet(t,o){let e=o.getContext(t.value.outlet),i=e&&t.value.component?e.children:o,r=Zt(t);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,i);e&&(e.outlet&&(e.outlet.deactivate(),e.children.onOutletDeactivated()),e.attachRef=null,e.route=null)}activateChildRoutes(t,o,e){let i=Zt(o);t.children.forEach(r=>{this.activateRoutes(r,i[r.value.outlet],e),this.forwardEvent(new ki(r.value.snapshot))}),t.children.length&&this.forwardEvent(new Si(t.value.snapshot))}activateRoutes(t,o,e){let i=t.value,r=o?o.value:null;if(fi(i),i===r)if(i.component){let a=e.getOrCreateContext(i.outlet);this.activateChildRoutes(t,o,a.children)}else this.activateChildRoutes(t,o,e);else if(i.component){let a=e.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),fi(s.route.value),this.activateChildRoutes(t,null,a.children)}else{let s=Ne(i.snapshot);a.attachRef=null,a.route=i,a.injector=s,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,e)}},Cn=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Xt=class{constructor(t,o){this.component=t,this.route=o}};function gc(n,t,o){let e=n._root,i=t?t._root:null;return _e(e,i,o,[e.value])}function vc(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function ne(n,t){let o=Symbol(),e=t.get(n,o);return e===o?typeof n=="function"&&!Io(n)?n:t.get(n):e}function _e(n,t,o,e,i={canDeactivateChecks:[],canActivateChecks:[]}){let r=Zt(t);return n.children.forEach(a=>{yc(a,r[a.value.outlet],o,e.concat([a.value]),i),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>Ee(s,o.getContext(a),i)),i}function yc(n,t,o,e,i={canDeactivateChecks:[],canActivateChecks:[]}){let r=n.value,a=t?t.value:null,s=o?o.getContext(n.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let d=_c(a,r,r.routeConfig.runGuardsAndResolvers);d?i.canActivateChecks.push(new Cn(e)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?_e(n,t,s?s.children:null,e,i):_e(n,t,o,e,i),d&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new Xt(s.outlet.component,a))}else a&&Ee(t,s,i),i.canActivateChecks.push(new Cn(e)),r.component?_e(n,null,s?s.children:null,e,i):_e(n,null,o,e,i);return i}function _c(n,t,o){if(typeof o=="function")return o(n,t);switch(o){case"pathParamsChange":return!Pt(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Pt(n.url,t.url)||!ct(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Pi(n,t)||!ct(n.queryParams,t.queryParams);case"paramsChange":default:return!Pi(n,t)}}function Ee(n,t,o){let e=Zt(n),i=n.value;Object.entries(e).forEach(([r,a])=>{i.component?t?Ee(a,t.children.getContext(r),o):Ee(a,null,o):Ee(a,t,o)}),i.component?t&&t.outlet&&t.outlet.isActivated?o.canDeactivateChecks.push(new Xt(t.outlet.component,i)):o.canDeactivateChecks.push(new Xt(null,i)):o.canDeactivateChecks.push(new Xt(null,i))}function Fe(n){return typeof n=="function"}function wc(n){return typeof n=="boolean"}function xc(n){return n&&Fe(n.canLoad)}function Ic(n){return n&&Fe(n.canActivate)}function Ec(n){return n&&Fe(n.canActivateChild)}function Cc(n){return n&&Fe(n.canDeactivate)}function Tc(n){return n&&Fe(n.canMatch)}function Vr(n){return n instanceof go||n?.name==="EmptyError"}var pn=Symbol("INITIAL_VALUE");function ee(){return Y(n=>ae(n.map(t=>t.pipe(nt(1),We(pn)))).pipe(v(t=>{for(let o of t)if(o!==!0){if(o===pn)return pn;if(o===!1||o instanceof wt)return o}return!0}),lt(t=>t!==pn),nt(1)))}function Rc(n,t){return Z(o=>{let{targetSnapshot:e,currentSnapshot:i,guards:{canActivateChecks:r,canDeactivateChecks:a}}=o;return a.length===0&&r.length===0?b(L(u({},o),{guardsResult:!0})):Ac(a,e,i,n).pipe(Z(s=>s&&wc(s)?Dc(e,r,n,t):b(s)),v(s=>L(u({},o),{guardsResult:s})))})}function Ac(n,t,o,e){return V(n).pipe(Z(i=>Nc(i.component,i.route,o,t,e)),gt(i=>i!==!0,!0))}function Dc(n,t,o,e){return V(t).pipe(Tt(i=>$e(Mc(i.route.parent,e),Sc(i.route,e),Oc(n,i.path,o),kc(n,i.route,o))),gt(i=>i!==!0,!0))}function Sc(n,t){return n!==null&&t&&t(new Mi(n)),b(!0)}function Mc(n,t){return n!==null&&t&&t(new Di(n)),b(!0)}function kc(n,t,o){let e=t.routeConfig?t.routeConfig.canActivate:null;if(!e||e.length===0)return b(!0);let i=e.map(r=>jn(()=>{let a=Ne(t)??o,s=ne(r,a),d=Ic(s)?s.canActivate(t,n):mt(a,()=>s(t,n));return It(d).pipe(gt())}));return b(i).pipe(ee())}function Oc(n,t,o){let e=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(a=>vc(a)).filter(a=>a!==null).map(a=>jn(()=>{let s=a.guards.map(d=>{let c=Ne(a.node)??o,l=ne(d,c),p=Ec(l)?l.canActivateChild(e,n):mt(c,()=>l(e,n));return It(p).pipe(gt())});return b(s).pipe(ee())}));return b(r).pipe(ee())}function Nc(n,t,o,e,i){let r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!r||r.length===0)return b(!0);let a=r.map(s=>{let d=Ne(t)??i,c=ne(s,d),l=Cc(c)?c.canDeactivate(n,t,o,e):mt(d,()=>c(n,t,o,e));return It(l).pipe(gt())});return b(a).pipe(ee())}function Fc(n,t,o,e){let i=t.canLoad;if(i===void 0||i.length===0)return b(!0);let r=i.map(a=>{let s=ne(a,n),d=xc(s)?s.canLoad(t,o):mt(n,()=>s(t,o));return It(d)});return b(r).pipe(ee(),Wr(e))}function Wr(n){return fo(A(t=>{if(Qt(t))throw zr(n,t)}),v(t=>t===!0))}function Pc(n,t,o,e){let i=t.canMatch;if(!i||i.length===0)return b(!0);let r=i.map(a=>{let s=ne(a,n),d=Tc(s)?s.canMatch(t,o):mt(n,()=>s(t,o));return It(d)});return b(r).pipe(ee(),Wr(e))}var ke=class{constructor(t){this.segmentGroup=t||null}},Tn=class extends Error{constructor(t){super(),this.urlTree=t}};function Kt(n){return Ct(new ke(n))}function jc(n){return Ct(new T(4e3,!1))}function Lc(n){return Ct($r(!1,q.GuardRejected))}var Ui=class{constructor(t,o){this.urlSerializer=t,this.urlTree=o}lineralizeSegments(t,o){let e=[],i=o.root;for(;;){if(e=e.concat(i.segments),i.numberOfChildren===0)return b(e);if(i.numberOfChildren>1||!i.children[y])return jc(t.redirectTo);i=i.children[y]}}applyRedirectCommands(t,o,e){let i=this.applyRedirectCreateUrlTree(o,this.urlSerializer.parse(o),t,e);if(o.startsWith("/"))throw new Tn(i);return i}applyRedirectCreateUrlTree(t,o,e,i){let r=this.createSegmentGroup(t,o.root,e,i);return new wt(r,this.createQueryParams(o.queryParams,this.urlTree.queryParams),o.fragment)}createQueryParams(t,o){let e={};return Object.entries(t).forEach(([i,r])=>{if(typeof r=="string"&&r.startsWith(":")){let s=r.substring(1);e[i]=o[s]}else e[i]=r}),e}createSegmentGroup(t,o,e,i){let r=this.createSegments(t,o.segments,e,i),a={};return Object.entries(o.children).forEach(([s,d])=>{a[s]=this.createSegmentGroup(t,d,e,i)}),new I(r,a)}createSegments(t,o,e,i){return o.map(r=>r.path.startsWith(":")?this.findPosParam(t,r,i):this.findOrReturn(r,e))}findPosParam(t,o,e){let i=e[o.path.substring(1)];if(!i)throw new T(4001,!1);return i}findOrReturn(t,o){let e=0;for(let i of o){if(i.path===t.path)return o.splice(e),i;e++}return t}},zi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Uc(n,t,o,e,i){let r=Yi(n,t,o);return r.matched?(e=pc(t,e),Pc(e,t,o,i).pipe(v(a=>a===!0?r:u({},zi)))):b(r)}function Yi(n,t,o){if(t.path==="**")return zc(o);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||o.length>0)?u({},zi):{matched:!0,consumedSegments:[],remainingSegments:o,parameters:{},positionalParamSegments:{}};let i=(t.matcher||Ps)(o,n,t);if(!i)return u({},zi);let r={};Object.entries(i.posParams??{}).forEach(([s,d])=>{r[s]=d.path});let a=i.consumed.length>0?u(u({},r),i.consumed[i.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:i.consumed,remainingSegments:o.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function zc(n){return{matched:!0,parameters:n.length>0?Ir(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function wr(n,t,o,e){return o.length>0&&Vc(n,o,e)?{segmentGroup:new I(t,Bc(e,new I(o,n.children))),slicedSegments:[]}:o.length===0&&Wc(n,o,e)?{segmentGroup:new I(n.segments,$c(n,o,e,n.children)),slicedSegments:o}:{segmentGroup:new I(n.segments,n.children),slicedSegments:o}}function $c(n,t,o,e){let i={};for(let r of o)if(An(n,t,r)&&!e[dt(r)]){let a=new I([],{});i[dt(r)]=a}return u(u({},e),i)}function Bc(n,t){let o={};o[y]=t;for(let e of n)if(e.path===""&&dt(e)!==y){let i=new I([],{});o[dt(e)]=i}return o}function Vc(n,t,o){return o.some(e=>An(n,t,e)&&dt(e)!==y)}function Wc(n,t,o){return o.some(e=>An(n,t,e))}function An(n,t,o){return(n.hasChildren()||t.length>0)&&o.pathMatch==="full"?!1:o.path===""}function Hc(n,t,o,e){return dt(n)!==e&&(e===y||!An(t,o,n))?!1:Yi(t,n,o).matched}function qc(n,t,o){return t.length===0&&!n.children[o]}var $i=class{};function Gc(n,t,o,e,i,r,a="emptyOnly"){return new Bi(n,t,o,e,i,a,r).recognize()}var Kc=31,Bi=class{constructor(t,o,e,i,r,a,s){this.injector=t,this.configLoader=o,this.rootComponentType=e,this.config=i,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new Ui(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new T(4002,`'${t.segmentGroup}'`)}recognize(){let t=wr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(v(o=>{let e=new Se([],Object.freeze({}),Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,{},y,this.rootComponentType,null,{}),i=new H(e,o),r=new En("",i),a=ec(e,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,y).pipe(bt(e=>{if(e instanceof Tn)return this.urlTree=e.urlTree,this.match(e.urlTree.root);throw e instanceof ke?this.noMatchError(e):e}))}inheritParamsAndData(t,o){let e=t.value,i=Hi(e,o,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r,e))}processSegmentGroup(t,o,e,i){return e.segments.length===0&&e.hasChildren()?this.processChildren(t,o,e):this.processSegment(t,o,e,e.segments,i,!0).pipe(v(r=>r instanceof H?[r]:[]))}processChildren(t,o,e){let i=[];for(let r of Object.keys(e.children))r==="primary"?i.unshift(r):i.push(r);return V(i).pipe(Tt(r=>{let a=e.children[r],s=fc(o,r);return this.processSegmentGroup(t,s,a,r)}),wo((r,a)=>(r.push(...a),r)),Un(null),_o(),Z(r=>{if(r===null)return Kt(e);let a=Hr(r);return Zc(a),b(a)}))}processSegment(t,o,e,i,r,a){return V(o).pipe(Tt(s=>this.processSegmentAgainstRoute(s._injector??t,o,s,e,i,r,a).pipe(bt(d=>{if(d instanceof ke)return b(null);throw d}))),gt(s=>!!s),bt(s=>{if(Vr(s))return qc(e,i,r)?b(new $i):Kt(e);throw s}))}processSegmentAgainstRoute(t,o,e,i,r,a,s){return Hc(e,i,r,a)?e.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,e,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(t,i,o,e,r,a):Kt(i):Kt(i)}expandSegmentAgainstRouteUsingRedirect(t,o,e,i,r,a){let{matched:s,consumedSegments:d,positionalParamSegments:c,remainingSegments:l}=Yi(o,i,r);if(!s)return Kt(o);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Kc&&(this.allowRedirects=!1));let p=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,p).pipe(Z(f=>this.processSegment(t,e,o,f.concat(l),a,!1)))}matchSegmentAgainstRoute(t,o,e,i,r){let a=Uc(o,e,i,t,this.urlSerializer);return e.path==="**"&&(o.children={}),a.pipe(Y(s=>s.matched?(t=e._injector??t,this.getChildConfig(t,e,i).pipe(Y(({routes:d})=>{let c=e._loadedInjector??t,{consumedSegments:l,remainingSegments:p,parameters:f}=s,_=new Se(l,f,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Xc(e),dt(e),e.component??e._loadedComponent??null,e,Jc(e)),{segmentGroup:G,slicedSegments:j}=wr(o,l,p,d);if(j.length===0&&G.hasChildren())return this.processChildren(c,d,G).pipe(v(x=>x===null?null:new H(_,x)));if(d.length===0&&j.length===0)return b(new H(_,[]));let E=dt(e)===r;return this.processSegment(c,d,G,j,E?y:r,!0).pipe(v(x=>new H(_,x instanceof H?[x]:[])))}))):Kt(o)))}getChildConfig(t,o,e){return o.children?b({routes:o.children,injector:t}):o.loadChildren?o._loadedRoutes!==void 0?b({routes:o._loadedRoutes,injector:o._loadedInjector}):Fc(t,o,e,this.urlSerializer).pipe(Z(i=>i?this.configLoader.loadChildren(t,o).pipe(A(r=>{o._loadedRoutes=r.routes,o._loadedInjector=r.injector})):Lc(o))):b({routes:[],injector:t})}};function Zc(n){n.sort((t,o)=>t.value.outlet===y?-1:o.value.outlet===y?1:t.value.outlet.localeCompare(o.value.outlet))}function Yc(n){let t=n.value.routeConfig;return t&&t.path===""}function Hr(n){let t=[],o=new Set;for(let e of n){if(!Yc(e)){t.push(e);continue}let i=t.find(r=>e.value.routeConfig===r.value.routeConfig);i!==void 0?(i.children.push(...e.children),o.add(i)):t.push(e)}for(let e of o){let i=Hr(e.children);t.push(new H(e.value,i))}return t.filter(e=>!o.has(e))}function Xc(n){return n.data||{}}function Jc(n){return n.resolve||{}}function Qc(n,t,o,e,i,r){return Z(a=>Gc(n,t,o,e,a.extractedUrl,i,r).pipe(v(({state:s,tree:d})=>L(u({},a),{targetSnapshot:s,urlAfterRedirects:d}))))}function td(n,t){return Z(o=>{let{targetSnapshot:e,guards:{canActivateChecks:i}}=o;if(!i.length)return b(o);let r=new Set(i.map(d=>d.route)),a=new Set;for(let d of r)if(!a.has(d))for(let c of qr(d))a.add(c);let s=0;return V(a).pipe(Tt(d=>r.has(d)?ed(d,e,n,t):(d.data=Hi(d,d.parent,n).resolve,b(void 0))),A(()=>s++),zn(1),Z(d=>s===a.size?b(o):ft))})}function qr(n){let t=n.children.map(o=>qr(o)).flat();return[n,...t]}function ed(n,t,o,e){let i=n.routeConfig,r=n._resolve;return i?.title!==void 0&&!Lr(i)&&(r[Oe]=i.title),nd(r,n,t,e).pipe(v(a=>(n._resolvedData=a,n.data=Hi(n,n.parent,o).resolve,null)))}function nd(n,t,o,e){let i=vi(n);if(i.length===0)return b({});let r={};return V(i).pipe(Z(a=>id(n[a],t,o,e).pipe(gt(),A(s=>{r[a]=s}))),zn(1),vo(r),bt(a=>Vr(a)?ft:Ct(a)))}function id(n,t,o,e){let i=Ne(t)??e,r=ne(n,i),a=r.resolve?r.resolve(t,o):mt(i,()=>r(t,o));return It(a)}function bi(n){return Y(t=>{let o=n(t);return o?V(o).pipe(v(()=>t)):b(t)})}var Gr=(()=>{let t=class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(a=>a.outlet===y);return i}getResolvedTitleForRoute(e){return e.data[Oe]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:()=>h(od),providedIn:"root"});let n=t;return n})(),od=(()=>{let t=class t extends Gr{constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}};t.\u0275fac=function(i){return new(i||t)(m(fr))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Xi=new w("",{providedIn:"root",factory:()=>({})}),Ji=new w(""),rd=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=h(Yn)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return b(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=It(e.loadComponent()).pipe(v(Kr),A(a=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=a}),ut(()=>{this.componentLoaders.delete(e)})),r=new Pn(i,()=>new K).pipe(Fn());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return b({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let a=ad(i,this.compiler,e,this.onLoadEndListener).pipe(ut(()=>{this.childrenLoaders.delete(i)})),s=new Pn(a,()=>new K).pipe(Fn());return this.childrenLoaders.set(i,s),s}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function ad(n,t,o,e){return It(n.loadChildren()).pipe(v(Kr),Z(i=>i instanceof Lo||Array.isArray(i)?b(i):V(t.compileModuleAsync(i))),v(i=>{e&&e(n);let r,a,s=!1;return Array.isArray(i)?(a=i,s=!0):(r=i.create(o).injector,a=r.get(Ji,[],{optional:!0,self:!0}).flat()),{routes:a.map(Zi),injector:r}}))}function sd(n){return n&&typeof n=="object"&&"default"in n}function Kr(n){return sd(n)?n.default:n}var Qi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:()=>h(cd),providedIn:"root"});let n=t;return n})(),cd=(()=>{let t=class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),dd=new w("");var ld=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new K,this.transitionAbortSubject=new K,this.configLoader=h(rd),this.environmentInjector=h(Vt),this.urlSerializer=h(Wi),this.rootContexts=h(Rn),this.location=h(Qe),this.inputBindingEnabled=h(Ki,{optional:!0})!==null,this.titleStrategy=h(Gr),this.options=h(Xi,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=h(Qi),this.createViewTransition=h(dd,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>b(void 0),this.rootComponentType=null;let e=r=>this.events.next(new Ri(r)),i=r=>this.events.next(new Ai(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(L(u(u({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new $({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ie,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(lt(a=>a.id!==0),v(a=>L(u({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),Y(a=>{let s=!1,d=!1;return b(a).pipe(Y(c=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",q.SupersededByNewNavigation),ft;this.currentTransition=a,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?L(u({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=c.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&p!=="reload"){let f="";return this.events.next(new Lt(c.id,this.urlSerializer.serialize(c.rawUrl),f,xi.IgnoredSameUrlNavigation)),c.resolve(null),ft}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return b(c).pipe(Y(f=>{let _=this.transitions?.getValue();return this.events.next(new Te(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),_!==this.transitions?.getValue()?ft:Promise.resolve(f)}),Qc(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),A(f=>{a.targetSnapshot=f.targetSnapshot,a.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=L(u({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let _=new wn(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(_)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:_,source:G,restoredState:j,extras:E}=c,x=new Te(f,this.urlSerializer.serialize(_),G,j);this.events.next(x);let et=Pr(this.rootComponentType).snapshot;return this.currentTransition=a=L(u({},c),{targetSnapshot:et,urlAfterRedirects:_,extras:L(u({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=_,b(a)}else{let f="";return this.events.next(new Lt(c.id,this.urlSerializer.serialize(c.extractedUrl),f,xi.IgnoredByUrlHandlingStrategy)),c.resolve(null),ft}}),A(c=>{let l=new Ii(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),v(c=>(this.currentTransition=a=L(u({},c),{guards:gc(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),a)),Rc(this.environmentInjector,c=>this.events.next(c)),A(c=>{if(a.guardsResult=c.guardsResult,Qt(c.guardsResult))throw zr(this.urlSerializer,c.guardsResult);let l=new Ei(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),lt(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",q.GuardRejected),!1)),bi(c=>{if(c.guards.canActivateChecks.length)return b(c).pipe(A(l=>{let p=new Ci(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}),Y(l=>{let p=!1;return b(l).pipe(td(this.paramsInheritanceStrategy,this.environmentInjector),A({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(l,"",q.NoDataFromResolver)}}))}),A(l=>{let p=new Ti(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}))}),bi(c=>{let l=p=>{let f=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(p.routeConfig).pipe(A(_=>{p.component=_}),v(()=>{})));for(let _ of p.children)f.push(...l(_));return f};return ae(l(c.targetSnapshot.root)).pipe(Un(null),nt(1))}),bi(()=>this.afterPreactivation()),Y(()=>{let{currentSnapshot:c,targetSnapshot:l}=a,p=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return p?V(p).pipe(v(()=>a)):b(a)}),v(c=>{let l=dc(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=a=L(u({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,a}),A(()=>{this.events.next(new Ae)}),bc(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),nt(1),A({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new jt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Bt(this.transitionAbortSubject.pipe(A(c=>{throw c}))),ut(()=>{!s&&!d&&this.cancelNavigationTransition(a,"",q.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),bt(c=>{if(d=!0,Br(c))this.events.next(new xt(a.id,this.urlSerializer.serialize(a.extractedUrl),c.message,c.cancellationCode)),mc(c)?this.events.next(new De(c.url)):a.resolve(!1);else{this.events.next(new Re(a.id,this.urlSerializer.serialize(a.extractedUrl),c,a.targetSnapshot??void 0));try{a.resolve(e.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(l)}}return ft}))}))}cancelNavigationTransition(e,i,r){let a=new xt(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(a),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function ud(n){return n!==Ie}var md=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:()=>h(hd),providedIn:"root"});let n=t;return n})(),Vi=class{shouldDetach(t){return!1}store(t,o){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,o){return t.routeConfig===o.routeConfig}},hd=(()=>{let t=class t extends Vi{};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=Vn(t)))(r||t)}})(),t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Zr=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:()=>h(pd),providedIn:"root"});let n=t;return n})(),pd=(()=>{let t=class t extends Zr{constructor(){super(...arguments),this.location=h(Qe),this.urlSerializer=h(Wi),this.options=h(Xi,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=h(Qi),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new wt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Pr(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Te)this.stateMemento=this.createStateMemento();else if(e instanceof Lt)this.rawUrlTree=i.initialUrl;else if(e instanceof wn){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(r,i)}}else e instanceof Ae?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof xt&&(e.code===q.GuardRejected||e.code===q.NoDataFromResolver)?this.restoreHistory(i):e instanceof Re?this.restoreHistory(i,!0):e instanceof jt&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let a=this.browserPageId,s=u(u({},i.extras.state),this.generateNgRouterState(i.id,a));this.location.replaceState(r,"",s)}else{let a=u(u({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",a)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,a=this.currentPageId-r;a!==0?this.location.historyGo(a):this.currentUrlTree===e.finalUrl&&a===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=Vn(t)))(r||t)}})(),t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),we=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(we||{});function fd(n,t){n.events.pipe(lt(o=>o instanceof jt||o instanceof xt||o instanceof Re||o instanceof Lt),v(o=>o instanceof jt||o instanceof Lt?we.COMPLETE:(o instanceof xt?o.code===q.Redirect||o.code===q.SupersededByNewNavigation:!1)?we.REDIRECTING:we.FAILED),lt(o=>o!==we.REDIRECTING),nt(1)).subscribe(()=>{t()})}function bd(n){throw n}var gd={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vd={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Yr=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=h(Ye),this.stateManager=h(Zr),this.options=h(Xi,{optional:!0})||{},this.pendingTasks=h(ue),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=h(ld),this.urlSerializer=h(Wi),this.location=h(Qe),this.urlHandlingStrategy=h(Qi),this._events=new K,this.errorHandler=this.options.errorHandler||bd,this.navigated=!1,this.routeReuseStrategy=h(md),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=h(Ji,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!h(Ki,{optional:!0}),this.eventsSubscription=new re,this.isNgZoneEnabled=h(D)instanceof D&&D.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(r!==null&&a!==null){if(this.stateManager.handleRouterEvent(i,a),i instanceof xt&&i.code!==q.Redirect&&i.code!==q.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof jt)this.navigated=!0;else if(i instanceof De){let s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),d={info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||ud(r.source)};this.scheduleNavigation(s,Ie,null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}_d(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ie,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let a={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let c=u({},r);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(a.state=c)}let d=this.parseUrl(e);this.scheduleNavigation(d,i,s,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Zi),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:a,fragment:s,queryParamsHandling:d,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:s,p=null;switch(d){case"merge":p=u(u({},this.currentUrlTree.queryParams),a);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=a||null}p!==null&&(p=this.removeEmptyProps(p));let f;try{let _=r?r.snapshot:this.routerState.snapshot.root;f=kr(_)}catch{(typeof e[0]!="string"||!e[0].startsWith("/"))&&(e=[]),f=this.currentUrlTree.root}return Or(f,e,p,l??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=Qt(e)?e:this.parseUrl(e),a=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(a,Ie,null,i)}navigate(e,i={skipLocationChange:!1}){return yd(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=u({},gd):i===!1?r=u({},vd):r=i,Qt(e))return gr(this.currentUrlTree,e,r);let a=this.parseUrl(e);return gr(this.currentUrlTree,a,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,a])=>(a!=null&&(i[r]=a),i),{})}scheduleNavigation(e,i,r,a,s){if(this.disposed)return Promise.resolve(!1);let d,c,l;s?(d=s.resolve,c=s.reject,l=s.promise):l=new Promise((f,_)=>{d=f,c=_});let p=this.pendingTasks.add();return fd(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:a,resolve:d,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function yd(n){for(let t=0;to.\u0275providers)])}function xd(n){return n.routerState.root}function Id(){let n=h(Co);return t=>{let o=n.get(Xe);if(t!==o.components[0])return;let e=n.get(Yr),i=n.get(Ed);n.get(Cd)===1&&e.initialNavigation(),n.get(Td,null,$n.Optional)?.setUpPreloading(),n.get(wd,null,$n.Optional)?.init(),e.resetRootComponentType(o.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Ed=new w("",{factory:()=>new K}),Cd=new w("",{providedIn:"root",factory:()=>1});var Td=new w("");var Jr="https://api.chucknorris.io/jokes/random";var Qr=(()=>{let t=class t{constructor(e){this.httpClient=e}getJoke(){return this.httpClient.get(Jr).pipe(A(e=>console.log(e)),v(e=>e.value))}};t.\u0275fac=function(i){return new(i||t)(m(fe))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ta=(()=>{let t=class t{constructor(e){this.chuckNorrisJokeGeneratorService=e}getJokes(){return Be(Array(10).fill(this.chuckNorrisJokeGeneratorService.getJoke()))}};t.\u0275fac=function(i){return new(i||t)(m(Qr))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Dd(n,t){if(n&1&&(X(0,"li"),at(1),J()),n&2){let o=t.$implicit;qe(),zo(o)}}var ea=(()=>{let t=class t{constructor(e){this.jokeStoreService=e,this.jokes=[],this.jokeStoreService.getJokes().subscribe(i=>this.jokes=i)}};t.\u0275fac=function(i){return new(i||t)(R(ta))},t.\u0275cmp=O({type:t,selectors:[["cnjg-jokes"]],standalone:!0,features:[N],decls:4,vars:1,consts:[[4,"ngFor","ngForOf"]],template:function(i,r){i&1&&(X(0,"h2"),at(1,"Jokes"),J(),X(2,"ul"),qn(3,Dd,2,1,"li",0),J()),i&2&&(qe(3),Gn("ngForOf",r.jokes))},dependencies:[Jn,Ho],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%] ul[_ngcontent-%COMP%]{width:80%;display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;margin-bottom:20px}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2n){color:orange}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(odd){color:#add8e6}"]});let n=t;return n})();var eo;try{eo=typeof Intl<"u"&&Intl.v8BreakIterator}catch{eo=!1}var U=(()=>{let t=class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Go(this._platformId):typeof document=="object"&&!!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||eo)&&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}};t.\u0275fac=function(i){return new(i||t)(m(ht))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Pe;function Sd(){if(Pe==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Pe=!0}))}finally{Pe=Pe||!1}return Pe}function ie(n){return Sd()?n:!!n.capture}var to;function Md(){if(to==null){let n=typeof document<"u"?document.head:null;to=!!(n&&(n.createShadowRoot||n.attachShadow))}return to}function na(n){if(Md()){let t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Et(n){return n.composedPath?n.composedPath()[0]:n.target}function ia(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function no(n){return Array.isArray(n)?n:[n]}function Ut(n){return n instanceof B?n.nativeElement:n}var oa=new Set,zt,kd=(()=>{let t=class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Nd}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&Od(e,this._nonce),this._matchMedia(e)}};t.\u0275fac=function(i){return new(i||t)(m(U),m(ce,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Od(n,t){if(!oa.has(n))try{zt||(zt=document.createElement("style"),t&&zt.setAttribute("nonce",t),zt.setAttribute("type","text/css"),document.head.appendChild(zt)),zt.sheet&&(zt.sheet.insertRule(`@media ${n} {body{ }}`,0),oa.add(n))}catch(o){console.error(o)}}function Nd(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var aa=(()=>{let t=class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new K}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return ra(no(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=ra(no(e)).map(s=>this._registerQuery(s).observable),a=ae(r);return a=$e(a.pipe(nt(1)),a.pipe(Ve(1),Ln(0))),a.pipe(v(s=>{let d={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:l})=>{d.matches=d.matches||c,d.breakpoints[l]=c}),d}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),a={observable:new ze(s=>{let d=c=>this._zone.run(()=>s.next(c));return i.addListener(d),()=>{i.removeListener(d)}}).pipe(We(i),v(({matches:s})=>({query:e,matches:s})),Bt(this._destroySubject)),mql:i};return this._queries.set(e,a),a}};t.\u0275fac=function(i){return new(i||t)(m(kd),m(D))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function ra(n){return n.map(t=>t.split(",")).reduce((t,o)=>t.concat(o)).map(t=>t.trim())}function oo(n){return n.buttons===0||n.detail===0}function ro(n){let t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var Fd=new w("cdk-input-modality-detector-options"),Pd={ignoreKeys:[18,17,224,91,16]},da=650,oe=ie({passive:!0,capture:!0}),jd=(()=>{let t=class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,a){this._platform=e,this._mostRecentTarget=null,this._modality=new $(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(d=>d===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Et(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs{if(ro(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Et(s)},this._options=u(u({},Pd),a),this.modalityDetected=this._modality.pipe(Ve(1)),this.modalityChanged=this.modalityDetected.pipe(yo()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,oe),r.addEventListener("mousedown",this._onMousedown,oe),r.addEventListener("touchstart",this._onTouchstart,oe)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,oe),document.removeEventListener("mousedown",this._onMousedown,oe),document.removeEventListener("touchstart",this._onTouchstart,oe))}};t.\u0275fac=function(i){return new(i||t)(m(U),m(D),m(C),m(Fd,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Sn=function(n){return n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL",n}(Sn||{}),Ld=new w("cdk-focus-monitor-default-options"),Dn=ie({passive:!0,capture:!0}),la=(()=>{let t=class t{constructor(e,i,r,a,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,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 K,this._rootNodeFocusAndBlurListener=d=>{let c=Et(d);for(let l=c;l;l=l.parentElement)d.type==="focus"?this._onFocus(d,l):this._onBlur(d,l)},this._document=a,this._detectionMode=s?.detectionMode||Sn.IMMEDIATE}monitor(e,i=!1){let r=Ut(e);if(!this._platform.isBrowser||r.nodeType!==1)return b();let a=na(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;let d={checkChildren:i,subject:new K,rootNode:a};return this._elementInfo.set(r,d),this._registerGlobalListeners(d),d.subject}stopMonitoring(e){let i=Ut(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let a=Ut(e),s=this._getDocument().activeElement;a===s?this._getClosestElementsInfo(a).forEach(([d,c])=>this._originChanged(d,i,c)):(this._setOrigin(i),typeof a.focus=="function"&&a.focus(r))}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 this._detectionMode===Sn.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===Sn.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?da:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),a=Et(e);!r||!r.checkChildren&&i!==a||this._originChanged(i,this._getFocusOrigin(a),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Dn),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Dn)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Bt(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Dn),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Dn),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,a)=>{(a===e||r.checkChildren&&a.contains(e))&&i.push([a,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let a=e.labels;if(a){for(let s=0;s{let t=class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=h(aa).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return $t.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,a=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return $t.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return $t.BLACK_ON_WHITE}return $t.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(io,sa,ca),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===$t.BLACK_ON_WHITE?e.add(io,sa):i===$t.WHITE_ON_BLACK&&e.add(io,ca)}}};t.\u0275fac=function(i){return new(i||t)(m(U),m(C))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ao=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=S({});let n=t;return n})();function $d(){return!0}var Bd=new w("mat-sanity-checks",{providedIn:"root",factory:$d}),ot=(()=>{let t=class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return ia()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}};t.\u0275fac=function(i){return new(i||t)(m(ua),m(Bd,8),m(C))},t.\u0275mod=M({type:t}),t.\u0275inj=S({imports:[ao,ao]});let n=t;return n})();var tt=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(tt||{}),lo=class{constructor(t,o,e,i=!1){this._renderer=t,this.element=o,this.config=e,this._animationForciblyDisabledThroughCss=i,this.state=tt.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},ma=ie({passive:!0,capture:!0}),uo=class{constructor(){this._events=new Map,this._delegateEventHandler=t=>{let o=Et(t);o&&this._events.get(t.type)?.forEach((e,i)=>{(i===o||i.contains(o))&&e.forEach(r=>r.handleEvent(t))})}}addHandler(t,o,e,i){let r=this._events.get(o);if(r){let a=r.get(e);a?a.add(i):r.set(e,new Set([i]))}else this._events.set(o,new Map([[e,new Set([i])]])),t.runOutsideAngular(()=>{document.addEventListener(o,this._delegateEventHandler,ma)})}removeHandler(t,o,e){let i=this._events.get(t);if(!i)return;let r=i.get(o);r&&(r.delete(e),r.size===0&&i.delete(o),i.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,ma)))}},ha={enterDuration:225,exitDuration:150},Vd=800,pa=ie({passive:!0,capture:!0}),fa=["mousedown","touchstart"],ba=["mouseup","mouseleave","touchend","touchcancel"],Le=class Le{constructor(t,o,e,i){this._target=t,this._ngZone=o,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Ut(e))}fadeInRipple(t,o,e={}){let i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=u(u({},ha),e.animation);e.centered&&(t=i.left+i.width/2,o=i.top+i.height/2);let a=e.radius||Wd(t,o,i),s=t-i.left,d=o-i.top,c=r.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=`${s-a}px`,l.style.top=`${d-a}px`,l.style.height=`${a*2}px`,l.style.width=`${a*2}px`,e.color!=null&&(l.style.backgroundColor=e.color),l.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(l);let p=window.getComputedStyle(l),f=p.transitionProperty,_=p.transitionDuration,G=f==="none"||_==="0s"||_==="0s, 0s"||i.width===0&&i.height===0,j=new lo(this,l,e,G);l.style.transform="scale3d(1, 1, 1)",j.state=tt.FADING_IN,e.persistent||(this._mostRecentTransientRipple=j);let E=null;return!G&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let x=()=>this._finishRippleTransition(j),et=()=>this._destroyRipple(j);l.addEventListener("transitionend",x),l.addEventListener("transitioncancel",et),E={onTransitionEnd:x,onTransitionCancel:et}}),this._activeRipples.set(j,E),(G||!c)&&this._finishRippleTransition(j),j}fadeOutRipple(t){if(t.state===tt.FADING_OUT||t.state===tt.HIDDEN)return;let o=t.element,e=u(u({},ha),t.config.animation);o.style.transitionDuration=`${e.exitDuration}ms`,o.style.opacity="0",t.state=tt.FADING_OUT,(t._animationForciblyDisabledThroughCss||!e.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){let o=Ut(t);!this._platform.isBrowser||!o||o===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=o,fa.forEach(e=>{Le._eventManager.addHandler(this._ngZone,e,o,this)}))}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{ba.forEach(o=>{this._triggerElement.addEventListener(o,this,pa)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){t.state===tt.FADING_IN?this._startFadeOutTransition(t):t.state===tt.FADING_OUT&&this._destroyRipple(t)}_startFadeOutTransition(t){let o=t===this._mostRecentTransientRipple,{persistent:e}=t.config;t.state=tt.VISIBLE,!e&&(!o||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){let o=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=tt.HIDDEN,o!==null&&(t.element.removeEventListener("transitionend",o.onTransitionEnd),t.element.removeEventListener("transitioncancel",o.onTransitionCancel)),t.element.remove()}_onMousedown(t){let o=oo(t),e=this._lastTouchStartEvent&&Date.now(){let o=t.state===tt.VISIBLE||t.config.terminateOnPointerUp&&t.state===tt.FADING_IN;!t.config.persistent&&o&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(fa.forEach(o=>Le._eventManager.removeHandler(o,t,this)),this._pointerUpEventsRegistered&&ba.forEach(o=>t.removeEventListener(o,this,pa)))}};Le._eventManager=new uo;var mo=Le;function Wd(n,t,o){let e=Math.max(Math.abs(n-o.left),Math.abs(n-o.right)),i=Math.max(Math.abs(t-o.top),Math.abs(t-o.bottom));return Math.sqrt(e*e+i*i)}var _a=new w("mat-ripple-global-options"),Hd=(()=>{let t=class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,a,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new mo(this,i,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:u(u(u({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,u(u({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,u(u({},this.rippleConfig),e))}};t.\u0275fac=function(i){return new(i||t)(R(B),R(D),R(U),R(_a,8),R(St,8))},t.\u0275dir=rt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&vt("mat-ripple-unbounded",r.unbounded)},inputs:{color:[k.None,"matRippleColor","color"],unbounded:[k.None,"matRippleUnbounded","unbounded"],centered:[k.None,"matRippleCentered","centered"],radius:[k.None,"matRippleRadius","radius"],animation:[k.None,"matRippleAnimation","animation"],disabled:[k.None,"matRippleDisabled","disabled"],trigger:[k.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let n=t;return n})(),wa=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=S({imports:[ot,ot]});let n=t;return n})();var ga={capture:!0},va=["focus","click","mouseenter","touchstart"],so="mat-ripple-loader-uninitialized",co="mat-ripple-loader-class-name",ya="mat-ripple-loader-centered",Mn="mat-ripple-loader-disabled",xa=(()=>{let t=class t{constructor(){this._document=h(C,{optional:!0}),this._animationMode=h(St,{optional:!0}),this._globalRippleOptions=h(_a,{optional:!0}),this._platform=h(U),this._ngZone=h(D),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;let r=e.target.closest(`[${so}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(let e of va)this._document?.addEventListener(e,this._onInteraction,ga)})}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);for(let i of va)this._document?.removeEventListener(i,this._onInteraction,ga)}configureRipple(e,i){e.setAttribute(so,""),(i.className||!e.hasAttribute(co))&&e.setAttribute(co,i.className||""),i.centered&&e.setAttribute(ya,""),i.disabled&&e.setAttribute(Mn,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){let r=this._hosts.get(e);if(r){r.disabled=i;return}i?e.setAttribute(Mn,""):e.removeAttribute(Mn)}_createRipple(e){if(!this._document)return;let i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(co)),e.append(r);let a=new Hd(new B(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return a._isInitialized=!0,a.trigger=e,a.centered=e.hasAttribute(ya),a.disabled=e.hasAttribute(Mn),this.attachRipple(e,a),a}attachRipple(e,i){e.removeAttribute(so),this._hosts.set(e,i)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var qd=["*"],kn;function Gd(){if(kn===void 0&&(kn=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(kn=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return kn}function Ue(n){return Gd()?.createHTML(n)||n}function Ia(n){return Error(`Unable to find icon with the name "${n}"`)}function Kd(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function Ea(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Ca(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var pt=class{constructor(t,o,e){this.url=t,this.svgText=o,this.options=e}},Zd=(()=>{let t=class t{constructor(e,i,r,a){this._httpClient=e,this._sanitizer=i,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,a){return this._addSvgIconConfig(e,i,new pt(r,null,a))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,a){let s=this._sanitizer.sanitize(W.HTML,r);if(!s)throw Ca(r);let d=Ue(s);return this._addSvgIconConfig(e,i,new pt("",d,a))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new pt(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let a=this._sanitizer.sanitize(W.HTML,i);if(!a)throw Ca(i);let s=Ue(a);return this._addSvgIconSetConfig(e,new pt("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(W.RESOURCE_URL,e);if(!i)throw Ea(e);let r=this._cachedIconsByUrl.get(i);return r?b(On(r)):this._loadSvgIconFromConfig(new pt(e,null)).pipe(A(a=>this._cachedIconsByUrl.set(i,a)),v(a=>On(a)))}getNamedSvgIcon(e,i=""){let r=Ta(i,e),a=this._svgIconConfigs.get(r);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(i,e),a)return this._svgIconConfigs.set(r,a),this._getSvgFromConfig(a);let s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):Ct(Ia(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?b(On(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(v(i=>On(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return b(r);let a=i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(bt(d=>{let l=`Loading icon set URL: ${this._sanitizer.sanitize(W.RESOURCE_URL,s.url)} failed: ${d.message}`;return this._errorHandler.handleError(new Error(l)),b(null)})));return Be(a).pipe(v(()=>{let s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw Ia(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let a=i[r];if(a.svgText&&a.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(a),d=this._extractSvgIconFromSet(s,e,a.options);if(d)return d}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(A(i=>e.svgText=i),v(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?b(null):this._fetchIcon(e).pipe(A(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let a=e.querySelector(`[id="${i}"]`);if(!a)return null;let s=a.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,r);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),r);let d=this._svgElementFromString(Ue(""));return d.appendChild(s),this._setSvgAttributes(d,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(Ue("")),r=e.attributes;for(let a=0;aUe(l)),ut(()=>this._inProgressUrlFetches.delete(s)),xo());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(Ta(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}var Ra=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],tl=Ra.map(n=>`[${n}]`).join(", "),el=/^url\(['"]?#(.*?)['"]?\)$/,Aa=(()=>{let t=class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){let i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,a,s,d){this._elementRef=e,this._iconRegistry=i,this._location=a,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=re.EMPTY,d&&(d.color&&(this.color=this._defaultColor=d.color),d.fontSet&&(this.fontSet=d.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let i=this._elementsWithExternalReferences;i&&i.forEach((r,a)=>{r.forEach(s=>{a.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(tl),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let a=0;a{let d=i[a],c=d.getAttribute(s),l=c?c.match(el):null;if(l){let p=r.get(d);p||(p=[],r.set(d,p)),p.push({name:s,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(nt(1)).subscribe(a=>this._setSvgElement(a),a=>{let s=`Error retrieving icon ${i}:${r}! ${a.message}`;this._errorHandler.handleError(new Error(s))})}}};t.\u0275fac=function(i){return new(i||t)(R(B),R(Zd),Wn("aria-hidden"),R(Jd),R(At),R(Xd,8))},t.\u0275cmp=O({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(kt("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),qt(r.color?"mat-"+r.color:""),vt("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[k.HasDecoratorInputTransform,"inline","inline",st],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[Mt,N],ngContentSelectors:qd,decls:1,vars:0,template:function(i,r){i&1&&(Ot(),yt(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let n=t;return n})(),Da=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=S({imports:[ot,ot]});let n=t;return n})();var il=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var ol=["mat-icon-button",""],rl=["*"];var al=new w("MAT_BUTTON_CONFIG");var sl=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],cl=(()=>{let t=class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,i,r,a){this._elementRef=e,this._platform=i,this._ngZone=r,this._animationMode=a,this._focusMonitor=h(la),this._rippleLoader=h(xa),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=h(al,{optional:!0}),d=e.nativeElement,c=d.classList;this.disabledInteractive=s?.disabledInteractive??!1,this._rippleLoader?.configureRipple(d,{className:"mat-mdc-button-ripple"});for(let{attribute:l,mdcClasses:p}of sl)d.hasAttribute(l)&&c.add(...p)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};t.\u0275fac=function(i){le()},t.\u0275dir=rt({type:t,inputs:{color:"color",disableRipple:[k.HasDecoratorInputTransform,"disableRipple","disableRipple",st],disabled:[k.HasDecoratorInputTransform,"disabled","disabled",st],ariaDisabled:[k.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",st],disabledInteractive:[k.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",st]},features:[Mt]});let n=t;return n})();var Sa=(()=>{let t=class t extends cl{constructor(e,i,r,a){super(e,i,r,a),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};t.\u0275fac=function(i){return new(i||t)(R(B),R(U),R(D),R(St,8))},t.\u0275cmp=O({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(kt("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),qt(r.color?"mat-"+r.color:""),vt("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[jo,N],attrs:ol,ngContentSelectors:rl,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(Ot(),it(0,"span",0),yt(1),it(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',il],encapsulation:2,changeDetection:0});let n=t;return n})();var Ma=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=S({imports:[ot,wa,ot]});let n=t;return n})();var ll=["*",[["mat-toolbar-row"]]],ul=["*","mat-toolbar-row"],ml=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=rt({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let n=t;return n})(),ka=(()=>{let t=class t{constructor(e,i,r){this._elementRef=e,this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};t.\u0275fac=function(i){return new(i||t)(R(B),R(U),R(C))},t.\u0275cmp=O({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,a){if(i&1&&Kn(a,ml,5),i&2){let s;Ke(s=Ze())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(qt(r.color?"mat-"+r.color:""),vt("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[N],ngContentSelectors:ul,decls:2,vars:0,template:function(i,r){i&1&&(Ot(ll),yt(0),yt(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let n=t;return n})();var Oa=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=S({imports:[ot,ot]});let n=t;return n})();var Na=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=O({type:t,selectors:[["cnjg-home"]],standalone:!0,features:[N],decls:11,vars:0,consts:[["mat-icon-button",""],[1,"header"],[1,"spacer"]],template:function(i,r){i&1&&(X(0,"mat-toolbar")(1,"button",0)(2,"mat-icon"),at(3,"home"),J()(),X(4,"span",1),at(5,"Chuck Norris Joke Generator"),J(),it(6,"span",2),X(7,"button",0)(8,"mat-icon"),at(9,"favorite"),J()()(),it(10,"cnjg-jokes"))},dependencies:[ea,Da,Aa,Ma,Sa,Oa,ka],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.header[_ngcontent-%COMP%]{padding-left:10px}mat-toolbar[_ngcontent-%COMP%]{margin-bottom:20px}"]});let n=t;return n})();var Fa=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=O({type:t,selectors:[["cnjg-favourites"]],standalone:!0,features:[N],decls:2,vars:0,template:function(i,r){i&1&&(X(0,"p"),at(1,"favourites works!"),J())}});let n=t;return n})();var Pa=[{path:"",component:Na},{path:"favourites",component:Fa}];var pl="@",fl=(()=>{let t=class t{constructor(e,i,r,a,s){this.doc=e,this.delegate=i,this.zone=r,this.animationType=a,this.moduleImpl=s,this._rendererFactoryPromise=null,this.scheduler=h(Fo,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){return(this.moduleImpl??import("./chunk-ODWGZIIL.js")).catch(i=>{throw new T(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:r})=>{this._engine=i(this.animationType,this.doc,this.scheduler);let a=new r(this.delegate,this._engine,this.zone);return this.delegate=a,a})}createRenderer(e,i){let r=this.delegate.createRenderer(e,i);if(r.\u0275type===0)return r;typeof r.throwOnSyntheticProps=="boolean"&&(r.throwOnSyntheticProps=!1);let a=new ho(r);return i?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(s=>{let d=s.createRenderer(e,i);a.use(d)}).catch(s=>{a.use(r)}),a}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}};t.\u0275fac=function(i){le()},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})(),ho=class{constructor(t){this.delegate=t,this.replay=[],this.\u0275type=1}use(t){if(this.delegate=t,this.replay!==null){for(let o of this.replay)o(t);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(t,o){return this.delegate.createElement(t,o)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}get destroyNode(){return this.delegate.destroyNode}appendChild(t,o){this.delegate.appendChild(t,o)}insertBefore(t,o,e,i){this.delegate.insertBefore(t,o,e,i)}removeChild(t,o,e){this.delegate.removeChild(t,o,e)}selectRootElement(t,o){return this.delegate.selectRootElement(t,o)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,o,e,i){this.delegate.setAttribute(t,o,e,i)}removeAttribute(t,o,e){this.delegate.removeAttribute(t,o,e)}addClass(t,o){this.delegate.addClass(t,o)}removeClass(t,o){this.delegate.removeClass(t,o)}setStyle(t,o,e,i){this.delegate.setStyle(t,o,e,i)}removeStyle(t,o,e){this.delegate.removeStyle(t,o,e)}setProperty(t,o,e){this.shouldReplay(o)&&this.replay.push(i=>i.setProperty(t,o,e)),this.delegate.setProperty(t,o,e)}setValue(t,o){this.delegate.setValue(t,o)}listen(t,o,e){return this.shouldReplay(o)&&this.replay.push(i=>i.listen(t,o,e)),this.delegate.listen(t,o,e)}shouldReplay(t){return this.replay!==null&&t.startsWith(pl)}};function ja(n="animations"){return Hn("NgAsyncAnimations"),Rt([{provide:Ge,useFactory:(t,o,e)=>new fl(t,o,e,n),deps:[C,un,D]},{provide:St,useValue:n==="noop"?"NoopAnimations":"BrowserAnimations"}])}var La={providers:[Xr(Pa),ja(),oi()]};var Ua=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=O({type:t,selectors:[["cnjg-root"]],standalone:!0,features:[N],decls:1,vars:0,template:function(i,r){i&1&&it(0,"router-outlet")},dependencies:[Gi,or],encapsulation:2});let n=t;return n})();pr(Ua,La).catch(n=>console.error(n)); diff --git a/main-V4SB5KWO.js b/main-V4SB5KWO.js deleted file mode 100644 index 9302711..0000000 --- a/main-V4SB5KWO.js +++ /dev/null @@ -1,2 +0,0 @@ -import{$ as Cr,A as ge,Aa as ve,B as pr,Ba as ce,C as se,Ca as xr,D as X,Da as _,E as Bt,Ea as st,F as gr,Fa as kr,G as mr,Ga as Yt,H as vr,Ha as ot,I as U,Ia as Qt,J as yr,Ja as en,K as I,Ka as jr,L as T,La as tn,M as v,Ma as Ur,N as nt,Na as Lr,O as wr,Oa as O,P as E,Pa as at,Q as Vt,Qa as ct,R as w,Ra as Fr,S as f,Sa as nn,T as De,Ta as $r,U as $,Ua as lt,V as rt,Va as ut,W as Rr,X as oe,Y as br,Z as me,_ as V,a as d,aa as qt,b as A,ba as Sr,ca as Wt,d as ar,da as Oe,e as cr,ea as Tr,f as lr,fa as Gt,g as Lt,ga as Er,h as Ft,ha as ae,i as re,ia as Ir,j as k,ja as Kt,k as J,ka as Pe,l as P,la as Jt,m as g,ma as Zt,n as Ae,na as Xt,o as ur,oa as Mr,p as hr,pa as it,q as y,qa as Ht,r as $t,ra as L,s as j,sa as Ar,t as dr,ta as Dr,u as _t,ua as Or,v as fr,va as Ne,w as Z,wa as Pr,x as pe,xa as Nr,y as ie,ya as H,z as zt,za as Y}from"./chunk-V6SH2TEE.js";var ke=class{},dt=class{},le=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),s=i.toLowerCase(),o=r.slice(n+1).trim();this.maybeSetNormalizedName(i,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let s=e.value;if(!s)this.headers.delete(r),this.normalizedNames.delete(r);else{let o=this.headers.get(r);if(!o)return;o=o.filter(a=>s.indexOf(a)===-1),o.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,o)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(s=>s.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var sn=class{encodeKey(e){return _r(e)}encodeValue(e){return _r(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function ns(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let s=i.indexOf("="),[o,a]=s==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,s)),e.decodeValue(i.slice(s+1))],l=r.get(o)||[];l.push(a),r.set(o,l)}),r}var rs=/%(\d[a-f0-9])/gi,is={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function _r(t){return encodeURIComponent(t).replace(rs,(e,r)=>is[r]??e)}function ht(t){return`${t}`}var Q=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new sn,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=ns(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(ht):[ht(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(s=>{r.push({param:n,value:s,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(ht(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(ht(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var on=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function ss(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function zr(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Br(t){return typeof Blob<"u"&&t instanceof Blob}function Vr(t){return typeof FormData<"u"&&t instanceof FormData}function os(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var xe=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let s;if(ss(this.method)||i?(this.body=n!==void 0?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new le,this.context??=new on,!this.params)this.params=new Q,this.urlWithParams=r;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),l=a===-1?"?":ah.set(b,e.setHeaders[b]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,b)=>h.set(b,e.setParams[b]),u)),new t(r,n,o,{params:u,headers:c,context:p,reportProgress:l,responseType:i,withCredentials:a,transferCache:s})}},ye=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(ye||{}),je=class{constructor(e,r=gt.Ok,n="OK"){this.headers=e.headers||new le,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},an=class t extends je{constructor(e={}){super(e),this.type=ye.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ft=class t extends je{constructor(e={}){super(e),this.type=ye.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},pt=class extends je{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},gt=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(gt||{});function rn(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var cn=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,s={}){let o;if(n instanceof xe)o=n;else{let c;s.headers instanceof le?c=s.headers:c=new le(s.headers);let u;s.params&&(s.params instanceof Q?u=s.params:u=new Q({fromObject:s.params})),o=new xe(n,i,s.body!==void 0?s.body:null,{headers:c,context:s.context,params:u,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let a=g(o).pipe(ie(c=>this.handler.handle(c)));if(n instanceof xe||s.observe==="events")return a;let l=a.pipe(Z(c=>c instanceof ft));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return l.pipe(y(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(y(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(y(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return l.pipe(y(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new Q().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,s={}){return this.request("PATCH",n,rn(s,i))}post(n,i,s={}){return this.request("POST",n,rn(s,i))}put(n,i,s={}){return this.request("PUT",n,rn(s,i))}};e.\u0275fac=function(i){return new(i||e)(w(ke))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})();function Kr(t,e){return e(t)}function as(t,e){return(r,n)=>e.intercept(r,{handle:i=>t(i,n)})}function cs(t,e,r){return(n,i)=>V(r,()=>e(n,s=>t(s,i)))}var ls=new E(""),ln=new E(""),us=new E(""),hs=new E("");function ds(){let t=null;return(e,r)=>{t===null&&(t=(f(ls,{optional:!0})??[]).reduceRight(as,Kr));let n=f(Ne),i=n.add();return t(e,r).pipe(se(()=>n.remove(i)))}}var qr=(()=>{let e=class e extends ke{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=f(Ne);let s=f(hs,{optional:!0});this.backend=s??n}handle(n){if(this.chain===null){let s=Array.from(new Set([...this.injector.get(ln),...this.injector.get(us,[])]));this.chain=s.reduceRight((o,a)=>cs(o,a,this.injector),Kr)}let i=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(se(()=>this.pendingTasks.remove(i)))}};e.\u0275fac=function(i){return new(i||e)(w(dt),w(me))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})();var fs=/^\)\]\}',?\n/;function ps(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var Wr=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new T(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?P(i.\u0275loadImpl()):g(null)).pipe(U(()=>new lr(o=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((S,C)=>a.setRequestHeader(S,C.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let S=n.detectContentTypeHeader();S!==null&&a.setRequestHeader("Content-Type",S)}if(n.responseType){let S=n.responseType.toLowerCase();a.responseType=S!=="json"?S:"text"}let l=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let S=a.statusText||"OK",C=new le(a.getAllResponseHeaders()),K=ps(a)||n.url;return c=new an({headers:C,status:a.status,statusText:S,url:K}),c},p=()=>{let{headers:S,status:C,statusText:K,url:or}=u(),D=null;C!==gt.NoContent&&(D=typeof a.response>"u"?a.responseText:a.response),C===0&&(C=D?gt.Ok:0);let Ut=C>=200&&C<300;if(n.responseType==="json"&&typeof D=="string"){let Xi=D;D=D.replace(fs,"");try{D=D!==""?JSON.parse(D):null}catch(Hi){D=Xi,Ut&&(Ut=!1,D={error:Hi,text:D})}}Ut?(o.next(new ft({body:D,headers:S,status:C,statusText:K,url:or||void 0})),o.complete()):o.error(new pt({error:D,headers:S,status:C,statusText:K,url:or||void 0}))},h=S=>{let{url:C}=u(),K=new pt({error:S,status:a.status||0,statusText:a.statusText||"Unknown Error",url:C||void 0});o.error(K)},b=!1,W=S=>{b||(o.next(u()),b=!0);let C={type:ye.DownloadProgress,loaded:S.loaded};S.lengthComputable&&(C.total=S.total),n.responseType==="text"&&a.responseText&&(C.partialText=a.responseText),o.next(C)},G=S=>{let C={type:ye.UploadProgress,loaded:S.loaded};S.lengthComputable&&(C.total=S.total),o.next(C)};return a.addEventListener("load",p),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",W),l!==null&&a.upload&&a.upload.addEventListener("progress",G)),a.send(l),o.next({type:ye.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",p),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",W),l!==null&&a.upload&&a.upload.removeEventListener("progress",G)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(w(ut))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),Jr=new E(""),gs="XSRF-TOKEN",ms=new E("",{providedIn:"root",factory:()=>gs}),vs="X-XSRF-TOKEN",ys=new E("",{providedIn:"root",factory:()=>vs}),mt=class{},ws=(()=>{let e=class e{constructor(n,i,s){this.doc=n,this.platform=i,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ct(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(w(O),w(ae),w(ms))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})();function Rs(t,e){let r=t.url.toLowerCase();if(!f(Jr)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=f(mt).getToken(),i=f(ys);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}var Zr=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Zr||{});function bs(t,e){return{\u0275kind:t,\u0275providers:e}}function un(...t){let e=[cn,Wr,qr,{provide:ke,useExisting:qr},{provide:dt,useExisting:Wr},{provide:ln,useValue:Rs,multi:!0},{provide:Jr,useValue:!0},{provide:mt,useClass:ws}];for(let r of t)e.push(...r.\u0275providers);return oe(e)}var Gr=new E("");function Cs(){return bs(Zr.LegacyInterceptors,[{provide:Gr,useFactory:ds},{provide:ln,useExisting:Gr,multi:!0}])}var Xr=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=rt({type:e}),e.\u0275inj=nt({providers:[un(Cs())]});let t=e;return t})();var fn=class extends Lr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},pn=class t extends fn{static makeCurrent(){Ur(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.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,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=Ms();return r==null?null:As(r)}resetBaseElement(){Ue=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ct(document.cookie,e)}},Ue=null;function Ms(){return Ue=Ue||document.querySelector("base"),Ue?Ue.getAttribute("href"):null}function As(t){return new URL(t,document.baseURI).pathname}var Ds=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),gn=new E(""),Qr=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(s=>{s.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,s){return this._findPluginFor(i).addEventListener(n,i,s)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(o=>o.supports(n)),!i)throw new T(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(w(gn),w(L))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),vt=class{constructor(e){this._doc=e}},hn="ng-app-id",ei=(()=>{let e=class e{constructor(n,i,s,o={}){this.doc=n,this.appId=i,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=lt(o),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(s=>s.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${hn}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(s=>{s.textContent!=null&&i.set(s.textContent,s)}),i}return null}changeUsageCount(n,i){let s=this.styleRef;if(s.has(n)){let o=s.get(n);return o.usage+=i,o.usage}return s.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let s=this.styleNodesInDOM,o=s?.get(i);if(o?.parentNode===n)return s.delete(i),o.removeAttribute(hn),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(hn,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let s=this.getStyleElement(n,i),o=this.styleRef,a=o.get(i)?.elements;a?a.push(s):o.set(i,{elements:[s],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(w(O),w(Gt),w(Kt,8),w(ae))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),dn={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/"},vn=/%COMP%/g,ti="%COMP%",Os=`_nghost-${ti}`,Ps=`_ngcontent-${ti}`,Ns=!0,xs=new E("",{providedIn:"root",factory:()=>Ns});function ks(t){return Ps.replace(vn,t)}function js(t){return Os.replace(vn,t)}function ni(t,e){return e.map(r=>r.replace(vn,t))}var yt=(()=>{let e=class e{constructor(n,i,s,o,a,l,c,u=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=lt(l),this.defaultRenderer=new Le(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===De.ShadowDom&&(i=A(d({},i),{encapsulation:De.Emulated}));let s=this.getOrCreateRenderer(n,i);return s instanceof wt?s.applyToHost(n):s instanceof Fe&&s.applyStyles(),s}getOrCreateRenderer(n,i){let s=this.rendererByCompId,o=s.get(i.id);if(!o){let a=this.doc,l=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case De.Emulated:o=new wt(c,u,i,this.appId,p,a,l,h);break;case De.ShadowDom:return new mn(c,u,n,i,a,l,this.nonce,h);default:o=new Fe(c,u,i,p,a,l,h);break}s.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(w(Qr),w(ei),w(Gt),w(xs),w(O),w(ae),w(L),w(Kt))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),Le=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(dn[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(Hr(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(Hr(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new T(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let s=dn[i];s?e.setAttributeNS(s,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=dn[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(Pe.DashCase|Pe.Important)?e.style.setProperty(r,n,i&Pe.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Pe.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=tn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function Hr(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var mn=class extends Le{constructor(e,r,n,i,s,o,a,l){super(e,s,o,l),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=ni(i.id,i.styles);for(let u of c){let p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=u,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Fe=class extends Le{constructor(e,r,n,i,s,o,a,l){super(e,s,o,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=l?ni(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},wt=class extends Fe{constructor(e,r,n,i,s,o,a,l){let c=i+"-"+n.id;super(e,r,n,s,o,a,l,c),this.contentAttr=ks(c),this.hostAttr=js(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},Us=(()=>{let e=class e extends vt{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,s){return n.addEventListener(i,s,!1),()=>this.removeEventListener(n,i,s)}removeEventListener(n,i,s){return n.removeEventListener(i,s)}};e.\u0275fac=function(i){return new(i||e)(w(O))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),Yr=["alt","control","meta","shift"],Ls={"\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"},Fs={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},$s=(()=>{let e=class e extends vt{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,s){let o=e.parseEventName(i),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>tn().onAndCancel(n,o.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),s=i.shift();if(i.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(i.pop()),a="",l=i.indexOf("code");if(l>-1&&(i.splice(l,1),a="code."),Yr.forEach(u=>{let p=i.indexOf(u);p>-1&&(i.splice(p,1),a+=u+".")}),a+=o,i.length!=0||o.length===0)return null;let c={};return c.domEventName=s,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let s=Ls[n.key]||n.key,o="";return i.indexOf("code.")>-1&&(s=n.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),Yr.forEach(a=>{if(a!==s){let l=Fs[a];l(n)&&(o+=a+".")}}),o+=s,o===i)}static eventCallback(n,i,s){return o=>{e.matchEventFullKeyCode(o,n)&&s.runGuarded(()=>i(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(w(O))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})();function ri(t,e){return jr(d({rootComponent:t},_s(e)))}function _s(t){return{appProviders:[...Ws,...t?.providers??[]],platformProviders:qs}}function zs(){pn.makeCurrent()}function Bs(){return new Wt}function Vs(){return Tr(document),document}var qs=[{provide:ae,useValue:$r},{provide:Er,useValue:zs,multi:!0},{provide:O,useFactory:Vs,deps:[]}];var Ws=[{provide:br,useValue:"root"},{provide:Wt,useFactory:Bs,deps:[]},{provide:gn,useClass:Us,multi:!0,deps:[O,L,ae]},{provide:gn,useClass:$s,multi:!0,deps:[O]},yt,ei,Qr,{provide:it,useExisting:yt},{provide:ut,useClass:Ds,deps:[]},[]];var ii=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(w(O))},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var m="primary",Qe=Symbol("RouteTitle"),Cn=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Se(t){return new Cn(t)}function Ks(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[s]===i)}else return t===e}function hi(t){return t.length>0?t[t.length-1]:null}function ne(t){return ur(t)?t:kr(t)?P(Promise.resolve(t)):g(t)}var Zs={exact:fi,subset:pi},di={exact:Xs,subset:Hs,ignored:()=>!0};function si(t,e,r){return Zs[r.paths](t.root,e.root,r.matrixParams)&&di[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function Xs(t,e){return z(t,e)}function fi(t,e,r){if(!he(t.segments,e.segments)||!Ct(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!fi(t.children[n],e.children[n],r))return!1;return!0}function Hs(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>ui(t[r],e[r]))}function pi(t,e,r){return gi(t,e,e.segments,r)}function gi(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!he(i,r)||e.hasChildren()||!Ct(i,r,n))}else if(t.segments.length===r.length){if(!he(t.segments,r)||!Ct(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!pi(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),s=r.slice(t.segments.length);return!he(t.segments,i)||!Ct(t.segments,i,n)||!t.children[m]?!1:gi(t.children[m],e,s,n)}}function Ct(t,e,r){return e.every((n,i)=>di[r](t[i].parameters,n.parameters))}var ee=class{constructor(e=new R([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Se(this.queryParams),this._queryParamMap}toString(){return eo.serialize(this)}},R=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return St(this)}},ue=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=Se(this.parameters),this._parameterMap}toString(){return vi(this)}};function Ys(t,e){return he(t,e)&&t.every((r,n)=>z(r.parameters,e[n].parameters))}function he(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function Qs(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===m&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==m&&(r=r.concat(e(i,n)))}),r}var Zn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=v({token:e,factory:()=>new Et,providedIn:"root"});let t=e;return t})(),Et=class{parse(e){let r=new En(e);return new ee(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${$e(e.root,!0)}`,n=ro(e.queryParams),i=typeof e.fragment=="string"?`#${to(e.fragment)}`:"";return`${r}${n}${i}`}},eo=new Et;function St(t){return t.segments.map(e=>vi(e)).join("/")}function $e(t,e){if(!t.hasChildren())return St(t);if(e){let r=t.children[m]?$e(t.children[m],!1):"",n=[];return Object.entries(t.children).forEach(([i,s])=>{i!==m&&n.push(`${i}:${$e(s,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=Qs(t,(n,i)=>i===m?[$e(t.children[m],!1)]:[`${i}:${$e(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[m]!=null?`${St(t)}/${r[0]}`:`${St(t)}/(${r.join("//")})`}}function mi(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rt(t){return mi(t).replace(/%3B/gi,";")}function to(t){return encodeURI(t)}function Tn(t){return mi(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Tt(t){return decodeURIComponent(t)}function oi(t){return Tt(t.replace(/\+/g,"%20"))}function vi(t){return`${Tn(t.path)}${no(t.parameters)}`}function no(t){return Object.entries(t).map(([e,r])=>`;${Tn(e)}=${Tn(r)}`).join("")}function ro(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${Rt(r)}=${Rt(i)}`).join("&"):`${Rt(r)}=${Rt(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var io=/^[^\/()?;#]+/;function yn(t){let e=t.match(io);return e?e[0]:""}var so=/^[^\/()?;=#]+/;function oo(t){let e=t.match(so);return e?e[0]:""}var ao=/^[^=?&#]+/;function co(t){let e=t.match(ao);return e?e[0]:""}var lo=/^[^&#]+/;function uo(t){let e=t.match(lo);return e?e[0]:""}var En=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new R([],{}):new R([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[m]=new R(e,r)),n}parseSegment(){let e=yn(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new T(4009,!1);return this.capture(e),new ue(Tt(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=oo(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=yn(this.remaining);i&&(n=i,this.capture(n))}e[Tt(r)]=Tt(n)}parseQueryParam(e){let r=co(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let o=uo(this.remaining);o&&(n=o,this.capture(n))}let i=oi(r),s=oi(n);if(e.hasOwnProperty(i)){let o=e[i];Array.isArray(o)||(o=[o],e[i]=o),o.push(s)}else e[i]=s}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=yn(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new T(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=m);let o=this.parseChildren();r[s]=Object.keys(o).length===1?o[m]:new R([],o),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new T(4011,!1)}};function yi(t){return t.segments.length>0?new R([],{[m]:t}):t}function wi(t){let e={};for(let[n,i]of Object.entries(t.children)){let s=wi(i);if(n===m&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[n]=s)}let r=new R(t.segments,e);return ho(r)}function ho(t){if(t.numberOfChildren===1&&t.children[m]){let e=t.children[m];return new R(t.segments.concat(e.segments),e.children)}return t}function Te(t){return t instanceof ee}function fo(t,e,r=null,n=null){let i=Ri(t);return bi(i,e,r,n)}function Ri(t){let e;function r(s){let o={};for(let l of s.children){let c=r(l);o[l.outlet]=c}let a=new R(s.url,o);return s===t&&(e=a),a}let n=r(t.root),i=yi(n);return e??i}function bi(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return wn(i,i,i,r,n);let s=po(e);if(s.toRoot())return wn(i,i,new R([],{}),r,n);let o=go(s,i,t),a=o.processChildren?Be(o.segmentGroup,o.index,s.commands):Si(o.segmentGroup,o.index,s.commands);return wn(i,o.segmentGroup,a,r,n)}function It(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function We(t){return typeof t=="object"&&t!=null&&t.outlets}function wn(t,e,r,n,i){let s={};n&&Object.entries(n).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let o;t===e?o=r:o=Ci(t,e,r);let a=yi(wi(o));return new ee(a,s,i)}function Ci(t,e,r){let n={};return Object.entries(t.children).forEach(([i,s])=>{s===e?n[i]=r:n[i]=Ci(s,e,r)}),new R(t.segments,n)}var Mt=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&It(n[0]))throw new T(4003,!1);let i=n.find(We);if(i&&i!==hi(n))throw new T(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function po(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Mt(!0,0,t);let e=0,r=!1,n=t.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,s]},[]);return new Mt(r,e,n)}var be=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function go(t,e,r){if(t.isAbsolute)return new be(e,!0,0);if(!r)return new be(e,!1,NaN);if(r.parent===null)return new be(r,!0,0);let n=It(t.commands[0])?0:1,i=r.segments.length-1+n;return mo(r,i,t.numberOfDoubleDots)}function mo(t,e,r){let n=t,i=e,s=r;for(;s>i;){if(s-=i,n=n.parent,!n)throw new T(4005,!1);i=n.segments.length}return new be(n,!1,i-s)}function vo(t){return We(t[0])?t[0].outlets:{[m]:t}}function Si(t,e,r){if(t??=new R([],{}),t.segments.length===0&&t.hasChildren())return Be(t,e,r);let n=yo(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexs!==m)&&t.children[m]&&t.numberOfChildren===1&&t.children[m].segments.length===0){let s=Be(t.children[m],e,r);return new R(t.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=Si(t.children[s],e,o))}),Object.entries(t.children).forEach(([s,o])=>{n[s]===void 0&&(i[s]=o)}),new R(t.segments,i)}}function yo(t,e,r){let n=0,i=e,s={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return s;let o=t.segments[i],a=r[n];if(We(a))break;let l=`${a}`,c=n0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!ci(l,c,o))return s;n+=2}else{if(!ci(l,{},o))return s;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function In(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=In(new R([],{}),0,n))}),e}function ai(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function ci(t,e,r){return t==r.path&&z(e,r.parameters)}var Ve="imperative",M=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(M||{}),F=class{constructor(e,r){this.id=e,this.url=r}},Ge=class extends F{constructor(e,r,n="imperative",i=null){super(e,r),this.type=M.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},de=class extends F{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=M.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},x=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(x||{}),Mn=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Mn||{}),te=class extends F{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=M.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},fe=class extends F{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=M.NavigationSkipped}},Ke=class extends F{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=M.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},At=class extends F{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=M.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},An=class extends F{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=M.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dn=class extends F{constructor(e,r,n,i,s){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s,this.type=M.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},On=class extends F{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=M.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pn=class extends F{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=M.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Nn=class{constructor(e){this.route=e,this.type=M.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},xn=class{constructor(e){this.route=e,this.type=M.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},kn=class{constructor(e){this.snapshot=e,this.type=M.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jn=class{constructor(e){this.snapshot=e,this.type=M.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Un=class{constructor(e){this.snapshot=e,this.type=M.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ln=class{constructor(e){this.snapshot=e,this.type=M.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Je=class{},Ze=class{constructor(e){this.url=e}};var Fn=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new kt,this.attachRef=null}},kt=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){let s=this.getOrCreateContext(n);s.outlet=i,this.contexts.set(n,s)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new Fn,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Dt=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=$n(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=$n(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=_n(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return _n(e,this._root).map(r=>r.value)}};function $n(t,e){if(t===e.value)return e;for(let r of e.children){let n=$n(t,r);if(n)return n}return null}function _n(t,e){if(t===e.value)return[e];for(let r of e.children){let n=_n(t,r);if(n.length)return n.unshift(e),n}return[]}var N=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function Re(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var Ot=class extends Dt{constructor(e,r){super(e),this.snapshot=r,Hn(this,e)}toString(){return this.snapshot.toString()}};function Ti(t){let e=Ro(t),r=new k([new ue("",{})]),n=new k({}),i=new k({}),s=new k({}),o=new k(""),a=new Ee(r,n,s,o,i,m,t,e.root);return a.snapshot=e.root,new Ot(new N(a,[]),e)}function Ro(t){let e={},r={},n={},i="",s=new Xe([],e,n,i,r,m,t,null,{});return new Pt("",new N(s,[]))}var Ee=class{constructor(e,r,n,i,s,o,a,l){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(y(c=>c[Qe]))??g(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(y(e=>Se(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(y(e=>Se(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Xn(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:d(d({},e.params),t.params),data:d(d({},e.data),t.data),resolve:d(d(d(d({},t.data),e.data),i?.data),t._resolvedData)}:n={params:d({},t.params),data:d({},t.data),resolve:d(d({},t.data),t._resolvedData??{})},i&&Ii(i)&&(n.resolve[Qe]=i.title),n}var Xe=class{get title(){return this.data?.[Qe]}constructor(e,r,n,i,s,o,a,l,c){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Se(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Se(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Pt=class extends Dt{constructor(e,r){super(r),this.url=e,Hn(this,r)}toString(){return Ei(this._root)}};function Hn(t,e){e.value._routerState=t,e.children.forEach(r=>Hn(t,r))}function Ei(t){let e=t.children.length>0?` { ${t.children.map(Ei).join(", ")} } `:"";return`${t.value}${e}`}function Rn(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,z(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),z(e.params,r.params)||t.paramsSubject.next(r.params),Js(e.url,r.url)||t.urlSubject.next(r.url),z(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function zn(t,e){let r=z(t.params,e.params)&&Ys(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||zn(t.parent,e.parent))}function Ii(t){return typeof t.title=="string"||t.title===null}var Yn=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=m,this.activateEvents=new Oe,this.deactivateEvents=new Oe,this.attachEvents=new Oe,this.detachEvents=new Oe,this.parentContexts=f(kt),this.location=f(Ar),this.changeDetector=f(en),this.environmentInjector=f(me),this.inputBinder=f(Qn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:s}=n.name;if(i)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new T(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new T(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new T(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new T(4013,!1);this._activatedRoute=n;let s=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new Bn(n,l,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=Rr({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Cr]});let t=e;return t})(),Bn=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===Ee?this.route:e===kt?this.childContexts:this.parent.get(e,r)}},Qn=new E("");function bo(t,e,r){let n=He(t,e._root,r?r._root:void 0);return new Ot(n,e)}function He(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=Co(t,e,r);return new N(n,i)}else{if(t.shouldAttach(e.value)){let s=t.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>He(t,a)),o}}let n=So(e.value),i=e.children.map(s=>He(t,s));return new N(n,i)}}function Co(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return He(t,n,i);return He(t,n)})}function So(t){return new Ee(new k(t.url),new k(t.params),new k(t.queryParams),new k(t.fragment),new k(t.data),t.outlet,t.component,t)}var Mi="ngNavigationCancelingError";function Ai(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=Te(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=Di(!1,x.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function Di(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[Mi]=!0,r.cancellationCode=e,r}function To(t){return Oi(t)&&Te(t.url)}function Oi(t){return!!t&&t[Mi]}var Eo=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=$({type:e,selectors:[["ng-component"]],standalone:!0,features:[_],decls:1,vars:0,template:function(i,s){i&1&&ve(0,"router-outlet")},dependencies:[Yn],encapsulation:2});let t=e;return t})();function Io(t,e){return t.providers&&!t._injector&&(t._injector=Or(t.providers,e,`Route: ${t.path}`)),t._injector??e}function er(t){let e=t.children&&t.children.map(er),r=e?A(d({},t),{children:e}):d({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==m&&(r.component=Eo),r}function B(t){return t.outlet||m}function Mo(t,e){let r=t.filter(n=>B(n)===e);return r.push(...t.filter(n=>B(n)!==e)),r}function et(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var Ao=(t,e,r,n)=>y(i=>(new Vn(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),Vn=class{constructor(e,r,n,i,s){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=s}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),Rn(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=Re(r);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],n),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(e,r,n){let i=e.value,s=r?r.value:null;if(i===s)if(i.component){let o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(e,r,o.children)}else this.deactivateChildRoutes(e,r,n);else s&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,s=Re(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(n&&n.outlet){let o=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,s=Re(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=Re(r);e.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],n),this.forwardEvent(new Ln(s.value.snapshot))}),e.children.length&&this.forwardEvent(new jn(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,s=r?r.value:null;if(Rn(i),i===s)if(i.component){let o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,o.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let o=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Rn(a.route.value),this.activateChildRoutes(e,null,o.children)}else{let a=et(i.snapshot);o.attachRef=null,o.route=i,o.injector=a,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)}},Nt=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Ce=class{constructor(e,r){this.component=e,this.route=r}};function Do(t,e,r){let n=t._root,i=e?e._root:null;return _e(n,i,r,[n.value])}function Oo(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Me(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!wr(t)?t:e.get(t):n}function _e(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=Re(e);return t.children.forEach(o=>{Po(o,s[o.value.outlet],r,n.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>qe(a,r.getContext(o),i)),i}function Po(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let l=No(o,s,s.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Nt(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?_e(t,e,a?a.children:null,n,i):_e(t,e,r,n,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Ce(a.outlet.component,o))}else o&&qe(e,a,i),i.canActivateChecks.push(new Nt(n)),s.component?_e(t,null,a?a.children:null,n,i):_e(t,null,r,n,i);return i}function No(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!he(t.url,e.url);case"pathParamsOrQueryParamsChange":return!he(t.url,e.url)||!z(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!zn(t,e)||!z(t.queryParams,e.queryParams);case"paramsChange":default:return!zn(t,e)}}function qe(t,e,r){let n=Re(t),i=t.value;Object.entries(n).forEach(([s,o])=>{i.component?e?qe(o,e.children.getContext(s),r):qe(o,null,r):qe(o,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new Ce(e.outlet.component,i)):r.canDeactivateChecks.push(new Ce(null,i)):r.canDeactivateChecks.push(new Ce(null,i))}function tt(t){return typeof t=="function"}function xo(t){return typeof t=="boolean"}function ko(t){return t&&tt(t.canLoad)}function jo(t){return t&&tt(t.canActivate)}function Uo(t){return t&&tt(t.canActivateChild)}function Lo(t){return t&&tt(t.canDeactivate)}function Fo(t){return t&&tt(t.canMatch)}function Pi(t){return t instanceof hr||t?.name==="EmptyError"}var bt=Symbol("INITIAL_VALUE");function Ie(){return U(t=>$t(t.map(e=>e.pipe(ge(1),vr(bt)))).pipe(y(e=>{for(let r of e)if(r!==!0){if(r===bt)return bt;if(r===!1||r instanceof ee)return r}return!0}),Z(e=>e!==bt),ge(1)))}function $o(t,e){return j(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=r;return o.length===0&&s.length===0?g(A(d({},r),{guardsResult:!0})):_o(o,n,i,t).pipe(j(a=>a&&xo(a)?zo(n,s,t,e):g(a)),y(a=>A(d({},r),{guardsResult:a})))})}function _o(t,e,r,n){return P(t).pipe(j(i=>Go(i.component,i.route,r,e,n)),X(i=>i!==!0,!0))}function zo(t,e,r,n){return P(e).pipe(ie(i=>dr(Vo(i.route.parent,n),Bo(i.route,n),Wo(t,i.path,r),qo(t,i.route,r))),X(i=>i!==!0,!0))}function Bo(t,e){return t!==null&&e&&e(new Un(t)),g(!0)}function Vo(t,e){return t!==null&&e&&e(new kn(t)),g(!0)}function qo(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return g(!0);let i=n.map(s=>_t(()=>{let o=et(e)??r,a=Me(s,o),l=jo(a)?a.canActivate(e,t):V(o,()=>a(e,t));return ne(l).pipe(X())}));return g(i).pipe(Ie())}function Wo(t,e,r){let n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>Oo(o)).filter(o=>o!==null).map(o=>_t(()=>{let a=o.guards.map(l=>{let c=et(o.node)??r,u=Me(l,c),p=Uo(u)?u.canActivateChild(n,t):V(c,()=>u(n,t));return ne(p).pipe(X())});return g(a).pipe(Ie())}));return g(s).pipe(Ie())}function Go(t,e,r,n,i){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return g(!0);let o=s.map(a=>{let l=et(e)??i,c=Me(a,l),u=Lo(c)?c.canDeactivate(t,e,r,n):V(l,()=>c(t,e,r,n));return ne(u).pipe(X())});return g(o).pipe(Ie())}function Ko(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return g(!0);let s=i.map(o=>{let a=Me(o,t),l=ko(a)?a.canLoad(e,r):V(t,()=>a(e,r));return ne(l)});return g(s).pipe(Ie(),Ni(n))}function Ni(t){return cr(I(e=>{if(Te(e))throw Ai(t,e)}),y(e=>e===!0))}function Jo(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return g(!0);let s=i.map(o=>{let a=Me(o,t),l=Fo(a)?a.canMatch(e,r):V(t,()=>a(e,r));return ne(l)});return g(s).pipe(Ie(),Ni(n))}var Ye=class{constructor(e){this.segmentGroup=e||null}},xt=class extends Error{constructor(e){super(),this.urlTree=e}};function we(t){return Ae(new Ye(t))}function Zo(t){return Ae(new T(4e3,!1))}function Xo(t){return Ae(Di(!1,x.GuardRejected))}var qn=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return g(n);if(i.numberOfChildren>1||!i.children[m])return Zo(e.redirectTo);i=i.children[m]}}applyRedirectCommands(e,r,n){let i=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r.startsWith("/"))throw new xt(i);return i}applyRedirectCreateUrlTree(e,r,n,i){let s=this.createSegmentGroup(e,r.root,n,i);return new ee(s,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,s])=>{if(typeof s=="string"&&s.startsWith(":")){let a=s.substring(1);n[i]=r[a]}else n[i]=s}),n}createSegmentGroup(e,r,n,i){let s=this.createSegments(e,r.segments,n,i),o={};return Object.entries(r.children).forEach(([a,l])=>{o[a]=this.createSegmentGroup(e,l,n,i)}),new R(s,o)}createSegments(e,r,n,i){return r.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,i):this.findOrReturn(s,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new T(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},Wn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ho(t,e,r,n,i){let s=tr(t,e,r);return s.matched?(n=Io(e,n),Jo(n,e,r,i).pipe(y(o=>o===!0?s:d({},Wn)))):g(s)}function tr(t,e,r){if(e.path==="**")return Yo(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?d({},Wn):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||Ks)(r,t,e);if(!i)return d({},Wn);let s={};Object.entries(i.posParams??{}).forEach(([a,l])=>{s[a]=l.path});let o=i.consumed.length>0?d(d({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:o,positionalParamSegments:i.posParams??{}}}function Yo(t){return{matched:!0,parameters:t.length>0?hi(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function li(t,e,r,n){return r.length>0&&ta(t,r,n)?{segmentGroup:new R(e,ea(n,new R(r,t.children))),slicedSegments:[]}:r.length===0&&na(t,r,n)?{segmentGroup:new R(t.segments,Qo(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new R(t.segments,t.children),slicedSegments:r}}function Qo(t,e,r,n){let i={};for(let s of r)if(jt(t,e,s)&&!n[B(s)]){let o=new R([],{});i[B(s)]=o}return d(d({},n),i)}function ea(t,e){let r={};r[m]=e;for(let n of t)if(n.path===""&&B(n)!==m){let i=new R([],{});r[B(n)]=i}return r}function ta(t,e,r){return r.some(n=>jt(t,e,n)&&B(n)!==m)}function na(t,e,r){return r.some(n=>jt(t,e,n))}function jt(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function ra(t,e,r,n){return B(t)!==n&&(n===m||!jt(e,r,t))?!1:tr(e,t,r).matched}function ia(t,e,r){return e.length===0&&!t.children[r]}var Gn=class{};function sa(t,e,r,n,i,s,o="emptyOnly"){return new Kn(t,e,r,n,i,o,s).recognize()}var oa=31,Kn=class{constructor(e,r,n,i,s,o,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new qn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new T(4002,`'${e.segmentGroup}'`)}recognize(){let e=li(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(y(r=>{let n=new Xe([],Object.freeze({}),Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,{},m,this.rootComponentType,null,{}),i=new N(n,r),s=new Pt("",i),o=fo(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root,null),{state:s,tree:o}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,m).pipe(pe(n=>{if(n instanceof xt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Ye?this.noMatchError(n):n}))}inheritParamsAndData(e,r){let n=e.value,i=Xn(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(s=>this.inheritParamsAndData(s,n))}processSegmentGroup(e,r,n,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n):this.processSegment(e,r,n,n.segments,i,!0).pipe(y(s=>s instanceof N?[s]:[]))}processChildren(e,r,n){let i=[];for(let s of Object.keys(n.children))s==="primary"?i.unshift(s):i.push(s);return P(i).pipe(ie(s=>{let o=n.children[s],a=Mo(r,s);return this.processSegmentGroup(e,a,o,s)}),mr((s,o)=>(s.push(...o),s)),zt(null),gr(),j(s=>{if(s===null)return we(n);let o=xi(s);return aa(o),g(o)}))}processSegment(e,r,n,i,s,o){return P(r).pipe(ie(a=>this.processSegmentAgainstRoute(a._injector??e,r,a,n,i,s,o).pipe(pe(l=>{if(l instanceof Ye)return g(null);throw l}))),X(a=>!!a),pe(a=>{if(Pi(a))return ia(n,i,s)?g(new Gn):we(n);throw a}))}processSegmentAgainstRoute(e,r,n,i,s,o,a){return ra(n,i,s,o)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,s,o):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,s,o):we(i):we(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,s,o){let{matched:a,consumedSegments:l,positionalParamSegments:c,remainingSegments:u}=tr(r,i,s);if(!a)return we(r);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>oa&&(this.allowRedirects=!1));let p=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,p).pipe(j(h=>this.processSegment(e,n,r,h.concat(u),o,!1)))}matchSegmentAgainstRoute(e,r,n,i,s){let o=Ho(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),o.pipe(U(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(U(({routes:l})=>{let c=n._loadedInjector??e,{consumedSegments:u,remainingSegments:p,parameters:h}=a,b=new Xe(u,h,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,la(n),B(n),n.component??n._loadedComponent??null,n,ua(n)),{segmentGroup:W,slicedSegments:G}=li(r,u,p,l);if(G.length===0&&W.hasChildren())return this.processChildren(c,l,W).pipe(y(C=>C===null?null:new N(b,C)));if(l.length===0&&G.length===0)return g(new N(b,[]));let S=B(n)===s;return this.processSegment(c,l,W,G,S?m:s,!0).pipe(y(C=>new N(b,C instanceof N?[C]:[])))}))):we(r)))}getChildConfig(e,r,n){return r.children?g({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?g({routes:r._loadedRoutes,injector:r._loadedInjector}):Ko(e,r,n,this.urlSerializer).pipe(j(i=>i?this.configLoader.loadChildren(e,r).pipe(I(s=>{r._loadedRoutes=s.routes,r._loadedInjector=s.injector})):Xo(r))):g({routes:[],injector:e})}};function aa(t){t.sort((e,r)=>e.value.outlet===m?-1:r.value.outlet===m?1:e.value.outlet.localeCompare(r.value.outlet))}function ca(t){let e=t.value.routeConfig;return e&&e.path===""}function xi(t){let e=[],r=new Set;for(let n of t){if(!ca(n)){e.push(n);continue}let i=e.find(s=>n.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=xi(n.children);e.push(new N(n.value,i))}return e.filter(n=>!r.has(n))}function la(t){return t.data||{}}function ua(t){return t.resolve||{}}function ha(t,e,r,n,i,s){return j(o=>sa(t,e,r,n,o.extractedUrl,i,s).pipe(y(({state:a,tree:l})=>A(d({},o),{targetSnapshot:a,urlAfterRedirects:l}))))}function da(t,e){return j(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return g(r);let s=new Set(i.map(l=>l.route)),o=new Set;for(let l of s)if(!o.has(l))for(let c of ki(l))o.add(c);let a=0;return P(o).pipe(ie(l=>s.has(l)?fa(l,n,t,e):(l.data=Xn(l,l.parent,t).resolve,g(void 0))),I(()=>a++),Bt(1),j(l=>a===o.size?g(r):J))})}function ki(t){let e=t.children.map(r=>ki(r)).flat();return[t,...e]}function fa(t,e,r,n){let i=t.routeConfig,s=t._resolve;return i?.title!==void 0&&!Ii(i)&&(s[Qe]=i.title),pa(s,t,e,n).pipe(y(o=>(t._resolvedData=o,t.data=Xn(t,t.parent,r).resolve,null)))}function pa(t,e,r,n){let i=Sn(t);if(i.length===0)return g({});let s={};return P(i).pipe(j(o=>ga(t[o],e,r,n).pipe(X(),I(a=>{s[o]=a}))),Bt(1),pr(s),pe(o=>Pi(o)?J:Ae(o)))}function ga(t,e,r,n){let i=et(e)??n,s=Me(t,i),o=s.resolve?s.resolve(e,r):V(i,()=>s(e,r));return ne(o)}function bn(t){return U(e=>{let r=t(e);return r?P(r).pipe(y(()=>e)):g(e)})}var ji=(()=>{let e=class e{buildTitle(n){let i,s=n.root;for(;s!==void 0;)i=this.getResolvedTitleForRoute(s)??i,s=s.children.find(o=>o.outlet===m);return i}getResolvedTitleForRoute(n){return n.data[Qe]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=v({token:e,factory:()=>f(ma),providedIn:"root"});let t=e;return t})(),ma=(()=>{let e=class e extends ji{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(w(ii))},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),nr=new E("",{providedIn:"root",factory:()=>({})}),rr=new E(""),va=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=f(Qt)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return g(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=ne(n.loadComponent()).pipe(y(Ui),I(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),se(()=>{this.componentLoaders.delete(n)})),s=new Ft(i,()=>new re).pipe(Lt());return this.componentLoaders.set(n,s),s}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return g({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=ya(i,this.compiler,n,this.onLoadEndListener).pipe(se(()=>{this.childrenLoaders.delete(i)})),a=new Ft(o,()=>new re).pipe(Lt());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ya(t,e,r,n){return ne(t.loadChildren()).pipe(y(Ui),j(i=>i instanceof Dr||Array.isArray(i)?g(i):P(e.compileModuleAsync(i))),y(i=>{n&&n(t);let s,o,a=!1;return Array.isArray(i)?(o=i,a=!0):(s=i.create(r).injector,o=s.get(rr,[],{optional:!0,self:!0}).flat()),{routes:o.map(er),injector:s}}))}function wa(t){return t&&typeof t=="object"&&"default"in t}function Ui(t){return wa(t)?t.default:t}var ir=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=v({token:e,factory:()=>f(Ra),providedIn:"root"});let t=e;return t})(),Ra=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ba=new E("");var Ca=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new re,this.transitionAbortSubject=new re,this.configLoader=f(va),this.environmentInjector=f(me),this.urlSerializer=f(Zn),this.rootContexts=f(kt),this.location=f(at),this.inputBindingEnabled=f(Qn,{optional:!0})!==null,this.titleStrategy=f(ji),this.options=f(nr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=f(ir),this.createViewTransition=f(ba,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>g(void 0),this.rootComponentType=null;let n=s=>this.events.next(new Nn(s)),i=s=>this.events.next(new xn(s));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(A(d(d({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,s){return this.transitions=new k({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ve,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Z(o=>o.id!==0),y(o=>A(d({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),U(o=>{let a=!1,l=!1;return g(o).pipe(U(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",x.SupersededByNewNavigation),J;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?A(d({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&p!=="reload"){let h="";return this.events.next(new fe(c.id,this.urlSerializer.serialize(c.rawUrl),h,Mn.IgnoredSameUrlNavigation)),c.resolve(null),J}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return g(c).pipe(U(h=>{let b=this.transitions?.getValue();return this.events.next(new Ge(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),b!==this.transitions?.getValue()?J:Promise.resolve(h)}),ha(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),I(h=>{o.targetSnapshot=h.targetSnapshot,o.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=A(d({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let b=new At(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(b)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:h,extractedUrl:b,source:W,restoredState:G,extras:S}=c,C=new Ge(h,this.urlSerializer.serialize(b),W,G);this.events.next(C);let K=Ti(this.rootComponentType).snapshot;return this.currentTransition=o=A(d({},c),{targetSnapshot:K,urlAfterRedirects:b,extras:A(d({},S),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=b,g(o)}else{let h="";return this.events.next(new fe(c.id,this.urlSerializer.serialize(c.extractedUrl),h,Mn.IgnoredByUrlHandlingStrategy)),c.resolve(null),J}}),I(c=>{let u=new An(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),y(c=>(this.currentTransition=o=A(d({},c),{guards:Do(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),$o(this.environmentInjector,c=>this.events.next(c)),I(c=>{if(o.guardsResult=c.guardsResult,Te(c.guardsResult))throw Ai(this.urlSerializer,c.guardsResult);let u=new Dn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),Z(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",x.GuardRejected),!1)),bn(c=>{if(c.guards.canActivateChecks.length)return g(c).pipe(I(u=>{let p=new On(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(p)}),U(u=>{let p=!1;return g(u).pipe(da(this.paramsInheritanceStrategy,this.environmentInjector),I({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(u,"",x.NoDataFromResolver)}}))}),I(u=>{let p=new Pn(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(p)}))}),bn(c=>{let u=p=>{let h=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(p.routeConfig).pipe(I(b=>{p.component=b}),y(()=>{})));for(let b of p.children)h.push(...u(b));return h};return $t(u(c.targetSnapshot.root)).pipe(zt(null),ge(1))}),bn(()=>this.afterPreactivation()),U(()=>{let{currentSnapshot:c,targetSnapshot:u}=o,p=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return p?P(p).pipe(y(()=>o)):g(o)}),y(c=>{let u=bo(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=A(d({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,o}),I(()=>{this.events.next(new Je)}),Ao(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),ge(1),I({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new de(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),yr(this.transitionAbortSubject.pipe(I(c=>{throw c}))),se(()=>{!a&&!l&&this.cancelNavigationTransition(o,"",x.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),pe(c=>{if(l=!0,Oi(c))this.events.next(new te(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),To(c)?this.events.next(new Ze(c.url)):o.resolve(!1);else{this.events.next(new Ke(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0));try{o.resolve(n.errorHandler(c))}catch(u){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(u)}}return J}))}))}cancelNavigationTransition(n,i,s){let o=new te(n.id,this.urlSerializer.serialize(n.extractedUrl),i,s);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Sa(t){return t!==Ve}var Ta=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=v({token:e,factory:()=>f(Ea),providedIn:"root"});let t=e;return t})(),Jn=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},Ea=(()=>{let e=class e extends Jn{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=qt(e)))(s||e)}})(),e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Li=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=v({token:e,factory:()=>f(Ia),providedIn:"root"});let t=e;return t})(),Ia=(()=>{let e=class e extends Li{constructor(){super(...arguments),this.location=f(at),this.urlSerializer=f(Zn),this.options=f(nr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=f(ir),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new ee,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ti(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof Ge)this.stateMemento=this.createStateMemento();else if(n instanceof fe)this.rawUrlTree=i.initialUrl;else if(n instanceof At){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(s,i)}}else n instanceof Je?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof te&&(n.code===x.GuardRejected||n.code===x.NoDataFromResolver)?this.restoreHistory(i):n instanceof Ke?this.restoreHistory(i,!0):n instanceof de&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let s=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(s)||i.extras.replaceUrl){let o=this.browserPageId,a=d(d({},i.extras.state),this.generateNgRouterState(i.id,o));this.location.replaceState(s,"",a)}else{let o=d(d({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=qt(e)))(s||e)}})(),e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ze=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ze||{});function Ma(t,e){t.events.pipe(Z(r=>r instanceof de||r instanceof te||r instanceof Ke||r instanceof fe),y(r=>r instanceof de||r instanceof fe?ze.COMPLETE:(r instanceof te?r.code===x.Redirect||r.code===x.SupersededByNewNavigation:!1)?ze.REDIRECTING:ze.FAILED),Z(r=>r!==ze.REDIRECTING),ge(1)).subscribe(()=>{e()})}function Aa(t){throw t}var Da={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Oa={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Fi=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=f(st),this.stateManager=f(Li),this.options=f(nr,{optional:!0})||{},this.pendingTasks=f(Ne),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=f(Ca),this.urlSerializer=f(Zn),this.location=f(at),this.urlHandlingStrategy=f(ir),this._events=new re,this.errorHandler=this.options.errorHandler||Aa,this.navigated=!1,this.routeReuseStrategy=f(Ta),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=f(rr,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!f(Qn,{optional:!0}),this.eventsSubscription=new ar,this.isNgZoneEnabled=f(L)instanceof L&&L.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof te&&i.code!==x.Redirect&&i.code!==x.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof de)this.navigated=!0;else if(i instanceof Ze){let a=this.urlHandlingStrategy.merge(i.url,s.currentRawUrl),l={info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||Sa(s.source)};this.scheduleNavigation(a,Ve,null,l,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}Na(i)&&this._events.next(i)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ve,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let c=d({},s);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let l=this.parseUrl(n);this.scheduleNavigation(l,i,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(er),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:l,preserveFragment:c}=i,u=c?this.currentUrlTree.fragment:a,p=null;switch(l){case"merge":p=d(d({},this.currentUrlTree.queryParams),o);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null}p!==null&&(p=this.removeEmptyProps(p));let h;try{let b=s?s.snapshot:this.routerState.snapshot.root;h=Ri(b)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),h=this.currentUrlTree.root}return bi(h,n,p,u??null)}navigateByUrl(n,i={skipLocationChange:!1}){let s=Te(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,Ve,null,i)}navigate(n,i={skipLocationChange:!1}){return Pa(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let s;if(i===!0?s=d({},Da):i===!1?s=d({},Oa):s=i,Te(n))return si(this.currentUrlTree,n,s);let o=this.parseUrl(n);return si(this.currentUrlTree,o,s)}removeEmptyProps(n){return Object.entries(n).reduce((i,[s,o])=>(o!=null&&(i[s]=o),i),{})}scheduleNavigation(n,i,s,o,a){if(this.disposed)return Promise.resolve(!1);let l,c,u;a?(l=a.resolve,c=a.reject,u=a.promise):u=new Promise((h,b)=>{l=h,c=b});let p=this.pendingTasks.add();return Ma(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(h=>Promise.reject(h))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Pa(t){for(let e=0;er.\u0275providers)])}function ka(t){return t.routerState.root}function ja(){let t=f(Sr);return e=>{let r=t.get(ot);if(e!==r.components[0])return;let n=t.get(Fi),i=t.get(Ua);t.get(La)===1&&n.initialNavigation(),t.get(Fa,null,Vt.Optional)?.setUpPreloading(),t.get(xa,null,Vt.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Ua=new E("",{factory:()=>new re}),La=new E("",{providedIn:"root",factory:()=>1});var Fa=new E("");var _i="https://api.chucknorris.io/jokes/random";var zi=(()=>{let e=class e{constructor(n){this.httpClient=n}getJoke(){return this.httpClient.get(_i).pipe(I(n=>console.log(n)),y(n=>n.value))}};e.\u0275fac=function(i){return new(i||e)(w(cn))},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Bi=(()=>{let e=class e{constructor(n){this.chuckNorrisJokeGeneratorService=n}getJokes(){return fr(Array(10).fill(this.chuckNorrisJokeGeneratorService.getJoke()))}};e.\u0275fac=function(i){return new(i||e)(w(zi))},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function za(t,e){if(t&1&&(H(0,"li"),ce(1),Y()),t&2){let r=e.$implicit;Jt(),xr(r)}}var Vi=(()=>{let e=class e{constructor(n){this.jokeStoreService=n,this.jokes=[],this.jokeStoreService.getJokes().subscribe(i=>this.jokes=i)}};e.\u0275fac=function(i){return new(i||e)(Zt(Bi))},e.\u0275cmp=$({type:e,selectors:[["cnjg-jokes"]],standalone:!0,features:[_],decls:4,vars:1,consts:[[4,"ngFor","ngForOf"]],template:function(i,s){i&1&&(H(0,"h2"),ce(1,"Jokes"),Y(),H(2,"ul"),Pr(3,za,2,1,"li",0),Y()),i&2&&(Jt(3),Nr("ngForOf",s.jokes))},dependencies:[nn,Fr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%] ul[_ngcontent-%COMP%]{width:80%;display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;margin-bottom:20px}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2n){color:orange}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(odd){color:#add8e6}"]});let t=e;return t})();var qi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=$({type:e,selectors:[["cnjg-home"]],standalone:!0,features:[_],decls:3,vars:0,template:function(i,s){i&1&&(H(0,"h1"),ce(1,"Chuck Norris Joke Generator"),Y(),ve(2,"cnjg-jokes"))},dependencies:[Vi],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:25px}"]});let t=e;return t})();var Wi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=$({type:e,selectors:[["cnjg-favourites"]],standalone:!0,features:[_],decls:2,vars:0,template:function(i,s){i&1&&(H(0,"p"),ce(1,"favourites works!"),Y())}});let t=e;return t})();var Gi=[{path:"",component:qi},{path:"favourites",component:Wi}];var Ba="@",Va=(()=>{let e=class e{constructor(n,i,s,o,a){this.doc=n,this.delegate=i,this.zone=s,this.animationType=o,this.moduleImpl=a,this._rendererFactoryPromise=null,this.scheduler=f(Mr,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){return(this.moduleImpl??import("./chunk-JUMNKZRS.js")).catch(i=>{throw new T(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:s})=>{this._engine=i(this.animationType,this.doc,this.scheduler);let o=new s(this.delegate,this._engine,this.zone);return this.delegate=o,o})}createRenderer(n,i){let s=this.delegate.createRenderer(n,i);if(s.\u0275type===0)return s;typeof s.throwOnSyntheticProps=="boolean"&&(s.throwOnSyntheticProps=!1);let o=new sr(s);return i?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(a=>{let l=a.createRenderer(n,i);o.use(l)}).catch(a=>{o.use(s)}),o}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}};e.\u0275fac=function(i){Xt()},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),sr=class{constructor(e){this.delegate=e,this.replay=[],this.\u0275type=1}use(e){if(this.delegate=e,this.replay!==null){for(let r of this.replay)r(e);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(e,r){return this.delegate.createElement(e,r)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}get destroyNode(){return this.delegate.destroyNode}appendChild(e,r){this.delegate.appendChild(e,r)}insertBefore(e,r,n,i){this.delegate.insertBefore(e,r,n,i)}removeChild(e,r,n){this.delegate.removeChild(e,r,n)}selectRootElement(e,r){return this.delegate.selectRootElement(e,r)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,r,n,i){this.delegate.setAttribute(e,r,n,i)}removeAttribute(e,r,n){this.delegate.removeAttribute(e,r,n)}addClass(e,r){this.delegate.addClass(e,r)}removeClass(e,r){this.delegate.removeClass(e,r)}setStyle(e,r,n,i){this.delegate.setStyle(e,r,n,i)}removeStyle(e,r,n){this.delegate.removeStyle(e,r,n)}setProperty(e,r,n){this.shouldReplay(r)&&this.replay.push(i=>i.setProperty(e,r,n)),this.delegate.setProperty(e,r,n)}setValue(e,r){this.delegate.setValue(e,r)}listen(e,r,n){return this.shouldReplay(r)&&this.replay.push(i=>i.listen(e,r,n)),this.delegate.listen(e,r,n)}shouldReplay(e){return this.replay!==null&&e.startsWith(Ba)}};function Ki(t="animations"){return Ht("NgAsyncAnimations"),oe([{provide:it,useFactory:(e,r,n)=>new Va(e,r,n,t),deps:[O,yt,L]},{provide:Ir,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Ji={providers:[$i(Gi),Ki(),un()]};var Zi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=$({type:e,selectors:[["cnjg-root"]],standalone:!0,features:[_],decls:1,vars:0,template:function(i,s){i&1&&ve(0,"router-outlet")},dependencies:[Yn,Xr],encapsulation:2});let t=e;return t})();ri(Zi,Ji).catch(t=>console.error(t));