planx 20.102.1 → 20.104.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/config.main.mjs CHANGED
@@ -1,4 +1,4 @@
1
- globalThis.__PLANX_SERVICE_VERSION__="20.102.1";
1
+ globalThis.__PLANX_SERVICE_VERSION__="20.104.0";
2
2
  import { createRequire } from "module";
3
3
  import _nodeUrl from "url";
4
4
  import _nodePath from "path";
@@ -263,7 +263,7 @@ ${e.map(r=>`"${r.sourceSpan.toString()}"`).join(`
263
263
  `.trim());if(t.some((r,n)=>e[n].constructor!==r.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}var Ant=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function xnt(t){return t.split(Ant)[2]}var Rge=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","iframe|src","object|codebase","object|data"]);function Lge(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),Rge.has(t+"|"+e)||Rge.has("*|"+e)}var Cnt=t=>(e,r)=>{let n=t.get(e)??e;return n instanceof Md&&(r instanceof pb&&n.i18n instanceof ro&&(r.previousMessage=n.i18n),n.i18n=r),r},r3=class{keepI18nAttrs;enableI18nLegacyMessageIdFormat;preserveSignificantWhitespace;retainEmptyTokens;hasI18nMeta=!1;_errors=[];constructor(e=!1,r=!1,n=!0,i=!n){this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=r,this.preserveSignificantWhitespace=n,this.retainEmptyTokens=i}_generateI18nMessage(e,r="",n){let{meaning:i,description:o,customId:s}=this._parseMetadata(r),u=Ent(this.retainEmptyTokens,this.preserveSignificantWhitespace)(e,i,o,s,n);return this._setMessageId(u,r),this._setLegacyIds(u,r),u}visitAllWithErrors(e){let r=e.map(n=>n.visit(this,null));return new JM(r,this._errors)}visitElement(e){return this._visitElementLike(e),e}visitComponent(e,r){return this._visitElementLike(e),e}visitExpansion(e,r){let n,i=e.i18n;if(this.hasI18nMeta=!0,i instanceof pb){let o=i.name;n=this._generateI18nMessage([e],i);let s=Fye(n);s.name=o,r!==null&&(r.placeholderToMessage[o]=n)}else n=this._generateI18nMessage([e],r||i);return e.i18n=n,e}visitText(e){return e}visitAttribute(e){return e}visitComment(e){return e}visitExpansionCase(e){return e}visitBlock(e,r){return Ir(this,e.children,r),e}visitBlockParameter(e,r){return e}visitLetDeclaration(e,r){return e}visitDirective(e,r){return e}_visitElementLike(e){let r;if(qJe(e)){this.hasI18nMeta=!0;let n=[],i={};for(let o of e.attrs)if(o.name===Lye){let s=e.i18n||o.value,a=new Map,u=this.preserveSignificantWhitespace?e.children:Yc(new e3(!1,a),e.children);r=this._generateI18nMessage(u,s,Cnt(a)),r.nodes.length===0&&(r=void 0),e.i18n=r}else if(o.name.startsWith(EV)){let s=o.name.slice(EV.length),a;e instanceof Xi?a=e.tagName===null?!1:Lge(e.tagName,s):a=Lge(e.name,s),a||Mnt(s)?this._reportError(o,`Translating attribute '${s}' is disallowed for security reasons.`):i[s]=o.value}else n.push(o);if(Object.keys(i).length)for(let o of n){let s=i[o.name];s!==void 0&&o.value&&(o.i18n=this._generateI18nMessage([o],o.i18n||s))}this.keepI18nAttrs||(e.attrs=n)}Ir(this,e.children,r)}_parseMetadata(e){return typeof e=="string"?Nnt(e):e instanceof ro?e:{}}_setMessageId(e,r){e.id||(e.id=r instanceof ro&&r.id||UXe(e))}_setLegacyIds(e,r){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[BXe(e),Cye(e)];else if(typeof r!="string"){let n=r instanceof ro?r:r instanceof pb?r.previousMessage:void 0;e.legacyIds=n?n.legacyIds:[]}}_reportError(e,r){this._errors.push(new Pe(e.sourceSpan,r))}},Ont="|",Pnt="@@";function Nnt(t=""){let e,r,n;if(t=t.trim(),t){let i=t.indexOf(Pnt),o=t.indexOf(Ont),s;[s,e]=i>-1?[t.slice(0,i),t.slice(i+2)]:[t,""],[r,n]=o>-1?[s.slice(0,o),s.slice(o+1)]:["",s]}return{customId:e,meaning:r,description:n}}function Dnt(t){let e=[];return t.description?e.push({tagName:"desc",text:t.description}):e.push({tagName:"suppress",text:"{msgDescriptions}"}),t.meaning&&e.push({tagName:"meaning",text:t.meaning}),nJe(e)}function Mnt(t){let e=t.toLowerCase();return e.length>2&&e!=="only"&&e.startsWith("on")}var knt="goog.getMsg";function Rnt(t,e,r,n){let i=$nt(e),o=[C(i)];Object.keys(n).length&&(o.push(FV(OH(n,!0),!0)),o.push(FV({original_code:Ys(Object.keys(n).map(u=>({key:Jw(u),quoted:!0,value:e.placeholders[u]?C(e.placeholders[u].sourceSpan.toString()):C(e.placeholderToMessage[u].nodes.map(c=>c.sourceSpan.toString()).join(""))})))})));let s=new Ln(r.name,pt(knt).callFn(o),ka,Xn.Final);s.addLeadingComment(Dnt(e));let a=new fi(t.set(r));return[s,a]}var tH=class{formatPh(e){return`{$${Jw(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(r=>r.visit(this)).join("")}visitIcu(e){return v0e(e)}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(r=>r.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(r=>r.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,r){return this.formatPh(e.name)}},Lnt=new tH;function $nt(t){return t.nodes.map(e=>e.visit(Lnt,null)).join("")}function Fnt(t,e,r){let{messageParts:n,placeHolders:i}=jnt(e),o=qnt(e),s=i.map(c=>r[c.text]),a=sJe(e,n,i,s,o),u=t.set(a);return[new fi(u)]}var rH=class{placeholderToMessage;pieces;constructor(e,r){this.placeholderToMessage=e,this.pieces=r}visitText(e){if(this.pieces[this.pieces.length-1]instanceof Xg)this.pieces[this.pieces.length-1].text+=e.value;else{let r=new $e(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new Xg(e.value,r))}}visitContainer(e){e.children.forEach(r=>r.visit(this))}visitIcu(e){this.pieces.push(new Xg(v0e(e),e.sourceSpan))}visitTagPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.isVoid||(e.children.forEach(r=>r.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan)))}visitPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}visitBlockPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.children.forEach(r=>r.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan))}visitIcuPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan,this.placeholderToMessage[e.name]))}createPlaceholderPiece(e,r,n){return new Z_(Jw(e,!1),r,n)}};function jnt(t){let e=[],r=new rH(t.placeholderToMessage,e);return t.nodes.forEach(n=>n.visit(r)),Bnt(e)}function qnt(t){let e=t.nodes[0],r=t.nodes[t.nodes.length-1];return new $e(e.sourceSpan.fullStart,r.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function Bnt(t){let e=[],r=[];t[0]instanceof Z_&&e.push($U(t[0].sourceSpan.start));for(let n=0;n<t.length;n++){let i=t[n];i instanceof Xg?e.push(i):(r.push(i),t[n-1]instanceof Z_&&e.push($U(t[n-1].sourceSpan.end)))}return t[t.length-1]instanceof Z_&&e.push($U(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:r}}function $U(t){return new Xg("",new $e(t,t))}var $ge="ngI18nClosureMode",Unt="i18n_",Vnt="I18N_EXP_",Fge="\uFFFD",Hnt="MSG_";function jge(t){return`${Hnt}${t}`.toUpperCase()}function Gnt(t){return new Ln(t.name,void 0,ka,void 0,t.sourceSpan)}function Wnt(t){let e=t.relativeContextFilePath.replace(/[^A-Za-z0-9]/g,"_").toUpperCase()+"_",r=new Map,n=new Map,i=new Map,o=new Map;for(let u of t.units)for(let c of u.ops())if(c.kind===v.ExtractedAttribute&&c.i18nContext!==null){let l=r.get(c.i18nContext)??[];l.push(c),r.set(c.i18nContext,l)}else if(c.kind===v.I18nAttributes)n.set(c.target,c);else if(c.kind===v.I18nExpression&&c.usage===my.I18nAttribute){let l=i.get(c.target)??[];l.push(c),i.set(c.target,l)}else c.kind===v.I18nMessage&&o.set(c.xref,c);let s=new Map,a=new Map;for(let u of t.units)for(let c of u.create)if(c.kind===v.I18nMessage){if(c.messagePlaceholder===null){let{mainVar:l,statements:d}=A0e(t,e,o,c);if(c.i18nBlock!==null){let f=t.addConst(l,d);a.set(c.i18nBlock,f)}else{t.constsInitializers.push(...d),s.set(c.i18nContext,l);let f=r.get(c.i18nContext);if(f!==void 0)for(let p of f)p.expression=l.clone()}}L.remove(c)}for(let u of t.units)for(let c of u.create)if(Gp(c)){let l=n.get(c.xref);if(l===void 0)continue;let d=i.get(c.xref);if(d===void 0)throw new Error("AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction");let f=new Set;d=d.filter(m=>{let y=f.has(m.name);return f.add(m.name),!y});let p=d.flatMap(m=>{let y=s.get(m.context);if(y===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[C(m.name),y]});l.i18nAttributesConfig=t.addConst(new al(p))}for(let u of t.units)for(let c of u.create)if(c.kind===v.I18nStart){let l=a.get(c.root);if(l===void 0)throw new Error("AssertionError: Could not find corresponding i18n block index for an i18n message op; was an i18n message incorrectly assumed to correspond to an attribute?");c.messageIndex=l}}function A0e(t,e,r,n){let i=[],o=new Map;for(let c of n.subMessages){let l=r.get(c),{mainVar:d,statements:f}=A0e(t,e,r,l);i.push(...f);let p=o.get(l.messagePlaceholder)??[];p.push(d),o.set(l.messagePlaceholder,p)}Knt(n,o),n.params=new Map([...n.params.entries()].sort());let s=pt(t.pool.uniqueName(Unt)),a=Ynt(t.pool,n.message.id,e,t.i18nUseExternalIds),u;if(n.needsPostprocessing||n.postprocessingParams.size>0){let c=Object.fromEntries([...n.postprocessingParams.entries()].sort()),l=OH(c,!1),d=[];n.postprocessingParams.size>0&&d.push(FV(l,!0)),u=f=>me(T.i18nPostprocess).callFn([f,...d])}return i.push(...znt(n.message,s,a,n.params,u)),{mainVar:s,statements:i}}function Knt(t,e){for(let[r,n]of e)n.length===1?t.params.set(r,n[0]):(t.params.set(r,C(`${Fge}${Vnt}${r}${Fge}`)),t.postprocessingParams.set(r,or(n)))}function znt(t,e,r,n,i){let o=Object.fromEntries(n),s=[Gnt(e),d3(Qnt(),Rnt(e,t,r,o),Fnt(e,t,OH(o,!1)))];return i&&s.push(new fi(e.set(i(e)))),s}function Qnt(){return Zw(pt($ge)).notIdentical(C("undefined",AH)).and(pt($ge))}function Ynt(t,e,r,n){let i,o=r;if(n){let s=jge("EXTERNAL_"),a=t.uniqueName(o);i=`${s}${Kg(e)}$$${a}`}else{let s=jge(o);i=t.uniqueName(s)}return pt(i)}function Znt(t){for(let e of t.units){let r=null,n=null,i=new Map,o=new Map,s=new Map;for(let a of e.create)switch(a.kind){case v.I18nStart:if(a.context===null)throw Error("I18n op should have its context set.");r=a;break;case v.I18nEnd:r=null;break;case v.IcuStart:if(a.context===null)throw Error("Icu op should have its context set.");n=a;break;case v.IcuEnd:n=null;break;case v.Text:if(r!==null)if(i.set(a.xref,r),o.set(a.xref,n),a.icuPlaceholder!==null){let u=Ttt(t.allocateXrefId(),a.icuPlaceholder,[a.initialValue]);L.replace(a,u),s.set(a.xref,u)}else L.remove(a);break}for(let a of e.update)switch(a.kind){case v.InterpolateText:if(!i.has(a.target))continue;let u=i.get(a.target),c=o.get(a.target),l=s.get(a.target),d=c?c.context:u.context,f=c?hb.Postproccessing:hb.Creation,p=[];for(let m=0;m<a.interpolation.expressions.length;m++){let y=a.interpolation.expressions[m];p.push(i0e(d,u.xref,u.xref,u.handle,y,l?.xref??null,a.interpolation.i18nPlaceholders[m]??null,f,my.I18nText,"",y.sourceSpan??a.sourceSpan))}L.replaceWithMany(a,p),l!==void 0&&(l.strings=a.interpolation.strings);break}}}function Xnt(t){for(let e of t.units)for(let r of e.create)switch(r.kind){case v.ElementStart:case v.ConditionalCreate:case v.ConditionalBranchCreate:case v.Template:if(!Array.isArray(r.localRefs))throw new Error("AssertionError: expected localRefs to be an array still");if(r.numSlotsUsed+=r.localRefs.length,r.localRefs.length>0){let n=Jnt(r.localRefs);r.localRefs=t.addConst(n)}else r.localRefs=null;break}}function Jnt(t){let e=[];for(let r of t)e.push(C(r.name),C(r.target));return or(e)}function eit(t){for(let e of t.units){let r=fn.HTML;for(let n of e.create)n.kind===v.ElementStart&&n.namespace!==r&&(L.insertBefore(mtt(n.namespace),n),r=n.namespace)}}function tit(t){let e=[],r=0,n=0,i=0,o=0,s=0,a=null;for(;r<t.length;)switch(t.charCodeAt(r++)){case 40:n++;break;case 41:n--;break;case 39:i===0?i=39:i===39&&t.charCodeAt(r-1)!==92&&(i=0);break;case 34:i===0?i=34:i===34&&t.charCodeAt(r-1)!==92&&(i=0);break;case 58:!a&&n===0&&i===0&&(a=x0e(t.substring(s,r-1).trim()),o=r);break;case 59:if(a&&o>0&&n===0&&i===0){let c=t.substring(o,r-1).trim();e.push(a,c),s=r,o=0,a=null}break}if(a&&o){let u=t.slice(o).trim();e.push(a,u)}return e}function x0e(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function rit(t){let e=new Map;for(let r of t.units)for(let n of r.create)Gp(n)&&e.set(n.xref,n);for(let r of t.units)for(let n of r.create)if(n.kind===v.ExtractedAttribute&&n.bindingKind===ve.Attribute&&o0e(n.expression)){let i=e.get(n.target);if(i!==void 0&&(i.kind===v.Template||i.kind===v.ConditionalCreate||i.kind===v.ConditionalBranchCreate)&&i.templateKind===no.Structural)continue;if(n.name==="style"){let o=tit(n.expression.value);for(let s=0;s<o.length-1;s+=2)L.insertBefore(Ks(n.target,ve.StyleProperty,null,o[s],C(o[s+1]),null,null,ft.STYLE),n);L.remove(n)}else if(n.name==="class"){let o=n.expression.value.trim().split(/\s+/g);for(let s of o)L.insertBefore(Ks(n.target,ve.ClassName,null,s,null,null,null,ft.NONE),n);L.remove(n)}}}function nit(t){VT(t.root,t.componentName,{index:0})}function VT(t,e,r){t.fnName===null&&(t.fnName=t.job.pool.uniqueName(Kg(`${e}_${t.job.fnSuffix}`),!1));let n=new Map;for(let i of t.ops())switch(i.kind){case v.Property:case v.DomProperty:i.bindingKind===ve.LegacyAnimation&&(i.name="@"+i.name);break;case v.Animation:if(i.handlerFnName===null){let c=i.name.replace(".","");i.handlerFnName=`${t.fnName}_${c}_cb`,i.handlerFnName=Kg(i.handlerFnName)}break;case v.AnimationListener:if(i.handlerFnName!==null)break;if(!i.hostListener&&i.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let o=i.name.replace(".","");i.hostListener?i.handlerFnName=`${e}_${o}_HostBindingHandler`:i.handlerFnName=`${t.fnName}_${i.tag.replace("-","_")}_${o}_${i.targetSlot.slot}_listener`,i.handlerFnName=Kg(i.handlerFnName);break;case v.Listener:if(i.handlerFnName!==null)break;if(!i.hostListener&&i.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let s="";i.isLegacyAnimationListener&&(i.name=`@${i.name}.${i.legacyAnimationPhase}`,s="animation"),i.hostListener?i.handlerFnName=`${e}_${s}${i.name}_HostBindingHandler`:i.handlerFnName=`${t.fnName}_${i.tag.replace("-","_")}_${s}${i.name}_${i.targetSlot.slot}_listener`,i.handlerFnName=Kg(i.handlerFnName);break;case v.TwoWayListener:if(i.handlerFnName!==null)break;if(i.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");i.handlerFnName=Kg(`${t.fnName}_${i.tag.replace("-","_")}_${i.name}_${i.targetSlot.slot}_listener`);break;case v.Variable:n.set(i.xref,iit(i.variable,r));break;case v.RepeaterCreate:if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");if(i.handle.slot===null)throw new Error("Expected slot to be assigned");if(i.emptyView!==null){let c=t.job.views.get(i.emptyView);VT(c,`${e}_${i.functionNameSuffix}Empty_${i.handle.slot+2}`,r)}VT(t.job.views.get(i.xref),`${e}_${i.functionNameSuffix}_${i.handle.slot+1}`,r);break;case v.Projection:if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");if(i.handle.slot===null)throw new Error("Expected slot to be assigned");if(i.fallbackView!==null){let c=t.job.views.get(i.fallbackView);VT(c,`${e}_ProjectionFallback_${i.handle.slot}`,r)}break;case v.ConditionalCreate:case v.ConditionalBranchCreate:case v.Template:if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");let a=t.job.views.get(i.xref);if(i.handle.slot===null)throw new Error("Expected slot to be assigned");let u=i.functionNameSuffix.length===0?"":`_${i.functionNameSuffix}`;VT(a,`${e}${u}_${i.handle.slot}`,r);break;case v.StyleProp:i.name=qge(oit(i.name));break;case v.ClassProp:i.name=qge(i.name);break}for(let i of t.ops())pn(i,o=>{if(!(!(o instanceof Pd)||o.name!==null)){if(!n.has(o.xref))throw new Error(`Variable ${o.xref} not yet named`);o.name=n.get(o.xref)}})}function iit(t,e){if(t.name===null)switch(t.kind){case Rn.Context:t.name=`ctx_r${e.index++}`;break;case Rn.Identifier:let r=t.identifier===ms?"i":"";t.name=`${t.identifier}_${r}r${++e.index}`;break;default:t.name=`_r${++e.index}`;break}return t.name}function oit(t){return t.startsWith("--")?t:x0e(t)}function qge(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function sit(t){for(let e of t.units){for(let r of e.functions)FU(r.ops);for(let r of e.create)(r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener)&&FU(r.handlerOps);FU(e.update)}}function FU(t){for(let e of t){if(e.kind!==v.Statement||!(e.statement instanceof fi)||!(e.statement.expr instanceof jM))continue;let r=e.statement.expr.steps,n=!0;for(let i=e.next;i.kind!==v.ListEnd&&n;i=i.next)pn(i,(o,s)=>{if(!dl(o))return o;if(n&&!(s&ot.InChildOperation))switch(o.kind){case we.NextContext:o.steps+=r,L.remove(e),n=!1;break;case we.GetCurrentView:case we.Reference:case we.ContextLetReference:n=!1;break}})}}var ait="ng-container";function uit(t){for(let e of t.units){let r=new Set;for(let n of e.create)n.kind===v.ElementStart&&n.tag===ait&&(n.kind=v.ContainerStart,r.add(n.xref)),n.kind===v.ElementEnd&&r.has(n.xref)&&(n.kind=v.ContainerEnd)}}function cit(t,e){let r=t.get(e);if(r===void 0)throw new Error("All attributes should have an element-like target.");return r}function lit(t){let e=new Map;for(let r of t.units)for(let n of r.create)Gp(n)&&e.set(n.xref,n);for(let r of t.units)for(let n of r.create)(n.kind===v.ElementStart||n.kind===v.ContainerStart)&&n.nonBindable&&L.insertAfter(ltt(n.xref),n),(n.kind===v.ElementEnd||n.kind===v.ContainerEnd)&&cit(e,n.xref).nonBindable&&L.insertBefore(dtt(n.xref),n)}function el(t){return e=>e.kind===t}function QT(t,e){return r=>r.kind===t&&e===r.expression instanceof Jr}function dit(t){return t.kind===v.Listener&&!(t.hostListener&&t.isLegacyAnimationListener)||t.kind===v.TwoWayListener||t.kind===v.Animation||t.kind===v.AnimationListener}function fit(t){return(t.kind===v.Property||t.kind===v.TwoWayProperty)&&!(t.expression instanceof Jr)}var pit=[{test:t=>t.kind===v.Listener&&t.hostListener&&t.isLegacyAnimationListener},{test:dit}],hit=[{test:el(v.StyleMap),transform:n3},{test:el(v.ClassMap),transform:n3},{test:el(v.StyleProp)},{test:el(v.ClassProp)},{test:QT(v.Attribute,!0)},{test:QT(v.Property,!0)},{test:fit},{test:QT(v.Attribute,!1)},{test:el(v.Control)}],mit=[{test:QT(v.DomProperty,!0)},{test:QT(v.DomProperty,!1)},{test:el(v.Attribute)},{test:el(v.StyleMap),transform:n3},{test:el(v.ClassMap),transform:n3},{test:el(v.StyleProp)},{test:el(v.ClassProp)}],Bge=new Set([v.Listener,v.TwoWayListener,v.AnimationListener,v.StyleMap,v.ClassMap,v.StyleProp,v.ClassProp,v.Property,v.TwoWayProperty,v.DomProperty,v.Attribute,v.Animation,v.Control]);function git(t){for(let e of t.units){Uge(e.create,pit);let r=e.job.kind===ue.Host?mit:hit;Uge(e.update,r)}}function Uge(t,e){let r=[],n=null;for(let i of t){let o=Rw(i)?i.target:null;(!Bge.has(i.kind)||o!==n&&n!==null&&o!==null)&&(L.insertBefore(Vge(r,e),i),r=[],n=null),Bge.has(i.kind)&&(r.push(i),L.remove(i),n=o??n)}t.push(Vge(r,e))}function Vge(t,e){let r=Array.from(e,()=>new Array);for(let n of t){let i=e.findIndex(o=>o.test(n));r[i].push(n)}return r.flatMap((n,i)=>{let o=e[i].transform;return o?o(n):n})}function n3(t){return t.slice(t.length-1)}function yit(t){for(let e of t.units){let r=h0e(e);for(let n of e.ops())if(n.kind===v.Binding){let i=_it(r,n.target);vit(n.name)&&i.kind===v.Projection&&L.remove(n)}}}function vit(t){return t.toLowerCase()==="select"}function _it(t,e){let r=t.get(e);if(r===void 0)throw new Error("All attributes should have an slottable target.");return r}function bit(t){for(let e of t.units)Eit(e)}function Eit(t){for(let e of t.update)pn(e,(r,n)=>{if(!dl(r)||r.kind!==we.PipeBinding)return;if(n&ot.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");if(e.target==null)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");Sit(t,e.target,r)})}function Sit(t,e,r){for(let n=t.create.head.next;n.kind!==v.ListEnd;n=n.next){if(!Tb(n)||n.xref!==e)continue;for(;n.next.kind===v.Pipe;)n=n.next;let i=htt(r.target,r.targetSlot,r.name);L.insertBefore(i,n.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${r.name}`)}function Tit(t){for(let e of t.units)for(let r of e.update)en(r,n=>!(n instanceof vy)||n.args.length<=4?n:new jw(n.target,n.targetSlot,n.name,or(n.args),n.args.length),ot.None)}function wit(t){C0e(t.root,0)}function C0e(t,e){let r=null;for(let n of t.create)switch(n.kind){case v.I18nStart:n.subTemplateIndex=e===0?null:e,r=n;break;case v.I18nEnd:r.subTemplateIndex===null&&(e=0),r=null;break;case v.ConditionalCreate:case v.ConditionalBranchCreate:case v.Template:e=VD(t.job.views.get(n.xref),r,n.i18nPlaceholder,e);break;case v.RepeaterCreate:let i=t.job.views.get(n.xref);e=VD(i,r,n.i18nPlaceholder,e),n.emptyView!==null&&(e=VD(t.job.views.get(n.emptyView),r,n.emptyI18nPlaceholder,e));break;case v.Projection:n.fallbackView!==null&&(e=VD(t.job.views.get(n.fallbackView),r,n.fallbackViewI18nPlaceholder,e));break}return e}function VD(t,e,r,n){if(r!==void 0){if(e===null)throw Error("Expected template with i18n placeholder to be in an i18n block.");n++,Iit(t,e)}return C0e(t,n)}function Iit(t,e){if(t.create.head.next?.kind!==v.I18nStart){let r=t.job.allocateXrefId();L.insertAfter(m3(r,e.message,e.root,null),t.create.head),L.insertBefore(g3(r,null),t.create.tail)}}function Ait(t){for(let e of t.units)for(let r of e.ops())pn(r,n=>{if(!(n instanceof yy)||n.body===null)return;let i=new nH(n.args.length);n.fn=t.pool.getSharedConstant(i,n.body),n.body=null})}var nH=class extends ow{numArgs;constructor(e){super(),this.numArgs=e}keyOf(e){return e instanceof Vp?`param(${e.index})`:super.keyOf(e)}toSharedConstantDeclaration(e,r){let n=[];for(let o=0;o<this.numArgs;o++)n.push(new In("a"+o,Co));let i=pe(r,o=>o instanceof Vp?pt("a"+o.index):o,ot.None);return new Ln(e,new Ey(n,i),void 0,Xn.Final)}};function xit(t){for(let e of t.units)for(let r of e.update)en(r,(n,i)=>i&ot.InChildOperation?n:n instanceof al?Cit(n):n instanceof $a?Oit(n):n,ot.None)}function Cit(t){let e=[],r=[];for(let n of t.entries){if(n instanceof ay){if(n.expression.isConstant())e.push(n);else{let i=r.length;r.push(n.expression),e.push(new ay(new Vp(i)))}continue}if(n.isConstant())e.push(n);else{let i=r.length;r.push(n),e.push(new Vp(i))}}return new yy(or(e),r)}function Oit(t){let e=[],r=[];for(let n of t.entries){if(n instanceof Rp){if(n.expression.isConstant())e.push(n);else{let i=r.length;r.push(n.expression),e.push(new Rp(new Vp(i)))}continue}if(n.value.isConstant())e.push(n);else{let i=r.length;r.push(n.value),e.push(new ib(n.key,new Vp(i),n.quoted))}}return new yy(new $a(e),r)}function Pit(t){for(let e of t.units)for(let r of e.ops())en(r,n=>n instanceof nb&&(n.flags===null||!n.flags.includes("g"))?t.pool.getSharedConstant(new iH,n):n,ot.None)}var iH=class extends ow{toSharedConstantDeclaration(e,r){return new Ln(e,r,void 0,Xn.Final)}};function Nit(t,e,r,n,i){return zp(T.element,t,e,r,n,i)}function Dit(t,e,r,n,i){return zp(T.elementStart,t,e,r,n,i)}function zp(t,e,r,n,i,o){let s=[C(e)];return r!==null&&s.push(C(r)),i!==null?s.push(C(n),C(i)):n!==null&&s.push(C(n)),Ke(t,s,o)}function O0e(t,e,r,n,i,o,s,a,u){let c=[C(e),r,C(n),C(i),C(o),C(s)];for(a!==null&&(c.push(C(a)),c.push(me(T.templateRefExtractor)));c[c.length-1].isEquivalent(ob);)c.pop();return Ke(t,c,u)}function jH(t,e,r,n,i){let o=[C(e)];return r instanceof Jr?o.push(wb(r,i)):o.push(r),n!==null&&o.push(n),Ke(t,o,i)}function Mit(t){return Ke(T.elementEnd,[],t)}function kit(t,e,r,n){return zp(T.elementContainerStart,t,null,e,r,n)}function Rit(t,e,r,n){return zp(T.elementContainer,t,null,e,r,n)}function Lit(){return Ke(T.elementContainerEnd,[],null)}function $it(t,e,r,n,i,o,s,a){return O0e(T.templateCreate,t,e,r,n,i,o,s,a)}function Fit(){return Ke(T.disableBindings,[],null)}function jit(){return Ke(T.enableBindings,[],null)}function qit(t,e,r,n,i){let o=[C(t),e];return r!==null&&o.push(me(r)),Ke(n?T.syntheticHostListener:T.listener,o,i)}function Hge(t,e){return me(T.twoWayBindingSet).callFn([t,e])}function Bit(t,e,r){return Ke(T.twoWayListener,[C(t),e],r)}function Uit(t,e){return Ke(T.pipe,[C(t),C(e)],null)}function Vit(){return Ke(T.namespaceHTML,[],null)}function Hit(){return Ke(T.namespaceSVG,[],null)}function Git(){return Ke(T.namespaceMathML,[],null)}function Wit(t,e){return Ke(T.advance,t>1?[C(t)]:[],e)}function Kit(t){return me(T.reference).callFn([C(t)])}function zit(t){return me(T.nextContext).callFn(t===1?[]:[C(t)])}function Qit(){return me(T.getCurrentView).callFn([])}function Yit(t){return me(T.restoreView).callFn([t])}function Zit(t){return me(T.resetView).callFn([t])}function Xit(t,e,r){let n=[C(t,null)];return e!==""&&n.push(C(e)),Ke(T.text,n,r)}function Jit(t,e,r,n,i,o,s,a,u,c,l){let d=[C(t),C(e),r??C(null),C(n),C(i),C(o),s??C(null),a??C(null),u?me(T.deferEnableTimerScheduling):C(null),C(l)],f;for(;(f=d[d.length-1])!==null&&f instanceof di&&f.value===null;)d.pop();return Ke(T.defer,d,c)}var eot=new Map([[ir.Idle,{none:T.deferOnIdle,prefetch:T.deferPrefetchOnIdle,hydrate:T.deferHydrateOnIdle}],[ir.Immediate,{none:T.deferOnImmediate,prefetch:T.deferPrefetchOnImmediate,hydrate:T.deferHydrateOnImmediate}],[ir.Timer,{none:T.deferOnTimer,prefetch:T.deferPrefetchOnTimer,hydrate:T.deferHydrateOnTimer}],[ir.Hover,{none:T.deferOnHover,prefetch:T.deferPrefetchOnHover,hydrate:T.deferHydrateOnHover}],[ir.Interaction,{none:T.deferOnInteraction,prefetch:T.deferPrefetchOnInteraction,hydrate:T.deferHydrateOnInteraction}],[ir.Viewport,{none:T.deferOnViewport,prefetch:T.deferPrefetchOnViewport,hydrate:T.deferHydrateOnViewport}],[ir.Never,{none:T.deferHydrateNever,prefetch:T.deferHydrateNever,hydrate:T.deferHydrateNever}]]);function tot(t,e,r,n){let i=eot.get(t)?.[r];if(i===void 0)throw new Error(`Unable to determine instruction for trigger ${t}`);return Ke(i,e,n)}function rot(t){return Ke(T.projectionDef,t?[t]:[],null)}function not(t,e,r,n,i,o,s){let a=[C(t)];return(e!==0||r!==null||n!==null)&&(a.push(C(e)),r!==null&&a.push(r),n!==null&&(r===null&&a.push(C(null)),a.push(pt(n),C(i),C(o)))),Ke(T.projection,a,s)}function iot(t,e,r,n){let i=[C(t),C(e)];return r!==null&&i.push(C(r)),Ke(T.i18nStart,i,n)}function oot(t,e,r,n,i,o,s,a){let u=[C(t),e,C(r),C(n),C(i),C(o)];for(s!==null&&(u.push(C(s)),u.push(me(T.templateRefExtractor)));u[u.length-1].isEquivalent(ob);)u.pop();return Ke(T.conditionalCreate,u,a)}function sot(t,e,r,n,i,o,s,a){let u=[C(t),e,C(r),C(n),C(i),C(o)];for(s!==null&&(u.push(C(s)),u.push(me(T.templateRefExtractor)));u[u.length-1].isEquivalent(ob);)u.pop();return Ke(T.conditionalBranchCreate,u,a)}function aot(t,e,r,n,i,o,s,a,u,c,l,d,f,p){let m=[C(t),pt(e),C(r),C(n),C(i),C(o),s];return(a||u!==null)&&(m.push(C(a)),u!==null&&(m.push(pt(u),C(c),C(l)),(d!==null||f!==null)&&m.push(C(d)),f!==null&&m.push(C(f)))),Ke(T.repeaterCreate,m,p)}function uot(t,e){return Ke(T.repeater,[t],e)}function cot(t,e,r){return t==="prefetch"?Ke(T.deferPrefetchWhen,[e],r):t==="hydrate"?Ke(T.deferHydrateWhen,[e],r):Ke(T.deferWhen,[e],r)}function lot(t,e){return Ke(T.declareLet,[C(t)],e)}function dot(t,e){return me(T.storeLet).callFn([t],e)}function fot(t){return me(T.readContextLet).callFn([C(t)])}function pot(t,e,r,n){let i=[C(t),C(e)];return r&&i.push(C(r)),Ke(T.i18n,i,n)}function hot(t){return Ke(T.i18nEnd,[],t)}function mot(t,e){let r=[C(t),C(e)];return Ke(T.i18nAttributes,r,null)}function got(t,e,r){return jH(T.ariaProperty,t,e,null,r)}function yot(t,e,r,n){return jH(T.property,t,e,r,n)}function vot(t){return Ke(T.control,[],t)}function _ot(t){return Ke(T.controlCreate,[],t)}function bot(t,e,r,n){let i=[C(t),e];return r!==null&&i.push(r),Ke(T.twoWayProperty,i,n)}function Eot(t,e,r,n,i){let o=[C(t)];return e instanceof Jr?o.push(wb(e,i)):o.push(e),(r!==null||n!==null)&&o.push(r??C(null)),n!==null&&o.push(C(n)),Ke(T.attribute,o,null)}function Sot(t,e,r,n){let i=[C(t)];return e instanceof Jr?i.push(wb(e,n)):i.push(e),r!==null&&i.push(C(r)),Ke(T.styleProp,i,n)}function Tot(t,e,r){return Ke(T.classProp,[C(t),e],r)}function wot(t,e){let r=t instanceof Jr?wb(t,e):t;return Ke(T.styleMap,[r],e)}function Iot(t,e){let r=t instanceof Jr?wb(t,e):t;return Ke(T.classMap,[r],e)}function Aot(t,e,r,n,i){return zp(T.domElement,t,e,r,n,i)}function xot(t,e,r,n,i){return zp(T.domElementStart,t,e,r,n,i)}function Cot(t){return Ke(T.domElementEnd,[],t)}function Oot(t,e,r,n){return zp(T.domElementContainerStart,t,null,e,r,n)}function Pot(t,e,r,n){return zp(T.domElementContainer,t,null,e,r,n)}function Not(){return Ke(T.domElementContainerEnd,[],null)}function Dot(t,e,r,n){let i=[C(t),e];return r!==null&&i.push(me(r)),Ke(T.domListener,i,n)}function Mot(t,e,r,n,i,o,s,a){return O0e(T.domTemplate,t,e,r,n,i,o,s,a)}var Gge=[T.pipeBind1,T.pipeBind2,T.pipeBind3,T.pipeBind4];function kot(t,e,r){if(r.length<1||r.length>Gge.length)throw new Error("pipeBind() argument count out of bounds");let n=Gge[r.length-1];return me(n).callFn([C(t),C(e),...r])}function Rot(t,e,r){return me(T.pipeBindV).callFn([C(t),C(e),r])}function Lot(t,e,r){let n=P0e(t,e);return Zot(zot,[],n,r)}function $ot(t,e){return Ke(T.i18nExp,[t],e)}function Fot(t,e){return Ke(T.i18nApply,[C(t)],e)}function jot(t,e,r,n){return jH(T.domProperty,t,e,r,n)}function qot(t,e,r,n){let i=[e];r!==null&&i.push(r);let o=t==="enter"?T.animationEnter:T.animationLeave;return Ke(o,i,n)}function Bot(t,e,r,n){let o=[e instanceof Jr?wb(e,n):e];r!==null&&o.push(r);let s=t==="enter"?T.animationEnter:T.animationLeave;return Ke(s,o,n)}function Uot(t,e,r,n){let i=[e],o=t==="enter"?T.animationEnterListener:T.animationLeaveListener;return Ke(o,i,n)}function Vot(t,e,r){return Ke(T.syntheticHostProperty,[C(t),e],r)}function Hot(t,e,r){return qH(Yot,[C(t),e],r,null)}function Got(t,e){return Ke(T.attachSourceLocations,[C(t),e],null)}function Wot(t,e,r){return me(T.arrowFunction).callFn([C(t),e,r])}function P0e(t,e){if(t.length<1||e.length!==t.length-1)throw new Error("AssertionError: expected specific shape of args for strings/expressions in interpolation");let r=[];if(e.length===1&&t[0]===""&&t[1]==="")r.push(e[0]);else{let n;for(n=0;n<e.length;n++)r.push(C(t[n]),e[n]);r.push(C(t[n]))}return r}function wb(t,e){let r=P0e(t.strings,t.expressions);return qH(Qot,[],r,e)}function Ke(t,e,r){let n=me(t).callFn(e,r);return gs(new fi(n,r))}function Kot(t,e,r){let n=[t];return e!==null&&n.push(e),Ke(T.conditional,n,r)}var zot={constant:[T.textInterpolate,T.textInterpolate1,T.textInterpolate2,T.textInterpolate3,T.textInterpolate4,T.textInterpolate5,T.textInterpolate6,T.textInterpolate7,T.textInterpolate8],variable:T.textInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},Qot={constant:[T.interpolate,T.interpolate1,T.interpolate2,T.interpolate3,T.interpolate4,T.interpolate5,T.interpolate6,T.interpolate7,T.interpolate8],variable:T.interpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},Yot={constant:[T.pureFunction0,T.pureFunction1,T.pureFunction2,T.pureFunction3,T.pureFunction4,T.pureFunction5,T.pureFunction6,T.pureFunction7,T.pureFunction8],variable:T.pureFunctionV,mapping:t=>t};function qH(t,e,r,n){let i=t.mapping(r.length),o=r.at(-1);if(r.length>1&&o instanceof di&&o.value===""&&r.pop(),i<t.constant.length)return me(t.constant[i]).callFn([...e,...r],n);if(t.variable!==null)return me(t.variable).callFn([...e,or(r)],n);throw new Error("AssertionError: unable to call variadic function")}function Zot(t,e,r,n){return gs(qH(t,e,r,n).toStmt())}var Xot=new Map([["window",T.resolveWindow],["document",T.resolveDocument],["body",T.resolveBody]]),Jot=new Map([["class","className"],["for","htmlFor"],["formaction","formAction"],["innerHtml","innerHTML"],["readonly","readOnly"],["tabindex","tabIndex"]]);function est(t){for(let e of t.units)tst(e,e.create),_3(e,e.update)}function tst(t,e){for(let r of e)switch(en(r,n=>N0e(t,n),ot.None),r.kind){case v.Text:L.replace(r,Xit(r.handle.slot,r.initialValue,r.sourceSpan));break;case v.ElementStart:L.replace(r,t.job.mode===Ji.DomOnly?xot(r.handle.slot,r.tag,r.attributes,r.localRefs,r.startSourceSpan):Dit(r.handle.slot,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.Element:L.replace(r,t.job.mode===Ji.DomOnly?Aot(r.handle.slot,r.tag,r.attributes,r.localRefs,r.wholeSourceSpan):Nit(r.handle.slot,r.tag,r.attributes,r.localRefs,r.wholeSourceSpan));break;case v.ElementEnd:L.replace(r,t.job.mode===Ji.DomOnly?Cot(r.sourceSpan):Mit(r.sourceSpan));break;case v.ContainerStart:L.replace(r,t.job.mode===Ji.DomOnly?Oot(r.handle.slot,r.attributes,r.localRefs,r.startSourceSpan):kit(r.handle.slot,r.attributes,r.localRefs,r.startSourceSpan));break;case v.Container:L.replace(r,t.job.mode===Ji.DomOnly?Pot(r.handle.slot,r.attributes,r.localRefs,r.wholeSourceSpan):Rit(r.handle.slot,r.attributes,r.localRefs,r.wholeSourceSpan));break;case v.ContainerEnd:L.replace(r,t.job.mode===Ji.DomOnly?Not():Lit());break;case v.I18nStart:L.replace(r,iot(r.handle.slot,r.messageIndex,r.subTemplateIndex,r.sourceSpan));break;case v.I18nEnd:L.replace(r,hot(r.sourceSpan));break;case v.I18n:L.replace(r,pot(r.handle.slot,r.messageIndex,r.subTemplateIndex,r.sourceSpan));break;case v.I18nAttributes:if(r.i18nAttributesConfig===null)throw new Error("AssertionError: i18nAttributesConfig was not set");L.replace(r,mot(r.handle.slot,r.i18nAttributesConfig));break;case v.Template:if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(r.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let n=t.job.views.get(r.xref);L.replace(r,r.templateKind===no.Block||t.job.mode===Ji.DomOnly?Mot(r.handle.slot,pt(n.fnName),n.decls,n.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan):$it(r.handle.slot,pt(n.fnName),n.decls,n.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.DisableBindings:L.replace(r,Fit());break;case v.EnableBindings:L.replace(r,jit());break;case v.Pipe:L.replace(r,Uit(r.handle.slot,r.name));break;case v.DeclareLet:L.replace(r,lot(r.handle.slot,r.sourceSpan));break;case v.AnimationString:L.replace(r,Bot(r.animationKind,r.expression,r.sanitizer,r.sourceSpan));break;case v.Animation:let i=HD(t,r.handlerFnName,r.handlerOps,!1);L.replace(r,qot(r.animationKind,i,r.sanitizer,r.sourceSpan));break;case v.AnimationListener:let o=HD(t,r.handlerFnName,r.handlerOps,r.consumesDollarEvent);L.replace(r,Uot(r.animationKind,o,null,r.sourceSpan));break;case v.Listener:let s=HD(t,r.handlerFnName,r.handlerOps,r.consumesDollarEvent),a=r.eventTarget?Xot.get(r.eventTarget):null;if(a===void 0)throw new Error(`Unexpected global target '${r.eventTarget}' defined for '${r.name}' event. Supported list of global targets: window,document,body.`);L.replace(r,t.job.mode===Ji.DomOnly&&!r.hostListener&&!r.isLegacyAnimationListener?Dot(r.name,s,a,r.sourceSpan):qit(r.name,s,a,r.hostListener&&r.isLegacyAnimationListener,r.sourceSpan));break;case v.TwoWayListener:L.replace(r,Bit(r.name,HD(t,r.handlerFnName,r.handlerOps,!0),r.sourceSpan));break;case v.Variable:if(r.variable.name===null)throw new Error(`AssertionError: unnamed variable ${r.xref}`);L.replace(r,gs(new Ln(r.variable.name,r.initializer,void 0,Xn.Final)));break;case v.Namespace:switch(r.active){case fn.HTML:L.replace(r,Vit());break;case fn.SVG:L.replace(r,Hit());break;case fn.Math:L.replace(r,Git());break}break;case v.Defer:let u=!!r.loadingMinimumTime||!!r.loadingAfterTime||!!r.placeholderMinimumTime;L.replace(r,Jit(r.handle.slot,r.mainSlot.slot,r.resolverFn,r.loadingSlot?.slot??null,r.placeholderSlot?.slot??null,r.errorSlot?.slot??null,r.loadingConfig,r.placeholderConfig,u,r.sourceSpan,r.flags));break;case v.DeferOn:let c=[];switch(r.trigger.kind){case ir.Never:case ir.Idle:case ir.Immediate:break;case ir.Timer:c=[C(r.trigger.delay)];break;case ir.Viewport:r.modifier==="hydrate"?c=r.trigger.options?[r.trigger.options]:[]:(c=[C(r.trigger.targetSlot?.slot??null)],r.trigger.targetSlotViewSteps!==0?c.push(C(r.trigger.targetSlotViewSteps)):r.trigger.options&&c.push(C(null)),r.trigger.options&&c.push(r.trigger.options));break;case ir.Interaction:case ir.Hover:r.modifier==="hydrate"?c=[]:(c=[C(r.trigger.targetSlot?.slot??null)],r.trigger.targetSlotViewSteps!==0&&c.push(C(r.trigger.targetSlotViewSteps)));break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${r.trigger.kind}`)}L.replace(r,tot(r.trigger.kind,c,r.modifier,r.sourceSpan));break;case v.ProjectionDef:L.replace(r,rot(r.def));break;case v.Projection:if(r.handle.slot===null)throw new Error("No slot was assigned for project instruction");let l=null,d=null,f=null;if(r.fallbackView!==null){if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");let x=t.job.views.get(r.fallbackView);if(x===void 0)throw new Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(x.fnName===null||x.decls===null||x.vars===null)throw new Error("AssertionError: expected projection fallback view to have been named and counted");l=x.fnName,d=x.decls,f=x.vars}L.replace(r,not(r.handle.slot,r.projectionSlotIndex,r.attributes,l,d,f,r.sourceSpan));break;case v.ConditionalCreate:if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(r.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let p=t.job.views.get(r.xref);L.replace(r,oot(r.handle.slot,pt(p.fnName),p.decls,p.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.ConditionalBranchCreate:if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(r.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let m=t.job.views.get(r.xref);L.replace(r,sot(r.handle.slot,pt(m.fnName),m.decls,m.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.RepeaterCreate:if(r.handle.slot===null)throw new Error("No slot was assigned for repeater instruction");if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");let y=t.job.views.get(r.xref);if(y.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let g=null,_=null,b=null;if(r.emptyView!==null){let x=t.job.views.get(r.emptyView);if(x===void 0)throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");if(x.fnName===null||x.decls===null||x.vars===null)throw new Error("AssertionError: expected repeater empty view to have been named and counted");g=x.fnName,_=x.decls,b=x.vars}L.replace(r,aot(r.handle.slot,y.fnName,r.decls,r.vars,r.tag,r.attributes,ist(t,r),r.usesComponentInstance,g,_,b,r.emptyTag,r.emptyAttributes,r.wholeSourceSpan));break;case v.SourceLocation:let S=or(r.locations.map(({targetSlot:x,offset:N,line:z,column:Ee})=>{if(x.slot===null)throw new Error("No slot was assigned for source location");return or([C(x.slot),C(N),C(z),C(Ee)])}));L.replace(r,Got(r.templatePath,S));break;case v.ControlCreate:L.replace(r,_ot(r.sourceSpan));break;case v.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${v[r.kind]}`)}}function _3(t,e){for(let r of e)switch(en(r,n=>N0e(t,n),ot.None),r.kind){case v.Advance:L.replace(r,Wit(r.delta,r.sourceSpan));break;case v.Property:L.replace(r,t.job.mode===Ji.DomOnly&&r.bindingKind!==ve.LegacyAnimation&&r.bindingKind!==ve.Animation?Wge(r):rst(r));break;case v.Control:L.replace(r,nst(r));break;case v.TwoWayProperty:L.replace(r,bot(r.name,r.expression,r.sanitizer,r.sourceSpan));break;case v.StyleProp:L.replace(r,Sot(r.name,r.expression,r.unit,r.sourceSpan));break;case v.ClassProp:L.replace(r,Tot(r.name,r.expression,r.sourceSpan));break;case v.StyleMap:L.replace(r,wot(r.expression,r.sourceSpan));break;case v.ClassMap:L.replace(r,Iot(r.expression,r.sourceSpan));break;case v.I18nExpression:L.replace(r,$ot(r.expression,r.sourceSpan));break;case v.I18nApply:L.replace(r,Fot(r.handle.slot,r.sourceSpan));break;case v.InterpolateText:L.replace(r,Lot(r.interpolation.strings,r.interpolation.expressions,r.sourceSpan));break;case v.Attribute:L.replace(r,Eot(r.name,r.expression,r.sanitizer,r.namespace,r.sourceSpan));break;case v.DomProperty:if(r.expression instanceof Jr)throw new Error("not yet handled");r.bindingKind===ve.LegacyAnimation||r.bindingKind===ve.Animation?L.replace(r,Vot(r.name,r.expression,r.sourceSpan)):L.replace(r,Wge(r));break;case v.Variable:if(r.variable.name===null)throw new Error(`AssertionError: unnamed variable ${r.xref}`);L.replace(r,gs(new Ln(r.variable.name,r.initializer,void 0,Xn.Final)));break;case v.Conditional:if(r.processed===null)throw new Error("Conditional test was not set.");L.replace(r,Kot(r.processed,r.contextValue,r.sourceSpan));break;case v.Repeater:L.replace(r,uot(r.collection,r.sourceSpan));break;case v.DeferWhen:L.replace(r,cot(r.modifier,r.expr,r.sourceSpan));break;case v.StoreLet:throw new Error(`AssertionError: unexpected storeLet ${r.declaredName}`);case v.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of update op ${v[r.kind]}`)}}function Wge(t){return jot(Jot.get(t.name)??t.name,t.expression,t.sanitizer,t.sourceSpan)}function rst(t){return m0e(t.name)?got(t.name,t.expression,t.sourceSpan):yot(t.name,t.expression,t.sanitizer,t.sourceSpan)}function nst(t){return vot(t.sourceSpan)}function N0e(t,e){if(!dl(e))return e;switch(e.kind){case we.NextContext:return zit(e.steps);case we.Reference:return Kit(e.targetSlot.slot+1+e.offset);case we.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${e.name}`);case we.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case we.RestoreView:if(typeof e.view=="number")throw new Error("AssertionError: unresolved RestoreView");return Yit(e.view);case we.ResetView:return Zit(e.expr);case we.GetCurrentView:return Qit();case we.ReadVariable:if(e.name===null)throw new Error(`Read of unnamed variable ${e.xref}`);return pt(e.name);case we.ReadTemporaryExpr:if(e.name===null)throw new Error(`Read of unnamed temporary ${e.xref}`);return pt(e.name);case we.AssignTemporaryExpr:if(e.name===null)throw new Error(`Assign of unnamed temporary ${e.xref}`);return pt(e.name).set(e.expr);case we.PureFunctionExpr:if(e.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return Hot(e.varOffset,e.fn,e.args);case we.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case we.PipeBinding:return kot(e.targetSlot.slot,e.varOffset,e.args);case we.PipeBindingVariadic:return Rot(e.targetSlot.slot,e.varOffset,e.args);case we.SlotLiteralExpr:return C(e.slot.slot);case we.ContextLetReference:return fot(e.targetSlot.slot);case we.StoreLet:return dot(e.value,e.sourceSpan);case we.TrackContext:return pt("this");case we.ArrowFunction:if(e.varOffset===null)throw new Error("AssertionError: variable offset was not assigned to arrow function");return Wot(e.varOffset,t.job.pool.getSharedFunctionReference(ost(t,e),"arrowFn"),pt(ms));default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${we[e.kind]}`)}}function HD(t,e,r,n){_3(t,r);let i=[];for(let s of r){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${v[s.kind]}`);i.push(s.statement)}let o=[];return n&&o.push(new In("$event",Co)),Lp(o,i,void 0,void 0,e)}function ist(t,e){if(e.trackByFn!==null)return e.trackByFn;let r=[new In("$index",iy),new In("$item",Co)],n;if(e.trackByOps===null)n=e.usesComponentInstance?Lp(r,[new An(e.track)]):hs(r,e.track);else{_3(t,e.trackByOps);let i=[];for(let o of e.trackByOps){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${v[o.kind]}`);i.push(o.statement)}n=e.usesComponentInstance||i.length!==1||!(i[0]instanceof An)?Lp(r,i):hs(r,i[0].value)}return e.trackByFn=t.job.pool.getSharedFunctionReference(n,"_forTrack"),e.trackByFn}function ost(t,e){_3(t,e.ops);let r=[];for(let i of e.ops){if(i.kind!==v.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${v[i.kind]}`);r.push(i.statement)}let n=r.length===1&&r[0]instanceof An?r[0].value:r;return hs([new In(e.contextName,Co),new In(e.currentViewName,Co)],hs(e.parameters,n))}function sst(t){for(let e of t.units)for(let r of e.update)switch(r.kind){case v.Attribute:case v.Binding:case v.ClassProp:case v.ClassMap:case v.Property:case v.StyleProp:case v.StyleMap:r.expression instanceof qw&&L.remove(r);break}}function ast(t){for(let e of t.units)for(let r of e.create)switch(r.kind){case v.I18nContext:L.remove(r);break;case v.I18nStart:r.context=null;break}}function ust(t){for(let e of t.units)for(let r of e.update){if(r.kind!==v.Variable||r.variable.kind!==Rn.Identifier||!(r.initializer instanceof Lw))continue;let n=r.variable.identifier,i=r;for(;i&&i.kind!==v.ListEnd;)en(i,o=>o instanceof Yn&&o.name===n?C(void 0):o,ot.None),i=i.prev}}function cst(t){for(let e of t.units){let r=new Set;for(let n of e.update)n.kind===v.I18nExpression&&r.add(n.i18nOwner);for(let n of e.create)switch(n.kind){case v.I18nAttributes:if(r.has(n.xref))continue;L.remove(n)}}}function lst(t){for(let e of t.units){for(let r of e.functions)YT(e,r.ops);YT(e,e.create),YT(e,e.update)}}function YT(t,e){let r=new Map;r.set(t.xref,pt(ms));for(let n of e)switch(n.kind){case v.Variable:n.variable.kind===Rn.Context&&r.set(n.variable.view,new Pd(n.xref));break;case v.Animation:case v.AnimationListener:case v.Listener:case v.TwoWayListener:YT(t,n.handlerOps);break;case v.RepeaterCreate:n.trackByOps!==null&&YT(t,n.trackByOps);break}t===t.job.root&&r.set(t.xref,pt(ms));for(let n of e)en(n,i=>{if(i instanceof Up){if(!r.has(i.view))throw new Error(`No context found for reference to view ${i.view} from view ${t.xref}`);return r.get(i.view)}else return i},ot.None)}function dst(t){for(let e of t.units)for(let r of e.create)if(r.kind===v.Defer){if(r.resolverFn!==null)continue;if(r.ownResolverFn!==null){if(r.handle.slot===null)throw new Error("AssertionError: slot must be assigned before extracting defer deps functions");let n=e.fnName?.replace("_Template","");r.resolverFn=t.pool.getSharedFunctionReference(r.ownResolverFn,`${n}_Defer_${r.handle.slot}_DepsFn`,!1)}}}function fst(t){for(let e of t.units)Kge(e.create),Kge(e.update)}function Kge(t){for(let e of t)(e.kind===v.Listener||e.kind===v.TwoWayListener||e.kind===v.AnimationListener)&&en(e,r=>r instanceof Yn&&r.name==="$event"?((e.kind===v.Listener||e.kind===v.AnimationListener)&&(e.consumesDollarEvent=!0),new Ra(r.name)):r,ot.InChildOperation)}function pst(t){let e=new Map,r=new Map;for(let n of t.units)for(let i of n.create)switch(i.kind){case v.I18nContext:e.set(i.xref,i);break;case v.ElementStart:r.set(i.xref,i);break}Zc(t,t.root,e,r)}function Zc(t,e,r,n,i){let o=null,s=new Map;for(let a of e.create)switch(a.kind){case v.I18nStart:if(!a.context)throw Error("Could not find i18n context for i18n op");o={i18nBlock:a,i18nContext:r.get(a.context)};break;case v.I18nEnd:o=null;break;case v.ElementStart:if(a.i18nPlaceholder!==void 0){if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");zge(a,o.i18nContext,o.i18nBlock,i),i&&a.i18nPlaceholder.closeName&&s.set(a.xref,i),i=void 0}break;case v.ElementEnd:let u=n.get(a.xref);if(u&&u.i18nPlaceholder!==void 0){if(o===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");Qge(u,o.i18nContext,o.i18nBlock,s.get(a.xref)),s.delete(a.xref)}break;case v.Projection:if(a.i18nPlaceholder!==void 0){if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");zge(a,o.i18nContext,o.i18nBlock,i),Qge(a,o.i18nContext,o.i18nBlock,i),i=void 0}if(a.fallbackView!==null){let f=t.views.get(a.fallbackView);if(a.fallbackViewI18nPlaceholder===void 0)Zc(t,f,r,n);else{if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");GD(t,f,a.handle.slot,a.fallbackViewI18nPlaceholder,o.i18nContext,o.i18nBlock,i),Zc(t,f,r,n),WD(t,f,a.handle.slot,a.fallbackViewI18nPlaceholder,o.i18nContext,o.i18nBlock,i),i=void 0}}break;case v.ConditionalCreate:case v.ConditionalBranchCreate:case v.Template:let c=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)Zc(t,c,r,n);else{if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===no.Structural?Zc(t,c,r,n,a):(GD(t,c,a.handle.slot,a.i18nPlaceholder,o.i18nContext,o.i18nBlock,i),Zc(t,c,r,n),WD(t,c,a.handle.slot,a.i18nPlaceholder,o.i18nContext,o.i18nBlock,i),i=void 0)}break;case v.RepeaterCreate:if(i!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let l=a.handle.slot+1,d=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)Zc(t,d,r,n);else{if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");GD(t,d,l,a.i18nPlaceholder,o.i18nContext,o.i18nBlock,i),Zc(t,d,r,n),WD(t,d,l,a.i18nPlaceholder,o.i18nContext,o.i18nBlock,i),i=void 0}if(a.emptyView!==null){let f=a.handle.slot+2,p=t.views.get(a.emptyView);if(a.emptyI18nPlaceholder===void 0)Zc(t,p,r,n);else{if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");GD(t,p,f,a.emptyI18nPlaceholder,o.i18nContext,o.i18nBlock,i),Zc(t,p,r,n),WD(t,p,f,a.emptyI18nPlaceholder,o.i18nContext,o.i18nBlock,i),i=void 0}}break}}function zge(t,e,r,n){let{startName:i,closeName:o}=t.i18nPlaceholder,s=fr.ElementTag|fr.OpenTag,a=t.handle.slot;n!==void 0&&(s|=fr.TemplateTag,a={element:a,template:n.handle.slot}),o||(s|=fr.CloseTag),bb(e.params,i,a,r.subTemplateIndex,s)}function Qge(t,e,r,n){let{closeName:i}=t.i18nPlaceholder;if(i){let o=fr.ElementTag|fr.CloseTag,s=t.handle.slot;n!==void 0&&(o|=fr.TemplateTag,s={element:s,template:n.handle.slot}),bb(e.params,i,s,r.subTemplateIndex,o)}}function GD(t,e,r,n,i,o,s){let{startName:a,closeName:u}=n,c=fr.TemplateTag|fr.OpenTag;u||(c|=fr.CloseTag),s!==void 0&&bb(i.params,a,s.handle.slot,o.subTemplateIndex,c),bb(i.params,a,r,D0e(t,o,e),c)}function WD(t,e,r,n,i,o,s){let{closeName:a}=n,u=fr.TemplateTag|fr.CloseTag;a&&(bb(i.params,a,r,D0e(t,o,e),u),s!==void 0&&bb(i.params,a,s.handle.slot,o.subTemplateIndex,u))}function D0e(t,e,r){for(let n of r.create)if(n.kind===v.I18nStart)return n.subTemplateIndex;return e.subTemplateIndex}function bb(t,e,r,n,i){let o=t.get(e)??[];o.push({value:r,subTemplateIndex:n,flags:i}),t.set(e,o)}function hst(t){let e=new Map,r=new Map,n=new Map;for(let s of t.units)for(let a of s.create)switch(a.kind){case v.I18nStart:e.set(a.xref,a.subTemplateIndex);break;case v.I18nContext:r.set(a.xref,a);break;case v.IcuPlaceholder:n.set(a.xref,a);break}let i=new Map,o=s=>s.usage===my.I18nText?s.i18nOwner:s.context;for(let s of t.units)for(let a of s.update)if(a.kind===v.I18nExpression){let u=i.get(o(a))||0,c=e.get(a.i18nOwner)??null,l={value:u,subTemplateIndex:c,flags:fr.ExpressionIndex};mst(a,l,r,n),i.set(o(a),u+1)}}function mst(t,e,r,n){if(t.i18nPlaceholder!==null){let i=r.get(t.context),o=t.resolutionTime===hb.Creation?i.params:i.postprocessingParams,s=o.get(t.i18nPlaceholder)||[];s.push(e),o.set(t.i18nPlaceholder,s)}t.icuPlaceholder!==null&&n.get(t.icuPlaceholder)?.expressionPlaceholders.push(e)}function gst(t){let e=new Map;for(let r of t.units)for(let n of r.ops())if(n.kind===v.ElementStart||n.kind===v.Template){let i=n.tag??"";switch(n.namespace){case fn.SVG:i=`:${y3}:${i}`;break;case fn.Math:i=`:${v3}:${i}`;break}e.set(n.xref,i)}for(let r of t.units)for(let n of r.create)if(n.kind===v.ExtractedAttribute&&n.i18nContext!==null&&n.expression!==null){let i=e.get(n.target)??"",o=n.expression;switch(n.securityContext){case ft.HTML:o=me(T.sanitizeHtml).callFn([o]);break;case ft.STYLE:o=me(T.sanitizeStyle).callFn([o]);break;case ft.SCRIPT:o=me(T.sanitizeScript).callFn([o]);break;case ft.URL:o=me(T.sanitizeUrl).callFn([o]);break;case ft.RESOURCE_URL:o=me(T.sanitizeResourceUrl).callFn([o]);break;case ft.ATTRIBUTE_NO_BINDING:o=me(T.validateAttribute).callFn([o,C(i),C(n.name)]);break}n.expression=o}}function yst(t){for(let e of t.units){for(let r of e.functions)ZT(e,r.ops,null);ZT(e,e.create,null),ZT(e,e.update,null)}}function ZT(t,e,r){let n=new Map,i=new Map;for(let o of e)switch(o.kind){case v.Variable:switch(o.variable.kind){case Rn.Identifier:if(o.variable.local){if(i.has(o.variable.identifier))continue;i.set(o.variable.identifier,o.xref)}else if(n.has(o.variable.identifier))continue;n.set(o.variable.identifier,o.xref);break;case Rn.Alias:if(n.has(o.variable.identifier))continue;n.set(o.variable.identifier,o.xref);break;case Rn.SavedView:r={view:o.variable.view,variable:o.xref};break}break;case v.Animation:case v.AnimationListener:case v.Listener:case v.TwoWayListener:ZT(t,o.handlerOps,r);break;case v.RepeaterCreate:o.trackByOps!==null&&ZT(t,o.trackByOps,r);break}for(let o of e)o.kind===v.Listener||o.kind===v.TwoWayListener||o.kind===v.Animation||o.kind===v.AnimationListener||en(o,s=>{if(s instanceof Yn)return i.has(s.name)?new Pd(i.get(s.name)):n.has(s.name)?new Pd(n.get(s.name)):new ps(new Up(t.job.root.xref),s.name);if(s instanceof Fw&&typeof s.view=="number"){if(r===null||r.view!==s.view)throw new Error(`AssertionError: no saved view ${s.view} from view ${t.xref}`);return s.view=new Pd(r.variable),s}else return s},ot.None);for(let o of e)pn(o,s=>{if(s instanceof Yn)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${s.name}`)})}var vst=new Map([[ft.HTML,T.sanitizeHtml],[ft.RESOURCE_URL,T.sanitizeResourceUrl],[ft.SCRIPT,T.sanitizeScript],[ft.STYLE,T.sanitizeStyle],[ft.URL,T.sanitizeUrl],[ft.ATTRIBUTE_NO_BINDING,T.validateAttribute]]),_st=new Map([[ft.HTML,T.trustConstantHtml],[ft.RESOURCE_URL,T.trustConstantResourceUrl]]);function bst(t){for(let e of t.units){if(t.kind!==ue.Host){for(let r of e.create)if(r.kind===v.ExtractedAttribute){let n=_st.get(Yge(r.securityContext))??null;r.trustedValueFn=n!==null?me(n):null}}for(let r of e.update)switch(r.kind){case v.Property:case v.Attribute:case v.DomProperty:case v.TwoWayProperty:let n=null;Array.isArray(r.securityContext)&&Est(r.securityContext)?n=T.sanitizeUrlOrResourceUrl:n=vst.get(Yge(r.securityContext))??null,r.sanitizer=n!==null?me(n):null;break}}}function Est(t){let e=!1,r=!1,n=!1;for(let i of t)switch(i){case ft.URL:e=!0;break;case ft.RESOURCE_URL:r=!0;break;case ft.NONE:n=!0;break;default:return!1}return(e||r)&&n||e&&r}function Yge(t){if(!Array.isArray(t))return t;if(t.length<2)return t[0]??ft.NONE;let e=t.filter(r=>r!==ft.NONE);if(e.length>1)throw Error("AssertionError: Ambiguous security context");return e[0]??ft.NONE}function Sst(t){for(let e of t.units){for(let r of e.functions)Zge(t,e,r.ops)&&Xge(e,r.ops,pt(r.currentViewName));e.create.prepend([Np(e.job.allocateXrefId(),{kind:Rn.SavedView,name:null,view:e.xref},new MV,cs.None)]);for(let r of e.create)(r.kind===v.Listener||r.kind===v.TwoWayListener||r.kind===v.Animation||r.kind===v.AnimationListener)&&Zge(t,e,r.handlerOps)&&Xge(e,r.handlerOps,e.xref)}}function Zge(t,e,r){let n=e!==t.root;if(!n)for(let i of r)pn(i,o=>{(o instanceof FM||o instanceof $w)&&(n=!0)});return n}function Xge(t,e,r){e.prepend([Np(t.job.allocateXrefId(),{kind:Rn.Context,name:null,view:t.xref},new Fw(r),cs.None)]);for(let n of e)n.kind===v.Statement&&n.statement instanceof An&&(n.statement.value=new qM(n.statement.value))}function Tst(t){let e=new Map;for(let r of t.units){let n=0;for(let i of r.create)Tb(i)&&(i.handle.slot=n,e.set(i.xref,i.handle.slot),n+=i.numSlotsUsed);r.decls=n}for(let r of t.units)for(let n of r.ops())if(n.kind===v.Template||n.kind===v.ConditionalCreate||n.kind===v.ConditionalBranchCreate||n.kind===v.RepeaterCreate){let i=t.views.get(n.xref);n.decls=i.decls}}function wst(t){let e=new Set,r=new Map;for(let n of t.units)for(let i of n.ops())i.kind===v.DeclareLet&&r.set(i.xref,i),pn(i,o=>{o instanceof $w&&e.add(o.target)});for(let n of t.units)for(let i of n.update)en(i,o=>o instanceof Lw&&!e.has(o.target)?(Ist(o)||L.remove(r.get(o.target)),o.value):o,ot.None)}function Ist(t){let e=!1;return pe(t,r=>((r instanceof vy||r instanceof jw)&&(e=!0),r),ot.None),e}function Ast(t){let e=new Set;for(let r of t.units)for(let n of r.ops())pn(n,i=>{if(i instanceof wt)switch(i.operator){case V.Exponentiation:xst(i,e);break;case V.NullishCoalesce:Cst(i,e);break;case V.And:case V.Or:Ost(i,e)}});for(let r of t.units)for(let n of r.ops())en(n,i=>i instanceof La?e.has(i)?i:i.expr:i,ot.None)}function xst(t,e){t.lhs instanceof La&&t.lhs.expr instanceof sy&&e.add(t.lhs)}function Cst(t,e){t.lhs instanceof La&&(Jge(t.lhs.expr)||t.lhs.expr instanceof sl)&&e.add(t.lhs),t.rhs instanceof La&&(Jge(t.rhs.expr)||t.rhs.expr instanceof sl)&&e.add(t.rhs)}function Ost(t,e){t.lhs instanceof La&&t.lhs.expr instanceof wt&&t.lhs.expr.operator===V.NullishCoalesce&&e.add(t.lhs)}function Jge(t){return t instanceof wt&&(t.operator===V.And||t.operator===V.Or)}function Pst(t){for(let e of t.units)for(let r of e.update)if(r.kind===v.Binding)switch(r.bindingKind){case ve.ClassName:if(r.expression instanceof Jr)throw new Error("Unexpected interpolation in ClassName binding");L.replace(r,Zet(r.target,r.name,r.expression,r.sourceSpan));break;case ve.StyleProperty:L.replace(r,Yet(r.target,r.name,r.expression,r.unit,r.sourceSpan));break;case ve.Property:case ve.Template:r.name==="style"?L.replace(r,Xet(r.target,r.expression,r.sourceSpan)):r.name==="class"&&L.replace(r,Jet(r.target,r.expression,r.sourceSpan));break}}function Nst(t){for(let e of t.units){e.create.prepend(XT(e.create)),e.update.prepend(XT(e.update));for(let r of e.functions)r.ops.prepend(XT(r.ops))}}function XT(t){let e=0,r=[];for(let n of t){let i=new Map;pn(n,(c,l)=>{l&ot.InChildOperation||c instanceof Hp&&i.set(c.xref,c)});let o=0,s=new Set,a=new Set,u=new Map;pn(n,(c,l)=>{l&ot.InChildOperation||(c instanceof fl?(s.has(c.xref)||(s.add(c.xref),u.set(c.xref,`tmp_${e}_${o++}`)),eye(u,c)):c instanceof Hp&&(i.get(c.xref)===c&&(a.add(c.xref),o--),eye(u,c)))}),r.push(...Array.from(new Set(u.values())).map(c=>gs(new Ln(c)))),e++,n.kind===v.Listener||n.kind===v.Animation||n.kind===v.AnimationListener||n.kind===v.TwoWayListener?n.handlerOps.prepend(XT(n.handlerOps)):n.kind===v.RepeaterCreate&&n.trackByOps!==null&&n.trackByOps.prepend(XT(n.trackByOps))}return r}function eye(t,e){let r=t.get(e.xref);if(r===void 0)throw new Error(`Found xref with unassigned name: ${e.xref}`);e.name=r}function Dst(t){for(let e of t.units)for(let r of e.create)if(r.kind===v.RepeaterCreate)if(r.track instanceof Ra&&r.track.name==="$index")r.trackByFn=me(T.repeaterTrackByIndex);else if(r.track instanceof Ra&&r.track.name==="$item")r.trackByFn=me(T.repeaterTrackByIdentity);else if(Mst(t.root.xref,r.track))r.usesComponentInstance=!0,r.track.receiver.receiver.view===e.xref?r.trackByFn=r.track.receiver:(r.trackByFn=me(T.componentInstance).callFn([]).prop(r.track.receiver.name),r.track=r.trackByFn);else{r.track=pe(r.track,i=>{if(i instanceof vy||i instanceof jw)throw new Error("Illegal State: Pipes are not allowed in this context");return i instanceof Up?(r.usesComponentInstance=!0,new DV(i.view)):i},ot.None);let n=new L;n.push(gs(new An(r.track,r.track.sourceSpan))),r.trackByOps=n}}function Mst(t,e){if(!(e instanceof Oo)||e.args.length===0||e.args.length>2||!(e.receiver instanceof ps&&e.receiver.receiver instanceof Up)||e.receiver.receiver.view!==t)return!1;let[r,n]=e.args;return!(r instanceof Ra)||r.name!=="$index"?!1:e.args.length===1?!0:!(!(n instanceof Ra)||n.name!=="$item")}function kst(t){for(let e of t.units)for(let r of e.create)r.kind===v.RepeaterCreate&&(r.track=pe(r.track,n=>{if(n instanceof Yn){if(r.varNames.$index.has(n.name))return pt("$index");if(n.name===r.varNames.$implicit)return pt("$item")}return n},ot.None))}function Rst(t){for(let e of t.units)for(let r of e.create)r.kind===v.TwoWayListener&&en(r,n=>{if(!(n instanceof BM))return n;let{target:i,value:o}=n;if(i instanceof ps||i instanceof Dd)return Hge(i,o).or(i.set(o));if(i instanceof Pd)return Hge(i,o);throw new Error("Unsupported expression in two-way action binding.")},ot.InChildOperation)}function Lst(t){for(let e of t.units){let r=0;for(let o of e.ops())MU(o)&&(r+=$st(o));let n=o=>{dl(o)&&(o instanceof yy||(age(o)&&(o.varOffset=r),MU(o)&&(r+=tye(o))))},i=o=>{!dl(o)||!(o instanceof yy)||(age(o)&&(o.varOffset=r),MU(o)&&(r+=tye(o)))};for(let o of e.create)pn(o,n);for(let o of e.update)pn(o,n);for(let o of e.create)pn(o,i);for(let o of e.update)pn(o,i);e.vars=r}if(t instanceof Uw)for(let e of t.units)for(let r of e.create){if(r.kind!==v.Template&&r.kind!==v.RepeaterCreate&&r.kind!==v.ConditionalCreate&&r.kind!==v.ConditionalBranchCreate)continue;let n=t.views.get(r.xref);r.vars=n.vars}}function $st(t){let e;switch(t.kind){case v.Attribute:return e=1,t.expression instanceof Jr&&!Fst(t.expression)&&(e+=t.expression.expressions.length),e;case v.Property:case v.DomProperty:return e=1,t.expression instanceof Jr&&(e+=t.expression.expressions.length),e;case v.Control:return 2;case v.TwoWayProperty:return 1;case v.StyleProp:case v.ClassProp:case v.StyleMap:case v.ClassMap:return e=2,t.expression instanceof Jr&&(e+=t.expression.expressions.length),e;case v.InterpolateText:return t.interpolation.expressions.length;case v.I18nExpression:case v.Conditional:case v.DeferWhen:case v.StoreLet:return 1;case v.RepeaterCreate:return t.emptyView?1:0;default:throw new Error(`Unhandled op: ${v[t.kind]}`)}}function tye(t){switch(t.kind){case we.PureFunctionExpr:return 1+t.args.length;case we.PipeBinding:return 1+t.args.length;case we.PipeBindingVariadic:return 1+t.numArgs;case we.StoreLet:case we.ArrowFunction:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${t.constructor.name}`)}}function Fst(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function jst(t){for(let e of t.units){for(let r of e.functions)$T(r.ops);$T(e.create),$T(e.update);for(let r of e.create)r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener?$T(r.handlerOps):r.kind===v.RepeaterCreate&&r.trackByOps!==null&&$T(r.trackByOps);for(let r of e.functions)FT(r.ops,null),rye(r.ops);for(let r of e.create)r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener?(FT(r.handlerOps,KD),rye(r.handlerOps)):r.kind===v.RepeaterCreate&&r.trackByOps!==null&&FT(r.trackByOps,KD);FT(e.create,KD),FT(e.update,KD)}}var wn;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})(wn||(wn={}));function KD(t){return!(t&ot.InArrowFunctionOperation)}function $T(t){let e=new Map;for(let r of t)r.kind===v.Variable&&r.flags&cs.AlwaysInline&&(pn(r,n=>{if(dl(n)&&BH(n)!==wn.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(r.xref,r)),en(r,n=>n instanceof Pd&&e.has(n.xref)?e.get(n.xref).initializer.clone():n,ot.None);for(let r of e.values())L.remove(r)}function FT(t,e){let r=new Map,n=new Map,i=new Set,o=new Map;for(let c of t){if(c.kind===v.Variable){if(r.has(c.xref)||n.has(c.xref))throw new Error(`Should not see two declarations of the same variable: ${c.xref}`);r.set(c.xref,c),n.set(c.xref,0)}o.set(c,qst(c,e)),Bst(c,n,i,e)}let s=!1;for(let c of t.reversed()){let l=o.get(c);if(c.kind===v.Variable&&n.get(c.xref)===0){if(s&&l.fences&wn.ViewContextWrite||l.fences&wn.SideEffectful){let d=gs(c.initializer.toStmt());o.set(d,l),L.replace(c,d)}else Ust(c,n),L.remove(c);o.delete(c),r.delete(c.xref),n.delete(c.xref);continue}l.fences&wn.ViewContextRead&&(s=!0)}let a=[];for(let[c,l]of n){let f=!!(r.get(c).flags&cs.AlwaysInline);l!==1||f||i.has(c)||a.push(c)}let u;for(;u=a.pop();){let c=r.get(u),l=o.get(c);if(!!(c.flags&cs.AlwaysInline))throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let f=c.next;f.kind!==v.ListEnd;f=f.next){let p=o.get(f);if(p.variablesUsed.has(u)){if(!Hst(c,f))break;if(Vst(u,c.initializer,f,l.fences)){p.variablesUsed.delete(u);for(let m of l.variablesUsed)p.variablesUsed.add(m);p.fences|=l.fences,r.delete(u),n.delete(u),o.delete(c),L.remove(c)}break}if(!M0e(p.fences,l.fences))break}}}function BH(t){switch(t.kind){case we.NextContext:return wn.ViewContextRead|wn.ViewContextWrite;case we.RestoreView:return wn.ViewContextRead|wn.ViewContextWrite|wn.SideEffectful;case we.StoreLet:return wn.SideEffectful;case we.Reference:case we.ContextLetReference:return wn.ViewContextRead;default:return wn.None}}function qst(t,e){let r=wn.None,n=new Set;return pn(t,(i,o)=>{!dl(i)||e!==null&&!e(o)||(i.kind===we.ReadVariable?n.add(i.xref):r|=BH(i))}),{fences:r,variablesUsed:n}}function Bst(t,e,r,n){pn(t,(i,o)=>{if(!dl(i)||n!==null&&!n(o)||i.kind!==we.ReadVariable)return;let s=e.get(i.xref);s!==void 0&&(e.set(i.xref,s+1),o&ot.InChildOperation&&r.add(i.xref))})}function Ust(t,e){pn(t,r=>{if(!dl(r)||r.kind!==we.ReadVariable)return;let n=e.get(r.xref);if(n!==void 0){if(n===0)throw new Error(`Inaccurate variable count: ${r.xref} - found another read but count is already 0`);e.set(r.xref,n-1)}})}function M0e(t,e){if(t&wn.ViewContextWrite){if(e&wn.ViewContextRead)return!1}else if(t&wn.ViewContextRead&&e&wn.ViewContextWrite)return!1;return!0}function Vst(t,e,r,n){let i=!1,o=!0;return en(r,(s,a)=>{if(!dl(s)||i||!o)return s;if(a&ot.InChildOperation&&n&wn.ViewContextRead)return s;switch(s.kind){case we.ReadVariable:if(s.xref===t)return i=!0,e;break;default:let u=BH(s);o=o&&M0e(u,n);break}return s},ot.None),i}function Hst(t,e){switch(t.variable.kind){case Rn.Identifier:return t.initializer instanceof Ra&&t.initializer.name===ms;case Rn.Context:return e.kind===v.Variable;default:return!0}}function rye(t){let e=t.head.next,r=t.tail.prev;e!==null&&r!==null&&e.next===r&&e.kind===v.Statement&&e.statement instanceof fi&&e.statement.expr instanceof Fw&&r.kind===v.Statement&&r.statement instanceof An&&r.statement.value instanceof qM&&(L.remove(e),r.statement.value=r.statement.value.expr)}function Gst(t){for(let e of t.units){let r=null,n=null;for(let i of e.create)switch(i.kind){case v.I18nStart:r=i;break;case v.I18nEnd:r=null;break;case v.IcuStart:r===null&&(n=t.allocateXrefId(),L.insertBefore(m3(n,i.message,void 0,null),i));break;case v.IcuEnd:n!==null&&(L.insertAfter(g3(n,null),i),n=null);break}}}function Wst(t){for(let e of t.units){for(let r of e.create)r.kind!==v.Animation&&r.kind!==v.AnimationListener&&r.kind!==v.Listener&&r.kind!==v.TwoWayListener&&nye(e,r);for(let r of e.update)nye(e,r)}}function nye(t,e){en(e,(r,n)=>{if(!(r instanceof Ey)||n&ot.InChildOperation)return r;if(Array.isArray(r.body))throw new Error("AssertionError: unexpected multi-line arrow function");let i=new kV(r.params,r.body);return t.functions.add(i),i},ot.None)}var Kst=new Set(["formField"]);function zst(t){for(let e of t.units)Qst(e)}function Qst(t){for(let e of t.update)e.kind===v.Property&&Kst.has(e.name)&&Jst(t,e)}var Yst=new Set([v.Container,v.ContainerStart,v.ContainerEnd,v.Element,v.ElementStart,v.ElementEnd,v.Template]);function Zst(t){return Yst.has(t.kind)}function Xst(t,e){let r=null;for(let n of t.create)!Zst(n)||n.xref!==e||(r=n);return r}function Jst(t,e){let r=Xst(t,e.target);if(r===null)throw new Error(`No create instruction found for control target ${e.target}`);let n=Itt(e.sourceSpan);L.insertAfter(n,r),L.insertAfter(ott(e.target,e.sourceSpan),e)}var eat=[{kind:ue.Tmpl,fn:yit},{kind:ue.Both,fn:Pit},{kind:ue.Host,fn:Ort},{kind:ue.Tmpl,fn:eit},{kind:ue.Tmpl,fn:wit},{kind:ue.Tmpl,fn:Gst},{kind:ue.Both,fn:Ztt},{kind:ue.Both,fn:Pst},{kind:ue.Both,fn:Ltt},{kind:ue.Tmpl,fn:zst},{kind:ue.Both,fn:Ktt},{kind:ue.Both,fn:Mtt},{kind:ue.Tmpl,fn:Ytt},{kind:ue.Both,fn:rit},{kind:ue.Tmpl,fn:sst},{kind:ue.Both,fn:jtt},{kind:ue.Both,fn:git},{kind:ue.Tmpl,fn:qtt},{kind:ue.Tmpl,fn:bit},{kind:ue.Tmpl,fn:Xtt},{kind:ue.Tmpl,fn:Tit},{kind:ue.Both,fn:Wst},{kind:ue.Both,fn:xit},{kind:ue.Tmpl,fn:Irt},{kind:ue.Tmpl,fn:wrt},{kind:ue.Tmpl,fn:Art},{kind:ue.Tmpl,fn:Sst},{kind:ue.Both,fn:xtt},{kind:ue.Both,fn:fst},{kind:ue.Tmpl,fn:kst},{kind:ue.Tmpl,fn:ust},{kind:ue.Both,fn:yst},{kind:ue.Tmpl,fn:Jtt},{kind:ue.Tmpl,fn:Rst},{kind:ue.Tmpl,fn:Dst},{kind:ue.Both,fn:lst},{kind:ue.Both,fn:bst},{kind:ue.Tmpl,fn:Xnt},{kind:ue.Both,fn:irt},{kind:ue.Both,fn:Ast},{kind:ue.Both,fn:Nst},{kind:ue.Both,fn:jst},{kind:ue.Both,fn:wst},{kind:ue.Tmpl,fn:Znt},{kind:ue.Tmpl,fn:Qtt},{kind:ue.Tmpl,fn:cst},{kind:ue.Tmpl,fn:Ntt},{kind:ue.Tmpl,fn:Ott},{kind:ue.Tmpl,fn:Tst},{kind:ue.Tmpl,fn:pst},{kind:ue.Tmpl,fn:hst},{kind:ue.Tmpl,fn:_rt},{kind:ue.Tmpl,fn:Wnt},{kind:ue.Tmpl,fn:gst},{kind:ue.Tmpl,fn:xrt},{kind:ue.Both,fn:Htt},{kind:ue.Tmpl,fn:ast},{kind:ue.Both,fn:Lst},{kind:ue.Tmpl,fn:Trt},{kind:ue.Both,fn:nit},{kind:ue.Tmpl,fn:dst},{kind:ue.Tmpl,fn:sit},{kind:ue.Tmpl,fn:uit},{kind:ue.Tmpl,fn:nrt},{kind:ue.Tmpl,fn:Dtt},{kind:ue.Tmpl,fn:lit},{kind:ue.Both,fn:Ait},{kind:ue.Both,fn:est},{kind:ue.Both,fn:Ftt}];function k0e(t,e){for(let r of eat)(r.kind===e||r.kind===ue.Both)&&r.fn(t)}function tat(t,e){let r=L0e(t.root);return R0e(t.root,e),r}function R0e(t,e){for(let r of t.job.units){if(r.parent!==t.xref)continue;R0e(r,e);let n=L0e(r);e.statements.push(n.toDeclStmt(n.name))}}function L0e(t){if(t.fnName===null)throw new Error(`AssertionError: view ${t.xref} is unnamed`);let e=[];for(let o of t.create){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${v[o.kind]}`);e.push(o.statement)}let r=[];for(let o of t.update){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${v[o.kind]}`);r.push(o.statement)}let n=i3(1,e),i=i3(2,r);return Lp([new In(Eb,iy),new In(ms,Co)],[...n,...i],void 0,void 0,t.fnName)}function i3(t,e){return e.length===0?[]:[d3(new wt(V.BitwiseAnd,pt(Eb),C(t)),e)]}function rat(t){if(t.root.fnName===null)throw new Error("AssertionError: host binding function is unnamed");let e=[];for(let o of t.root.create){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${v[o.kind]}`);e.push(o.statement)}let r=[];for(let o of t.root.update){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${v[o.kind]}`);r.push(o.statement)}if(e.length===0&&r.length===0)return null;let n=i3(1,e),i=i3(2,r);return Lp([new In(Eb,iy),new In(ms,Co)],[...n,...i],void 0,void 0,t.root.fnName)}var zD=".",nat="attr",jU="animate",iat="class",oat="style",sat="*",qU="animate-",oH=class{_exprParser;_schemaRegistry;errors;constructor(e,r,n){this._exprParser=e,this._schemaRegistry=r,this.errors=n}createBoundHostProperties(e,r){let n=[];for(let i of Object.keys(e)){let o=e[i];typeof o=="string"?this.parsePropertyBinding(i,o,!0,!1,r,r.start.offset,void 0,[],n,r):this._reportError(`Value of the host property binding "${i}" needs to be a string representing an expression but got "${o}" (${typeof o})`,r)}return n}createDirectiveHostEventAsts(e,r){let n=[];for(let i of Object.keys(e)){let o=e[i];typeof o=="string"?this.parseEvent(i,o,!1,r,r,[],n,r):this._reportError(`Value of the host listener "${i}" needs to be a string representing an expression but got "${o}" (${typeof o})`,r)}return n}parseInterpolation(e,r,n){let i=r.fullStart.offset;try{let o=this._exprParser.parseInterpolation(e,r,i,n);return o&&this.errors.push(...o.errors),o}catch(o){return this._reportError(`${o}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",r,i)}}parseInterpolationExpression(e,r){let n=r.start.offset;try{let i=this._exprParser.parseInterpolationExpression(e,r,n);return i&&this.errors.push(...i.errors),i}catch(i){return this._reportError(`${i}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",r,n)}}parseInlineTemplateBinding(e,r,n,i,o,s,a,u){let c=n.start.offset+sat.length,l=this._parseTemplateBindings(e,r,n,c,i);for(let d of l){let f=Ip(n,d.sourceSpan),p=d.key.source,m=Ip(n,d.key.span);if(d instanceof _w){let y=d.value?d.value.source:"$implicit",g=d.value?Ip(n,d.value.span):void 0;a.push(new cV(p,y,f,m,g))}else if(d.value){let y=u?f:n,g=Ip(n,d.value.ast.sourceSpan);this._parsePropertyAst(p,d.value,!1,y,m,g,o,s)}else o.push([p,""]),this.parseLiteralAttr(p,null,m,i,void 0,o,s,m)}}_parseTemplateBindings(e,r,n,i,o){try{let s=this._exprParser.parseTemplateBindings(e,r,n,i,o);return s.errors.forEach(a=>this.errors.push(a)),s.warnings.forEach(a=>{this._reportError(a,n,Ad.WARNING)}),s.templateBindings}catch(s){return this._reportError(`${s}`,n),[]}}parseLiteralAttr(e,r,n,i,o,s,a,u){BU(e)?(e=e.substring(1),u!==void 0&&(u=Ip(u,new ls(u.start.offset+1,u.end.offset))),r&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,Ad.ERROR),this._parseLegacyAnimation(e,r,n,i,u,o,s,a)):a.push(new G_(e,this._exprParser.wrapLiteralPrimitive(r,"",i),Da.LITERAL_ATTR,n,u,o))}parsePropertyBinding(e,r,n,i,o,s,a,u,c,l){e.length===0&&this._reportError("Property name is missing in binding",o);let d=!1;e.startsWith(qU)?(d=!0,e=e.substring(qU.length),l!==void 0&&(l=Ip(l,new ls(l.start.offset+qU.length,l.end.offset)))):BU(e)&&(d=!0,e=e.substring(1),l!==void 0&&(l=Ip(l,new ls(l.start.offset+1,l.end.offset)))),d?this._parseLegacyAnimation(e,r,o,s,l,a,u,c):e.startsWith(`${jU}${zD}`)?this._parseAnimation(e,this.parseBinding(r,n,a||o,s),o,l,a,u,c):this._parsePropertyAst(e,this.parseBinding(r,n,a||o,s),i,o,l,a,u,c)}parsePropertyInterpolation(e,r,n,i,o,s,a,u){let c=this.parseInterpolation(r,i||n,u);return c?(this._parsePropertyAst(e,c,!1,n,a,i,o,s),!0):!1}_parsePropertyAst(e,r,n,i,o,s,a,u){a.push([e,r.source]),u.push(new G_(e,r,n?Da.TWO_WAY:Da.DEFAULT,i,o,s))}_parseAnimation(e,r,n,i,o,s,a){s.push([e,r.source]),a.push(new G_(e,r,Da.ANIMATION,n,i,o))}_parseLegacyAnimation(e,r,n,i,o,s,a,u){e.length===0&&this._reportError("Animation trigger is missing",n);let c=this.parseBinding(r||"undefined",!1,s||n,i);a.push([e,c.source]),u.push(new G_(e,c,Da.LEGACY_ANIMATION,n,o,s))}parseBinding(e,r,n,i){try{let o=r?this._exprParser.parseSimpleBinding(e,n,i):this._exprParser.parseBinding(e,n,i);return o&&this.errors.push(...o.errors),o}catch(o){return this._reportError(`${o}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,i)}}createBoundElementProperty(e,r,n=!1,i=!0){if(r.isLegacyAnimation)return new IM(r.name,Ct.LegacyAnimation,ft.NONE,r.expression,null,r.sourceSpan,r.keySpan,r.valueSpan);let o=null,s,a=null,u=r.name.split(zD),c;if(u.length>1)if(u[0]==nat){a=u.slice(1).join(zD),n||this._validatePropertyOrAttributeName(a,r.sourceSpan,!0),c=eM(this._schemaRegistry,e,a,!0);let l=a.indexOf(":");if(l>-1){let d=a.substring(0,l),f=a.substring(l+1);a=JD(d,f)}s=Ct.Attribute}else u[0]==iat?(a=u[1],s=Ct.Class,c=[ft.NONE]):u[0]==oat?(o=u.length>2?u[2]:null,a=u[1],s=Ct.Style,c=[ft.STYLE]):u[0]==jU&&(a=r.name,s=Ct.Animation,c=[ft.NONE]);if(a===null){let l=this._schemaRegistry.getMappedPropName(r.name);a=i?l:r.name,c=eM(this._schemaRegistry,e,l,!1),s=r.type===Da.TWO_WAY?Ct.TwoWay:Ct.Property,n||this._validatePropertyOrAttributeName(l,r.sourceSpan,!1)}return new IM(a,s,c[0],r.expression,o,r.sourceSpan,r.keySpan,r.valueSpan)}parseEvent(e,r,n,i,o,s,a,u){e.length===0&&this._reportError("Event name is missing in binding",i),BU(e)?(e=e.slice(1),u!==void 0&&(u=Ip(u,new ls(u.start.offset+1,u.end.offset))),this._parseLegacyAnimationEvent(e,r,i,o,a,u)):this._parseRegularEvent(e,r,n,i,o,s,a,u)}calcPossibleSecurityContexts(e,r,n){let i=this._schemaRegistry.getMappedPropName(r);return eM(this._schemaRegistry,e,i,n)}parseEventListenerName(e){let[r,n]=pJe(e,[null,e]);return{eventName:n,target:r}}parseLegacyAnimationEventName(e){let r=hJe(e,[e,null]);return{eventName:r[0],phase:r[1]===null?null:r[1].toLowerCase()}}_parseLegacyAnimationEvent(e,r,n,i,o,s){let{eventName:a,phase:u}=this.parseLegacyAnimationEventName(e),c=this._parseAction(r,i);o.push(new wM(a,u,Di.LegacyAnimation,c,n,i,s)),a.length===0&&this._reportError("Animation event name is missing in binding",n),u?u!=="start"&&u!=="done"&&this._reportError(`The provided animation output phase value "${u}" for "@${a}" is not supported (use start or done)`,n):this._reportError(`The animation trigger output event (@${a}) is missing its phase value name (start or done are currently supported)`,n)}_parseRegularEvent(e,r,n,i,o,s,a,u){let{eventName:c,target:l}=this.parseEventListenerName(e),d=this.errors.length,f=this._parseAction(r,o),p=this.errors.length===d;s.push([e,f.source]),n&&p&&!this._isAllowedAssignmentEvent(f)&&this._reportError("Unsupported expression in a two-way binding",i);let m=Di.Regular;n&&(m=Di.TwoWay),e.startsWith(`${jU}${zD}`)&&(m=Di.Animation),a.push(new wM(c,l,m,f,i,o,u))}_parseAction(e,r){let n=r&&r.start?r.start.offset:0;try{let i=this._exprParser.parseAction(e,r,n);return i&&this.errors.push(...i.errors),!i||i.ast instanceof Oi?(this._reportError("Empty expressions are not allowed",r),this._exprParser.wrapLiteralPrimitive("ERROR",r,n)):i}catch(i){return this._reportError(`${i}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",r,n)}}_reportError(e,r,n=Ad.ERROR){this.errors.push(new Pe(r,e,n))}_validatePropertyOrAttributeName(e,r,n){let i=n?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);i.error&&this._reportError(i.msg,r,Ad.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof Ao?this._isAllowedAssignmentEvent(e.ast):e instanceof mw?this._isAllowedAssignmentEvent(e.expression):e instanceof ab&&e.args.length===1&&e.receiver instanceof tl&&e.receiver.name==="$any"&&e.receiver.receiver instanceof ul?this._isAllowedAssignmentEvent(e.args[0]):(e instanceof tl||e instanceof ly)&&!sH(e)}};function sH(t){return t instanceof cw||t instanceof lw?!0:t instanceof vw?sH(t.expression):t instanceof tl||t instanceof ly||t instanceof ab?sH(t.receiver):!1}function BU(t){return t[0]=="@"}function eM(t,e,r,n){let i,[o,s]=e?li(e,!1):[null,e],a=c=>{let[l,d]=li(c,!1),f=l??o,p=f?`:${f}:${d}`:d;return t.securityContext(p,r,n)},u=t.allKnownElementNames();return s===null?i=u.map(a):(i=[],eb.parse(s).forEach(c=>{let l=c.element?[c.element]:u;if(c.element&&!t.hasElement(c.element,[])){let p=`:${y3}:${c.element}`,m=`:${v3}:${c.element}`;t.hasElement(p,[])?l=[p]:t.hasElement(m,[])&&(l=[m])}let d=new Set(c.notSelectors.filter(p=>p.isElementSelector()).map(p=>p.element?.toLowerCase())),f=l.filter(p=>{let m=p.toLowerCase();return!d.has(m)&&!d.has(li(m)[1])});i.push(...f.map(a))})),i.length===0?[ft.NONE]:Array.from(new Set(i)).sort()}function Ip(t,e){let r=e.start-t.start.offset,n=e.end-t.end.offset;return new $e(t.start.moveBy(r),t.end.moveBy(n),t.fullStart.moveBy(r),t.details)}var Nd=new _b,ny="ng-template",aat="animate.";function tM(t){return t instanceof ro}function uat(t){return tM(t)&&t.nodes.length===1&&t.nodes[0]instanceof DM}function cat(t,e,r,n,i,o,s,a,u,c){let l=new Uw(t,r,n,i,o,s,a,u,c);return kd(l.root,e),l}function lat(t,e,r){let n=new KM(t.componentName,r,Ji.DomOnly);for(let i of t.properties??[]){let o=ve.Property;i.name.startsWith("attr.")&&(i.name=i.name.substring(5),o=ve.Attribute),i.isLegacyAnimation&&(o=ve.LegacyAnimation),i.isAnimation&&(o=ve.Animation);let s=iye(e,t.componentSelector,i.name,o===ve.Attribute);dat(n,i,o,s)}for(let[i,o]of Object.entries(t.attributes)??[]){let s=iye(e,t.componentSelector,i,!0);fat(n,i,o,s)}for(let i of t.events??[])pat(n,i);return n}function iye(t,e,r,n){let i=t.calcPossibleSecurityContexts(e,r,n),o=eM(Nd,null,Nd.getMappedPropName(r),n),s=o.filter(c=>c!==ft.NONE),a=s.length;return a!==o.length&&a>0||s.some(c=>!i.includes(c))?o:i.filter(c=>c!==ft.NONE)}function dat(t,e,r,n){let i,o=e.expression.ast;o instanceof Xw?i=new Jr(o.strings,o.expressions.map(s=>it(s,t,e.sourceSpan)),[]):i=it(o,t,e.sourceSpan),t.root.update.push(gy(t.root.xref,r,e.name,i,null,n,!1,!1,null,null,e.sourceSpan))}function fat(t,e,r,n){let i=gy(t.root.xref,ve.Attribute,e,r,null,n,!0,!1,null,null,r.sourceSpan);t.root.update.push(i)}function pat(t,e){let r;if(e.type===Di.Animation)r=l0e(t.root.xref,new pi,e.name,null,Kw(t.root,e.handler,e.handlerSpan),e.name.endsWith("enter")?"enter":"leave",e.targetOrPhase,!0,e.sourceSpan);else{let[n,i]=e.type!==Di.LegacyAnimation?[null,e.targetOrPhase]:[e.targetOrPhase,null];r=FH(t.root.xref,new pi,e.name,null,Kw(t.root,e.handler,e.handlerSpan),n,i,!0,e.sourceSpan)}t.root.create.push(r)}function kd(t,e){for(let r of e)if(r instanceof cl)hat(t,r);else if(r instanceof ds)mat(t,r);else if(r instanceof fb)gat(t,r);else if(r instanceof Zg)$0e(t,r,null);else if(r instanceof cb)F0e(t,r,null);else if(r instanceof PM)yat(t,r);else if(r instanceof OM)vat(t,r);else if(r instanceof fy)_at(t,r);else if(r instanceof Rye)Eat(t,r);else if(r instanceof db)Sat(t,r);else if(r instanceof CH)wat(t,r);else if(!(r instanceof WT))throw new Error(`Unsupported template node: ${r.constructor.name}`)}function hat(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof ro||e.i18n instanceof Fp))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let r=t.job.allocateXrefId(),[n,i]=li(e.name),o=att(i,r,g0e(n),e.i18n instanceof Fp?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(o),Aat(t,o,e),B0e(o,e);let s=null;e.i18n instanceof ro&&(s=t.job.allocateXrefId(),t.create.push(m3(s,e.i18n,void 0,e.startSourceSpan))),kd(t,e.children);let a=ctt(r,e.endSourceSpan??e.startSourceSpan);t.create.push(a),s!==null&&L.insertBefore(g3(s,e.endSourceSpan??e.startSourceSpan),a)}function mat(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof ro||e.i18n instanceof Fp))throw Error(`Unhandled i18n metadata type for template: ${e.i18n.constructor.name}`);let r=t.job.allocateView(t.xref),n=e.tagName,i="";e.tagName&&([i,n]=li(e.tagName));let o=e.i18n instanceof Fp?e.i18n:void 0,s=g0e(i),a=n===null?"":Vtt(n,s),u=Iat(e)?no.NgTemplate:no.Structural,c=s0e(r.xref,u,n,a,s,o,e.startSourceSpan,e.sourceSpan);t.create.push(c),xat(t,c,e,u),B0e(c,e),kd(r,e.children);for(let{name:l,value:d}of e.variables)r.contextVariables.set(l,d!==""?d:"$implicit");if(u===no.NgTemplate&&e.i18n instanceof ro){let l=t.job.allocateXrefId();L.insertAfter(m3(l,e.i18n,void 0,e.startSourceSpan),r.create.head),L.insertBefore(g3(l,e.endSourceSpan??e.startSourceSpan),r.create.tail)}}function gat(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof Fp))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let r=null;e.children.some(o=>!(o instanceof p3)&&(!(o instanceof Zg)||o.value.trim().length>0))&&(r=t.job.allocateView(t.xref),kd(r,e.children));let n=t.job.allocateXrefId(),i=ytt(n,e.selector,e.i18n,r?.xref??null,e.sourceSpan);for(let o of e.attributes){let s=Nd.securityContext(e.name,o.name,!0);t.update.push(gy(i.xref,ve.Attribute,o.name,C(o.value),null,s,!0,!1,null,Cd(o.i18n),o.sourceSpan))}t.create.push(i)}function $0e(t,e,r){t.create.push(c0e(t.job.allocateXrefId(),e.value,r,e.sourceSpan))}function F0e(t,e,r){let n=e.value;if(n instanceof Ao&&(n=n.ast),!(n instanceof Xw))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${n.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof Od))throw Error(`Unhandled i18n metadata type for text interpolation: ${e.i18n?.constructor.name}`);let i=e.i18n instanceof Od?e.i18n.children.filter(s=>s instanceof Cw).map(s=>s.name):[];if(i.length>0&&i.length!==n.expressions.length)throw Error(`Unexpected number of i18n placeholders (${n.expressions.length}) for BoundText with ${n.expressions.length} expressions`);let o=t.job.allocateXrefId();t.create.push(c0e(o,"",r,e.sourceSpan)),t.update.push(Ket(o,new Jr(n.strings,n.expressions.map(s=>it(s,t.job,null)),i),e.sourceSpan))}function yat(t,e){let r=null,n=[];for(let i=0;i<e.branches.length;i++){let o=e.branches[i],s=t.job.allocateView(t.xref),a=o3(t,s.xref,o);o.expressionAlias!==null&&s.contextVariables.set(o.expressionAlias.name,p0e);let u;if(o.i18n!==void 0){if(!(o.i18n instanceof jp))throw Error(`Unhandled i18n metadata type for if block: ${o.i18n?.constructor.name}`);u=o.i18n}let l=(i===0?a0e:u0e)(s.xref,no.Block,a,"Conditional",fn.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(l),r===null&&(r=s.xref);let d=o.expression?it(o.expression,t.job,null):null,f=new VM(d,l.xref,l.handle,o.expressionAlias);n.push(f),kd(s,o.children)}t.update.push(n0e(r,null,n,e.sourceSpan))}function vat(t,e){if(e.groups.length===0)return;let r=null,n=[];for(let i=0;i<e.groups.length;i++){let o=e.groups[i],s=t.job.allocateView(t.xref),a=o3(t,s.xref,o),u;if(o.i18n!==void 0){if(!(o.i18n instanceof jp))throw Error(`Unhandled i18n metadata type for switch block: ${o.i18n?.constructor.name}`);u=o.i18n}let l=(i===0?a0e:u0e)(s.xref,no.Block,a,"Case",fn.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(l),r===null&&(r=s.xref);for(let d of o.cases){let f=d.expression?it(d.expression,t.job,e.startSourceSpan):null,p=new VM(f,l.xref,l.handle);n.push(p)}kd(s,o.children)}t.update.push(n0e(r,it(e.expression,t.job,null),n,e.sourceSpan))}function QD(t,e,r,n,i){if(r!==void 0&&!(r instanceof jp))throw Error("Unhandled i18n metadata type for defer block");if(n===void 0)return null;let o=t.job.allocateView(t.xref);kd(o,n);let s=s0e(o.xref,no.Block,null,`Defer${e}`,fn.HTML,r,i,i);return t.create.push(s),s}function _at(t,e){let r=null;if(t.job.deferMeta.mode===0){if(!t.job.deferMeta.blocks.has(e))throw new Error("AssertionError: unable to find a dependency function for this deferred block");r=t.job.deferMeta.blocks.get(e)??null}let n=QD(t,"",e.i18n,e.children,e.sourceSpan),i=QD(t,"Loading",e.loading?.i18n,e.loading?.children,e.loading?.sourceSpan),o=QD(t,"Placeholder",e.placeholder?.i18n,e.placeholder?.children,e.placeholder?.sourceSpan),s=QD(t,"Error",e.error?.i18n,e.error?.children,e.error?.sourceSpan),a=t.job.allocateXrefId(),u=vtt(a,n.xref,n.handle,r,t.job.allDeferrableDepsFn,e.sourceSpan);u.placeholderView=o?.xref??null,u.placeholderSlot=o?.handle??null,u.loadingSlot=i?.handle??null,u.errorSlot=s?.handle??null,u.placeholderMinimumTime=e.placeholder?.minimumTime??null,u.loadingMinimumTime=e.loading?.minimumTime??null,u.loadingAfterTime=e.loading?.afterTime??null,u.flags=bat(e),t.create.push(u);let c=[],l=[];UU("hydrate",e.hydrateTriggers,c,l,t,a),UU("none",e.triggers,c,l,t,a),UU("prefetch",e.prefetchTriggers,c,l,t,a),c.some(f=>f.modifier==="none")||l.some(f=>f.modifier==="none")||c.push(xp(a,{kind:ir.Idle},"none",null)),t.create.push(c),t.update.push(l)}function bat(t){return Object.keys(t.hydrateTriggers).length>0?1:null}function UU(t,e,r,n,i,o){if(e.idle!==void 0){let s=xp(o,{kind:ir.Idle},t,e.idle.sourceSpan);r.push(s)}if(e.immediate!==void 0){let s=xp(o,{kind:ir.Immediate},t,e.immediate.sourceSpan);r.push(s)}if(e.timer!==void 0){let s=xp(o,{kind:ir.Timer,delay:e.timer.delay},t,e.timer.sourceSpan);r.push(s)}if(e.hover!==void 0){let s=xp(o,{kind:ir.Hover,targetName:e.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.hover.sourceSpan);r.push(s)}if(e.interaction!==void 0){let s=xp(o,{kind:ir.Interaction,targetName:e.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.interaction.sourceSpan);r.push(s)}if(e.viewport!==void 0){let s=xp(o,{kind:ir.Viewport,targetName:e.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null,options:e.viewport.options?it(e.viewport.options,i.job,e.viewport.sourceSpan):null},t,e.viewport.sourceSpan);r.push(s)}if(e.never!==void 0){let s=xp(o,{kind:ir.Never},t,e.never.sourceSpan);r.push(s)}if(e.when!==void 0){if(e.when.value instanceof Xw)throw new Error("Unexpected interpolation in defer block when trigger");let s=rtt(o,it(e.when.value,i.job,e.when.sourceSpan),t,e.when.sourceSpan);n.push(s)}}function Eat(t,e){if(e.i18n instanceof ro&&uat(e.i18n)){let r=t.job.allocateXrefId();t.create.push(Ett(r,e.i18n,Fye(e.i18n).name,null));for(let[n,i]of Object.entries({...e.vars,...e.placeholders}))i instanceof cb?F0e(t,i,n):$0e(t,i,n);t.create.push(Stt(r))}else throw Error(`Unhandled i18n metadata type for ICU: ${e.i18n?.constructor.name}`)}function Sat(t,e){let r=t.job.allocateView(t.xref),n=`\u0275$index_${r.xref}`,i=`\u0275$count_${r.xref}`,o=new Set;r.contextVariables.set(e.item.name,e.item.value);for(let _ of e.contextVariables)_.value==="$index"&&o.add(_.name),_.name==="$index"?r.contextVariables.set("$index",_.value).set(n,_.value):_.name==="$count"?r.contextVariables.set("$count",_.value).set(i,_.value):r.aliases.add({kind:Rn.Alias,name:null,identifier:_.name,expression:Tat(_,n,i)});let s=Mn(e.trackBy.span,e.sourceSpan),a=it(e.trackBy,t.job,s);kd(r,e.children);let u=null,c=null;e.empty!==null&&(u=t.job.allocateView(t.xref),kd(u,e.empty.children),c=o3(t,u.xref,e.empty));let l={$index:o,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof jp))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(e.empty?.i18n!==void 0&&!(e.empty.i18n instanceof jp))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let d=e.i18n,f=e.empty?.i18n,p=o3(t,r.xref,e),m=utt(r.xref,u?.xref??null,p,a,l,c,d,f,e.startSourceSpan,e.sourceSpan);t.create.push(m);let y=it(e.expression,t.job,Mn(e.expression.span,e.sourceSpan)),g=ttt(m.xref,m.handle,y,e.sourceSpan);t.update.push(g)}function Tat(t,e,r){switch(t.value){case"$index":return new Yn(e);case"$count":return new Yn(r);case"$first":return new Yn(e).identical(C(0));case"$last":return new Yn(e).identical(new Yn(r).minus(C(1)));case"$even":return new Yn(e).modulo(C(2)).identical(C(0));case"$odd":return new Yn(e).modulo(C(2)).notIdentical(C(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function wat(t,e){let r=t.job.allocateXrefId();t.create.push(_tt(r,e.name,e.sourceSpan)),t.update.push(itt(r,e.name,it(e.value,t.job,e.valueSpan),e.sourceSpan))}function it(t,e,r){if(t instanceof Ao)return it(t.ast,e,r);if(t instanceof tl)return t.receiver instanceof ul?new Yn(t.name):new ps(it(t.receiver,e,r),t.name,null,Mn(t.span,r));if(t instanceof ab){if(t.receiver instanceof ul)throw new Error("Unexpected ImplicitReceiver");return new Oo(it(t.receiver,e,r),t.args.map(n=>it(n,e,r)),void 0,Mn(t.span,r))}else{if(t instanceof wo)return C(t.value,void 0,Mn(t.span,r));if(t instanceof X_)switch(t.operator){case"+":return new sy(tb.Plus,it(t.expr,e,r),void 0,Mn(t.span,r));case"-":return new sy(tb.Minus,it(t.expr,e,r),void 0,Mn(t.span,r));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof Zi){let n=Btt.get(t.operation);if(n===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new wt(n,it(t.left,e,r),it(t.right,e,r),void 0,Mn(t.span,r))}else{if(t instanceof uw)return new Up(e.root.xref);if(t instanceof ly)return new Dd(it(t.receiver,e,r),it(t.key,e,r),void 0,Mn(t.span,r));if(t instanceof sb)throw new Error("AssertionError: Chain in unknown context");if(t instanceof dy){let n=t.keys.map((i,o)=>{let s=it(t.values[o],e,r);return i.kind==="spread"?new Rp(s):new ib(i.key,s,i.quoted)});return new $a(n,void 0,Mn(t.span,r))}else{if(t instanceof dw)return new al(t.expressions.map(n=>it(n,e,r)));if(t instanceof yM)return new sl(it(t.condition,e,r),it(t.trueExp,e,r),it(t.falseExp,e,r),void 0,Mn(t.span,r));if(t instanceof mw)return it(t.expression,e,r);if(t instanceof vM)return new vy(e.allocateXrefId(),new pi,t.name,[it(t.exp,e,r),...t.args.map(n=>it(n,e,r))]);if(t instanceof lw)return new gb(it(t.receiver,e,r),it(t.key,e,r),Mn(t.span,r));if(t instanceof cw)return new mb(it(t.receiver,e,r),t.name);if(t instanceof bM)return new _y(it(t.receiver,e,r),t.args.map(n=>it(n,e,r)));if(t instanceof Oi)return new qw(Mn(t.span,r));if(t instanceof fw)return iJe(it(t.expression,e,r),Mn(t.span,r));if(t instanceof pw)return Zw(it(t.expression,e,r));if(t instanceof hw)return new cM(it(t.expression,e,r),void 0,Mn(t.span,r));if(t instanceof yw)return oye(t,e,r);if(t instanceof gw)return new ew(it(t.tag,e,r),oye(t.template,e,r),void 0,Mn(t.span,r));if(t instanceof vw)return new La(it(t.expression,e,r),void 0,Mn(t.span,r));if(t instanceof TM)return new nb(t.body,t.flags,r);if(t instanceof _M)return new ay(it(t.expression,e,r));if(t instanceof SM)return Oat(hs(t.parameters.map(n=>new In(n.name,Co)),it(t.body,e,r)));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${r?.start.file.url}"`)}}}}function oye(t,e,r){return new rw(t.elements.map(n=>new lM(n.text,Mn(n.span,r))),t.expressions.map(n=>it(n,e,r)),Mn(t.span,r))}function aH(t,e,r,n){let i;return e instanceof Xw?i=new Jr(e.strings,e.expressions.map(o=>it(o,t,null)),Object.keys(Cd(r)?.placeholders??{})):e instanceof pr?i=it(e,t,null):i=C(e),i}var j0e=new Map([[Ct.Property,ve.Property],[Ct.TwoWay,ve.TwoWayProperty],[Ct.Attribute,ve.Attribute],[Ct.Class,ve.ClassName],[Ct.Style,ve.StyleProperty],[Ct.LegacyAnimation,ve.LegacyAnimation],[Ct.Animation,ve.Animation]]);function Iat(t){return li(t.tagName??"")[1]===ny}function Cd(t){if(t==null)return null;if(!(t instanceof ro))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function Aat(t,e,r){let n=new Array,i=new Set;for(let o of r.attributes){let[s,a]=li(r.name),u=s;if(!s)switch(e.namespace){case fn.SVG:u=y3;break;case fn.Math:u=v3;break}let c=Nd.securityContext(u?`:${u}:${a}`:a,o.name,!0);n.push(gy(e.xref,ve.Attribute,o.name,aH(t.job,o.value,o.i18n),null,c,!0,!1,null,Cd(o.i18n),o.sourceSpan)),o.i18n&&i.add(o.name)}for(let o of r.inputs)i.has(o.name)&&console.error(`On component ${t.job.componentName}, the binding ${o.name} is both an i18n attribute and a property. You may want to remove the property binding. This will become a compilation error in future versions of Angular.`),n.push(gy(e.xref,j0e.get(o.type),o.name,aH(t.job,zw(o.value),o.i18n),o.unit,o.securityContext,!1,!1,null,Cd(o.i18n)??null,o.sourceSpan));t.create.push(n.filter(o=>o?.kind===v.ExtractedAttribute)),t.update.push(n.filter(o=>o?.kind===v.Binding));for(let o of r.outputs){if(o.type===Di.LegacyAnimation&&o.phase===null)throw Error("Animation listener should have a phase");o.type===Di.TwoWay?t.create.push(d0e(e.xref,e.handle,o.name,e.tag,q0e(t,o.handler,o.handlerSpan),o.sourceSpan)):o.type===Di.Animation?t.create.push(l0e(e.xref,e.handle,o.name,e.tag,Kw(t,o.handler,o.handlerSpan),o.name.endsWith("enter")?"enter":"leave",o.target,!1,o.sourceSpan)):t.create.push(FH(e.xref,e.handle,o.name,e.tag,Kw(t,o.handler,o.handlerSpan),o.phase,o.target,!1,o.sourceSpan))}n.some(o=>o?.i18nMessage)!==null&&t.create.push(f0e(t.job.allocateXrefId(),new pi,e.xref))}function xat(t,e,r,n){let i=new Array;for(let o of r.templateAttrs)if(o instanceof lb){let s=Nd.securityContext(ny,o.name,!0);i.push(YD(t,e.xref,Ct.Attribute,o.name,o.value,null,s,!0,n,Cd(o.i18n),o.sourceSpan))}else i.push(YD(t,e.xref,o.type,o.name,zw(o.value),o.unit,o.securityContext,!0,n,Cd(o.i18n),o.sourceSpan));for(let o of r.attributes){let s=Nd.securityContext(ny,o.name,!0);i.push(YD(t,e.xref,Ct.Attribute,o.name,o.value,null,s,!1,n,Cd(o.i18n),o.sourceSpan))}for(let o of r.inputs)i.push(YD(t,e.xref,o.type,o.name,zw(o.value),o.unit,o.securityContext,!1,n,Cd(o.i18n),o.sourceSpan));t.create.push(i.filter(o=>o?.kind===v.ExtractedAttribute)),t.update.push(i.filter(o=>o?.kind===v.Binding));for(let o of r.outputs){if(o.type===Di.LegacyAnimation&&o.phase===null)throw Error("Animation listener should have a phase");if(n===no.NgTemplate&&(o.type===Di.TwoWay?t.create.push(d0e(e.xref,e.handle,o.name,e.tag,q0e(t,o.handler,o.handlerSpan),o.sourceSpan)):t.create.push(FH(e.xref,e.handle,o.name,e.tag,Kw(t,o.handler,o.handlerSpan),o.phase,o.target,!1,o.sourceSpan))),n===no.Structural&&o.type!==Di.LegacyAnimation){let s=Nd.securityContext(ny,o.name,!1);t.create.push(Ks(e.xref,ve.Property,null,o.name,null,null,null,s))}}i.some(o=>o?.i18nMessage)!==null&&t.create.push(f0e(t.job.allocateXrefId(),new pi,e.xref))}function YD(t,e,r,n,i,o,s,a,u,c,l){let d=typeof i=="string";if(u===no.Structural){if(!a)switch(r){case Ct.Property:case Ct.Class:case Ct.Style:return Ks(e,ve.Property,null,n,null,null,c,s);case Ct.TwoWay:return Ks(e,ve.TwoWayProperty,null,n,null,null,c,s)}if(!d&&(r===Ct.Attribute||r===Ct.LegacyAnimation||r===Ct.Animation))return null}let f=j0e.get(r);return u===no.NgTemplate&&(r===Ct.Class||r===Ct.Style||r===Ct.Attribute&&!d)&&(f=ve.Property),gy(e,f,n,aH(t.job,i,c),o,s,d,a,u,c,l)}function Kw(t,e,r){e=zw(e);let n=new Array,i=e instanceof sb?e.expressions:[e];if(i.length===0)throw new Error("Expected listener to have non-empty expression list.");let o=i.map(a=>it(a,t.job,r)),s=o.pop();return n.push(...o.map(a=>gs(new fi(a,a.sourceSpan)))),n.push(gs(new An(s,s.sourceSpan))),n}function q0e(t,e,r){e=zw(e);let n=new Array;if(e instanceof sb)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let i=it(e,t.job,r),o=new Yn("$event"),s=new BM(i,o);return n.push(gs(new fi(s))),n.push(gs(new An(o))),n}function zw(t){return t instanceof Ao?t.ast:t}function B0e(t,e){Cat(t.localRefs);for(let{name:r,value:n}of e.references)t.localRefs.push({name:r,target:n})}function Cat(t){if(!Array.isArray(t))throw new Error("AssertionError: expected an array")}function Mn(t,e){if(e===null)return null;let r=e.start.moveBy(t.start),n=e.start.moveBy(t.end),i=e.fullStart.moveBy(t.start);return new $e(r,n,i)}function o3(t,e,r){let n=null;for(let i of r.children)if(!(i instanceof p3||i instanceof CH)){if(n!==null)return null;if(i instanceof cl||i instanceof ds&&i.tagName!==null)n=i;else return null}if(n!==null){for(let o of n.attributes)if(!o.name.startsWith(aat)){let s=Nd.securityContext(ny,o.name,!0);t.update.push(gy(e,ve.Attribute,o.name,C(o.value),null,s,!0,!1,null,Cd(o.i18n),o.sourceSpan))}for(let o of n.inputs)if(o.type!==Ct.LegacyAnimation&&o.type!==Ct.Animation&&o.type!==Ct.Attribute){let s=Nd.securityContext(ny,o.name,!0);t.create.push(Ks(e,ve.Property,null,o.name,null,null,null,s))}let i=n instanceof cl?n.name:n.tagName;return i===ny?null:i}return null}function Oat(t){let e=new Set(t.params.map(r=>r.name));return pe(t,r=>{if(r instanceof Ey)for(let n of r.params)e.add(n.name);else if(r instanceof Yn&&e.has(r.name))return pt(r.name);return r},ot.None)}var Pat=!1;function Nat(){return Pat}function s3(t,e){return d3(pt(Eb).bitwiseAnd(C(t),null),e)}function Dat(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function Mat(t,e){if(Array.isArray(t.predicate)){let r=[];return t.predicate.forEach(n=>{let i=n.split(",").map(o=>C(o.trim()));r.push(...i)}),e.getConstLiteral(or(r),!0)}else switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return me(T.resolveForwardRef).callFn([t.predicate.expression])}}function U0e(t,e,r){let n=[];return r!==void 0&&n.push(...r),t.isSignal&&n.push(new ps(pt(ms),t.propertyName)),n.push(Mat(t,e),C(Dat(t))),t.read&&n.push(t.read),n}var UH=Symbol("queryAdvancePlaceholder");function V0e(t){let e=[],r=0,n=()=>{r>0&&(e.unshift(me(T.queryAdvance).callFn(r===1?[]:[C(r)]).toStmt()),r=0)};for(let i=t.length-1;i>=0;i--){let o=t[i];o===UH?r++:(n(),e.unshift(o))}return n(),e}function kat(t,e,r){let n=[],i=[],o=jye(c=>i.push(c),PH),s=null,a=null;t.forEach(c=>{let l=U0e(c,e);if(c.isSignal?(s??=me(T.viewQuerySignal),s=s.callFn(l)):(a??=me(T.viewQuery),a=a.callFn(l)),c.isSignal){i.push(UH);return}let d=o(),f=me(T.loadQuery).callFn([]),p=me(T.queryRefresh).callFn([d.set(f)]),m=pt(ms).prop(c.propertyName).set(c.first?d.prop("first"):d);i.push(p.and(m).toStmt())}),s!==null&&n.push(new fi(s)),a!==null&&n.push(new fi(a));let u=r?`${r}_Query`:null;return Lp([new In(Eb,iy),new In(ms,Co)],[s3(1,n),s3(2,V0e(i))],ka,null,u)}function Rat(t,e,r){let n=[],i=[],o=jye(c=>i.push(c),PH),s=null,a=null;for(let c of t){let l=U0e(c,e,[pt("dirIndex")]);if(c.isSignal?(s??=me(T.contentQuerySignal),s=s.callFn(l)):(a??=me(T.contentQuery),a=a.callFn(l)),c.isSignal){i.push(UH);continue}let d=o(),f=me(T.loadQuery).callFn([]),p=me(T.queryRefresh).callFn([d.set(f)]),m=pt(ms).prop(c.propertyName).set(c.first?d.prop("first"):d);i.push(p.and(m).toStmt())}s!==null&&n.push(new fi(s)),a!==null&&n.push(new fi(a));let u=r?`${r}_ContentQueries`:null;return Lp([new In(Eb,iy),new In(ms,Co),new In("dirIndex",iy)],[s3(1,n),s3(2,V0e(i))],ka,null,u)}var uH=class extends Hrt{constructor(){super(XV)}parse(e,r,n){return super.parse(e,r,n)}};function Lat(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match($at);return e===null||e[1]=="package"||e[1]=="asset"}var $at=/^([^:/?#]+):/,Fat="select",jat="link",qat="rel",Bat="href",Uat="stylesheet",Vat="style",Hat=new Set([":svg:script","script"]),Gat="ngNonBindable",Wat="ngProjectAs";function H0e(t){let e=null,r=null,n=null,i=!1,o="";for(let u of t.attrs){let c=u.name.toLowerCase();c==Fat?e=u.value:c==Bat?r=u.value:c==qat?n=u.value:u.name==Gat?i=!0:u.name==Wat&&u.value.length>0&&(o=u.value)}e||="*";let s=t.name.toLowerCase(),a=xo.OTHER;return lV(s)?a=xo.NG_CONTENT:Vat===s?a=xo.STYLE:Hat.has(s)?a=xo.SCRIPT:s==jat&&n==Uat&&(a=xo.STYLESHEET),new cH(a,e,r,i,o)}var xo;(function(t){t[t.NG_CONTENT=0]="NG_CONTENT",t[t.STYLE=1]="STYLE",t[t.STYLESHEET=2]="STYLESHEET",t[t.SCRIPT=3]="SCRIPT",t[t.OTHER=4]="OTHER"})(xo||(xo={}));var cH=class{type;selectAttr;hrefAttr;nonBindable;projectAs;constructor(e,r,n,i,o){this.type=e,this.selectAttr=r,this.hrefAttr=n,this.nonBindable=i,this.projectAs=o}},Kat=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,zat=/^track\s+([\S\s]*)/,Qat=/^(as\s+)(.*)/,b3=/^else[^\S\r\n]+if/,Yat=/^let\s+([\S\s]*)/,Zat=/^[$A-Z_][0-9A-Z_$]*$/i,sye=/(\s*)(\S+)(\s*)/,JT=new Set(["$index","$first","$last","$even","$odd","$count"]);function aye(t){return t==="empty"}function uye(t){return t==="else"||b3.test(t)}function Xat(t,e,r,n){let i=iut(e),o=[],s=cye(t,i,n);s!==null&&o.push(new Jg(s.expression,Ir(r,t.children,t.children),s.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let d of e)if(b3.test(d.name)){let f=cye(d,i,n);if(f!==null){let p=Ir(r,d.children,d.children);o.push(new Jg(f.expression,p,f.expressionAlias,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}}else if(d.name==="else"){let f=Ir(r,d.children,d.children);o.push(new Jg(null,f,null,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}let a=o.length>0?o[0].startSourceSpan:t.startSourceSpan,u=o.length>0?o[o.length-1].endSourceSpan:t.endSourceSpan,c=t.sourceSpan,l=o[o.length-1];return l!==void 0&&(c=new $e(a.start,l.sourceSpan.end)),{node:new PM(o,c,t.startSourceSpan,u,t.nameSpan),errors:i}}function Jat(t,e,r,n){let i=[],o=tut(t,i,n),s=null,a=null;for(let u of e)u.name==="empty"?a!==null?i.push(new Pe(u.sourceSpan,"@for loop can only have one @empty block")):u.parameters.length>0?i.push(new Pe(u.sourceSpan,"@empty block cannot have parameters")):a=new Iw(Ir(r,u.children,u.children),u.sourceSpan,u.startSourceSpan,u.endSourceSpan,u.nameSpan,u.i18n):i.push(new Pe(u.sourceSpan,`Unrecognized @for loop block "${u.name}"`));if(o!==null)if(o.trackBy===null)i.push(new Pe(t.startSourceSpan,'@for loop must have a "track" expression'));else{let u=a?.endSourceSpan??t.endSourceSpan,c=new $e(t.sourceSpan.start,u?.end??t.sourceSpan.end);rut(o.trackBy.expression,o.trackBy.keywordSpan,i),s=new db(o.itemName,o.expression,o.trackBy.expression,o.trackBy.keywordSpan,o.context,Ir(r,t.children,t.children),a,c,t.sourceSpan,t.startSourceSpan,u,t.nameSpan,t.i18n)}return{node:s,errors:i}}function eut(t,e,r){let n=out(t),i=t.parameters.length>0?Qw(t.parameters[0],r):r.parseBinding("",!1,t.sourceSpan,0),o=[],s=[],a=[],u=null,c=null;for(let d of t.children){if(!(d instanceof Gs))continue;if((d.name!=="case"||d.parameters.length===0)&&d.name!=="default"&&d.name!=="default never"){s.push(new NM(d.name,d.sourceSpan,d.nameSpan));continue}c!==null&&n.push(new Pe(d.sourceSpan,'@default block with "never" parameter must be the last case in a switch'));let f=d.name==="case",p=null;if(f)p=Qw(d.parameters[0],r);else if(d.name==="default never"){(d.children.length>0||d.endSourceSpan!==null&&d.endSourceSpan.start.offset!==d.endSourceSpan.end.offset)&&n.push(new Pe(d.sourceSpan,'@default block with "never" parameter cannot have a body')),a.length>0&&n.push(new Pe(d.sourceSpan,'A @case block with no body cannot be followed by a @default block with "never" parameter')),c=new _V(d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan);continue}let m=new vV(p,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan);if(a.push(m),d.children.length===0&&d.endSourceSpan!==null&&d.endSourceSpan.start.offset===d.endSourceSpan.end.offset){u===null&&(u=d.sourceSpan);continue}let g=d.sourceSpan,_=d.startSourceSpan;u!==null&&(g=new $e(u.start,d.sourceSpan.end),_=new $e(u.start,d.startSourceSpan.end),u=null);let b=new ww(a,Ir(e,d.children,d.children),g,_,d.endSourceSpan,d.nameSpan,d.i18n);o.push(b),a=[]}return{node:new OM(i,o,s,c,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:n}}function tut(t,e,r){if(t.parameters.length===0)return e.push(new Pe(t.startSourceSpan,"@for loop does not have an expression")),null;let[n,...i]=t.parameters,o=sut(n,e)?.match(Kat);if(!o||o[2].trim().length===0)return e.push(new Pe(n.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,s,a]=o;JT.has(s)&&e.push(new Pe(n.sourceSpan,`@for loop item name cannot be one of ${Array.from(JT).join(", ")}.`));let u=n.expression.split(" ")[0],c=new $e(n.sourceSpan.start,n.sourceSpan.start.moveBy(u.length)),l={itemName:new $p(s,"$implicit",c,c),trackBy:null,expression:Qw(n,r,a),context:Array.from(JT,d=>{let f=new $e(t.startSourceSpan.end,t.startSourceSpan.end);return new $p(d,d,f,f)})};for(let d of i){let f=d.expression.match(Yat);if(f!==null){let m=new $e(d.sourceSpan.start.moveBy(f[0].length-f[1].length),d.sourceSpan.end);nut(d.sourceSpan,f[1],m,s,l.context,e);continue}let p=d.expression.match(zat);if(p!==null){if(l.trackBy!==null)e.push(new Pe(d.sourceSpan,'@for loop can only have one "track" expression'));else{let m=Qw(d,r,p[1]);m.ast instanceof Oi&&e.push(new Pe(t.startSourceSpan,'@for loop must have a "track" expression'));let y=new $e(d.sourceSpan.start,d.sourceSpan.start.moveBy(5));l.trackBy={expression:m,keywordSpan:y}}continue}e.push(new Pe(d.sourceSpan,`Unrecognized @for loop parameter "${d.expression}"`))}return l}function rut(t,e,r){let n=new lH;t.ast.visit(n),n.hasPipe&&r.push(new Pe(e,"Cannot use pipes in track expressions"))}function nut(t,e,r,n,i,o){let s=e.split(","),a=r.start;for(let u of s){let c=u.split("="),l=c.length===2?c[0].trim():"",d=c.length===2?c[1].trim():"";if(l.length===0||d.length===0)o.push(new Pe(t,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!JT.has(d))o.push(new Pe(t,`Unknown "let" parameter variable "${d}". The allowed variables are: ${Array.from(JT).join(", ")}`));else if(l===n)o.push(new Pe(t,`Invalid @for loop "let" parameter. Variable cannot be called "${n}"`));else if(i.some(f=>f.name===l))o.push(new Pe(t,`Duplicate "let" parameter variable "${d}"`));else{let[,f,p]=c[0].match(sye)??[],m=f!==void 0&&c.length===2?new $e(a.moveBy(f.length),a.moveBy(f.length+p.length)):r,y;if(c.length===2){let[,_,b]=c[1].match(sye)??[];y=_!==void 0?new $e(a.moveBy(c[0].length+1+_.length),a.moveBy(c[0].length+1+_.length+b.length)):void 0}let g=new $e(m.start,y?.end??m.end);i.push(new $p(l,d,g,m,y))}a=a.moveBy(u.length+1)}}function iut(t){let e=[],r=!1;for(let n=0;n<t.length;n++){let i=t[n];i.name==="else"?(r?e.push(new Pe(i.startSourceSpan,"Conditional can only have one @else block")):t.length>1&&n<t.length-1?e.push(new Pe(i.startSourceSpan,"@else block must be last inside the conditional")):i.parameters.length>0&&e.push(new Pe(i.startSourceSpan,"@else block cannot have parameters")),r=!0):b3.test(i.name)||e.push(new Pe(i.startSourceSpan,`Unrecognized conditional block @${i.name}`))}return e}function out(t){let e=[],r=!1;if(t.parameters.length!==1)return e.push(new Pe(t.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let n of t.children)if(!(n instanceof Vw||n instanceof by&&n.value.trim().length===0)){if(!(n instanceof Gs)||n.name!=="case"&&n.name!=="default"&&n.name!=="default never"){e.push(new Pe(n.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}n.name==="default never"?(r&&e.push(new Pe(n.startSourceSpan,"@switch block can only have one @default block")),r=!0):n.name==="default"?(r?e.push(new Pe(n.startSourceSpan,"@switch block can only have one @default block")):n.parameters.length>0&&e.push(new Pe(n.startSourceSpan,"@default block cannot have parameters")),r=!0):n.name==="case"&&n.parameters.length!==1&&e.push(new Pe(n.startSourceSpan,"@case block must have exactly one parameter"))}return e}function Qw(t,e,r){let n,i;return typeof r=="string"?(n=Math.max(0,t.expression.lastIndexOf(r)),i=n+r.length):(n=0,i=t.expression.length),e.parseBinding(t.expression.slice(n,i),!1,t.sourceSpan,t.sourceSpan.start.offset+n)}function cye(t,e,r){if(t.parameters.length===0)return e.push(new Pe(t.startSourceSpan,"Conditional block does not have an expression")),null;let n=Qw(t.parameters[0],r),i=null;for(let o=1;o<t.parameters.length;o++){let s=t.parameters[o],a=s.expression.match(Qat);if(a===null)e.push(new Pe(s.sourceSpan,`Unrecognized conditional parameter "${s.expression}"`));else if(t.name!=="if"&&!b3.test(t.name))e.push(new Pe(s.sourceSpan,'"as" expression is only allowed on `@if` and `@else if` blocks'));else if(i!==null)e.push(new Pe(s.sourceSpan,'Conditional can only have one "as" expression'));else{let u=a[2].trim();if(Zat.test(u)){let c=s.sourceSpan.start.moveBy(a[1].length),l=new $e(c,c.moveBy(u.length));i=new $p(u,u,l,l)}else e.push(new Pe(s.sourceSpan,'"as" expression must be a valid JavaScript identifier'))}}return{expression:n,expressionAlias:i}}function sut(t,e){let r=t.expression,n=/^\s$/,i=0,o=0,s=r.length-1;for(let a=0;a<r.length;a++){let u=r[a];if(u==="(")o=a+1,i++;else{if(n.test(u))continue;break}}if(i===0)return r;for(let a=r.length-1;a>-1;a--){let u=r[a];if(u===")"){if(s=a,i--,i===0)break}else{if(n.test(u))continue;break}}return i!==0?(e.push(new Pe(t.sourceSpan,"Unclosed parentheses in expression")),null):r.slice(o,s)}var lH=class extends ub{hasPipe=!1;visitPipe(){this.hasPipe=!0}},aut=/^\d+\.?\d*(ms|s)?$/,uut=/^\s$/,lye=new Map([[Ws,eo],[rl,Id],[to,Tn]]),Ni;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never"})(Ni||(Ni={}));function cut({expression:t,sourceSpan:e},r,n){let i=t.indexOf("never"),o=new $e(e.start.moveBy(i),e.start.moveBy(i+5)),s=VH(t,e),a=HH(t,e);i===-1?n.push(new Pe(e,'Could not find "never" keyword in expression')):GH("never",r,n,new hV(o,e,s,null,a))}function VU({expression:t,sourceSpan:e},r,n,i){let o=t.indexOf("when"),s=new $e(e.start.moveBy(o),e.start.moveBy(o+4)),a=VH(t,e),u=HH(t,e);if(o===-1)i.push(new Pe(e,'Could not find "when" keyword in expression'));else{let c=Yw(t,o+1),l=r.parseBinding(t.slice(c),!1,e,e.start.offset+c);GH("when",n,i,new AM(l,e,a,s,u))}}function HU({expression:t,sourceSpan:e},r,n,i,o){let s=t.indexOf("on"),a=new $e(e.start.moveBy(s),e.start.moveBy(s+2)),u=VH(t,e),c=HH(t,e);if(s===-1)i.push(new Pe(e,'Could not find "on" keyword in expression'));else{let l=Yw(t,s+1),d=t.startsWith("hydrate");new dH(t,r,l,e,n,i,d?yut:gut,d,u,a,c).parse()}}function VH(t,e){return t.startsWith("prefetch")?new $e(e.start,e.start.moveBy(8)):null}function HH(t,e){return t.startsWith("hydrate")?new $e(e.start,e.start.moveBy(7)):null}var dH=class{expression;bindingParser;start;span;triggers;errors;validator;isHydrationTrigger;prefetchSpan;onSourceSpan;hydrateSpan;index=0;tokens;constructor(e,r,n,i,o,s,a,u,c,l,d){this.expression=e,this.bindingParser=r,this.start=n,this.span=i,this.triggers=o,this.errors=s,this.validator=a,this.isHydrationTrigger=u,this.prefetchSpan=c,this.onSourceSpan=l,this.hydrateSpan=d,this.tokens=new Ww().tokenize(e.slice(n))}parse(){for(;this.tokens.length>0&&this.index<this.tokens.length;){let e=this.token();if(!e.isIdentifier()){this.unexpectedToken(e);break}if(this.isFollowedByOrLast(Pi))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(to)){this.advance();let r=this.errors.length,n=this.consumeParameters();if(this.errors.length!==r)break;this.consumeTrigger(e,n),this.advance()}else this.index<this.tokens.length-1&&this.unexpectedToken(this.tokens[this.index+1]);this.advance()}}advance(){this.index++}isFollowedByOrLast(e){return this.index===this.tokens.length-1?!0:this.tokens[this.index+1].isCharacter(e)}token(){return this.tokens[Math.min(this.index,this.tokens.length-1)]}consumeTrigger(e,r){let n=this.span.start.moveBy(this.start+e.index-this.tokens[0].index),i=new $e(n,n.moveBy(e.strValue.length)),o=n.moveBy(this.token().end-e.index),s=e.index===0,a=s?this.onSourceSpan:null,u=s?this.prefetchSpan:null,c=s?this.hydrateSpan:null,l=new $e(s?this.span.start:n,o);try{switch(e.toString()){case Ni.IDLE:this.trackTrigger("idle",lut(r,i,l,u,a,c));break;case Ni.TIMER:this.trackTrigger("timer",dut(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Ni.INTERACTION:this.trackTrigger("interaction",hut(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case Ni.IMMEDIATE:this.trackTrigger("immediate",fut(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Ni.HOVER:this.trackTrigger("hover",put(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case Ni.VIEWPORT:this.trackTrigger("viewport",mut(this.start,this.isHydrationTrigger,this.bindingParser,r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;default:throw new Error(`Unrecognized trigger type "${e}"`)}}catch(d){this.error(e,d.message)}}consumeParameters(){let e=[];if(!this.token().isCharacter(to))return this.unexpectedToken(this.token()),e;this.advance();let r=[],n=[];for(;this.index<this.tokens.length;){let i=this.token();if(i.isCharacter(Tn)&&r.length===0){n.length&&e.push({expression:this.tokenRangeText(n),start:n[0].index});break}if(i.type===ke.Character&&lye.has(i.numValue)&&r.push(lye.get(i.numValue)),r.length>0&&i.isCharacter(r[r.length-1])&&r.pop(),r.length===0&&i.isCharacter(Pi)&&n.length>0){e.push({expression:this.tokenRangeText(n),start:n[0].index}),this.advance(),n=[];continue}n.push(i),this.advance()}return(!this.token().isCharacter(Tn)||r.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(Pi)&&this.unexpectedToken(this.tokens[this.index+1]),e}tokenRangeText(e){return e.length===0?"":this.expression.slice(this.start+e[0].index,this.start+e[e.length-1].end)}trackTrigger(e,r){GH(e,this.triggers,this.errors,r)}error(e,r){let n=this.span.start.moveBy(this.start+e.index),i=n.moveBy(e.end-e.index);this.errors.push(new Pe(new $e(n,i),r))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function GH(t,e,r,n){e[t]?r.push(new Pe(n.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=n}function lut(t,e,r,n,i,o){if(t.length>0)throw new Error(`"${Ni.IDLE}" trigger cannot have parameters`);return new mV(e,r,n,i,o)}function dut(t,e,r,n,i,o){if(t.length!==1)throw new Error(`"${Ni.TIMER}" trigger must have exactly one parameter`);let s=a3(t[0].expression);if(s===null)throw new Error(`Could not parse time value of trigger "${Ni.TIMER}"`);return new yV(s,e,r,n,i,o)}function fut(t,e,r,n,i,o){if(t.length>0)throw new Error(`"${Ni.IMMEDIATE}" trigger cannot have parameters`);return new gV(e,r,n,i,o)}function put(t,e,r,n,i,o,s){return s(Ni.HOVER,t),new xM(t[0]?.expression??null,e,r,n,i,o)}function hut(t,e,r,n,i,o,s){return s(Ni.INTERACTION,t),new CM(t[0]?.expression??null,e,r,n,i,o)}function mut(t,e,r,n,i,o,s,a,u,c){c(Ni.VIEWPORT,n);let l,d;if(n.length===0)l=d=null;else if(!n[0].expression.startsWith("{"))l=n[0].expression,d=null;else{let f=r.parseBinding(n[0].expression,!1,o,o.start.offset+t+n[0].start);if(f.ast instanceof dy){if(f.ast.keys.some(m=>m.kind==="spread"))throw new Error("Spread operator are not allowed in this context");if(f.ast.keys.some(m=>m.kind==="property"&&m.key==="root"))throw new Error('The "root" option is not supported in the options parameter of the "viewport" trigger')}else throw new Error('Options parameter of the "viewport" trigger must be an object literal');let p=f.ast.keys.findIndex(m=>m.kind==="property"&&m.key==="trigger");if(p===-1)l=null,d=f.ast;else{let m=f.ast.values[p],y=(g,_)=>_!==p;if(!(m instanceof tl)||!(m.receiver instanceof ul))throw new Error('"trigger" option of the "viewport" trigger must be an identifier');l=m.name,d=new dy(f.ast.span,f.ast.sourceSpan,f.ast.keys.filter(y),f.ast.values.filter(y))}}if(e&&l!==null)throw new Error('"viewport" hydration trigger cannot have a "trigger"');if(d){let f=fH.findDynamicNode(d);if(f!==null)throw new Error(`Options of the "viewport" trigger must be an object literal containing only literal values, but "${f.constructor.name}" was found`)}return new bw(l,d,i,o,s,a,u)}function gut(t,e){if(e.length>1)throw new Error(`"${t}" trigger can only have zero or one parameters`)}function yut(t,e){if(t===Ni.VIEWPORT){if(e.length>1)throw new Error(`Hydration trigger "${t}" cannot have more than one parameter`);return}if(e.length>0)throw new Error(`Hydration trigger "${t}" cannot have parameters`)}function Yw(t,e=0){let r=!1;for(let n=e;n<t.length;n++)if(uut.test(t[n]))r=!0;else if(r)return n;return-1}function a3(t){let e=t.match(aut);if(!e)return null;let[r,n]=e;return parseFloat(r)*(n==="s"?1e3:1)}var fH=class t extends ub{dynamicNode=null;static findDynamicNode(e){let r=new t;return r.visit(e),r.dynamicNode}visit(e){!(e instanceof Ao)&&!(e instanceof wo)&&!(e instanceof dw)&&!(e instanceof dy)?this.dynamicNode=e:super.visit(e)}},vut=/^prefetch\s+when\s/,_ut=/^prefetch\s+on\s/,but=/^hydrate\s+when\s/,Eut=/^hydrate\s+on\s/,Sut=/^hydrate\s+never(\s*)$/,G0e=/^minimum\s/,Tut=/^after\s/,wut=/^when\s/,Iut=/^on\s/;function pH(t){return t==="placeholder"||t==="loading"||t==="error"}function Aut(t,e,r,n){let i=[],{placeholder:o,loading:s,error:a}=xut(e,i,r),{triggers:u,prefetchTriggers:c,hydrateTriggers:l}=Nut(t,n,i),d=t.endSourceSpan,f=t.sourceSpan.end;if(e.length>0){let y=e[e.length-1];d=y.endSourceSpan,f=y.sourceSpan.end}let p=new $e(t.sourceSpan.start,f);return{node:new fy(Ir(r,t.children,t.children),u,c,l,o,s,a,t.nameSpan,p,t.sourceSpan,t.startSourceSpan,d,t.i18n),errors:i}}function xut(t,e,r){let n=null,i=null,o=null;for(let s of t)try{if(!pH(s.name)){e.push(new Pe(s.startSourceSpan,`Unrecognized block "@${s.name}"`));break}switch(s.name){case"placeholder":n!==null?e.push(new Pe(s.startSourceSpan,"@defer block can only have one @placeholder block")):n=Cut(s,r);break;case"loading":i!==null?e.push(new Pe(s.startSourceSpan,"@defer block can only have one @loading block")):i=Out(s,r);break;case"error":o!==null?e.push(new Pe(s.startSourceSpan,"@defer block can only have one @error block")):o=Put(s,r);break}}catch(a){e.push(new Pe(s.startSourceSpan,a.message))}return{placeholder:n,loading:i,error:o}}function Cut(t,e){let r=null;for(let n of t.parameters)if(G0e.test(n.expression)){if(r!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let i=a3(n.expression.slice(Yw(n.expression)));if(i===null)throw new Error('Could not parse time value of parameter "minimum"');r=i}else throw new Error(`Unrecognized parameter in @placeholder block: "${n.expression}"`);return new Ew(Ir(e,t.children,t.children),r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Out(t,e){let r=null,n=null;for(let i of t.parameters)if(Tut.test(i.expression)){if(r!=null)throw new Error('@loading block can only have one "after" parameter');let o=a3(i.expression.slice(Yw(i.expression)));if(o===null)throw new Error('Could not parse time value of parameter "after"');r=o}else if(G0e.test(i.expression)){if(n!=null)throw new Error('@loading block can only have one "minimum" parameter');let o=a3(i.expression.slice(Yw(i.expression)));if(o===null)throw new Error('Could not parse time value of parameter "minimum"');n=o}else throw new Error(`Unrecognized parameter in @loading block: "${i.expression}"`);return new Sw(Ir(e,t.children,t.children),r,n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Put(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new Tw(Ir(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Nut(t,e,r,n){let i={},o={},s={};for(let a of t.parameters)wut.test(a.expression)?VU(a,e,i,r):Iut.test(a.expression)?HU(a,e,i,r):vut.test(a.expression)?VU(a,e,o,r):_ut.test(a.expression)?HU(a,e,o,r):but.test(a.expression)?VU(a,e,s,r):Eut.test(a.expression)?HU(a,e,s,r):Sut.test(a.expression)?cut(a,s,r):r.push(new Pe(a.sourceSpan,"Unrecognized trigger"));return s.never&&Object.keys(s).length>1&&r.push(new Pe(t.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:i,prefetchTriggers:o,hydrateTriggers:s}}var Dut=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,dye=1,fye=2,pye=3,hye=4,mye=5,Mut=6,jT=7,Ap={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},GU="*",kut=new Set(["link","style","script","ng-template","ng-container","ng-content"]),Rut=new Set(["ngProjectAs","ngNonBindable"]);function Lut(t,e,r){let n=new hH(e,r),i=Ir(n,t,t),o=e.errors.concat(n.errors),s={nodes:i,errors:o,styleUrls:n.styleUrls,styles:n.styles,ngContentSelectors:n.ngContentSelectors};return r.collectCommentNodes&&(s.commentNodes=n.commentNodes),s}var hH=class{bindingParser;options;errors=[];styles=[];styleUrls=[];ngContentSelectors=[];commentNodes=[];inI18nBlock=!1;processedNodes=new Set;constructor(e,r){this.bindingParser=e,this.options=r}visitElement(e){let r=tM(e.i18n);r&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);let n=H0e(e);if(n.type===xo.SCRIPT)return null;if(n.type===xo.STYLE){let _=$ut(e);return _!==null&&this.styles.push(_),null}else if(n.type===xo.STYLESHEET&&Lat(n.hrefAttr))return this.styleUrls.push(n.hrefAttr),null;let i=RJe(e.name),{attributes:o,boundEvents:s,references:a,variables:u,templateVariables:c,elementHasInlineTemplate:l,parsedProperties:d,templateParsedProperties:f,i18nAttrsMeta:p}=this.prepareAttributes(e.attrs,i),m=this.extractDirectives(e),y;n.nonBindable?y=Ir(gye,e.children).flat(1/0):y=Ir(this,e.children,e.children);let g;if(n.type===xo.NG_CONTENT){let _=n.selectAttr,b=e.attrs.map(S=>this.visitAttribute(S));g=new fb(_,b,y,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n),this.ngContentSelectors.push(_)}else if(i){let _=this.categorizePropertyAttributes(e.name,d,p);g=new ds(e.name,o,_.bound,s,m,[],y,a,u,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let _=this.categorizePropertyAttributes(e.name,d,p);if(e.name==="ng-container")for(let b of _.bound)b.type===Ct.Attribute&&this.reportError("Attribute bindings are not supported on ng-container. Use property bindings instead.",b.sourceSpan);g=new cl(e.name,o,_.bound,s,m,y,a,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n)}return l&&(g=this.wrapInTemplate(g,f,c,p,i,r)),r&&(this.inI18nBlock=!1),g}visitAttribute(e){return new lb(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return this.processedNodes.has(e)?null:this._visitTextWithInterpolation(e.value,e.sourceSpan,e.tokens,e.i18n)}visitExpansion(e){if(!e.i18n)return null;if(!tM(e.i18n))throw new Error(`Invalid type "${e.i18n.constructor}" for "i18n" property of ${e.sourceSpan.toString()}. Expected a "Message"`);let r=e.i18n,n={},i={};return Object.keys(r.placeholders).forEach(o=>{let s=r.placeholders[o];if(o.startsWith(jJe)){let a=o.trim(),u=this.bindingParser.parseInterpolationExpression(s.text,s.sourceSpan);n[a]=new cb(u,s.sourceSpan)}else i[o]=this._visitTextWithInterpolation(s.text,s.sourceSpan,null)}),new Rye(n,i,e.sourceSpan,r)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new p3(e.value||"",e.sourceSpan)),null}visitLetDeclaration(e,r){let n=this.bindingParser.parseBinding(e.value,!1,e.valueSpan,e.valueSpan.start.offset);return n.errors.length===0&&n.ast instanceof Oi&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new CH(e.name,n,e.sourceSpan,e.nameSpan,e.valueSpan)}visitComponent(e){let r=tM(e.i18n);if(r&&(this.inI18nBlock&&this.reportError("Cannot mark a component as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0),e.tagName!==null&&kut.has(e.tagName))return this.reportError(`Tag name "${e.tagName}" cannot be used as a component tag`,e.startSourceSpan),null;let{attributes:n,boundEvents:i,references:o,templateVariables:s,elementHasInlineTemplate:a,parsedProperties:u,templateParsedProperties:c,i18nAttrsMeta:l}=this.prepareAttributes(e.attrs,!1);this.validateSelectorlessReferences(o);let d=this.extractDirectives(e),f;e.attrs.find(y=>y.name==="ngNonBindable")?f=Ir(gye,e.children).flat(1/0):f=Ir(this,e.children,e.children);let p=this.categorizePropertyAttributes(e.tagName,u,l),m=new WT(e.componentName,e.tagName,e.fullName,n,p.bound,i,d,f,o,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return a&&(m=this.wrapInTemplate(m,c,s,l,!1,r)),r&&(this.inI18nBlock=!1),m}visitDirective(){return null}visitBlockParameter(){return null}visitBlock(e,r){let n=Array.isArray(r)?r.indexOf(e):-1;if(n===-1)throw new Error("Visitor invoked incorrectly. Expecting visitBlock to be invoked siblings array as its context");if(this.processedNodes.has(e))return null;let i=null;switch(e.name){case"defer":i=Aut(e,this.findConnectedBlocks(n,r,pH),this,this.bindingParser);break;case"switch":i=eut(e,this,this.bindingParser);break;case"for":i=Jat(e,this.findConnectedBlocks(n,r,aye),this,this.bindingParser);break;case"if":i=Xat(e,this.findConnectedBlocks(n,r,uye),this,this.bindingParser);break;default:let o;pH(e.name)?(o=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):aye(e.name)?(o=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):uye(e.name)?(o=`@${e.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(e)):o=`Unrecognized block @${e.name}.`,i={node:new NM(e.name,e.sourceSpan,e.nameSpan),errors:[new Pe(e.sourceSpan,o)]};break}return this.errors.push(...i.errors),i.node}findConnectedBlocks(e,r,n){let i=[];for(let o=e+1;o<r.length;o++){let s=r[o];if(!(s instanceof Vw)){if(s instanceof by&&s.value.trim().length===0){this.processedNodes.add(s);continue}if(!(s instanceof Gs)||!n(s.name))break;i.push(s),this.processedNodes.add(s)}}return i}categorizePropertyAttributes(e,r,n){let i=[],o=[];return r.forEach(s=>{let a=n[s.name];if(s.isLiteral)o.push(new lb(s.name,s.expression.source||"",s.sourceSpan,s.keySpan,s.valueSpan,a));else{let u=s.name.toLowerCase().startsWith("attr.on"),c=this.bindingParser.createBoundElementProperty(e,s,!u,!1);i.push(fV.fromBoundElementProperty(c,a))}}),{bound:i,literal:o}}prepareAttributes(e,r){let n=[],i=[],o=[],s=[],a=[],u={},c=[],l=[],d=!1;for(let f of e){let p=!1,m=yye(f.name),y=!1;if(f.i18n&&(u[f.name]=f.i18n),m.startsWith(GU)){d&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",f.sourceSpan),y=!0,d=!0;let g=f.value,_=m.substring(GU.length),b=[],S=f.valueSpan?f.valueSpan.fullStart.offset:f.sourceSpan.fullStart.offset+f.name.length;this.bindingParser.parseInlineTemplateBinding(_,g,f.sourceSpan,S,[],c,b,!0),l.push(...b.map(x=>new $p(x.name,x.value,x.sourceSpan,x.keySpan,x.valueSpan)))}else p=this.parseAttribute(r,f,[],n,i,o,s);!p&&!y&&a.push(this.visitAttribute(f))}return{attributes:a,boundEvents:i,references:s,variables:o,templateVariables:l,elementHasInlineTemplate:d,parsedProperties:n,templateParsedProperties:c,i18nAttrsMeta:u}}parseAttribute(e,r,n,i,o,s,a){let u=yye(r.name),c=r.value,l=r.sourceSpan,d=r.valueSpan?r.valueSpan.fullStart.offset:l.fullStart.offset;function f(_,b,S){let x=r.name.length-u.length,N=_.start.moveBy(b.length+x),z=N.moveBy(S.length);return new $e(N,z,N,S)}let p=u.match(Dut);if(p){if(p[dye]!=null){let _=p[jT],b=f(l,p[dye],_);this.bindingParser.parsePropertyBinding(_,c,!1,!1,l,d,r.valueSpan,n,i,b)}else if(p[fye])if(e){let _=p[jT],b=f(l,p[fye],_);this.parseVariable(_,c,l,b,r.valueSpan,s)}else this.reportError('"let-" is only supported on ng-template elements.',l);else if(p[pye]){let _=p[jT],b=f(l,p[pye],_);this.parseReference(_,c,l,b,r.valueSpan,a)}else if(p[hye]){let _=[],b=p[jT],S=f(l,p[hye],b);this.bindingParser.parseEvent(b,c,!1,l,r.valueSpan||l,n,_,S),WU(_,o)}else if(p[mye]){let _=p[jT],b=f(l,p[mye],_);this.bindingParser.parsePropertyBinding(_,c,!1,!0,l,d,r.valueSpan,n,i,b),this.parseAssignmentEvent(_,c,l,r.valueSpan,n,o,b,d)}else if(p[Mut]){let _=f(l,"",u);this.bindingParser.parseLiteralAttr(u,c,l,d,r.valueSpan,n,i,_)}return!0}let m=null;if(u.startsWith(Ap.BANANA_BOX.start)?m=Ap.BANANA_BOX:u.startsWith(Ap.PROPERTY.start)?m=Ap.PROPERTY:u.startsWith(Ap.EVENT.start)&&(m=Ap.EVENT),m!==null&&u.endsWith(m.end)&&u.length>m.start.length+m.end.length){let _=u.substring(m.start.length,u.length-m.end.length),b=f(l,m.start,_);if(m.start===Ap.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(_,c,!1,!0,l,d,r.valueSpan,n,i,b),this.parseAssignmentEvent(_,c,l,r.valueSpan,n,o,b,d);else if(m.start===Ap.PROPERTY.start)this.bindingParser.parsePropertyBinding(_,c,!1,!1,l,d,r.valueSpan,n,i,b);else{let S=[];this.bindingParser.parseEvent(_,c,!1,l,r.valueSpan||l,n,S,b),WU(S,o)}return!0}let y=f(l,"",u);return this.bindingParser.parsePropertyInterpolation(u,c,l,r.valueSpan,n,i,y,r.valueTokens??null)}extractDirectives(e){let r=e instanceof Xi?e.tagName:e.name,n=[],i=new Set;for(let o of e.directives){let s=!1;for(let p of o.attrs)p.name.startsWith(GU)?(s=!0,this.reportError(`Shorthand template syntax "${p.name}" is not supported inside a directive context`,p.sourceSpan)):Rut.has(p.name)&&(s=!0,this.reportError(`Attribute "${p.name}" is not supported in a directive context`,p.sourceSpan));if(!s&&i.has(o.name)&&(s=!0,this.reportError(`Cannot apply directive "${o.name}" multiple times on the same element`,o.sourceSpan)),s)continue;let{attributes:a,parsedProperties:u,boundEvents:c,references:l,i18nAttrsMeta:d}=this.prepareAttributes(o.attrs,!1);this.validateSelectorlessReferences(l);let{bound:f}=this.categorizePropertyAttributes(r,u,d);for(let p of f)p.type!==Ct.Property&&p.type!==Ct.TwoWay&&(s=!0,this.reportError("Binding is not supported in a directive context",p.sourceSpan));s||(i.add(o.name),n.push(new kye(o.name,a,f,c,l,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,void 0)))}return n}filterAnimationAttributes(e){return e.filter(r=>!r.name.startsWith("animate."))}filterAnimationInputs(e){return e.filter(r=>r.type!==Ct.Animation)}wrapInTemplate(e,r,n,i,o,s){let a=this.categorizePropertyAttributes("ng-template",r,i),u=[];a.literal.forEach(f=>u.push(f)),a.bound.forEach(f=>u.push(f));let c={attributes:[],inputs:[],outputs:[]};(e instanceof cl||e instanceof WT)&&(c.attributes.push(...this.filterAnimationAttributes(e.attributes)),c.inputs.push(...this.filterAnimationInputs(e.inputs)),c.outputs.push(...e.outputs));let l=o&&s?void 0:e.i18n,d;return e instanceof WT?d=e.tagName:e instanceof ds?d=null:d=e.name,new ds(d,c.attributes,c.inputs,c.outputs,[],u,[e],[],n,!1,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,l)}_visitTextWithInterpolation(e,r,n,i){let o=S0e(e),s=this.bindingParser.parseInterpolation(o,r,n);return s?new cb(s,r,i):new Zg(o,r)}parseVariable(e,r,n,i,o,s){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',n):e.length===0&&this.reportError("Variable does not have a name",n),s.push(new $p(e,r,n,i,o))}parseReference(e,r,n,i,o,s){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',n):e.length===0?this.reportError("Reference does not have a name",n):s.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,n),s.push(new Aw(e,r,n,i,o))}parseAssignmentEvent(e,r,n,i,o,s,a,u){let c=[];this.bindingParser.parseEvent(`${e}Change`,r,!0,n,i||n,o,c,a),WU(c,s)}validateSelectorlessReferences(e){if(e.length===0)return;let r=new Set;for(let n of e)n.value.length>0?this.reportError("Cannot specify a value for a local reference in this context",n.valueSpan||n.sourceSpan):r.has(n.name)?this.reportError("Duplicate reference names are not allowed",n.sourceSpan):r.add(n.name)}reportError(e,r,n=Ad.ERROR){this.errors.push(new Pe(r,e,n))}},mH=class{visitElement(e){let r=H0e(e);if(r.type===xo.SCRIPT||r.type===xo.STYLE||r.type===xo.STYLESHEET)return null;let n=Ir(this,e.children,null);return new cl(e.name,Ir(this,e.attrs),[],[],[],n,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid)}visitComment(e){return null}visitAttribute(e){return new lb(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new Zg(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,r){let n=[new Zg(e.startSourceSpan.toString(),e.startSourceSpan),...Ir(this,e.children)];return e.endSourceSpan!==null&&n.push(new Zg(e.endSourceSpan.toString(),e.endSourceSpan)),n}visitBlockParameter(e,r){return null}visitLetDeclaration(e,r){return new Zg(`@let ${e.name} = ${e.value};`,e.sourceSpan)}visitComponent(e,r){let n=Ir(this,e.children,null);return new cl(e.fullName,Ir(this,e.attrs),[],[],[],n,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,!1)}visitDirective(e,r){return null}},gye=new mH;function yye(t){return/^data-/i.test(t)?t.substring(5):t}function WU(t,e){e.push(...t.map(r=>pV.fromParsedEvent(r)))}function $ut(t){return t.children.length!==1||!(t.children[0]instanceof by)?null:t.children[0].value}var Fut=[" ",`
264
264
  `,"\r"," "];function jut(t,e,r={}){let{preserveWhitespaces:n,enableI18nLegacyMessageIdFormat:i}=r,o=r.enableSelectorless??!1,s=u3(o),u=new uH().parse(t,e,{leadingTriviaChars:Fut,...r,tokenizeExpansionForms:!0,tokenizeBlocks:r.enableBlockSyntax??!0,tokenizeLet:r.enableLetSyntax??!0,selectorlessEnabled:o});if(!r.alwaysAttemptHtmlToR3AstConversion&&u.errors&&u.errors.length>0){let x={preserveWhitespaces:n,errors:u.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return r.collectCommentNodes&&(x.commentNodes=[]),x}let c=u.rootNodes,l=!(r.preserveSignificantWhitespace??!0),d=new r3(!n,i,r.preserveSignificantWhitespace,l),f=d.visitAllWithErrors(c);if(!r.alwaysAttemptHtmlToR3AstConversion&&f.errors&&f.errors.length>0){let x={preserveWhitespaces:n,errors:f.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return r.collectCommentNodes&&(x.commentNodes=[]),x}c=f.rootNodes,n||(c=Ir(new e3(!0,void 0,!1),c),d.hasI18nMeta&&(c=Ir(new r3(!1,void 0,!0,l),c)));let{nodes:p,errors:m,styleUrls:y,styles:g,ngContentSelectors:_,commentNodes:b}=Lut(c,s,{collectCommentNodes:!!r.collectCommentNodes});m.push(...u.errors,...f.errors);let S={preserveWhitespaces:n,errors:m.length>0?m:null,nodes:p,styleUrls:y,styles:g,ngContentSelectors:_};return r.collectCommentNodes&&(S.commentNodes=b),S}var qut=new _b;function u3(t=!1){return new oH(new t3(new Ww,t),qut,[])}var W0e="%COMP%",But=`_nghost-${W0e}`,Uut=`_ngcontent-${W0e}`;function K0e(t,e,r){let n=new qp,i=IH(t.selector);return n.set("type",t.type.value),i.length>0&&n.set("selectors",W_(i)),t.queries.length>0&&n.set("contentQueries",Rat(t.queries,e,t.name)),t.viewQueries.length&&n.set("viewQuery",kat(t.viewQueries,e,t.name)),n.set("hostBindings",Yut(t.host,t.typeSourceSpan,r,e,t.selector||"",t.name,n)),n.set("inputs",Wme(t.inputs,!0)),n.set("outputs",Wme(t.outputs)),t.exportAs!==null&&n.set("exportAs",or(t.exportAs.map(o=>C(o)))),t.isStandalone===!1&&n.set("standalone",C(!1)),t.isSignal&&n.set("signals",C(!0)),n}function z0e(t,e){let r=[],n=e.providers,i=e.viewProviders;if(n||i){let o=[n||new al([])];i&&o.push(i),r.push(me(T.ProvidersFeature).callFn(o))}if(e.hostDirectives?.length&&r.push(me(T.HostDirectivesFeature).callFn([tct(e.hostDirectives)])),e.usesInheritance&&r.push(me(T.InheritDefinitionFeature)),e.lifecycle.usesOnChanges&&r.push(me(T.NgOnChangesFeature)),e.controlCreate!==null&&r.push(me(T.ControlFeature).callFn([C(e.controlCreate.passThroughInput)])),"externalStyles"in e&&e.externalStyles?.length){let o=e.externalStyles.map(s=>C(s));r.push(me(T.ExternalStylesFeature).callFn([or(o)]))}r.length&&t.set("features",or(r))}function Vut(t,e,r){let n=K0e(t,e,r);z0e(n,t);let i=me(T.defineDirective).callFn([n.toLiteralMap()],void 0,!0),o=Qut(t);return{expression:i,type:o,statements:[]}}function Hut(t,e,r){let n=K0e(t,e,r);z0e(n,t);let i=t.selector&&eb.parse(t.selector),o=i&&i[0];if(o){let m=o.getAttrs();m.length&&n.set("attrs",e.getConstLiteral(or(m.map(y=>y!=null?C(y):C(void 0))),!0))}let s=t.name,a=null;if(t.defer.mode===1&&t.defer.dependenciesFn!==null){let m=`${s}_DeferFn`;e.statements.push(new Ln(m,t.defer.dependenciesFn,void 0,Xn.Final)),a=pt(m)}let u=t.isStandalone&&!t.hasDirectiveDependencies?Ji.DomOnly:Ji.Full,c=cat(t.name,t.template.nodes,e,u,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,a,t.relativeTemplatePath,Nat());k0e(c,ue.Tmpl);let l=tat(c,e);if(c.contentSelectors!==null&&n.set("ngContentSelectors",c.contentSelectors),n.set("decls",C(c.root.decls)),n.set("vars",C(c.root.vars)),c.consts.length>0&&(c.constsInitializers.length>0?n.set("consts",hs([],[...c.constsInitializers,new An(or(c.consts))])):n.set("consts",or(c.consts))),n.set("template",l),t.declarationListEmitMode!==3&&t.declarations.length>0)n.set("dependencies",Wut(or(t.declarations.map(m=>m.type)),t.declarationListEmitMode));else if(t.declarationListEmitMode===3){let m=[t.type.value];t.rawImports&&m.push(t.rawImports),n.set("dependencies",me(T.getComponentDepsFactory).callFn(m))}t.encapsulation===null&&(t.encapsulation=Pp.Emulated);let d=!!t.externalStyles?.length;if(t.styles&&t.styles.length){let y=(t.encapsulation==Pp.Emulated?ect(t.styles,Uut,But):t.styles).reduce((g,_)=>(_.trim().length>0&&g.push(e.getConstLiteral(C(_))),g),[]);y.length>0&&(d=!0,n.set("styles",or(y)))}!d&&t.encapsulation===Pp.Emulated&&(t.encapsulation=Pp.None),t.encapsulation!==Pp.Emulated&&n.set("encapsulation",C(t.encapsulation)),t.animations!==null&&n.set("data",Ys([{key:"animation",value:t.animations,quoted:!1}])),t.changeDetection!==null&&(typeof t.changeDetection=="number"&&t.changeDetection!==iM.Default?n.set("changeDetection",C(t.changeDetection)):typeof t.changeDetection=="object"&&n.set("changeDetection",t.changeDetection));let f=me(T.defineComponent).callFn([n.toLiteralMap()],void 0,!0),p=Gut(t);return{expression:f,type:p,statements:[]}}function Gut(t){let e=Q0e(t);return e.push(yH(t.template.ngContentSelectors)),e.push(ci(C(t.isStandalone))),e.push(Y0e(t)),t.isSignal&&e.push(ci(C(t.isSignal))),ci(me(T.ComponentDeclaration,e))}function Wut(t,e){switch(e){case 0:return t;case 1:return hs([],t);case 2:let r=t.prop("map").callFn([me(T.resolveForwardRef)]);return hs([],r);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function Kut(t){return ci(C(t))}function gH(t){let e=Object.keys(t).map(r=>{let n=Array.isArray(t[r])?t[r][0]:t[r];return{key:r,value:C(n),quoted:!0}});return Ys(e)}function yH(t){return t.length>0?ci(or(t.map(e=>C(e)))):ol}function Q0e(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[f3(t.type.type,t.typeArgumentCount),e!==null?Kut(e):ol,t.exportAs!==null?yH(t.exportAs):ol,ci(zut(t)),ci(gH(t.outputs)),yH(t.queries.map(r=>r.propertyName))]}function zut(t){return Ys(Object.keys(t.inputs).map(e=>{let r=t.inputs[e],n=[{key:"alias",value:C(r.bindingPropertyName),quoted:!0},{key:"required",value:C(r.required),quoted:!0}];return r.isSignal&&n.push({key:"isSignal",value:C(r.isSignal),quoted:!0}),{key:e,value:Ys(n),quoted:!0}}))}function Qut(t){let e=Q0e(t);return e.push(ol),e.push(ci(C(t.isStandalone))),e.push(Y0e(t)),t.isSignal&&e.push(ci(C(t.isSignal))),ci(me(T.DirectiveDeclaration,e))}function Yut(t,e,r,n,i,o,s){let a=r.createBoundHostProperties(t.properties,e),u=r.createDirectiveHostEventAsts(t.listeners,e);t.specialAttributes.styleAttr&&(t.attributes.style=C(t.specialAttributes.styleAttr)),t.specialAttributes.classAttr&&(t.attributes.class=C(t.specialAttributes.classAttr));let c=lat({componentName:o,componentSelector:i,properties:a,events:u,attributes:t.attributes},r,n);k0e(c,ue.Host),s.set("hostAttrs",c.root.attributes);let l=c.root.vars;return l!==null&&l>0&&s.set("hostVars",C(l)),rat(c)}function Zut(t){let e={},r={},n={},i={};for(let o of Object.keys(t)){let s=t[o];if(o.startsWith("(")&&o.endsWith(")")){if(typeof s!="string")throw new Error("Event binding must be string");r[o.slice(1,-1)]=s}else if(o.startsWith("[")&&o.endsWith("]")){if(typeof s!="string")throw new Error("Property binding must be string");n[o.slice(1,-1)]=s}else switch(o){case"class":if(typeof s!="string")throw new Error("Class binding must be string");i.classAttr=s;break;case"style":if(typeof s!="string")throw new Error("Style binding must be string");i.styleAttr=s;break;default:typeof s=="string"?e[o]=C(s):e[o]=s}}return{attributes:e,listeners:r,properties:n,specialAttributes:i}}function Xut(t,e){let r=u3();return r.createDirectiveHostEventAsts(t.listeners,e),r.createBoundHostProperties(t.properties,e),Jut(t,r,e),r.errors}function Jut(t,e,r){for(let n in t.properties){let i=n.startsWith("attr."),o=i?n.slice(5):n;if(o.toLowerCase().startsWith("on")){let s=i?"attribute":"property",a=`(${o.slice(2)})=...`,u=`Binding to event ${s} '${o}' is disallowed for security reasons, please use ${a}`;i||(u+=`
265
265
  If '${n}' is a directive input, make sure the directive is imported by the current module.`),e.errors.push(new Pe(r,u))}}}function ect(t,e,r){let n=new CV;return t.map(i=>n.shimCssText(i,e,r))}function Y0e(t){return t.hostDirectives?.length?ci(or(t.hostDirectives.map(e=>Ys([{key:"directive",value:Zw(e.directive.type),quoted:!1},{key:"inputs",value:gH(e.inputs||{}),quoted:!1},{key:"outputs",value:gH(e.outputs||{}),quoted:!1}])))):ol}function tct(t){let e=[],r=!1;for(let n of t){if(!n.inputs&&!n.outputs)e.push(n.directive.type);else{let i=[{key:"directive",value:n.directive.type,quoted:!1}];if(n.inputs){let o=vye(n.inputs);o&&i.push({key:"inputs",value:o,quoted:!1})}if(n.outputs){let o=vye(n.outputs);o&&i.push({key:"outputs",value:o,quoted:!1})}e.push(Ys(i))}n.isForwardReference&&(r=!0)}return r?new Mp([],[new An(or(e))]):or(e)}function vye(t){let e=[];for(let r in t)t.hasOwnProperty(r)&&e.push(C(r),C(t[r]));return e.length>0?or(e):null}var vH=class extends ub{visit(e){e instanceof Ao?this.visit(e.ast):e.visit(this)}visitElement(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitTemplate(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.templateAttrs),this.visitAllTemplateNodes(e.variables),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitContent(e){this.visitAllTemplateNodes(e.children)}visitBoundAttribute(e){this.visit(e.value)}visitBoundEvent(e){this.visit(e.handler)}visitBoundText(e){this.visit(e.value)}visitIcu(e){Object.keys(e.vars).forEach(r=>this.visit(e.vars[r])),Object.keys(e.placeholders).forEach(r=>this.visit(e.placeholders[r]))}visitDeferredBlock(e){e.visitAll(this)}visitDeferredTrigger(e){e instanceof AM?this.visit(e.value):e instanceof bw&&e.options!==null&&this.visit(e.options)}visitDeferredBlockPlaceholder(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockError(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockLoading(e){this.visitAllTemplateNodes(e.children)}visitSwitchBlock(e){this.visit(e.expression),this.visitAllTemplateNodes(e.groups)}visitSwitchBlockCase(e){e.expression&&this.visit(e.expression)}visitSwitchBlockCaseGroup(e){this.visitAllTemplateNodes(e.cases),this.visitAllTemplateNodes(e.children)}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){e.item.visit(this),this.visitAllTemplateNodes(e.contextVariables),this.visit(e.expression),this.visitAllTemplateNodes(e.children),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.visitAllTemplateNodes(e.children)}visitIfBlock(e){this.visitAllTemplateNodes(e.branches)}visitIfBlockBranch(e){e.expression&&this.visit(e.expression),e.expressionAlias?.visit(this),this.visitAllTemplateNodes(e.children)}visitLetDeclaration(e){this.visit(e.value)}visitComponent(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitDirective(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.references)}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitText(e){}visitUnknownBlock(e){}visitAllTemplateNodes(e){for(let r of e)this.visit(r)}};var _H=class{directiveMatcher;constructor(e){this.directiveMatcher=e}bind(e){if(!e.template&&!e.host)throw new Error("Empty bound targets are not supported");let r=new Map,n=[],i=new Set,o=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Map,d=new Set,f=new Set,p=[];if(e.template){let m=c3.apply(e.template);rct(m,a),bH.apply(e.template,this.directiveMatcher,r,n,i,o,s),l3.applyWithScope(e.template,m,u,c,l,d,f,p)}return e.host&&(r.set(e.host.node,e.host.directives),l3.applyWithScope(e.host.node,c3.apply(e.host.node),u,c,l,d,f,p)),new EH(e,r,n,i,o,s,u,c,l,a,d,f,p)}},c3=class t{parentScope;rootNode;namedEntities=new Map;elementLikeInScope=new Set;childScopes=new Map;isDeferred;constructor(e,r){this.parentScope=e,this.rootNode=r,this.isDeferred=e!==null&&e.isDeferred?!0:r instanceof fy}static newRootScope(){return new t(null,null)}static apply(e){let r=t.newRootScope();return r.ingest(e),r}ingest(e){e instanceof ds?(e.variables.forEach(r=>this.visitVariable(r)),e.children.forEach(r=>r.visit(this))):e instanceof Jg?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(r=>r.visit(this))):e instanceof db?(this.visitVariable(e.item),e.contextVariables.forEach(r=>this.visitVariable(r)),e.children.forEach(r=>r.visit(this))):e instanceof ww||e instanceof Iw||e instanceof fy||e instanceof Tw||e instanceof Ew||e instanceof Sw||e instanceof fb?e.children.forEach(r=>r.visit(this)):e instanceof xw||e.forEach(r=>r.visit(this))}visitElement(e){this.visitElementLike(e)}visitTemplate(e){e.directives.forEach(r=>r.visit(this)),e.references.forEach(r=>this.visitReference(r)),this.ingestScopedNode(e)}visitVariable(e){this.maybeDeclare(e)}visitReference(e){this.maybeDeclare(e)}visitDeferredBlock(e){this.ingestScopedNode(e),e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlock(e){e.groups.forEach(r=>r.visit(this))}visitSwitchBlockCase(e){}visitSwitchBlockCaseGroup(e){this.ingestScopedNode(e)}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlock(e){e.branches.forEach(r=>r.visit(this))}visitIfBlockBranch(e){this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitLetDeclaration(e){this.maybeDeclare(e)}visitComponent(e){this.visitElementLike(e)}visitDirective(e){e.references.forEach(r=>this.visitReference(r))}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitElementLike(e){e.directives.forEach(r=>r.visit(this)),e.references.forEach(r=>this.visitReference(r)),e.children.forEach(r=>r.visit(this)),this.elementLikeInScope.add(e)}maybeDeclare(e){this.namedEntities.has(e.name)||this.namedEntities.set(e.name,e)}lookup(e){return this.namedEntities.has(e)?this.namedEntities.get(e):this.parentScope!==null?this.parentScope.lookup(e):null}getChildScope(e){let r=this.childScopes.get(e);if(r===void 0)throw new Error(`Assertion error: child scope for ${e} not found`);return r}ingestScopedNode(e){let r=new t(this,e);r.ingest(e),this.childScopes.set(e,r)}},bH=class t{directiveMatcher;directives;eagerDirectives;missingDirectives;bindings;references;isInDeferBlock=!1;constructor(e,r,n,i,o,s){this.directiveMatcher=e,this.directives=r,this.eagerDirectives=n,this.missingDirectives=i,this.bindings=o,this.references=s}static apply(e,r,n,i,o,s,a){new t(r,n,i,o,s,a).ingest(e)}ingest(e){e.forEach(r=>r.visit(this))}visitElement(e){this.visitElementOrTemplate(e)}visitTemplate(e){this.visitElementOrTemplate(e)}visitDeferredBlock(e){let r=this.isInDeferBlock;this.isInDeferBlock=!0,e.children.forEach(n=>n.visit(this)),this.isInDeferBlock=r,e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){e.children.forEach(r=>r.visit(this))}visitDeferredBlockError(e){e.children.forEach(r=>r.visit(this))}visitDeferredBlockLoading(e){e.children.forEach(r=>r.visit(this))}visitSwitchBlock(e){e.groups.forEach(r=>r.visit(this))}visitSwitchBlockCase(e){}visitSwitchBlockCaseGroup(e){e.children.forEach(r=>r.visit(this))}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){e.item.visit(this),e.contextVariables.forEach(r=>r.visit(this)),e.children.forEach(r=>r.visit(this)),e.empty?.visit(this)}visitForLoopBlockEmpty(e){e.children.forEach(r=>r.visit(this))}visitIfBlock(e){e.branches.forEach(r=>r.visit(this))}visitIfBlockBranch(e){e.expressionAlias?.visit(this),e.children.forEach(r=>r.visit(this))}visitContent(e){e.children.forEach(r=>r.visit(this))}visitComponent(e){if(this.directiveMatcher instanceof nM){let r=this.directiveMatcher.match(e.componentName);r.length>0?this.trackSelectorlessMatchesAndDirectives(e,r):this.missingDirectives.add(e.componentName)}e.directives.forEach(r=>r.visit(this)),e.children.forEach(r=>r.visit(this))}visitDirective(e){if(this.directiveMatcher instanceof nM){let r=this.directiveMatcher.match(e.name);r.length>0?this.trackSelectorlessMatchesAndDirectives(e,r):this.missingDirectives.add(e.name)}}visitElementOrTemplate(e){if(this.directiveMatcher instanceof rM){let r=[],n=UJe(e);this.directiveMatcher.match(n,(i,o)=>r.push(...o)),this.trackSelectorBasedBindingsAndDirectives(e,r)}else e.references.forEach(r=>{r.value.trim()===""&&this.references.set(r,e)});e.directives.forEach(r=>r.visit(this)),e.children.forEach(r=>r.visit(this))}trackMatchedDirectives(e,r){r.length>0&&(this.directives.set(e,r),this.isInDeferBlock||this.eagerDirectives.push(...r))}trackSelectorlessMatchesAndDirectives(e,r){if(r.length===0)return;this.trackMatchedDirectives(e,r);let n=(i,o,s)=>{i[s].hasBindingPropertyName(o.name)&&this.bindings.set(o,i)};for(let i of r)e.inputs.forEach(o=>n(i,o,"inputs")),e.attributes.forEach(o=>n(i,o,"inputs")),e.outputs.forEach(o=>n(i,o,"outputs"));e.references.forEach(i=>this.references.set(i,{directive:r[0],node:e}))}trackSelectorBasedBindingsAndDirectives(e,r){this.trackMatchedDirectives(e,r),e.references.forEach(i=>{let o=null;if(i.value.trim()==="")o=r.find(s=>s.isComponent)||null;else if(o=r.find(s=>s.exportAs!==null&&s.exportAs.some(a=>a===i.value))||null,o===null)return;o!==null?this.references.set(i,{directive:o,node:e}):this.references.set(i,e)});let n=(i,o)=>{let s=r.find(u=>u[o].hasBindingPropertyName(i.name)),a=s!==void 0?s:e;this.bindings.set(i,a)};e.inputs.forEach(i=>n(i,"inputs")),e.attributes.forEach(i=>n(i,"inputs")),e instanceof ds&&e.templateAttrs.forEach(i=>n(i,"inputs")),e.outputs.forEach(i=>n(i,"outputs"))}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundAttributeOrEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitLetDeclaration(e){}},l3=class t extends vH{bindings;symbols;usedPipes;eagerPipes;deferBlocks;nestingLevel;scope;rootNode;level;visitNode=e=>e.visit(this);constructor(e,r,n,i,o,s,a,u,c){super(),this.bindings=e,this.symbols=r,this.usedPipes=n,this.eagerPipes=i,this.deferBlocks=o,this.nestingLevel=s,this.scope=a,this.rootNode=u,this.level=c}static applyWithScope(e,r,n,i,o,s,a,u){let c=e instanceof ds?e:null;new t(n,i,s,a,u,o,r,c,0).ingest(e)}ingest(e){if(e instanceof ds)e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Jg)e.expressionAlias!==null&&this.visitNode(e.expressionAlias),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof db)this.visitNode(e.item),e.contextVariables.forEach(r=>this.visitNode(r)),e.trackBy.visit(this),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof fy){if(this.scope.rootNode!==e)throw new Error(`Assertion error: resolved incorrect scope for deferred block ${e}`);this.deferBlocks.push([e,this.scope]),e.children.forEach(r=>r.visit(this)),this.nestingLevel.set(e,this.level)}else e instanceof ww||e instanceof Iw||e instanceof Tw||e instanceof Ew||e instanceof Sw||e instanceof fb?(e.children.forEach(r=>r.visit(this)),this.nestingLevel.set(e,this.level)):e instanceof xw?this.nestingLevel.set(e,0):e.forEach(this.visitNode)}visitTemplate(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.directives.forEach(this.visitNode),e.templateAttrs.forEach(this.visitNode),e.references.forEach(this.visitNode),this.ingestScopedNode(e)}visitVariable(e){this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitReference(e){this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitDeferredBlock(e){this.ingestScopedNode(e),e.triggers.when?.value.visit(this),e.prefetchTriggers.when?.value.visit(this),e.hydrateTriggers.when?.value.visit(this),e.hydrateTriggers.never?.visit(this),e.placeholder&&this.visitNode(e.placeholder),e.loading&&this.visitNode(e.loading),e.error&&this.visitNode(e.error)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlockCase(e){e.expression?.visit(this)}visitSwitchBlockCaseGroup(e){e.cases.forEach(r=>r.visit(this)),this.ingestScopedNode(e)}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){e.expression.visit(this),this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlockBranch(e){e.expression?.visit(this),this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitLetDeclaration(e){super.visitLetDeclaration(e),this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitPipe(e,r){return this.usedPipes.add(e.name),this.scope.isDeferred||this.eagerPipes.add(e.name),super.visitPipe(e,r)}visitPropertyRead(e,r){return this.maybeMap(e,e.name),super.visitPropertyRead(e,r)}visitSafePropertyRead(e,r){return this.maybeMap(e,e.name),super.visitSafePropertyRead(e,r)}ingestScopedNode(e){let r=this.scope.getChildScope(e);new t(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,r,e,this.level+1).ingest(e)}maybeMap(e,r){if(!(e.receiver instanceof ul))return;let n=this.scope.lookup(r);n!==null&&this.bindings.set(e,n)}},EH=class{target;directives;eagerDirectives;missingDirectives;bindings;references;exprTargets;symbols;nestingLevel;scopedNodeEntities;usedPipes;eagerPipes;deferredBlocks;deferredScopes;constructor(e,r,n,i,o,s,a,u,c,l,d,f,p){this.target=e,this.directives=r,this.eagerDirectives=n,this.missingDirectives=i,this.bindings=o,this.references=s,this.exprTargets=a,this.symbols=u,this.nestingLevel=c,this.scopedNodeEntities=l,this.usedPipes=d,this.eagerPipes=f,this.deferredBlocks=p.map(m=>m[0]),this.deferredScopes=new Map(p)}getEntitiesInScope(e){return this.scopedNodeEntities.get(e)??new Set}getDirectivesOfNode(e){return this.directives.get(e)||null}getReferenceTarget(e){return this.references.get(e)||null}getConsumerOfBinding(e){return this.bindings.get(e)||null}getExpressionTarget(e){return this.exprTargets.get(e)||null}getDefinitionNodeOfSymbol(e){return this.symbols.get(e)||null}getNestingLevel(e){return this.nestingLevel.get(e)||0}getUsedDirectives(){let e=new Set;return this.directives.forEach(r=>r.forEach(n=>e.add(n))),Array.from(e.values())}getEagerlyUsedDirectives(){let e=new Set(this.eagerDirectives);return Array.from(e.values())}getUsedPipes(){return Array.from(this.usedPipes)}getEagerlyUsedPipes(){return Array.from(this.eagerPipes)}getDeferBlocks(){return this.deferredBlocks}getDeferredTriggerTarget(e,r){if(!(r instanceof CM)&&!(r instanceof bw)&&!(r instanceof xM))return null;let n=r.reference;if(n===null){let o=null;if(e.placeholder!==null){for(let s of e.placeholder.children)if(!(s instanceof p3)){if(o!==null)return null;s instanceof cl&&(o=s)}}return o}let i=this.findEntityInScope(e,n);if(i instanceof Aw&&this.getDefinitionNodeOfSymbol(i)!==e){let o=this.getReferenceTarget(i);if(o!==null)return this.referenceTargetToElement(o)}if(e.placeholder!==null){let o=this.findEntityInScope(e.placeholder,n),s=o instanceof Aw?this.getReferenceTarget(o):null;if(s!==null)return this.referenceTargetToElement(s)}return null}isDeferred(e){for(let r of this.deferredBlocks){if(!this.deferredScopes.has(r))continue;let n=[this.deferredScopes.get(r)];for(;n.length>0;){let i=n.pop();if(i.elementLikeInScope.has(e))return!0;n.push(...i.childScopes.values())}}return!1}referencedDirectiveExists(e){return!this.missingDirectives.has(e)}findEntityInScope(e,r){let n=this.getEntitiesInScope(e);for(let i of n)if(i.name===r)return i;return null}referenceTargetToElement(e){return e instanceof cl?e:e instanceof ds||e.node instanceof WT||e.node instanceof kye||e.node instanceof xw?null:this.referenceTargetToElement(e.node)}};function rct(t,e){let r=new Map;function n(o){if(r.has(o.rootNode))return r.get(o.rootNode);let s=o.namedEntities,a;return o.parentScope!==null?a=new Map([...n(o.parentScope),...s]):a=new Map(s),r.set(o.rootNode,a),a}let i=[t];for(;i.length>0;){let o=i.pop();for(let s of o.childScopes.values())i.push(s);n(o)}for(let[o,s]of r)e.set(o,new Set(s.values()))}var SH=class{},TH=class{jitEvaluator;FactoryTarget=Xc;ResourceLoader=SH;elementSchemaRegistry=new _b;constructor(e=new IV){this.jitEvaluator=e}compilePipe(e,r,n){let i={name:n.name,type:kn(n.type),typeArgumentCount:0,pipeName:n.pipeName,pure:n.pure,isStandalone:n.isStandalone},o=nge(i);return this.jitExpression(o.expression,e,r,[])}compilePipeDeclaration(e,r,n){let i=_ct(n),o=nge(i);return this.jitExpression(o.expression,e,r,[])}compileInjectable(e,r,n){let{expression:i,statements:o}=Kme({name:n.name,type:kn(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:wye(n.providedIn),useClass:B_(n,"useClass"),useFactory:Tye(n,"useFactory"),useValue:B_(n,"useValue"),useExisting:B_(n,"useExisting"),deps:n.deps?.map(eve)},!0);return this.jitExpression(i,e,r,o)}compileInjectableDeclaration(e,r,n){let{expression:i,statements:o}=Kme({name:n.type.name,type:kn(n.type),typeArgumentCount:0,providedIn:wye(n.providedIn),useClass:B_(n,"useClass"),useFactory:Tye(n,"useFactory"),useValue:B_(n,"useValue"),useExisting:B_(n,"useExisting"),deps:n.deps?.map(Iye)},!0);return this.jitExpression(i,e,r,o)}compileInjector(e,r,n){let i={type:kn(n.type),providers:n.providers&&n.providers.length>0?new yt(n.providers):null,imports:n.imports.map(s=>new yt(s))},o=rge(i);return this.jitExpression(o.expression,e,r,[])}compileInjectorDeclaration(e,r,n){let i=bct(n),o=rge(i);return this.jitExpression(o.expression,e,r,[])}compileNgModule(e,r,n){let i={kind:xd.Global,type:kn(n.type),bootstrap:n.bootstrap.map(kn),declarations:n.declarations.map(kn),publicDeclarationTypes:null,imports:n.imports.map(kn),includeImportTypes:!0,exports:n.exports.map(kn),selectorScopeMode:Mw.Inline,containsForwardDecls:!1,schemas:n.schemas?n.schemas.map(kn):null,id:n.id?new yt(n.id):null},o=uet(i);return this.jitExpression(o.expression,e,r,[])}compileNgModuleDeclaration(e,r,n){let i=cet(n);return this.jitExpression(i,e,r,[])}compileDirective(e,r,n){let i=Eye(n);return this.compileDirectiveFromMeta(e,r,i)}compileDirectiveDeclaration(e,r,n){let i=this.createParseSourceSpan("Directive",n.type.name,r),o=X0e(n,i);return this.compileDirectiveFromMeta(e,r,o)}compileDirectiveFromMeta(e,r,n){let i=new mM,o=u3(),s=Vut(n,i,o);return this.jitExpression(s.expression,e,r,i.statements)}compileComponent(e,r,n){let{template:i,defer:o}=J0e(n.template,n.name,r,n.preserveWhitespaces,void 0),s={...n,...Eye(n),selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:i,declarations:n.declarations.map(sct),declarationListEmitMode:0,defer:o,styles:[...n.styles,...i.styles],encapsulation:n.encapsulation,changeDetection:n.changeDetection??null,animations:n.animations!=null?new yt(n.animations):null,viewProviders:n.viewProviders!=null?new yt(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null},a=`ng:///${n.name}.js`;return this.compileComponentFromMeta(e,a,s)}compileComponentDeclaration(e,r,n){let i=this.createParseSourceSpan("Component",n.type.name,r),o=oct(n,i,r);return this.compileComponentFromMeta(e,r,o)}compileComponentFromMeta(e,r,n){let i=new mM,o=u3(),s=Hut(n,i,o);return this.jitExpression(s.expression,e,r,i.statements)}compileFactory(e,r,n){let i=Wg({name:n.name,type:kn(n.type),typeArgumentCount:n.typeArgumentCount,deps:cct(n.deps),target:n.target});return this.jitExpression(i.expression,e,r,i.statements)}compileFactoryDeclaration(e,r,n){let i=Wg({name:n.type.name,type:kn(n.type),typeArgumentCount:0,deps:Array.isArray(n.deps)?n.deps.map(Iye):n.deps,target:n.target});return this.jitExpression(i.expression,e,r,i.statements)}createParseSourceSpan(e,r,n){return tet(e,r,n)}jitExpression(e,r,n,i){let o=[...i,new Ln("$def",e,void 0,Xn.Exported)];return this.jitEvaluator.evaluateStatements(n,o,new xV(r),!0).$def}};function _ye(t){return{...t,isSignal:t.isSignal,predicate:Z0e(t.predicate),read:t.read?new yt(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly}}function bye(t){return{propertyName:t.propertyName,first:t.first??!1,predicate:Z0e(t.predicate),descendants:t.descendants??!1,read:t.read?new yt(t.read):null,static:t.static??!1,emitDistinctChangesOnly:t.emitDistinctChangesOnly??!0,isSignal:!!t.isSignal}}function Z0e(t){return Array.isArray(t)?t:xH(new yt(t),1)}function Eye(t){let e=vct(t.inputs||[]),r=zU(t.outputs||[]),n=t.propMetadata,i={},o={};for(let a in n)n.hasOwnProperty(a)&&n[a].forEach(u=>{hct(u)?i[a]={bindingPropertyName:u.alias||a,classPropertyName:a,required:u.required||!1,isSignal:!!u.isSignal,transformFunction:u.transform!=null?new yt(u.transform):null}:mct(u)&&(o[a]=u.alias||a)});let s=t.hostDirectives?.length?t.hostDirectives.map(a=>typeof a=="function"?{directive:kn(a),inputs:null,outputs:null,isForwardReference:!1}:{directive:kn(a.directive),isForwardReference:!1,inputs:a.inputs?zU(a.inputs):null,outputs:a.outputs?zU(a.outputs):null}):null;return{...t,typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:kn(t.type),deps:null,host:{...dct(t.propMetadata,t.typeSourceSpan,t.host)},inputs:{...e,...i},outputs:{...r,...o},queries:t.queries.map(_ye),providers:t.providers!=null?new yt(t.providers):null,viewQueries:t.viewQueries.map(_ye),hostDirectives:s}}function X0e(t,e){let r=t.hostDirectives?.length?t.hostDirectives.map(n=>({directive:kn(n.directive),isForwardReference:!1,inputs:n.inputs?Sye(n.inputs):null,outputs:n.outputs?Sye(n.outputs):null})):null;return{name:t.type.name,type:kn(t.type),typeSourceSpan:e,selector:t.selector??null,inputs:t.inputs?gct(t.inputs):{},outputs:t.outputs??{},host:nct(t.host),queries:(t.queries??[]).map(bye),viewQueries:(t.viewQueries??[]).map(bye),providers:t.providers!==void 0?new yt(t.providers):null,exportAs:t.exportAs??null,usesInheritance:t.usesInheritance??!1,controlCreate:t.controlCreate??null,lifecycle:{usesOnChanges:t.usesOnChanges??!1},deps:null,typeArgumentCount:0,isStandalone:t.isStandalone??Mye(t.version),isSignal:t.isSignal??!1,hostDirectives:r}}function nct(t={}){return{attributes:ict(t.attributes??{}),listeners:t.listeners??{},properties:t.properties??{},specialAttributes:{classAttr:t.classAttribute,styleAttr:t.styleAttribute}}}function Sye(t){let e=null;for(let r=1;r<t.length;r+=2)e=e||{},e[t[r-1]]=t[r];return e}function ict(t){let e={};for(let r of Object.keys(t))e[r]=new yt(t[r]);return e}function oct(t,e,r){let{template:n,defer:i}=J0e(t.template,t.type.name,r,t.preserveWhitespaces??!1,t.deferBlockDependencies),o=[];if(t.dependencies)for(let a of t.dependencies)switch(a.kind){case"directive":case"component":o.push(KU(a));break;case"pipe":o.push(uct(a));break}else(t.components||t.directives||t.pipes)&&(t.components&&o.push(...t.components.map(a=>KU(a,!0))),t.directives&&o.push(...t.directives.map(a=>KU(a))),t.pipes&&o.push(...act(t.pipes)));let s=o.some(({kind:a})=>a===hy.Directive||a===hy.NgModule);return{...X0e(t,e),template:n,styles:t.styles??[],declarations:o,viewProviders:t.viewProviders!==void 0?new yt(t.viewProviders):null,animations:t.animations!==void 0?new yt(t.animations):null,defer:i,changeDetection:t.changeDetection??iM.Default,encapsulation:t.encapsulation??Pp.Emulated,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:s}}function sct(t){return{...t,type:new yt(t.type)}}function KU(t,e=null){return{kind:hy.Directive,isComponent:e||t.kind==="component",selector:t.selector,type:new yt(t.type),inputs:t.inputs??[],outputs:t.outputs??[],exportAs:t.exportAs??null}}function act(t){return t?Object.keys(t).map(e=>({kind:hy.Pipe,name:e,type:new yt(t[e])})):[]}function uct(t){return{kind:hy.Pipe,name:t.name,type:new yt(t.type)}}function J0e(t,e,r,n,i){let o=jut(t,r,{preserveWhitespaces:n});if(o.errors!==null){let u=o.errors.map(c=>c.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${u}`)}let a=new _H(null).bind({template:o.nodes});return{template:o,defer:lct(a,i)}}function B_(t,e){if(t.hasOwnProperty(e))return xH(new yt(t[e]),0)}function Tye(t,e){if(t.hasOwnProperty(e))return new yt(t[e])}function wye(t){let e=typeof t=="function"?new yt(t):new di(t??null);return xH(e,0)}function cct(t){return t==null?null:t.map(eve)}function eve(t){let e=t.attribute!=null,r=t.token===null?null:new yt(t.token),n=e?new yt(t.attribute):r;return tve(n,e,t.host,t.optional,t.self,t.skipSelf)}function Iye(t){let e=t.attribute??!1,r=t.token===null?null:new yt(t.token);return tve(r,e,t.host??!1,t.optional??!1,t.self??!1,t.skipSelf??!1)}function tve(t,e,r,n,i,o){let s=e?C("unknown"):null;return{token:t,attributeNameType:s,host:r,optional:n,self:i,skipSelf:o}}function lct(t,e){let r=t.getDeferBlocks(),n=new Map;for(let i=0;i<r.length;i++){let o=e?.[i];n.set(r[i],o?new yt(o):null)}return{mode:0,blocks:n}}function dct(t,e,r){let n=Zut(r||{});for(let o in t)t.hasOwnProperty(o)&&t[o].forEach(s=>{fct(s)?n.properties[s.hostPropertyName||o]=wJe("this",o):pct(s)&&(n.listeners[s.eventName||o]=`${o}(${(s.args||[]).join(",")})`)});let i=Xut(n,e);if(i.length)throw new Error(i.map(o=>o.msg).join(`
266
- `));return n}function fct(t){return t.ngMetadataName==="HostBinding"}function pct(t){return t.ngMetadataName==="HostListener"}function hct(t){return t.ngMetadataName==="Input"}function mct(t){return t.ngMetadataName==="Output"}function gct(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return typeof n=="string"||Array.isArray(n)?e[r]=yct(n):e[r]={bindingPropertyName:n.publicName,classPropertyName:r,transformFunction:n.transformFunction!==null?new yt(n.transformFunction):null,required:n.isRequired,isSignal:n.isSignal},e},{})}function yct(t){return typeof t=="string"?{bindingPropertyName:t,classPropertyName:t,transformFunction:null,required:!1,isSignal:!1}:{bindingPropertyName:t[0],classPropertyName:t[1],transformFunction:t[2]?new yt(t[2]):null,required:!1,isSignal:!1}}function vct(t){return t.reduce((e,r)=>{if(typeof r=="string"){let[n,i]=rve(r);e[i]={bindingPropertyName:n,classPropertyName:i,required:!1,isSignal:!1,transformFunction:null}}else e[r.name]={bindingPropertyName:r.alias||r.name,classPropertyName:r.name,required:r.required||!1,isSignal:!1,transformFunction:r.transform!=null?new yt(r.transform):null};return e},{})}function zU(t){return t.reduce((e,r)=>{let[n,i]=rve(r);return e[i]=n,e},{})}function rve(t){let[e,r]=t.split(":",2).map(n=>n.trim());return[r??e,e]}function _ct(t){return{name:t.type.name,type:kn(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??Mye(t.version)}}function bct(t){return{name:t.type.name,type:kn(t.type),providers:t.providers!==void 0&&t.providers.length>0?new yt(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new yt(e)):[]}}function Ect(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new TH}var Aye;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(Aye||(Aye={}));var wH=class{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return Ma.PARSABLE_DATA}},oCr=new wH;var xye;(function(t){t[t.Selector=0]="Selector",t[t.HostDirective=1]="HostDirective"})(xye||(xye={}));var sCr=new rV("21.2.25");Ect(HT);import*as bme from"fs";var ge={};wme(ge,{ANIMATION_MODULE_TYPE:()=>D2e,APP_BOOTSTRAP_LISTENER:()=>k0,APP_ID:()=>Za,APP_INITIALIZER:()=>VL,ApplicationInitStatus:()=>E0,ApplicationModule:()=>X$,ApplicationRef:()=>qn,Attribute:()=>OY,COMPILER_OPTIONS:()=>Pee,CSP_NONCE:()=>q4,CUSTOM_ELEMENTS_SCHEMA:()=>sZ,ChangeDetectionStrategy:()=>Vh,ChangeDetectorRef:()=>W$,Compiler:()=>qA,CompilerFactory:()=>D4,Component:()=>_xe,ComponentFactory:()=>ax,ComponentFactoryResolver:()=>FE,ComponentRef:()=>ZZ,ContentChild:()=>B9t,ContentChildren:()=>q9t,DEFAULT_CURRENCY_CODE:()=>Ixe,DOCUMENT:()=>lo,DebugElement:()=>Yh,DebugEventListener:()=>k4,DebugNode:()=>_E,DefaultIterableDiffer:()=>Q$,DestroyRef:()=>yi,Directive:()=>Oee,ENVIRONMENT_INITIALIZER:()=>uo,ElementRef:()=>Uh,EmbeddedViewRef:()=>Yee,EnvironmentInjector:()=>Vr,ErrorHandler:()=>Ba,EventEmitter:()=>Sl,HOST_TAG_NAME:()=>k9t,Host:()=>wY,HostAttributeToken:()=>zee,HostBinding:()=>Txe,HostListener:()=>wxe,INJECTOR:()=>c8,Inject:()=>Bl,Injectable:()=>de,InjectionToken:()=>F,Injector:()=>Hr,Input:()=>Exe,IterableDiffers:()=>Cx,KeyValueDiffers:()=>Ox,LOCALE_ID:()=>M$,MAX_ANIMATION_TIMEOUT:()=>OZ,MissingTranslationStrategy:()=>M4,ModuleWithComponentFactories:()=>jA,NO_ERRORS_SCHEMA:()=>aZ,NgModule:()=>R0,NgModuleFactory:()=>vX,NgModuleRef:()=>zh,NgZone:()=>Ot,Optional:()=>w0,Output:()=>Sxe,OutputEmitterRef:()=>WE,PLATFORM_ID:()=>N2e,PLATFORM_INITIALIZER:()=>j4,PendingTasks:()=>Ua,Pipe:()=>bxe,PlatformRef:()=>QE,Query:()=>F0,QueryList:()=>fA,REQUEST:()=>iRt,REQUEST_CONTEXT:()=>sRt,RESPONSE_INIT:()=>oRt,Renderer2:()=>y4,RendererFactory2:()=>hE,RendererStyleFlags2:()=>dE,Sanitizer:()=>CA,SecurityContext:()=>hr,Self:()=>SY,SimpleChange:()=>uA,SkipSelf:()=>TY,TRANSLATIONS:()=>Axe,TRANSLATIONS_FORMAT:()=>xxe,TemplateRef:()=>Wh,Testability:()=>RA,TestabilityRegistry:()=>b0,TransferState:()=>Ts,Type:()=>IY,VERSION:()=>KR,Version:()=>SI,ViewChild:()=>V9t,ViewChildren:()=>U9t,ViewContainerRef:()=>p0,ViewEncapsulation:()=>Vo,ViewRef:()=>K$,afterEveryRender:()=>TA,afterNextRender:()=>rx,afterRenderEffect:()=>nte,asNativeElements:()=>Cxe,assertInInjectionContext:()=>mn,assertNotInReactiveContext:()=>H1,assertPlatform:()=>RCe,booleanAttribute:()=>jkt,computed:()=>Un,contentChild:()=>SCe,contentChildren:()=>TCe,createComponent:()=>tRt,createEnvironmentInjector:()=>qE,createNgModule:()=>_X,createNgModuleRef:()=>NIe,createPlatform:()=>DCe,createPlatformFactory:()=>MCe,destroyPlatform:()=>Y9t,effect:()=>T1,enableProdMode:()=>tkt,enableProfiling:()=>NX,forwardRef:()=>w1,getDebugNode:()=>bE,getModuleFactory:()=>vkt,getNgModuleById:()=>_kt,getPlatform:()=>Px,importProvidersFrom:()=>ez,inject:()=>O,input:()=>ote,inputBinding:()=>oX,isDevMode:()=>ekt,isSignal:()=>dx,isStandalone:()=>Ol,isWritableSignal:()=>qL,linkedSignal:()=>tm,makeEnvironmentProviders:()=>vi,makeStateKey:()=>jY,mergeApplicationConfig:()=>nRt,model:()=>ate,numberAttribute:()=>qkt,output:()=>bCe,outputBinding:()=>sX,platformCore:()=>xkt,provideAppInitializer:()=>$X,provideBrowserGlobalErrorListeners:()=>aEe,provideCheckNoChangesConfig:()=>J9t,provideEnvironmentInitializer:()=>d8,provideNgReflectAttributes:()=>FTe,providePlatformInitializer:()=>Z9t,provideStabilityDebugging:()=>ykt,provideZoneChangeDetection:()=>H9t,provideZonelessChangeDetection:()=>D$,reflectComponentType:()=>rRt,resolveForwardRef:()=>ze,resource:()=>Ree,resourceFromSnapshots:()=>eRt,runInInjectionContext:()=>Ga,setTestabilityGetter:()=>kX,signal:()=>$i,twoWayBinding:()=>lIe,untracked:()=>sa,viewChild:()=>ste,viewChildren:()=>ECe,\u0275ANIMATIONS_DISABLED:()=>CZ,\u0275AcxChangeDetectionStrategy:()=>u4,\u0275AcxViewEncapsulation:()=>c4,\u0275AfterRenderManager:()=>c0,\u0275CLIENT_RENDER_MODE_FLAG:()=>qCe,\u0275CONTAINER_HEADER_OFFSET:()=>Wt,\u0275ChangeDetectionScheduler:()=>_s,\u0275ComponentFactory:()=>ax,\u0275Console:()=>oa,\u0275DEFAULT_LOCALE_ID:()=>GE,\u0275DEFER_BLOCK_CONFIG:()=>xX,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>AX,\u0275DEHYDRATED_BLOCK_REGISTRY:()=>Xa,\u0275DeferBlockBehavior:()=>MA,\u0275DeferBlockState:()=>rr,\u0275ENABLE_ROOT_COMPONENT_BOOTSTRAP:()=>OCe,\u0275EVENT_REPLAY_QUEUE:()=>KY,\u0275EffectScheduler:()=>Uy,\u0275Framework:()=>Kee,\u0275HydrationStatus:()=>Hh,\u0275IMAGE_CONFIG:()=>FY,\u0275IMAGE_CONFIG_DEFAULTS:()=>$Y,\u0275INJECTOR_SCOPE:()=>R1,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>M9t,\u0275INTERNAL_APPLICATION_ERROR_HANDLER:()=>Ll,\u0275IS_ENABLED_BLOCKING_INITIAL_NAVIGATION:()=>L2e,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>Xh,\u0275IS_INCREMENTAL_HYDRATION_ENABLED:()=>W4,\u0275JSACTION_BLOCK_ELEMENT_MAP:()=>AE,\u0275JSACTION_EVENT_CONTRACT:()=>K4,\u0275LContext:()=>hA,\u0275LocaleDataIndex:()=>Qh,\u0275NG_COMP_DEF:()=>Cl,\u0275NG_DIR_DEF:()=>Ah,\u0275NG_ELEMENT_ID:()=>xh,\u0275NG_INJ_DEF:()=>_1,\u0275NG_MOD_DEF:()=>DI,\u0275NG_PIPE_DEF:()=>N1,\u0275NG_PROV_DEF:()=>Gy,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>tA,\u0275NO_CHANGE:()=>At,\u0275NgModuleFactory:()=>g0,\u0275NoopNgZone:()=>E1,\u0275PERFORMANCE_MARK_PREFIX:()=>zCe,\u0275PROVIDED_NG_ZONE:()=>ute,\u0275PROVIDED_ZONELESS:()=>GI,\u0275PendingTasksInternal:()=>ta,\u0275ProfilerEvent:()=>he,\u0275R3Injector:()=>ea,\u0275ReflectionCapabilities:()=>aA,\u0275Render3ComponentFactory:()=>Xd,\u0275Render3ComponentRef:()=>PA,\u0275Render3NgModuleRef:()=>m0,\u0275ResourceImpl:()=>L0,\u0275RuntimeError:()=>$,\u0275SIGNAL:()=>ar,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>XY,\u0275TESTABILITY:()=>MX,\u0275TESTABILITY_GETTER:()=>BL,\u0275TimerScheduler:()=>kA,\u0275TracingAction:()=>pE,\u0275TracingService:()=>Vl,\u0275ViewRef:()=>Zd,\u0275XSS_SECURITY_URL:()=>Va,\u0275ZONELESS_ENABLED:()=>Jy,\u0275_sanitizeHtml:()=>pZ,\u0275_sanitizeUrl:()=>QA,\u0275allLeavingAnimations:()=>Gh,\u0275allowSanitizationBypassAndThrow:()=>O0,\u0275annotateForHydration:()=>Nkt,\u0275assertType:()=>Gkt,\u0275bypassSanitizationTrustHtml:()=>vTe,\u0275bypassSanitizationTrustResourceUrl:()=>STe,\u0275bypassSanitizationTrustScript:()=>bTe,\u0275bypassSanitizationTrustStyle:()=>_Te,\u0275bypassSanitizationTrustUrl:()=>ETe,\u0275clearResolutionOfComponentResourcesQueue:()=>AIe,\u0275compileComponent:()=>xee,\u0275compileDirective:()=>N$,\u0275compileNgModule:()=>wee,\u0275compileNgModuleDefs:()=>Iee,\u0275compileNgModuleFactory:()=>ACe,\u0275compilePipe:()=>Cee,\u0275convertToBitFlags:()=>_h,\u0275createInjector:()=>ZR,\u0275createOrReusePlatformInjector:()=>LCe,\u0275defaultIterableDiffers:()=>Ikt,\u0275defaultKeyValueDiffers:()=>Akt,\u0275depsTracker:()=>Kh,\u0275devModeEqual:()=>NL,\u0275disableProfiling:()=>Hkt,\u0275enableProfiling:()=>Vkt,\u0275encapsulateResourceError:()=>KE,\u0275findLocaleData:()=>t$,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>Tee,\u0275formatRuntimeError:()=>Er,\u0275generateStandaloneInDeclarationsError:()=>Aee,\u0275getAsyncClassMetadataFn:()=>YIe,\u0275getClosestComponentName:()=>dIe,\u0275getComponentDef:()=>ut,\u0275getDeferBlocks:()=>iE,\u0275getDirectives:()=>MY,\u0275getDocument:()=>x0,\u0275getHostElement:()=>kY,\u0275getInjectableDef:()=>x1,\u0275getLContext:()=>Fi,\u0275getLocaleCurrencyCode:()=>mAe,\u0275getLocalePluralCase:()=>bJ,\u0275getOutputDestroyRef:()=>Nxe,\u0275getSanitizationBypassType:()=>fZ,\u0275getTransferState:()=>DX,\u0275getUnknownElementStrictMode:()=>cTe,\u0275getUnknownPropertyStrictMode:()=>dTe,\u0275global:()=>$n,\u0275inferTagNameFromDefinition:()=>uX,\u0275injectChangeDetectorRef:()=>UCe,\u0275internalCreateApplication:()=>Ckt,\u0275internalProvideZoneChangeDetection:()=>xCe,\u0275isBoundToModule:()=>qX,\u0275isComponentDefPendingResolution:()=>wIe,\u0275isEnvironmentProviders:()=>P1,\u0275isInjectable:()=>w1e,\u0275isNgModule:()=>$h,\u0275isPromise:()=>UL,\u0275isSubscribable:()=>LX,\u0275isViewDirty:()=>Iwe,\u0275markForRefresh:()=>Awe,\u0275noSideEffects:()=>Ya,\u0275patchComponentDefWithScope:()=>O$,\u0275performanceMarkFeature:()=>Kr,\u0275promiseWithResolvers:()=>fx,\u0275provideZonelessChangeDetectionInternal:()=>wx,\u0275publishExternalGlobalUtil:()=>nAe,\u0275readHydrationInfo:()=>tZ,\u0275registerLocaleData:()=>hAe,\u0275renderDeferBlockState:()=>jl,\u0275resetCompiledComponents:()=>cxe,\u0275resetIncrementalHydrationEnabledWarnedForTests:()=>Z2e,\u0275resetJitOptions:()=>axe,\u0275resolveComponentResources:()=>gX,\u0275restoreComponentResolutionQueue:()=>xIe,\u0275setAllowDuplicateNgModuleIdsForTest:()=>PIe,\u0275setAlternateWeakRefImpl:()=>h1e,\u0275setClassDebugInfo:()=>bee,\u0275setClassMetadata:()=>qi,\u0275setClassMetadataAsync:()=>OX,\u0275setCurrentInjector:()=>Js,\u0275setDocument:()=>P2e,\u0275setInjectorProfilerContext:()=>hn,\u0275setLocaleId:()=>EJ,\u0275setUnknownElementStrictMode:()=>uTe,\u0275setUnknownPropertyStrictMode:()=>lTe,\u0275startMeasuring:()=>Bkt,\u0275stopMeasuring:()=>Ukt,\u0275store:()=>j1,\u0275stringify:()=>Gt,\u0275transitiveScopesFor:()=>P$,\u0275triggerResourceLoading:()=>hx,\u0275truncateMiddle:()=>n8,\u0275unregisterLocaleData:()=>gAe,\u0275unwrapSafeValue:()=>Ul,\u0275unwrapWritableSignal:()=>uEe,\u0275withDomHydration:()=>pkt,\u0275withEventReplay:()=>FCe,\u0275withI18nSupport:()=>hkt,\u0275withIncrementalHydration:()=>mkt,\u0275\u0275ControlFeature:()=>TX,\u0275\u0275ExternalStylesFeature:()=>JJ,\u0275\u0275FactoryTarget:()=>Ut,\u0275\u0275HostDirectivesFeature:()=>wX,\u0275\u0275InheritDefinitionFeature:()=>RL,\u0275\u0275NgOnChangesFeature:()=>AY,\u0275\u0275ProvidersFeature:()=>XJ,\u0275\u0275advance:()=>AZ,\u0275\u0275animateEnter:()=>oE,\u0275\u0275animateEnterListener:()=>sE,\u0275\u0275animateLeave:()=>aE,\u0275\u0275animateLeaveListener:()=>LA,\u0275\u0275ariaProperty:()=>HL,\u0275\u0275arrowFunction:()=>ZJ,\u0275\u0275attachSourceLocations:()=>qJ,\u0275\u0275attribute:()=>GL,\u0275\u0275classMap:()=>RJ,\u0275\u0275classProp:()=>g$,\u0275\u0275componentInstance:()=>dJ,\u0275\u0275conditional:()=>pJ,\u0275\u0275conditionalBranchCreate:()=>mx,\u0275\u0275conditionalCreate:()=>fJ,\u0275\u0275contentQuery:()=>d$,\u0275\u0275contentQuerySignal:()=>p$,\u0275\u0275control:()=>iX,\u0275\u0275controlCreate:()=>nX,\u0275\u0275declareLet:()=>C$,\u0275\u0275defer:()=>UX,\u0275\u0275deferEnableTimerScheduling:()=>CX,\u0275\u0275deferHydrateNever:()=>WX,\u0275\u0275deferHydrateOnHover:()=>iJ,\u0275\u0275deferHydrateOnIdle:()=>QX,\u0275\u0275deferHydrateOnImmediate:()=>XX,\u0275\u0275deferHydrateOnInteraction:()=>aJ,\u0275\u0275deferHydrateOnTimer:()=>tJ,\u0275\u0275deferHydrateOnViewport:()=>lJ,\u0275\u0275deferHydrateWhen:()=>GX,\u0275\u0275deferOnHover:()=>rJ,\u0275\u0275deferOnIdle:()=>KX,\u0275\u0275deferOnImmediate:()=>YX,\u0275\u0275deferOnInteraction:()=>oJ,\u0275\u0275deferOnTimer:()=>JX,\u0275\u0275deferOnViewport:()=>uJ,\u0275\u0275deferPrefetchOnHover:()=>nJ,\u0275\u0275deferPrefetchOnIdle:()=>zX,\u0275\u0275deferPrefetchOnImmediate:()=>ZX,\u0275\u0275deferPrefetchOnInteraction:()=>sJ,\u0275\u0275deferPrefetchOnTimer:()=>eJ,\u0275\u0275deferPrefetchOnViewport:()=>cJ,\u0275\u0275deferPrefetchWhen:()=>HX,\u0275\u0275deferWhen:()=>VX,\u0275\u0275defineComponent:()=>bX,\u0275\u0275defineDirective:()=>EX,\u0275\u0275defineInjectable:()=>er,\u0275\u0275defineInjector:()=>A1,\u0275\u0275defineNgModule:()=>kL,\u0275\u0275definePipe:()=>SX,\u0275\u0275directiveInject:()=>Jh,\u0275\u0275disableBindings:()=>w8,\u0275\u0275domElement:()=>QL,\u0275\u0275domElementContainer:()=>XL,\u0275\u0275domElementContainerEnd:()=>ZL,\u0275\u0275domElementContainerStart:()=>bx,\u0275\u0275domElementEnd:()=>vx,\u0275\u0275domElementStart:()=>yx,\u0275\u0275domListener:()=>l$,\u0275\u0275domProperty:()=>JL,\u0275\u0275domTemplate:()=>$L,\u0275\u0275element:()=>zL,\u0275\u0275elementContainer:()=>YL,\u0275\u0275elementContainerEnd:()=>HE,\u0275\u0275elementContainerStart:()=>_x,\u0275\u0275elementEnd:()=>gx,\u0275\u0275elementStart:()=>gE,\u0275\u0275enableBindings:()=>T8,\u0275\u0275getComponentDepsFactory:()=>_ee,\u0275\u0275getCurrentView:()=>_J,\u0275\u0275getInheritedFactory:()=>CY,\u0275\u0275getReplaceMetadataURL:()=>Eee,\u0275\u0275i18n:()=>SJ,\u0275\u0275i18nApply:()=>wJ,\u0275\u0275i18nAttributes:()=>TJ,\u0275\u0275i18nEnd:()=>s$,\u0275\u0275i18nExp:()=>a$,\u0275\u0275i18nPostprocess:()=>IJ,\u0275\u0275i18nStart:()=>o$,\u0275\u0275inject:()=>Jn,\u0275\u0275injectAttribute:()=>VA,\u0275\u0275interpolate:()=>BJ,\u0275\u0275interpolate1:()=>UJ,\u0275\u0275interpolate2:()=>VJ,\u0275\u0275interpolate3:()=>HJ,\u0275\u0275interpolate4:()=>GJ,\u0275\u0275interpolate5:()=>WJ,\u0275\u0275interpolate6:()=>KJ,\u0275\u0275interpolate7:()=>zJ,\u0275\u0275interpolate8:()=>QJ,\u0275\u0275interpolateV:()=>YJ,\u0275\u0275invalidFactory:()=>JZ,\u0275\u0275invalidFactoryDep:()=>kI,\u0275\u0275listener:()=>u$,\u0275\u0275loadQuery:()=>NJ,\u0275\u0275namespaceHTML:()=>R8,\u0275\u0275namespaceMathML:()=>k8,\u0275\u0275namespaceSVG:()=>M8,\u0275\u0275nextContext:()=>xJ,\u0275\u0275ngDeclareClassMetadata:()=>Ar,\u0275\u0275ngDeclareClassMetadataAsync:()=>Kkt,\u0275\u0275ngDeclareComponent:()=>zkt,\u0275\u0275ngDeclareDirective:()=>Wkt,\u0275\u0275ngDeclareFactory:()=>xr,\u0275\u0275ngDeclareInjectable:()=>zr,\u0275\u0275ngDeclareInjector:()=>Nx,\u0275\u0275ngDeclareNgModule:()=>Dx,\u0275\u0275ngDeclarePipe:()=>Ykt,\u0275\u0275pipe:()=>fee,\u0275\u0275pipeBind1:()=>pee,\u0275\u0275pipeBind2:()=>hee,\u0275\u0275pipeBind3:()=>mee,\u0275\u0275pipeBind4:()=>gee,\u0275\u0275pipeBindV:()=>yee,\u0275\u0275projection:()=>OJ,\u0275\u0275projectionDef:()=>CJ,\u0275\u0275property:()=>KL,\u0275\u0275pureFunction0:()=>ree,\u0275\u0275pureFunction1:()=>nee,\u0275\u0275pureFunction2:()=>iee,\u0275\u0275pureFunction3:()=>oee,\u0275\u0275pureFunction4:()=>see,\u0275\u0275pureFunction5:()=>aee,\u0275\u0275pureFunction6:()=>uee,\u0275\u0275pureFunction7:()=>cee,\u0275\u0275pureFunction8:()=>lee,\u0275\u0275pureFunctionV:()=>dee,\u0275\u0275queryAdvance:()=>DJ,\u0275\u0275queryRefresh:()=>PJ,\u0275\u0275readContextLet:()=>jJ,\u0275\u0275reference:()=>MJ,\u0275\u0275registerNgModuleType:()=>ML,\u0275\u0275repeater:()=>gJ,\u0275\u0275repeaterCreate:()=>mJ,\u0275\u0275repeaterTrackByIdentity:()=>WL,\u0275\u0275repeaterTrackByIndex:()=>hJ,\u0275\u0275replaceMetadata:()=>See,\u0275\u0275resetView:()=>A8,\u0275\u0275resolveBody:()=>sL,\u0275\u0275resolveDocument:()=>EZ,\u0275\u0275resolveWindow:()=>bZ,\u0275\u0275restoreView:()=>I8,\u0275\u0275sanitizeHtml:()=>tL,\u0275\u0275sanitizeResourceUrl:()=>XA,\u0275\u0275sanitizeScript:()=>iL,\u0275\u0275sanitizeStyle:()=>rL,\u0275\u0275sanitizeUrl:()=>nL,\u0275\u0275sanitizeUrlOrResourceUrl:()=>_Z,\u0275\u0275setComponentScope:()=>eee,\u0275\u0275setNgModuleScope:()=>tee,\u0275\u0275storeLet:()=>FJ,\u0275\u0275styleMap:()=>kJ,\u0275\u0275styleProp:()=>m$,\u0275\u0275syntheticHostListener:()=>c$,\u0275\u0275syntheticHostProperty:()=>e$,\u0275\u0275template:()=>LL,\u0275\u0275templateRefExtractor:()=>vee,\u0275\u0275text:()=>LJ,\u0275\u0275textInterpolate:()=>y$,\u0275\u0275textInterpolate1:()=>Ex,\u0275\u0275textInterpolate2:()=>v$,\u0275\u0275textInterpolate3:()=>_$,\u0275\u0275textInterpolate4:()=>b$,\u0275\u0275textInterpolate5:()=>E$,\u0275\u0275textInterpolate6:()=>S$,\u0275\u0275textInterpolate7:()=>T$,\u0275\u0275textInterpolate8:()=>w$,\u0275\u0275textInterpolateV:()=>I$,\u0275\u0275trustConstantHtml:()=>yZ,\u0275\u0275trustConstantResourceUrl:()=>vZ,\u0275\u0275twoWayBindingSet:()=>$J,\u0275\u0275twoWayListener:()=>x$,\u0275\u0275twoWayProperty:()=>A$,\u0275\u0275validateAttribute:()=>oL,\u0275\u0275viewQuery:()=>f$,\u0275\u0275viewQuerySignal:()=>h$});var Mi=null,rI=!1,WH=1,Sct=null,ar=Symbol("SIGNAL");function Oe(t){let e=Mi;return Mi=t,e}function Iy(){return Mi}function KH(){return rI}var Rd={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ld(t){if(rI)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Mi===null)return;Mi.consumerOnSignalRead(t);let e=Mi.producersTail;if(e!==void 0&&e.producer===t)return;let r,n=Mi.recomputing;if(n&&(r=e!==void 0?e.nextProducer:Mi.producers,r!==void 0&&r.producer===t)){Mi.producersTail=r,r.lastReadVersion=t.version;return}let i=t.consumersTail;if(i!==void 0&&i.consumer===Mi&&(!n||Tct(i,Mi)))return;let o=Ab(Mi),s={producer:t,consumer:Mi,nextProducer:r,prevConsumer:i,lastReadVersion:t.version,nextConsumer:void 0};Mi.producersTail=s,e!==void 0?e.nextProducer=s:Mi.producers=s,o&&ave(t,s)}function nve(){WH++}function Ay(t){if(!(Ab(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===WH)){if(!t.producerMustRecompute(t)&&!xy(t)){Ib(t);return}t.producerRecomputeValue(t),Ib(t)}}function zH(t){if(t.consumers===void 0)return;let e=rI;rI=!0;try{for(let r=t.consumers;r!==void 0;r=r.nextConsumer){let n=r.consumer;n.dirty||ive(n)}}finally{rI=e}}function QH(){return Mi?.consumerAllowSignalWrites!==!1}function ive(t){t.dirty=!0,zH(t),t.consumerMarkedDirty?.(t)}function Ib(t){t.dirty=!1,t.lastCleanEpoch=WH}function hl(t){return t&&ove(t),Oe(t)}function ove(t){t.producersTail=void 0,t.recomputing=!0}function $d(t,e){Oe(e),t&&sve(t)}function sve(t){t.recomputing=!1;let e=t.producersTail,r=e!==void 0?e.nextProducer:t.producers;if(r!==void 0){if(Ab(t))do r=YH(r);while(r!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function xy(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let r=e.producer,n=e.lastReadVersion;if(n!==r.version||(Ay(r),n!==r.version))return!0}return!1}function Fd(t){if(Ab(t)){let e=t.producers;for(;e!==void 0;)e=YH(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function ave(t,e){let r=t.consumersTail,n=Ab(t);if(r!==void 0?(e.nextConsumer=r.nextConsumer,r.nextConsumer=e):(e.nextConsumer=void 0,t.consumers=e),e.prevConsumer=r,t.consumersTail=e,!n)for(let i=t.producers;i!==void 0;i=i.nextProducer)ave(i.producer,i)}function YH(t){let e=t.producer,r=t.nextProducer,n=t.nextConsumer,i=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,n!==void 0?n.prevConsumer=i:e.consumersTail=i,i!==void 0)i.nextConsumer=n;else if(e.consumers=n,!Ab(e)){let o=e.producers;for(;o!==void 0;)o=YH(o)}return r}function Ab(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function nI(t){Sct?.(t)}function Tct(t,e){let r=e.producersTail;if(r!==void 0){let n=e.producers;do{if(n===t)return!0;if(n===r)break;n=n.nextProducer}while(n!==void 0)}return!1}function iI(t,e){return Object.is(t,e)}function oI(t,e){let r=Object.create(wct);r.computation=t,e!==void 0&&(r.equal=e);let n=()=>{if(Ay(r),Ld(r),r.value===pl)throw r.error;return r.value};return n[ar]=r,typeof ngDevMode<"u"&&ngDevMode&&(n.toString=()=>`[Computed${r.debugName?" ("+r.debugName+")":""}: ${String(r.value)}]`),nI(r),n}var Ty=Symbol("UNSET"),wy=Symbol("COMPUTING"),pl=Symbol("ERRORED"),wct={...Rd,value:Ty,dirty:!0,error:null,equal:iI,kind:"computed",producerMustRecompute(t){return t.value===Ty||t.value===wy},producerRecomputeValue(t){if(t.value===wy)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=wy;let r=hl(t),n,i=!1;try{n=t.computation(),Oe(null),i=e!==Ty&&e!==pl&&n!==pl&&t.equal(e,n)}catch(o){n=pl,t.error=o}finally{$d(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function Ict(){throw new Error}var uve=Ict;function cve(t){uve(t)}function ZH(t){uve=t}var Act=null;function XH(t,e){let r=Object.create(sI);r.value=t,e!==void 0&&(r.equal=e);let n=()=>lve(r);return n[ar]=r,typeof ngDevMode<"u"&&ngDevMode&&(n.toString=()=>`[Signal${r.debugName?" ("+r.debugName+")":""}: ${String(r.value)}]`),nI(r),[n,s=>Qp(r,s),s=>E3(r,s)]}function lve(t){return Ld(t),t.value}function Qp(t,e){QH()||cve(t),t.equal(t.value,e)||(t.value=e,xct(t))}function E3(t,e){QH()||cve(t),Qp(t,e(t.value))}var sI={...Rd,equal:iI,value:void 0,kind:"signal"};function xct(t){t.version++,nve(),zH(t),Act?.(t)}var JH={...Rd,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};function eG(t){if(t.dirty=!1,t.version>0&&!xy(t))return;t.version++;let e=hl(t);try{t.cleanup(),t.fn()}finally{$d(t,e)}}var wh=Q(Bt(),1);var IK;function HR(){return IK}function Js(t){let e=IK;return IK=t,e}var l1e=Symbol("NotFound");function g1(t){return t===l1e||t?.name==="\u0275NotFound"}function AK(t,e,r){let n=Object.create(FTt);n.source=t,n.computation=e,r!=null&&(n.equal=r);let o=()=>{if(Ay(n),Ld(n),n.value===pl)throw n.error;return n.value};return o[ar]=n,typeof ngDevMode<"u"&&ngDevMode&&(o.toString=()=>`[LinkedSignal${n.debugName?" ("+n.debugName+")":""}: ${String(n.value)}]`),nI(n),o}function d1e(t,e){Ay(t),Qp(t,e),Ib(t)}function f1e(t,e){if(Ay(t),t.value===pl)throw t.error;E3(t,e),Ib(t)}var FTt={...Rd,value:Ty,dirty:!0,error:null,equal:iI,kind:"linkedSignal",producerMustRecompute(t){return t.value===Ty||t.value===wy},producerRecomputeValue(t){if(t.value===wy)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=wy;let r=hl(t),n,i=!1;try{let o=t.source(),s=e!==Ty&&e!==pl,a=s?{source:t.sourceValue,value:e}:void 0;n=t.computation(o,a),t.sourceValue=o,Oe(null),i=s&&n!==pl&&t.equal(e,n)}catch(o){n=pl,t.error=o}finally{$d(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function p1e(t){let e=Oe(null);try{return t()}finally{Oe(e)}}function h1e(t){}var CK={header:(t,e)=>{if(!xK(t)||e?.ngSkipFormatting)return null;let r;try{r=t()}catch(o){return["span",`Signal(\u26A0\uFE0F Error)${o.message?`: ${o.message}`:""}`]}let n="computation"in t[ar]?"Computed":"Signal",i=r===null||!Array.isArray(r)&&typeof r!="object";return["span",{},["span",{},`${n}(`],xK(r)?CK.header(r,e):i&&r!==void 0&&typeof r!="function"?["object",{object:r}]:jTt(r),["span",{},")"]]},hasBody:(t,e)=>{if(!xK(t))return!1;try{t()}catch{return!1}return!e?.ngSkipFormatting},body:(t,e)=>{let r="var(--sys-color-primary)";return["div",{style:"background: #FFFFFF10; padding-left: 4px; padding-top: 2px; padding-bottom: 2px;"},["div",{style:`color: ${r}`},"Signal value: "],["div",{style:"padding-left: .5rem;"},["object",{object:t(),config:e}]],["div",{style:`color: ${r}`},"Signal function: "],["div",{style:"padding-left: .5rem;"},["object",{object:t,config:{...e,ngSkipFormatting:!0}}]]]}};function jTt(t){if(t===null)return"null";if(Array.isArray(t))return`Array(${t.length})`;if(t instanceof Element)return`<${t.tagName.toLowerCase()}>`;if(t instanceof URL)return"URL";switch(typeof t){case"undefined":return"undefined";case"function":return"prototype"in t?"class":"() => {\u2026}";case"object":return t.constructor.name==="Object"?"{\u2026}":`${t.constructor.name} {}`;default:return["object",{object:t,config:{ngSkipFormatting:!0}}]}}function xK(t){return t[ar]!==void 0}function qTt(){globalThis.devtoolsFormatters??=[],globalThis.devtoolsFormatters.some(t=>t===CK)||globalThis.devtoolsFormatters.push(CK)}(typeof ngDevMode>"u"||ngDevMode)&&qTt();var SI=class{full;major;minor;patch;constructor(e){this.full=e;let r=e.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}},KR=new SI("21.2.25"),PI=(()=>{let t=KR.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="20.102.1"?"next":`v${KR.major}`}.angular.dev`})(),e8=`${PI}/errors`,Va="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",$=class extends Error{code;constructor(e,r){super(Er(e,r)),this.code=e}};function BTt(t){return`NG0${Math.abs(t)}`}function Er(t,e){let r=BTt(t),n=`${r}${e?": "+e:""}`;if(ngDevMode&&t<0){let o=!n.match(/[.,;!?\n]$/)?".":"";n=`${n}${o} Find more at ${e8}/${r}`}return n}var $n=globalThis;function UTt(){let t=typeof location<"u"?location.toString():"",e={hydratedNodes:0,hydratedComponents:0,dehydratedViewsRemoved:0,dehydratedViewsCleanupRuns:0,componentsSkippedHydration:0,deferBlocksWithIncrementalHydration:0};return t.indexOf("ngDevMode=false")===-1?(typeof $n.ngDevMode!="object"&&($n.ngDevMode={}),Object.assign($n.ngDevMode,e)):$n.ngDevMode=!1,e}function t8(){return typeof ngDevMode>"u"||ngDevMode?((typeof ngDevMode!="object"||Object.keys(ngDevMode).length===0)&&UTt(),typeof ngDevMode<"u"&&!!ngDevMode):!1}function Jt(t){for(let e in t)if(t[e]===Jt)return e;throw Error(typeof ngDevMode<"u"&&ngDevMode?"Could not find renamed property on target object.":"")}function b1e(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Gt(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Gt).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let r=t.toString();if(r==null)return""+r;let n=r.indexOf(`
266
+ `));return n}function fct(t){return t.ngMetadataName==="HostBinding"}function pct(t){return t.ngMetadataName==="HostListener"}function hct(t){return t.ngMetadataName==="Input"}function mct(t){return t.ngMetadataName==="Output"}function gct(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return typeof n=="string"||Array.isArray(n)?e[r]=yct(n):e[r]={bindingPropertyName:n.publicName,classPropertyName:r,transformFunction:n.transformFunction!==null?new yt(n.transformFunction):null,required:n.isRequired,isSignal:n.isSignal},e},{})}function yct(t){return typeof t=="string"?{bindingPropertyName:t,classPropertyName:t,transformFunction:null,required:!1,isSignal:!1}:{bindingPropertyName:t[0],classPropertyName:t[1],transformFunction:t[2]?new yt(t[2]):null,required:!1,isSignal:!1}}function vct(t){return t.reduce((e,r)=>{if(typeof r=="string"){let[n,i]=rve(r);e[i]={bindingPropertyName:n,classPropertyName:i,required:!1,isSignal:!1,transformFunction:null}}else e[r.name]={bindingPropertyName:r.alias||r.name,classPropertyName:r.name,required:r.required||!1,isSignal:!1,transformFunction:r.transform!=null?new yt(r.transform):null};return e},{})}function zU(t){return t.reduce((e,r)=>{let[n,i]=rve(r);return e[i]=n,e},{})}function rve(t){let[e,r]=t.split(":",2).map(n=>n.trim());return[r??e,e]}function _ct(t){return{name:t.type.name,type:kn(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??Mye(t.version)}}function bct(t){return{name:t.type.name,type:kn(t.type),providers:t.providers!==void 0&&t.providers.length>0?new yt(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new yt(e)):[]}}function Ect(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new TH}var Aye;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(Aye||(Aye={}));var wH=class{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return Ma.PARSABLE_DATA}},oCr=new wH;var xye;(function(t){t[t.Selector=0]="Selector",t[t.HostDirective=1]="HostDirective"})(xye||(xye={}));var sCr=new rV("21.2.25");Ect(HT);import*as bme from"fs";var ge={};wme(ge,{ANIMATION_MODULE_TYPE:()=>D2e,APP_BOOTSTRAP_LISTENER:()=>k0,APP_ID:()=>Za,APP_INITIALIZER:()=>VL,ApplicationInitStatus:()=>E0,ApplicationModule:()=>X$,ApplicationRef:()=>qn,Attribute:()=>OY,COMPILER_OPTIONS:()=>Pee,CSP_NONCE:()=>q4,CUSTOM_ELEMENTS_SCHEMA:()=>sZ,ChangeDetectionStrategy:()=>Vh,ChangeDetectorRef:()=>W$,Compiler:()=>qA,CompilerFactory:()=>D4,Component:()=>_xe,ComponentFactory:()=>ax,ComponentFactoryResolver:()=>FE,ComponentRef:()=>ZZ,ContentChild:()=>B9t,ContentChildren:()=>q9t,DEFAULT_CURRENCY_CODE:()=>Ixe,DOCUMENT:()=>lo,DebugElement:()=>Yh,DebugEventListener:()=>k4,DebugNode:()=>_E,DefaultIterableDiffer:()=>Q$,DestroyRef:()=>yi,Directive:()=>Oee,ENVIRONMENT_INITIALIZER:()=>uo,ElementRef:()=>Uh,EmbeddedViewRef:()=>Yee,EnvironmentInjector:()=>Vr,ErrorHandler:()=>Ba,EventEmitter:()=>Sl,HOST_TAG_NAME:()=>k9t,Host:()=>wY,HostAttributeToken:()=>zee,HostBinding:()=>Txe,HostListener:()=>wxe,INJECTOR:()=>c8,Inject:()=>Bl,Injectable:()=>de,InjectionToken:()=>F,Injector:()=>Hr,Input:()=>Exe,IterableDiffers:()=>Cx,KeyValueDiffers:()=>Ox,LOCALE_ID:()=>M$,MAX_ANIMATION_TIMEOUT:()=>OZ,MissingTranslationStrategy:()=>M4,ModuleWithComponentFactories:()=>jA,NO_ERRORS_SCHEMA:()=>aZ,NgModule:()=>R0,NgModuleFactory:()=>vX,NgModuleRef:()=>zh,NgZone:()=>Ot,Optional:()=>w0,Output:()=>Sxe,OutputEmitterRef:()=>WE,PLATFORM_ID:()=>N2e,PLATFORM_INITIALIZER:()=>j4,PendingTasks:()=>Ua,Pipe:()=>bxe,PlatformRef:()=>QE,Query:()=>F0,QueryList:()=>fA,REQUEST:()=>iRt,REQUEST_CONTEXT:()=>sRt,RESPONSE_INIT:()=>oRt,Renderer2:()=>y4,RendererFactory2:()=>hE,RendererStyleFlags2:()=>dE,Sanitizer:()=>CA,SecurityContext:()=>hr,Self:()=>SY,SimpleChange:()=>uA,SkipSelf:()=>TY,TRANSLATIONS:()=>Axe,TRANSLATIONS_FORMAT:()=>xxe,TemplateRef:()=>Wh,Testability:()=>RA,TestabilityRegistry:()=>b0,TransferState:()=>Ts,Type:()=>IY,VERSION:()=>KR,Version:()=>SI,ViewChild:()=>V9t,ViewChildren:()=>U9t,ViewContainerRef:()=>p0,ViewEncapsulation:()=>Vo,ViewRef:()=>K$,afterEveryRender:()=>TA,afterNextRender:()=>rx,afterRenderEffect:()=>nte,asNativeElements:()=>Cxe,assertInInjectionContext:()=>mn,assertNotInReactiveContext:()=>H1,assertPlatform:()=>RCe,booleanAttribute:()=>jkt,computed:()=>Un,contentChild:()=>SCe,contentChildren:()=>TCe,createComponent:()=>tRt,createEnvironmentInjector:()=>qE,createNgModule:()=>_X,createNgModuleRef:()=>NIe,createPlatform:()=>DCe,createPlatformFactory:()=>MCe,destroyPlatform:()=>Y9t,effect:()=>T1,enableProdMode:()=>tkt,enableProfiling:()=>NX,forwardRef:()=>w1,getDebugNode:()=>bE,getModuleFactory:()=>vkt,getNgModuleById:()=>_kt,getPlatform:()=>Px,importProvidersFrom:()=>ez,inject:()=>O,input:()=>ote,inputBinding:()=>oX,isDevMode:()=>ekt,isSignal:()=>dx,isStandalone:()=>Ol,isWritableSignal:()=>qL,linkedSignal:()=>tm,makeEnvironmentProviders:()=>vi,makeStateKey:()=>jY,mergeApplicationConfig:()=>nRt,model:()=>ate,numberAttribute:()=>qkt,output:()=>bCe,outputBinding:()=>sX,platformCore:()=>xkt,provideAppInitializer:()=>$X,provideBrowserGlobalErrorListeners:()=>aEe,provideCheckNoChangesConfig:()=>J9t,provideEnvironmentInitializer:()=>d8,provideNgReflectAttributes:()=>FTe,providePlatformInitializer:()=>Z9t,provideStabilityDebugging:()=>ykt,provideZoneChangeDetection:()=>H9t,provideZonelessChangeDetection:()=>D$,reflectComponentType:()=>rRt,resolveForwardRef:()=>ze,resource:()=>Ree,resourceFromSnapshots:()=>eRt,runInInjectionContext:()=>Ga,setTestabilityGetter:()=>kX,signal:()=>$i,twoWayBinding:()=>lIe,untracked:()=>sa,viewChild:()=>ste,viewChildren:()=>ECe,\u0275ANIMATIONS_DISABLED:()=>CZ,\u0275AcxChangeDetectionStrategy:()=>u4,\u0275AcxViewEncapsulation:()=>c4,\u0275AfterRenderManager:()=>c0,\u0275CLIENT_RENDER_MODE_FLAG:()=>qCe,\u0275CONTAINER_HEADER_OFFSET:()=>Wt,\u0275ChangeDetectionScheduler:()=>_s,\u0275ComponentFactory:()=>ax,\u0275Console:()=>oa,\u0275DEFAULT_LOCALE_ID:()=>GE,\u0275DEFER_BLOCK_CONFIG:()=>xX,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>AX,\u0275DEHYDRATED_BLOCK_REGISTRY:()=>Xa,\u0275DeferBlockBehavior:()=>MA,\u0275DeferBlockState:()=>rr,\u0275ENABLE_ROOT_COMPONENT_BOOTSTRAP:()=>OCe,\u0275EVENT_REPLAY_QUEUE:()=>KY,\u0275EffectScheduler:()=>Uy,\u0275Framework:()=>Kee,\u0275HydrationStatus:()=>Hh,\u0275IMAGE_CONFIG:()=>FY,\u0275IMAGE_CONFIG_DEFAULTS:()=>$Y,\u0275INJECTOR_SCOPE:()=>R1,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>M9t,\u0275INTERNAL_APPLICATION_ERROR_HANDLER:()=>Ll,\u0275IS_ENABLED_BLOCKING_INITIAL_NAVIGATION:()=>L2e,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>Xh,\u0275IS_INCREMENTAL_HYDRATION_ENABLED:()=>W4,\u0275JSACTION_BLOCK_ELEMENT_MAP:()=>AE,\u0275JSACTION_EVENT_CONTRACT:()=>K4,\u0275LContext:()=>hA,\u0275LocaleDataIndex:()=>Qh,\u0275NG_COMP_DEF:()=>Cl,\u0275NG_DIR_DEF:()=>Ah,\u0275NG_ELEMENT_ID:()=>xh,\u0275NG_INJ_DEF:()=>_1,\u0275NG_MOD_DEF:()=>DI,\u0275NG_PIPE_DEF:()=>N1,\u0275NG_PROV_DEF:()=>Gy,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>tA,\u0275NO_CHANGE:()=>At,\u0275NgModuleFactory:()=>g0,\u0275NoopNgZone:()=>E1,\u0275PERFORMANCE_MARK_PREFIX:()=>zCe,\u0275PROVIDED_NG_ZONE:()=>ute,\u0275PROVIDED_ZONELESS:()=>GI,\u0275PendingTasksInternal:()=>ta,\u0275ProfilerEvent:()=>he,\u0275R3Injector:()=>ea,\u0275ReflectionCapabilities:()=>aA,\u0275Render3ComponentFactory:()=>Xd,\u0275Render3ComponentRef:()=>PA,\u0275Render3NgModuleRef:()=>m0,\u0275ResourceImpl:()=>L0,\u0275RuntimeError:()=>$,\u0275SIGNAL:()=>ar,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>XY,\u0275TESTABILITY:()=>MX,\u0275TESTABILITY_GETTER:()=>BL,\u0275TimerScheduler:()=>kA,\u0275TracingAction:()=>pE,\u0275TracingService:()=>Vl,\u0275ViewRef:()=>Zd,\u0275XSS_SECURITY_URL:()=>Va,\u0275ZONELESS_ENABLED:()=>Jy,\u0275_sanitizeHtml:()=>pZ,\u0275_sanitizeUrl:()=>QA,\u0275allLeavingAnimations:()=>Gh,\u0275allowSanitizationBypassAndThrow:()=>O0,\u0275annotateForHydration:()=>Nkt,\u0275assertType:()=>Gkt,\u0275bypassSanitizationTrustHtml:()=>vTe,\u0275bypassSanitizationTrustResourceUrl:()=>STe,\u0275bypassSanitizationTrustScript:()=>bTe,\u0275bypassSanitizationTrustStyle:()=>_Te,\u0275bypassSanitizationTrustUrl:()=>ETe,\u0275clearResolutionOfComponentResourcesQueue:()=>AIe,\u0275compileComponent:()=>xee,\u0275compileDirective:()=>N$,\u0275compileNgModule:()=>wee,\u0275compileNgModuleDefs:()=>Iee,\u0275compileNgModuleFactory:()=>ACe,\u0275compilePipe:()=>Cee,\u0275convertToBitFlags:()=>_h,\u0275createInjector:()=>ZR,\u0275createOrReusePlatformInjector:()=>LCe,\u0275defaultIterableDiffers:()=>Ikt,\u0275defaultKeyValueDiffers:()=>Akt,\u0275depsTracker:()=>Kh,\u0275devModeEqual:()=>NL,\u0275disableProfiling:()=>Hkt,\u0275enableProfiling:()=>Vkt,\u0275encapsulateResourceError:()=>KE,\u0275findLocaleData:()=>t$,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>Tee,\u0275formatRuntimeError:()=>Er,\u0275generateStandaloneInDeclarationsError:()=>Aee,\u0275getAsyncClassMetadataFn:()=>YIe,\u0275getClosestComponentName:()=>dIe,\u0275getComponentDef:()=>ut,\u0275getDeferBlocks:()=>iE,\u0275getDirectives:()=>MY,\u0275getDocument:()=>x0,\u0275getHostElement:()=>kY,\u0275getInjectableDef:()=>x1,\u0275getLContext:()=>Fi,\u0275getLocaleCurrencyCode:()=>mAe,\u0275getLocalePluralCase:()=>bJ,\u0275getOutputDestroyRef:()=>Nxe,\u0275getSanitizationBypassType:()=>fZ,\u0275getTransferState:()=>DX,\u0275getUnknownElementStrictMode:()=>cTe,\u0275getUnknownPropertyStrictMode:()=>dTe,\u0275global:()=>$n,\u0275inferTagNameFromDefinition:()=>uX,\u0275injectChangeDetectorRef:()=>UCe,\u0275internalCreateApplication:()=>Ckt,\u0275internalProvideZoneChangeDetection:()=>xCe,\u0275isBoundToModule:()=>qX,\u0275isComponentDefPendingResolution:()=>wIe,\u0275isEnvironmentProviders:()=>P1,\u0275isInjectable:()=>w1e,\u0275isNgModule:()=>$h,\u0275isPromise:()=>UL,\u0275isSubscribable:()=>LX,\u0275isViewDirty:()=>Iwe,\u0275markForRefresh:()=>Awe,\u0275noSideEffects:()=>Ya,\u0275patchComponentDefWithScope:()=>O$,\u0275performanceMarkFeature:()=>Kr,\u0275promiseWithResolvers:()=>fx,\u0275provideZonelessChangeDetectionInternal:()=>wx,\u0275publishExternalGlobalUtil:()=>nAe,\u0275readHydrationInfo:()=>tZ,\u0275registerLocaleData:()=>hAe,\u0275renderDeferBlockState:()=>jl,\u0275resetCompiledComponents:()=>cxe,\u0275resetIncrementalHydrationEnabledWarnedForTests:()=>Z2e,\u0275resetJitOptions:()=>axe,\u0275resolveComponentResources:()=>gX,\u0275restoreComponentResolutionQueue:()=>xIe,\u0275setAllowDuplicateNgModuleIdsForTest:()=>PIe,\u0275setAlternateWeakRefImpl:()=>h1e,\u0275setClassDebugInfo:()=>bee,\u0275setClassMetadata:()=>qi,\u0275setClassMetadataAsync:()=>OX,\u0275setCurrentInjector:()=>Js,\u0275setDocument:()=>P2e,\u0275setInjectorProfilerContext:()=>hn,\u0275setLocaleId:()=>EJ,\u0275setUnknownElementStrictMode:()=>uTe,\u0275setUnknownPropertyStrictMode:()=>lTe,\u0275startMeasuring:()=>Bkt,\u0275stopMeasuring:()=>Ukt,\u0275store:()=>j1,\u0275stringify:()=>Gt,\u0275transitiveScopesFor:()=>P$,\u0275triggerResourceLoading:()=>hx,\u0275truncateMiddle:()=>n8,\u0275unregisterLocaleData:()=>gAe,\u0275unwrapSafeValue:()=>Ul,\u0275unwrapWritableSignal:()=>uEe,\u0275withDomHydration:()=>pkt,\u0275withEventReplay:()=>FCe,\u0275withI18nSupport:()=>hkt,\u0275withIncrementalHydration:()=>mkt,\u0275\u0275ControlFeature:()=>TX,\u0275\u0275ExternalStylesFeature:()=>JJ,\u0275\u0275FactoryTarget:()=>Ut,\u0275\u0275HostDirectivesFeature:()=>wX,\u0275\u0275InheritDefinitionFeature:()=>RL,\u0275\u0275NgOnChangesFeature:()=>AY,\u0275\u0275ProvidersFeature:()=>XJ,\u0275\u0275advance:()=>AZ,\u0275\u0275animateEnter:()=>oE,\u0275\u0275animateEnterListener:()=>sE,\u0275\u0275animateLeave:()=>aE,\u0275\u0275animateLeaveListener:()=>LA,\u0275\u0275ariaProperty:()=>HL,\u0275\u0275arrowFunction:()=>ZJ,\u0275\u0275attachSourceLocations:()=>qJ,\u0275\u0275attribute:()=>GL,\u0275\u0275classMap:()=>RJ,\u0275\u0275classProp:()=>g$,\u0275\u0275componentInstance:()=>dJ,\u0275\u0275conditional:()=>pJ,\u0275\u0275conditionalBranchCreate:()=>mx,\u0275\u0275conditionalCreate:()=>fJ,\u0275\u0275contentQuery:()=>d$,\u0275\u0275contentQuerySignal:()=>p$,\u0275\u0275control:()=>iX,\u0275\u0275controlCreate:()=>nX,\u0275\u0275declareLet:()=>C$,\u0275\u0275defer:()=>UX,\u0275\u0275deferEnableTimerScheduling:()=>CX,\u0275\u0275deferHydrateNever:()=>WX,\u0275\u0275deferHydrateOnHover:()=>iJ,\u0275\u0275deferHydrateOnIdle:()=>QX,\u0275\u0275deferHydrateOnImmediate:()=>XX,\u0275\u0275deferHydrateOnInteraction:()=>aJ,\u0275\u0275deferHydrateOnTimer:()=>tJ,\u0275\u0275deferHydrateOnViewport:()=>lJ,\u0275\u0275deferHydrateWhen:()=>GX,\u0275\u0275deferOnHover:()=>rJ,\u0275\u0275deferOnIdle:()=>KX,\u0275\u0275deferOnImmediate:()=>YX,\u0275\u0275deferOnInteraction:()=>oJ,\u0275\u0275deferOnTimer:()=>JX,\u0275\u0275deferOnViewport:()=>uJ,\u0275\u0275deferPrefetchOnHover:()=>nJ,\u0275\u0275deferPrefetchOnIdle:()=>zX,\u0275\u0275deferPrefetchOnImmediate:()=>ZX,\u0275\u0275deferPrefetchOnInteraction:()=>sJ,\u0275\u0275deferPrefetchOnTimer:()=>eJ,\u0275\u0275deferPrefetchOnViewport:()=>cJ,\u0275\u0275deferPrefetchWhen:()=>HX,\u0275\u0275deferWhen:()=>VX,\u0275\u0275defineComponent:()=>bX,\u0275\u0275defineDirective:()=>EX,\u0275\u0275defineInjectable:()=>er,\u0275\u0275defineInjector:()=>A1,\u0275\u0275defineNgModule:()=>kL,\u0275\u0275definePipe:()=>SX,\u0275\u0275directiveInject:()=>Jh,\u0275\u0275disableBindings:()=>w8,\u0275\u0275domElement:()=>QL,\u0275\u0275domElementContainer:()=>XL,\u0275\u0275domElementContainerEnd:()=>ZL,\u0275\u0275domElementContainerStart:()=>bx,\u0275\u0275domElementEnd:()=>vx,\u0275\u0275domElementStart:()=>yx,\u0275\u0275domListener:()=>l$,\u0275\u0275domProperty:()=>JL,\u0275\u0275domTemplate:()=>$L,\u0275\u0275element:()=>zL,\u0275\u0275elementContainer:()=>YL,\u0275\u0275elementContainerEnd:()=>HE,\u0275\u0275elementContainerStart:()=>_x,\u0275\u0275elementEnd:()=>gx,\u0275\u0275elementStart:()=>gE,\u0275\u0275enableBindings:()=>T8,\u0275\u0275getComponentDepsFactory:()=>_ee,\u0275\u0275getCurrentView:()=>_J,\u0275\u0275getInheritedFactory:()=>CY,\u0275\u0275getReplaceMetadataURL:()=>Eee,\u0275\u0275i18n:()=>SJ,\u0275\u0275i18nApply:()=>wJ,\u0275\u0275i18nAttributes:()=>TJ,\u0275\u0275i18nEnd:()=>s$,\u0275\u0275i18nExp:()=>a$,\u0275\u0275i18nPostprocess:()=>IJ,\u0275\u0275i18nStart:()=>o$,\u0275\u0275inject:()=>Jn,\u0275\u0275injectAttribute:()=>VA,\u0275\u0275interpolate:()=>BJ,\u0275\u0275interpolate1:()=>UJ,\u0275\u0275interpolate2:()=>VJ,\u0275\u0275interpolate3:()=>HJ,\u0275\u0275interpolate4:()=>GJ,\u0275\u0275interpolate5:()=>WJ,\u0275\u0275interpolate6:()=>KJ,\u0275\u0275interpolate7:()=>zJ,\u0275\u0275interpolate8:()=>QJ,\u0275\u0275interpolateV:()=>YJ,\u0275\u0275invalidFactory:()=>JZ,\u0275\u0275invalidFactoryDep:()=>kI,\u0275\u0275listener:()=>u$,\u0275\u0275loadQuery:()=>NJ,\u0275\u0275namespaceHTML:()=>R8,\u0275\u0275namespaceMathML:()=>k8,\u0275\u0275namespaceSVG:()=>M8,\u0275\u0275nextContext:()=>xJ,\u0275\u0275ngDeclareClassMetadata:()=>Ar,\u0275\u0275ngDeclareClassMetadataAsync:()=>Kkt,\u0275\u0275ngDeclareComponent:()=>zkt,\u0275\u0275ngDeclareDirective:()=>Wkt,\u0275\u0275ngDeclareFactory:()=>xr,\u0275\u0275ngDeclareInjectable:()=>zr,\u0275\u0275ngDeclareInjector:()=>Nx,\u0275\u0275ngDeclareNgModule:()=>Dx,\u0275\u0275ngDeclarePipe:()=>Ykt,\u0275\u0275pipe:()=>fee,\u0275\u0275pipeBind1:()=>pee,\u0275\u0275pipeBind2:()=>hee,\u0275\u0275pipeBind3:()=>mee,\u0275\u0275pipeBind4:()=>gee,\u0275\u0275pipeBindV:()=>yee,\u0275\u0275projection:()=>OJ,\u0275\u0275projectionDef:()=>CJ,\u0275\u0275property:()=>KL,\u0275\u0275pureFunction0:()=>ree,\u0275\u0275pureFunction1:()=>nee,\u0275\u0275pureFunction2:()=>iee,\u0275\u0275pureFunction3:()=>oee,\u0275\u0275pureFunction4:()=>see,\u0275\u0275pureFunction5:()=>aee,\u0275\u0275pureFunction6:()=>uee,\u0275\u0275pureFunction7:()=>cee,\u0275\u0275pureFunction8:()=>lee,\u0275\u0275pureFunctionV:()=>dee,\u0275\u0275queryAdvance:()=>DJ,\u0275\u0275queryRefresh:()=>PJ,\u0275\u0275readContextLet:()=>jJ,\u0275\u0275reference:()=>MJ,\u0275\u0275registerNgModuleType:()=>ML,\u0275\u0275repeater:()=>gJ,\u0275\u0275repeaterCreate:()=>mJ,\u0275\u0275repeaterTrackByIdentity:()=>WL,\u0275\u0275repeaterTrackByIndex:()=>hJ,\u0275\u0275replaceMetadata:()=>See,\u0275\u0275resetView:()=>A8,\u0275\u0275resolveBody:()=>sL,\u0275\u0275resolveDocument:()=>EZ,\u0275\u0275resolveWindow:()=>bZ,\u0275\u0275restoreView:()=>I8,\u0275\u0275sanitizeHtml:()=>tL,\u0275\u0275sanitizeResourceUrl:()=>XA,\u0275\u0275sanitizeScript:()=>iL,\u0275\u0275sanitizeStyle:()=>rL,\u0275\u0275sanitizeUrl:()=>nL,\u0275\u0275sanitizeUrlOrResourceUrl:()=>_Z,\u0275\u0275setComponentScope:()=>eee,\u0275\u0275setNgModuleScope:()=>tee,\u0275\u0275storeLet:()=>FJ,\u0275\u0275styleMap:()=>kJ,\u0275\u0275styleProp:()=>m$,\u0275\u0275syntheticHostListener:()=>c$,\u0275\u0275syntheticHostProperty:()=>e$,\u0275\u0275template:()=>LL,\u0275\u0275templateRefExtractor:()=>vee,\u0275\u0275text:()=>LJ,\u0275\u0275textInterpolate:()=>y$,\u0275\u0275textInterpolate1:()=>Ex,\u0275\u0275textInterpolate2:()=>v$,\u0275\u0275textInterpolate3:()=>_$,\u0275\u0275textInterpolate4:()=>b$,\u0275\u0275textInterpolate5:()=>E$,\u0275\u0275textInterpolate6:()=>S$,\u0275\u0275textInterpolate7:()=>T$,\u0275\u0275textInterpolate8:()=>w$,\u0275\u0275textInterpolateV:()=>I$,\u0275\u0275trustConstantHtml:()=>yZ,\u0275\u0275trustConstantResourceUrl:()=>vZ,\u0275\u0275twoWayBindingSet:()=>$J,\u0275\u0275twoWayListener:()=>x$,\u0275\u0275twoWayProperty:()=>A$,\u0275\u0275validateAttribute:()=>oL,\u0275\u0275viewQuery:()=>f$,\u0275\u0275viewQuerySignal:()=>h$});var Mi=null,rI=!1,WH=1,Sct=null,ar=Symbol("SIGNAL");function Oe(t){let e=Mi;return Mi=t,e}function Iy(){return Mi}function KH(){return rI}var Rd={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ld(t){if(rI)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Mi===null)return;Mi.consumerOnSignalRead(t);let e=Mi.producersTail;if(e!==void 0&&e.producer===t)return;let r,n=Mi.recomputing;if(n&&(r=e!==void 0?e.nextProducer:Mi.producers,r!==void 0&&r.producer===t)){Mi.producersTail=r,r.lastReadVersion=t.version;return}let i=t.consumersTail;if(i!==void 0&&i.consumer===Mi&&(!n||Tct(i,Mi)))return;let o=Ab(Mi),s={producer:t,consumer:Mi,nextProducer:r,prevConsumer:i,lastReadVersion:t.version,nextConsumer:void 0};Mi.producersTail=s,e!==void 0?e.nextProducer=s:Mi.producers=s,o&&ave(t,s)}function nve(){WH++}function Ay(t){if(!(Ab(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===WH)){if(!t.producerMustRecompute(t)&&!xy(t)){Ib(t);return}t.producerRecomputeValue(t),Ib(t)}}function zH(t){if(t.consumers===void 0)return;let e=rI;rI=!0;try{for(let r=t.consumers;r!==void 0;r=r.nextConsumer){let n=r.consumer;n.dirty||ive(n)}}finally{rI=e}}function QH(){return Mi?.consumerAllowSignalWrites!==!1}function ive(t){t.dirty=!0,zH(t),t.consumerMarkedDirty?.(t)}function Ib(t){t.dirty=!1,t.lastCleanEpoch=WH}function hl(t){return t&&ove(t),Oe(t)}function ove(t){t.producersTail=void 0,t.recomputing=!0}function $d(t,e){Oe(e),t&&sve(t)}function sve(t){t.recomputing=!1;let e=t.producersTail,r=e!==void 0?e.nextProducer:t.producers;if(r!==void 0){if(Ab(t))do r=YH(r);while(r!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function xy(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let r=e.producer,n=e.lastReadVersion;if(n!==r.version||(Ay(r),n!==r.version))return!0}return!1}function Fd(t){if(Ab(t)){let e=t.producers;for(;e!==void 0;)e=YH(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function ave(t,e){let r=t.consumersTail,n=Ab(t);if(r!==void 0?(e.nextConsumer=r.nextConsumer,r.nextConsumer=e):(e.nextConsumer=void 0,t.consumers=e),e.prevConsumer=r,t.consumersTail=e,!n)for(let i=t.producers;i!==void 0;i=i.nextProducer)ave(i.producer,i)}function YH(t){let e=t.producer,r=t.nextProducer,n=t.nextConsumer,i=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,n!==void 0?n.prevConsumer=i:e.consumersTail=i,i!==void 0)i.nextConsumer=n;else if(e.consumers=n,!Ab(e)){let o=e.producers;for(;o!==void 0;)o=YH(o)}return r}function Ab(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function nI(t){Sct?.(t)}function Tct(t,e){let r=e.producersTail;if(r!==void 0){let n=e.producers;do{if(n===t)return!0;if(n===r)break;n=n.nextProducer}while(n!==void 0)}return!1}function iI(t,e){return Object.is(t,e)}function oI(t,e){let r=Object.create(wct);r.computation=t,e!==void 0&&(r.equal=e);let n=()=>{if(Ay(r),Ld(r),r.value===pl)throw r.error;return r.value};return n[ar]=r,typeof ngDevMode<"u"&&ngDevMode&&(n.toString=()=>`[Computed${r.debugName?" ("+r.debugName+")":""}: ${String(r.value)}]`),nI(r),n}var Ty=Symbol("UNSET"),wy=Symbol("COMPUTING"),pl=Symbol("ERRORED"),wct={...Rd,value:Ty,dirty:!0,error:null,equal:iI,kind:"computed",producerMustRecompute(t){return t.value===Ty||t.value===wy},producerRecomputeValue(t){if(t.value===wy)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=wy;let r=hl(t),n,i=!1;try{n=t.computation(),Oe(null),i=e!==Ty&&e!==pl&&n!==pl&&t.equal(e,n)}catch(o){n=pl,t.error=o}finally{$d(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function Ict(){throw new Error}var uve=Ict;function cve(t){uve(t)}function ZH(t){uve=t}var Act=null;function XH(t,e){let r=Object.create(sI);r.value=t,e!==void 0&&(r.equal=e);let n=()=>lve(r);return n[ar]=r,typeof ngDevMode<"u"&&ngDevMode&&(n.toString=()=>`[Signal${r.debugName?" ("+r.debugName+")":""}: ${String(r.value)}]`),nI(r),[n,s=>Qp(r,s),s=>E3(r,s)]}function lve(t){return Ld(t),t.value}function Qp(t,e){QH()||cve(t),t.equal(t.value,e)||(t.value=e,xct(t))}function E3(t,e){QH()||cve(t),Qp(t,e(t.value))}var sI={...Rd,equal:iI,value:void 0,kind:"signal"};function xct(t){t.version++,nve(),zH(t),Act?.(t)}var JH={...Rd,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};function eG(t){if(t.dirty=!1,t.version>0&&!xy(t))return;t.version++;let e=hl(t);try{t.cleanup(),t.fn()}finally{$d(t,e)}}var wh=Q(Bt(),1);var IK;function HR(){return IK}function Js(t){let e=IK;return IK=t,e}var l1e=Symbol("NotFound");function g1(t){return t===l1e||t?.name==="\u0275NotFound"}function AK(t,e,r){let n=Object.create(FTt);n.source=t,n.computation=e,r!=null&&(n.equal=r);let o=()=>{if(Ay(n),Ld(n),n.value===pl)throw n.error;return n.value};return o[ar]=n,typeof ngDevMode<"u"&&ngDevMode&&(o.toString=()=>`[LinkedSignal${n.debugName?" ("+n.debugName+")":""}: ${String(n.value)}]`),nI(n),o}function d1e(t,e){Ay(t),Qp(t,e),Ib(t)}function f1e(t,e){if(Ay(t),t.value===pl)throw t.error;E3(t,e),Ib(t)}var FTt={...Rd,value:Ty,dirty:!0,error:null,equal:iI,kind:"linkedSignal",producerMustRecompute(t){return t.value===Ty||t.value===wy},producerRecomputeValue(t){if(t.value===wy)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=wy;let r=hl(t),n,i=!1;try{let o=t.source(),s=e!==Ty&&e!==pl,a=s?{source:t.sourceValue,value:e}:void 0;n=t.computation(o,a),t.sourceValue=o,Oe(null),i=s&&n!==pl&&t.equal(e,n)}catch(o){n=pl,t.error=o}finally{$d(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function p1e(t){let e=Oe(null);try{return t()}finally{Oe(e)}}function h1e(t){}var CK={header:(t,e)=>{if(!xK(t)||e?.ngSkipFormatting)return null;let r;try{r=t()}catch(o){return["span",`Signal(\u26A0\uFE0F Error)${o.message?`: ${o.message}`:""}`]}let n="computation"in t[ar]?"Computed":"Signal",i=r===null||!Array.isArray(r)&&typeof r!="object";return["span",{},["span",{},`${n}(`],xK(r)?CK.header(r,e):i&&r!==void 0&&typeof r!="function"?["object",{object:r}]:jTt(r),["span",{},")"]]},hasBody:(t,e)=>{if(!xK(t))return!1;try{t()}catch{return!1}return!e?.ngSkipFormatting},body:(t,e)=>{let r="var(--sys-color-primary)";return["div",{style:"background: #FFFFFF10; padding-left: 4px; padding-top: 2px; padding-bottom: 2px;"},["div",{style:`color: ${r}`},"Signal value: "],["div",{style:"padding-left: .5rem;"},["object",{object:t(),config:e}]],["div",{style:`color: ${r}`},"Signal function: "],["div",{style:"padding-left: .5rem;"},["object",{object:t,config:{...e,ngSkipFormatting:!0}}]]]}};function jTt(t){if(t===null)return"null";if(Array.isArray(t))return`Array(${t.length})`;if(t instanceof Element)return`<${t.tagName.toLowerCase()}>`;if(t instanceof URL)return"URL";switch(typeof t){case"undefined":return"undefined";case"function":return"prototype"in t?"class":"() => {\u2026}";case"object":return t.constructor.name==="Object"?"{\u2026}":`${t.constructor.name} {}`;default:return["object",{object:t,config:{ngSkipFormatting:!0}}]}}function xK(t){return t[ar]!==void 0}function qTt(){globalThis.devtoolsFormatters??=[],globalThis.devtoolsFormatters.some(t=>t===CK)||globalThis.devtoolsFormatters.push(CK)}(typeof ngDevMode>"u"||ngDevMode)&&qTt();var SI=class{full;major;minor;patch;constructor(e){this.full=e;let r=e.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}},KR=new SI("21.2.25"),PI=(()=>{let t=KR.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="20.104.0"?"next":`v${KR.major}`}.angular.dev`})(),e8=`${PI}/errors`,Va="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",$=class extends Error{code;constructor(e,r){super(Er(e,r)),this.code=e}};function BTt(t){return`NG0${Math.abs(t)}`}function Er(t,e){let r=BTt(t),n=`${r}${e?": "+e:""}`;if(ngDevMode&&t<0){let o=!n.match(/[.,;!?\n]$/)?".":"";n=`${n}${o} Find more at ${e8}/${r}`}return n}var $n=globalThis;function UTt(){let t=typeof location<"u"?location.toString():"",e={hydratedNodes:0,hydratedComponents:0,dehydratedViewsRemoved:0,dehydratedViewsCleanupRuns:0,componentsSkippedHydration:0,deferBlocksWithIncrementalHydration:0};return t.indexOf("ngDevMode=false")===-1?(typeof $n.ngDevMode!="object"&&($n.ngDevMode={}),Object.assign($n.ngDevMode,e)):$n.ngDevMode=!1,e}function t8(){return typeof ngDevMode>"u"||ngDevMode?((typeof ngDevMode!="object"||Object.keys(ngDevMode).length===0)&&UTt(),typeof ngDevMode<"u"&&!!ngDevMode):!1}function Jt(t){for(let e in t)if(t[e]===Jt)return e;throw Error(typeof ngDevMode<"u"&&ngDevMode?"Could not find renamed property on target object.":"")}function b1e(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Gt(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Gt).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let r=t.toString();if(r==null)return""+r;let n=r.indexOf(`
267
267
  `);return n>=0?r.slice(0,n):r}function r8(t,e){return t?e?`${t} ${e}`:t:e||""}function n8(t,e=100){if(!t||e<1||t.length<=e)return t;if(e==1)return t.substring(0,1)+"...";let r=Math.round(e/2);return t.substring(0,r)+"..."+t.substring(t.length-r)}var VTt=Jt({__forward_ref__:Jt});function w1(t){return t.__forward_ref__=w1,ngDevMode&&(t.toString=function(){return Gt(this())}),t}function ze(t){return NI(t)?t():t}function NI(t){return typeof t=="function"&&t.hasOwnProperty(VTt)&&t.__forward_ref__===w1}function ur(t,e){typeof t!="number"&&Ae(e,typeof t,"number","===")}function I1(t,e,r){ur(t,"Expected a number"),E1e(t,r,"Expected number to be less than or equal to"),xl(t,e,"Expected number to be greater than or equal to")}function Vy(t,e){typeof t!="string"&&Ae(e,t===null?"null":typeof t,"string","===")}function UK(t,e){typeof t!="function"&&Ae(e,t===null?"null":typeof t,"function","===")}function Re(t,e,r){t!=e&&Ae(r,t,e,"==")}function oo(t,e,r){t==e&&Ae(r,t,e,"!=")}function VK(t,e,r){t!==e&&Ae(r,t,e,"===")}function Hy(t,e,r){t===e&&Ae(r,t,e,"!==")}function Al(t,e,r){t<e||Ae(r,t,e,"<")}function E1e(t,e,r){t<=e||Ae(r,t,e,"<=")}function Ih(t,e,r){t>e||Ae(r,t,e,">")}function xl(t,e,r){t>=e||Ae(r,t,e,">=")}function HK(t,e){t!=null&&Ae(e,t,null,"==")}function ee(t,e){t==null&&Ae(e,t,null,"!=")}function Ae(t,e,r,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${r} ${n} ${e} <=Actual]`))}function Kd(t){t instanceof Node||Ae(`The provided value must be an instance of a DOM Node but got ${Gt(t)}`)}function S1e(t){t instanceof Element||Ae(`The provided value must be an element but got ${Gt(t)}`)}function $r(t,e){ee(t,"Array must be defined.");let r=t.length;(e<0||e>=r)&&Ae(`Index expected to be less than ${r} but got ${e}`)}function T1e(t,...e){if(e.indexOf(t)!==-1)return!0;Ae(`Expected value to be one of ${JSON.stringify(e)} but was ${JSON.stringify(t)}.`)}function i8(t){Iy()!==null&&Ae(`${t}() should never be called in a reactive context.`)}function er(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function A1(t){return{providers:t.providers||[],imports:t.imports||[]}}function x1(t){return HTt(t,Gy)}function w1e(t){return x1(t)!==null}function HTt(t,e){return t.hasOwnProperty(e)&&t[e]||null}function GTt(t){let e=t?.[Gy]??null;return e?(ngDevMode&&console.warn(`DEPRECATED: DI is instantiating a token "${t.name}" that inherits its @Injectable decorator but does not provide one itself.
268
268
  This will become an error in a future version of Angular. Please add @Injectable() to the "${t.name}" class.`),e):null}function TI(t){return t&&t.hasOwnProperty(_1)?t[_1]:null}var Gy=Jt({\u0275prov:Jt}),_1=Jt({\u0275inj:Jt}),F=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,r){this._desc=e,this.\u0275prov=void 0,typeof r=="number"?((typeof ngDevMode>"u"||ngDevMode)&&Al(r,0,"Only negative numbers are supported here"),this.__NG_ELEMENT_ID__=r):r!==void 0&&(this.\u0275prov=er({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}},PK;function C1(){return!ngDevMode&&Ae("getInjectorProfilerContext should never be called in production mode"),PK}function hn(t){!ngDevMode&&Ae("setInjectorProfilerContext should never be called in production mode");let e=PK;return PK=t,e}var jy=[],WTt=()=>{};function KTt(t){let e=jy.indexOf(t);e!==-1&&jy.splice(e,1)}function GK(t){return!ngDevMode&&Ae("setInjectorProfiler should never be called in production mode"),t!==null?(jy.includes(t)||jy.push(t),()=>KTt(t)):(jy.length=0,WTt)}function O1(t){!ngDevMode&&Ae("Injector profiler should never be called in production mode");for(let e=0;e<jy.length;e++){let r=jy[e];r(t)}}function zR(t,e=!1){!ngDevMode&&Ae("Injector profiler should never be called in production mode");let r;typeof t=="function"||t instanceof F?r=t:r=ze(t.provide);let n=t;t instanceof F&&(n=t.\u0275prov||t),O1({type:2,context:C1(),providerRecord:{token:r,provider:n,isViewProvider:e}})}function wI(t){!ngDevMode&&Ae("Injector profiler should never be called in production mode"),O1({type:5,context:C1(),token:t})}function II(t){!ngDevMode&&Ae("Injector profiler should never be called in production mode"),O1({type:1,context:C1(),instance:{value:t}})}function WK(t,e,r){!ngDevMode&&Ae("Injector profiler should never be called in production mode"),O1({type:0,context:C1(),service:{token:t,value:e,flags:r}})}function zTt(t){!ngDevMode&&Ae("Injector profiler should never be called in production mode"),O1({type:3,context:C1(),effect:t})}function I1e(t){!ngDevMode&&Ae("Injector profiler should never be called in production mode"),O1({type:4,context:C1(),effectPhase:t})}function v1(t,e,r){!ngDevMode&&Ae("runInInjectorProfilerContext should never be called in production mode");let n=hn({injector:t,token:e});try{r()}finally{hn(n)}}function P1(t){return t&&!!t.\u0275providers}var Cl=Jt({\u0275cmp:Jt}),Ah=Jt({\u0275dir:Jt}),N1=Jt({\u0275pipe:Jt}),DI=Jt({\u0275mod:Jt}),Tl=Jt({\u0275fac:Jt}),xh=Jt({__NG_ELEMENT_ID__:Jt}),m1e=Jt({__NG_ENV_ID__:Jt});function Ha(t){return o8(t,"@NgModule"),t[DI]||null}function MI(t){let e=Ha(t);if(!e)throw new $(915,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${Gt(t)} does not have '\u0275mod' property.`);return e}function ut(t){return o8(t,"@Component"),t[Cl]||null}function A1e(t){let e=xn(t);if(!e)throw new $(916,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${Gt(t)} does not have '\u0275dir' property.`);return e}function xn(t){return o8(t,"@Directive"),t[Ah]||null}function so(t){return o8(t,"@Pipe"),t[N1]||null}function o8(t,e){if(t==null)throw new $(-919,(typeof ngDevMode>"u"||ngDevMode)&&`Cannot read ${e} metadata. This can indicate a runtime circular dependency in your app that needs to be resolved.`)}function Ol(t){let e=ut(t)||xn(t)||so(t);return e!==null&&e.standalone}function nt(t){return typeof t=="string"?t:t==null?"":String(t)}function Xe(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():nt(t)}function KK(t){let e=ut(t);return e!==null&&e.debugInfo?QTt(e.debugInfo):Xe(t)}function QTt(t){return!t.filePath||!t.lineNumber?t.className:`${t.className} (at ${t.filePath}:${t.lineNumber})`}var zK=Jt({ngErrorCode:Jt}),x1e=Jt({ngErrorMessage:Jt}),EI=Jt({ngTokenPath:Jt});function s8(t,e){let r=ngDevMode?`Circular dependency detected for \`${t}\`.`:"";return O1e(r,-200,e)}function QK(t,e){return C1e(s8(t,e),null)}function g1e(){throw new Error("Cannot mix multi providers and regular providers")}function NK(t,e,r){if(t&&e){let n=e.map(i=>i==r?"?"+r+"?":"...");throw new Error(`Invalid provider for the NgModule '${Gt(t)}' - only instances of Provider and Type are allowed, got: [${n.join(", ")}]`)}else throw P1(r)?r.\u0275fromNgModule?new $(-207,"Invalid providers from 'importProvidersFrom' present in a non-environment injector. 'importProvidersFrom' can't be used for component providers."):new $(-207,"Invalid providers present in a non-environment injector. 'EnvironmentProviders' can't be used for component providers."):new Error("Invalid provider")}function a8(t,e){let r=ngDevMode&&`No provider for ${Xe(t)} found${e?` in ${e}`:""}`;throw new $(-201,r)}function YTt(t,e){t[EI]??=[];let r=t[EI],n;typeof e=="object"&&"multi"in e&&e?.multi===!0?(ee(e.provide,"Token with multi: true should have a provide property"),n=Xe(e.provide)):n=Xe(e),r[0]!==n&&t[EI].unshift(n)}function C1e(t,e){let r=t[EI],n=t[zK],i=t[x1e]||t.message;return t.message=XTt(i,n,r,e),t}function O1e(t,e,r){let n=new $(e,t);return n[zK]=e,n[x1e]=t,r&&(n[EI]=r),n}function ZTt(t){return t[zK]}function XTt(t,e,r=[],n=null){let i="";r&&r.length>1&&(i=` Path: ${r.join(" -> ")}.`);let o=n?` Source: ${n}.`:"";return Er(e,`${t}${o}${i}`)}var QR;function P1e(){return QR}function io(t){let e=QR;return QR=t,e}function YK(t,e,r){let n=x1(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&8)return null;if(e!==void 0)return e;a8(t,typeof ngDevMode<"u"&&ngDevMode?"Injector":"")}function N1e(t){ngDevMode&&oo(QR,t,"Calling \u0275\u0275inject would cause infinite recursion")}var JTt={},qy=JTt,DK="__NG_DI_FLAG__",MK=class{injector;constructor(e){this.injector=e}retrieve(e,r){let n=_h(r)||0;try{return this.injector.get(e,n&8?null:qy,n)}catch(i){if(g1(i))return i;throw i}}};function ewt(t,e=0){let r=HR();if(r===void 0)throw new $(-203,ngDevMode&&`The \`${Gt(t)}\` token injection failed. \`inject()\` function must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with \`runInInjectionContext\`.`);if(r===null)return YK(t,void 0,e);{let n=twt(e),i=r.retrieve(t,n);if(ngDevMode&&WK(t,i,e),g1(i)){if(n.optional)return null;throw i}return i}}function Jn(t,e=0){return(P1e()||ewt)(ze(t),e)}function kI(t){throw new $(202,ngDevMode&&`This constructor is not compatible with Angular Dependency Injection because its dependency at index ${t} of the parameter list is invalid.
269
269
  This can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.