planx 20.5.3 → 20.5.4
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/blob.main.mjs +2 -2
- package/config.main.mjs +2 -2
- package/domain.main.mjs +2 -2
- package/exit.main.mjs +1 -1
- package/explorer.main.mjs +1 -1
- package/filesystem.main.mjs +1 -1
- package/llm.main.mjs +1 -1
- package/log.main.mjs +1 -1
- package/package.json +6 -6
- package/planx-networkd.main.mjs +1 -1
- package/presentation.main.mjs +1 -1
- package/session.main.mjs +1 -1
- package/transport.main.mjs +1 -1
package/config.main.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
globalThis.__PLANX_SERVICE_VERSION__="20.5.
|
|
1
|
+
globalThis.__PLANX_SERVICE_VERSION__="20.5.4";
|
|
2
2
|
import { createRequire } from "module";
|
|
3
3
|
import _nodeUrl from "url";
|
|
4
4
|
import _nodePath from "path";
|
|
@@ -262,7 +262,7 @@ ${e.map(r=>`"${r.sourceSpan.toString()}"`).join(`
|
|
|
262
262
|
`)}
|
|
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 ttt=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function rtt(t){return t.split(ttt)[2]}var Eme=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function Sme(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),Eme.has(t+"|"+e)||Eme.has("*|"+e)}var ntt=t=>(e,r)=>{let n=t.get(e)??e;return n instanceof Id&&(r instanceof J_&&n.i18n instanceof Ki&&(r.previousMessage=n.i18n),n.i18n=r),r},_M=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:s,customId:o}=this._parseMetadata(r),u=Yet(this.retainEmptyTokens,this.preserveSignificantWhitespace)(e,i,s,o,n);return this._setMessageId(u,r),this._setLegacyIds(u,r),u}visitAllWithErrors(e){let r=e.map(n=>n.visit(this,null));return new gM(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 J_){let s=i.name;n=this._generateI18nMessage([e],i);let o=_ge(n);o.name=s,r!==null&&(r.placeholderToMessage[s]=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 Sr(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(mZe(e)){this.hasI18nMeta=!0;let n=[],i={};for(let s of e.attrs)if(s.name===yge){let o=e.i18n||s.value,a=new Map,u=this.preserveSignificantWhitespace?e.children:Kc(new yM(!1,a),e.children);r=this._generateI18nMessage(u,o,ntt(a)),r.nodes.length===0&&(r=void 0),e.i18n=r}else if(s.name.startsWith(DU)){let o=s.name.slice(DU.length),a;e instanceof vs?a=e.tagName===null?!1:Sme(e.tagName,o):a=Sme(e.name,o),a?this._reportError(s,`Translating attribute '${o}' is disallowed for security reasons.`):i[o]=s.value}else n.push(s);if(Object.keys(i).length)for(let s of n){let o=i[s.name];o!==void 0&&s.value&&(s.i18n=this._generateI18nMessage([s],s.i18n||o))}this.keepI18nAttrs||(e.attrs=n)}Sr(this,e.children,r)}_parseMetadata(e){return typeof e=="string"?ott(e):e instanceof Ki?e:{}}_setMessageId(e,r){e.id||(e.id=r instanceof Ki&&r.id||yYe(e))}_setLegacyIds(e,r){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[gYe(e),cge(e)];else if(typeof r!="string"){let n=r instanceof Ki?r:r instanceof J_?r.previousMessage:void 0;e.legacyIds=n?n.legacyIds:[]}}_reportError(e,r){this._errors.push(new Re(e.sourceSpan,r))}},itt="|",stt="@@";function ott(t=""){let e,r,n;if(t=t.trim(),t){let i=t.indexOf(stt),s=t.indexOf(itt),o;[o,e]=i>-1?[t.slice(0,i),t.slice(i+2)]:[t,""],[r,n]=s>-1?[o.slice(0,s),o.slice(s+1)]:["",o]}return{customId:e,meaning:r,description:n}}function att(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}),DYe(e)}var utt="goog.getMsg";function ctt(t,e,r,n){let i=dtt(e),s=[C(i)];Object.keys(n).length&&(s.push(QU(BV(n,!0),!0)),s.push(QU({original_code:qo(Object.keys(n).map(u=>({key:xI(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 o=new Pn(r.name,vt(utt).callFn(s),Ca,Vn.Final);o.addLeadingComment(att(e));let a=new wi(t.set(r));return[o,a]}var fV=class{formatPh(e){return`{$${xI(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(r=>r.visit(this)).join("")}visitIcu(e){return e0e(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)}},ltt=new fV;function dtt(t){return t.nodes.map(e=>e.visit(ltt,null)).join("")}function ftt(t,e,r){let{messageParts:n,placeHolders:i}=ptt(e),s=htt(e),o=i.map(c=>r[c.text]),a=kYe(e,n,i,o,s),u=t.set(a);return[new wi(u)]}var pV=class{placeholderToMessage;pieces;constructor(e,r){this.placeholderToMessage=e,this.pieces=r}visitText(e){if(this.pieces[this.pieces.length-1]instanceof qg)this.pieces[this.pieces.length-1].text+=e.value;else{let r=new je(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new qg(e.value,r))}}visitContainer(e){e.children.forEach(r=>r.visit(this))}visitIcu(e){this.pieces.push(new qg(e0e(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 $_(xI(e,!1),r,n)}};function ptt(t){let e=[],r=new pV(t.placeholderToMessage,e);return t.nodes.forEach(n=>n.visit(r)),mtt(e)}function htt(t){let e=t.nodes[0],r=t.nodes[t.nodes.length-1];return new je(e.sourceSpan.fullStart,r.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function mtt(t){let e=[],r=[];t[0]instanceof $_&&e.push(ZB(t[0].sourceSpan.start));for(let n=0;n<t.length;n++){let i=t[n];i instanceof qg?e.push(i):(r.push(i),t[n-1]instanceof $_&&e.push(ZB(t[n-1].sourceSpan.end)))}return t[t.length-1]instanceof $_&&e.push(ZB(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:r}}function ZB(t){return new qg("",new je(t,t))}var Tme="ngI18nClosureMode",gtt="i18n_",ytt="I18N_EXP_",Ime="\uFFFD",vtt="MSG_";function wme(t){return`${vtt}${t}`.toUpperCase()}function _tt(t){return new Pn(t.name,void 0,Ca,void 0,t.sourceSpan)}function btt(t){let e=t.relativeContextFilePath.replace(/[^A-Za-z0-9]/g,"_").toUpperCase()+"_",r=new Map,n=new Map,i=new Map,s=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===i0.I18nAttribute){let l=i.get(c.target)??[];l.push(c),i.set(c.target,l)}else c.kind===v.I18nMessage&&s.set(c.xref,c);let o=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}=u0e(t,e,s,c);if(c.i18nBlock!==null){let f=t.addConst(l,d);a.set(c.i18nBlock,f)}else{t.constsInitializers.push(...d),o.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(jp(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 g=f.has(m.name);return f.add(m.name),!g});let p=d.flatMap(m=>{let g=o.get(m.context);if(g===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[C(m.name),g]});l.i18nAttributesConfig=t.addConst(new il(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 u0e(t,e,r,n){let i=[],s=new Map;for(let c of n.subMessages){let l=r.get(c),{mainVar:d,statements:f}=u0e(t,e,r,l);i.push(...f);let p=s.get(l.messagePlaceholder)??[];p.push(d),s.set(l.messagePlaceholder,p)}Ett(n,s),n.params=new Map([...n.params.entries()].sort());let o=vt(t.pool.uniqueName(gtt)),a=Itt(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=BV(c,!1),d=[];n.postprocessingParams.size>0&&d.push(QU(l,!0)),u=f=>Ee(T.i18nPostprocess).callFn([f,...d])}return i.push(...Stt(n.message,o,a,n.params,u)),{mainVar:o,statements:i}}function Ett(t,e){for(let[r,n]of e)n.length===1?t.params.set(r,n[0]):(t.params.set(r,C(`${Ime}${ytt}${r}${Ime}`)),t.postprocessingParams.set(r,nr(n)))}function Stt(t,e,r,n,i){let s=Object.fromEntries(n),o=[_tt(e),DM(Ttt(),ctt(e,t,r,s),ftt(e,t,BV(s,!1)))];return i&&o.push(new wi(e.set(i(e)))),o}function Ttt(){return wI(vt(Tme)).notIdentical(C("undefined",FV)).and(vt(Tme))}function Itt(t,e,r,n){let i,s=r;if(n){let o=wme("EXTERNAL_"),a=t.uniqueName(s);i=`${o}${kg(e)}$$${a}`}else{let o=wme(s);i=t.uniqueName(o)}return vt(i)}function wtt(t){for(let e of t.units){let r=null,n=null,i=new Map,s=new Map,o=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),s.set(a.xref,n),a.icuPlaceholder!==null){let u=QXe(t.allocateXrefId(),a.icuPlaceholder,[a.initialValue]);L.replace(a,u),o.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=s.get(a.target),l=o.get(a.target),d=c?c.context:u.context,f=c?eb.Postproccessing:eb.Creation,p=[];for(let m=0;m<a.interpolation.expressions.length;m++){let g=a.interpolation.expressions[m];p.push(jge(d,u.xref,u.xref,u.handle,g,l?.xref??null,a.interpolation.i18nPlaceholders[m]??null,f,i0.I18nText,"",g.sourceSpan??a.sourceSpan))}L.replaceWithMany(a,p),l!==void 0&&(l.strings=a.interpolation.strings);break}}}function Att(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=xtt(r.localRefs);r.localRefs=t.addConst(n)}else r.localRefs=null;break}}function xtt(t){let e=[];for(let r of t)e.push(C(r.name),C(r.target));return nr(e)}function Ctt(t){for(let e of t.units){let r=ii.HTML;for(let n of e.create)n.kind===v.ElementStart&&n.namespace!==r&&(L.insertBefore(BXe(n.namespace),n),r=n.namespace)}}function Ott(t){let e=[],r=0,n=0,i=0,s=0,o=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=c0e(t.substring(o,r-1).trim()),s=r);break;case 59:if(a&&s>0&&n===0&&i===0){let c=t.substring(s,r-1).trim();e.push(a,c),o=r,s=0,a=null}break}if(a&&s){let u=t.slice(s).trim();e.push(a,u)}return e}function c0e(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function Ptt(t){let e=new Map;for(let r of t.units)for(let n of r.create)jp(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===ge.Attribute&&qge(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===zi.Structural)continue;if(n.name==="style"){let s=Ott(n.expression.value);for(let o=0;o<s.length-1;o+=2)L.insertBefore(eo(n.target,ge.StyleProperty,null,s[o],C(s[o+1]),null,null,rr.STYLE),n);L.remove(n)}else if(n.name==="class"){let s=n.expression.value.trim().split(/\s+/g);for(let o of s)L.insertBefore(eo(n.target,ge.ClassName,null,o,null,null,null,rr.NONE),n);L.remove(n)}}}function Ntt(t){bT(t.root,t.componentName,{index:0},t.compatibility===Is.TemplateDefinitionBuilder)}function bT(t,e,r,n){t.fnName===null&&(t.fnName=t.job.pool.uniqueName(kg(`${e}_${t.job.fnSuffix}`),!1));let i=new Map;for(let s of t.ops())switch(s.kind){case v.Property:case v.DomProperty:s.bindingKind===ge.LegacyAnimation&&(s.name="@"+s.name);break;case v.Animation:if(s.handlerFnName===null){let l=s.name.replace(".","");s.handlerFnName=`${t.fnName}_${l}_cb`,s.handlerFnName=kg(s.handlerFnName)}break;case v.AnimationListener:if(s.handlerFnName!==null)break;if(!s.hostListener&&s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let o=s.name.replace(".","");s.hostListener?s.handlerFnName=`${e}_${o}_HostBindingHandler`:s.handlerFnName=`${t.fnName}_${s.tag.replace("-","_")}_${o}_${s.targetSlot.slot}_listener`,s.handlerFnName=kg(s.handlerFnName);break;case v.Listener:if(s.handlerFnName!==null)break;if(!s.hostListener&&s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let a="";s.isLegacyAnimationListener&&(s.name=`@${s.name}.${s.legacyAnimationPhase}`,a="animation"),s.hostListener?s.handlerFnName=`${e}_${a}${s.name}_HostBindingHandler`:s.handlerFnName=`${t.fnName}_${s.tag.replace("-","_")}_${a}${s.name}_${s.targetSlot.slot}_listener`,s.handlerFnName=kg(s.handlerFnName);break;case v.TwoWayListener:if(s.handlerFnName!==null)break;if(s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");s.handlerFnName=kg(`${t.fnName}_${s.tag.replace("-","_")}_${s.name}_${s.targetSlot.slot}_listener`);break;case v.Variable:i.set(s.xref,Dtt(t,s.variable,r));break;case v.RepeaterCreate:if(!(t instanceof Fo))throw new Error("AssertionError: must be compiling a component");if(s.handle.slot===null)throw new Error("Expected slot to be assigned");if(s.emptyView!==null){let l=t.job.views.get(s.emptyView);bT(l,`${e}_${s.functionNameSuffix}Empty_${s.handle.slot+2}`,r,n)}bT(t.job.views.get(s.xref),`${e}_${s.functionNameSuffix}_${s.handle.slot+1}`,r,n);break;case v.Projection:if(!(t instanceof Fo))throw new Error("AssertionError: must be compiling a component");if(s.handle.slot===null)throw new Error("Expected slot to be assigned");if(s.fallbackView!==null){let l=t.job.views.get(s.fallbackView);bT(l,`${e}_ProjectionFallback_${s.handle.slot}`,r,n)}break;case v.ConditionalCreate:case v.ConditionalBranchCreate:case v.Template:if(!(t instanceof Fo))throw new Error("AssertionError: must be compiling a component");let u=t.job.views.get(s.xref);if(s.handle.slot===null)throw new Error("Expected slot to be assigned");let c=s.functionNameSuffix.length===0?"":`_${s.functionNameSuffix}`;bT(u,`${e}${c}_${s.handle.slot}`,r,n);break;case v.StyleProp:s.name=Mtt(s.name),n&&(s.name=Ame(s.name));break;case v.ClassProp:n&&(s.name=Ame(s.name));break}for(let s of t.ops())Hn(s,o=>{if(!(!(o instanceof Sd)||o.name!==null)){if(!i.has(o.xref))throw new Error(`Variable ${o.xref} not yet named`);o.name=i.get(o.xref)}})}function Dtt(t,e,r){if(e.name===null)switch(e.kind){case On.Context:e.name=`ctx_r${r.index++}`;break;case On.Identifier:if(t.job.compatibility===Is.TemplateDefinitionBuilder){let n=e.identifier==="ctx"?"i":"";e.name=`${e.identifier}_${n}r${++r.index}`}else e.name=`${e.identifier}_i${r.index++}`;break;default:e.name=`_r${++r.index}`;break}return e.name}function Mtt(t){return t.startsWith("--")?t:c0e(t)}function Ame(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function Rtt(t){for(let e of t.units){for(let r of e.create)(r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener)&&xme(r.handlerOps);xme(e.update)}}function xme(t){for(let e of t){if(e.kind!==v.Statement||!(e.statement instanceof wi)||!(e.statement.expr instanceof rM))continue;let r=e.statement.expr.steps,n=!0;for(let i=e.next;i.kind!==v.ListEnd&&n;i=i.next)Hn(i,(s,o)=>{if(!cl(s))return s;if(n&&!(o&Ct.InChildOperation))switch(s.kind){case Se.NextContext:s.steps+=r,L.remove(e),n=!1;break;case Se.GetCurrentView:case Se.Reference:case Se.ContextLetReference:n=!1;break}})}}var ktt="ng-container";function Ltt(t){for(let e of t.units){let r=new Set;for(let n of e.create)n.kind===v.ElementStart&&n.tag===ktt&&(n.kind=v.ContainerStart,r.add(n.xref)),n.kind===v.ElementEnd&&r.has(n.xref)&&(n.kind=v.ContainerEnd)}}function $tt(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 Ftt(t){let e=new Map;for(let r of t.units)for(let n of r.create)jp(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($Xe(n.xref),n),(n.kind===v.ElementEnd||n.kind===v.ContainerEnd)&&$tt(e,n.xref).nonBindable&&L.insertBefore(FXe(n.xref),n)}function Zc(t){return e=>e.kind===t}function AT(t,e){return r=>r.kind===t&&e===r.expression instanceof Br}function jtt(t){return t.kind===v.Listener&&!(t.hostListener&&t.isLegacyAnimationListener)||t.kind===v.TwoWayListener||t.kind===v.Animation||t.kind===v.AnimationListener}function qtt(t){return(t.kind===v.Property||t.kind===v.TwoWayProperty)&&!(t.expression instanceof Br)}var Btt=[{test:t=>t.kind===v.Listener&&t.hostListener&&t.isLegacyAnimationListener},{test:jtt}],Utt=[{test:Zc(v.StyleMap),transform:bM},{test:Zc(v.ClassMap),transform:bM},{test:Zc(v.StyleProp)},{test:Zc(v.ClassProp)},{test:AT(v.Attribute,!0)},{test:AT(v.Property,!0)},{test:qtt},{test:AT(v.Attribute,!1)},{test:Zc(v.Control)}],Vtt=[{test:AT(v.DomProperty,!0)},{test:AT(v.DomProperty,!1)},{test:Zc(v.Attribute)},{test:Zc(v.StyleMap),transform:bM},{test:Zc(v.ClassMap),transform:bM},{test:Zc(v.StyleProp)},{test:Zc(v.ClassProp)}],Cme=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 Htt(t){for(let e of t.units){Ome(e.create,Btt);let r=e.job.kind===ue.Host?Vtt:Utt;Ome(e.update,r)}}function Ome(t,e){let r=[],n=null;for(let i of t){let s=lI(i)?i.target:null;(!Cme.has(i.kind)||s!==n&&n!==null&&s!==null)&&(L.insertBefore(Pme(r,e),i),r=[],n=null),Cme.has(i.kind)&&(r.push(i),L.remove(i),n=s??n)}t.push(Pme(r,e))}function Pme(t,e){let r=Array.from(e,()=>new Array);for(let n of t){let i=e.findIndex(s=>s.test(n));r[i].push(n)}return r.flatMap((n,i)=>{let s=e[i].transform;return s?s(n):n})}function bM(t){return t.slice(t.length-1)}function Gtt(t){for(let e of t.units){let r=Yge(e);for(let n of e.ops())if(n.kind===v.Binding){let i=Ktt(r,n.target);Wtt(n.name)&&i.kind===v.Projection&&L.remove(n)}}}function Wtt(t){return t.toLowerCase()==="select"}function Ktt(t,e){let r=t.get(e);if(r===void 0)throw new Error("All attributes should have an slottable target.");return r}function ztt(t){for(let e of t.units)Qtt(e)}function Qtt(t){for(let e of t.update)Hn(e,(r,n)=>{if(cl(r)&&r.kind===Se.PipeBinding){if(n&Ct.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");if(t.job.compatibility){if(e.target==null)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");Ytt(t,e.target,r)}else t.create.push(Kge(r.target,r.targetSlot,r.name))}})}function Ytt(t,e,r){for(let n=t.create.head.next;n.kind!==v.ListEnd;n=n.next){if(!cb(n)||n.xref!==e)continue;for(;n.next.kind===v.Pipe;)n=n.next;let i=Kge(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 Ztt(t){for(let e of t.units)for(let r of e.update)ln(r,n=>!(n instanceof a0)||n.args.length<=4?n:new pI(n.target,n.targetSlot,n.name,nr(n.args),n.args.length),Ct.None)}function Xtt(t){l0e(t.root,0)}function l0e(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=oD(t.job.views.get(n.xref),r,n.i18nPlaceholder,e);break;case v.RepeaterCreate:let i=t.job.views.get(n.xref);e=oD(i,r,n.i18nPlaceholder,e),n.emptyView!==null&&(e=oD(t.job.views.get(n.emptyView),r,n.emptyI18nPlaceholder,e));break;case v.Projection:n.fallbackView!==null&&(e=oD(t.job.views.get(n.fallbackView),r,n.fallbackViewI18nPlaceholder,e));break}return e}function oD(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++,Jtt(t,e)}return l0e(t,n)}function Jtt(t,e){if(t.create.head.next?.kind!==v.I18nStart){let r=t.job.allocateXrefId();L.insertAfter($M(r,e.message,e.root,null),t.create.head),L.insertBefore(FM(r,null),t.create.tail)}}function ert(t){for(let e of t.units)for(let r of e.ops())Hn(r,n=>{if(!(n instanceof o0)||n.body===null)return;let i=new hV(n.args.length);n.fn=t.pool.getSharedConstant(i,n.body),n.body=null})}var hV=class extends MT{numArgs;constructor(e){super(),this.numArgs=e}keyOf(e){return e instanceof $p?`param(${e.index})`:super.keyOf(e)}toSharedConstantDeclaration(e,r){let n=[];for(let s=0;s<this.numArgs;s++)n.push(new si("a"+s));let i=fe(r,s=>s instanceof $p?vt("a"+s.index):s,Ct.None);return new Pn(e,new zg(n,i),void 0,Vn.Final)}};function trt(t){for(let e of t.units)for(let r of e.update)ln(r,(n,i)=>i&Ct.InChildOperation?n:n instanceof il?rrt(n):n instanceof Na?nrt(n):n,Ct.None)}function rrt(t){let e=[],r=[];for(let n of t.entries){if(n instanceof Yg){if(n.expression.isConstant())e.push(n);else{let i=r.length;r.push(n.expression),e.push(new Yg(new $p(i)))}continue}if(n.isConstant())e.push(n);else{let i=r.length;r.push(n),e.push(new $p(i))}}return new o0(nr(e),r)}function nrt(t){let e=[],r=[];for(let n of t.entries){if(n instanceof Op){if(n.expression.isConstant())e.push(n);else{let i=r.length;r.push(n.expression),e.push(new Op(new $p(i)))}continue}if(n.value.isConstant())e.push(n);else{let i=r.length;r.push(n.value),e.push(new H_(n.key,new $p(i),n.quoted))}}return new o0(new Na(e),r)}function irt(t){for(let e of t.units)for(let r of e.ops())ln(r,n=>n instanceof V_&&(n.flags===null||!n.flags.includes("g"))?t.pool.getSharedConstant(new mV,n):n,Ct.None)}var mV=class extends MT{toSharedConstantDeclaration(e,r){return new Pn(e,r,void 0,Vn.Final)}};function srt(t,e,r,n,i){return Up(T.element,t,e,r,n,i)}function ort(t,e,r,n,i){return Up(T.elementStart,t,e,r,n,i)}function Up(t,e,r,n,i,s){let o=[C(e)];return r!==null&&o.push(C(r)),i!==null?o.push(C(n),C(i)):n!==null&&o.push(C(n)),ze(t,o,s)}function d0e(t,e,r,n,i,s,o,a,u){let c=[C(e),r,C(n),C(i),C(s),C(o)];for(a!==null&&(c.push(C(a)),c.push(Ee(T.templateRefExtractor)));c[c.length-1].isEquivalent(G_);)c.pop();return ze(t,c,u)}function XV(t,e,r,n,i){let s=[C(e)];return r instanceof Br?s.push(l0(r,i)):s.push(r),n!==null&&s.push(n),ze(t,s,i)}function art(t){return ze(T.elementEnd,[],t)}function urt(t,e,r,n){return Up(T.elementContainerStart,t,null,e,r,n)}function crt(t,e,r,n){return Up(T.elementContainer,t,null,e,r,n)}function lrt(){return ze(T.elementContainerEnd,[],null)}function drt(t,e,r,n,i,s,o,a){return d0e(T.templateCreate,t,e,r,n,i,s,o,a)}function frt(){return ze(T.disableBindings,[],null)}function prt(){return ze(T.enableBindings,[],null)}function hrt(t,e,r,n,i){let s=[C(t),e];return r!==null&&s.push(Ee(r)),ze(n?T.syntheticHostListener:T.listener,s,i)}function Nme(t,e){return Ee(T.twoWayBindingSet).callFn([t,e])}function mrt(t,e,r){return ze(T.twoWayListener,[C(t),e],r)}function grt(t,e){return ze(T.pipe,[C(t),C(e)],null)}function yrt(){return ze(T.namespaceHTML,[],null)}function vrt(){return ze(T.namespaceSVG,[],null)}function _rt(){return ze(T.namespaceMathML,[],null)}function brt(t,e){return ze(T.advance,t>1?[C(t)]:[],e)}function Ert(t){return Ee(T.reference).callFn([C(t)])}function Srt(t){return Ee(T.nextContext).callFn(t===1?[]:[C(t)])}function Trt(){return Ee(T.getCurrentView).callFn([])}function Irt(t){return Ee(T.restoreView).callFn([t])}function wrt(t){return Ee(T.resetView).callFn([t])}function Art(t,e,r){let n=[C(t,null)];return e!==""&&n.push(C(e)),ze(T.text,n,r)}function xrt(t,e,r,n,i,s,o,a,u,c,l){let d=[C(t),C(e),r??C(null),C(n),C(i),C(s),o??C(null),a??C(null),u?Ee(T.deferEnableTimerScheduling):C(null),C(l)],f;for(;(f=d[d.length-1])!==null&&f instanceof ui&&f.value===null;)d.pop();return ze(T.defer,d,c)}var Crt=new Map([[tr.Idle,{none:T.deferOnIdle,prefetch:T.deferPrefetchOnIdle,hydrate:T.deferHydrateOnIdle}],[tr.Immediate,{none:T.deferOnImmediate,prefetch:T.deferPrefetchOnImmediate,hydrate:T.deferHydrateOnImmediate}],[tr.Timer,{none:T.deferOnTimer,prefetch:T.deferPrefetchOnTimer,hydrate:T.deferHydrateOnTimer}],[tr.Hover,{none:T.deferOnHover,prefetch:T.deferPrefetchOnHover,hydrate:T.deferHydrateOnHover}],[tr.Interaction,{none:T.deferOnInteraction,prefetch:T.deferPrefetchOnInteraction,hydrate:T.deferHydrateOnInteraction}],[tr.Viewport,{none:T.deferOnViewport,prefetch:T.deferPrefetchOnViewport,hydrate:T.deferHydrateOnViewport}],[tr.Never,{none:T.deferHydrateNever,prefetch:T.deferHydrateNever,hydrate:T.deferHydrateNever}]]);function Ort(t,e,r,n){let i=Crt.get(t)?.[r];if(i===void 0)throw new Error(`Unable to determine instruction for trigger ${t}`);return ze(i,e,n)}function Prt(t){return ze(T.projectionDef,t?[t]:[],null)}function Nrt(t,e,r,n,i,s,o){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(vt(n),C(i),C(s)))),ze(T.projection,a,o)}function Drt(t,e,r,n){let i=[C(t),C(e)];return r!==null&&i.push(C(r)),ze(T.i18nStart,i,n)}function Mrt(t,e,r,n,i,s,o,a){let u=[C(t),e,C(r),C(n),C(i),C(s)];for(o!==null&&(u.push(C(o)),u.push(Ee(T.templateRefExtractor)));u[u.length-1].isEquivalent(G_);)u.pop();return ze(T.conditionalCreate,u,a)}function Rrt(t,e,r,n,i,s,o,a){let u=[C(t),e,C(r),C(n),C(i),C(s)];for(o!==null&&(u.push(C(o)),u.push(Ee(T.templateRefExtractor)));u[u.length-1].isEquivalent(G_);)u.pop();return ze(T.conditionalBranchCreate,u,a)}function krt(t,e,r,n,i,s,o,a,u,c,l,d,f,p){let m=[C(t),vt(e),C(r),C(n),C(i),C(s),o];return(a||u!==null)&&(m.push(C(a)),u!==null&&(m.push(vt(u),C(c),C(l)),(d!==null||f!==null)&&m.push(C(d)),f!==null&&m.push(C(f)))),ze(T.repeaterCreate,m,p)}function Lrt(t,e){return ze(T.repeater,[t],e)}function $rt(t,e,r){return t==="prefetch"?ze(T.deferPrefetchWhen,[e],r):t==="hydrate"?ze(T.deferHydrateWhen,[e],r):ze(T.deferWhen,[e],r)}function Frt(t,e){return ze(T.declareLet,[C(t)],e)}function jrt(t,e){return Ee(T.storeLet).callFn([t],e)}function qrt(t){return Ee(T.readContextLet).callFn([C(t)])}function Brt(t,e,r,n){let i=[C(t),C(e)];return r&&i.push(C(r)),ze(T.i18n,i,n)}function Urt(t){return ze(T.i18nEnd,[],t)}function Vrt(t,e){let r=[C(t),C(e)];return ze(T.i18nAttributes,r,null)}function Hrt(t,e,r){return XV(T.ariaProperty,t,e,null,r)}function Grt(t,e,r,n){return XV(T.property,t,e,r,n)}function Wrt(t,e,r,n){let i=[];return e instanceof Br?i.push(l0(e,n)):i.push(e),i.push(C(t)),r!==null&&i.push(r),ze(T.control,i,n)}function Krt(t){return ze(T.controlCreate,[],t)}function zrt(t,e,r,n){let i=[C(t),e];return r!==null&&i.push(r),ze(T.twoWayProperty,i,n)}function Qrt(t,e,r,n,i){let s=[C(t)];return e instanceof Br?s.push(l0(e,i)):s.push(e),(r!==null||n!==null)&&s.push(r??C(null)),n!==null&&s.push(C(n)),ze(T.attribute,s,null)}function Yrt(t,e,r,n){let i=[C(t)];return e instanceof Br?i.push(l0(e,n)):i.push(e),r!==null&&i.push(C(r)),ze(T.styleProp,i,n)}function Zrt(t,e,r){return ze(T.classProp,[C(t),e],r)}function Xrt(t,e){let r=t instanceof Br?l0(t,e):t;return ze(T.styleMap,[r],e)}function Jrt(t,e){let r=t instanceof Br?l0(t,e):t;return ze(T.classMap,[r],e)}function ent(t,e,r,n,i){return Up(T.domElement,t,e,r,n,i)}function tnt(t,e,r,n,i){return Up(T.domElementStart,t,e,r,n,i)}function rnt(t){return ze(T.domElementEnd,[],t)}function nnt(t,e,r,n){return Up(T.domElementContainerStart,t,null,e,r,n)}function int(t,e,r,n){return Up(T.domElementContainer,t,null,e,r,n)}function snt(){return ze(T.domElementContainerEnd,[],null)}function ont(t,e,r,n){let i=[C(t),e];return r!==null&&i.push(Ee(r)),ze(T.domListener,i,n)}function ant(t,e,r,n,i,s,o,a){return d0e(T.domTemplate,t,e,r,n,i,s,o,a)}var Dme=[T.pipeBind1,T.pipeBind2,T.pipeBind3,T.pipeBind4];function unt(t,e,r){if(r.length<1||r.length>Dme.length)throw new Error("pipeBind() argument count out of bounds");let n=Dme[r.length-1];return Ee(n).callFn([C(t),C(e),...r])}function cnt(t,e,r){return Ee(T.pipeBindV).callFn([C(t),C(e),r])}function lnt(t,e,r){let n=f0e(t,e);return Int(Ent,[],n,r)}function dnt(t,e){return ze(T.i18nExp,[t],e)}function fnt(t,e){return ze(T.i18nApply,[C(t)],e)}function pnt(t,e,r,n){return XV(T.domProperty,t,e,r,n)}function hnt(t,e,r,n){let i=[e];r!==null&&i.push(r);let s=t==="enter"?T.animationEnter:T.animationLeave;return ze(s,i,n)}function mnt(t,e,r,n){let s=[e instanceof Br?l0(e,n):e];r!==null&&s.push(r);let o=t==="enter"?T.animationEnter:T.animationLeave;return ze(o,s,n)}function gnt(t,e,r,n){let i=[e],s=t==="enter"?T.animationEnterListener:T.animationLeaveListener;return ze(s,i,n)}function ynt(t,e,r){return ze(T.syntheticHostProperty,[C(t),e],r)}function vnt(t,e,r){return JV(Tnt,[C(t),e],r,null)}function _nt(t,e){return ze(T.attachSourceLocations,[C(t),e],null)}function f0e(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 l0(t,e){let r=f0e(t.strings,t.expressions);return JV(Snt,[],r,e)}function ze(t,e,r){let n=Ee(t).callFn(e,r);return Bo(new wi(n,r))}function bnt(t,e,r){let n=[t];return e!==null&&n.push(e),ze(T.conditional,n,r)}var Ent={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}},Snt={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}},Tnt={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 JV(t,e,r,n){let i=t.mapping(r.length),s=r.at(-1);if(r.length>1&&s instanceof ui&&s.value===""&&r.pop(),i<t.constant.length)return Ee(t.constant[i]).callFn([...e,...r],n);if(t.variable!==null)return Ee(t.variable).callFn([...e,nr(r)],n);throw new Error("AssertionError: unable to call variadic function")}function Int(t,e,r,n){return Bo(JV(t,e,r,n).toStmt())}var wnt=new Map([["window",T.resolveWindow],["document",T.resolveDocument],["body",T.resolveBody]]),Ant=new Map([["class","className"],["for","htmlFor"],["formaction","formAction"],["innerHtml","innerHTML"],["readonly","readOnly"],["tabindex","tabIndex"]]);function xnt(t){for(let e of t.units)Cnt(e,e.create),eH(e,e.update)}function Cnt(t,e){for(let r of e)switch(ln(r,p0e,Ct.None),r.kind){case v.Text:L.replace(r,Art(r.handle.slot,r.initialValue,r.sourceSpan));break;case v.ElementStart:L.replace(r,t.job.mode===Gi.DomOnly?tnt(r.handle.slot,r.tag,r.attributes,r.localRefs,r.startSourceSpan):ort(r.handle.slot,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.Element:L.replace(r,t.job.mode===Gi.DomOnly?ent(r.handle.slot,r.tag,r.attributes,r.localRefs,r.wholeSourceSpan):srt(r.handle.slot,r.tag,r.attributes,r.localRefs,r.wholeSourceSpan));break;case v.ElementEnd:L.replace(r,t.job.mode===Gi.DomOnly?rnt(r.sourceSpan):art(r.sourceSpan));break;case v.ContainerStart:L.replace(r,t.job.mode===Gi.DomOnly?nnt(r.handle.slot,r.attributes,r.localRefs,r.startSourceSpan):urt(r.handle.slot,r.attributes,r.localRefs,r.startSourceSpan));break;case v.Container:L.replace(r,t.job.mode===Gi.DomOnly?int(r.handle.slot,r.attributes,r.localRefs,r.wholeSourceSpan):crt(r.handle.slot,r.attributes,r.localRefs,r.wholeSourceSpan));break;case v.ContainerEnd:L.replace(r,t.job.mode===Gi.DomOnly?snt():lrt());break;case v.I18nStart:L.replace(r,Drt(r.handle.slot,r.messageIndex,r.subTemplateIndex,r.sourceSpan));break;case v.I18nEnd:L.replace(r,Urt(r.sourceSpan));break;case v.I18n:L.replace(r,Brt(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,Vrt(r.handle.slot,r.i18nAttributesConfig));break;case v.Template:if(!(t instanceof Fo))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===zi.Block||t.job.mode===Gi.DomOnly?ant(r.handle.slot,vt(n.fnName),n.decls,n.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan):drt(r.handle.slot,vt(n.fnName),n.decls,n.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.DisableBindings:L.replace(r,frt());break;case v.EnableBindings:L.replace(r,prt());break;case v.Pipe:L.replace(r,grt(r.handle.slot,r.name));break;case v.DeclareLet:L.replace(r,Frt(r.handle.slot,r.sourceSpan));break;case v.AnimationString:L.replace(r,mnt(r.animationKind,r.expression,r.sanitizer,r.sourceSpan));break;case v.Animation:let i=aD(t,r.handlerFnName,r.handlerOps,!1);L.replace(r,hnt(r.animationKind,i,r.sanitizer,r.sourceSpan));break;case v.AnimationListener:let s=aD(t,r.handlerFnName,r.handlerOps,r.consumesDollarEvent);L.replace(r,gnt(r.animationKind,s,null,r.sourceSpan));break;case v.Listener:let o=aD(t,r.handlerFnName,r.handlerOps,r.consumesDollarEvent),a=r.eventTarget?wnt.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===Gi.DomOnly&&!r.hostListener&&!r.isLegacyAnimationListener?ont(r.name,o,a,r.sourceSpan):hrt(r.name,o,a,r.hostListener&&r.isLegacyAnimationListener,r.sourceSpan));break;case v.TwoWayListener:L.replace(r,mrt(r.name,aD(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,Bo(new Pn(r.variable.name,r.initializer,void 0,Vn.Final)));break;case v.Namespace:switch(r.active){case ii.HTML:L.replace(r,yrt());break;case ii.SVG:L.replace(r,vrt());break;case ii.Math:L.replace(r,_rt());break}break;case v.Defer:let u=!!r.loadingMinimumTime||!!r.loadingAfterTime||!!r.placeholderMinimumTime;L.replace(r,xrt(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 tr.Never:case tr.Idle:case tr.Immediate:break;case tr.Timer:c=[C(r.trigger.delay)];break;case tr.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 tr.Interaction:case tr.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,Ort(r.trigger.kind,c,r.modifier,r.sourceSpan));break;case v.ProjectionDef:L.replace(r,Prt(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 Fo))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,Nrt(r.handle.slot,r.projectionSlotIndex,r.attributes,l,d,f,r.sourceSpan));break;case v.ConditionalCreate:if(!(t instanceof Fo))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,Mrt(r.handle.slot,vt(p.fnName),p.decls,p.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.ConditionalBranchCreate:if(!(t instanceof Fo))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,Rrt(r.handle.slot,vt(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 Fo))throw new Error("AssertionError: must be compiling a component");let g=t.job.views.get(r.xref);if(g.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let y=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");y=x.fnName,_=x.decls,b=x.vars}L.replace(r,krt(r.handle.slot,g.fnName,r.decls,r.vars,r.tag,r.attributes,Nnt(t,r),r.usesComponentInstance,y,_,b,r.emptyTag,r.emptyAttributes,r.wholeSourceSpan));break;case v.SourceLocation:let S=nr(r.locations.map(({targetSlot:x,offset:M,line:se,column:ye})=>{if(x.slot===null)throw new Error("No slot was assigned for source location");return nr([C(x.slot),C(M),C(se),C(ye)])}));L.replace(r,_nt(r.templatePath,S));break;case v.ControlCreate:L.replace(r,Krt(r.sourceSpan));break;case v.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${v[r.kind]}`)}}function eH(t,e){for(let r of e)switch(ln(r,p0e,Ct.None),r.kind){case v.Advance:L.replace(r,brt(r.delta,r.sourceSpan));break;case v.Property:L.replace(r,t.job.mode===Gi.DomOnly&&r.bindingKind!==ge.LegacyAnimation&&r.bindingKind!==ge.Animation?Mme(r):Ont(r));break;case v.Control:L.replace(r,Pnt(r));break;case v.TwoWayProperty:L.replace(r,zrt(r.name,r.expression,r.sanitizer,r.sourceSpan));break;case v.StyleProp:L.replace(r,Yrt(r.name,r.expression,r.unit,r.sourceSpan));break;case v.ClassProp:L.replace(r,Zrt(r.name,r.expression,r.sourceSpan));break;case v.StyleMap:L.replace(r,Xrt(r.expression,r.sourceSpan));break;case v.ClassMap:L.replace(r,Jrt(r.expression,r.sourceSpan));break;case v.I18nExpression:L.replace(r,dnt(r.expression,r.sourceSpan));break;case v.I18nApply:L.replace(r,fnt(r.handle.slot,r.sourceSpan));break;case v.InterpolateText:L.replace(r,lnt(r.interpolation.strings,r.interpolation.expressions,r.sourceSpan));break;case v.Attribute:L.replace(r,Qrt(r.name,r.expression,r.sanitizer,r.namespace,r.sourceSpan));break;case v.DomProperty:if(r.expression instanceof Br)throw new Error("not yet handled");r.bindingKind===ge.LegacyAnimation||r.bindingKind===ge.Animation?L.replace(r,ynt(r.name,r.expression,r.sourceSpan)):L.replace(r,Mme(r));break;case v.Variable:if(r.variable.name===null)throw new Error(`AssertionError: unnamed variable ${r.xref}`);L.replace(r,Bo(new Pn(r.variable.name,r.initializer,void 0,Vn.Final)));break;case v.Conditional:if(r.processed===null)throw new Error("Conditional test was not set.");L.replace(r,bnt(r.processed,r.contextValue,r.sourceSpan));break;case v.Repeater:L.replace(r,Lrt(r.collection,r.sourceSpan));break;case v.DeferWhen:L.replace(r,$rt(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 Mme(t){return pnt(Ant.get(t.name)??t.name,t.expression,t.sanitizer,t.sourceSpan)}function Ont(t){return Zge(t.name)?Hrt(t.name,t.expression,t.sourceSpan):Grt(t.name,t.expression,t.sanitizer,t.sourceSpan)}function Pnt(t){return Wrt(t.name,t.expression,t.sanitizer,t.sourceSpan)}function p0e(t){if(!cl(t))return t;switch(t.kind){case Se.NextContext:return Srt(t.steps);case Se.Reference:return Ert(t.targetSlot.slot+1+t.offset);case Se.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${t.name}`);case Se.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case Se.RestoreView:if(typeof t.view=="number")throw new Error("AssertionError: unresolved RestoreView");return Irt(t.view);case Se.ResetView:return wrt(t.expr);case Se.GetCurrentView:return Trt();case Se.ReadVariable:if(t.name===null)throw new Error(`Read of unnamed variable ${t.xref}`);return vt(t.name);case Se.ReadTemporaryExpr:if(t.name===null)throw new Error(`Read of unnamed temporary ${t.xref}`);return vt(t.name);case Se.AssignTemporaryExpr:if(t.name===null)throw new Error(`Assign of unnamed temporary ${t.xref}`);return vt(t.name).set(t.expr);case Se.PureFunctionExpr:if(t.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return vnt(t.varOffset,t.fn,t.args);case Se.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case Se.PipeBinding:return unt(t.targetSlot.slot,t.varOffset,t.args);case Se.PipeBindingVariadic:return cnt(t.targetSlot.slot,t.varOffset,t.args);case Se.SlotLiteralExpr:return C(t.slot.slot);case Se.ContextLetReference:return qrt(t.targetSlot.slot);case Se.StoreLet:return jrt(t.value,t.sourceSpan);case Se.TrackContext:return vt("this");default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${Se[t.kind]}`)}}function aD(t,e,r,n){eH(t,r);let i=[];for(let o of r){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${v[o.kind]}`);i.push(o.statement)}let s=[];return n&&s.push(new si("$event")),Pp(s,i,void 0,void 0,e)}function Nnt(t,e){if(e.trackByFn!==null)return e.trackByFn;let r=[new si("$index"),new si("$item")],n;if(e.trackByOps===null)n=e.usesComponentInstance?Pp(r,[new oi(e.track)]):sl(r,e.track);else{eH(t,e.trackByOps);let i=[];for(let s of e.trackByOps){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${v[s.kind]}`);i.push(s.statement)}n=e.usesComponentInstance||i.length!==1||!(i[0]instanceof oi)?Pp(r,i):sl(r,i[0].value)}return e.trackByFn=t.job.pool.getSharedFunctionReference(n,"_forTrack"),e.trackByFn}function Dnt(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 hI&&L.remove(r);break}}function Mnt(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 Rnt(t){for(let e of t.units)for(let r of e.update){if(r.kind!==v.Variable||r.variable.kind!==On.Identifier||!(r.initializer instanceof dI))continue;let n=r.variable.identifier,i=r;for(;i&&i.kind!==v.ListEnd;)ln(i,s=>s instanceof ri&&s.name===n?C(void 0):s,Ct.None),i=i.prev}}function knt(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 Lnt(t){for(let e of t.units)EM(e,e.create),EM(e,e.update)}function EM(t,e){let r=new Map;r.set(t.xref,vt("ctx"));for(let n of e)switch(n.kind){case v.Variable:n.variable.kind===On.Context&&r.set(n.variable.view,new Sd(n.xref));break;case v.Animation:case v.AnimationListener:case v.Listener:case v.TwoWayListener:EM(t,n.handlerOps);break;case v.RepeaterCreate:n.trackByOps!==null&&EM(t,n.trackByOps);break}t===t.job.root&&r.set(t.xref,vt("ctx"));for(let n of e)ln(n,i=>{if(i instanceof Lp){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},Ct.None)}function $nt(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 Fnt(t){for(let e of t.units)Rme(e.create),Rme(e.update)}function Rme(t){for(let e of t)(e.kind===v.Listener||e.kind===v.TwoWayListener||e.kind===v.AnimationListener)&&ln(e,r=>r instanceof ri&&r.name==="$event"?((e.kind===v.Listener||e.kind===v.AnimationListener)&&(e.consumesDollarEvent=!0),new Oa(r.name)):r,Ct.InChildOperation)}function jnt(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 s=null,o=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");s={i18nBlock:a,i18nContext:r.get(a.context)};break;case v.I18nEnd:s=null;break;case v.ElementStart:if(a.i18nPlaceholder!==void 0){if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");kme(a,s.i18nContext,s.i18nBlock,i),i&&a.i18nPlaceholder.closeName&&o.set(a.xref,i),i=void 0}break;case v.ElementEnd:let u=n.get(a.xref);if(u&&u.i18nPlaceholder!==void 0){if(s===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");Lme(u,s.i18nContext,s.i18nBlock,o.get(a.xref)),o.delete(a.xref)}break;case v.Projection:if(a.i18nPlaceholder!==void 0){if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");kme(a,s.i18nContext,s.i18nBlock,i),Lme(a,s.i18nContext,s.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(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");uD(t,f,a.handle.slot,a.fallbackViewI18nPlaceholder,s.i18nContext,s.i18nBlock,i),zc(t,f,r,n),cD(t,f,a.handle.slot,a.fallbackViewI18nPlaceholder,s.i18nContext,s.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(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===zi.Structural?zc(t,c,r,n,a):(uD(t,c,a.handle.slot,a.i18nPlaceholder,s.i18nContext,s.i18nBlock,i),zc(t,c,r,n),cD(t,c,a.handle.slot,a.i18nPlaceholder,s.i18nContext,s.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(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");uD(t,d,l,a.i18nPlaceholder,s.i18nContext,s.i18nBlock,i),zc(t,d,r,n),cD(t,d,l,a.i18nPlaceholder,s.i18nContext,s.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(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");uD(t,p,f,a.emptyI18nPlaceholder,s.i18nContext,s.i18nBlock,i),zc(t,p,r,n),cD(t,p,f,a.emptyI18nPlaceholder,s.i18nContext,s.i18nBlock,i),i=void 0}}break}}function kme(t,e,r,n){let{startName:i,closeName:s}=t.i18nPlaceholder,o=lr.ElementTag|lr.OpenTag,a=t.handle.slot;n!==void 0&&(o|=lr.TemplateTag,a={element:a,template:n.handle.slot}),s||(o|=lr.CloseTag),ob(e.params,i,a,r.subTemplateIndex,o)}function Lme(t,e,r,n){let{closeName:i}=t.i18nPlaceholder;if(i){let s=lr.ElementTag|lr.CloseTag,o=t.handle.slot;n!==void 0&&(s|=lr.TemplateTag,o={element:o,template:n.handle.slot}),ob(e.params,i,o,r.subTemplateIndex,s)}}function uD(t,e,r,n,i,s,o){let{startName:a,closeName:u}=n,c=lr.TemplateTag|lr.OpenTag;u||(c|=lr.CloseTag),o!==void 0&&ob(i.params,a,o.handle.slot,s.subTemplateIndex,c),ob(i.params,a,r,h0e(t,s,e),c)}function cD(t,e,r,n,i,s,o){let{closeName:a}=n,u=lr.TemplateTag|lr.CloseTag;a&&(ob(i.params,a,r,h0e(t,s,e),u),o!==void 0&&ob(i.params,a,o.handle.slot,s.subTemplateIndex,u))}function h0e(t,e,r){for(let n of r.create)if(n.kind===v.I18nStart)return n.subTemplateIndex;return e.subTemplateIndex}function ob(t,e,r,n,i){let s=t.get(e)??[];s.push({value:r,subTemplateIndex:n,flags:i}),t.set(e,s)}function qnt(t){let e=new Map,r=new Map,n=new Map;for(let o of t.units)for(let a of o.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,s=o=>o.usage===i0.I18nText?o.i18nOwner:o.context;for(let o of t.units)for(let a of o.update)if(a.kind===v.I18nExpression){let u=i.get(s(a))||0,c=e.get(a.i18nOwner)??null,l={value:u,subTemplateIndex:c,flags:lr.ExpressionIndex};Bnt(a,l,r,n),i.set(s(a),u+1)}}function Bnt(t,e,r,n){if(t.i18nPlaceholder!==null){let i=r.get(t.context),s=t.resolutionTime===eb.Creation?i.params:i.postprocessingParams,o=s.get(t.i18nPlaceholder)||[];o.push(e),s.set(t.i18nPlaceholder,o)}t.icuPlaceholder!==null&&n.get(t.icuPlaceholder)?.expressionPlaceholders.push(e)}function Unt(t){for(let e of t.units)SM(e,e.create,null),SM(e,e.update,null)}function SM(t,e,r){let n=new Map,i=new Map;for(let s of e)switch(s.kind){case v.Variable:switch(s.variable.kind){case On.Identifier:if(s.variable.local){if(i.has(s.variable.identifier))continue;i.set(s.variable.identifier,s.xref)}else if(n.has(s.variable.identifier))continue;n.set(s.variable.identifier,s.xref);break;case On.Alias:if(n.has(s.variable.identifier))continue;n.set(s.variable.identifier,s.xref);break;case On.SavedView:r={view:s.variable.view,variable:s.xref};break}break;case v.Animation:case v.AnimationListener:case v.Listener:case v.TwoWayListener:SM(t,s.handlerOps,r);break;case v.RepeaterCreate:s.trackByOps!==null&&SM(t,s.trackByOps,r);break}for(let s of e)s.kind==v.Listener||s.kind===v.TwoWayListener||s.kind===v.Animation||s.kind===v.AnimationListener||ln(s,o=>{if(o instanceof ri)return i.has(o.name)?new Sd(i.get(o.name)):n.has(o.name)?new Sd(n.get(o.name)):new ao(new Lp(t.job.root.xref),o.name);if(o instanceof nM&&typeof o.view=="number"){if(r===null||r.view!==o.view)throw new Error(`AssertionError: no saved view ${o.view} from view ${t.xref}`);return o.view=new Sd(r.variable),o}else return o},Ct.None);for(let s of e)Hn(s,o=>{if(o instanceof ri)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}var Vnt=new Map([[rr.HTML,T.sanitizeHtml],[rr.RESOURCE_URL,T.sanitizeResourceUrl],[rr.SCRIPT,T.sanitizeScript],[rr.STYLE,T.sanitizeStyle],[rr.URL,T.sanitizeUrl],[rr.ATTRIBUTE_NO_BINDING,T.validateAttribute]]),Hnt=new Map([[rr.HTML,T.trustConstantHtml],[rr.RESOURCE_URL,T.trustConstantResourceUrl]]);function Gnt(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=Hnt.get($me(r.securityContext))??null;r.trustedValueFn=n!==null?Ee(n):null}}for(let r of e.update)switch(r.kind){case v.Property:case v.Attribute:case v.DomProperty:let n=null;Array.isArray(r.securityContext)&&r.securityContext.length===2&&r.securityContext.includes(rr.URL)&&r.securityContext.includes(rr.RESOURCE_URL)?n=T.sanitizeUrlOrResourceUrl:n=Vnt.get($me(r.securityContext))??null,r.sanitizer=n!==null?Ee(n):null;break}}}function $me(t){if(Array.isArray(t)){if(t.length>1)throw Error("AssertionError: Ambiguous security context");return t[0]||rr.NONE}return t}function Wnt(t){for(let e of t.units){e.create.prepend([wp(e.job.allocateXrefId(),{kind:On.SavedView,name:null,view:e.xref},new HU,ro.None)]);for(let r of e.create){if(r.kind!==v.Listener&&r.kind!==v.TwoWayListener&&r.kind!==v.Animation&&r.kind!==v.AnimationListener)continue;let n=e!==t.root;if(!n)for(let i of r.handlerOps)Hn(i,s=>{(s instanceof tM||s instanceof fI)&&(n=!0)});n&&Knt(e,r)}}}function Knt(t,e){e.handlerOps.prepend([wp(t.job.allocateXrefId(),{kind:On.Context,name:null,view:t.xref},new nM(t.xref),ro.None)]);for(let r of e.handlerOps)r.kind===v.Statement&&r.statement instanceof oi&&(r.statement.value=new GU(r.statement.value))}function znt(t){let e=new Map;for(let r of t.units){let n=0;for(let i of r.create)cb(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 Qnt(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),Hn(i,s=>{s instanceof fI&&e.add(s.target)});for(let n of t.units)for(let i of n.update)ln(i,s=>s instanceof dI&&!e.has(s.target)?(Ynt(s)||L.remove(r.get(s.target)),s.value):s,Ct.None)}function Ynt(t){let e=!1;return fe(t,r=>((r instanceof a0||r instanceof pI)&&(e=!0),r),Ct.None),e}function Znt(t){let e=new Set;for(let r of t.units)for(let n of r.ops())Hn(n,i=>{if(i instanceof Tt)switch(i.operator){case H.Exponentiation:Xnt(i,e);break;case H.NullishCoalesce:Jnt(i,e);break;case H.And:case H.Or:eit(i,e)}});for(let r of t.units)for(let n of r.ops())ln(n,i=>i instanceof Pa?e.has(i)?i:i.expr:i,Ct.None)}function Xnt(t,e){t.lhs instanceof Pa&&t.lhs.expr instanceof Qg&&e.add(t.lhs)}function Jnt(t,e){t.lhs instanceof Pa&&(Fme(t.lhs.expr)||t.lhs.expr instanceof nl)&&e.add(t.lhs),t.rhs instanceof Pa&&(Fme(t.rhs.expr)||t.rhs.expr instanceof nl)&&e.add(t.rhs)}function eit(t,e){t.lhs instanceof Pa&&t.lhs.expr instanceof Tt&&t.lhs.expr.operator===H.NullishCoalesce&&e.add(t.lhs)}function Fme(t){return t instanceof Tt&&(t.operator===H.And||t.operator===H.Or)}function tit(t){for(let e of t.units)for(let r of e.update)if(r.kind===v.Binding)switch(r.bindingKind){case ge.ClassName:if(r.expression instanceof Br)throw new Error("Unexpected interpolation in ClassName binding");L.replace(r,IXe(r.target,r.name,r.expression,r.sourceSpan));break;case ge.StyleProperty:L.replace(r,TXe(r.target,r.name,r.expression,r.unit,r.sourceSpan));break;case ge.Property:case ge.Template:r.name==="style"?L.replace(r,wXe(r.target,r.expression,r.sourceSpan)):r.name==="class"&&L.replace(r,AXe(r.target,r.expression,r.sourceSpan));break}}function rit(t){for(let e of t.units)e.create.prepend(TM(e.create)),e.update.prepend(TM(e.update))}function TM(t){let e=0,r=[];for(let n of t){let i=new Map;Hn(n,(c,l)=>{l&Ct.InChildOperation||c instanceof Fp&&i.set(c.xref,c)});let s=0,o=new Set,a=new Set,u=new Map;Hn(n,(c,l)=>{l&Ct.InChildOperation||(c instanceof ll?(o.has(c.xref)||(o.add(c.xref),u.set(c.xref,`tmp_${e}_${s++}`)),jme(u,c)):c instanceof Fp&&(i.get(c.xref)===c&&(a.add(c.xref),s--),jme(u,c)))}),r.push(...Array.from(new Set(u.values())).map(c=>Bo(new Pn(c)))),e++,n.kind===v.Listener||n.kind===v.Animation||n.kind===v.AnimationListener||n.kind===v.TwoWayListener?n.handlerOps.prepend(TM(n.handlerOps)):n.kind===v.RepeaterCreate&&n.trackByOps!==null&&n.trackByOps.prepend(TM(n.trackByOps))}return r}function jme(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 nit(t){for(let e of t.units)for(let r of e.create)if(r.kind===v.RepeaterCreate)if(r.track instanceof Oa&&r.track.name==="$index")r.trackByFn=Ee(T.repeaterTrackByIndex);else if(r.track instanceof Oa&&r.track.name==="$item")r.trackByFn=Ee(T.repeaterTrackByIdentity);else if(iit(t.root.xref,r.track))r.usesComponentInstance=!0,r.track.receiver.receiver.view===e.xref?r.trackByFn=r.track.receiver:(r.trackByFn=Ee(T.componentInstance).callFn([]).prop(r.track.receiver.name),r.track=r.trackByFn);else{r.track=fe(r.track,i=>{if(i instanceof a0||i instanceof pI)throw new Error("Illegal State: Pipes are not allowed in this context");return i instanceof Lp?(r.usesComponentInstance=!0,new VU(i.view)):i},Ct.None);let n=new L;n.push(Bo(new oi(r.track,r.track.sourceSpan))),r.trackByOps=n}}function iit(t,e){if(!(e instanceof Ts)||e.args.length===0||e.args.length>2||!(e.receiver instanceof ao&&e.receiver.receiver instanceof Lp)||e.receiver.receiver.view!==t)return!1;let[r,n]=e.args;return!(r instanceof Oa)||r.name!=="$index"?!1:e.args.length===1?!0:!(!(n instanceof Oa)||n.name!=="$item")}function sit(t){for(let e of t.units)for(let r of e.create)r.kind===v.RepeaterCreate&&(r.track=fe(r.track,n=>{if(n instanceof ri){if(r.varNames.$index.has(n.name))return vt("$index");if(n.name===r.varNames.$implicit)return vt("$item")}return n},Ct.None))}function oit(t){for(let e of t.units)for(let r of e.create)r.kind===v.TwoWayListener&&ln(r,n=>{if(!(n instanceof iM))return n;let{target:i,value:s}=n;if(i instanceof ao||i instanceof Td)return Nme(i,s).or(i.set(s));if(i instanceof Sd)return Nme(i,s);throw new Error("Unsupported expression in two-way action binding.")},Ct.InChildOperation)}function ait(t){for(let e of t.units){let r=0;for(let n of e.ops())KB(n)&&(r+=uit(n));for(let n of e.ops())Hn(n,i=>{cl(i)&&(t.compatibility===Is.TemplateDefinitionBuilder&&i instanceof o0||(Khe(i)&&(i.varOffset=r),KB(i)&&(r+=qme(i))))});if(t.compatibility===Is.TemplateDefinitionBuilder)for(let n of e.ops())Hn(n,i=>{!cl(i)||!(i instanceof o0)||(Khe(i)&&(i.varOffset=r),KB(i)&&(r+=qme(i)))});e.vars=r}if(t instanceof gI)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 uit(t){let e;switch(t.kind){case v.Attribute:return e=1,t.expression instanceof Br&&!cit(t.expression)&&(e+=t.expression.expressions.length),e;case v.Property:case v.DomProperty:return e=1,t.expression instanceof Br&&(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 Br&&(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 qme(t){switch(t.kind){case Se.PureFunctionExpr:return 1+t.args.length;case Se.PipeBinding:return 1+t.args.length;case Se.PipeBindingVariadic:return 1+t.numArgs;case Se.StoreLet:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${t.constructor.name}`)}}function cit(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function lit(t){for(let e of t.units){lD(e.create),lD(e.update);for(let r of e.create)r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener?lD(r.handlerOps):r.kind===v.RepeaterCreate&&r.trackByOps!==null&&lD(r.trackByOps);dD(e.create,t.compatibility),dD(e.update,t.compatibility);for(let r of e.create)r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener?dD(r.handlerOps,t.compatibility):r.kind===v.RepeaterCreate&&r.trackByOps!==null&&dD(r.trackByOps,t.compatibility)}}var _n;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})(_n||(_n={}));function lD(t){let e=new Map;for(let r of t)r.kind===v.Variable&&r.flags&ro.AlwaysInline&&(Hn(r,n=>{if(cl(n)&&tH(n)!==_n.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(r.xref,r)),ln(r,n=>n instanceof Sd&&e.has(n.xref)?e.get(n.xref).initializer.clone():n,Ct.None);for(let r of e.values())L.remove(r)}function dD(t,e){let r=new Map,n=new Map,i=new Set,s=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)}s.set(c,dit(c)),fit(c,n,i)}let o=!1;for(let c of t.reversed()){let l=s.get(c);if(c.kind===v.Variable&&n.get(c.xref)===0){if(o&&l.fences&_n.ViewContextWrite||l.fences&_n.SideEffectful){let d=Bo(c.initializer.toStmt());s.set(d,l),L.replace(c,d)}else pit(c,n),L.remove(c);s.delete(c),r.delete(c.xref),n.delete(c.xref);continue}l.fences&_n.ViewContextRead&&(o=!0)}let a=[];for(let[c,l]of n){let f=!!(r.get(c).flags&ro.AlwaysInline);l!==1||f||i.has(c)||a.push(c)}let u;for(;u=a.pop();){let c=r.get(u),l=s.get(c);if(!!(c.flags&ro.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=s.get(f);if(p.variablesUsed.has(u)){if(e===Is.TemplateDefinitionBuilder&&!mit(c,f))break;if(hit(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),s.delete(c),L.remove(c)}break}if(!m0e(p.fences,l.fences))break}}}function tH(t){switch(t.kind){case Se.NextContext:return _n.ViewContextRead|_n.ViewContextWrite;case Se.RestoreView:return _n.ViewContextRead|_n.ViewContextWrite|_n.SideEffectful;case Se.StoreLet:return _n.SideEffectful;case Se.Reference:case Se.ContextLetReference:return _n.ViewContextRead;default:return _n.None}}function dit(t){let e=_n.None,r=new Set;return Hn(t,n=>{cl(n)&&(n.kind===Se.ReadVariable?r.add(n.xref):e|=tH(n))}),{fences:e,variablesUsed:r}}function fit(t,e,r){Hn(t,(n,i)=>{if(!cl(n)||n.kind!==Se.ReadVariable)return;let s=e.get(n.xref);s!==void 0&&(e.set(n.xref,s+1),i&Ct.InChildOperation&&r.add(n.xref))})}function pit(t,e){Hn(t,r=>{if(!cl(r)||r.kind!==Se.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&_n.ViewContextWrite){if(e&_n.ViewContextRead)return!1}else if(t&_n.ViewContextRead&&e&_n.ViewContextWrite)return!1;return!0}function hit(t,e,r,n){let i=!1,s=!0;return ln(r,(o,a)=>{if(!cl(o)||i||!s)return o;if(a&Ct.InChildOperation&&n&_n.ViewContextRead)return o;switch(o.kind){case Se.ReadVariable:if(o.xref===t)return i=!0,e;break;default:let u=tH(o);s=s&&m0e(u,n);break}return o},Ct.None),i}function mit(t,e){switch(t.variable.kind){case On.Identifier:return t.initializer instanceof Oa&&t.initializer.name==="ctx";case On.Context:return e.kind===v.Variable;default:return!0}}function git(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($M(n,i.message,void 0,null),i));break;case v.IcuEnd:n!==null&&(L.insertAfter(FM(n,null),i),n=null);break}}}var yit=[{kind:ue.Tmpl,fn:Gtt},{kind:ue.Both,fn:irt},{kind:ue.Host,fn:ret},{kind:ue.Tmpl,fn:Ctt},{kind:ue.Tmpl,fn:Xtt},{kind:ue.Tmpl,fn:git},{kind:ue.Both,fn:TJe},{kind:ue.Both,fn:tit},{kind:ue.Both,fn:uJe},{kind:ue.Both,fn:_Je},{kind:ue.Both,fn:sJe},{kind:ue.Tmpl,fn:SJe},{kind:ue.Both,fn:Ptt},{kind:ue.Tmpl,fn:Dnt},{kind:ue.Both,fn:dJe},{kind:ue.Both,fn:Htt},{kind:ue.Tmpl,fn:fJe},{kind:ue.Tmpl,fn:ztt},{kind:ue.Tmpl,fn:IJe},{kind:ue.Tmpl,fn:Ztt},{kind:ue.Both,fn:trt},{kind:ue.Tmpl,fn:ZJe},{kind:ue.Tmpl,fn:YJe},{kind:ue.Tmpl,fn:XJe},{kind:ue.Tmpl,fn:Wnt},{kind:ue.Both,fn:JXe},{kind:ue.Both,fn:Fnt},{kind:ue.Tmpl,fn:sit},{kind:ue.Tmpl,fn:Rnt},{kind:ue.Both,fn:Unt},{kind:ue.Tmpl,fn:wJe},{kind:ue.Tmpl,fn:oit},{kind:ue.Tmpl,fn:nit},{kind:ue.Both,fn:Lnt},{kind:ue.Both,fn:Gnt},{kind:ue.Tmpl,fn:Att},{kind:ue.Both,fn:PJe},{kind:ue.Both,fn:Znt},{kind:ue.Both,fn:rit},{kind:ue.Both,fn:lit},{kind:ue.Both,fn:Qnt},{kind:ue.Tmpl,fn:wtt},{kind:ue.Tmpl,fn:EJe},{kind:ue.Tmpl,fn:knt},{kind:ue.Tmpl,fn:nJe},{kind:ue.Tmpl,fn:tJe},{kind:ue.Tmpl,fn:znt},{kind:ue.Tmpl,fn:jnt},{kind:ue.Tmpl,fn:qnt},{kind:ue.Tmpl,fn:GJe},{kind:ue.Tmpl,fn:btt},{kind:ue.Tmpl,fn:eet},{kind:ue.Both,fn:gJe},{kind:ue.Tmpl,fn:Mnt},{kind:ue.Both,fn:ait},{kind:ue.Tmpl,fn:QJe},{kind:ue.Both,fn:Ntt},{kind:ue.Tmpl,fn:$nt},{kind:ue.Tmpl,fn:Rtt},{kind:ue.Tmpl,fn:Ltt},{kind:ue.Tmpl,fn:OJe},{kind:ue.Tmpl,fn:iJe},{kind:ue.Tmpl,fn:Ftt},{kind:ue.Both,fn:ert},{kind:ue.Both,fn:xnt},{kind:ue.Both,fn:lJe}];function g0e(t,e){for(let r of yit)(r.kind===e||r.kind===ue.Both)&&r.fn(t)}function vit(t,e){let r=v0e(t.root);return y0e(t.root,e),r}function y0e(t,e){for(let r of t.job.units){if(r.parent!==t.xref)continue;y0e(r,e);let n=v0e(r);e.statements.push(n.toDeclStmt(n.name))}}function v0e(t){if(t.fnName===null)throw new Error(`AssertionError: view ${t.xref} is unnamed`);let e=[];for(let s of t.create){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${v[s.kind]}`);e.push(s.statement)}let r=[];for(let s of t.update){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${v[s.kind]}`);r.push(s.statement)}let n=IM(1,e),i=IM(2,r);return Pp([new si("rf"),new si("ctx")],[...n,...i],void 0,void 0,t.fnName)}function IM(t,e){return e.length===0?[]:[DM(new Tt(H.BitwiseAnd,vt("rf"),C(t)),e)]}function _it(t){if(t.root.fnName===null)throw new Error("AssertionError: host binding function is unnamed");let e=[];for(let s of t.root.create){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${v[s.kind]}`);e.push(s.statement)}let r=[];for(let s of t.root.update){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${v[s.kind]}`);r.push(s.statement)}if(e.length===0&&r.length===0)return null;let n=IM(1,e),i=IM(2,r);return Pp([new si("rf"),new si("ctx")],[...n,...i],void 0,void 0,t.root.fnName)}var _0e=Is.TemplateDefinitionBuilder,Gg=new sb,Wg="ng-template",bit="animate.";function _D(t){return t instanceof Ki}function Eit(t){return _D(t)&&t.nodes.length===1&&t.nodes[0]instanceof QD}function Sit(t,e,r,n,i,s,o,a,u,c){let l=new gI(t,r,_0e,n,i,s,o,a,u,c);return wd(l.root,e),l}function Tit(t,e,r){let n=new lM(t.componentName,r,_0e,Gi.DomOnly);for(let i of t.properties??[]){let s=ge.Property;i.name.startsWith("attr.")&&(i.name=i.name.substring(5),s=ge.Attribute),i.isLegacyAnimation&&(s=ge.LegacyAnimation),i.isAnimation&&(s=ge.Animation);let o=e.calcPossibleSecurityContexts(t.componentSelector,i.name,s===ge.Attribute).filter(a=>a!==rr.NONE);Iit(n,i,s,o)}for(let[i,s]of Object.entries(t.attributes)??[]){let o=e.calcPossibleSecurityContexts(t.componentSelector,i,!0).filter(a=>a!==rr.NONE);wit(n,i,s,o)}for(let i of t.events??[])Ait(n,i);return n}function Iit(t,e,r,n){let i,s=e.expression.ast;s instanceof AI?i=new Br(s.strings,s.expressions.map(o=>st(o,t,e.sourceSpan)),[]):i=st(s,t,e.sourceSpan),t.root.update.push(s0(t.root.xref,r,e.name,i,null,n,!1,!1,null,null,e.sourceSpan))}function wit(t,e,r,n){let i=s0(t.root.xref,ge.Attribute,e,r,null,n,!0,!1,null,null,r.sourceSpan);t.root.update.push(i)}function Ait(t,e){let r;if(e.type===Ii.Animation)r=Gge(t.root.xref,new ci,e.name,null,EI(t.root,e.handler,e.handlerSpan),e.name.endsWith("enter")?"enter":"leave",e.targetOrPhase,!0,e.sourceSpan);else{let[n,i]=e.type!==Ii.LegacyAnimation?[null,e.targetOrPhase]:[e.targetOrPhase,null];r=ZV(t.root.xref,new ci,e.name,null,EI(t.root,e.handler,e.handlerSpan),n,i,!0,e.sourceSpan)}t.root.create.push(r)}function wd(t,e){for(let r of e)if(r instanceof al)xit(t,r);else if(r instanceof so)Cit(t,r);else if(r instanceof X_)Oit(t,r);else if(r instanceof jg)b0e(t,r,null);else if(r instanceof Q_)E0e(t,r,null);else if(r instanceof KD)Pit(t,r);else if(r instanceof WD)Nit(t,r);else if(r instanceof t0)Dit(t,r);else if(r instanceof gge)Rit(t,r);else if(r instanceof Z_)kit(t,r);else if(r instanceof qV)$it(t,r);else if(!(r instanceof TT))throw new Error(`Unsupported template node: ${r.constructor.name}`)}function xit(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof Ki||e.i18n instanceof Dp))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let r=t.job.allocateXrefId(),[n,i]=Da(e.name),s=RXe(i,r,Xge(n),e.i18n instanceof Dp?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(s),jit(t,s,e),I0e(s,e);let o=null;e.i18n instanceof Ki&&(o=t.job.allocateXrefId(),t.create.push($M(o,e.i18n,void 0,e.startSourceSpan))),wd(t,e.children);let a=LXe(r,e.endSourceSpan??e.startSourceSpan);t.create.push(a);let u=e.inputs.find(c=>c.name==="formField"&&c.type===It.Property);u&&t.create.push(ZXe(u.sourceSpan)),o!==null&&L.insertBefore(FM(o,e.endSourceSpan??e.startSourceSpan),a)}function Cit(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof Ki||e.i18n instanceof Dp))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]=Da(e.tagName));let s=e.i18n instanceof Dp?e.i18n:void 0,o=Xge(i),a=n===null?"":mJe(n,o),u=Fit(e)?zi.NgTemplate:zi.Structural,c=Bge(r.xref,u,n,a,o,s,e.startSourceSpan,e.sourceSpan);t.create.push(c),qit(t,c,e,u),I0e(c,e),wd(r,e.children);for(let{name:l,value:d}of e.variables)r.contextVariables.set(l,d!==""?d:"$implicit");if(u===zi.NgTemplate&&e.i18n instanceof Ki){let l=t.job.allocateXrefId();L.insertAfter($M(l,e.i18n,void 0,e.startSourceSpan),r.create.head),L.insertBefore(FM(l,e.endSourceSpan??e.startSourceSpan),r.create.tail)}}function Oit(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof Dp))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let r=null;e.children.some(s=>!(s instanceof RM)&&(!(s instanceof jg)||s.value.trim().length>0))&&(r=t.job.allocateView(t.xref),wd(r,e.children));let n=t.job.allocateXrefId(),i=VXe(n,e.selector,e.i18n,r?.xref??null,e.sourceSpan);for(let s of e.attributes){let o=Gg.securityContext(e.name,s.name,!0);t.update.push(s0(i.xref,ge.Attribute,s.name,C(s.value),null,o,!0,!1,null,bd(s.i18n),s.sourceSpan))}t.create.push(i)}function b0e(t,e,r){t.create.push(Hge(t.job.allocateXrefId(),e.value,r,e.sourceSpan))}function E0e(t,e,r){let n=e.value;if(n instanceof bs&&(n=n.ast),!(n instanceof AI))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${n.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof Ed))throw Error(`Unhandled i18n metadata type for text interpolation: ${e.i18n?.constructor.name}`);let i=e.i18n instanceof Ed?e.i18n.children.filter(a=>a instanceof rI).map(a=>a.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 s=t.job.allocateXrefId();t.create.push(Hge(s,"",r,e.sourceSpan));let o=t.job.compatibility?null:e.sourceSpan;t.update.push(bXe(s,new Br(n.strings,n.expressions.map(a=>st(a,t.job,o)),i),e.sourceSpan))}function Pit(t,e){let r=null,n=[];for(let i=0;i<e.branches.length;i++){let s=e.branches[i],o=t.job.allocateView(t.xref),a=wM(t,o.xref,s);s.expressionAlias!==null&&o.contextVariables.set(s.expressionAlias.name,Qge);let u;if(s.i18n!==void 0){if(!(s.i18n instanceof Mp))throw Error(`Unhandled i18n metadata type for if block: ${s.i18n?.constructor.name}`);u=s.i18n}let l=(i===0?Uge:Vge)(o.xref,zi.Block,a,"Conditional",ii.HTML,u,s.startSourceSpan,s.sourceSpan);t.create.push(l),r===null&&(r=o.xref);let d=s.expression?st(s.expression,t.job,null):null,f=new oM(d,l.xref,l.handle,s.expressionAlias);n.push(f),wd(o,s.children)}t.update.push(Fge(r,null,n,e.sourceSpan))}function Nit(t,e){if(e.groups.length===0)return;let r=null,n=[];for(let i=0;i<e.groups.length;i++){let s=e.groups[i],o=t.job.allocateView(t.xref),a=wM(t,o.xref,s),u;if(s.i18n!==void 0){if(!(s.i18n instanceof Mp))throw Error(`Unhandled i18n metadata type for switch block: ${s.i18n?.constructor.name}`);u=s.i18n}let l=(i===0?Uge:Vge)(o.xref,zi.Block,a,"Case",ii.HTML,u,s.startSourceSpan,s.sourceSpan);t.create.push(l),r===null&&(r=o.xref);for(let d of s.cases){let f=d.expression?st(d.expression,t.job,e.startSourceSpan):null,p=new oM(f,l.xref,l.handle);n.push(p)}wd(o,s.children)}t.update.push(Fge(r,st(e.expression,t.job,null),n,e.sourceSpan))}function fD(t,e,r,n,i){if(r!==void 0&&!(r instanceof Mp))throw Error("Unhandled i18n metadata type for defer block");if(n===void 0)return null;let s=t.job.allocateView(t.xref);wd(s,n);let o=Bge(s.xref,zi.Block,null,`Defer${e}`,ii.HTML,r,i,i);return t.create.push(o),o}function Dit(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=fD(t,"",e.i18n,e.children,e.sourceSpan),i=fD(t,"Loading",e.loading?.i18n,e.loading?.children,e.loading?.sourceSpan),s=fD(t,"Placeholder",e.placeholder?.i18n,e.placeholder?.children,e.placeholder?.sourceSpan),o=fD(t,"Error",e.error?.i18n,e.error?.children,e.error?.sourceSpan),a=t.job.allocateXrefId(),u=HXe(a,n.xref,n.handle,r,t.job.allDeferrableDepsFn,e.sourceSpan);u.placeholderView=s?.xref??null,u.placeholderSlot=s?.handle??null,u.loadingSlot=i?.handle??null,u.errorSlot=o?.handle??null,u.placeholderMinimumTime=e.placeholder?.minimumTime??null,u.loadingMinimumTime=e.loading?.minimumTime??null,u.loadingAfterTime=e.loading?.afterTime??null,u.flags=Mit(e),t.create.push(u);let c=[],l=[];XB("hydrate",e.hydrateTriggers,c,l,t,a),XB("none",e.triggers,c,l,t,a),XB("prefetch",e.prefetchTriggers,c,l,t,a),c.some(f=>f.modifier==="none")||l.some(f=>f.modifier==="none")||c.push(Ep(a,{kind:tr.Idle},"none",null)),t.create.push(c),t.update.push(l)}function Mit(t){return Object.keys(t.hydrateTriggers).length>0?1:null}function XB(t,e,r,n,i,s){if(e.idle!==void 0){let o=Ep(s,{kind:tr.Idle},t,e.idle.sourceSpan);r.push(o)}if(e.immediate!==void 0){let o=Ep(s,{kind:tr.Immediate},t,e.immediate.sourceSpan);r.push(o)}if(e.timer!==void 0){let o=Ep(s,{kind:tr.Timer,delay:e.timer.delay},t,e.timer.sourceSpan);r.push(o)}if(e.hover!==void 0){let o=Ep(s,{kind:tr.Hover,targetName:e.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.hover.sourceSpan);r.push(o)}if(e.interaction!==void 0){let o=Ep(s,{kind:tr.Interaction,targetName:e.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.interaction.sourceSpan);r.push(o)}if(e.viewport!==void 0){let o=Ep(s,{kind:tr.Viewport,targetName:e.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null,options:e.viewport.options?st(e.viewport.options,i.job,e.viewport.sourceSpan):null},t,e.viewport.sourceSpan);r.push(o)}if(e.never!==void 0){let o=Ep(s,{kind:tr.Never},t,e.never.sourceSpan);r.push(o)}if(e.when!==void 0){if(e.when.value instanceof AI)throw new Error("Unexpected interpolation in defer block when trigger");let o=OXe(s,st(e.when.value,i.job,e.when.sourceSpan),t,e.when.sourceSpan);n.push(o)}}function Rit(t,e){if(e.i18n instanceof Ki&&Eit(e.i18n)){let r=t.job.allocateXrefId();t.create.push(KXe(r,e.i18n,_ge(e.i18n).name,null));for(let[n,i]of Object.entries({...e.vars,...e.placeholders}))i instanceof Q_?E0e(t,i,n):b0e(t,i,n);t.create.push(zXe(r))}else throw Error(`Unhandled i18n metadata type for ICU: ${e.i18n?.constructor.name}`)}function kit(t,e){let r=t.job.allocateView(t.xref),n=`\u0275$index_${r.xref}`,i=`\u0275$count_${r.xref}`,s=new Set;r.contextVariables.set(e.item.name,e.item.value);for(let _ of e.contextVariables)_.value==="$index"&&s.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:On.Alias,name:null,identifier:_.name,expression:Lit(_,n,i)});let o=xn(e.trackBy.span,e.sourceSpan),a=st(e.trackBy,t.job,o);wd(r,e.children);let u=null,c=null;e.empty!==null&&(u=t.job.allocateView(t.xref),wd(u,e.empty.children),c=wM(t,u.xref,e.empty));let l={$index:s,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof Mp))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(e.empty?.i18n!==void 0&&!(e.empty.i18n instanceof Mp))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let d=e.i18n,f=e.empty?.i18n,p=wM(t,r.xref,e),m=kXe(r.xref,u?.xref??null,p,a,l,c,d,f,e.startSourceSpan,e.sourceSpan);t.create.push(m);let g=st(e.expression,t.job,xn(e.expression.span,e.sourceSpan)),y=CXe(m.xref,m.handle,g,e.sourceSpan);t.update.push(y)}function Lit(t,e,r){switch(t.value){case"$index":return new ri(e);case"$count":return new ri(r);case"$first":return new ri(e).identical(C(0));case"$last":return new ri(e).identical(new ri(r).minus(C(1)));case"$even":return new ri(e).modulo(C(2)).identical(C(0));case"$odd":return new ri(e).modulo(C(2)).notIdentical(C(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function $it(t,e){let r=t.job.allocateXrefId();t.create.push(GXe(r,e.name,e.sourceSpan)),t.update.push(NXe(r,e.name,st(e.value,t.job,e.valueSpan),e.sourceSpan))}function st(t,e,r){if(t instanceof bs)return st(t.ast,e,r);if(t instanceof Xc)return t.receiver instanceof ol?new ri(t.name):new ao(st(t.receiver,e,r),t.name,null,xn(t.span,r));if(t instanceof K_){if(t.receiver instanceof ol)throw new Error("Unexpected ImplicitReceiver");return new Ts(st(t.receiver,e,r),t.args.map(n=>st(n,e,r)),void 0,xn(t.span,r))}else{if(t instanceof _s)return C(t.value,void 0,xn(t.span,r));if(t instanceof F_)switch(t.operator){case"+":return new Qg(B_.Plus,st(t.expr,e,r),void 0,xn(t.span,r));case"-":return new Qg(B_.Minus,st(t.expr,e,r),void 0,xn(t.span,r));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof Hi){let n=pJe.get(t.operation);if(n===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new Tt(n,st(t.left,e,r),st(t.right,e,r),void 0,xn(t.span,r))}else{if(t instanceof LT)return new Lp(e.root.xref);if(t instanceof Jg)return new Td(st(t.receiver,e,r),st(t.key,e,r),void 0,xn(t.span,r));if(t instanceof W_)throw new Error("AssertionError: Chain in unknown context");if(t instanceof e0){let n=t.keys.map((i,s)=>{let o=st(t.values[s],e,r);return i.kind==="spread"?new Op(o):new H_(i.key,o,i.quoted)});return new Na(n,void 0,xn(t.span,r))}else{if(t instanceof jT)return new il(t.expressions.map(n=>st(n,e,r)));if(t instanceof kD)return new nl(st(t.condition,e,r),st(t.trueExp,e,r),st(t.falseExp,e,r),void 0,xn(t.span,r));if(t instanceof VT)return st(t.expression,e,r);if(t instanceof LD)return new a0(e.allocateXrefId(),new ci,t.name,[st(t.exp,e,r),...t.args.map(n=>st(n,e,r))]);if(t instanceof FT)return new rb(st(t.receiver,e,r),st(t.key,e,r),xn(t.span,r));if(t instanceof $T)return new tb(st(t.receiver,e,r),t.name);if(t instanceof FD)return new u0(st(t.receiver,e,r),t.args.map(n=>st(n,e,r)));if(t instanceof Vi)return new hI(xn(t.span,r));if(t instanceof qT)return MYe(st(t.expression,e,r),xn(t.span,r));if(t instanceof BT)return wI(st(t.expression,e,r));if(t instanceof UT)return new xD(st(t.expression,e,r),void 0,xn(t.span,r));if(t instanceof GT)return Bme(t,e,r);if(t instanceof HT)return new CT(st(t.tag,e,r),Bme(t.template,e,r),void 0,xn(t.span,r));if(t instanceof WT)return new Pa(st(t.expression,e,r),void 0,xn(t.span,r));if(t instanceof qD)return new V_(t.body,t.flags,r);if(t instanceof $D)return new Yg(st(t.expression,e,r));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${r?.start.file.url}"`)}}}}function Bme(t,e,r){return new PT(t.elements.map(n=>new CD(n.text,xn(n.span,r))),t.expressions.map(n=>st(n,e,r)),xn(t.span,r))}function gV(t,e,r,n){let i;return e instanceof AI?i=new Br(e.strings,e.expressions.map(s=>st(s,t,null)),Object.keys(bd(r)?.placeholders??{})):e instanceof hr?i=st(e,t,null):i=C(e),i}var S0e=new Map([[It.Property,ge.Property],[It.TwoWay,ge.TwoWayProperty],[It.Attribute,ge.Attribute],[It.Class,ge.ClassName],[It.Style,ge.StyleProperty],[It.LegacyAnimation,ge.LegacyAnimation],[It.Animation,ge.Animation]]);function Fit(t){return Da(t.tagName??"")[1]===Wg}function bd(t){if(t==null)return null;if(!(t instanceof Ki))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function jit(t,e,r){let n=new Array,i=new Set;for(let s of r.attributes){let o=Gg.securityContext(r.name,s.name,!0);n.push(s0(e.xref,ge.Attribute,s.name,gV(t.job,s.value,s.i18n),null,o,!0,!1,null,bd(s.i18n),s.sourceSpan)),s.i18n&&i.add(s.name)}for(let s of r.inputs)i.has(s.name)&&console.error(`On component ${t.job.componentName}, the binding ${s.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(s0(e.xref,S0e.get(s.type),s.name,gV(t.job,SI(s.value),s.i18n),s.unit,s.securityContext,!1,!1,null,bd(s.i18n)??null,s.sourceSpan));t.create.push(n.filter(s=>s?.kind===v.ExtractedAttribute)),t.update.push(n.filter(s=>s?.kind===v.Binding));for(let s of r.outputs){if(s.type===Ii.LegacyAnimation&&s.phase===null)throw Error("Animation listener should have a phase");s.type===Ii.TwoWay?t.create.push(Wge(e.xref,e.handle,s.name,e.tag,T0e(t,s.handler,s.handlerSpan),s.sourceSpan)):s.type===Ii.Animation?t.create.push(Gge(e.xref,e.handle,s.name,e.tag,EI(t,s.handler,s.handlerSpan),s.name.endsWith("enter")?"enter":"leave",s.target,!1,s.sourceSpan)):t.create.push(ZV(e.xref,e.handle,s.name,e.tag,EI(t,s.handler,s.handlerSpan),s.phase,s.target,!1,s.sourceSpan))}n.some(s=>s?.i18nMessage)!==null&&t.create.push(zge(t.job.allocateXrefId(),new ci,e.xref))}function qit(t,e,r,n){let i=new Array;for(let s of r.templateAttrs)if(s instanceof Y_){let o=Gg.securityContext(Wg,s.name,!0);i.push(pD(t,e.xref,It.Attribute,s.name,s.value,null,o,!0,n,bd(s.i18n),s.sourceSpan))}else i.push(pD(t,e.xref,s.type,s.name,SI(s.value),s.unit,s.securityContext,!0,n,bd(s.i18n),s.sourceSpan));for(let s of r.attributes){let o=Gg.securityContext(Wg,s.name,!0);i.push(pD(t,e.xref,It.Attribute,s.name,s.value,null,o,!1,n,bd(s.i18n),s.sourceSpan))}for(let s of r.inputs)i.push(pD(t,e.xref,s.type,s.name,SI(s.value),s.unit,s.securityContext,!1,n,bd(s.i18n),s.sourceSpan));t.create.push(i.filter(s=>s?.kind===v.ExtractedAttribute)),t.update.push(i.filter(s=>s?.kind===v.Binding));for(let s of r.outputs){if(s.type===Ii.LegacyAnimation&&s.phase===null)throw Error("Animation listener should have a phase");if(n===zi.NgTemplate&&(s.type===Ii.TwoWay?t.create.push(Wge(e.xref,e.handle,s.name,e.tag,T0e(t,s.handler,s.handlerSpan),s.sourceSpan)):t.create.push(ZV(e.xref,e.handle,s.name,e.tag,EI(t,s.handler,s.handlerSpan),s.phase,s.target,!1,s.sourceSpan))),n===zi.Structural&&s.type!==Ii.LegacyAnimation){let o=Gg.securityContext(Wg,s.name,!1);t.create.push(eo(e.xref,ge.Property,null,s.name,null,null,null,o))}}i.some(s=>s?.i18nMessage)!==null&&t.create.push(zge(t.job.allocateXrefId(),new ci,e.xref))}function pD(t,e,r,n,i,s,o,a,u,c,l){let d=typeof i=="string";if(u===zi.Structural){if(!a)switch(r){case It.Property:case It.Class:case It.Style:return eo(e,ge.Property,null,n,null,null,c,o);case It.TwoWay:return eo(e,ge.TwoWayProperty,null,n,null,null,c,o)}if(!d&&(r===It.Attribute||r===It.LegacyAnimation||r===It.Animation))return null}let f=S0e.get(r);return u===zi.NgTemplate&&(r===It.Class||r===It.Style||r===It.Attribute&&!d)&&(f=ge.Property),s0(e,f,n,gV(t.job,i,c),s,o,d,a,u,c,l)}function EI(t,e,r){e=SI(e);let n=new Array,i=e instanceof W_?e.expressions:[e];if(i.length===0)throw new Error("Expected listener to have non-empty expression list.");let s=i.map(a=>st(a,t.job,r)),o=s.pop();return n.push(...s.map(a=>Bo(new wi(a,a.sourceSpan)))),n.push(Bo(new oi(o,o.sourceSpan))),n}function T0e(t,e,r){e=SI(e);let n=new Array;if(e instanceof W_)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let i=st(e,t.job,r),s=new ri("$event"),o=new iM(i,s);return n.push(Bo(new wi(o))),n.push(Bo(new oi(s))),n}function SI(t){return t instanceof bs?t.ast:t}function I0e(t,e){Bit(t.localRefs);for(let{name:r,value:n}of e.references)t.localRefs.push({name:r,target:n})}function Bit(t){if(!Array.isArray(t))throw new Error("AssertionError: expected an array")}function xn(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 je(r,n,i)}function wM(t,e,r){let n=null;for(let i of r.children)if(!(i instanceof RM||i instanceof qV)){if(n!==null)return null;if(i instanceof al||i instanceof so&&i.tagName!==null)n=i;else return null}if(n!==null){for(let s of n.attributes)if(!s.name.startsWith(bit)){let o=Gg.securityContext(Wg,s.name,!0);t.update.push(s0(e,ge.Attribute,s.name,C(s.value),null,o,!0,!1,null,bd(s.i18n),s.sourceSpan))}for(let s of n.inputs)if(s.type!==It.LegacyAnimation&&s.type!==It.Animation&&s.type!==It.Attribute){let o=Gg.securityContext(Wg,s.name,!0);t.create.push(eo(e,ge.Property,null,s.name,null,null,null,o))}let i=n instanceof al?n.name:n.tagName;return i===Wg?null:i}return null}var Uit=!1;function Vit(){return Uit}function AM(t,e){return DM(vt(VV).bitwiseAnd(C(t),null),e)}function Hit(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function Git(t,e){if(Array.isArray(t.predicate)){let r=[];return t.predicate.forEach(n=>{let i=n.split(",").map(s=>C(s.trim()));r.push(...i)}),e.getConstLiteral(nr(r),!0)}else switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return Ee(T.resolveForwardRef).callFn([t.predicate.expression])}}function w0e(t,e,r){let n=[];return r!==void 0&&n.push(...r),t.isSignal&&n.push(new ao(vt(nI),t.propertyName)),n.push(Git(t,e),C(Hit(t))),t.read&&n.push(t.read),n}var rH=Symbol("queryAdvancePlaceholder");function A0e(t){let e=[],r=0,n=()=>{r>0&&(e.unshift(Ee(T.queryAdvance).callFn(r===1?[]:[C(r)]).toStmt()),r=0)};for(let i=t.length-1;i>=0;i--){let s=t[i];s===rH?r++:(n(),e.unshift(s))}return n(),e}function Wit(t,e,r){let n=[],i=[],s=bge(c=>i.push(c),UV),o=null,a=null;t.forEach(c=>{let l=w0e(c,e);if(c.isSignal?(o??=Ee(T.viewQuerySignal),o=o.callFn(l)):(a??=Ee(T.viewQuery),a=a.callFn(l)),c.isSignal){i.push(rH);return}let d=s(),f=Ee(T.loadQuery).callFn([]),p=Ee(T.queryRefresh).callFn([d.set(f)]),m=vt(nI).prop(c.propertyName).set(c.first?d.prop("first"):d);i.push(p.and(m).toStmt())}),o!==null&&n.push(new wi(o)),a!==null&&n.push(new wi(a));let u=r?`${r}_Query`:null;return Pp([new si(VV,$V),new si(nI,null)],[AM(1,n),AM(2,A0e(i))],Ca,null,u)}function Kit(t,e,r){let n=[],i=[],s=bge(c=>i.push(c),UV),o=null,a=null;for(let c of t){let l=w0e(c,e,[vt("dirIndex")]);if(c.isSignal?(o??=Ee(T.contentQuerySignal),o=o.callFn(l)):(a??=Ee(T.contentQuery),a=a.callFn(l)),c.isSignal){i.push(rH);continue}let d=s(),f=Ee(T.loadQuery).callFn([]),p=Ee(T.queryRefresh).callFn([d.set(f)]),m=vt(nI).prop(c.propertyName).set(c.first?d.prop("first"):d);i.push(p.and(m).toStmt())}o!==null&&n.push(new wi(o)),a!==null&&n.push(new wi(a));let u=r?`${r}_ContentQueries`:null;return Pp([new si(VV,$V),new si(nI,null),new si("dirIndex",null)],[AM(1,n),AM(2,A0e(i))],Ca,null,u)}var yV=class extends vet{constructor(){super(cV)}parse(e,r,n){return super.parse(e,r,n)}},hD=".",zit="attr",JB="animate",Qit="class",Yit="style",Zit="*",eU="animate-",vV=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 s=e[i];typeof s=="string"?this.parsePropertyBinding(i,s,!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 "${s}" (${typeof s})`,r)}return n}createDirectiveHostEventAsts(e,r){let n=[];for(let i of Object.keys(e)){let s=e[i];typeof s=="string"?this.parseEvent(i,s,!1,r,r,[],n,r):this._reportError(`Value of the host listener "${i}" needs to be a string representing an expression but got "${s}" (${typeof s})`,r)}return n}parseInterpolation(e,r,n){let i=r.fullStart.offset;try{let s=this._exprParser.parseInterpolation(e,r,i,n);return s&&this.errors.push(...s.errors),s}catch(s){return this._reportError(`${s}`,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,s,o,a,u){let c=n.start.offset+Zit.length,l=this._parseTemplateBindings(e,r,n,c,i);for(let d of l){let f=_p(n,d.sourceSpan),p=d.key.source,m=_p(n,d.key.span);if(d instanceof KT){let g=d.value?d.value.source:"$implicit",y=d.value?_p(n,d.value.span):void 0;a.push(new EU(p,g,f,m,y))}else if(d.value){let g=u?f:n,y=_p(n,d.value.ast.sourceSpan);this._parsePropertyAst(p,d.value,!1,g,m,y,s,o)}else s.push([p,""]),this.parseLiteralAttr(p,null,m,i,void 0,s,o,m)}}_parseTemplateBindings(e,r,n,i,s){try{let o=this._exprParser.parseTemplateBindings(e,r,n,i,s);return o.errors.forEach(a=>this.errors.push(a)),o.warnings.forEach(a=>{this._reportError(a,n,vd.WARNING)}),o.templateBindings}catch(o){return this._reportError(`${o}`,n),[]}}parseLiteralAttr(e,r,n,i,s,o,a,u){tU(e)?(e=e.substring(1),u!==void 0&&(u=_p(u,new no(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,vd.ERROR),this._parseLegacyAnimation(e,r,n,i,u,s,o,a)):a.push(new N_(e,this._exprParser.wrapLiteralPrimitive(r,"",i),Ia.LITERAL_ATTR,n,u,s))}parsePropertyBinding(e,r,n,i,s,o,a,u,c,l){e.length===0&&this._reportError("Property name is missing in binding",s);let d=!1;e.startsWith(eU)?(d=!0,e=e.substring(eU.length),l!==void 0&&(l=_p(l,new no(l.start.offset+eU.length,l.end.offset)))):tU(e)&&(d=!0,e=e.substring(1),l!==void 0&&(l=_p(l,new no(l.start.offset+1,l.end.offset)))),d?this._parseLegacyAnimation(e,r,s,o,l,a,u,c):e.startsWith(`${JB}${hD}`)?this._parseAnimation(e,this.parseBinding(r,n,a||s,o),s,l,a,u,c):this._parsePropertyAst(e,this.parseBinding(r,n,a||s,o),i,s,l,a,u,c)}parsePropertyInterpolation(e,r,n,i,s,o,a,u){let c=this.parseInterpolation(r,i||n,u);return c?(this._parsePropertyAst(e,c,!1,n,a,i,s,o),!0):!1}_parsePropertyAst(e,r,n,i,s,o,a,u){a.push([e,r.source]),u.push(new N_(e,r,n?Ia.TWO_WAY:Ia.DEFAULT,i,s,o))}_parseAnimation(e,r,n,i,s,o,a){o.push([e,r.source]),a.push(new N_(e,r,Ia.ANIMATION,n,i,s))}_parseLegacyAnimation(e,r,n,i,s,o,a,u){e.length===0&&this._reportError("Animation trigger is missing",n);let c=this.parseBinding(r||"undefined",!1,o||n,i);a.push([e,c.source]),u.push(new N_(e,c,Ia.LEGACY_ANIMATION,n,s,o))}parseBinding(e,r,n,i){try{let s=r?this._exprParser.parseSimpleBinding(e,n,i):this._exprParser.parseBinding(e,n,i);return s&&this.errors.push(...s.errors),s}catch(s){return this._reportError(`${s}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,i)}}createBoundElementProperty(e,r,n=!1,i=!0){if(r.isLegacyAnimation)return new UD(r.name,It.LegacyAnimation,rr.NONE,r.expression,null,r.sourceSpan,r.keySpan,r.valueSpan);let s=null,o,a=null,u=r.name.split(hD),c;if(u.length>1)if(u[0]==zit){a=u.slice(1).join(hD),n||this._validatePropertyOrAttributeName(a,r.sourceSpan,!0),c=rU(this._schemaRegistry,e,a,!0);let l=a.indexOf(":");if(l>-1){let d=a.substring(0,l),f=a.substring(l+1);a=gD(d,f)}o=It.Attribute}else u[0]==Qit?(a=u[1],o=It.Class,c=[rr.NONE]):u[0]==Yit?(s=u.length>2?u[2]:null,a=u[1],o=It.Style,c=[rr.STYLE]):u[0]==JB&&(a=r.name,o=It.Animation,c=[rr.NONE]);if(a===null){let l=this._schemaRegistry.getMappedPropName(r.name);a=i?l:r.name,c=rU(this._schemaRegistry,e,l,!1),o=r.type===Ia.TWO_WAY?It.TwoWay:It.Property,n||this._validatePropertyOrAttributeName(l,r.sourceSpan,!1)}return new UD(a,o,c[0],r.expression,s,r.sourceSpan,r.keySpan,r.valueSpan)}parseEvent(e,r,n,i,s,o,a,u){e.length===0&&this._reportError("Event name is missing in binding",i),tU(e)?(e=e.slice(1),u!==void 0&&(u=_p(u,new no(u.start.offset+1,u.end.offset))),this._parseLegacyAnimationEvent(e,r,i,s,a,u)):this._parseRegularEvent(e,r,n,i,s,o,a,u)}calcPossibleSecurityContexts(e,r,n){let i=this._schemaRegistry.getMappedPropName(r);return rU(this._schemaRegistry,e,i,n)}parseEventListenerName(e){let[r,n]=UYe(e,[null,e]);return{eventName:n,target:r}}parseLegacyAnimationEventName(e){let r=VYe(e,[e,null]);return{eventName:r[0],phase:r[1]===null?null:r[1].toLowerCase()}}_parseLegacyAnimationEvent(e,r,n,i,s,o){let{eventName:a,phase:u}=this.parseLegacyAnimationEventName(e),c=this._parseAction(r,i);s.push(new BD(a,u,Ii.LegacyAnimation,c,n,i,o)),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,s,o,a,u){let{eventName:c,target:l}=this.parseEventListenerName(e),d=this.errors.length,f=this._parseAction(r,s),p=this.errors.length===d;o.push([e,f.source]),n&&p&&!this._isAllowedAssignmentEvent(f)&&this._reportError("Unsupported expression in a two-way binding",i);let m=Ii.Regular;n&&(m=Ii.TwoWay),e.startsWith(`${JB}${hD}`)&&(m=Ii.Animation),a.push(new BD(c,l,m,f,i,s,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 Vi?(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=vd.ERROR){this.errors.push(new Re(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,vd.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof bs?this._isAllowedAssignmentEvent(e.ast):e instanceof VT?this._isAllowedAssignmentEvent(e.expression):e instanceof K_&&e.args.length===1&&e.receiver instanceof Xc&&e.receiver.name==="$any"&&e.receiver.receiver instanceof ol?this._isAllowedAssignmentEvent(e.args[0]):(e instanceof Xc||e instanceof Jg)&&!_V(e)}};function _V(t){return t instanceof $T||t instanceof FT?!0:t instanceof WT?_V(t.expression):t instanceof Xc||t instanceof Jg||t instanceof K_?_V(t.receiver):!1}function tU(t){return t[0]=="@"}function rU(t,e,r,n){let i,s=o=>t.securityContext(o,r,n);return e===null?i=t.allKnownElementNames().map(s):(i=[],q_.parse(e).forEach(o=>{let a=o.element?[o.element]:t.allKnownElementNames(),u=new Set(o.notSelectors.filter(l=>l.isElementSelector()).map(l=>l.element)),c=a.filter(l=>!u.has(l));i.push(...c.map(s))})),i.length===0?[rr.NONE]:Array.from(new Set(i)).sort()}function _p(t,e){let r=e.start-t.start.offset,n=e.end-t.end.offset;return new je(t.start.moveBy(r),t.end.moveBy(n),t.fullStart.moveBy(r),t.details)}function Xit(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(Jit);return e===null||e[1]=="package"||e[1]=="asset"}var Jit=/^([^:/?#]+):/,est="select",tst="link",rst="rel",nst="href",ist="stylesheet",sst="style",ost="script",ast="ngNonBindable",ust="ngProjectAs";function x0e(t){let e=null,r=null,n=null,i=!1,s="";t.attrs.forEach(u=>{let c=u.name.toLowerCase();c==est?e=u.value:c==nst?r=u.value:c==rst?n=u.value:u.name==ast?i=!0:u.name==ust&&u.value.length>0&&(s=u.value)}),e=cst(e);let o=t.name.toLowerCase(),a=Es.OTHER;return SU(o)?a=Es.NG_CONTENT:o==sst?a=Es.STYLE:o==ost?a=Es.SCRIPT:o==tst&&n==ist&&(a=Es.STYLESHEET),new bV(a,e,r,i,s)}var Es;(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"})(Es||(Es={}));var bV=class{type;selectAttr;hrefAttr;nonBindable;projectAs;constructor(e,r,n,i,s){this.type=e,this.selectAttr=r,this.hrefAttr=n,this.nonBindable=i,this.projectAs=s}};function cst(t){return t===null||t.length===0?"*":t}var lst=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,dst=/^track\s+([\S\s]*)/,fst=/^(as\s+)(.*)/,jM=/^else[^\S\r\n]+if/,pst=/^let\s+([\S\s]*)/,hst=/^[$A-Z_][0-9A-Z_$]*$/i,Ume=/(\s*)(\S+)(\s*)/,xT=new Set(["$index","$first","$last","$even","$odd","$count"]);function Vme(t){return t==="empty"}function Hme(t){return t==="else"||jM.test(t)}function mst(t,e,r,n){let i=Est(e),s=[],o=Gme(t,i,n);o!==null&&s.push(new Bg(o.expression,Sr(r,t.children,t.children),o.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let d of e)if(jM.test(d.name)){let f=Gme(d,i,n);if(f!==null){let p=Sr(r,d.children,d.children);s.push(new Bg(f.expression,p,f.expressionAlias,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}}else if(d.name==="else"){let f=Sr(r,d.children,d.children);s.push(new Bg(null,f,null,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}let a=s.length>0?s[0].startSourceSpan:t.startSourceSpan,u=s.length>0?s[s.length-1].endSourceSpan:t.endSourceSpan,c=t.sourceSpan,l=s[s.length-1];return l!==void 0&&(c=new je(a.start,l.sourceSpan.end)),{node:new KD(s,c,t.startSourceSpan,u,t.nameSpan),errors:i}}function gst(t,e,r,n){let i=[],s=vst(t,i,n),o=null,a=null;for(let u of e)u.name==="empty"?a!==null?i.push(new Re(u.sourceSpan,"@for loop can only have one @empty block")):u.parameters.length>0?i.push(new Re(u.sourceSpan,"@empty block cannot have parameters")):a=new JT(Sr(r,u.children,u.children),u.sourceSpan,u.startSourceSpan,u.endSourceSpan,u.nameSpan,u.i18n):i.push(new Re(u.sourceSpan,`Unrecognized @for loop block "${u.name}"`));if(s!==null)if(s.trackBy===null)i.push(new Re(t.startSourceSpan,'@for loop must have a "track" expression'));else{let u=a?.endSourceSpan??t.endSourceSpan,c=new je(t.sourceSpan.start,u?.end??t.sourceSpan.end);_st(s.trackBy.expression,s.trackBy.keywordSpan,i),o=new Z_(s.itemName,s.expression,s.trackBy.expression,s.trackBy.keywordSpan,s.context,Sr(r,t.children,t.children),a,c,t.sourceSpan,t.startSourceSpan,u,t.nameSpan,t.i18n)}return{node:o,errors:i}}function yst(t,e,r){let n=Sst(t),i=t.parameters.length>0?TI(t.parameters[0],r):r.parseBinding("",!1,t.sourceSpan,0),s=[],o=[],a=[],u=null;for(let l of t.children){if(!(l instanceof $o))continue;if((l.name!=="case"||l.parameters.length===0)&&l.name!=="default"){o.push(new zD(l.name,l.sourceSpan,l.nameSpan));continue}let d=l.name==="case",f=null;d&&(f=TI(l.parameters[0],r));let p=new PU(f,l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan);if(a.push(p),l.children.length===0&&l.endSourceSpan!==null&&l.endSourceSpan.start.offset===l.endSourceSpan.end.offset){u===null&&(u=l.sourceSpan);continue}let g=l.sourceSpan,y=l.startSourceSpan;u!==null&&(g=new je(u.start,l.sourceSpan.end),y=new je(u.start,l.startSourceSpan.end),u=null);let _=new XT(a,Sr(e,l.children,l.children),g,y,l.endSourceSpan,l.nameSpan,l.i18n);s.push(_),a=[]}return{node:new WD(i,s,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:n}}function vst(t,e,r){if(t.parameters.length===0)return e.push(new Re(t.startSourceSpan,"@for loop does not have an expression")),null;let[n,...i]=t.parameters,s=Tst(n,e)?.match(lst);if(!s||s[2].trim().length===0)return e.push(new Re(n.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,o,a]=s;xT.has(o)&&e.push(new Re(n.sourceSpan,`@for loop item name cannot be one of ${Array.from(xT).join(", ")}.`));let u=n.expression.split(" ")[0],c=new je(n.sourceSpan.start,n.sourceSpan.start.moveBy(u.length)),l={itemName:new Np(o,"$implicit",c,c),trackBy:null,expression:TI(n,r,a),context:Array.from(xT,d=>{let f=new je(t.startSourceSpan.end,t.startSourceSpan.end);return new Np(d,d,f,f)})};for(let d of i){let f=d.expression.match(pst);if(f!==null){let m=new je(d.sourceSpan.start.moveBy(f[0].length-f[1].length),d.sourceSpan.end);bst(d.sourceSpan,f[1],m,o,l.context,e);continue}let p=d.expression.match(dst);if(p!==null){if(l.trackBy!==null)e.push(new Re(d.sourceSpan,'@for loop can only have one "track" expression'));else{let m=TI(d,r,p[1]);m.ast instanceof Vi&&e.push(new Re(t.startSourceSpan,'@for loop must have a "track" expression'));let g=new je(d.sourceSpan.start,d.sourceSpan.start.moveBy(5));l.trackBy={expression:m,keywordSpan:g}}continue}e.push(new Re(d.sourceSpan,`Unrecognized @for loop parameter "${d.expression}"`))}return l}function _st(t,e,r){let n=new EV;t.ast.visit(n),n.hasPipe&&r.push(new Re(e,"Cannot use pipes in track expressions"))}function bst(t,e,r,n,i,s){let o=e.split(","),a=r.start;for(let u of o){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)s.push(new Re(t,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!xT.has(d))s.push(new Re(t,`Unknown "let" parameter variable "${d}". The allowed variables are: ${Array.from(xT).join(", ")}`));else if(l===n)s.push(new Re(t,`Invalid @for loop "let" parameter. Variable cannot be called "${n}"`));else if(i.some(f=>f.name===l))s.push(new Re(t,`Duplicate "let" parameter variable "${d}"`));else{let[,f,p]=c[0].match(Ume)??[],m=f!==void 0&&c.length===2?new je(a.moveBy(f.length),a.moveBy(f.length+p.length)):r,g;if(c.length===2){let[,_,b]=c[1].match(Ume)??[];g=_!==void 0?new je(a.moveBy(c[0].length+1+_.length),a.moveBy(c[0].length+1+_.length+b.length)):void 0}let y=new je(m.start,g?.end??m.end);i.push(new Np(l,d,y,m,g))}a=a.moveBy(u.length+1)}}function Est(t){let e=[],r=!1;for(let n=0;n<t.length;n++){let i=t[n];i.name==="else"?(r?e.push(new Re(i.startSourceSpan,"Conditional can only have one @else block")):t.length>1&&n<t.length-1?e.push(new Re(i.startSourceSpan,"@else block must be last inside the conditional")):i.parameters.length>0&&e.push(new Re(i.startSourceSpan,"@else block cannot have parameters")),r=!0):jM.test(i.name)||e.push(new Re(i.startSourceSpan,`Unrecognized conditional block @${i.name}`))}return e}function Sst(t){let e=[],r=!1;if(t.parameters.length!==1)return e.push(new Re(t.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let n of t.children)if(!(n instanceof yI||n instanceof c0&&n.value.trim().length===0)){if(!(n instanceof $o)||n.name!=="case"&&n.name!=="default"){e.push(new Re(n.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}n.name==="default"?(r?e.push(new Re(n.startSourceSpan,"@switch block can only have one @default block")):n.parameters.length>0&&e.push(new Re(n.startSourceSpan,"@default block cannot have parameters")),r=!0):n.name==="case"&&n.parameters.length!==1&&e.push(new Re(n.startSourceSpan,"@case block must have exactly one parameter"))}return e}function TI(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 Gme(t,e,r){if(t.parameters.length===0)return e.push(new Re(t.startSourceSpan,"Conditional block does not have an expression")),null;let n=TI(t.parameters[0],r),i=null;for(let s=1;s<t.parameters.length;s++){let o=t.parameters[s],a=o.expression.match(fst);if(a===null)e.push(new Re(o.sourceSpan,`Unrecognized conditional parameter "${o.expression}"`));else if(t.name!=="if"&&!jM.test(t.name))e.push(new Re(o.sourceSpan,'"as" expression is only allowed on `@if` and `@else if` blocks'));else if(i!==null)e.push(new Re(o.sourceSpan,'Conditional can only have one "as" expression'));else{let u=a[2].trim();if(hst.test(u)){let c=o.sourceSpan.start.moveBy(a[1].length),l=new je(c,c.moveBy(u.length));i=new Np(u,u,l,l)}else e.push(new Re(o.sourceSpan,'"as" expression must be a valid JavaScript identifier'))}}return{expression:n,expressionAlias:i}}function Tst(t,e){let r=t.expression,n=/^\s$/,i=0,s=0,o=r.length-1;for(let a=0;a<r.length;a++){let u=r[a];if(u==="(")s=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(o=a,i--,i===0)break}else{if(n.test(u))continue;break}}return i!==0?(e.push(new Re(t.sourceSpan,"Unclosed parentheses in expression")),null):r.slice(s,o)}var EV=class extends z_{hasPipe=!1;visitPipe(){this.hasPipe=!0}},Ist=/^\d+\.?\d*(ms|s)?$/,wst=/^\s$/,Wme=new Map([[xa,Wi],[Jc,yd],[io,ni]]),Ti;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never"})(Ti||(Ti={}));function Ast({expression:t,sourceSpan:e},r,n){let i=t.indexOf("never"),s=new je(e.start.moveBy(i),e.start.moveBy(i+5)),o=nH(t,e),a=iH(t,e);i===-1?n.push(new Re(e,'Could not find "never" keyword in expression')):sH("never",r,n,new AU(s,e,o,null,a))}function nU({expression:t,sourceSpan:e},r,n,i){let s=t.indexOf("when"),o=new je(e.start.moveBy(s),e.start.moveBy(s+4)),a=nH(t,e),u=iH(t,e);if(s===-1)i.push(new Re(e,'Could not find "when" keyword in expression'));else{let c=II(t,s+1),l=r.parseBinding(t.slice(c),!1,e,e.start.offset+c);sH("when",n,i,new VD(l,e,a,o,u))}}function iU({expression:t,sourceSpan:e},r,n,i,s){let o=t.indexOf("on"),a=new je(e.start.moveBy(o),e.start.moveBy(o+2)),u=nH(t,e),c=iH(t,e);if(o===-1)i.push(new Re(e,'Could not find "on" keyword in expression'));else{let l=II(t,o+1),d=t.startsWith("hydrate");new SV(t,r,l,e,n,i,d?Rst:Mst,d,u,a,c).parse()}}function nH(t,e){return t.startsWith("prefetch")?new je(e.start,e.start.moveBy(8)):null}function iH(t,e){return t.startsWith("hydrate")?new je(e.start,e.start.moveBy(7)):null}var SV=class{expression;bindingParser;start;span;triggers;errors;validator;isHydrationTrigger;prefetchSpan;onSourceSpan;hydrateSpan;index=0;tokens;constructor(e,r,n,i,s,o,a,u,c,l,d){this.expression=e,this.bindingParser=r,this.start=n,this.span=i,this.triggers=s,this.errors=o,this.validator=a,this.isHydrationTrigger=u,this.prefetchSpan=c,this.onSourceSpan=l,this.hydrateSpan=d,this.tokens=new bI().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(Ss))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(io)){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 je(n,n.moveBy(e.strValue.length)),s=n.moveBy(this.token().end-e.index),o=e.index===0,a=o?this.onSourceSpan:null,u=o?this.prefetchSpan:null,c=o?this.hydrateSpan:null,l=new je(o?this.span.start:n,s);try{switch(e.toString()){case Ti.IDLE:this.trackTrigger("idle",xst(r,i,l,u,a,c));break;case Ti.TIMER:this.trackTrigger("timer",Cst(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Ti.INTERACTION:this.trackTrigger("interaction",Nst(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case Ti.IMMEDIATE:this.trackTrigger("immediate",Ost(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Ti.HOVER:this.trackTrigger("hover",Pst(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case Ti.VIEWPORT:this.trackTrigger("viewport",Dst(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(io))return this.unexpectedToken(this.token()),e;this.advance();let r=[],n=[];for(;this.index<this.tokens.length;){let i=this.token();if(i.isCharacter(ni)&&r.length===0){n.length&&e.push({expression:this.tokenRangeText(n),start:n[0].index});break}if(i.type===$e.Character&&Wme.has(i.numValue)&&r.push(Wme.get(i.numValue)),r.length>0&&i.isCharacter(r[r.length-1])&&r.pop(),r.length===0&&i.isCharacter(Ss)&&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(ni)||r.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(Ss)&&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){sH(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 Re(new je(n,i),r))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function sH(t,e,r,n){e[t]?r.push(new Re(n.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=n}function xst(t,e,r,n,i,s){if(t.length>0)throw new Error(`"${Ti.IDLE}" trigger cannot have parameters`);return new xU(e,r,n,i,s)}function Cst(t,e,r,n,i,s){if(t.length!==1)throw new Error(`"${Ti.TIMER}" trigger must have exactly one parameter`);let o=xM(t[0].expression);if(o===null)throw new Error(`Could not parse time value of trigger "${Ti.TIMER}"`);return new OU(o,e,r,n,i,s)}function Ost(t,e,r,n,i,s){if(t.length>0)throw new Error(`"${Ti.IMMEDIATE}" trigger cannot have parameters`);return new CU(e,r,n,i,s)}function Pst(t,e,r,n,i,s,o){return o(Ti.HOVER,t),new HD(t[0]?.expression??null,e,r,n,i,s)}function Nst(t,e,r,n,i,s,o){return o(Ti.INTERACTION,t),new GD(t[0]?.expression??null,e,r,n,i,s)}function Dst(t,e,r,n,i,s,o,a,u,c){c(Ti.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,s,s.start.offset+t+n[0].start);if(f.ast instanceof e0){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],g=(y,_)=>_!==p;if(!(m instanceof Xc)||!(m.receiver instanceof ol))throw new Error('"trigger" option of the "viewport" trigger must be an identifier');l=m.name,d=new e0(f.ast.span,f.ast.sourceSpan,f.ast.keys.filter(g),f.ast.values.filter(g))}}if(e&&l!==null)throw new Error('"viewport" hydration trigger cannot have a "trigger"');if(d){let f=TV.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 zT(l,d,i,s,o,a,u)}function Mst(t,e){if(e.length>1)throw new Error(`"${t}" trigger can only have zero or one parameters`)}function Rst(t,e){if(t===Ti.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 II(t,e=0){let r=!1;for(let n=e;n<t.length;n++)if(wst.test(t[n]))r=!0;else if(r)return n;return-1}function xM(t){let e=t.match(Ist);if(!e)return null;let[r,n]=e;return parseFloat(r)*(n==="s"?1e3:1)}var TV=class t extends z_{dynamicNode=null;static findDynamicNode(e){let r=new t;return r.visit(e),r.dynamicNode}visit(e){!(e instanceof bs)&&!(e instanceof _s)&&!(e instanceof jT)&&!(e instanceof e0)?this.dynamicNode=e:super.visit(e)}},kst=/^prefetch\s+when\s/,Lst=/^prefetch\s+on\s/,$st=/^hydrate\s+when\s/,Fst=/^hydrate\s+on\s/,jst=/^hydrate\s+never(\s*)$/,C0e=/^minimum\s/,qst=/^after\s/,Bst=/^when\s/,Ust=/^on\s/;function IV(t){return t==="placeholder"||t==="loading"||t==="error"}function Vst(t,e,r,n){let i=[],{placeholder:s,loading:o,error:a}=Hst(e,i,r),{triggers:u,prefetchTriggers:c,hydrateTriggers:l}=zst(t,n,i),d=t.endSourceSpan,f=t.sourceSpan.end;if(e.length>0){let g=e[e.length-1];d=g.endSourceSpan,f=g.sourceSpan.end}let p=new je(t.sourceSpan.start,f);return{node:new t0(Sr(r,t.children,t.children),u,c,l,s,o,a,t.nameSpan,p,t.sourceSpan,t.startSourceSpan,d,t.i18n),errors:i}}function Hst(t,e,r){let n=null,i=null,s=null;for(let o of t)try{if(!IV(o.name)){e.push(new Re(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":n!==null?e.push(new Re(o.startSourceSpan,"@defer block can only have one @placeholder block")):n=Gst(o,r);break;case"loading":i!==null?e.push(new Re(o.startSourceSpan,"@defer block can only have one @loading block")):i=Wst(o,r);break;case"error":s!==null?e.push(new Re(o.startSourceSpan,"@defer block can only have one @error block")):s=Kst(o,r);break}}catch(a){e.push(new Re(o.startSourceSpan,a.message))}return{placeholder:n,loading:i,error:s}}function Gst(t,e){let r=null;for(let n of t.parameters)if(C0e.test(n.expression)){if(r!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let i=xM(n.expression.slice(II(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 QT(Sr(e,t.children,t.children),r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Wst(t,e){let r=null,n=null;for(let i of t.parameters)if(qst.test(i.expression)){if(r!=null)throw new Error('@loading block can only have one "after" parameter');let s=xM(i.expression.slice(II(i.expression)));if(s===null)throw new Error('Could not parse time value of parameter "after"');r=s}else if(C0e.test(i.expression)){if(n!=null)throw new Error('@loading block can only have one "minimum" parameter');let s=xM(i.expression.slice(II(i.expression)));if(s===null)throw new Error('Could not parse time value of parameter "minimum"');n=s}else throw new Error(`Unrecognized parameter in @loading block: "${i.expression}"`);return new YT(Sr(e,t.children,t.children),r,n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Kst(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new ZT(Sr(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function zst(t,e,r,n){let i={},s={},o={};for(let a of t.parameters)Bst.test(a.expression)?nU(a,e,i,r):Ust.test(a.expression)?iU(a,e,i,r):kst.test(a.expression)?nU(a,e,s,r):Lst.test(a.expression)?iU(a,e,s,r):$st.test(a.expression)?nU(a,e,o,r):Fst.test(a.expression)?iU(a,e,o,r):jst.test(a.expression)?Ast(a,o,r):r.push(new Re(a.sourceSpan,"Unrecognized trigger"));return o.never&&Object.keys(o).length>1&&r.push(new Re(t.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:i,prefetchTriggers:s,hydrateTriggers:o}}var Qst=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Kme=1,zme=2,Qme=3,Yme=4,Zme=5,Yst=6,yT=7,bp={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},sU="*",Zst=new Set(["link","style","script","ng-template","ng-container","ng-content"]),Xst=new Set(["ngProjectAs","ngNonBindable"]);function Jst(t,e,r){let n=new wV(e,r),i=Sr(n,t,t),s=e.errors.concat(n.errors),o={nodes:i,errors:s,styleUrls:n.styleUrls,styles:n.styles,ngContentSelectors:n.ngContentSelectors};return r.collectCommentNodes&&(o.commentNodes=n.commentNodes),o}var wV=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=_D(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=x0e(e);if(n.type===Es.SCRIPT)return null;if(n.type===Es.STYLE){let _=eot(e);return _!==null&&this.styles.push(_),null}else if(n.type===Es.STYLESHEET&&Xit(n.hrefAttr))return this.styleUrls.push(n.hrefAttr),null;let i=lZe(e.name),{attributes:s,boundEvents:o,references:a,variables:u,templateVariables:c,elementHasInlineTemplate:l,parsedProperties:d,templateParsedProperties:f,i18nAttrsMeta:p}=this.prepareAttributes(e.attrs,i),m=this.extractDirectives(e),g;n.nonBindable?g=Sr(Xme,e.children).flat(1/0):g=Sr(this,e.children,e.children);let y;if(n.type===Es.NG_CONTENT){let _=n.selectAttr,b=e.attrs.map(S=>this.visitAttribute(S));y=new X_(_,b,g,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n),this.ngContentSelectors.push(_)}else if(i){let _=this.categorizePropertyAttributes(e.name,d,p);y=new so(e.name,s,_.bound,o,m,[],g,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===It.Attribute&&this.reportError("Attribute bindings are not supported on ng-container. Use property bindings instead.",b.sourceSpan);y=new al(e.name,s,_.bound,o,m,g,a,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n)}return l&&(y=this.wrapInTemplate(y,f,c,p,i,r)),r&&(this.inI18nBlock=!1),y}visitAttribute(e){return new Y_(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(!_D(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(s=>{let o=r.placeholders[s];if(s.startsWith(hZe)){let a=s.trim(),u=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);n[a]=new Q_(u,o.sourceSpan)}else i[s]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new gge(n,i,e.sourceSpan,r)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new RM(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 Vi&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new qV(e.name,n,e.sourceSpan,e.nameSpan,e.valueSpan)}visitComponent(e){let r=_D(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&&Zst.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:s,templateVariables:o,elementHasInlineTemplate:a,parsedProperties:u,templateParsedProperties:c,i18nAttrsMeta:l}=this.prepareAttributes(e.attrs,!1);this.validateSelectorlessReferences(s);let d=this.extractDirectives(e),f;e.attrs.find(g=>g.name==="ngNonBindable")?f=Sr(Xme,e.children).flat(1/0):f=Sr(this,e.children,e.children);let p=this.categorizePropertyAttributes(e.tagName,u,l),m=new TT(e.componentName,e.tagName,e.fullName,n,p.bound,i,d,f,s,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return a&&(m=this.wrapInTemplate(m,c,o,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=Vst(e,this.findConnectedBlocks(n,r,IV),this,this.bindingParser);break;case"switch":i=yst(e,this,this.bindingParser);break;case"for":i=gst(e,this.findConnectedBlocks(n,r,Vme),this,this.bindingParser);break;case"if":i=mst(e,this.findConnectedBlocks(n,r,Hme),this,this.bindingParser);break;default:let s;IV(e.name)?(s=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):Vme(e.name)?(s=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):Hme(e.name)?(s=`@${e.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(e)):s=`Unrecognized block @${e.name}.`,i={node:new zD(e.name,e.sourceSpan,e.nameSpan),errors:[new Re(e.sourceSpan,s)]};break}return this.errors.push(...i.errors),i.node}findConnectedBlocks(e,r,n){let i=[];for(let s=e+1;s<r.length;s++){let o=r[s];if(!(o instanceof yI)){if(o instanceof c0&&o.value.trim().length===0){this.processedNodes.add(o);continue}if(!(o instanceof $o)||!n(o.name))break;i.push(o),this.processedNodes.add(o)}}return i}categorizePropertyAttributes(e,r,n){let i=[],s=[];return r.forEach(o=>{let a=n[o.name];if(o.isLiteral)s.push(new Y_(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{let u=this.bindingParser.createBoundElementProperty(e,o,!0,!1);i.push(IU.fromBoundElementProperty(u,a))}}),{bound:i,literal:s}}prepareAttributes(e,r){let n=[],i=[],s=[],o=[],a=[],u={},c=[],l=[],d=!1;for(let f of e){let p=!1,m=Jme(f.name),g=!1;if(f.i18n&&(u[f.name]=f.i18n),m.startsWith(sU)){d&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",f.sourceSpan),g=!0,d=!0;let y=f.value,_=m.substring(sU.length),b=[],S=f.valueSpan?f.valueSpan.fullStart.offset:f.sourceSpan.fullStart.offset+f.name.length;this.bindingParser.parseInlineTemplateBinding(_,y,f.sourceSpan,S,[],c,b,!0),l.push(...b.map(x=>new Np(x.name,x.value,x.sourceSpan,x.keySpan,x.valueSpan)))}else p=this.parseAttribute(r,f,[],n,i,s,o);!p&&!g&&a.push(this.visitAttribute(f))}return{attributes:a,boundEvents:i,references:o,variables:s,templateVariables:l,elementHasInlineTemplate:d,parsedProperties:n,templateParsedProperties:c,i18nAttrsMeta:u}}parseAttribute(e,r,n,i,s,o,a){let u=Jme(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,M=_.start.moveBy(b.length+x),se=M.moveBy(S.length);return new je(M,se,M,S)}let p=u.match(Qst);if(p){if(p[Kme]!=null){let _=p[yT],b=f(l,p[Kme],_);this.bindingParser.parsePropertyBinding(_,c,!1,!1,l,d,r.valueSpan,n,i,b)}else if(p[zme])if(e){let _=p[yT],b=f(l,p[zme],_);this.parseVariable(_,c,l,b,r.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',l);else if(p[Qme]){let _=p[yT],b=f(l,p[Qme],_);this.parseReference(_,c,l,b,r.valueSpan,a)}else if(p[Yme]){let _=[],b=p[yT],S=f(l,p[Yme],b);this.bindingParser.parseEvent(b,c,!1,l,r.valueSpan||l,n,_,S),oU(_,s)}else if(p[Zme]){let _=p[yT],b=f(l,p[Zme],_);this.bindingParser.parsePropertyBinding(_,c,!1,!0,l,d,r.valueSpan,n,i,b),this.parseAssignmentEvent(_,c,l,r.valueSpan,n,s,b,d)}else if(p[Yst]){let _=f(l,"",u);this.bindingParser.parseLiteralAttr(u,c,l,d,r.valueSpan,n,i,_)}return!0}let m=null;if(u.startsWith(bp.BANANA_BOX.start)?m=bp.BANANA_BOX:u.startsWith(bp.PROPERTY.start)?m=bp.PROPERTY:u.startsWith(bp.EVENT.start)&&(m=bp.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===bp.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(_,c,!1,!0,l,d,r.valueSpan,n,i,b),this.parseAssignmentEvent(_,c,l,r.valueSpan,n,s,b,d);else if(m.start===bp.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),oU(S,s)}return!0}let g=f(l,"",u);return this.bindingParser.parsePropertyInterpolation(u,c,l,r.valueSpan,n,i,g,r.valueTokens??null)}extractDirectives(e){let r=e instanceof vs?e.tagName:e.name,n=[],i=new Set;for(let s of e.directives){let o=!1;for(let p of s.attrs)p.name.startsWith(sU)?(o=!0,this.reportError(`Shorthand template syntax "${p.name}" is not supported inside a directive context`,p.sourceSpan)):Xst.has(p.name)&&(o=!0,this.reportError(`Attribute "${p.name}" is not supported in a directive context`,p.sourceSpan));if(!o&&i.has(s.name)&&(o=!0,this.reportError(`Cannot apply directive "${s.name}" multiple times on the same element`,s.sourceSpan)),o)continue;let{attributes:a,parsedProperties:u,boundEvents:c,references:l,i18nAttrsMeta:d}=this.prepareAttributes(s.attrs,!1);this.validateSelectorlessReferences(l);let{bound:f}=this.categorizePropertyAttributes(r,u,d);for(let p of f)p.type!==It.Property&&p.type!==It.TwoWay&&(o=!0,this.reportError("Binding is not supported in a directive context",p.sourceSpan));o||(i.add(s.name),n.push(new mge(s.name,a,f,c,l,s.sourceSpan,s.startSourceSpan,s.endSourceSpan,void 0)))}return n}filterAnimationAttributes(e){return e.filter(r=>!r.name.startsWith("animate."))}filterAnimationInputs(e){return e.filter(r=>r.type!==It.Animation)}wrapInTemplate(e,r,n,i,s,o){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 al||e instanceof TT)&&(c.attributes.push(...this.filterAnimationAttributes(e.attributes)),c.inputs.push(...this.filterAnimationInputs(e.inputs)),c.outputs.push(...e.outputs));let l=s&&o?void 0:e.i18n,d;return e instanceof TT?d=e.tagName:e instanceof so?d=null:d=e.name,new so(d,c.attributes,c.inputs,c.outputs,[],u,[e],[],n,!1,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,l)}_visitTextWithInterpolation(e,r,n,i){let s=i0e(e),o=this.bindingParser.parseInterpolation(s,r,n);return o?new Q_(o,r,i):new jg(s,r)}parseVariable(e,r,n,i,s,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',n):e.length===0&&this.reportError("Variable does not have a name",n),o.push(new Np(e,r,n,i,s))}parseReference(e,r,n,i,s,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',n):e.length===0?this.reportError("Reference does not have a name",n):o.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,n),o.push(new eI(e,r,n,i,s))}parseAssignmentEvent(e,r,n,i,s,o,a,u){let c=[];this.bindingParser.parseEvent(`${e}Change`,r,!0,n,i||n,s,c,a),oU(c,o)}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=vd.ERROR){this.errors.push(new Re(r,e,n))}},AV=class{visitElement(e){let r=x0e(e);if(r.type===Es.SCRIPT||r.type===Es.STYLE||r.type===Es.STYLESHEET)return null;let n=Sr(this,e.children,null);return new al(e.name,Sr(this,e.attrs),[],[],[],n,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid)}visitComment(e){return null}visitAttribute(e){return new Y_(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new jg(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,r){let n=[new jg(e.startSourceSpan.toString(),e.startSourceSpan),...Sr(this,e.children)];return e.endSourceSpan!==null&&n.push(new jg(e.endSourceSpan.toString(),e.endSourceSpan)),n}visitBlockParameter(e,r){return null}visitLetDeclaration(e,r){return new jg(`@let ${e.name} = ${e.value};`,e.sourceSpan)}visitComponent(e,r){let n=Sr(this,e.children,null);return new al(e.fullName,Sr(this,e.attrs),[],[],[],n,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,!1)}visitDirective(e,r){return null}},Xme=new AV;function Jme(t){return/^data-/i.test(t)?t.substring(5):t}function oU(t,e){e.push(...t.map(r=>wU.fromParsedEvent(r)))}function eot(t){return t.children.length!==1||!(t.children[0]instanceof c0)?null:t.children[0].value}var tot=[" ",`
|
|
264
264
|
`,"\r"," "];function rot(t,e,r={}){let{preserveWhitespaces:n,enableI18nLegacyMessageIdFormat:i}=r,s=r.enableSelectorless??!1,o=CM(s),u=new yV().parse(t,e,{leadingTriviaChars:tot,...r,tokenizeExpansionForms:!0,tokenizeBlocks:r.enableBlockSyntax??!0,tokenizeLet:r.enableLetSyntax??!0,selectorlessEnabled:s});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 _M(!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=Sr(new yM(!0,void 0,!1),c),d.hasI18nMeta&&(c=Sr(new _M(!1,void 0,!0,l),c)));let{nodes:p,errors:m,styleUrls:g,styles:y,ngContentSelectors:_,commentNodes:b}=Jst(c,o,{collectCommentNodes:!!r.collectCommentNodes});m.push(...u.errors,...f.errors);let S={preserveWhitespaces:n,errors:m.length>0?m:null,nodes:p,styleUrls:g,styles:y,ngContentSelectors:_};return r.collectCommentNodes&&(S.commentNodes=b),S}var not=new sb;function CM(t=!1){return new vV(new vM(new bI,t),not,[])}var O0e="%COMP%",iot=`_nghost-${O0e}`,sot=`_ngcontent-${O0e}`;function P0e(t,e,r){let n=new Rp,i=LV(t.selector);return n.set("type",t.type.value),i.length>0&&n.set("selectors",D_(i)),t.queries.length>0&&n.set("contentQueries",Kit(t.queries,e,t.name)),t.viewQueries.length&&n.set("viewQuery",Wit(t.viewQueries,e,t.name)),n.set("hostBindings",pot(t.host,t.typeSourceSpan,r,e,t.selector||"",t.name,n)),n.set("inputs",Dhe(t.inputs,!0)),n.set("outputs",Dhe(t.outputs)),t.exportAs!==null&&n.set("exportAs",nr(t.exportAs.map(s=>C(s)))),t.isStandalone===!1&&n.set("standalone",C(!1)),t.isSignal&&n.set("signals",C(!0)),n}function N0e(t,e){let r=[],n=e.providers,i=e.viewProviders;if(n||i){let s=[n||new il([])];i&&s.push(i),r.push(Ee(T.ProvidersFeature).callFn(s))}if(e.hostDirectives?.length&&r.push(Ee(T.HostDirectivesFeature).callFn([vot(e.hostDirectives)])),e.usesInheritance&&r.push(Ee(T.InheritDefinitionFeature)),e.lifecycle.usesOnChanges&&r.push(Ee(T.NgOnChangesFeature)),"externalStyles"in e&&e.externalStyles?.length){let s=e.externalStyles.map(o=>C(o));r.push(Ee(T.ExternalStylesFeature).callFn([nr(s)]))}r.length&&t.set("features",nr(r))}function oot(t,e,r){let n=P0e(t,e,r);N0e(n,t);let i=Ee(T.defineDirective).callFn([n.toLiteralMap()],void 0,!0),s=fot(t);return{expression:i,type:s,statements:[]}}function aot(t,e,r){let n=P0e(t,e,r);N0e(n,t);let i=t.selector&&q_.parse(t.selector),s=i&&i[0];if(s){let m=s.getAttrs();m.length&&n.set("attrs",e.getConstLiteral(nr(m.map(g=>g!=null?C(g):C(void 0))),!0))}let o=t.name,a=null;if(t.defer.mode===1&&t.defer.dependenciesFn!==null){let m=`${o}_DeferFn`;e.statements.push(new Pn(m,t.defer.dependenciesFn,void 0,Vn.Final)),a=vt(m)}let u=t.isStandalone&&!t.hasDirectiveDependencies?Gi.DomOnly:Gi.Full,c=Sit(t.name,t.template.nodes,e,u,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,a,t.relativeTemplatePath,Vit());g0e(c,ue.Tmpl);let l=vit(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",sl([],[...c.constsInitializers,new oi(nr(c.consts))])):n.set("consts",nr(c.consts))),n.set("template",l),t.declarationListEmitMode!==3&&t.declarations.length>0)n.set("dependencies",cot(nr(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",Ee(T.getComponentDepsFactory).callFn(m))}t.encapsulation===null&&(t.encapsulation=Ip.Emulated);let d=!!t.externalStyles?.length;if(t.styles&&t.styles.length){let g=(t.encapsulation==Ip.Emulated?yot(t.styles,sot,iot):t.styles).reduce((y,_)=>(_.trim().length>0&&y.push(e.getConstLiteral(C(_))),y),[]);g.length>0&&(d=!0,n.set("styles",nr(g)))}!d&&t.encapsulation===Ip.Emulated&&(t.encapsulation=Ip.None),t.encapsulation!==Ip.Emulated&&n.set("encapsulation",C(t.encapsulation)),t.animations!==null&&n.set("data",qo([{key:"animation",value:t.animations,quoted:!1}])),t.changeDetection!==null&&(typeof t.changeDetection=="number"&&t.changeDetection!==SD.Default?n.set("changeDetection",C(t.changeDetection)):typeof t.changeDetection=="object"&&n.set("changeDetection",t.changeDetection));let f=Ee(T.defineComponent).callFn([n.toLiteralMap()],void 0,!0),p=uot(t);return{expression:f,type:p,statements:[]}}function uot(t){let e=D0e(t);return e.push(CV(t.template.ngContentSelectors)),e.push(ai(C(t.isStandalone))),e.push(M0e(t)),t.isSignal&&e.push(ai(C(t.isSignal))),ai(Ee(T.ComponentDeclaration,e))}function cot(t,e){switch(e){case 0:return t;case 1:return sl([],t);case 2:let r=t.prop("map").callFn([Ee(T.resolveForwardRef)]);return sl([],r);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function lot(t){return ai(C(t))}function xV(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 qo(e)}function CV(t){return t.length>0?ai(nr(t.map(e=>C(e)))):rl}function D0e(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[MM(t.type.type,t.typeArgumentCount),e!==null?lot(e):rl,t.exportAs!==null?CV(t.exportAs):rl,ai(dot(t)),ai(xV(t.outputs)),CV(t.queries.map(r=>r.propertyName))]}function dot(t){return qo(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:qo(n),quoted:!0}}))}function fot(t){let e=D0e(t);return e.push(rl),e.push(ai(C(t.isStandalone))),e.push(M0e(t)),t.isSignal&&e.push(ai(C(t.isSignal))),ai(Ee(T.DirectiveDeclaration,e))}function pot(t,e,r,n,i,s,o){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=Tit({componentName:s,componentSelector:i,properties:a,events:u,attributes:t.attributes},r,n);g0e(c,ue.Host),o.set("hostAttrs",c.root.attributes);let l=c.root.vars;return l!==null&&l>0&&o.set("hostVars",C(l)),_it(c)}var hot=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function mot(t){let e={},r={},n={},i={};for(let s of Object.keys(t)){let o=t[s],a=s.match(hot);if(a===null)switch(s){case"class":if(typeof o!="string")throw new Error("Class binding must be string");i.classAttr=o;break;case"style":if(typeof o!="string")throw new Error("Style binding must be string");i.styleAttr=o;break;default:typeof o=="string"?e[s]=C(o):e[s]=o}else if(a[1]!=null){if(typeof o!="string")throw new Error("Property binding must be string");n[a[1]]=o}else if(a[2]!=null){if(typeof o!="string")throw new Error("Event binding must be string");r[a[2]]=o}}return{attributes:e,listeners:r,properties:n,specialAttributes:i}}function got(t,e){let r=CM();return r.createDirectiveHostEventAsts(t.listeners,e),r.createBoundHostProperties(t.properties,e),r.errors}function yot(t,e,r){let n=new jU;return t.map(i=>n.shimCssText(i,e,r))}function M0e(t){return t.hostDirectives?.length?ai(nr(t.hostDirectives.map(e=>qo([{key:"directive",value:wI(e.directive.type),quoted:!1},{key:"inputs",value:xV(e.inputs||{}),quoted:!1},{key:"outputs",value:xV(e.outputs||{}),quoted:!1}])))):rl}function vot(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 s=ege(n.inputs);s&&i.push({key:"inputs",value:s,quoted:!1})}if(n.outputs){let s=ege(n.outputs);s&&i.push({key:"outputs",value:s,quoted:!1})}e.push(qo(i))}n.isForwardReference&&(r=!0)}return r?new xp([],[new oi(nr(e))]):nr(e)}function ege(t){let e=[];for(let r in t)t.hasOwnProperty(r)&&e.push(C(r),C(t[r]));return e.length>0?nr(e):null}var OV=class extends z_{visit(e){e instanceof bs?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 VD?this.visit(e.value):e instanceof zT&&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)}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 PV=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,s=new Map,o=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=OM.apply(e.template);_ot(m,a),NV.apply(e.template,this.directiveMatcher,r,n,i,s,o),PM.applyWithScope(e.template,m,u,c,l,d,f,p)}return e.host&&(r.set(e.host.node,e.host.directives),PM.applyWithScope(e.host.node,OM.apply(e.host.node),u,c,l,d,f,p)),new DV(e,r,n,i,s,o,u,c,l,a,d,f,p)}},OM=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 t0}static newRootScope(){return new t(null,null)}static apply(e){let r=t.newRootScope();return r.ingest(e),r}ingest(e){e instanceof so?(e.variables.forEach(r=>this.visitVariable(r)),e.children.forEach(r=>r.visit(this))):e instanceof Bg?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(r=>r.visit(this))):e instanceof Z_?(this.visitVariable(e.item),e.contextVariables.forEach(r=>this.visitVariable(r)),e.children.forEach(r=>r.visit(this))):e instanceof XT||e instanceof JT||e instanceof t0||e instanceof ZT||e instanceof QT||e instanceof YT||e instanceof X_?e.children.forEach(r=>r.visit(this)):e instanceof tI||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)}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)}},NV=class t{directiveMatcher;directives;eagerDirectives;missingDirectives;bindings;references;isInDeferBlock=!1;constructor(e,r,n,i,s,o){this.directiveMatcher=e,this.directives=r,this.eagerDirectives=n,this.missingDirectives=i,this.bindings=s,this.references=o}static apply(e,r,n,i,s,o,a){new t(r,n,i,s,o,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))}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 ED){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 ED){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 bD){let r=[],n=yZe(e);this.directiveMatcher.match(n,(i,s)=>r.push(...s)),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,s,o)=>{i[o].hasBindingPropertyName(s.name)&&this.bindings.set(s,i)};for(let i of r)e.inputs.forEach(s=>n(i,s,"inputs")),e.attributes.forEach(s=>n(i,s,"inputs")),e.outputs.forEach(s=>n(i,s,"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 s=null;if(i.value.trim()==="")s=r.find(o=>o.isComponent)||null;else if(s=r.find(o=>o.exportAs!==null&&o.exportAs.some(a=>a===i.value))||null,s===null)return;s!==null?this.references.set(i,{directive:s,node:e}):this.references.set(i,e)});let n=(i,s)=>{let o=r.find(u=>u[s].hasBindingPropertyName(i.name)),a=o!==void 0?o:e;this.bindings.set(i,a)};e.inputs.forEach(i=>n(i,"inputs")),e.attributes.forEach(i=>n(i,"inputs")),e instanceof so&&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){}},PM=class t extends OV{bindings;symbols;usedPipes;eagerPipes;deferBlocks;nestingLevel;scope;rootNode;level;visitNode=e=>e.visit(this);constructor(e,r,n,i,s,o,a,u,c){super(),this.bindings=e,this.symbols=r,this.usedPipes=n,this.eagerPipes=i,this.deferBlocks=s,this.nestingLevel=o,this.scope=a,this.rootNode=u,this.level=c}static applyWithScope(e,r,n,i,s,o,a,u){let c=e instanceof so?e:null;new t(n,i,o,a,u,s,r,c,0).ingest(e)}ingest(e){if(e instanceof so)e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Bg)e.expressionAlias!==null&&this.visitNode(e.expressionAlias),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Z_)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 t0){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 XT||e instanceof JT||e instanceof ZT||e instanceof QT||e instanceof YT||e instanceof X_?(e.children.forEach(r=>r.visit(this)),this.nestingLevel.set(e,this.level)):e instanceof tI?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)}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 ol))return;let n=this.scope.lookup(r);n!==null&&this.bindings.set(e,n)}},DV=class{target;directives;eagerDirectives;missingDirectives;bindings;references;exprTargets;symbols;nestingLevel;scopedNodeEntities;usedPipes;eagerPipes;deferredBlocks;deferredScopes;constructor(e,r,n,i,s,o,a,u,c,l,d,f,p){this.target=e,this.directives=r,this.eagerDirectives=n,this.missingDirectives=i,this.bindings=s,this.references=o,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 GD)&&!(r instanceof zT)&&!(r instanceof HD))return null;let n=r.reference;if(n===null){let s=null;if(e.placeholder!==null){for(let o of e.placeholder.children)if(!(o instanceof RM)){if(s!==null)return null;o instanceof al&&(s=o)}}return s}let i=this.findEntityInScope(e,n);if(i instanceof eI&&this.getDefinitionNodeOfSymbol(i)!==e){let s=this.getReferenceTarget(i);if(s!==null)return this.referenceTargetToElement(s)}if(e.placeholder!==null){let s=this.findEntityInScope(e.placeholder,n),o=s instanceof eI?this.getReferenceTarget(s):null;if(o!==null)return this.referenceTargetToElement(o)}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 al?e:e instanceof so||e.node instanceof TT||e.node instanceof mge||e.node instanceof tI?null:this.referenceTargetToElement(e.node)}};function _ot(t,e){let r=new Map;function n(s){if(r.has(s.rootNode))return r.get(s.rootNode);let o=s.namedEntities,a;return s.parentScope!==null?a=new Map([...n(s.parentScope),...o]):a=new Map(o),r.set(s.rootNode,a),a}let i=[t];for(;i.length>0;){let s=i.pop();for(let o of s.childScopes.values())i.push(o);n(s)}for(let[s,o]of r)e.set(s,new Set(o.values()))}var MV=class{},RV=class{jitEvaluator;FactoryTarget=Qc;ResourceLoader=MV;elementSchemaRegistry=new sb;constructor(e=new LU){this.jitEvaluator=e}compilePipe(e,r,n){let i={name:n.name,type:Cn(n.type),typeArgumentCount:0,deps:null,pipeName:n.pipeName,pure:n.pure,isStandalone:n.isStandalone},s=Vhe(i);return this.jitExpression(s.expression,e,r,[])}compilePipeDeclaration(e,r,n){let i=Lot(n),s=Vhe(i);return this.jitExpression(s.expression,e,r,[])}compileInjectable(e,r,n){let{expression:i,statements:s}=Mhe({name:n.name,type:Cn(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:oge(n.providedIn),useClass:C_(n,"useClass"),useFactory:sge(n,"useFactory"),useValue:C_(n,"useValue"),useExisting:C_(n,"useExisting"),deps:n.deps?.map($0e)},!0);return this.jitExpression(i,e,r,s)}compileInjectableDeclaration(e,r,n){let{expression:i,statements:s}=Mhe({name:n.type.name,type:Cn(n.type),typeArgumentCount:0,providedIn:oge(n.providedIn),useClass:C_(n,"useClass"),useFactory:sge(n,"useFactory"),useValue:C_(n,"useValue"),useExisting:C_(n,"useExisting"),deps:n.deps?.map(age)},!0);return this.jitExpression(i,e,r,s)}compileInjector(e,r,n){let i={name:n.name,type:Cn(n.type),providers:n.providers&&n.providers.length>0?new mt(n.providers):null,imports:n.imports.map(o=>new mt(o))},s=Uhe(i);return this.jitExpression(s.expression,e,r,[])}compileInjectorDeclaration(e,r,n){let i=$ot(n),s=Uhe(i);return this.jitExpression(s.expression,e,r,[])}compileNgModule(e,r,n){let i={kind:_d.Global,type:Cn(n.type),bootstrap:n.bootstrap.map(Cn),declarations:n.declarations.map(Cn),publicDeclarationTypes:null,imports:n.imports.map(Cn),includeImportTypes:!0,exports:n.exports.map(Cn),selectorScopeMode:uI.Inline,containsForwardDecls:!1,schemas:n.schemas?n.schemas.map(Cn):null,id:n.id?new mt(n.id):null},s=$Ze(i);return this.jitExpression(s.expression,e,r,[])}compileNgModuleDeclaration(e,r,n){let i=FZe(n);return this.jitExpression(i,e,r,[])}compileDirective(e,r,n){let i=nge(n);return this.compileDirectiveFromMeta(e,r,i)}compileDirectiveDeclaration(e,r,n){let i=this.createParseSourceSpan("Directive",n.type.name,r),s=k0e(n,i);return this.compileDirectiveFromMeta(e,r,s)}compileDirectiveFromMeta(e,r,n){let i=new MD,s=CM(),o=oot(n,i,s);return this.jitExpression(o.expression,e,r,i.statements)}compileComponent(e,r,n){let{template:i,defer:s}=L0e(n.template,n.name,r,n.preserveWhitespaces,void 0),o={...n,...nge(n),selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:i,declarations:n.declarations.map(Tot),declarationListEmitMode:0,defer:s,styles:[...n.styles,...i.styles],encapsulation:n.encapsulation,changeDetection:n.changeDetection??null,animations:n.animations!=null?new mt(n.animations):null,viewProviders:n.viewProviders!=null?new mt(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null},a=`ng:///${n.name}.js`;return this.compileComponentFromMeta(e,a,o)}compileComponentDeclaration(e,r,n){let i=this.createParseSourceSpan("Component",n.type.name,r),s=Sot(n,i,r);return this.compileComponentFromMeta(e,r,s)}compileComponentFromMeta(e,r,n){let i=new MD,s=CM(),o=aot(n,i,s);return this.jitExpression(o.expression,e,r,i.statements)}compileFactory(e,r,n){let i=Rg({name:n.name,type:Cn(n.type),typeArgumentCount:n.typeArgumentCount,deps:Aot(n.deps),target:n.target});return this.jitExpression(i.expression,e,r,i.statements)}compileFactoryDeclaration(e,r,n){let i=Rg({name:n.type.name,type:Cn(n.type),typeArgumentCount:0,deps:Array.isArray(n.deps)?n.deps.map(age):n.deps,target:n.target});return this.jitExpression(i.expression,e,r,i.statements)}createParseSourceSpan(e,r,n){return PZe(e,r,n)}jitExpression(e,r,n,i){let s=[...i,new Pn("$def",e,void 0,Vn.Exported)];return this.jitEvaluator.evaluateStatements(n,s,new FU(r),!0).$def}};function tge(t){return{...t,isSignal:t.isSignal,predicate:R0e(t.predicate),read:t.read?new mt(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly}}function rge(t){return{propertyName:t.propertyName,first:t.first??!1,predicate:R0e(t.predicate),descendants:t.descendants??!1,read:t.read?new mt(t.read):null,static:t.static??!1,emitDistinctChangesOnly:t.emitDistinctChangesOnly??!0,isSignal:!!t.isSignal}}function R0e(t){return Array.isArray(t)?t:jV(new mt(t),1)}function nge(t){let e=kot(t.inputs||[]),r=uU(t.outputs||[]),n=t.propMetadata,i={},s={};for(let a in n)n.hasOwnProperty(a)&&n[a].forEach(u=>{Not(u)?i[a]={bindingPropertyName:u.alias||a,classPropertyName:a,required:u.required||!1,isSignal:!!u.isSignal,transformFunction:u.transform!=null?new mt(u.transform):null}:Dot(u)&&(s[a]=u.alias||a)});let o=t.hostDirectives?.length?t.hostDirectives.map(a=>typeof a=="function"?{directive:Cn(a),inputs:null,outputs:null,isForwardReference:!1}:{directive:Cn(a.directive),isForwardReference:!1,inputs:a.inputs?uU(a.inputs):null,outputs:a.outputs?uU(a.outputs):null}):null;return{...t,typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:Cn(t.type),deps:null,host:{...Cot(t.propMetadata,t.typeSourceSpan,t.host)},inputs:{...e,...i},outputs:{...r,...s},queries:t.queries.map(tge),providers:t.providers!=null?new mt(t.providers):null,viewQueries:t.viewQueries.map(tge),hostDirectives:o}}function k0e(t,e){let r=t.hostDirectives?.length?t.hostDirectives.map(n=>({directive:Cn(n.directive),isForwardReference:!1,inputs:n.inputs?ige(n.inputs):null,outputs:n.outputs?ige(n.outputs):null})):null;return{name:t.type.name,type:Cn(t.type),typeSourceSpan:e,selector:t.selector??null,inputs:t.inputs?Mot(t.inputs):{},outputs:t.outputs??{},host:bot(t.host),queries:(t.queries??[]).map(rge),viewQueries:(t.viewQueries??[]).map(rge),providers:t.providers!==void 0?new mt(t.providers):null,exportAs:t.exportAs??null,usesInheritance:t.usesInheritance??!1,lifecycle:{usesOnChanges:t.usesOnChanges??!1},deps:null,typeArgumentCount:0,isStandalone:t.isStandalone??hge(t.version),isSignal:t.isSignal??!1,hostDirectives:r}}function bot(t={}){return{attributes:Eot(t.attributes??{}),listeners:t.listeners??{},properties:t.properties??{},specialAttributes:{classAttr:t.classAttribute,styleAttr:t.styleAttribute}}}function ige(t){let e=null;for(let r=1;r<t.length;r+=2)e=e||{},e[t[r-1]]=t[r];return e}function Eot(t){let e={};for(let r of Object.keys(t))e[r]=new mt(t[r]);return e}function Sot(t,e,r){let{template:n,defer:i}=L0e(t.template,t.type.name,r,t.preserveWhitespaces??!1,t.deferBlockDependencies),s=[];if(t.dependencies)for(let a of t.dependencies)switch(a.kind){case"directive":case"component":s.push(aU(a));break;case"pipe":s.push(wot(a));break}else(t.components||t.directives||t.pipes)&&(t.components&&s.push(...t.components.map(a=>aU(a,!0))),t.directives&&s.push(...t.directives.map(a=>aU(a))),t.pipes&&s.push(...Iot(t.pipes)));let o=s.some(({kind:a})=>a===n0.Directive||a===n0.NgModule);return{...k0e(t,e),template:n,styles:t.styles??[],declarations:s,viewProviders:t.viewProviders!==void 0?new mt(t.viewProviders):null,animations:t.animations!==void 0?new mt(t.animations):null,defer:i,changeDetection:t.changeDetection??SD.Default,encapsulation:t.encapsulation??Ip.Emulated,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:o}}function Tot(t){return{...t,type:new mt(t.type)}}function aU(t,e=null){return{kind:n0.Directive,isComponent:e||t.kind==="component",selector:t.selector,type:new mt(t.type),inputs:t.inputs??[],outputs:t.outputs??[],exportAs:t.exportAs??null}}function Iot(t){return t?Object.keys(t).map(e=>({kind:n0.Pipe,name:e,type:new mt(t[e])})):[]}function wot(t){return{kind:n0.Pipe,name:t.name,type:new mt(t.type)}}function L0e(t,e,r,n,i){let s=rot(t,r,{preserveWhitespaces:n});if(s.errors!==null){let u=s.errors.map(c=>c.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${u}`)}let a=new PV(null).bind({template:s.nodes});return{template:s,defer:xot(a,i)}}function C_(t,e){if(t.hasOwnProperty(e))return jV(new mt(t[e]),0)}function sge(t,e){if(t.hasOwnProperty(e))return new mt(t[e])}function oge(t){let e=typeof t=="function"?new mt(t):new ui(t??null);return jV(e,0)}function Aot(t){return t==null?null:t.map($0e)}function $0e(t){let e=t.attribute!=null,r=t.token===null?null:new mt(t.token),n=e?new mt(t.attribute):r;return F0e(n,e,t.host,t.optional,t.self,t.skipSelf)}function age(t){let e=t.attribute??!1,r=t.token===null?null:new mt(t.token);return F0e(r,e,t.host??!1,t.optional??!1,t.self??!1,t.skipSelf??!1)}function F0e(t,e,r,n,i,s){let o=e?C("unknown"):null;return{token:t,attributeNameType:o,host:r,optional:n,self:i,skipSelf:s}}function xot(t,e){let r=t.getDeferBlocks(),n=new Map;for(let i=0;i<r.length;i++){let s=e?.[i];n.set(r[i],s?new mt(s):null)}return{mode:0,blocks:n}}function Cot(t,e,r){let n=mot(r||{}),i=got(n,e);if(i.length)throw new Error(i.map(s=>s.msg).join(`
|
|
265
|
-
`));for(let s in t)t.hasOwnProperty(s)&&t[s].forEach(o=>{Oot(o)?n.properties[o.hostPropertyName||s]=JYe("this",s):Pot(o)&&(n.listeners[o.eventName||s]=`${s}(${(o.args||[]).join(",")})`)});return n}function Oot(t){return t.ngMetadataName==="HostBinding"}function Pot(t){return t.ngMetadataName==="HostListener"}function Not(t){return t.ngMetadataName==="Input"}function Dot(t){return t.ngMetadataName==="Output"}function Mot(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return typeof n=="string"||Array.isArray(n)?e[r]=Rot(n):e[r]={bindingPropertyName:n.publicName,classPropertyName:r,transformFunction:n.transformFunction!==null?new mt(n.transformFunction):null,required:n.isRequired,isSignal:n.isSignal},e},{})}function Rot(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 mt(t[2]):null,required:!1,isSignal:!1}}function kot(t){return t.reduce((e,r)=>{if(typeof r=="string"){let[n,i]=j0e(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 mt(r.transform):null};return e},{})}function uU(t){return t.reduce((e,r)=>{let[n,i]=j0e(r);return e[i]=n,e},{})}function j0e(t){let[e,r]=t.split(":",2).map(n=>n.trim());return[r??e,e]}function Lot(t){return{name:t.type.name,type:Cn(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??hge(t.version)}}function $ot(t){return{name:t.type.name,type:Cn(t.type),providers:t.providers!==void 0&&t.providers.length>0?new mt(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new mt(e)):[]}}function Fot(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new RV}var uge;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(uge||(uge={}));var kV=class{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return Aa.PARSABLE_DATA}},QTr=new kV;var YTr=new mU("21.1.6");Fot(ET);import*as cT from"fs";var he={};dhe(he,{ANIMATION_MODULE_TYPE:()=>mSe,APP_BOOTSTRAP_LISTENER:()=>_y,APP_ID:()=>Wa,APP_INITIALIZER:()=>rL,ApplicationInitStatus:()=>ay,ApplicationModule:()=>v6,ApplicationRef:()=>Rn,Attribute:()=>GQ,COMPILER_OPTIONS:()=>GJ,CSP_NONCE:()=>gSe,CUSTOM_ELEMENTS_SCHEMA:()=>EY,ChangeDetectionStrategy:()=>kh,ChangeDetectorRef:()=>f6,Compiler:()=>cA,CompilerFactory:()=>Qk,Component:()=>rAe,ComponentFactory:()=>PA,ComponentFactoryResolver:()=>IE,ComponentRef:()=>cZ,ContentChild:()=>PMt,ContentChildren:()=>OMt,DEFAULT_CURRENCY_CODE:()=>uAe,DOCUMENT:()=>rs,DebugElement:()=>Uh,DebugEventListener:()=>Zk,DebugNode:()=>sE,DefaultIterableDiffer:()=>m6,DestroyRef:()=>pi,Directive:()=>HJ,ENVIRONMENT_INITIALIZER:()=>es,ElementRef:()=>Rh,EmbeddedViewRef:()=>fee,EnvironmentInjector:()=>Vr,ErrorHandler:()=>La,EventEmitter:()=>bl,HOST_TAG_NAME:()=>TMt,Host:()=>jQ,HostAttributeToken:()=>lee,HostBinding:()=>oAe,HostListener:()=>aAe,INJECTOR:()=>AR,Inject:()=>kl,Injectable:()=>ce,InjectionToken:()=>F,Injector:()=>Jr,Input:()=>iAe,IterableDiffers:()=>ZA,KeyValueDiffers:()=>XA,LOCALE_ID:()=>JL,MAX_ANIMATION_TIMEOUT:()=>_X,MissingTranslationStrategy:()=>Yk,ModuleWithComponentFactories:()=>uA,NO_ERRORS_SCHEMA:()=>SY,NgModule:()=>Ey,NgModuleFactory:()=>AZ,NgModuleRef:()=>qh,NgZone:()=>Ot,Optional:()=>fy,Output:()=>sAe,OutputEmitterRef:()=>NE,PLATFORM_ID:()=>hSe,PLATFORM_INITIALIZER:()=>n4,PendingTasks:()=>$a,Pipe:()=>nAe,PlatformRef:()=>RE,Query:()=>Iy,QueryList:()=>jw,REQUEST:()=>K3t,REQUEST_CONTEXT:()=>Q3t,RESPONSE_INIT:()=>z3t,Renderer2:()=>Rk,RendererFactory2:()=>J1,RendererStyleFlags2:()=>Z1,Sanitizer:()=>Zw,SecurityContext:()=>Wd,Self:()=>$Q,SimpleChange:()=>kw,SkipSelf:()=>FQ,TRANSLATIONS:()=>cAe,TRANSLATIONS_FORMAT:()=>lAe,TemplateRef:()=>Fh,Testability:()=>iA,TestabilityRegistry:()=>oy,TransferState:()=>Qo,Type:()=>qQ,VERSION:()=>dR,Version:()=>QI,ViewChild:()=>DMt,ViewChildren:()=>NMt,ViewContainerRef:()=>J0,ViewEncapsulation:()=>Ls,ViewRef:()=>p6,afterEveryRender:()=>Kw,afterNextRender:()=>IA,afterRenderEffect:()=>_ee,asNativeElements:()=>dAe,assertInInjectionContext:()=>fn,assertNotInReactiveContext:()=>O1,assertPlatform:()=>vxe,booleanAttribute:()=>C3t,computed:()=>Xo,contentChild:()=>sxe,contentChildren:()=>oxe,createComponent:()=>H3t,createEnvironmentInjector:()=>wE,createNgModule:()=>xZ,createNgModuleRef:()=>sIe,createPlatform:()=>mxe,createPlatformFactory:()=>gxe,destroyPlatform:()=>jMt,effect:()=>a1,enableProdMode:()=>HMt,enableProfiling:()=>FZ,forwardRef:()=>u1,getDebugNode:()=>dy,getModuleFactory:()=>a3t,getNgModuleById:()=>u3t,getPlatform:()=>JA,importProvidersFrom:()=>yK,inject:()=>O,input:()=>bee,inputBinding:()=>hZ,isDevMode:()=>VMt,isSignal:()=>X4,isStandalone:()=>Al,isWritableSignal:()=>J4,linkedSignal:()=>zh,makeEnvironmentProviders:()=>hi,makeStateKey:()=>eY,mergeApplicationConfig:()=>W3t,model:()=>See,numberAttribute:()=>O3t,output:()=>nxe,outputBinding:()=>mZ,platformCore:()=>g3t,provideAppInitializer:()=>HZ,provideBrowserGlobalErrorListeners:()=>Ube,provideCheckNoChangesConfig:()=>UMt,provideEnvironmentInitializer:()=>CR,provideNgReflectAttributes:()=>g2e,providePlatformInitializer:()=>qMt,provideStabilityDebugging:()=>o3t,provideZoneChangeDetection:()=>MMt,provideZonelessChangeDetection:()=>XL,reflectComponentType:()=>G3t,resolveForwardRef:()=>Qe,resource:()=>ZJ,runInInjectionContext:()=>jd,setTestabilityGetter:()=>BZ,signal:()=>ns,twoWayBinding:()=>FTe,untracked:()=>Pi,viewChild:()=>Eee,viewChildren:()=>ixe,\u0275ANIMATIONS_DISABLED:()=>vX,\u0275AcxChangeDetectionStrategy:()=>Tk,\u0275AcxViewEncapsulation:()=>Ik,\u0275AfterRenderManager:()=>Q0,\u0275CLIENT_RENDER_MODE_FLAG:()=>Txe,\u0275CONTAINER_HEADER_OFFSET:()=>Ht,\u0275CONTROL:()=>H4,\u0275ChangeDetectionScheduler:()=>fo,\u0275ComponentFactory:()=>PA,\u0275Console:()=>Zo,\u0275DEFAULT_LOCALE_ID:()=>PE,\u0275DEFER_BLOCK_CONFIG:()=>RZ,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>MZ,\u0275DEHYDRATED_BLOCK_REGISTRY:()=>Ka,\u0275DeferBlockBehavior:()=>rA,\u0275DeferBlockState:()=>Jt,\u0275ENABLE_ROOT_COMPONENT_BOOTSTRAP:()=>fxe,\u0275EVENT_REPLAY_QUEUE:()=>uY,\u0275EffectScheduler:()=>O0,\u0275Framework:()=>cee,\u0275HydrationStatus:()=>Lh,\u0275IMAGE_CONFIG:()=>JQ,\u0275IMAGE_CONFIG_DEFAULTS:()=>XQ,\u0275INJECTOR_SCOPE:()=>b1,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>SMt,\u0275INTERNAL_APPLICATION_ERROR_HANDLER:()=>Pl,\u0275IS_ENABLED_BLOCKING_INITIAL_NAVIGATION:()=>bSe,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>Hh,\u0275IS_INCREMENTAL_HYDRATION_ENABLED:()=>c4,\u0275JSACTION_BLOCK_ELEMENT_MAP:()=>fE,\u0275JSACTION_EVENT_CONTRACT:()=>l4,\u0275LContext:()=>Bw,\u0275LocaleDataIndex:()=>Bh,\u0275NG_COMP_DEF:()=>bh,\u0275NG_DIR_DEF:()=>m1,\u0275NG_ELEMENT_ID:()=>Eh,\u0275NG_INJ_DEF:()=>i1,\u0275NG_MOD_DEF:()=>iw,\u0275NG_PIPE_DEF:()=>g1,\u0275NG_PROV_DEF:()=>D0,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>xw,\u0275NO_CHANGE:()=>At,\u0275NgModuleFactory:()=>ry,\u0275NoopNgZone:()=>s1,\u0275PERFORMANCE_MARK_PREFIX:()=>Nxe,\u0275PROVIDED_NG_ZONE:()=>Tee,\u0275PROVIDED_ZONELESS:()=>yw,\u0275PendingTasksInternal:()=>Wo,\u0275ProfilerEvent:()=>pe,\u0275R3Injector:()=>Go,\u0275ReflectionCapabilities:()=>Rw,\u0275Render3ComponentFactory:()=>zd,\u0275Render3ComponentRef:()=>Jw,\u0275Render3NgModuleRef:()=>ty,\u0275ResourceImpl:()=>Sy,\u0275RuntimeError:()=>$,\u0275SIGNAL:()=>ir,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>pY,\u0275TESTABILITY:()=>qZ,\u0275TESTABILITY_GETTER:()=>eL,\u0275TimerScheduler:()=>nA,\u0275TracingAction:()=>X1,\u0275TracingService:()=>Zd,\u0275ViewRef:()=>Kd,\u0275XSS_SECURITY_URL:()=>Fa,\u0275ZONELESS_ENABLED:()=>q0,\u0275_sanitizeHtml:()=>CY,\u0275_sanitizeUrl:()=>vA,\u0275allLeavingAnimations:()=>$h,\u0275allowSanitizationBypassAndThrow:()=>gy,\u0275annotateForHydration:()=>b3t,\u0275assertType:()=>k3t,\u0275bypassSanitizationTrustHtml:()=>JSe,\u0275bypassSanitizationTrustResourceUrl:()=>n2e,\u0275bypassSanitizationTrustScript:()=>t2e,\u0275bypassSanitizationTrustStyle:()=>e2e,\u0275bypassSanitizationTrustUrl:()=>r2e,\u0275clearResolutionOfComponentResourcesQueue:()=>eIe,\u0275compileComponent:()=>UJ,\u0275compileDirective:()=>ZL,\u0275compileNgModule:()=>jJ,\u0275compileNgModuleDefs:()=>qJ,\u0275compileNgModuleFactory:()=>cxe,\u0275compilePipe:()=>VJ,\u0275controlUpdate:()=>UIe,\u0275convertToBitFlags:()=>ph,\u0275createInjector:()=>mR,\u0275createOrReusePlatformInjector:()=>_xe,\u0275defaultIterableDiffers:()=>h3t,\u0275defaultKeyValueDiffers:()=>m3t,\u0275depsTracker:()=>jh,\u0275devModeEqual:()=>U4,\u0275disableProfiling:()=>M3t,\u0275enableProfiling:()=>D3t,\u0275encapsulateResourceError:()=>DE,\u0275findLocaleData:()=>EL,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>FJ,\u0275formatRuntimeError:()=>Tr,\u0275generateStandaloneInDeclarationsError:()=>BJ,\u0275getAsyncClassMetadataFn:()=>IIe,\u0275getClosestComponentName:()=>R3t,\u0275getComponentDef:()=>ut,\u0275getDebugNode:()=>dy,\u0275getDeferBlocks:()=>V1,\u0275getDirectives:()=>zQ,\u0275getDocument:()=>hy,\u0275getHostElement:()=>QQ,\u0275getInjectableDef:()=>d1,\u0275getLContext:()=>Ni,\u0275getLocaleCurrencyCode:()=>XIe,\u0275getLocalePluralCase:()=>LX,\u0275getOutputDestroyRef:()=>hAe,\u0275getSanitizationBypassType:()=>xY,\u0275getTransferState:()=>jZ,\u0275getUnknownElementStrictMode:()=>KSe,\u0275getUnknownPropertyStrictMode:()=>QSe,\u0275global:()=>Nn,\u0275inferTagNameFromDefinition:()=>gZ,\u0275injectChangeDetectorRef:()=>wxe,\u0275internalCreateApplication:()=>y3t,\u0275internalProvideZoneChangeDetection:()=>lxe,\u0275isBoundToModule:()=>KZ,\u0275isComponentDefPendingResolution:()=>XTe,\u0275isEnvironmentProviders:()=>h1,\u0275isInjectable:()=>obe,\u0275isNgModule:()=>Nh,\u0275isPromise:()=>tL,\u0275isSubscribable:()=>VZ,\u0275isViewDirty:()=>rTe,\u0275markForRefresh:()=>nTe,\u0275noSideEffects:()=>Ga,\u0275patchComponentDefWithScope:()=>QL,\u0275performanceMarkFeature:()=>Gr,\u0275promiseWithResolvers:()=>kA,\u0275provideZonelessChangeDetectionInternal:()=>zA,\u0275publishExternalGlobalUtil:()=>NIe,\u0275readHydrationInfo:()=>gY,\u0275registerLocaleData:()=>ZIe,\u0275renderDeferBlockState:()=>Ml,\u0275resetCompiledComponents:()=>Wwe,\u0275resetIncrementalHydrationEnabledWarnedForTests:()=>kSe,\u0275resetJitOptions:()=>Hwe,\u0275resolveComponentResources:()=>IZ,\u0275restoreComponentResolutionQueue:()=>tIe,\u0275setAllowDuplicateNgModuleIdsForTest:()=>iIe,\u0275setAlternateWeakRefImpl:()=>Y_e,\u0275setClassDebugInfo:()=>kJ,\u0275setClassMetadata:()=>Mi,\u0275setClassMetadataAsync:()=>LZ,\u0275setCurrentInjector:()=>Ho,\u0275setDocument:()=>pSe,\u0275setInjectorProfilerContext:()=>dn,\u0275setLocaleId:()=>$X,\u0275setUnknownElementStrictMode:()=>WSe,\u0275setUnknownPropertyStrictMode:()=>zSe,\u0275startMeasuring:()=>P3t,\u0275stopMeasuring:()=>N3t,\u0275store:()=>I1,\u0275stringify:()=>Vt,\u0275transitiveScopesFor:()=>YL,\u0275triggerResourceLoading:()=>$A,\u0275truncateMiddle:()=>iK,\u0275unregisterLocaleData:()=>JIe,\u0275unwrapSafeValue:()=>Ll,\u0275unwrapWritableSignal:()=>Vbe,\u0275withDomHydration:()=>r3t,\u0275withEventReplay:()=>Exe,\u0275withI18nSupport:()=>n3t,\u0275withIncrementalHydration:()=>i3t,\u0275\u0275ExternalStylesFeature:()=>hJ,\u0275\u0275FactoryTarget:()=>qt,\u0275\u0275HostDirectivesFeature:()=>NZ,\u0275\u0275InheritDefinitionFeature:()=>K4,\u0275\u0275NgOnChangesFeature:()=>BQ,\u0275\u0275ProvidersFeature:()=>pJ,\u0275\u0275advance:()=>HY,\u0275\u0275animateEnter:()=>G1,\u0275\u0275animateEnterListener:()=>W1,\u0275\u0275animateLeave:()=>K1,\u0275\u0275animateLeaveListener:()=>sA,\u0275\u0275ariaProperty:()=>nL,\u0275\u0275attachSourceLocations:()=>rJ,\u0275\u0275attribute:()=>iL,\u0275\u0275classMap:()=>ZX,\u0275\u0275classProp:()=>LL,\u0275\u0275componentInstance:()=>EX,\u0275\u0275conditional:()=>OX,\u0275\u0275conditionalBranchCreate:()=>FA,\u0275\u0275conditionalCreate:()=>CX,\u0275\u0275contentQuery:()=>NL,\u0275\u0275contentQuerySignal:()=>ML,\u0275\u0275control:()=>TX,\u0275\u0275controlCreate:()=>SX,\u0275\u0275declareLet:()=>zL,\u0275\u0275defer:()=>QZ,\u0275\u0275deferEnableTimerScheduling:()=>kZ,\u0275\u0275deferHydrateNever:()=>JZ,\u0275\u0275deferHydrateOnHover:()=>dX,\u0275\u0275deferHydrateOnIdle:()=>rX,\u0275\u0275deferHydrateOnImmediate:()=>sX,\u0275\u0275deferHydrateOnInteraction:()=>hX,\u0275\u0275deferHydrateOnTimer:()=>uX,\u0275\u0275deferHydrateOnViewport:()=>yX,\u0275\u0275deferHydrateWhen:()=>XZ,\u0275\u0275deferOnHover:()=>cX,\u0275\u0275deferOnIdle:()=>eX,\u0275\u0275deferOnImmediate:()=>nX,\u0275\u0275deferOnInteraction:()=>fX,\u0275\u0275deferOnTimer:()=>oX,\u0275\u0275deferOnViewport:()=>mX,\u0275\u0275deferPrefetchOnHover:()=>lX,\u0275\u0275deferPrefetchOnIdle:()=>tX,\u0275\u0275deferPrefetchOnImmediate:()=>iX,\u0275\u0275deferPrefetchOnInteraction:()=>pX,\u0275\u0275deferPrefetchOnTimer:()=>aX,\u0275\u0275deferPrefetchOnViewport:()=>gX,\u0275\u0275deferPrefetchWhen:()=>ZZ,\u0275\u0275deferWhen:()=>YZ,\u0275\u0275defineComponent:()=>CZ,\u0275\u0275defineDirective:()=>OZ,\u0275\u0275defineInjectable:()=>Zt,\u0275\u0275defineInjector:()=>l1,\u0275\u0275defineNgModule:()=>W4,\u0275\u0275definePipe:()=>PZ,\u0275\u0275directiveInject:()=>Wh,\u0275\u0275disableBindings:()=>qR,\u0275\u0275domElement:()=>mL,\u0275\u0275domElementContainer:()=>vL,\u0275\u0275domElementContainerEnd:()=>yL,\u0275\u0275domElementContainerStart:()=>HA,\u0275\u0275domElementEnd:()=>UA,\u0275\u0275domElementStart:()=>BA,\u0275\u0275domListener:()=>PL,\u0275\u0275domProperty:()=>_L,\u0275\u0275domTemplate:()=>Q4,\u0275\u0275element:()=>hL,\u0275\u0275elementContainer:()=>gL,\u0275\u0275elementContainerEnd:()=>OE,\u0275\u0275elementContainerStart:()=>VA,\u0275\u0275elementEnd:()=>qA,\u0275\u0275elementStart:()=>jA,\u0275\u0275enableBindings:()=>jR,\u0275\u0275getComponentDepsFactory:()=>RJ,\u0275\u0275getCurrentView:()=>kX,\u0275\u0275getInheritedFactory:()=>HQ,\u0275\u0275getReplaceMetadataURL:()=>LJ,\u0275\u0275i18n:()=>FX,\u0275\u0275i18nApply:()=>qX,\u0275\u0275i18nAttributes:()=>jX,\u0275\u0275i18nEnd:()=>AL,\u0275\u0275i18nExp:()=>xL,\u0275\u0275i18nPostprocess:()=>BX,\u0275\u0275i18nStart:()=>wL,\u0275\u0275inject:()=>Gn,\u0275\u0275injectAttribute:()=>fA,\u0275\u0275interpolate:()=>nJ,\u0275\u0275interpolate1:()=>iJ,\u0275\u0275interpolate2:()=>sJ,\u0275\u0275interpolate3:()=>oJ,\u0275\u0275interpolate4:()=>aJ,\u0275\u0275interpolate5:()=>uJ,\u0275\u0275interpolate6:()=>cJ,\u0275\u0275interpolate7:()=>lJ,\u0275\u0275interpolate8:()=>dJ,\u0275\u0275interpolateV:()=>fJ,\u0275\u0275invalidFactory:()=>dZ,\u0275\u0275invalidFactoryDep:()=>ow,\u0275\u0275listener:()=>CL,\u0275\u0275loadQuery:()=>KX,\u0275\u0275namespaceHTML:()=>ZR,\u0275\u0275namespaceMathML:()=>YR,\u0275\u0275namespaceSVG:()=>QR,\u0275\u0275nextContext:()=>VX,\u0275\u0275ngDeclareClassMetadata:()=>wr,\u0275\u0275ngDeclareClassMetadataAsync:()=>$3t,\u0275\u0275ngDeclareComponent:()=>F3t,\u0275\u0275ngDeclareDirective:()=>L3t,\u0275\u0275ngDeclareFactory:()=>Ar,\u0275\u0275ngDeclareInjectable:()=>Wr,\u0275\u0275ngDeclareInjector:()=>ex,\u0275\u0275ngDeclareNgModule:()=>tx,\u0275\u0275ngDeclarePipe:()=>q3t,\u0275\u0275pipe:()=>xJ,\u0275\u0275pipeBind1:()=>CJ,\u0275\u0275pipeBind2:()=>OJ,\u0275\u0275pipeBind3:()=>PJ,\u0275\u0275pipeBind4:()=>NJ,\u0275\u0275pipeBindV:()=>DJ,\u0275\u0275projection:()=>GX,\u0275\u0275projectionDef:()=>HX,\u0275\u0275property:()=>pL,\u0275\u0275pureFunction0:()=>yJ,\u0275\u0275pureFunction1:()=>vJ,\u0275\u0275pureFunction2:()=>_J,\u0275\u0275pureFunction3:()=>bJ,\u0275\u0275pureFunction4:()=>EJ,\u0275\u0275pureFunction5:()=>SJ,\u0275\u0275pureFunction6:()=>TJ,\u0275\u0275pureFunction7:()=>IJ,\u0275\u0275pureFunction8:()=>wJ,\u0275\u0275pureFunctionV:()=>AJ,\u0275\u0275queryAdvance:()=>zX,\u0275\u0275queryRefresh:()=>WX,\u0275\u0275readContextLet:()=>tJ,\u0275\u0275reference:()=>QX,\u0275\u0275registerNgModuleType:()=>G4,\u0275\u0275repeater:()=>DX,\u0275\u0275repeaterCreate:()=>NX,\u0275\u0275repeaterTrackByIdentity:()=>fL,\u0275\u0275repeaterTrackByIndex:()=>PX,\u0275\u0275replaceMetadata:()=>$J,\u0275\u0275resetView:()=>UR,\u0275\u0275resolveBody:()=>E4,\u0275\u0275resolveDocument:()=>jY,\u0275\u0275resolveWindow:()=>FY,\u0275\u0275restoreView:()=>BR,\u0275\u0275sanitizeHtml:()=>NY,\u0275\u0275sanitizeResourceUrl:()=>b4,\u0275\u0275sanitizeScript:()=>MY,\u0275\u0275sanitizeStyle:()=>DY,\u0275\u0275sanitizeUrl:()=>_4,\u0275\u0275sanitizeUrlOrResourceUrl:()=>LY,\u0275\u0275setComponentScope:()=>mJ,\u0275\u0275setNgModuleScope:()=>gJ,\u0275\u0275storeLet:()=>eJ,\u0275\u0275styleMap:()=>YX,\u0275\u0275styleProp:()=>kL,\u0275\u0275syntheticHostListener:()=>OL,\u0275\u0275syntheticHostProperty:()=>bL,\u0275\u0275template:()=>z4,\u0275\u0275templateRefExtractor:()=>MJ,\u0275\u0275text:()=>XX,\u0275\u0275textInterpolate:()=>$L,\u0275\u0275textInterpolate1:()=>GA,\u0275\u0275textInterpolate2:()=>FL,\u0275\u0275textInterpolate3:()=>jL,\u0275\u0275textInterpolate4:()=>qL,\u0275\u0275textInterpolate5:()=>BL,\u0275\u0275textInterpolate6:()=>UL,\u0275\u0275textInterpolate7:()=>VL,\u0275\u0275textInterpolate8:()=>HL,\u0275\u0275textInterpolateV:()=>GL,\u0275\u0275trustConstantHtml:()=>RY,\u0275\u0275trustConstantResourceUrl:()=>kY,\u0275\u0275twoWayBindingSet:()=>JX,\u0275\u0275twoWayListener:()=>KL,\u0275\u0275twoWayProperty:()=>WL,\u0275\u0275validateAttribute:()=>$Y,\u0275\u0275viewQuery:()=>DL,\u0275\u0275viewQuerySignal:()=>RL});var Ai=null,OI=!1,oH=1,jot=null,ir=Symbol("SIGNAL");function Oe(t){let e=Ai;return Ai=t,e}function f0(){return Ai}function aH(){return OI}var Ad={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 xd(t){if(OI)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Ai===null)return;Ai.consumerOnSignalRead(t);let e=Ai.producersTail;if(e!==void 0&&e.producer===t)return;let r,n=Ai.recomputing;if(n&&(r=e!==void 0?e.nextProducer:Ai.producers,r!==void 0&&r.producer===t)){Ai.producersTail=r,r.lastReadVersion=t.version;return}let i=t.consumersTail;if(i!==void 0&&i.consumer===Ai&&(!n||qot(i,Ai)))return;let s=db(Ai),o={producer:t,consumer:Ai,nextProducer:r,prevConsumer:i,lastReadVersion:t.version,nextConsumer:void 0};Ai.producersTail=o,e!==void 0?e.nextProducer=o:Ai.producers=o,s&&H0e(t,o)}function q0e(){oH++}function p0(t){if(!(db(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===oH)){if(!t.producerMustRecompute(t)&&!h0(t)){lb(t);return}t.producerRecomputeValue(t),lb(t)}}function uH(t){if(t.consumers===void 0)return;let e=OI;OI=!0;try{for(let r=t.consumers;r!==void 0;r=r.nextConsumer){let n=r.consumer;n.dirty||B0e(n)}}finally{OI=e}}function cH(){return Ai?.consumerAllowSignalWrites!==!1}function B0e(t){t.dirty=!0,uH(t),t.consumerMarkedDirty?.(t)}function lb(t){t.dirty=!1,t.lastCleanEpoch=oH}function fl(t){return t&&U0e(t),Oe(t)}function U0e(t){t.producersTail=void 0,t.recomputing=!0}function Cd(t,e){Oe(e),t&&V0e(t)}function V0e(t){t.recomputing=!1;let e=t.producersTail,r=e!==void 0?e.nextProducer:t.producers;if(r!==void 0){if(db(t))do r=lH(r);while(r!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function h0(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let r=e.producer,n=e.lastReadVersion;if(n!==r.version||(p0(r),n!==r.version))return!0}return!1}function Od(t){if(db(t)){let e=t.producers;for(;e!==void 0;)e=lH(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function H0e(t,e){let r=t.consumersTail,n=db(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)H0e(i.producer,i)}function lH(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,!db(e)){let s=e.producers;for(;s!==void 0;)s=lH(s)}return r}function db(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function PI(t){jot?.(t)}function qot(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 NI(t,e){return Object.is(t,e)}function DI(t,e){let r=Object.create(Bot);r.computation=t,e!==void 0&&(r.equal=e);let n=()=>{if(p0(r),xd(r),r.value===dl)throw r.error;return r.value};if(n[ir]=r,typeof ngDevMode<"u"&&ngDevMode){let i=r.debugName?" ("+r.debugName+")":"";n.toString=()=>`[Computed${i}: ${String(r.value)}]`}return PI(r),n}var Vp=Symbol("UNSET"),d0=Symbol("COMPUTING"),dl=Symbol("ERRORED"),Bot={...Ad,value:Vp,dirty:!0,error:null,equal:NI,kind:"computed",producerMustRecompute(t){return t.value===Vp||t.value===d0},producerRecomputeValue(t){if(t.value===d0)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=d0;let r=fl(t),n,i=!1;try{n=t.computation(),Oe(null),i=e!==Vp&&e!==dl&&n!==dl&&t.equal(e,n)}catch(s){n=dl,t.error=s}finally{Cd(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function Uot(){throw new Error}var G0e=Uot;function W0e(t){G0e(t)}function dH(t){G0e=t}var Vot=null;function fH(t,e){let r=Object.create(MI);r.value=t,e!==void 0&&(r.equal=e);let n=()=>K0e(r);if(n[ir]=r,typeof ngDevMode<"u"&&ngDevMode){let o=r.debugName?" ("+r.debugName+")":"";n.toString=()=>`[Signal${o}: ${String(r.value)}]`}return PI(r),[n,o=>Hp(r,o),o=>qM(r,o)]}function K0e(t){return xd(t),t.value}function Hp(t,e){cH()||W0e(t),t.equal(t.value,e)||(t.value=e,Hot(t))}function qM(t,e){cH()||W0e(t),Hp(t,e(t.value))}var MI={...Ad,equal:NI,value:void 0,kind:"signal"};function Hot(t){t.version++,q0e(),uH(t),Vot?.(t)}function pH(t){let e=Oe(null);try{return t()}finally{Oe(e)}}var hH={...Ad,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};function mH(t){if(t.dirty=!1,t.version>0&&!h0(t))return;t.version++;let e=fl(t);try{t.cleanup(),t.fn()}finally{Cd(t,e)}}var vh=J(sr(),1);var qW;function cR(){return qW}function Ho(t){let e=qW;return qW=t,e}var K_e=Symbol("NotFound");function t1(t){return t===K_e||t?.name==="\u0275NotFound"}function BW(t,e,r){let n=Object.create(tSt);n.source=t,n.computation=e,r!=null&&(n.equal=r);let s=()=>{if(p0(n),xd(n),n.value===dl)throw n.error;return n.value};if(s[ir]=n,typeof ngDevMode<"u"&&ngDevMode){let o=n.debugName?" ("+n.debugName+")":"";s.toString=()=>`[LinkedSignal${o}: ${String(n.value)}]`}return PI(n),s}function z_e(t,e){p0(t),Hp(t,e),lb(t)}function Q_e(t,e){if(p0(t),t.value===dl)throw t.error;qM(t,e),lb(t)}var tSt={...Ad,value:Vp,dirty:!0,error:null,equal:NI,kind:"linkedSignal",producerMustRecompute(t){return t.value===Vp||t.value===d0},producerRecomputeValue(t){if(t.value===d0)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=d0;let r=fl(t),n;try{let i=t.source(),s=e===Vp||e===dl?void 0:{source:t.sourceValue,value:e};n=t.computation(i,s),t.sourceValue=i}catch(i){n=dl,t.error=i}finally{Cd(t,r)}if(e!==Vp&&n!==dl&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}};function Y_e(t){}var VW={header:(t,e)=>{if(!UW(t)||e?.ngSkipFormatting)return null;let r;try{r=t()}catch(s){return["span",`Signal(\u26A0\uFE0F Error)${s.message?`: ${s.message}`:""}`]}let n="computation"in t[ir]?"Computed":"Signal",i=r===null||!Array.isArray(r)&&typeof r!="object";return["span",{},["span",{},`${n}(`],UW(r)?VW.header(r,e):i&&r!==void 0&&typeof r!="function"?["object",{object:r}]:rSt(r),["span",{},")"]]},hasBody:(t,e)=>{if(!UW(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 rSt(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 UW(t){return t[ir]!==void 0}function nSt(){globalThis.devtoolsFormatters??=[],globalThis.devtoolsFormatters.some(t=>t===VW)||globalThis.devtoolsFormatters.push(VW)}(typeof ngDevMode>"u"||ngDevMode)&&nSt();var QI=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(".")}},dR=new QI("21.1.6"),nK=(()=>{let t=dR.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="20.5.3"?"next":`v${dR.major}`}.angular.dev`})(),vR=`${nK}/errors`,Fa="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",$=class extends Error{code;constructor(e,r){super(Tr(e,r)),this.code=e}};function iSt(t){return`NG0${Math.abs(t)}`}function Tr(t,e){let r=iSt(t),n=`${r}${e?": "+e:""}`;if(ngDevMode&&t<0){let s=!n.match(/[.,;!?\n]$/)?".":"";n=`${n}${s} Find more at ${vR}/${r}`}return n}var Nn=globalThis;function sSt(){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 Nn.ngDevMode!="object"&&(Nn.ngDevMode={}),Object.assign(Nn.ngDevMode,e)):Nn.ngDevMode=!1,e}function _R(){return typeof ngDevMode>"u"||ngDevMode?((typeof ngDevMode!="object"||Object.keys(ngDevMode).length===0)&&sSt(),typeof ngDevMode<"u"&&!!ngDevMode):!1}function Ye(t){for(let e in t)if(t[e]===Ye)return e;throw Error(typeof ngDevMode<"u"&&ngDevMode?"Could not find renamed property on target object.":"")}function rbe(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Vt(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Vt).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(`
|
|
265
|
+
`));for(let s in t)t.hasOwnProperty(s)&&t[s].forEach(o=>{Oot(o)?n.properties[o.hostPropertyName||s]=JYe("this",s):Pot(o)&&(n.listeners[o.eventName||s]=`${s}(${(o.args||[]).join(",")})`)});return n}function Oot(t){return t.ngMetadataName==="HostBinding"}function Pot(t){return t.ngMetadataName==="HostListener"}function Not(t){return t.ngMetadataName==="Input"}function Dot(t){return t.ngMetadataName==="Output"}function Mot(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return typeof n=="string"||Array.isArray(n)?e[r]=Rot(n):e[r]={bindingPropertyName:n.publicName,classPropertyName:r,transformFunction:n.transformFunction!==null?new mt(n.transformFunction):null,required:n.isRequired,isSignal:n.isSignal},e},{})}function Rot(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 mt(t[2]):null,required:!1,isSignal:!1}}function kot(t){return t.reduce((e,r)=>{if(typeof r=="string"){let[n,i]=j0e(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 mt(r.transform):null};return e},{})}function uU(t){return t.reduce((e,r)=>{let[n,i]=j0e(r);return e[i]=n,e},{})}function j0e(t){let[e,r]=t.split(":",2).map(n=>n.trim());return[r??e,e]}function Lot(t){return{name:t.type.name,type:Cn(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??hge(t.version)}}function $ot(t){return{name:t.type.name,type:Cn(t.type),providers:t.providers!==void 0&&t.providers.length>0?new mt(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new mt(e)):[]}}function Fot(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new RV}var uge;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(uge||(uge={}));var kV=class{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return Aa.PARSABLE_DATA}},QTr=new kV;var YTr=new mU("21.1.6");Fot(ET);import*as cT from"fs";var he={};dhe(he,{ANIMATION_MODULE_TYPE:()=>mSe,APP_BOOTSTRAP_LISTENER:()=>_y,APP_ID:()=>Wa,APP_INITIALIZER:()=>rL,ApplicationInitStatus:()=>ay,ApplicationModule:()=>v6,ApplicationRef:()=>Rn,Attribute:()=>GQ,COMPILER_OPTIONS:()=>GJ,CSP_NONCE:()=>gSe,CUSTOM_ELEMENTS_SCHEMA:()=>EY,ChangeDetectionStrategy:()=>kh,ChangeDetectorRef:()=>f6,Compiler:()=>cA,CompilerFactory:()=>Qk,Component:()=>rAe,ComponentFactory:()=>PA,ComponentFactoryResolver:()=>IE,ComponentRef:()=>cZ,ContentChild:()=>PMt,ContentChildren:()=>OMt,DEFAULT_CURRENCY_CODE:()=>uAe,DOCUMENT:()=>rs,DebugElement:()=>Uh,DebugEventListener:()=>Zk,DebugNode:()=>sE,DefaultIterableDiffer:()=>m6,DestroyRef:()=>pi,Directive:()=>HJ,ENVIRONMENT_INITIALIZER:()=>es,ElementRef:()=>Rh,EmbeddedViewRef:()=>fee,EnvironmentInjector:()=>Vr,ErrorHandler:()=>La,EventEmitter:()=>bl,HOST_TAG_NAME:()=>TMt,Host:()=>jQ,HostAttributeToken:()=>lee,HostBinding:()=>oAe,HostListener:()=>aAe,INJECTOR:()=>AR,Inject:()=>kl,Injectable:()=>ce,InjectionToken:()=>F,Injector:()=>Jr,Input:()=>iAe,IterableDiffers:()=>ZA,KeyValueDiffers:()=>XA,LOCALE_ID:()=>JL,MAX_ANIMATION_TIMEOUT:()=>_X,MissingTranslationStrategy:()=>Yk,ModuleWithComponentFactories:()=>uA,NO_ERRORS_SCHEMA:()=>SY,NgModule:()=>Ey,NgModuleFactory:()=>AZ,NgModuleRef:()=>qh,NgZone:()=>Ot,Optional:()=>fy,Output:()=>sAe,OutputEmitterRef:()=>NE,PLATFORM_ID:()=>hSe,PLATFORM_INITIALIZER:()=>n4,PendingTasks:()=>$a,Pipe:()=>nAe,PlatformRef:()=>RE,Query:()=>Iy,QueryList:()=>jw,REQUEST:()=>K3t,REQUEST_CONTEXT:()=>Q3t,RESPONSE_INIT:()=>z3t,Renderer2:()=>Rk,RendererFactory2:()=>J1,RendererStyleFlags2:()=>Z1,Sanitizer:()=>Zw,SecurityContext:()=>Wd,Self:()=>$Q,SimpleChange:()=>kw,SkipSelf:()=>FQ,TRANSLATIONS:()=>cAe,TRANSLATIONS_FORMAT:()=>lAe,TemplateRef:()=>Fh,Testability:()=>iA,TestabilityRegistry:()=>oy,TransferState:()=>Qo,Type:()=>qQ,VERSION:()=>dR,Version:()=>QI,ViewChild:()=>DMt,ViewChildren:()=>NMt,ViewContainerRef:()=>J0,ViewEncapsulation:()=>Ls,ViewRef:()=>p6,afterEveryRender:()=>Kw,afterNextRender:()=>IA,afterRenderEffect:()=>_ee,asNativeElements:()=>dAe,assertInInjectionContext:()=>fn,assertNotInReactiveContext:()=>O1,assertPlatform:()=>vxe,booleanAttribute:()=>C3t,computed:()=>Xo,contentChild:()=>sxe,contentChildren:()=>oxe,createComponent:()=>H3t,createEnvironmentInjector:()=>wE,createNgModule:()=>xZ,createNgModuleRef:()=>sIe,createPlatform:()=>mxe,createPlatformFactory:()=>gxe,destroyPlatform:()=>jMt,effect:()=>a1,enableProdMode:()=>HMt,enableProfiling:()=>FZ,forwardRef:()=>u1,getDebugNode:()=>dy,getModuleFactory:()=>a3t,getNgModuleById:()=>u3t,getPlatform:()=>JA,importProvidersFrom:()=>yK,inject:()=>O,input:()=>bee,inputBinding:()=>hZ,isDevMode:()=>VMt,isSignal:()=>X4,isStandalone:()=>Al,isWritableSignal:()=>J4,linkedSignal:()=>zh,makeEnvironmentProviders:()=>hi,makeStateKey:()=>eY,mergeApplicationConfig:()=>W3t,model:()=>See,numberAttribute:()=>O3t,output:()=>nxe,outputBinding:()=>mZ,platformCore:()=>g3t,provideAppInitializer:()=>HZ,provideBrowserGlobalErrorListeners:()=>Ube,provideCheckNoChangesConfig:()=>UMt,provideEnvironmentInitializer:()=>CR,provideNgReflectAttributes:()=>g2e,providePlatformInitializer:()=>qMt,provideStabilityDebugging:()=>o3t,provideZoneChangeDetection:()=>MMt,provideZonelessChangeDetection:()=>XL,reflectComponentType:()=>G3t,resolveForwardRef:()=>Qe,resource:()=>ZJ,runInInjectionContext:()=>jd,setTestabilityGetter:()=>BZ,signal:()=>ns,twoWayBinding:()=>FTe,untracked:()=>Pi,viewChild:()=>Eee,viewChildren:()=>ixe,\u0275ANIMATIONS_DISABLED:()=>vX,\u0275AcxChangeDetectionStrategy:()=>Tk,\u0275AcxViewEncapsulation:()=>Ik,\u0275AfterRenderManager:()=>Q0,\u0275CLIENT_RENDER_MODE_FLAG:()=>Txe,\u0275CONTAINER_HEADER_OFFSET:()=>Ht,\u0275CONTROL:()=>H4,\u0275ChangeDetectionScheduler:()=>fo,\u0275ComponentFactory:()=>PA,\u0275Console:()=>Zo,\u0275DEFAULT_LOCALE_ID:()=>PE,\u0275DEFER_BLOCK_CONFIG:()=>RZ,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>MZ,\u0275DEHYDRATED_BLOCK_REGISTRY:()=>Ka,\u0275DeferBlockBehavior:()=>rA,\u0275DeferBlockState:()=>Jt,\u0275ENABLE_ROOT_COMPONENT_BOOTSTRAP:()=>fxe,\u0275EVENT_REPLAY_QUEUE:()=>uY,\u0275EffectScheduler:()=>O0,\u0275Framework:()=>cee,\u0275HydrationStatus:()=>Lh,\u0275IMAGE_CONFIG:()=>JQ,\u0275IMAGE_CONFIG_DEFAULTS:()=>XQ,\u0275INJECTOR_SCOPE:()=>b1,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>SMt,\u0275INTERNAL_APPLICATION_ERROR_HANDLER:()=>Pl,\u0275IS_ENABLED_BLOCKING_INITIAL_NAVIGATION:()=>bSe,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>Hh,\u0275IS_INCREMENTAL_HYDRATION_ENABLED:()=>c4,\u0275JSACTION_BLOCK_ELEMENT_MAP:()=>fE,\u0275JSACTION_EVENT_CONTRACT:()=>l4,\u0275LContext:()=>Bw,\u0275LocaleDataIndex:()=>Bh,\u0275NG_COMP_DEF:()=>bh,\u0275NG_DIR_DEF:()=>m1,\u0275NG_ELEMENT_ID:()=>Eh,\u0275NG_INJ_DEF:()=>i1,\u0275NG_MOD_DEF:()=>iw,\u0275NG_PIPE_DEF:()=>g1,\u0275NG_PROV_DEF:()=>D0,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>xw,\u0275NO_CHANGE:()=>At,\u0275NgModuleFactory:()=>ry,\u0275NoopNgZone:()=>s1,\u0275PERFORMANCE_MARK_PREFIX:()=>Nxe,\u0275PROVIDED_NG_ZONE:()=>Tee,\u0275PROVIDED_ZONELESS:()=>yw,\u0275PendingTasksInternal:()=>Wo,\u0275ProfilerEvent:()=>pe,\u0275R3Injector:()=>Go,\u0275ReflectionCapabilities:()=>Rw,\u0275Render3ComponentFactory:()=>zd,\u0275Render3ComponentRef:()=>Jw,\u0275Render3NgModuleRef:()=>ty,\u0275ResourceImpl:()=>Sy,\u0275RuntimeError:()=>$,\u0275SIGNAL:()=>ir,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>pY,\u0275TESTABILITY:()=>qZ,\u0275TESTABILITY_GETTER:()=>eL,\u0275TimerScheduler:()=>nA,\u0275TracingAction:()=>X1,\u0275TracingService:()=>Zd,\u0275ViewRef:()=>Kd,\u0275XSS_SECURITY_URL:()=>Fa,\u0275ZONELESS_ENABLED:()=>q0,\u0275_sanitizeHtml:()=>CY,\u0275_sanitizeUrl:()=>vA,\u0275allLeavingAnimations:()=>$h,\u0275allowSanitizationBypassAndThrow:()=>gy,\u0275annotateForHydration:()=>b3t,\u0275assertType:()=>k3t,\u0275bypassSanitizationTrustHtml:()=>JSe,\u0275bypassSanitizationTrustResourceUrl:()=>n2e,\u0275bypassSanitizationTrustScript:()=>t2e,\u0275bypassSanitizationTrustStyle:()=>e2e,\u0275bypassSanitizationTrustUrl:()=>r2e,\u0275clearResolutionOfComponentResourcesQueue:()=>eIe,\u0275compileComponent:()=>UJ,\u0275compileDirective:()=>ZL,\u0275compileNgModule:()=>jJ,\u0275compileNgModuleDefs:()=>qJ,\u0275compileNgModuleFactory:()=>cxe,\u0275compilePipe:()=>VJ,\u0275controlUpdate:()=>UIe,\u0275convertToBitFlags:()=>ph,\u0275createInjector:()=>mR,\u0275createOrReusePlatformInjector:()=>_xe,\u0275defaultIterableDiffers:()=>h3t,\u0275defaultKeyValueDiffers:()=>m3t,\u0275depsTracker:()=>jh,\u0275devModeEqual:()=>U4,\u0275disableProfiling:()=>M3t,\u0275enableProfiling:()=>D3t,\u0275encapsulateResourceError:()=>DE,\u0275findLocaleData:()=>EL,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>FJ,\u0275formatRuntimeError:()=>Tr,\u0275generateStandaloneInDeclarationsError:()=>BJ,\u0275getAsyncClassMetadataFn:()=>IIe,\u0275getClosestComponentName:()=>R3t,\u0275getComponentDef:()=>ut,\u0275getDebugNode:()=>dy,\u0275getDeferBlocks:()=>V1,\u0275getDirectives:()=>zQ,\u0275getDocument:()=>hy,\u0275getHostElement:()=>QQ,\u0275getInjectableDef:()=>d1,\u0275getLContext:()=>Ni,\u0275getLocaleCurrencyCode:()=>XIe,\u0275getLocalePluralCase:()=>LX,\u0275getOutputDestroyRef:()=>hAe,\u0275getSanitizationBypassType:()=>xY,\u0275getTransferState:()=>jZ,\u0275getUnknownElementStrictMode:()=>KSe,\u0275getUnknownPropertyStrictMode:()=>QSe,\u0275global:()=>Nn,\u0275inferTagNameFromDefinition:()=>gZ,\u0275injectChangeDetectorRef:()=>wxe,\u0275internalCreateApplication:()=>y3t,\u0275internalProvideZoneChangeDetection:()=>lxe,\u0275isBoundToModule:()=>KZ,\u0275isComponentDefPendingResolution:()=>XTe,\u0275isEnvironmentProviders:()=>h1,\u0275isInjectable:()=>obe,\u0275isNgModule:()=>Nh,\u0275isPromise:()=>tL,\u0275isSubscribable:()=>VZ,\u0275isViewDirty:()=>rTe,\u0275markForRefresh:()=>nTe,\u0275noSideEffects:()=>Ga,\u0275patchComponentDefWithScope:()=>QL,\u0275performanceMarkFeature:()=>Gr,\u0275promiseWithResolvers:()=>kA,\u0275provideZonelessChangeDetectionInternal:()=>zA,\u0275publishExternalGlobalUtil:()=>NIe,\u0275readHydrationInfo:()=>gY,\u0275registerLocaleData:()=>ZIe,\u0275renderDeferBlockState:()=>Ml,\u0275resetCompiledComponents:()=>Wwe,\u0275resetIncrementalHydrationEnabledWarnedForTests:()=>kSe,\u0275resetJitOptions:()=>Hwe,\u0275resolveComponentResources:()=>IZ,\u0275restoreComponentResolutionQueue:()=>tIe,\u0275setAllowDuplicateNgModuleIdsForTest:()=>iIe,\u0275setAlternateWeakRefImpl:()=>Y_e,\u0275setClassDebugInfo:()=>kJ,\u0275setClassMetadata:()=>Mi,\u0275setClassMetadataAsync:()=>LZ,\u0275setCurrentInjector:()=>Ho,\u0275setDocument:()=>pSe,\u0275setInjectorProfilerContext:()=>dn,\u0275setLocaleId:()=>$X,\u0275setUnknownElementStrictMode:()=>WSe,\u0275setUnknownPropertyStrictMode:()=>zSe,\u0275startMeasuring:()=>P3t,\u0275stopMeasuring:()=>N3t,\u0275store:()=>I1,\u0275stringify:()=>Vt,\u0275transitiveScopesFor:()=>YL,\u0275triggerResourceLoading:()=>$A,\u0275truncateMiddle:()=>iK,\u0275unregisterLocaleData:()=>JIe,\u0275unwrapSafeValue:()=>Ll,\u0275unwrapWritableSignal:()=>Vbe,\u0275withDomHydration:()=>r3t,\u0275withEventReplay:()=>Exe,\u0275withI18nSupport:()=>n3t,\u0275withIncrementalHydration:()=>i3t,\u0275\u0275ExternalStylesFeature:()=>hJ,\u0275\u0275FactoryTarget:()=>qt,\u0275\u0275HostDirectivesFeature:()=>NZ,\u0275\u0275InheritDefinitionFeature:()=>K4,\u0275\u0275NgOnChangesFeature:()=>BQ,\u0275\u0275ProvidersFeature:()=>pJ,\u0275\u0275advance:()=>HY,\u0275\u0275animateEnter:()=>G1,\u0275\u0275animateEnterListener:()=>W1,\u0275\u0275animateLeave:()=>K1,\u0275\u0275animateLeaveListener:()=>sA,\u0275\u0275ariaProperty:()=>nL,\u0275\u0275attachSourceLocations:()=>rJ,\u0275\u0275attribute:()=>iL,\u0275\u0275classMap:()=>ZX,\u0275\u0275classProp:()=>LL,\u0275\u0275componentInstance:()=>EX,\u0275\u0275conditional:()=>OX,\u0275\u0275conditionalBranchCreate:()=>FA,\u0275\u0275conditionalCreate:()=>CX,\u0275\u0275contentQuery:()=>NL,\u0275\u0275contentQuerySignal:()=>ML,\u0275\u0275control:()=>TX,\u0275\u0275controlCreate:()=>SX,\u0275\u0275declareLet:()=>zL,\u0275\u0275defer:()=>QZ,\u0275\u0275deferEnableTimerScheduling:()=>kZ,\u0275\u0275deferHydrateNever:()=>JZ,\u0275\u0275deferHydrateOnHover:()=>dX,\u0275\u0275deferHydrateOnIdle:()=>rX,\u0275\u0275deferHydrateOnImmediate:()=>sX,\u0275\u0275deferHydrateOnInteraction:()=>hX,\u0275\u0275deferHydrateOnTimer:()=>uX,\u0275\u0275deferHydrateOnViewport:()=>yX,\u0275\u0275deferHydrateWhen:()=>XZ,\u0275\u0275deferOnHover:()=>cX,\u0275\u0275deferOnIdle:()=>eX,\u0275\u0275deferOnImmediate:()=>nX,\u0275\u0275deferOnInteraction:()=>fX,\u0275\u0275deferOnTimer:()=>oX,\u0275\u0275deferOnViewport:()=>mX,\u0275\u0275deferPrefetchOnHover:()=>lX,\u0275\u0275deferPrefetchOnIdle:()=>tX,\u0275\u0275deferPrefetchOnImmediate:()=>iX,\u0275\u0275deferPrefetchOnInteraction:()=>pX,\u0275\u0275deferPrefetchOnTimer:()=>aX,\u0275\u0275deferPrefetchOnViewport:()=>gX,\u0275\u0275deferPrefetchWhen:()=>ZZ,\u0275\u0275deferWhen:()=>YZ,\u0275\u0275defineComponent:()=>CZ,\u0275\u0275defineDirective:()=>OZ,\u0275\u0275defineInjectable:()=>Zt,\u0275\u0275defineInjector:()=>l1,\u0275\u0275defineNgModule:()=>W4,\u0275\u0275definePipe:()=>PZ,\u0275\u0275directiveInject:()=>Wh,\u0275\u0275disableBindings:()=>qR,\u0275\u0275domElement:()=>mL,\u0275\u0275domElementContainer:()=>vL,\u0275\u0275domElementContainerEnd:()=>yL,\u0275\u0275domElementContainerStart:()=>HA,\u0275\u0275domElementEnd:()=>UA,\u0275\u0275domElementStart:()=>BA,\u0275\u0275domListener:()=>PL,\u0275\u0275domProperty:()=>_L,\u0275\u0275domTemplate:()=>Q4,\u0275\u0275element:()=>hL,\u0275\u0275elementContainer:()=>gL,\u0275\u0275elementContainerEnd:()=>OE,\u0275\u0275elementContainerStart:()=>VA,\u0275\u0275elementEnd:()=>qA,\u0275\u0275elementStart:()=>jA,\u0275\u0275enableBindings:()=>jR,\u0275\u0275getComponentDepsFactory:()=>RJ,\u0275\u0275getCurrentView:()=>kX,\u0275\u0275getInheritedFactory:()=>HQ,\u0275\u0275getReplaceMetadataURL:()=>LJ,\u0275\u0275i18n:()=>FX,\u0275\u0275i18nApply:()=>qX,\u0275\u0275i18nAttributes:()=>jX,\u0275\u0275i18nEnd:()=>AL,\u0275\u0275i18nExp:()=>xL,\u0275\u0275i18nPostprocess:()=>BX,\u0275\u0275i18nStart:()=>wL,\u0275\u0275inject:()=>Gn,\u0275\u0275injectAttribute:()=>fA,\u0275\u0275interpolate:()=>nJ,\u0275\u0275interpolate1:()=>iJ,\u0275\u0275interpolate2:()=>sJ,\u0275\u0275interpolate3:()=>oJ,\u0275\u0275interpolate4:()=>aJ,\u0275\u0275interpolate5:()=>uJ,\u0275\u0275interpolate6:()=>cJ,\u0275\u0275interpolate7:()=>lJ,\u0275\u0275interpolate8:()=>dJ,\u0275\u0275interpolateV:()=>fJ,\u0275\u0275invalidFactory:()=>dZ,\u0275\u0275invalidFactoryDep:()=>ow,\u0275\u0275listener:()=>CL,\u0275\u0275loadQuery:()=>KX,\u0275\u0275namespaceHTML:()=>ZR,\u0275\u0275namespaceMathML:()=>YR,\u0275\u0275namespaceSVG:()=>QR,\u0275\u0275nextContext:()=>VX,\u0275\u0275ngDeclareClassMetadata:()=>wr,\u0275\u0275ngDeclareClassMetadataAsync:()=>$3t,\u0275\u0275ngDeclareComponent:()=>F3t,\u0275\u0275ngDeclareDirective:()=>L3t,\u0275\u0275ngDeclareFactory:()=>Ar,\u0275\u0275ngDeclareInjectable:()=>Wr,\u0275\u0275ngDeclareInjector:()=>ex,\u0275\u0275ngDeclareNgModule:()=>tx,\u0275\u0275ngDeclarePipe:()=>q3t,\u0275\u0275pipe:()=>xJ,\u0275\u0275pipeBind1:()=>CJ,\u0275\u0275pipeBind2:()=>OJ,\u0275\u0275pipeBind3:()=>PJ,\u0275\u0275pipeBind4:()=>NJ,\u0275\u0275pipeBindV:()=>DJ,\u0275\u0275projection:()=>GX,\u0275\u0275projectionDef:()=>HX,\u0275\u0275property:()=>pL,\u0275\u0275pureFunction0:()=>yJ,\u0275\u0275pureFunction1:()=>vJ,\u0275\u0275pureFunction2:()=>_J,\u0275\u0275pureFunction3:()=>bJ,\u0275\u0275pureFunction4:()=>EJ,\u0275\u0275pureFunction5:()=>SJ,\u0275\u0275pureFunction6:()=>TJ,\u0275\u0275pureFunction7:()=>IJ,\u0275\u0275pureFunction8:()=>wJ,\u0275\u0275pureFunctionV:()=>AJ,\u0275\u0275queryAdvance:()=>zX,\u0275\u0275queryRefresh:()=>WX,\u0275\u0275readContextLet:()=>tJ,\u0275\u0275reference:()=>QX,\u0275\u0275registerNgModuleType:()=>G4,\u0275\u0275repeater:()=>DX,\u0275\u0275repeaterCreate:()=>NX,\u0275\u0275repeaterTrackByIdentity:()=>fL,\u0275\u0275repeaterTrackByIndex:()=>PX,\u0275\u0275replaceMetadata:()=>$J,\u0275\u0275resetView:()=>UR,\u0275\u0275resolveBody:()=>E4,\u0275\u0275resolveDocument:()=>jY,\u0275\u0275resolveWindow:()=>FY,\u0275\u0275restoreView:()=>BR,\u0275\u0275sanitizeHtml:()=>NY,\u0275\u0275sanitizeResourceUrl:()=>b4,\u0275\u0275sanitizeScript:()=>MY,\u0275\u0275sanitizeStyle:()=>DY,\u0275\u0275sanitizeUrl:()=>_4,\u0275\u0275sanitizeUrlOrResourceUrl:()=>LY,\u0275\u0275setComponentScope:()=>mJ,\u0275\u0275setNgModuleScope:()=>gJ,\u0275\u0275storeLet:()=>eJ,\u0275\u0275styleMap:()=>YX,\u0275\u0275styleProp:()=>kL,\u0275\u0275syntheticHostListener:()=>OL,\u0275\u0275syntheticHostProperty:()=>bL,\u0275\u0275template:()=>z4,\u0275\u0275templateRefExtractor:()=>MJ,\u0275\u0275text:()=>XX,\u0275\u0275textInterpolate:()=>$L,\u0275\u0275textInterpolate1:()=>GA,\u0275\u0275textInterpolate2:()=>FL,\u0275\u0275textInterpolate3:()=>jL,\u0275\u0275textInterpolate4:()=>qL,\u0275\u0275textInterpolate5:()=>BL,\u0275\u0275textInterpolate6:()=>UL,\u0275\u0275textInterpolate7:()=>VL,\u0275\u0275textInterpolate8:()=>HL,\u0275\u0275textInterpolateV:()=>GL,\u0275\u0275trustConstantHtml:()=>RY,\u0275\u0275trustConstantResourceUrl:()=>kY,\u0275\u0275twoWayBindingSet:()=>JX,\u0275\u0275twoWayListener:()=>KL,\u0275\u0275twoWayProperty:()=>WL,\u0275\u0275validateAttribute:()=>$Y,\u0275\u0275viewQuery:()=>DL,\u0275\u0275viewQuerySignal:()=>RL});var Ai=null,OI=!1,oH=1,jot=null,ir=Symbol("SIGNAL");function Oe(t){let e=Ai;return Ai=t,e}function f0(){return Ai}function aH(){return OI}var Ad={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 xd(t){if(OI)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Ai===null)return;Ai.consumerOnSignalRead(t);let e=Ai.producersTail;if(e!==void 0&&e.producer===t)return;let r,n=Ai.recomputing;if(n&&(r=e!==void 0?e.nextProducer:Ai.producers,r!==void 0&&r.producer===t)){Ai.producersTail=r,r.lastReadVersion=t.version;return}let i=t.consumersTail;if(i!==void 0&&i.consumer===Ai&&(!n||qot(i,Ai)))return;let s=db(Ai),o={producer:t,consumer:Ai,nextProducer:r,prevConsumer:i,lastReadVersion:t.version,nextConsumer:void 0};Ai.producersTail=o,e!==void 0?e.nextProducer=o:Ai.producers=o,s&&H0e(t,o)}function q0e(){oH++}function p0(t){if(!(db(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===oH)){if(!t.producerMustRecompute(t)&&!h0(t)){lb(t);return}t.producerRecomputeValue(t),lb(t)}}function uH(t){if(t.consumers===void 0)return;let e=OI;OI=!0;try{for(let r=t.consumers;r!==void 0;r=r.nextConsumer){let n=r.consumer;n.dirty||B0e(n)}}finally{OI=e}}function cH(){return Ai?.consumerAllowSignalWrites!==!1}function B0e(t){t.dirty=!0,uH(t),t.consumerMarkedDirty?.(t)}function lb(t){t.dirty=!1,t.lastCleanEpoch=oH}function fl(t){return t&&U0e(t),Oe(t)}function U0e(t){t.producersTail=void 0,t.recomputing=!0}function Cd(t,e){Oe(e),t&&V0e(t)}function V0e(t){t.recomputing=!1;let e=t.producersTail,r=e!==void 0?e.nextProducer:t.producers;if(r!==void 0){if(db(t))do r=lH(r);while(r!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function h0(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let r=e.producer,n=e.lastReadVersion;if(n!==r.version||(p0(r),n!==r.version))return!0}return!1}function Od(t){if(db(t)){let e=t.producers;for(;e!==void 0;)e=lH(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function H0e(t,e){let r=t.consumersTail,n=db(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)H0e(i.producer,i)}function lH(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,!db(e)){let s=e.producers;for(;s!==void 0;)s=lH(s)}return r}function db(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function PI(t){jot?.(t)}function qot(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 NI(t,e){return Object.is(t,e)}function DI(t,e){let r=Object.create(Bot);r.computation=t,e!==void 0&&(r.equal=e);let n=()=>{if(p0(r),xd(r),r.value===dl)throw r.error;return r.value};if(n[ir]=r,typeof ngDevMode<"u"&&ngDevMode){let i=r.debugName?" ("+r.debugName+")":"";n.toString=()=>`[Computed${i}: ${String(r.value)}]`}return PI(r),n}var Vp=Symbol("UNSET"),d0=Symbol("COMPUTING"),dl=Symbol("ERRORED"),Bot={...Ad,value:Vp,dirty:!0,error:null,equal:NI,kind:"computed",producerMustRecompute(t){return t.value===Vp||t.value===d0},producerRecomputeValue(t){if(t.value===d0)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=d0;let r=fl(t),n,i=!1;try{n=t.computation(),Oe(null),i=e!==Vp&&e!==dl&&n!==dl&&t.equal(e,n)}catch(s){n=dl,t.error=s}finally{Cd(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function Uot(){throw new Error}var G0e=Uot;function W0e(t){G0e(t)}function dH(t){G0e=t}var Vot=null;function fH(t,e){let r=Object.create(MI);r.value=t,e!==void 0&&(r.equal=e);let n=()=>K0e(r);if(n[ir]=r,typeof ngDevMode<"u"&&ngDevMode){let o=r.debugName?" ("+r.debugName+")":"";n.toString=()=>`[Signal${o}: ${String(r.value)}]`}return PI(r),[n,o=>Hp(r,o),o=>qM(r,o)]}function K0e(t){return xd(t),t.value}function Hp(t,e){cH()||W0e(t),t.equal(t.value,e)||(t.value=e,Hot(t))}function qM(t,e){cH()||W0e(t),Hp(t,e(t.value))}var MI={...Ad,equal:NI,value:void 0,kind:"signal"};function Hot(t){t.version++,q0e(),uH(t),Vot?.(t)}function pH(t){let e=Oe(null);try{return t()}finally{Oe(e)}}var hH={...Ad,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};function mH(t){if(t.dirty=!1,t.version>0&&!h0(t))return;t.version++;let e=fl(t);try{t.cleanup(),t.fn()}finally{Cd(t,e)}}var vh=J(sr(),1);var qW;function cR(){return qW}function Ho(t){let e=qW;return qW=t,e}var K_e=Symbol("NotFound");function t1(t){return t===K_e||t?.name==="\u0275NotFound"}function BW(t,e,r){let n=Object.create(tSt);n.source=t,n.computation=e,r!=null&&(n.equal=r);let s=()=>{if(p0(n),xd(n),n.value===dl)throw n.error;return n.value};if(s[ir]=n,typeof ngDevMode<"u"&&ngDevMode){let o=n.debugName?" ("+n.debugName+")":"";s.toString=()=>`[LinkedSignal${o}: ${String(n.value)}]`}return PI(n),s}function z_e(t,e){p0(t),Hp(t,e),lb(t)}function Q_e(t,e){if(p0(t),t.value===dl)throw t.error;qM(t,e),lb(t)}var tSt={...Ad,value:Vp,dirty:!0,error:null,equal:NI,kind:"linkedSignal",producerMustRecompute(t){return t.value===Vp||t.value===d0},producerRecomputeValue(t){if(t.value===d0)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=d0;let r=fl(t),n;try{let i=t.source(),s=e===Vp||e===dl?void 0:{source:t.sourceValue,value:e};n=t.computation(i,s),t.sourceValue=i}catch(i){n=dl,t.error=i}finally{Cd(t,r)}if(e!==Vp&&n!==dl&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}};function Y_e(t){}var VW={header:(t,e)=>{if(!UW(t)||e?.ngSkipFormatting)return null;let r;try{r=t()}catch(s){return["span",`Signal(\u26A0\uFE0F Error)${s.message?`: ${s.message}`:""}`]}let n="computation"in t[ir]?"Computed":"Signal",i=r===null||!Array.isArray(r)&&typeof r!="object";return["span",{},["span",{},`${n}(`],UW(r)?VW.header(r,e):i&&r!==void 0&&typeof r!="function"?["object",{object:r}]:rSt(r),["span",{},")"]]},hasBody:(t,e)=>{if(!UW(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 rSt(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 UW(t){return t[ir]!==void 0}function nSt(){globalThis.devtoolsFormatters??=[],globalThis.devtoolsFormatters.some(t=>t===VW)||globalThis.devtoolsFormatters.push(VW)}(typeof ngDevMode>"u"||ngDevMode)&&nSt();var QI=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(".")}},dR=new QI("21.1.6"),nK=(()=>{let t=dR.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="20.5.4"?"next":`v${dR.major}`}.angular.dev`})(),vR=`${nK}/errors`,Fa="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",$=class extends Error{code;constructor(e,r){super(Tr(e,r)),this.code=e}};function iSt(t){return`NG0${Math.abs(t)}`}function Tr(t,e){let r=iSt(t),n=`${r}${e?": "+e:""}`;if(ngDevMode&&t<0){let s=!n.match(/[.,;!?\n]$/)?".":"";n=`${n}${s} Find more at ${vR}/${r}`}return n}var Nn=globalThis;function sSt(){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 Nn.ngDevMode!="object"&&(Nn.ngDevMode={}),Object.assign(Nn.ngDevMode,e)):Nn.ngDevMode=!1,e}function _R(){return typeof ngDevMode>"u"||ngDevMode?((typeof ngDevMode!="object"||Object.keys(ngDevMode).length===0)&&sSt(),typeof ngDevMode<"u"&&!!ngDevMode):!1}function Ye(t){for(let e in t)if(t[e]===Ye)return e;throw Error(typeof ngDevMode<"u"&&ngDevMode?"Could not find renamed property on target object.":"")}function rbe(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Vt(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Vt).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
266
|
`);return n>=0?r.slice(0,n):r}function bR(t,e){return t?e?`${t} ${e}`:t:e||""}function iK(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 oSt=Ye({__forward_ref__:Ye});function u1(t){return t.__forward_ref__=u1,t.toString=function(){return Vt(this())},t}function Qe(t){return nw(t)?t():t}function nw(t){return typeof t=="function"&&t.hasOwnProperty(oSt)&&t.__forward_ref__===u1}function or(t,e){typeof t!="number"&&Te(e,typeof t,"number","===")}function c1(t,e,r){or(t,"Expected a number"),nbe(t,r,"Expected number to be less than or equal to"),wl(t,e,"Expected number to be greater than or equal to")}function P0(t,e){typeof t!="string"&&Te(e,t===null?"null":typeof t,"string","===")}function sK(t,e){typeof t!="function"&&Te(e,t===null?"null":typeof t,"function","===")}function ke(t,e,r){t!=e&&Te(r,t,e,"==")}function Zi(t,e,r){t==e&&Te(r,t,e,"!=")}function oK(t,e,r){t!==e&&Te(r,t,e,"===")}function N0(t,e,r){t===e&&Te(r,t,e,"!==")}function Il(t,e,r){t<e||Te(r,t,e,"<")}function nbe(t,e,r){t<=e||Te(r,t,e,"<=")}function _h(t,e,r){t>e||Te(r,t,e,">")}function wl(t,e,r){t>=e||Te(r,t,e,">=")}function aK(t,e){t!=null&&Te(e,t,null,"==")}function X(t,e){t==null&&Te(e,t,null,"!=")}function Te(t,e,r,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${r} ${n} ${e} <=Actual]`))}function Fd(t){t instanceof Node||Te(`The provided value must be an instance of a DOM Node but got ${Vt(t)}`)}function ibe(t){t instanceof Element||Te(`The provided value must be an element but got ${Vt(t)}`)}function $r(t,e){X(t,"Array must be defined.");let r=t.length;(e<0||e>=r)&&Te(`Index expected to be less than ${r} but got ${e}`)}function sbe(t,...e){if(e.indexOf(t)!==-1)return!0;Te(`Expected value to be one of ${JSON.stringify(e)} but was ${JSON.stringify(t)}.`)}function ER(t){f0()!==null&&Te(`${t}() should never be called in a reactive context.`)}function Zt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function l1(t){return{providers:t.providers||[],imports:t.imports||[]}}function d1(t){return aSt(t,D0)}function obe(t){return d1(t)!==null}function aSt(t,e){return t.hasOwnProperty(e)&&t[e]||null}function uSt(t){let e=t?.[D0]??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.
|
|
267
267
|
This will become an error in a future version of Angular. Please add @Injectable() to the "${t.name}" class.`),e):null}function YI(t){return t&&t.hasOwnProperty(i1)?t[i1]:null}var D0=Ye({\u0275prov:Ye}),i1=Ye({\u0275inj:Ye}),F=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,r){this._desc=e,this.\u0275prov=void 0,typeof r=="number"?((typeof ngDevMode>"u"||ngDevMode)&&Il(r,0,"Only negative numbers are supported here"),this.__NG_ELEMENT_ID__=r):r!==void 0&&(this.\u0275prov=Zt({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}},GW;function f1(){return!ngDevMode&&Te("getInjectorProfilerContext should never be called in production mode"),GW}function dn(t){!ngDevMode&&Te("setInjectorProfilerContext should never be called in production mode");let e=GW;return GW=t,e}var A0=[],cSt=()=>{};function lSt(t){let e=A0.indexOf(t);e!==-1&&A0.splice(e,1)}function uK(t){return!ngDevMode&&Te("setInjectorProfiler should never be called in production mode"),t!==null?(A0.includes(t)||A0.push(t),()=>lSt(t)):(A0.length=0,cSt)}function p1(t){!ngDevMode&&Te("Injector profiler should never be called in production mode");for(let e=0;e<A0.length;e++){let r=A0[e];r(t)}}function fR(t,e=!1){!ngDevMode&&Te("Injector profiler should never be called in production mode");let r;typeof t=="function"||t instanceof F?r=t:r=Qe(t.provide);let n=t;t instanceof F&&(n=t.\u0275prov||t),p1({type:2,context:f1(),providerRecord:{token:r,provider:n,isViewProvider:e}})}function ZI(t){!ngDevMode&&Te("Injector profiler should never be called in production mode"),p1({type:5,context:f1(),token:t})}function XI(t){!ngDevMode&&Te("Injector profiler should never be called in production mode"),p1({type:1,context:f1(),instance:{value:t}})}function cK(t,e,r){!ngDevMode&&Te("Injector profiler should never be called in production mode"),p1({type:0,context:f1(),service:{token:t,value:e,flags:r}})}function dSt(t){!ngDevMode&&Te("Injector profiler should never be called in production mode"),p1({type:3,context:f1(),effect:t})}function abe(t){!ngDevMode&&Te("Injector profiler should never be called in production mode"),p1({type:4,context:f1(),effectPhase:t})}function n1(t,e,r){!ngDevMode&&Te("runInInjectorProfilerContext should never be called in production mode");let n=dn({injector:t,token:e});try{r()}finally{dn(n)}}function h1(t){return t&&!!t.\u0275providers}var bh=Ye({\u0275cmp:Ye}),m1=Ye({\u0275dir:Ye}),g1=Ye({\u0275pipe:Ye}),iw=Ye({\u0275mod:Ye}),El=Ye({\u0275fac:Ye}),Eh=Ye({__NG_ELEMENT_ID__:Ye}),Z_e=Ye({__NG_ENV_ID__:Ye});function ja(t){return SR(t,"@NgModule"),t[iw]||null}function sw(t){let e=ja(t);if(!e)throw new $(915,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${Vt(t)} does not have '\u0275mod' property.`);return e}function ut(t){return SR(t,"@Component"),t[bh]||null}function ube(t){let e=bn(t);if(!e)throw new $(916,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${Vt(t)} does not have '\u0275dir' property.`);return e}function bn(t){return SR(t,"@Directive"),t[m1]||null}function Xi(t){return SR(t,"@Pipe"),t[g1]||null}function SR(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 Al(t){let e=ut(t)||bn(t)||Xi(t);return e!==null&&e.standalone}function it(t){return typeof t=="string"?t:t==null?"":String(t)}function et(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():it(t)}function lK(t){let e=ut(t);return e!==null&&e.debugInfo?fSt(e.debugInfo):et(t)}function fSt(t){return!t.filePath||!t.lineNumber?t.className:`${t.className} (at ${t.filePath}:${t.lineNumber})`}var dK=Ye({ngErrorCode:Ye}),cbe=Ye({ngErrorMessage:Ye}),zI=Ye({ngTokenPath:Ye});function TR(t,e){let r=ngDevMode?`Circular dependency detected for \`${t}\`.`:"";return dbe(r,-200,e)}function fK(t,e){return lbe(TR(t,e),null)}function X_e(){throw new Error("Cannot mix multi providers and regular providers")}function WW(t,e,r){if(t&&e){let n=e.map(i=>i==r?"?"+r+"?":"...");throw new Error(`Invalid provider for the NgModule '${Vt(t)}' - only instances of Provider and Type are allowed, got: [${n.join(", ")}]`)}else throw h1(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 IR(t,e){let r=ngDevMode&&`No provider for ${et(t)} found${e?` in ${e}`:""}`;throw new $(-201,r)}function pSt(t,e){t[zI]??=[];let r=t[zI],n;typeof e=="object"&&"multi"in e&&e?.multi===!0?(X(e.provide,"Token with multi: true should have a provide property"),n=et(e.provide)):n=et(e),r[0]!==n&&t[zI].unshift(n)}function lbe(t,e){let r=t[zI],n=t[dK],i=t[cbe]||t.message;return t.message=mSt(i,n,r,e),t}function dbe(t,e,r){let n=new $(e,t);return n[dK]=e,n[cbe]=t,r&&(n[zI]=r),n}function hSt(t){return t[dK]}function mSt(t,e,r=[],n=null){let i="";r&&r.length>1&&(i=` Path: ${r.join(" -> ")}.`);let s=n?` Source: ${n}.`:"";return Tr(e,`${t}${s}${i}`)}var pR;function fbe(){return pR}function Yi(t){let e=pR;return pR=t,e}function pK(t,e,r){let n=d1(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;IR(t,typeof ngDevMode<"u"&&ngDevMode?"Injector":"")}function pbe(t){ngDevMode&&Zi(pR,t,"Calling \u0275\u0275inject would cause infinite recursion")}var gSt={},x0=gSt,KW="__NG_DI_FLAG__",zW=class{injector;constructor(e){this.injector=e}retrieve(e,r){let n=ph(r)||0;try{return this.injector.get(e,n&8?null:x0,n)}catch(i){if(t1(i))return i;throw i}}};function ySt(t,e=0){let r=cR();if(r===void 0)throw new $(-203,ngDevMode&&`The \`${Vt(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 pK(t,void 0,e);{let n=vSt(e),i=r.retrieve(t,n);if(ngDevMode&&cK(t,i,e),t1(i)){if(n.optional)return null;throw i}return i}}function Gn(t,e=0){return(fbe()||ySt)(Qe(t),e)}function ow(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.
|
|
268
268
|
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.
|