@ttmg/cli 0.0.11 → 0.0.12-beta.2
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/CHANGELOG.md +7 -0
- package/dist/acorn-BdJAsJ8B.js +2 -0
- package/dist/acorn-BdJAsJ8B.js.map +1 -0
- package/dist/angular-NBOYSdm_.js +2 -0
- package/dist/angular-NBOYSdm_.js.map +1 -0
- package/dist/babel-Cz9UyhT1.js +2 -0
- package/dist/babel-Cz9UyhT1.js.map +1 -0
- package/dist/estree-Cpw1IbUG.js +2 -0
- package/dist/estree-Cpw1IbUG.js.map +1 -0
- package/dist/flow-CEifwVfD.js +2 -0
- package/dist/flow-CEifwVfD.js.map +1 -0
- package/dist/glimmer-HhuN0Cpa.js +2 -0
- package/dist/glimmer-HhuN0Cpa.js.map +1 -0
- package/dist/graphql-C0LdZ-FR.js +2 -0
- package/dist/graphql-C0LdZ-FR.js.map +1 -0
- package/dist/html-CTo_n3CO.js +2 -0
- package/dist/html-CTo_n3CO.js.map +1 -0
- package/dist/index-C5TRyXT-.js +2 -0
- package/dist/index-C5TRyXT-.js.map +1 -0
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +57 -1
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -0
- package/dist/markdown-BCWKCKF0.js +2 -0
- package/dist/markdown-BCWKCKF0.js.map +1 -0
- package/dist/meriyah-CkXe63E7.js +2 -0
- package/dist/meriyah-CkXe63E7.js.map +1 -0
- package/dist/postcss-BX--ySLa.js +2 -0
- package/dist/postcss-BX--ySLa.js.map +1 -0
- package/dist/types/src/h5/index.d.ts +3 -0
- package/dist/types/src/index.d.ts +2 -0
- package/dist/types/src/libs/centerQRCode.d.ts +1 -0
- package/dist/types/src/libs/getDesktopPath.d.ts +1 -0
- package/dist/types/src/libs/getLocalIP.d.ts +1 -0
- package/dist/types/src/libs/index.d.ts +4 -0
- package/dist/types/src/libs/openUrl.d.ts +1 -0
- package/dist/types/src/libs/program.d.ts +3 -0
- package/dist/types/src/native/dev/config/index.d.ts +1 -0
- package/dist/types/src/native/dev/index.d.ts +2 -0
- package/dist/types/src/native/dev/utils/devServer.d.ts +2 -0
- package/dist/types/src/native/dev/utils/getClientKey.d.ts +4 -0
- package/dist/types/src/native/dev/utils/getSchema.d.ts +1 -0
- package/dist/types/src/native/dev/utils/index.d.ts +3 -0
- package/dist/types/src/native/index.d.ts +1 -0
- package/dist/typescript-ztdoDXBH.js +2 -0
- package/dist/typescript-ztdoDXBH.js.map +1 -0
- package/dist/yaml-CIIYxOPp.js +2 -0
- package/dist/yaml-CIIYxOPp.js.map +1 -0
- package/package.json +19 -16
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=Object.defineProperty,t=e=>{throw TypeError(e)},i=(t,i)=>{for(var n in i)e(t,n,{get:i[n],enumerable:!0})},n=(e,i,n)=>i.has(e)||t("Cannot "+n),s=(e,t,i)=>(n(e,t,"read from private field"),i?i.call(e):t.get(e)),r=(e,i,n)=>i.has(e)?t("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,n),a=(e,t,i,s)=>(n(e,t,"write to private field"),t.set(e,i),i),o=(e,t,i)=>(n(e,t,"access private method"),i),l={};i(l,{parsers:()=>E});var c,u,h,p,d,m,f,x,v,y,g,w,E={};i(E,{__ng_action:()=>Ai,__ng_binding:()=>Mi,__ng_directive:()=>Bi,__ng_interpolation:()=>Ri}),(u=c||(c={}))[u.Emulated=0]="Emulated",u[u.None=2]="None",u[u.ShadowDom=3]="ShadowDom",function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(h||(h={})),function(e){e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"}(p||(p={})),function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(d||(d={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(m||(m={})),function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"}(f||(f={})),function(e){e[e.Directive=0]="Directive",e[e.Pipe=1]="Pipe",e[e.NgModule=2]="NgModule"}(x||(x={})),function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(v||(v={})),function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"}(y||(y={})),function(e){e[e.None=0]="None",e[e.Const=1]="Const"}(g||(g={})),function(e){e[e.Dynamic=0]="Dynamic",e[e.Bool=1]="Bool",e[e.String=2]="String",e[e.Int=3]="Int",e[e.Number=4]="Number",e[e.Function=5]="Function",e[e.Inferred=6]="Inferred",e[e.None=7]="None"}(w||(w={}));var S,N;function C(e,t){return function(e,t,i){let n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(!i(e[s],t[s]))return!1;return!0}(e,t,(e,t)=>e.isEquivalent(t))}!function(e){e[e.Minus=0]="Minus",e[e.Plus=1]="Plus"}(S||(S={})),function(e){e[e.Equals=0]="Equals",e[e.NotEquals=1]="NotEquals",e[e.Identical=2]="Identical",e[e.NotIdentical=3]="NotIdentical",e[e.Minus=4]="Minus",e[e.Plus=5]="Plus",e[e.Divide=6]="Divide",e[e.Multiply=7]="Multiply",e[e.Modulo=8]="Modulo",e[e.And=9]="And",e[e.Or=10]="Or",e[e.BitwiseOr=11]="BitwiseOr",e[e.BitwiseAnd=12]="BitwiseAnd",e[e.Lower=13]="Lower",e[e.LowerEquals=14]="LowerEquals",e[e.Bigger=15]="Bigger",e[e.BiggerEquals=16]="BiggerEquals",e[e.NullishCoalesce=17]="NullishCoalesce",e[e.Exponentiation=18]="Exponentiation",e[e.In=19]="In"}(N||(N={}));var I,P=class{type;sourceSpan;constructor(e,t){this.type=e||null,this.sourceSpan=t||null}prop(e,t){return new F(this,e,null,t)}key(e,t,i){return new K(this,e,t,i)}callFn(e,t,i){return new A(this,e,null,t,i)}instantiate(e,t,i){return new M(this,e,t,i)}conditional(e,t=null,i){return new D(this,e,t,null,i)}equals(e,t){return new V(N.Equals,this,e,null,t)}notEquals(e,t){return new V(N.NotEquals,this,e,null,t)}identical(e,t){return new V(N.Identical,this,e,null,t)}notIdentical(e,t){return new V(N.NotIdentical,this,e,null,t)}minus(e,t){return new V(N.Minus,this,e,null,t)}plus(e,t){return new V(N.Plus,this,e,null,t)}divide(e,t){return new V(N.Divide,this,e,null,t)}multiply(e,t){return new V(N.Multiply,this,e,null,t)}modulo(e,t){return new V(N.Modulo,this,e,null,t)}power(e,t){return new V(N.Exponentiation,this,e,null,t)}and(e,t){return new V(N.And,this,e,null,t)}bitwiseOr(e,t){return new V(N.BitwiseOr,this,e,null,t)}bitwiseAnd(e,t){return new V(N.BitwiseAnd,this,e,null,t)}or(e,t){return new V(N.Or,this,e,null,t)}lower(e,t){return new V(N.Lower,this,e,null,t)}lowerEquals(e,t){return new V(N.LowerEquals,this,e,null,t)}bigger(e,t){return new V(N.Bigger,this,e,null,t)}biggerEquals(e,t){return new V(N.BiggerEquals,this,e,null,t)}isBlank(e){return this.equals(TYPED_NULL_EXPR,e)}nullishCoalesce(e,t){return new V(N.NullishCoalesce,this,e,null,t)}toStmt(){return new H(this,null)}},T=class e extends P{name;constructor(e,t,i){super(t,i),this.name=e}isEquivalent(t){return t instanceof e&&this.name===t.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadVarExpr(this,t)}clone(){return new e(this.name,this.type,this.sourceSpan)}set(e){return new b(this.name,e,null,this.sourceSpan)}},O=class e extends P{expr;constructor(e,t,i){super(t,i),this.expr=e}visitExpression(e,t){return e.visitTypeofExpr(this,t)}isEquivalent(t){return t instanceof e&&t.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new e(this.expr.clone())}},b=class e extends P{name;value;constructor(e,t,i,n){super(i||t.type,n),this.name=e,this.value=t}isEquivalent(t){return t instanceof e&&this.name===t.name&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteVarExpr(this,t)}clone(){return new e(this.name,this.value.clone(),this.type,this.sourceSpan)}toDeclStmt(e,t){return new $(this.name,this.value,e,t,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(undefined,I.Final)}},k=class e extends P{receiver;index;value;constructor(e,t,i,n,s){super(n||i.type,s),this.receiver=e,this.index=t,this.value=i}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteKeyExpr(this,t)}clone(){return new e(this.receiver.clone(),this.index.clone(),this.value.clone(),this.type,this.sourceSpan)}},L=class e extends P{receiver;name;value;constructor(e,t,i,n,s){super(n||i.type,s),this.receiver=e,this.name=t,this.value=i}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWritePropExpr(this,t)}clone(){return new e(this.receiver.clone(),this.name,this.value.clone(),this.type,this.sourceSpan)}},A=class e extends P{fn;args;pure;constructor(e,t,i,n,s=!1){super(i,n),this.fn=e,this.args=t,this.pure=s}get receiver(){return this.fn}isEquivalent(t){return t instanceof e&&this.fn.isEquivalent(t.fn)&&C(this.args,t.args)&&this.pure===t.pure}isConstant(){return!1}visitExpression(e,t){return e.visitInvokeFunctionExpr(this,t)}clone(){return new e(this.fn.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan,this.pure)}},M=class e extends P{classExpr;args;constructor(e,t,i,n){super(i,n),this.classExpr=e,this.args=t}isEquivalent(t){return t instanceof e&&this.classExpr.isEquivalent(t.classExpr)&&C(this.args,t.args)}isConstant(){return!1}visitExpression(e,t){return e.visitInstantiateExpr(this,t)}clone(){return new e(this.classExpr.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan)}},R=class e extends P{value;constructor(e,t,i){super(t,i),this.value=e}isEquivalent(t){return t instanceof e&&this.value===t.value}isConstant(){return!0}visitExpression(e,t){return e.visitLiteralExpr(this,t)}clone(){return new e(this.value,this.type,this.sourceSpan)}},B=class e extends P{value;typeParams;constructor(e,t,i=null,n){super(t,n),this.value=e,this.typeParams=i}isEquivalent(t){return t instanceof e&&this.value.name===t.value.name&&this.value.moduleName===t.value.moduleName}isConstant(){return!1}visitExpression(e,t){return e.visitExternalExpr(this,t)}clone(){return new e(this.value,this.type,this.typeParams,this.sourceSpan)}},D=class e extends P{condition;falseCase;trueCase;constructor(e,t,i=null,n,s){super(n||t.type,s),this.condition=e,this.falseCase=i,this.trueCase=t}isEquivalent(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&this.trueCase.isEquivalent(t.trueCase)&&function(e,t){return null==e||null==t?e==t:e.isEquivalent(t)}(this.falseCase,t.falseCase)}isConstant(){return!1}visitExpression(e,t){return e.visitConditionalExpr(this,t)}clone(){var t;return new e(this.condition.clone(),this.trueCase.clone(),null==(t=this.falseCase)?void 0:t.clone(),this.type,this.sourceSpan)}},V=class e extends P{operator;rhs;lhs;constructor(e,t,i,n,s){super(n||t.type,s),this.operator=e,this.rhs=i,this.lhs=t}isEquivalent(t){return t instanceof e&&this.operator===t.operator&&this.lhs.isEquivalent(t.lhs)&&this.rhs.isEquivalent(t.rhs)}isConstant(){return!1}visitExpression(e,t){return e.visitBinaryOperatorExpr(this,t)}clone(){return new e(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan)}},F=class e extends P{receiver;name;constructor(e,t,i,n){super(i,n),this.receiver=e,this.name=t}get index(){return this.name}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadPropExpr(this,t)}set(e){return new L(this.receiver,this.name,e,null,this.sourceSpan)}clone(){return new e(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},K=class e extends P{receiver;index;constructor(e,t,i,n){super(i,n),this.receiver=e,this.index=t}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)}isConstant(){return!1}visitExpression(e,t){return e.visitReadKeyExpr(this,t)}set(e){return new k(this.receiver,this.index,e,null,this.sourceSpan)}clone(){return new e(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},W=class e extends P{entries;constructor(e,t,i){super(t,i),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(t){return t instanceof e&&C(this.entries,t.entries)}visitExpression(e,t){return e.visitLiteralArrayExpr(this,t)}clone(){return new e(this.entries.map(e=>e.clone()),this.type,this.sourceSpan)}},_=class e extends P{entries;valueType=null;constructor(e,t,i){super(t,i),this.entries=e,t&&(this.valueType=t.valueType)}isEquivalent(t){return t instanceof e&&C(this.entries,t.entries)}isConstant(){return this.entries.every(e=>e.value.isConstant())}visitExpression(e,t){return e.visitLiteralMapExpr(this,t)}clone(){let t=this.entries.map(e=>e.clone());return new e(t,this.type,this.sourceSpan)}};!function(e){e[e.None=0]="None",e[e.Final=1]="Final",e[e.Private=2]="Private",e[e.Exported=4]="Exported",e[e.Static=8]="Static"}(I||(I={}));var q=class{modifiers;sourceSpan;leadingComments;constructor(e=I.None,t=null,i){this.modifiers=e,this.sourceSpan=t,this.leadingComments=i}hasModifier(e){return 0!==(this.modifiers&e)}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}},$=class e extends q{name;value;type;constructor(e,t,i,n,s,r){super(n,s,r),this.name=e,this.value=t,this.type=i||t&&t.type||null}isEquivalent(t){return t instanceof e&&this.name===t.name&&(this.value?!!t.value&&this.value.isEquivalent(t.value):!t.value)}visitStatement(e,t){return e.visitDeclareVarStmt(this,t)}},H=class e extends q{expr;constructor(e,t,i){super(I.None,t,i),this.expr=e}isEquivalent(t){return t instanceof e&&this.expr.isEquivalent(t.expr)}visitStatement(e,t){return e.visitExpressionStmt(this,t)}};!function(e,t,i){new T(e,t,i)}("<unknown>"),class e{static INSTANCE=new e;keyOf(e){if(e instanceof R&&"string"==typeof e.value)return`"${e.value}"`;if(e instanceof R)return String(e.value);if(e instanceof W){let t=[];for(let i of e.entries)t.push(this.keyOf(i));return`[${t.join(",")}]`}if(e instanceof _){let t=[];for(let i of e.entries){let e=i.key;i.quoted&&(e=`"${e}"`),t.push(e+":"+this.keyOf(i.value))}return`{${t.join(",")}}`}if(e instanceof B)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof T)return`read(${e.name})`;if(e instanceof O)return`typeof(${this.keyOf(e.expr)})`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}};var U,j="@angular/core",G=class{static NEW_METHOD="factory";static TRANSFORM_METHOD="transform";static PATCH_DEPS="patchedDeps";static core={name:null,moduleName:j};static namespaceHTML={name:"ɵɵnamespaceHTML",moduleName:j};static namespaceMathML={name:"ɵɵnamespaceMathML",moduleName:j};static namespaceSVG={name:"ɵɵnamespaceSVG",moduleName:j};static element={name:"ɵɵelement",moduleName:j};static elementStart={name:"ɵɵelementStart",moduleName:j};static elementEnd={name:"ɵɵelementEnd",moduleName:j};static advance={name:"ɵɵadvance",moduleName:j};static syntheticHostProperty={name:"ɵɵsyntheticHostProperty",moduleName:j};static syntheticHostListener={name:"ɵɵsyntheticHostListener",moduleName:j};static attribute={name:"ɵɵattribute",moduleName:j};static classProp={name:"ɵɵclassProp",moduleName:j};static elementContainerStart={name:"ɵɵelementContainerStart",moduleName:j};static elementContainerEnd={name:"ɵɵelementContainerEnd",moduleName:j};static elementContainer={name:"ɵɵelementContainer",moduleName:j};static styleMap={name:"ɵɵstyleMap",moduleName:j};static classMap={name:"ɵɵclassMap",moduleName:j};static styleProp={name:"ɵɵstyleProp",moduleName:j};static interpolate={name:"ɵɵinterpolate",moduleName:j};static interpolate1={name:"ɵɵinterpolate1",moduleName:j};static interpolate2={name:"ɵɵinterpolate2",moduleName:j};static interpolate3={name:"ɵɵinterpolate3",moduleName:j};static interpolate4={name:"ɵɵinterpolate4",moduleName:j};static interpolate5={name:"ɵɵinterpolate5",moduleName:j};static interpolate6={name:"ɵɵinterpolate6",moduleName:j};static interpolate7={name:"ɵɵinterpolate7",moduleName:j};static interpolate8={name:"ɵɵinterpolate8",moduleName:j};static interpolateV={name:"ɵɵinterpolateV",moduleName:j};static nextContext={name:"ɵɵnextContext",moduleName:j};static resetView={name:"ɵɵresetView",moduleName:j};static templateCreate={name:"ɵɵtemplate",moduleName:j};static defer={name:"ɵɵdefer",moduleName:j};static deferWhen={name:"ɵɵdeferWhen",moduleName:j};static deferOnIdle={name:"ɵɵdeferOnIdle",moduleName:j};static deferOnImmediate={name:"ɵɵdeferOnImmediate",moduleName:j};static deferOnTimer={name:"ɵɵdeferOnTimer",moduleName:j};static deferOnHover={name:"ɵɵdeferOnHover",moduleName:j};static deferOnInteraction={name:"ɵɵdeferOnInteraction",moduleName:j};static deferOnViewport={name:"ɵɵdeferOnViewport",moduleName:j};static deferPrefetchWhen={name:"ɵɵdeferPrefetchWhen",moduleName:j};static deferPrefetchOnIdle={name:"ɵɵdeferPrefetchOnIdle",moduleName:j};static deferPrefetchOnImmediate={name:"ɵɵdeferPrefetchOnImmediate",moduleName:j};static deferPrefetchOnTimer={name:"ɵɵdeferPrefetchOnTimer",moduleName:j};static deferPrefetchOnHover={name:"ɵɵdeferPrefetchOnHover",moduleName:j};static deferPrefetchOnInteraction={name:"ɵɵdeferPrefetchOnInteraction",moduleName:j};static deferPrefetchOnViewport={name:"ɵɵdeferPrefetchOnViewport",moduleName:j};static deferHydrateWhen={name:"ɵɵdeferHydrateWhen",moduleName:j};static deferHydrateNever={name:"ɵɵdeferHydrateNever",moduleName:j};static deferHydrateOnIdle={name:"ɵɵdeferHydrateOnIdle",moduleName:j};static deferHydrateOnImmediate={name:"ɵɵdeferHydrateOnImmediate",moduleName:j};static deferHydrateOnTimer={name:"ɵɵdeferHydrateOnTimer",moduleName:j};static deferHydrateOnHover={name:"ɵɵdeferHydrateOnHover",moduleName:j};static deferHydrateOnInteraction={name:"ɵɵdeferHydrateOnInteraction",moduleName:j};static deferHydrateOnViewport={name:"ɵɵdeferHydrateOnViewport",moduleName:j};static deferEnableTimerScheduling={name:"ɵɵdeferEnableTimerScheduling",moduleName:j};static conditionalCreate={name:"ɵɵconditionalCreate",moduleName:j};static conditionalBranchCreate={name:"ɵɵconditionalBranchCreate",moduleName:j};static conditional={name:"ɵɵconditional",moduleName:j};static repeater={name:"ɵɵrepeater",moduleName:j};static repeaterCreate={name:"ɵɵrepeaterCreate",moduleName:j};static repeaterTrackByIndex={name:"ɵɵrepeaterTrackByIndex",moduleName:j};static repeaterTrackByIdentity={name:"ɵɵrepeaterTrackByIdentity",moduleName:j};static componentInstance={name:"ɵɵcomponentInstance",moduleName:j};static text={name:"ɵɵtext",moduleName:j};static enableBindings={name:"ɵɵenableBindings",moduleName:j};static disableBindings={name:"ɵɵdisableBindings",moduleName:j};static getCurrentView={name:"ɵɵgetCurrentView",moduleName:j};static textInterpolate={name:"ɵɵtextInterpolate",moduleName:j};static textInterpolate1={name:"ɵɵtextInterpolate1",moduleName:j};static textInterpolate2={name:"ɵɵtextInterpolate2",moduleName:j};static textInterpolate3={name:"ɵɵtextInterpolate3",moduleName:j};static textInterpolate4={name:"ɵɵtextInterpolate4",moduleName:j};static textInterpolate5={name:"ɵɵtextInterpolate5",moduleName:j};static textInterpolate6={name:"ɵɵtextInterpolate6",moduleName:j};static textInterpolate7={name:"ɵɵtextInterpolate7",moduleName:j};static textInterpolate8={name:"ɵɵtextInterpolate8",moduleName:j};static textInterpolateV={name:"ɵɵtextInterpolateV",moduleName:j};static restoreView={name:"ɵɵrestoreView",moduleName:j};static pureFunction0={name:"ɵɵpureFunction0",moduleName:j};static pureFunction1={name:"ɵɵpureFunction1",moduleName:j};static pureFunction2={name:"ɵɵpureFunction2",moduleName:j};static pureFunction3={name:"ɵɵpureFunction3",moduleName:j};static pureFunction4={name:"ɵɵpureFunction4",moduleName:j};static pureFunction5={name:"ɵɵpureFunction5",moduleName:j};static pureFunction6={name:"ɵɵpureFunction6",moduleName:j};static pureFunction7={name:"ɵɵpureFunction7",moduleName:j};static pureFunction8={name:"ɵɵpureFunction8",moduleName:j};static pureFunctionV={name:"ɵɵpureFunctionV",moduleName:j};static pipeBind1={name:"ɵɵpipeBind1",moduleName:j};static pipeBind2={name:"ɵɵpipeBind2",moduleName:j};static pipeBind3={name:"ɵɵpipeBind3",moduleName:j};static pipeBind4={name:"ɵɵpipeBind4",moduleName:j};static pipeBindV={name:"ɵɵpipeBindV",moduleName:j};static domProperty={name:"ɵɵdomProperty",moduleName:j};static property={name:"ɵɵproperty",moduleName:j};static i18n={name:"ɵɵi18n",moduleName:j};static i18nAttributes={name:"ɵɵi18nAttributes",moduleName:j};static i18nExp={name:"ɵɵi18nExp",moduleName:j};static i18nStart={name:"ɵɵi18nStart",moduleName:j};static i18nEnd={name:"ɵɵi18nEnd",moduleName:j};static i18nApply={name:"ɵɵi18nApply",moduleName:j};static i18nPostprocess={name:"ɵɵi18nPostprocess",moduleName:j};static pipe={name:"ɵɵpipe",moduleName:j};static projection={name:"ɵɵprojection",moduleName:j};static projectionDef={name:"ɵɵprojectionDef",moduleName:j};static reference={name:"ɵɵreference",moduleName:j};static inject={name:"ɵɵinject",moduleName:j};static injectAttribute={name:"ɵɵinjectAttribute",moduleName:j};static directiveInject={name:"ɵɵdirectiveInject",moduleName:j};static invalidFactory={name:"ɵɵinvalidFactory",moduleName:j};static invalidFactoryDep={name:"ɵɵinvalidFactoryDep",moduleName:j};static templateRefExtractor={name:"ɵɵtemplateRefExtractor",moduleName:j};static forwardRef={name:"forwardRef",moduleName:j};static resolveForwardRef={name:"resolveForwardRef",moduleName:j};static replaceMetadata={name:"ɵɵreplaceMetadata",moduleName:j};static getReplaceMetadataURL={name:"ɵɵgetReplaceMetadataURL",moduleName:j};static"ɵɵdefineInjectable"={name:"ɵɵdefineInjectable",moduleName:j};static declareInjectable={name:"ɵɵngDeclareInjectable",moduleName:j};static InjectableDeclaration={name:"ɵɵInjectableDeclaration",moduleName:j};static resolveWindow={name:"ɵɵresolveWindow",moduleName:j};static resolveDocument={name:"ɵɵresolveDocument",moduleName:j};static resolveBody={name:"ɵɵresolveBody",moduleName:j};static getComponentDepsFactory={name:"ɵɵgetComponentDepsFactory",moduleName:j};static defineComponent={name:"ɵɵdefineComponent",moduleName:j};static declareComponent={name:"ɵɵngDeclareComponent",moduleName:j};static setComponentScope={name:"ɵɵsetComponentScope",moduleName:j};static ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:j};static ViewEncapsulation={name:"ViewEncapsulation",moduleName:j};static ComponentDeclaration={name:"ɵɵComponentDeclaration",moduleName:j};static FactoryDeclaration={name:"ɵɵFactoryDeclaration",moduleName:j};static declareFactory={name:"ɵɵngDeclareFactory",moduleName:j};static FactoryTarget={name:"ɵɵFactoryTarget",moduleName:j};static defineDirective={name:"ɵɵdefineDirective",moduleName:j};static declareDirective={name:"ɵɵngDeclareDirective",moduleName:j};static DirectiveDeclaration={name:"ɵɵDirectiveDeclaration",moduleName:j};static InjectorDef={name:"ɵɵInjectorDef",moduleName:j};static InjectorDeclaration={name:"ɵɵInjectorDeclaration",moduleName:j};static defineInjector={name:"ɵɵdefineInjector",moduleName:j};static declareInjector={name:"ɵɵngDeclareInjector",moduleName:j};static NgModuleDeclaration={name:"ɵɵNgModuleDeclaration",moduleName:j};static ModuleWithProviders={name:"ModuleWithProviders",moduleName:j};static defineNgModule={name:"ɵɵdefineNgModule",moduleName:j};static declareNgModule={name:"ɵɵngDeclareNgModule",moduleName:j};static setNgModuleScope={name:"ɵɵsetNgModuleScope",moduleName:j};static registerNgModuleType={name:"ɵɵregisterNgModuleType",moduleName:j};static PipeDeclaration={name:"ɵɵPipeDeclaration",moduleName:j};static definePipe={name:"ɵɵdefinePipe",moduleName:j};static declarePipe={name:"ɵɵngDeclarePipe",moduleName:j};static declareClassMetadata={name:"ɵɵngDeclareClassMetadata",moduleName:j};static declareClassMetadataAsync={name:"ɵɵngDeclareClassMetadataAsync",moduleName:j};static setClassMetadata={name:"ɵsetClassMetadata",moduleName:j};static setClassMetadataAsync={name:"ɵsetClassMetadataAsync",moduleName:j};static setClassDebugInfo={name:"ɵsetClassDebugInfo",moduleName:j};static queryRefresh={name:"ɵɵqueryRefresh",moduleName:j};static viewQuery={name:"ɵɵviewQuery",moduleName:j};static loadQuery={name:"ɵɵloadQuery",moduleName:j};static contentQuery={name:"ɵɵcontentQuery",moduleName:j};static viewQuerySignal={name:"ɵɵviewQuerySignal",moduleName:j};static contentQuerySignal={name:"ɵɵcontentQuerySignal",moduleName:j};static queryAdvance={name:"ɵɵqueryAdvance",moduleName:j};static twoWayProperty={name:"ɵɵtwoWayProperty",moduleName:j};static twoWayBindingSet={name:"ɵɵtwoWayBindingSet",moduleName:j};static twoWayListener={name:"ɵɵtwoWayListener",moduleName:j};static declareLet={name:"ɵɵdeclareLet",moduleName:j};static storeLet={name:"ɵɵstoreLet",moduleName:j};static readContextLet={name:"ɵɵreadContextLet",moduleName:j};static attachSourceLocations={name:"ɵɵattachSourceLocations",moduleName:j};static NgOnChangesFeature={name:"ɵɵNgOnChangesFeature",moduleName:j};static InheritDefinitionFeature={name:"ɵɵInheritDefinitionFeature",moduleName:j};static CopyDefinitionFeature={name:"ɵɵCopyDefinitionFeature",moduleName:j};static ProvidersFeature={name:"ɵɵProvidersFeature",moduleName:j};static HostDirectivesFeature={name:"ɵɵHostDirectivesFeature",moduleName:j};static ExternalStylesFeature={name:"ɵɵExternalStylesFeature",moduleName:j};static listener={name:"ɵɵlistener",moduleName:j};static getInheritedFactory={name:"ɵɵgetInheritedFactory",moduleName:j};static sanitizeHtml={name:"ɵɵsanitizeHtml",moduleName:j};static sanitizeStyle={name:"ɵɵsanitizeStyle",moduleName:j};static sanitizeResourceUrl={name:"ɵɵsanitizeResourceUrl",moduleName:j};static sanitizeScript={name:"ɵɵsanitizeScript",moduleName:j};static sanitizeUrl={name:"ɵɵsanitizeUrl",moduleName:j};static sanitizeUrlOrResourceUrl={name:"ɵɵsanitizeUrlOrResourceUrl",moduleName:j};static trustConstantHtml={name:"ɵɵtrustConstantHtml",moduleName:j};static trustConstantResourceUrl={name:"ɵɵtrustConstantResourceUrl",moduleName:j};static validateIframeAttribute={name:"ɵɵvalidateIframeAttribute",moduleName:j};static InputSignalBrandWriteType={name:"ɵINPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:j};static UnwrapDirectiveSignalInputs={name:"ɵUnwrapDirectiveSignalInputs",moduleName:j};static unwrapWritableSignal={name:"ɵunwrapWritableSignal",moduleName:j}};!function(e){e[e.Class=0]="Class",e[e.Function=1]="Function"}(U||(U={}));var z,Q,Y,X,J=class{input;errLocation;ctxLocation;message;constructor(e,t,i,n){this.input=t,this.errLocation=i,this.ctxLocation=n,this.message=`Parser Error: ${e} ${i} [${t}] in ${n}`}},Z=class{start;end;constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new ke(e+this.start,e+this.end)}},ee=class{span;sourceSpan;constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}},te=class extends ee{nameSpan;constructor(e,t,i){super(e,t),this.nameSpan=i}},ie=class extends ee{visit(e,t=null){}},ne=class extends ee{visit(e,t=null){return e.visitImplicitReceiver(this,t)}},se=class extends ne{visit(e,t=null){var i;return null==(i=e.visitThisReceiver)?void 0:i.call(e,this,t)}},re=class extends ee{expressions;constructor(e,t,i){super(e,t),this.expressions=i}visit(e,t=null){return e.visitChain(this,t)}},ae=class extends ee{condition;trueExp;falseExp;constructor(e,t,i,n,s){super(e,t),this.condition=i,this.trueExp=n,this.falseExp=s}visit(e,t=null){return e.visitConditional(this,t)}},oe=class extends te{receiver;name;constructor(e,t,i,n,s){super(e,t,i),this.receiver=n,this.name=s}visit(e,t=null){return e.visitPropertyRead(this,t)}},le=class extends te{receiver;name;value;constructor(e,t,i,n,s,r){super(e,t,i),this.receiver=n,this.name=s,this.value=r}visit(e,t=null){return e.visitPropertyWrite(this,t)}},ce=class extends te{receiver;name;constructor(e,t,i,n,s){super(e,t,i),this.receiver=n,this.name=s}visit(e,t=null){return e.visitSafePropertyRead(this,t)}},ue=class extends ee{receiver;key;constructor(e,t,i,n){super(e,t),this.receiver=i,this.key=n}visit(e,t=null){return e.visitKeyedRead(this,t)}},he=class extends ee{receiver;key;constructor(e,t,i,n){super(e,t),this.receiver=i,this.key=n}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}},pe=class extends ee{receiver;key;value;constructor(e,t,i,n,s){super(e,t),this.receiver=i,this.key=n,this.value=s}visit(e,t=null){return e.visitKeyedWrite(this,t)}},de=class extends te{exp;name;args;constructor(e,t,i,n,s,r){super(e,t,r),this.exp=i,this.name=n,this.args=s}visit(e,t=null){return e.visitPipe(this,t)}},me=class extends ee{value;constructor(e,t,i){super(e,t),this.value=i}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}},fe=class extends ee{expressions;constructor(e,t,i){super(e,t),this.expressions=i}visit(e,t=null){return e.visitLiteralArray(this,t)}},xe=class extends ee{keys;values;constructor(e,t,i,n){super(e,t),this.keys=i,this.values=n}visit(e,t=null){return e.visitLiteralMap(this,t)}},ve=class extends ee{strings;expressions;constructor(e,t,i,n){super(e,t),this.strings=i,this.expressions=n}visit(e,t=null){return e.visitInterpolation(this,t)}},ye=class extends ee{operation;left;right;constructor(e,t,i,n,s){super(e,t),this.operation=i,this.left=n,this.right=s}visit(e,t=null){return e.visitBinary(this,t)}},ge=class e extends ye{operator;expr;left=null;right=null;operation=null;static createMinus(t,i,n){return new e(t,i,"-",n,"-",new me(t,i,0),n)}static createPlus(t,i,n){return new e(t,i,"+",n,"-",n,new me(t,i,0))}constructor(e,t,i,n,s,r,a){super(e,t,s,r,a),this.operator=i,this.expr=n}visit(e,t=null){return void 0!==e.visitUnary?e.visitUnary(this,t):e.visitBinary(this,t)}},we=class extends ee{expression;constructor(e,t,i){super(e,t),this.expression=i}visit(e,t=null){return e.visitPrefixNot(this,t)}},Ee=class extends ee{expression;constructor(e,t,i){super(e,t),this.expression=i}visit(e,t=null){return e.visitTypeofExpression(this,t)}},Se=class extends ee{expression;constructor(e,t,i){super(e,t),this.expression=i}visit(e,t=null){return e.visitVoidExpression(this,t)}},Ne=class extends ee{expression;constructor(e,t,i){super(e,t),this.expression=i}visit(e,t=null){return e.visitNonNullAssert(this,t)}},Ce=class extends ee{receiver;args;argumentSpan;constructor(e,t,i,n,s){super(e,t),this.receiver=i,this.args=n,this.argumentSpan=s}visit(e,t=null){return e.visitCall(this,t)}},Ie=class extends ee{receiver;args;argumentSpan;constructor(e,t,i,n,s){super(e,t),this.receiver=i,this.args=n,this.argumentSpan=s}visit(e,t=null){return e.visitSafeCall(this,t)}},Pe=class extends ee{tag;template;constructor(e,t,i,n){super(e,t),this.tag=i,this.template=n}visit(e,t){return e.visitTaggedTemplateLiteral(this,t)}},Te=class extends ee{elements;expressions;constructor(e,t,i,n){super(e,t),this.elements=i,this.expressions=n}visit(e,t){return e.visitTemplateLiteral(this,t)}},Oe=class extends ee{text;constructor(e,t,i){super(e,t),this.text=i}visit(e,t){return e.visitTemplateLiteralElement(this,t)}},be=class extends ee{expression;constructor(e,t,i){super(e,t),this.expression=i}visit(e,t){return e.visitParenthesizedExpression(this,t)}},ke=class{start;end;constructor(e,t){this.start=e,this.end=t}},Le=class extends ee{ast;source;location;errors;constructor(e,t,i,n,s){super(new Z(0,null===t?0:t.length),new ke(n,null===t?n:n+t.length)),this.ast=e,this.source=t,this.location=i,this.errors=s}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}},Ae=class{sourceSpan;key;value;constructor(e,t,i){this.sourceSpan=e,this.key=t,this.value=i}},Me=class{sourceSpan;key;value;constructor(e,t,i){this.sourceSpan=e,this.key=t,this.value=i}},Re=class{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.receiver,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitPrefixNot(e,t){this.visit(e.expression,t)}visitTypeofExpression(e,t){this.visit(e.expression,t)}visitVoidExpression(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitTemplateLiteral(e,t){for(let i=0;i<e.elements.length;i++){this.visit(e.elements[i],t);let n=i<e.expressions.length?e.expressions[i]:null;null!==n&&this.visit(n,t)}}visitTemplateLiteralElement(e,t){}visitTaggedTemplateLiteral(e,t){this.visit(e.tag,t),this.visit(e.template,t)}visitParenthesizedExpression(e,t){this.visit(e.expression,t)}visitAll(e,t){for(let i of e)this.visit(i,t)}};!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.LITERAL_ATTR=1]="LITERAL_ATTR",e[e.ANIMATION=2]="ANIMATION",e[e.TWO_WAY=3]="TWO_WAY"}(z||(z={})),function(e){e[e.Regular=0]="Regular",e[e.Animation=1]="Animation",e[e.TwoWay=2]="TwoWay"}(Q||(Q={})),function(e){e[e.Property=0]="Property",e[e.Attribute=1]="Attribute",e[e.Class=2]="Class",e[e.Style=3]="Style",e[e.Animation=4]="Animation",e[e.TwoWay=5]="TwoWay"}(Y||(Y={})),function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"}(X||(X={}));var Be=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];var De,Ve,Fe,Ke,We,_e,qe,$e,He,Ue,je,Ge,ze,Qe,Ye,Xe,Je,Ze=new class e{start;end;static fromArray(t){return t?(function(e,t){if(null!=t&&(!Array.isArray(t)||2!=t.length))throw new Error(`Expected '${e}' to be an array, [start, end].`);if(null!=t){let e=t[0],i=t[1];Be.forEach(t=>{if(t.test(e)||t.test(i))throw new Error(`['${e}', '${i}'] contains unusable interpolation symbol.`)})}}("interpolation",t),new e(t[0],t[1])):Ze}constructor(e,t){this.start=e,this.end=t}}("{{","}}"),et=41,tt=46,it=58,nt=123,st=125;function rt(e){return e>=9&&e<=32||160==e}function at(e){return 48<=e&&e<=57}function ot(e){return 39===e||34===e||96===e}!function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(De||(De={})),function(e){e[e.Inline=0]="Inline",e[e.SideEffect=1]="SideEffect",e[e.Omit=2]="Omit"}(Ve||(Ve={})),function(e){e[e.Global=0]="Global",e[e.Local=1]="Local"}(Fe||(Fe={})),function(e){e[e.Directive=0]="Directive",e[e.Pipe=1]="Pipe",e[e.NgModule=2]="NgModule"}(Ke||(Ke={})),function(e){e[e.ListEnd=0]="ListEnd",e[e.Statement=1]="Statement",e[e.Variable=2]="Variable",e[e.ElementStart=3]="ElementStart",e[e.Element=4]="Element",e[e.Template=5]="Template",e[e.ElementEnd=6]="ElementEnd",e[e.ContainerStart=7]="ContainerStart",e[e.Container=8]="Container",e[e.ContainerEnd=9]="ContainerEnd",e[e.DisableBindings=10]="DisableBindings",e[e.ConditionalCreate=11]="ConditionalCreate",e[e.ConditionalBranchCreate=12]="ConditionalBranchCreate",e[e.Conditional=13]="Conditional",e[e.EnableBindings=14]="EnableBindings",e[e.Text=15]="Text",e[e.Listener=16]="Listener",e[e.InterpolateText=17]="InterpolateText",e[e.Binding=18]="Binding",e[e.Property=19]="Property",e[e.StyleProp=20]="StyleProp",e[e.ClassProp=21]="ClassProp",e[e.StyleMap=22]="StyleMap",e[e.ClassMap=23]="ClassMap",e[e.Advance=24]="Advance",e[e.Pipe=25]="Pipe",e[e.Attribute=26]="Attribute",e[e.ExtractedAttribute=27]="ExtractedAttribute",e[e.Defer=28]="Defer",e[e.DeferOn=29]="DeferOn",e[e.DeferWhen=30]="DeferWhen",e[e.I18nMessage=31]="I18nMessage",e[e.DomProperty=32]="DomProperty",e[e.Namespace=33]="Namespace",e[e.ProjectionDef=34]="ProjectionDef",e[e.Projection=35]="Projection",e[e.RepeaterCreate=36]="RepeaterCreate",e[e.Repeater=37]="Repeater",e[e.TwoWayProperty=38]="TwoWayProperty",e[e.TwoWayListener=39]="TwoWayListener",e[e.DeclareLet=40]="DeclareLet",e[e.StoreLet=41]="StoreLet",e[e.I18nStart=42]="I18nStart",e[e.I18n=43]="I18n",e[e.I18nEnd=44]="I18nEnd",e[e.I18nExpression=45]="I18nExpression",e[e.I18nApply=46]="I18nApply",e[e.IcuStart=47]="IcuStart",e[e.IcuEnd=48]="IcuEnd",e[e.IcuPlaceholder=49]="IcuPlaceholder",e[e.I18nContext=50]="I18nContext",e[e.I18nAttributes=51]="I18nAttributes",e[e.SourceLocation=52]="SourceLocation"}(We||(We={})),function(e){e[e.LexicalRead=0]="LexicalRead",e[e.Context=1]="Context",e[e.TrackContext=2]="TrackContext",e[e.ReadVariable=3]="ReadVariable",e[e.NextContext=4]="NextContext",e[e.Reference=5]="Reference",e[e.StoreLet=6]="StoreLet",e[e.ContextLetReference=7]="ContextLetReference",e[e.GetCurrentView=8]="GetCurrentView",e[e.RestoreView=9]="RestoreView",e[e.ResetView=10]="ResetView",e[e.PureFunctionExpr=11]="PureFunctionExpr",e[e.PureFunctionParameterExpr=12]="PureFunctionParameterExpr",e[e.PipeBinding=13]="PipeBinding",e[e.PipeBindingVariadic=14]="PipeBindingVariadic",e[e.SafePropertyRead=15]="SafePropertyRead",e[e.SafeKeyedRead=16]="SafeKeyedRead",e[e.SafeInvokeFunction=17]="SafeInvokeFunction",e[e.SafeTernaryExpr=18]="SafeTernaryExpr",e[e.EmptyExpr=19]="EmptyExpr",e[e.AssignTemporaryExpr=20]="AssignTemporaryExpr",e[e.ReadTemporaryExpr=21]="ReadTemporaryExpr",e[e.SlotLiteralExpr=22]="SlotLiteralExpr",e[e.ConditionalCase=23]="ConditionalCase",e[e.ConstCollected=24]="ConstCollected",e[e.TwoWayBindingSet=25]="TwoWayBindingSet"}(_e||(_e={})),function(e){e[e.None=0]="None",e[e.AlwaysInline=1]="AlwaysInline"}(qe||(qe={})),function(e){e[e.Context=0]="Context",e[e.Identifier=1]="Identifier",e[e.SavedView=2]="SavedView",e[e.Alias=3]="Alias"}($e||($e={})),function(e){e[e.Normal=0]="Normal",e[e.TemplateDefinitionBuilder=1]="TemplateDefinitionBuilder"}(He||(He={})),function(e){e[e.Attribute=0]="Attribute",e[e.ClassName=1]="ClassName",e[e.StyleProperty=2]="StyleProperty",e[e.Property=3]="Property",e[e.Template=4]="Template",e[e.I18n=5]="I18n",e[e.Animation=6]="Animation",e[e.TwoWayProperty=7]="TwoWayProperty"}(Ue||(Ue={})),function(e){e[e.Creation=0]="Creation",e[e.Postproccessing=1]="Postproccessing"}(je||(je={})),function(e){e[e.I18nText=0]="I18nText",e[e.I18nAttribute=1]="I18nAttribute"}(Ge||(Ge={})),function(e){e[e.None=0]="None",e[e.ElementTag=1]="ElementTag",e[e.TemplateTag=2]="TemplateTag",e[e.OpenTag=4]="OpenTag",e[e.CloseTag=8]="CloseTag",e[e.ExpressionIndex=16]="ExpressionIndex"}(ze||(ze={})),function(e){e[e.HTML=0]="HTML",e[e.SVG=1]="SVG",e[e.Math=2]="Math"}(Qe||(Qe={})),function(e){e[e.Idle=0]="Idle",e[e.Immediate=1]="Immediate",e[e.Timer=2]="Timer",e[e.Hover=3]="Hover",e[e.Interaction=4]="Interaction",e[e.Viewport=5]="Viewport",e[e.Never=6]="Never"}(Ye||(Ye={})),function(e){e[e.RootI18n=0]="RootI18n",e[e.Icu=1]="Icu",e[e.Attr=2]="Attr"}(Xe||(Xe={})),function(e){e[e.NgTemplate=0]="NgTemplate",e[e.Structural=1]="Structural",e[e.Block=2]="Block"}(Je||(Je={}));var lt,ct,ut,ht,pt,dt=class{strings;expressions;i18nPlaceholders;constructor(e,t,i){if(this.strings=e,this.expressions=t,this.i18nPlaceholders=i,0!==i.length&&i.length!==t.length)throw new Error(`Expected ${t.length} placeholders to match interpolation expression count, but got ${i.length}`)}};!function(e){e[e.None=0]="None",e[e.InChildOperation=1]="InChildOperation"}(lt||(lt={})),new Set([We.Element,We.ElementStart,We.Container,We.ContainerStart,We.Template,We.RepeaterCreate,We.ConditionalCreate,We.ConditionalBranchCreate]),function(e){e[e.Tmpl=0]="Tmpl",e[e.Host=1]="Host",e[e.Both=2]="Both"}(ct||(ct={})),new Map([[We.ElementEnd,[We.ElementStart,We.Element]],[We.ContainerEnd,[We.ContainerStart,We.Container]],[We.I18nEnd,[We.I18nStart,We.I18n]]]),new Set([We.Pipe]),function(e){e.HEX="hexadecimal",e.DEC="decimal"}(ut||(ut={})),function(e){e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.PrivateIdentifier=2]="PrivateIdentifier",e[e.Keyword=3]="Keyword",e[e.String=4]="String",e[e.Operator=5]="Operator",e[e.Number=6]="Number",e[e.Error=7]="Error"}(ht||(ht={})),function(e){e[e.Plain=0]="Plain",e[e.TemplateLiteralPart=1]="TemplateLiteralPart",e[e.TemplateLiteralEnd=2]="TemplateLiteralEnd"}(pt||(pt={}));var mt=["var","let","as","null","undefined","true","false","if","else","this","typeof","void","in"],ft=class{tokenize(e){return new Et(e).scan()}},xt=class{index;end;type;numValue;strValue;constructor(e,t,i,n,s){this.index=e,this.end=t,this.type=i,this.numValue=n,this.strValue=s}isCharacter(e){return this.type===ht.Character&&this.numValue===e}isNumber(){return this.type===ht.Number}isString(){return this.type===ht.String}isOperator(e){return this.type===ht.Operator&&this.strValue===e}isIdentifier(){return this.type===ht.Identifier}isPrivateIdentifier(){return this.type===ht.PrivateIdentifier}isKeyword(){return this.type===ht.Keyword}isKeywordLet(){return this.type===ht.Keyword&&"let"===this.strValue}isKeywordAs(){return this.type===ht.Keyword&&"as"===this.strValue}isKeywordNull(){return this.type===ht.Keyword&&"null"===this.strValue}isKeywordUndefined(){return this.type===ht.Keyword&&"undefined"===this.strValue}isKeywordTrue(){return this.type===ht.Keyword&&"true"===this.strValue}isKeywordFalse(){return this.type===ht.Keyword&&"false"===this.strValue}isKeywordThis(){return this.type===ht.Keyword&&"this"===this.strValue}isKeywordTypeof(){return this.type===ht.Keyword&&"typeof"===this.strValue}isKeywordVoid(){return this.type===ht.Keyword&&"void"===this.strValue}isKeywordIn(){return this.type===ht.Keyword&&"in"===this.strValue}isError(){return this.type===ht.Error}toNumber(){return this.type===ht.Number?this.numValue:-1}isTemplateLiteralPart(){return this.isString()&&this.kind===pt.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===pt.TemplateLiteralEnd}isTemplateLiteralInterpolationStart(){return this.isOperator("${")}isTemplateLiteralInterpolationEnd(){return this.isOperator("}")}toString(){switch(this.type){case ht.Character:case ht.Identifier:case ht.Keyword:case ht.Operator:case ht.PrivateIdentifier:case ht.String:case ht.Error:return this.strValue;case ht.Number:return this.numValue.toString();default:return null}}},vt=class extends xt{kind;constructor(e,t,i,n){super(e,t,ht.String,0,i),this.kind=n}};function yt(e,t,i){return new xt(e,t,ht.Character,i,String.fromCharCode(i))}function gt(e,t,i){return new xt(e,t,ht.Operator,0,i)}var wt=new xt(-1,-1,ht.Character,0,""),Et=class{input;tokens=[];length;peek=0;index=-1;braceStack=[];constructor(e){this.input=e,this.length=e.length,this.advance()}scan(){let e=this.scanToken();for(;null!==e;)this.tokens.push(e),e=this.scanToken();return this.tokens}advance(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,t=this.length,i=this.peek,n=this.index;for(;i<=32;){if(++n>=t){i=0;break}i=e.charCodeAt(n)}if(this.peek=i,this.index=n,n>=t)return null;if(St(i))return this.scanIdentifier();if(at(i))return this.scanNumber(n);let s=n;switch(i){case tt:return this.advance(),at(this.peek)?this.scanNumber(s):yt(s,this.index,tt);case 40:case et:case 91:case 93:case 44:case it:case 59:return this.scanCharacter(s,i);case nt:return this.scanOpenBrace(s,i);case st:return this.scanCloseBrace(s,i);case 39:case 34:return this.scanString();case 96:return this.advance(),this.scanTemplateLiteralPart(s);case 35:return this.scanPrivateIdentifier();case 43:case 45:case 47:case 37:case 94:return this.scanOperator(s,String.fromCharCode(i));case 42:return this.scanComplexOperator(s,"*",42,"*");case 63:return this.scanQuestion(s);case 60:case 62:return this.scanComplexOperator(s,String.fromCharCode(i),61,"=");case 33:case 61:return this.scanComplexOperator(s,String.fromCharCode(i),61,"=",61,"=");case 38:return this.scanComplexOperator(s,"&",38,"&");case 124:return this.scanComplexOperator(s,"|",124,"|");case 160:for(;rt(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(i)}]`,0)}scanCharacter(e,t){return this.advance(),yt(e,this.index,t)}scanOperator(e,t){return this.advance(),gt(e,this.index,t)}scanOpenBrace(e,t){return this.braceStack.push("expression"),this.advance(),yt(e,this.index,t)}scanCloseBrace(e,t){return this.advance(),"interpolation"===this.braceStack.pop()?(this.tokens.push(gt(e,this.index,"}")),this.scanTemplateLiteralPart(this.index)):yt(e,this.index,t)}scanComplexOperator(e,t,i,n,s,r){this.advance();let a=t;return this.peek==i&&(this.advance(),a+=n),null!=s&&this.peek==s&&(this.advance(),a+=r),gt(e,this.index,a)}scanIdentifier(){let e=this.index;for(this.advance();Nt(this.peek);)this.advance();let t=this.input.substring(e,this.index);return mt.indexOf(t)>-1?function(e,t,i){return new xt(e,t,ht.Keyword,0,i)}(e,this.index,t):function(e,t,i){return new xt(e,t,ht.Identifier,0,i)}(e,this.index,t)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!St(this.peek))return this.error("Invalid character [#]",-1);for(;Nt(this.peek);)this.advance();let t=this.input.substring(e,this.index);return function(e,t,i){return new xt(e,t,ht.PrivateIdentifier,0,i)}(e,this.index,t)}scanNumber(e){let t=this.index===e,i=!1;for(this.advance();;){if(!at(this.peek))if(95===this.peek){if(!at(this.input.charCodeAt(this.index-1))||!at(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);i=!0}else if(this.peek===tt)t=!1;else{if(!Ct(this.peek))break;if(this.advance(),It(this.peek)&&this.advance(),!at(this.peek))return this.error("Invalid exponent",-1);t=!1}this.advance()}let n=this.input.substring(e,this.index);i&&(n=n.replace(/_/g,""));let s=t?function(e){let t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}(n):parseFloat(n);return function(e,t,i){return new xt(e,t,ht.Number,i,"")}(e,this.index,s)}scanString(){let e=this.index,t=this.peek;this.advance();let i="",n=this.index,s=this.input;for(;this.peek!=t;)if(92==this.peek){let e=this.scanStringBackslash(i,n);if("string"!=typeof e)return e;i=e,n=this.index}else{if(0==this.peek)return this.error("Unterminated quote",0);this.advance()}let r=s.substring(n,this.index);return this.advance(),new vt(e,this.index,i+r,pt.Plain)}scanQuestion(e){this.advance();let t="?";return(63===this.peek||this.peek===tt)&&(t+=this.peek===tt?".":"?",this.advance()),gt(e,this.index,t)}scanTemplateLiteralPart(e){let t="",i=this.index;for(;96!==this.peek;)if(92===this.peek){let e=this.scanStringBackslash(t,i);if("string"!=typeof e)return e;t=e,i=this.index}else if(36===this.peek){let n=this.index;if(this.advance(),this.peek===nt)return this.braceStack.push("interpolation"),this.tokens.push(new vt(e,n,t+this.input.substring(i,n),pt.TemplateLiteralPart)),this.advance(),gt(n,this.index,this.input.substring(n,this.index))}else{if(0===this.peek)return this.error("Unterminated template literal",0);this.advance()}let n=this.input.substring(i,this.index);return this.advance(),new vt(e,this.index,t+n,pt.TemplateLiteralEnd)}error(e,t){let i=this.index+t;return function(e,t,i){return new xt(e,t,ht.Error,0,i)}(i,this.index,`Lexer Error: ${e} at column ${i} in expression [${this.input}]`)}scanStringBackslash(e,t){let i;if(e+=this.input.substring(t,this.index),this.advance(),117===this.peek){let e=this.input.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(e))return this.error(`Invalid unicode escape [\\u${e}]`,0);i=parseInt(e,16);for(let e=0;e<5;e++)this.advance()}else i=function(e){switch(e){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return e}}(this.peek),this.advance();return e+=String.fromCharCode(i)}};function St(e){return 97<=e&&e<=122||65<=e&&e<=90||95==e||36==e}function Nt(e){return function(e){return e>=97&&e<=122||e>=65&&e<=90}(e)||at(e)||95==e||36==e}function Ct(e){return 101==e||69==e}function It(e){return 45==e||43==e}var Pt,Tt=class{strings;expressions;offsets;constructor(e,t,i){this.strings=e,this.expressions=t,this.offsets=i}},Ot=class{templateBindings;warnings;errors;constructor(e,t,i){this.templateBindings=e,this.warnings=t,this.errors=i}},bt=class{_lexer;errors=[];constructor(e){this._lexer=e}parseAction(e,t,i,n=Ze){this._checkNoInterpolation(e,t,n);let s=this._stripComments(e),r=this._lexer.tokenize(s),a=new kt(e,t,i,r,1,this.errors,0).parseChain();return new Le(a,e,t,i,this.errors)}parseBinding(e,t,i,n=Ze){let s=this._parseBindingAst(e,t,i,n);return new Le(s,e,t,i,this.errors)}checkSimpleExpression(e){let t=new Lt;return e.visit(t),t.errors}parseSimpleBinding(e,t,i,n=Ze){let s=this._parseBindingAst(e,t,i,n),r=this.checkSimpleExpression(s);return r.length>0&&this._reportError(`Host binding expression cannot contain ${r.join(" ")}`,e,t),new Le(s,e,t,i,this.errors)}_reportError(e,t,i,n){this.errors.push(new J(e,t,i,n))}_parseBindingAst(e,t,i,n){this._checkNoInterpolation(e,t,n);let s=this._stripComments(e),r=this._lexer.tokenize(s);return new kt(e,t,i,r,0,this.errors,0).parseChain()}parseTemplateBindings(e,t,i,n,s){let r=this._lexer.tokenize(t);return new kt(t,i,s,r,0,this.errors,0).parseTemplateBindings({source:e,span:new ke(n,n+e.length)})}parseInterpolation(e,t,i,n,s=Ze){let{strings:r,expressions:a,offsets:o}=this.splitInterpolation(e,t,n,s);if(0===a.length)return null;let l=[];for(let n=0;n<a.length;++n){let s=a[n].text,r=this._stripComments(s),c=this._lexer.tokenize(r),u=new kt(e,t,i,c,0,this.errors,o[n]).parseChain();l.push(u)}return this.createInterpolationAst(r.map(e=>e.text),l,e,t,i)}parseInterpolationExpression(e,t,i){let n=this._stripComments(e),s=this._lexer.tokenize(n),r=new kt(e,t,i,s,0,this.errors,0).parseChain();return this.createInterpolationAst(["",""],[r],e,t,i)}createInterpolationAst(e,t,i,n,s){let r=new Z(0,i.length),a=new ve(r,r.toAbsolute(s),e,t);return new Le(a,i,n,s,this.errors)}splitInterpolation(e,t,i,n=Ze){let s=[],r=[],a=[],o=i?function(e){let t=new Map,i=0,n=0,s=0;for(;s<e.length;){let r=e[s];if(9===r.type){let[e,t]=r.parts;i+=t.length,n+=e.length}else{let e=r.parts.reduce((e,t)=>e+t.length,0);n+=e,i+=e}t.set(n,i),s++}return t}(i):null,l=0,c=!1,u=!1,{start:h,end:p}=n;for(;l<e.length;)if(c){let i=l,n=i+h.length,s=this._getInterpolationEndIndex(e,p,n);if(-1===s){c=!1,u=!0;break}let d=s+p.length,m=e.substring(n,s);0===m.trim().length&&this._reportError("Blank expressions are not allowed in interpolated strings",e,`at column ${l} in`,t),r.push({text:m,start:i,end:d});let f=((null==o?void 0:o.get(i))??i)+h.length;a.push(f),l=d,c=!1}else{let t=l;l=e.indexOf(h,l),-1===l&&(l=e.length);let i=e.substring(t,l);s.push({text:i,start:t,end:l}),c=!0}if(!c)if(u){let t=s[s.length-1];t.text+=e.substring(l),t.end=e.length}else s.push({text:e.substring(l),start:l,end:e.length});return new Tt(s,r,a)}wrapLiteralPrimitive(e,t,i){let n=new Z(0,null==e?0:e.length);return new Le(new me(n,n.toAbsolute(i),e),e,t,i,this.errors)}_stripComments(e){let t=this._commentStart(e);return null!=t?e.substring(0,t):e}_commentStart(e){let t=null;for(let i=0;i<e.length-1;i++){let n=e.charCodeAt(i),s=e.charCodeAt(i+1);if(47===n&&47==s&&null==t)return i;t===n?t=null:null==t&&ot(n)&&(t=n)}return null}_checkNoInterpolation(e,t,{start:i,end:n}){let s=-1,r=-1;for(let t of this._forEachUnquotedChar(e,0))if(-1===s)e.startsWith(i)&&(s=t);else if(r=this._getInterpolationEndIndex(e,n,t),r>-1)break;s>-1&&r>-1&&this._reportError(`Got interpolation (${i}${n}) where expression was expected`,e,`at column ${s} in`,t)}_getInterpolationEndIndex(e,t,i){for(let n of this._forEachUnquotedChar(e,i)){if(e.startsWith(t,n))return n;if(e.startsWith("//",n))return e.indexOf(t,n)}return-1}*_forEachUnquotedChar(e,t){let i=null,n=0;for(let s=t;s<e.length;s++){let t=e[s];!ot(e.charCodeAt(s))||null!==i&&i!==t||n%2!=0?null===i&&(yield s):i=null===i?t:null,n="\\"===t?n+1:0}}};!function(e){e[e.None=0]="None",e[e.Writable=1]="Writable"}(Pt||(Pt={}));var kt=class{input;location;absoluteOffset;tokens;parseFlags;errors;offset;rparensExpected=0;rbracketsExpected=0;rbracesExpected=0;context=Pt.None;sourceSpanCache=new Map;index=0;constructor(e,t,i,n,s,r,a){this.input=e,this.location=t,this.absoluteOffset=i,this.tokens=n,this.parseFlags=s,this.errors=r,this.offset=a}peek(e){let t=this.index+e;return t<this.tokens.length?this.tokens[t]:wt}get next(){return this.peek(0)}get atEOF(){return this.index>=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:0===this.tokens.length?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let i=this.currentEndIndex;if(void 0!==t&&t>this.currentEndIndex&&(i=t),e>i){let t=i;i=e,e=t}return new Z(e,i)}sourceSpan(e,t){let i=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(i)||this.sourceSpanCache.set(i,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(i)}advance(){this.index++}withContext(e,t){this.context|=e;let i=t();return this.context^=e,i}consumeOptionalCharacter(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return!!this.next.isOperator(e)&&(this.advance(),!0)}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===wt?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null)}expectIdentifierOrKeywordOrString(){let e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),"")}parseChain(){let e=[],t=this.inputIndex;for(;this.index<this.tokens.length;){let t=this.parsePipe();if(e.push(t),this.consumeOptionalCharacter(59))for(1&this.parseFlags||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(59););else if(this.index<this.tokens.length){let e=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===e)break}}if(0===e.length){let e=this.offset,t=this.offset+this.input.length;return new ie(this.span(e,t),this.sourceSpan(e,t))}return 1==e.length?e[0]:new re(this.span(t),this.sourceSpan(t),e)}parsePipe(){let e=this.inputIndex,t=this.parseExpression();if(this.consumeOptionalOperator("|")){1&this.parseFlags&&this.error("Cannot have a pipe in an action expression");do{let i,n,s=this.inputIndex,r=this.expectIdentifierOrKeyword();null!==r?i=this.sourceSpan(s):(r="",n=-1!==this.next.index?this.next.index:this.input.length+this.offset,i=new Z(n,n).toAbsolute(this.absoluteOffset));let a=[];for(;this.consumeOptionalCharacter(it);)a.push(this.parseExpression());t=new de(this.span(e),this.sourceSpan(e,n),t,r,a,i)}while(this.consumeOptionalOperator("|"))}return t}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,t=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let i,n=this.parsePipe();if(this.consumeOptionalCharacter(it))i=this.parsePipe();else{let t=this.inputIndex,n=this.input.substring(e,t);this.error(`Conditional expression ${n} requires all 3 expressions`),i=new ie(this.span(e),this.sourceSpan(e))}return new ae(this.span(e),this.sourceSpan(e),t,n,i)}return t}parseLogicalOr(){let e=this.inputIndex,t=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){let i=this.parseLogicalAnd();t=new ye(this.span(e),this.sourceSpan(e),"||",t,i)}return t}parseLogicalAnd(){let e=this.inputIndex,t=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){let i=this.parseNullishCoalescing();t=new ye(this.span(e),this.sourceSpan(e),"&&",t,i)}return t}parseNullishCoalescing(){let e=this.inputIndex,t=this.parseEquality();for(;this.consumeOptionalOperator("??");){let i=this.parseEquality();t=new ye(this.span(e),this.sourceSpan(e),"??",t,i)}return t}parseEquality(){let e=this.inputIndex,t=this.parseRelational();for(;this.next.type==ht.Operator;){let i=this.next.strValue;switch(i){case"==":case"===":case"!=":case"!==":this.advance();let n=this.parseRelational();t=new ye(this.span(e),this.sourceSpan(e),i,t,n);continue}break}return t}parseRelational(){let e=this.inputIndex,t=this.parseAdditive();for(;this.next.type==ht.Operator||this.next.isKeywordIn;){let i=this.next.strValue;switch(i){case"<":case">":case"<=":case">=":case"in":this.advance();let n=this.parseAdditive();t=new ye(this.span(e),this.sourceSpan(e),i,t,n);continue}break}return t}parseAdditive(){let e=this.inputIndex,t=this.parseMultiplicative();for(;this.next.type==ht.Operator;){let i=this.next.strValue;switch(i){case"+":case"-":this.advance();let n=this.parseMultiplicative();t=new ye(this.span(e),this.sourceSpan(e),i,t,n);continue}break}return t}parseMultiplicative(){let e=this.inputIndex,t=this.parseExponentiation();for(;this.next.type==ht.Operator;){let i=this.next.strValue;switch(i){case"*":case"%":case"/":this.advance();let n=this.parseExponentiation();t=new ye(this.span(e),this.sourceSpan(e),i,t,n);continue}break}return t}parseExponentiation(){let e=this.inputIndex,t=this.parsePrefix();for(;this.next.type==ht.Operator&&"**"===this.next.strValue;){(t instanceof ge||t instanceof we||t instanceof Ee||t instanceof Se)&&this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"),this.advance();let i=this.parseExponentiation();t=new ye(this.span(e),this.sourceSpan(e),"**",t,i)}return t}parsePrefix(){if(this.next.type==ht.Operator){let e,t=this.inputIndex;switch(this.next.strValue){case"+":return this.advance(),e=this.parsePrefix(),ge.createPlus(this.span(t),this.sourceSpan(t),e);case"-":return this.advance(),e=this.parsePrefix(),ge.createMinus(this.span(t),this.sourceSpan(t),e);case"!":return this.advance(),e=this.parsePrefix(),new we(this.span(t),this.sourceSpan(t),e)}}else{if(this.next.isKeywordTypeof()){this.advance();let e=this.inputIndex,t=this.parsePrefix();return new Ee(this.span(e),this.sourceSpan(e),t)}if(this.next.isKeywordVoid()){this.advance();let e=this.inputIndex,t=this.parsePrefix();return new Se(this.span(e),this.sourceSpan(e),t)}}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(tt))t=this.parseAccessMember(t,e,!1);else if(this.consumeOptionalOperator("?."))t=this.consumeOptionalCharacter(40)?this.parseCall(t,e,!0):this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMember(t,e,!0);else if(this.consumeOptionalCharacter(91))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(40))t=this.parseCall(t,e,!1);else if(this.consumeOptionalOperator("!"))t=new Ne(this.span(e),this.sourceSpan(e),t);else if(this.next.isTemplateLiteralEnd())t=this.parseNoInterpolationTaggedTemplateLiteral(t,e);else{if(!this.next.isTemplateLiteralPart())return t;t=this.parseTaggedTemplateLiteral(t,e)}}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;let t=this.parsePipe();return this.consumeOptionalCharacter(et)||(this.error("Missing closing parentheses"),this.consumeOptionalCharacter(et)),this.rparensExpected--,new be(this.span(e),this.sourceSpan(e),t)}if(this.next.isKeywordNull())return this.advance(),new me(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new me(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new me(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new me(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordIn())return this.advance(),new me(this.span(e),this.sourceSpan(e),"in");if(this.next.isKeywordThis())return this.advance(),new se(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;let t=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new fe(this.span(e),this.sourceSpan(e),t)}if(this.next.isCharacter(nt))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new ne(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let t=this.next.toNumber();return this.advance(),new me(this.span(e),this.sourceSpan(e),t)}if(this.next.isTemplateLiteralEnd())return this.parseNoInterpolationTemplateLiteral();if(this.next.isTemplateLiteralPart())return this.parseTemplateLiteral();if(this.next.isString()&&this.next.kind===pt.Plain){let t=this.next.toString();return this.advance(),new me(this.span(e),this.sourceSpan(e),t)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new ie(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new ie(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new ie(this.span(e),this.sourceSpan(e)))}parseExpressionList(e){let t=[];do{if(this.next.isCharacter(e))break;t.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return t}parseLiteralMap(){let e=[],t=[],i=this.inputIndex;if(this.expectCharacter(nt),!this.consumeOptionalCharacter(st)){this.rbracesExpected++;do{let i=this.inputIndex,n=this.next.isString(),s=this.expectIdentifierOrKeywordOrString(),r={key:s,quoted:n};if(e.push(r),n)this.expectCharacter(it),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(it))t.push(this.parsePipe());else{r.isShorthandInitialized=!0;let e=this.span(i),n=this.sourceSpan(i);t.push(new oe(e,n,n,new ne(e,n),s))}}while(this.consumeOptionalCharacter(44)&&!this.next.isCharacter(st));this.rbracesExpected--,this.expectCharacter(st)}return new xe(this.span(i),this.sourceSpan(i),e,t)}parseAccessMember(e,t,i){let n,s=this.inputIndex,r=this.withContext(Pt.Writable,()=>{let t=this.expectIdentifierOrKeyword()??"";return 0===t.length&&this.error("Expected identifier for property access",e.span.end),t}),a=this.sourceSpan(s);if(i)this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),n=new ie(this.span(t),this.sourceSpan(t))):n=new ce(this.span(t),this.sourceSpan(t),a,e,r);else if(this.consumeOptionalOperator("=")){if(!(1&this.parseFlags))return this.error("Bindings cannot contain assignments"),new ie(this.span(t),this.sourceSpan(t));let i=this.parseConditional();n=new le(this.span(t),this.sourceSpan(t),a,e,r,i)}else n=new oe(this.span(t),this.sourceSpan(t),a,e,r);return n}parseCall(e,t,i){let n=this.inputIndex;this.rparensExpected++;let s=this.parseCallArguments(),r=this.span(n,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(et),this.rparensExpected--;let a=this.span(t),o=this.sourceSpan(t);return i?new Ie(a,o,e,s,r):new Ce(a,o,e,s,r)}parseCallArguments(){if(this.next.isCharacter(et))return[];let e=[];do{e.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return e}expectTemplateBindingKey(){let e="",t=!1,i=this.currentAbsoluteOffset;do{e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator("-"),t&&(e+="-")}while(t);return{source:e,span:new ke(i,i+e.length)}}parseTemplateBindings(e){let t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){let i=this.parseLetBinding();if(i)t.push(i);else{let i=this.expectTemplateBindingKey(),n=this.parseAsBinding(i);n?t.push(n):(i.source=e.source+i.source.charAt(0).toUpperCase()+i.source.substring(1),t.push(...this.parseDirectiveKeywordBindings(i)))}this.consumeStatementTerminator()}return new Ot(t,[],this.errors)}parseKeyedReadOrWrite(e,t,i){return this.withContext(Pt.Writable,()=>{this.rbracketsExpected++;let n=this.parsePipe();if(n instanceof ie&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(93),!this.consumeOptionalOperator("="))return i?new he(this.span(t),this.sourceSpan(t),e,n):new ue(this.span(t),this.sourceSpan(t),e,n);if(!i){let i=this.parseConditional();return new pe(this.span(t),this.sourceSpan(t),e,n,i)}return this.error("The '?.' operator cannot be used in the assignment"),new ie(this.span(t),this.sourceSpan(t))})}parseDirectiveKeywordBindings(e){let t=[];this.consumeOptionalCharacter(it);let i=this.getDirectiveBoundTarget(),n=this.currentAbsoluteOffset,s=this.parseAsBinding(e);s||(this.consumeStatementTerminator(),n=this.currentAbsoluteOffset);let r=new ke(e.span.start,n);return t.push(new Me(r,e,i)),s&&t.push(s),t}getDirectiveBoundTarget(){if(this.next===wt||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:t,end:i}=e.span,n=this.input.substring(t,i);return new Le(e,n,this.location,this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let t=this.expectTemplateBindingKey();this.consumeStatementTerminator();let i=new ke(e.span.start,this.currentAbsoluteOffset);return new Ae(i,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let t=this.expectTemplateBindingKey(),i=null;this.consumeOptionalOperator("=")&&(i=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let n=new ke(e,this.currentAbsoluteOffset);return new Ae(n,t,i)}parseNoInterpolationTaggedTemplateLiteral(e,t){let i=this.parseNoInterpolationTemplateLiteral();return new Pe(this.span(t),this.sourceSpan(t),e,i)}parseNoInterpolationTemplateLiteral(){let e=this.next.strValue,t=this.inputIndex;this.advance();let i=this.span(t),n=this.sourceSpan(t);return new Te(i,n,[new Oe(i,n,e)],[])}parseTaggedTemplateLiteral(e,t){let i=this.parseTemplateLiteral();return new Pe(this.span(t),this.sourceSpan(t),e,i)}parseTemplateLiteral(){let e=[],t=[],i=this.inputIndex;for(;this.next!==wt;){let i=this.next;if(i.isTemplateLiteralPart()||i.isTemplateLiteralEnd()){let t=this.inputIndex;if(this.advance(),e.push(new Oe(this.span(t),this.sourceSpan(t),i.strValue)),i.isTemplateLiteralEnd())break}else if(i.isTemplateLiteralInterpolationStart()){this.advance();let e=this.parsePipe();e instanceof ie?this.error("Template literal interpolation cannot be empty"):t.push(e)}else this.advance()}return new Te(this.span(i),this.sourceSpan(i),e,t)}consumeStatementTerminator(){this.consumeOptionalCharacter(59)||this.consumeOptionalCharacter(44)}error(e,t=null){this.errors.push(new J(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(e=null){return null==e&&(e=this.index),e<this.tokens.length?`at column ${this.tokens[e].index+1} in`:"at the end of the expression"}_reportErrorForPrivateIdentifier(e,t){let i=`Private identifiers are not supported. Unexpected private identifier: ${e}`;null!==t&&(i+=`, ${t}`),this.error(i)}skip(){let e=this.next;for(;!(!(this.index<this.tokens.length)||e.isCharacter(59)||e.isOperator("|")||!(this.rparensExpected<=0)&&e.isCharacter(et)||!(this.rbracesExpected<=0)&&e.isCharacter(st)||!(this.rbracketsExpected<=0)&&e.isCharacter(93)||this.context&Pt.Writable&&e.isOperator("="));)this.next.isError()&&this.errors.push(new J(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}},Lt=class extends Re{errors=[];visitPipe(){this.errors.push("pipes")}};var At,Mt,Rt,Bt,Dt=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"}));function Vt(e){return t=>t.kind===e}function Ft(e,t){return i=>i.kind===e&&t===i.expression instanceof dt}function Kt({start:e,end:t},i){let n=e,s=t;for(;s!==n&&/\s/.test(i[s-1]);)s--;for(;n!==s&&/\s/.test(i[n]);)n++;return{start:n,end:s}}function Wt({start:e,end:t},i){let n=e,s=t;for(;s!==i.length&&/\s/.test(i[s]);)s++;for(;0!==n&&/\s/.test(i[n-1]);)n--;return{start:n,end:s}}function _t(e,t){return"("===t[e.start-1]&&")"===t[e.end]?{start:e.start-1,end:e.end+1}:e}function qt(e){return"string"==typeof e?t=>t===e:t=>e.test(t)}function $t(e){let{start:t,end:i}=e;return{start:t,end:i,range:[t,i]}}Array.from(Dt).reduce((e,[t,i])=>(e.set(t,i),e),new Map),Vt(We.StyleMap),Vt(We.ClassMap),Vt(We.StyleProp),Vt(We.ClassProp),Ft(We.Attribute,!0),Ft(We.Property,!0),Ft(We.Attribute,!1),Ft(We.DomProperty,!0),Ft(We.DomProperty,!1),Vt(We.Attribute),Vt(We.StyleMap),Vt(We.ClassMap),Vt(We.StyleProp),Vt(We.ClassProp),new Set([We.Listener,We.TwoWayListener,We.StyleMap,We.ClassMap,We.StyleProp,We.ClassProp,We.Property,We.TwoWayProperty,We.DomProperty,We.Attribute]),new Map([[d.HTML,G.sanitizeHtml],[d.RESOURCE_URL,G.sanitizeResourceUrl],[d.SCRIPT,G.sanitizeScript],[d.STYLE,G.sanitizeStyle],[d.URL,G.sanitizeUrl]]),new Map([[d.HTML,G.trustConstantHtml],[d.RESOURCE_URL,G.trustConstantResourceUrl]]),function(e){e[e.None=0]="None",e[e.ViewContextRead=1]="ViewContextRead",e[e.ViewContextWrite=2]="ViewContextWrite",e[e.SideEffectful=4]="SideEffectful"}(At||(At={})),new Map([[Y.Property,Ue.Property],[Y.TwoWay,Ue.TwoWayProperty],[Y.Attribute,Ue.Attribute],[Y.Class,Ue.ClassName],[Y.Style,Ue.StyleProperty],[Y.Animation,Ue.Animation]]),function(e){e[e.NG_CONTENT=0]="NG_CONTENT",e[e.STYLE=1]="STYLE",e[e.STYLESHEET=2]="STYLESHEET",e[e.SCRIPT=3]="SCRIPT",e[e.OTHER=4]="OTHER"}(Mt||(Mt={})),function(e){e.IDLE="idle",e.TIMER="timer",e.INTERACTION="interaction",e.IMMEDIATE="immediate",e.HOVER="hover",e.VIEWPORT="viewport",e.NEVER="never"}(Rt||(Rt={})),function(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"}(Bt||(Bt={})),new class{full;major;minor;patch;constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}}("20.0.5");function Ht(e,t){let i=t?(e=>bt.prototype._commentStart(e))(e):null;if(null===i)return{text:e,comments:[]};let n={type:"CommentLine",value:e.slice(i+2),...$t({start:i,end:e.length})};return{text:e.slice(0,i),comments:[n]}}function Ut(e,t=!0){return i=>{let n=new ft,s=new bt(n),{text:r,comments:a}=Ht(i,t),o=e(r,s);if(0!==o.errors.length){let[{message:e}]=o.errors;throw new SyntaxError(e.replace(/^Parser Error: | at column \d+ in [^]*$/g,""))}return{result:o,comments:a,text:r}}}var jt=Ut((e,t)=>t.parseBinding(e,"",0)),Gt=Ut((e,t)=>t.parseAction(e,"",0)),zt=Ut((e,t)=>t.parseInterpolationExpression(e,"",0)),Qt=Ut((e,t)=>t.parseTemplateBindings("",e,"",0,0),!1),Yt=(e,t,i)=>{if(!e||null!=t)return Array.isArray(t)||"string"==typeof t?t[i<0?t.length+i:i]:t.at(i)},Xt=class{text;constructor(e){this.text=e}getCharacterIndex(e,t){return function(e,t,i){let n=qt(t);for(let t=i;t<e.length;t++)if(n(e[t]))return t;throw new Error(`Cannot find character ${t} from index ${i} in ${JSON.stringify(e)}`)}(this.text,e,t)}getCharacterLastIndex(e,t){return function(e,t,i){let n=qt(t);for(let t=i;t>=0;t--)if(n(e[t]))return t;throw new Error(`Cannot find front char ${t} from index ${i} in ${JSON.stringify(e)}`)}(this.text,e,t)}transformSpan(e,{stripSpaces:t=!1,hasParentParens:i=!1}={}){if(!t)return $t(e);let{outerSpan:n,innerSpan:s,hasParens:r}=function(e,t,i){let n=0,s={start:e.start,end:e.end};for(;;){let e=Wt(s,t),i=_t(e,t);if(e.start===i.start&&e.end===i.end)break;s.start=i.start,s.end=i.end,n++}return{hasParens:0!==(i?n-1:n),outerSpan:Kt(i?{start:s.start+1,end:s.end-1}:s,t),innerSpan:Kt(e,t)}}(e,this.text,i),a=$t(s);return r&&(a.extra={parenthesized:!0,parenStart:n.start,parenEnd:n.end}),a}createNode(e,{stripSpaces:t=!0,hasParentParens:i=!1}={}){let{type:n,start:s,end:r}=e,a={...e,...this.transformSpan({start:s,end:r},{stripSpaces:t,hasParentParens:i})};switch(n){case"NumericLiteral":case"StringLiteral":{let e=this.text.slice(a.start,a.end),{value:t}=a;a.extra={...a.extra,raw:e,rawValue:t};break}case"ObjectProperty":{let{shorthand:e}=a;e&&(a.extra={...a.extra,shorthand:e});break}}return a}};function Jt(e){var t;return!(null==(t=e.extra)||!t.parenthesized)}function Zt(e){return Jt(e)?e.extra.parenStart:e.start}function ei(e){return Jt(e)?e.extra.parenEnd:e.end}function ti(e){return("OptionalCallExpression"===e.type||"OptionalMemberExpression"===e.type)&&!Jt(e)}function ii(e,t){let{start:i,end:n}=e.sourceSpan;return i>=n||/^\s+$/.test(t.slice(i,n))}var ni,si,ri,ai,oi,li,ci,ui=class extends Xt{constructor(e,t){super(t),r(this,ri),r(this,ni),r(this,si),a(this,ni,e),a(this,si,t)}get node(){return o(this,ri,li).call(this,s(this,ni))}transformNode(e){return o(this,ri,ci).call(this,e)}};function hi(e){return e instanceof Me}function pi(e){return e instanceof Ae}ni=new WeakMap,si=new WeakMap,ri=new WeakSet,ai=function(e,{stripSpaces:t=!0,hasParentParens:i=!1}={}){return this.createNode(e,{stripSpaces:t,hasParentParens:i})},oi=function(e,t,{computed:i,optional:n,end:r=ei(t),hasParentParens:a=!1}){if(ii(e,s(this,si))||e.sourceSpan.start===t.start)return t;let l=o(this,ri,li).call(this,e),c=ti(l);return o(this,ri,ai).call(this,{type:n||c?"OptionalMemberExpression":"MemberExpression",object:l,property:t,computed:i,...n?{optional:!0}:c?{optional:!1}:void 0,start:Zt(l),end:r},{hasParentParens:a})},li=function(e,t){return o(this,ri,ci).call(this,e,t)},ci=function(e,t){let{isInParentParens:i}={isInParentParens:!1,...t};if(e instanceof ve){let{expressions:t}=e;if(1!==t.length)throw new Error("Unexpected 'Interpolation'");return o(this,ri,li).call(this,t[0])}if(e instanceof ge)return o(this,ri,ai).call(this,{type:"UnaryExpression",prefix:!0,argument:o(this,ri,li).call(this,e.expr),operator:e.operator,...e.sourceSpan},{hasParentParens:i});if(e instanceof ye){let{left:t,operation:n,right:s}=e,r=o(this,ri,li).call(this,t),a=o(this,ri,li).call(this,s),l={left:r,right:a,start:Zt(r),end:ei(a)};return"&&"===n||"||"===n||"??"===n?o(this,ri,ai).call(this,{...l,type:"LogicalExpression",operator:n},{hasParentParens:i}):o(this,ri,ai).call(this,{...l,type:"BinaryExpression",operator:n},{hasParentParens:i})}if(e instanceof de){let{exp:t,name:n,args:s}=e,r=o(this,ri,li).call(this,t),a=Zt(r),l=ei(r),c=this.getCharacterIndex(/\S/,this.getCharacterIndex("|",l)+1),u=o(this,ri,ai).call(this,{type:"Identifier",name:n,start:c,end:c+n.length}),h=s.map(e=>o(this,ri,li).call(this,e));return o(this,ri,ai).call(this,{type:"NGPipeExpression",left:r,right:u,arguments:h,start:a,end:ei(0===h.length?u:Yt(!1,h,-1))},{hasParentParens:i})}if(e instanceof re)return o(this,ri,ai).call(this,{type:"NGChainedExpression",expressions:e.expressions.map(e=>o(this,ri,li).call(this,e)),...e.sourceSpan},{hasParentParens:i});if(e instanceof ae){let{condition:t,trueExp:n,falseExp:s}=e,r=o(this,ri,li).call(this,t),a=o(this,ri,li).call(this,n),l=o(this,ri,li).call(this,s);return o(this,ri,ai).call(this,{type:"ConditionalExpression",test:r,consequent:a,alternate:l,start:Zt(r),end:ei(l)},{hasParentParens:i})}if(e instanceof ie)return o(this,ri,ai).call(this,{type:"NGEmptyExpression",...e.sourceSpan},{hasParentParens:i});if(e instanceof ne)return o(this,ri,ai).call(this,{type:"ThisExpression",...e.sourceSpan},{hasParentParens:i});if(e instanceof ue||e instanceof he)return o(this,ri,oi).call(this,e.receiver,o(this,ri,li).call(this,e.key),{computed:!0,optional:e instanceof he,end:e.sourceSpan.end,hasParentParens:i});if(e instanceof fe)return o(this,ri,ai).call(this,{type:"ArrayExpression",elements:e.expressions.map(e=>o(this,ri,li).call(this,e)),...e.sourceSpan},{hasParentParens:i});if(e instanceof xe){let{keys:t,values:n}=e,s=n.map(e=>o(this,ri,li).call(this,e)),r=t.map(({key:t,quoted:i},n)=>{let r=s[n],a=Zt(r),l=ei(r),c=this.getCharacterIndex(/\S/,0===n?e.sourceSpan.start+1:this.getCharacterIndex(",",ei(s[n-1]))+1),u={start:c,end:a===c?l:this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex(":",a-1)-1)+1},h=i?o(this,ri,ai).call(this,{type:"StringLiteral",value:t,...u}):o(this,ri,ai).call(this,{type:"Identifier",name:t,...u}),p=h.end<h.start||c===a;return o(this,ri,ai).call(this,{type:"ObjectProperty",key:h,value:r,shorthand:p,computed:!1,start:Zt(h),end:l})});return o(this,ri,ai).call(this,{type:"ObjectExpression",properties:r,...e.sourceSpan},{hasParentParens:i})}if(e instanceof me){let{value:t}=e;switch(typeof t){case"boolean":return o(this,ri,ai).call(this,{type:"BooleanLiteral",value:t,...e.sourceSpan},{hasParentParens:i});case"number":return o(this,ri,ai).call(this,{type:"NumericLiteral",value:t,...e.sourceSpan},{hasParentParens:i});case"object":return o(this,ri,ai).call(this,{type:"NullLiteral",...e.sourceSpan},{hasParentParens:i});case"string":return o(this,ri,ai).call(this,{type:"StringLiteral",value:t,...e.sourceSpan},{hasParentParens:i});case"undefined":return o(this,ri,ai).call(this,{type:"Identifier",name:"undefined",...e.sourceSpan},{hasParentParens:i});default:throw new Error("Unexpected LiteralPrimitive value type "+typeof t)}}if(e instanceof Ce||e instanceof Ie){let t=e instanceof Ie,{receiver:n,args:s}=e,r=1===s.length?[o(this,ri,li).call(this,s[0],{isInParentParens:!0})]:s.map(e=>o(this,ri,li).call(this,e)),a=o(this,ri,li).call(this,n),l=ti(a),c=t||l?"OptionalCallExpression":"CallExpression";return o(this,ri,ai).call(this,{type:c,callee:a,arguments:r,..."OptionalCallExpression"===c?{optional:t}:void 0,start:Zt(a),end:e.sourceSpan.end},{hasParentParens:i})}if(e instanceof Ne){let t=o(this,ri,li).call(this,e.expression);return o(this,ri,ai).call(this,{type:"TSNonNullExpression",expression:t,start:Zt(t),end:e.sourceSpan.end},{hasParentParens:i})}if(e instanceof we||e instanceof Ee||e instanceof Se){let t=e instanceof we?"!":e instanceof Ee?"typeof":e instanceof Se?"void":void 0;if(!t)throw new Error("Unexpected expression.");let{start:n}=e.sourceSpan;if("typeof"===t||"void"===t){let e=this.text.lastIndexOf(t,n);if(-1===e)throw new Error(`Cannot find operator '${t}' from index ${n} in ${JSON.stringify(this.text)}`);n=e}let s=o(this,ri,li).call(this,e.expression);return o(this,ri,ai).call(this,{type:"UnaryExpression",prefix:!0,operator:t,argument:s,start:n,end:ei(s)},{hasParentParens:i})}if(e instanceof oe||e instanceof ce){let{receiver:t,name:n}=e,r=this.getCharacterLastIndex(/\S/,e.sourceSpan.end-1)+1,a=o(this,ri,ai).call(this,{type:"Identifier",name:n,start:r-n.length,end:r},ii(t,s(this,si))?{hasParentParens:i}:{});return o(this,ri,oi).call(this,t,a,{computed:!1,optional:e instanceof ce,hasParentParens:i})}if(e instanceof pe){let t=o(this,ri,li).call(this,e.key),n=o(this,ri,li).call(this,e.value),s=o(this,ri,oi).call(this,e.receiver,t,{computed:!0,optional:!1,end:this.getCharacterIndex("]",ei(t))+1});return o(this,ri,ai).call(this,{type:"AssignmentExpression",left:s,operator:"=",right:n,start:Zt(s),end:ei(n)},{hasParentParens:i})}if(e instanceof le){let{receiver:t,name:n,value:s}=e,r=o(this,ri,li).call(this,s),a=this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex("=",Zt(r)-1)-1)+1,l=o(this,ri,ai).call(this,{type:"Identifier",name:n,start:a-n.length,end:a}),c=o(this,ri,oi).call(this,t,l,{computed:!1,optional:!1});return o(this,ri,ai).call(this,{type:"AssignmentExpression",left:c,operator:"=",right:r,start:Zt(c),end:ei(r)},{hasParentParens:i})}if(e instanceof Pe)return o(this,ri,ai).call(this,{type:"TaggedTemplateExpression",tag:o(this,ri,li).call(this,e.tag),quasi:o(this,ri,li).call(this,e.template),...e.sourceSpan});if(e instanceof Te){let{elements:t,expressions:i}=e;return o(this,ri,ai).call(this,{type:"TemplateLiteral",quasis:t.map(t=>o(this,ri,li).call(this,t,{parent:e})),expressions:i.map(e=>o(this,ri,li).call(this,e)),...e.sourceSpan})}if(e instanceof Oe){let{elements:i}=t.parent,n=i.indexOf(e),s=0===n,r=n===i.length-1,a=e.sourceSpan.end-(r?1:0),l=e.sourceSpan.start+(s?1:0),c=this.text.slice(l,a);return o(this,ri,ai).call(this,{type:"TemplateElement",value:{cooked:e.text,raw:c},start:l,end:a,tail:r},{stripSpaces:!1})}if(e instanceof be)return o(this,ri,ci).call(this,e.expression);throw new Error(`Unexpected node type '${e.constructor.name}'`)};var di,mi,fi,xi,vi,yi,gi,wi,Ei,Si,Ni,Ci,Ii=class extends ui{constructor(e,t){super(void 0,t),r(this,fi),r(this,di),r(this,mi),a(this,di,e),a(this,mi,t);for(let t of e)o(this,fi,Ei).call(this,t)}get expressions(){return o(this,fi,Ni).call(this)}};function Pi({result:{ast:e},text:t,comments:i}){return Object.assign(function(e,t){return new ui(e,t).node}(e,t),{comments:i})}function Ti({result:{templateBindings:e},text:t}){return function(e,t){return new Ii(e,t).expressions}(e,t)}di=new WeakMap,mi=new WeakMap,fi=new WeakSet,xi=function(){return s(this,di)[0].key},vi=function(e,{stripSpaces:t=!0}={}){return this.createNode(e,{stripSpaces:t})},yi=function(e){return this.transformNode(e)},gi=function(e){return function(e){return e.slice(0,1).toLowerCase()+e.slice(1)}(e.slice(s(this,fi,xi).source.length))},wi=function(e){let t=s(this,mi);if('"'!==t[e.start]&&"'"!==t[e.start])return;let i=t[e.start],n=!1;for(let s=e.start+1;s<t.length;s++)switch(t[s]){case i:if(!n)return void(e.end=s+1);default:n=!1;break;case"\\":n=!n}},Ei=function(e){o(this,fi,wi).call(this,e.key.span),pi(e)&&e.value&&o(this,fi,wi).call(this,e.value.span)},Si=function(e){if(!e.value||e.value.source)return e.value;let t=this.getCharacterIndex(/\S/,e.sourceSpan.start);return{source:"$implicit",span:{start:t,end:t}}},Ni=function(){let e=s(this,di),[t]=e,i=0===s(this,mi).slice(t.sourceSpan.start,t.sourceSpan.end).trim().length?e.slice(1):e,n=[],r=null;for(let[e,t]of i.entries()){if(r&&hi(r)&&pi(t)&&t.value&&t.value.source===r.key.source){let e=o(this,fi,vi).call(this,{type:"NGMicrosyntaxKey",name:t.key.source,...t.key.span}),i=(e,t)=>({...e,...this.transformSpan({start:e.start,end:t})}),s=t=>({...i(t,e.end),alias:e}),r=n.pop();if("NGMicrosyntaxExpression"===r.type)n.push(s(r));else{if("NGMicrosyntaxKeyedExpression"!==r.type)throw new Error(`Unexpected type ${r.type}`);{let e=s(r.expression);n.push(i({...r,expression:e},e.end))}}}else n.push(o(this,fi,Ci).call(this,t,e));r=t}return o(this,fi,vi).call(this,{type:"NGMicrosyntax",body:n,...0===n.length?e[0].sourceSpan:{start:n[0].start,end:Yt(!1,n,-1).end}})},Ci=function(e,t){if(hi(e)){let{key:i,value:n}=e;return n?0===t?o(this,fi,vi).call(this,{type:"NGMicrosyntaxExpression",expression:o(this,fi,yi).call(this,n.ast),alias:null,...n.sourceSpan}):o(this,fi,vi).call(this,{type:"NGMicrosyntaxKeyedExpression",key:o(this,fi,vi).call(this,{type:"NGMicrosyntaxKey",name:o(this,fi,gi).call(this,i.source),...i.span}),expression:o(this,fi,vi).call(this,{type:"NGMicrosyntaxExpression",expression:o(this,fi,yi).call(this,n.ast),alias:null,...n.sourceSpan}),start:i.span.start,end:n.sourceSpan.end}):o(this,fi,vi).call(this,{type:"NGMicrosyntaxKey",name:o(this,fi,gi).call(this,i.source),...i.span})}{let{key:t,sourceSpan:i}=e;if(/^let\s$/.test(s(this,mi).slice(i.start,i.start+4))){let{value:n}=e;return o(this,fi,vi).call(this,{type:"NGMicrosyntaxLet",key:o(this,fi,vi).call(this,{type:"NGMicrosyntaxKey",name:t.source,...t.span}),value:n?o(this,fi,vi).call(this,{type:"NGMicrosyntaxKey",name:n.source,...n.span}):null,start:i.start,end:n?n.span.end:t.span.end})}{let i=o(this,fi,Si).call(this,e);return o(this,fi,vi).call(this,{type:"NGMicrosyntaxAs",key:o(this,fi,vi).call(this,{type:"NGMicrosyntaxKey",name:i.source,...i.span}),alias:o(this,fi,vi).call(this,{type:"NGMicrosyntaxKey",name:t.source,...t.span}),start:i.span.start,end:t.span.end})}}};var Oi=e=>Pi(Gt(e));function bi(e){var t,i,n;let s=(null==(t=e.range)?void 0:t[0])??e.start,r=null==(n=(null==(i=e.declaration)?void 0:i.decorators)??e.decorators)?void 0:n[0];return r?Math.min(bi(r),s):s}function ki(e){var t;return(null==(t=e.range)?void 0:t[1])??e.end}function Li(e){return{astFormat:"estree",parse(t){let i=e(t);return{type:"NGRoot",node:e===Oi&&"NGChainedExpression"!==i.type?{...i,type:"NGChainedExpression",expressions:[i]}:i}},locStart:bi,locEnd:ki}}var Ai=Li(Oi),Mi=Li(e=>Pi(jt(e))),Ri=Li(e=>Pi(zt(e))),Bi=Li(e=>Ti(Qt(e))),Di=l;exports.default=Di,exports.parsers=E;
|
|
2
|
+
//# sourceMappingURL=angular-NBOYSdm_.js.map
|