@jixo/cli 0.21.2 → 0.21.3
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/bundle/acorn-BoNAepQd.js +5106 -15
- package/bundle/angular-pDmFHCFc.js +3797 -2
- package/bundle/babel-CxK7_76E.js +10059 -15
- package/bundle/estree-CfdzwKX-.js +6941 -35
- package/bundle/flow-CGeR1fbg.js +52507 -18
- package/bundle/glimmer-CX3iu1jj.js +7297 -23
- package/bundle/graphql-C32NbEjQ.js +1888 -16
- package/bundle/html-BYSSlHHY.js +6557 -22
- package/bundle/index.js +64035 -305
- package/bundle/markdown-DiTmrgL1.js +6828 -53
- package/bundle/meriyah-DM8jkzWU.js +8942 -4
- package/bundle/postcss-Au71UEeZ.js +6784 -51
- package/bundle/typescript-Dn4uCwAY.js +23100 -15
- package/bundle/yaml-D6G3z4bP.js +5293 -156
- package/dist/commands/apply.d.ts +9 -0
- package/dist/commands/gen.d.ts +9 -0
- package/dist/commands/google-aistudio.d.ts +8 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/runCli.d.ts +6 -0
- package/dist/runCli.d.ts.map +1 -0
- package/dist/{cli.js → runCli.js} +7 -4
- package/dist/runCli.js.map +1 -0
- package/package.json +29 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
|
@@ -1,2 +1,3797 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=e=>{throw TypeError(e)},n=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})},r=(e,n,r)=>n.has(e)||t(`Cannot `+r),i=(e,t,n)=>(r(e,t,`read from private field`),n?n.call(e):t.get(e)),a=(e,n,r)=>n.has(e)?t(`Cannot add the same private member more than once`):n instanceof WeakSet?n.add(e):n.set(e,r),o=(e,t,n,i)=>(r(e,t,`write to private field`),i?i.call(e,n):t.set(e,n),n),s=(e,t,n)=>(r(e,t,`access private method`),n),c={};n(c,{parsers:()=>l});var l={};n(l,{__ng_action:()=>pi,__ng_binding:()=>mi,__ng_directive:()=>gi,__ng_interpolation:()=>hi}),RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,`g`);var u;(function(e){e[e.Emulated=0]=`Emulated`,e[e.None=2]=`None`,e[e.ShadowDom=3]=`ShadowDom`})(u||={});var d;(function(e){e[e.OnPush=0]=`OnPush`,e[e.Default=1]=`Default`})(d||={});var f;(function(e){e[e.None=0]=`None`,e[e.SignalBased=1]=`SignalBased`,e[e.HasDecoratorInputTransform=2]=`HasDecoratorInputTransform`})(f||={});var 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`})(p||={});var ee;(function(e){e[e.Error=0]=`Error`,e[e.Warning=1]=`Warning`,e[e.Ignore=2]=`Ignore`})(ee||={});var te;(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`})(te||={});var ne;(function(e){e[e.Directive=0]=`Directive`,e[e.Pipe=1]=`Pipe`,e[e.NgModule=2]=`NgModule`})(ne||={});var re;(function(e){e[e.Emulated=0]=`Emulated`,e[e.None=2]=`None`,e[e.ShadowDom=3]=`ShadowDom`})(re||={});var ie;(function(e){e[e.Little=0]=`Little`,e[e.Big=1]=`Big`})(ie||={});var ae;(function(e){e[e.None=0]=`None`,e[e.Const=1]=`Const`})(ae||={});var oe;(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`})(oe||={});var se=void 0,ce;(function(e){e[e.Minus=0]=`Minus`,e[e.Plus=1]=`Plus`})(ce||={});var m;(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`})(m||={});function le(e,t){return e==null||t==null?e==t:e.isEquivalent(t)}function ue(e,t,n){let r=e.length;if(r!==t.length)return!1;for(let i=0;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function de(e,t){return ue(e,t,(e,t)=>e.isEquivalent(t))}var h=class{type;sourceSpan;constructor(e,t){this.type=e||null,this.sourceSpan=t||null}prop(e,t){return new Se(this,e,null,t)}key(e,t,n){return new Ce(this,e,t,n)}callFn(e,t,n){return new _e(this,e,null,t,n)}instantiate(e,t,n){return new ve(this,e,t,n)}conditional(e,t=null,n){return new xe(this,e,t,null,n)}equals(e,t){return new g(m.Equals,this,e,null,t)}notEquals(e,t){return new g(m.NotEquals,this,e,null,t)}identical(e,t){return new g(m.Identical,this,e,null,t)}notIdentical(e,t){return new g(m.NotIdentical,this,e,null,t)}minus(e,t){return new g(m.Minus,this,e,null,t)}plus(e,t){return new g(m.Plus,this,e,null,t)}divide(e,t){return new g(m.Divide,this,e,null,t)}multiply(e,t){return new g(m.Multiply,this,e,null,t)}modulo(e,t){return new g(m.Modulo,this,e,null,t)}power(e,t){return new g(m.Exponentiation,this,e,null,t)}and(e,t){return new g(m.And,this,e,null,t)}bitwiseOr(e,t){return new g(m.BitwiseOr,this,e,null,t)}bitwiseAnd(e,t){return new g(m.BitwiseAnd,this,e,null,t)}or(e,t){return new g(m.Or,this,e,null,t)}lower(e,t){return new g(m.Lower,this,e,null,t)}lowerEquals(e,t){return new g(m.LowerEquals,this,e,null,t)}bigger(e,t){return new g(m.Bigger,this,e,null,t)}biggerEquals(e,t){return new g(m.BiggerEquals,this,e,null,t)}isBlank(e){return this.equals(TYPED_NULL_EXPR,e)}nullishCoalesce(e,t){return new g(m.NullishCoalesce,this,e,null,t)}toStmt(){return new ke(this,null)}},fe=class e extends h{name;constructor(e,t,n){super(t,n),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 me(this.name,e,null,this.sourceSpan)}},pe=class e extends h{expr;constructor(e,t,n){super(t,n),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())}},me=class e extends h{name;value;constructor(e,t,n,r){super(n||t.type,r),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 Oe(this.name,this.value,e,t,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(se,Ee.Final)}},he=class e extends h{receiver;index;value;constructor(e,t,n,r,i){super(r||n.type,i),this.receiver=e,this.index=t,this.value=n}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)}},ge=class e extends h{receiver;name;value;constructor(e,t,n,r,i){super(r||n.type,i),this.receiver=e,this.name=t,this.value=n}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)}},_e=class e extends h{fn;args;pure;constructor(e,t,n,r,i=!1){super(n,r),this.fn=e,this.args=t,this.pure=i}get receiver(){return this.fn}isEquivalent(t){return t instanceof e&&this.fn.isEquivalent(t.fn)&&de(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)}},ve=class e extends h{classExpr;args;constructor(e,t,n,r){super(n,r),this.classExpr=e,this.args=t}isEquivalent(t){return t instanceof e&&this.classExpr.isEquivalent(t.classExpr)&&de(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)}},ye=class e extends h{value;constructor(e,t,n){super(t,n),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)}},be=class e extends h{value;typeParams;constructor(e,t,n=null,r){super(t,r),this.value=e,this.typeParams=n}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)}},xe=class e extends h{condition;falseCase;trueCase;constructor(e,t,n=null,r,i){super(r||t.type,i),this.condition=e,this.falseCase=n,this.trueCase=t}isEquivalent(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&this.trueCase.isEquivalent(t.trueCase)&&le(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(),(t=this.falseCase)?.clone(),this.type,this.sourceSpan)}},g=class e extends h{operator;rhs;lhs;constructor(e,t,n,r,i){super(r||t.type,i),this.operator=e,this.rhs=n,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)}},Se=class e extends h{receiver;name;constructor(e,t,n,r){super(n,r),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 ge(this.receiver,this.name,e,null,this.sourceSpan)}clone(){return new e(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},Ce=class e extends h{receiver;index;constructor(e,t,n,r){super(n,r),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 he(this.receiver,this.index,e,null,this.sourceSpan)}clone(){return new e(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},we=class e extends h{entries;constructor(e,t,n){super(t,n),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(t){return t instanceof e&&de(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)}},Te=class e extends h{entries;valueType=null;constructor(e,t,n){super(t,n),this.entries=e,t&&(this.valueType=t.valueType)}isEquivalent(t){return t instanceof e&&de(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)}},Ee;(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`})(Ee||={});var De=class{modifiers;sourceSpan;leadingComments;constructor(e=Ee.None,t=null,n){this.modifiers=e,this.sourceSpan=t,this.leadingComments=n}hasModifier(e){return(this.modifiers&e)!==0}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}},Oe=class e extends De{name;value;type;constructor(e,t,n,r,i,a){super(r,i,a),this.name=e,this.value=t,this.type=n||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)}},ke=class e extends De{expr;constructor(e,t,n){super(Ee.None,t,n),this.expr=e}isEquivalent(t){return t instanceof e&&this.expr.isEquivalent(t.expr)}visitStatement(e,t){return e.visitExpressionStmt(this,t)}};function Ae(e,t,n){return new fe(e,t,n)}Ae(`<unknown>`),class e{static INSTANCE=new e;keyOf(e){if(e instanceof ye&&typeof e.value==`string`)return`"${e.value}"`;if(e instanceof ye)return String(e.value);if(e instanceof we){let t=[];for(let n of e.entries)t.push(this.keyOf(n));return`[${t.join(`,`)}]`}else if(e instanceof Te){let t=[];for(let n of e.entries){let e=n.key;n.quoted&&(e=`"${e}"`),t.push(e+`:`+this.keyOf(n.value))}return`{${t.join(`,`)}}`}else{if(e instanceof be)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof fe)return`read(${e.name})`;if(e instanceof pe)return`typeof(${this.keyOf(e.expr)})`;throw Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};var _=`@angular/core`,v=class{static NEW_METHOD=`factory`;static TRANSFORM_METHOD=`transform`;static PATCH_DEPS=`patchedDeps`;static core={name:null,moduleName:_};static namespaceHTML={name:`ɵɵnamespaceHTML`,moduleName:_};static namespaceMathML={name:`ɵɵnamespaceMathML`,moduleName:_};static namespaceSVG={name:`ɵɵnamespaceSVG`,moduleName:_};static element={name:`ɵɵelement`,moduleName:_};static elementStart={name:`ɵɵelementStart`,moduleName:_};static elementEnd={name:`ɵɵelementEnd`,moduleName:_};static advance={name:`ɵɵadvance`,moduleName:_};static syntheticHostProperty={name:`ɵɵsyntheticHostProperty`,moduleName:_};static syntheticHostListener={name:`ɵɵsyntheticHostListener`,moduleName:_};static attribute={name:`ɵɵattribute`,moduleName:_};static classProp={name:`ɵɵclassProp`,moduleName:_};static elementContainerStart={name:`ɵɵelementContainerStart`,moduleName:_};static elementContainerEnd={name:`ɵɵelementContainerEnd`,moduleName:_};static elementContainer={name:`ɵɵelementContainer`,moduleName:_};static styleMap={name:`ɵɵstyleMap`,moduleName:_};static classMap={name:`ɵɵclassMap`,moduleName:_};static styleProp={name:`ɵɵstyleProp`,moduleName:_};static interpolate={name:`ɵɵinterpolate`,moduleName:_};static interpolate1={name:`ɵɵinterpolate1`,moduleName:_};static interpolate2={name:`ɵɵinterpolate2`,moduleName:_};static interpolate3={name:`ɵɵinterpolate3`,moduleName:_};static interpolate4={name:`ɵɵinterpolate4`,moduleName:_};static interpolate5={name:`ɵɵinterpolate5`,moduleName:_};static interpolate6={name:`ɵɵinterpolate6`,moduleName:_};static interpolate7={name:`ɵɵinterpolate7`,moduleName:_};static interpolate8={name:`ɵɵinterpolate8`,moduleName:_};static interpolateV={name:`ɵɵinterpolateV`,moduleName:_};static nextContext={name:`ɵɵnextContext`,moduleName:_};static resetView={name:`ɵɵresetView`,moduleName:_};static templateCreate={name:`ɵɵtemplate`,moduleName:_};static defer={name:`ɵɵdefer`,moduleName:_};static deferWhen={name:`ɵɵdeferWhen`,moduleName:_};static deferOnIdle={name:`ɵɵdeferOnIdle`,moduleName:_};static deferOnImmediate={name:`ɵɵdeferOnImmediate`,moduleName:_};static deferOnTimer={name:`ɵɵdeferOnTimer`,moduleName:_};static deferOnHover={name:`ɵɵdeferOnHover`,moduleName:_};static deferOnInteraction={name:`ɵɵdeferOnInteraction`,moduleName:_};static deferOnViewport={name:`ɵɵdeferOnViewport`,moduleName:_};static deferPrefetchWhen={name:`ɵɵdeferPrefetchWhen`,moduleName:_};static deferPrefetchOnIdle={name:`ɵɵdeferPrefetchOnIdle`,moduleName:_};static deferPrefetchOnImmediate={name:`ɵɵdeferPrefetchOnImmediate`,moduleName:_};static deferPrefetchOnTimer={name:`ɵɵdeferPrefetchOnTimer`,moduleName:_};static deferPrefetchOnHover={name:`ɵɵdeferPrefetchOnHover`,moduleName:_};static deferPrefetchOnInteraction={name:`ɵɵdeferPrefetchOnInteraction`,moduleName:_};static deferPrefetchOnViewport={name:`ɵɵdeferPrefetchOnViewport`,moduleName:_};static deferHydrateWhen={name:`ɵɵdeferHydrateWhen`,moduleName:_};static deferHydrateNever={name:`ɵɵdeferHydrateNever`,moduleName:_};static deferHydrateOnIdle={name:`ɵɵdeferHydrateOnIdle`,moduleName:_};static deferHydrateOnImmediate={name:`ɵɵdeferHydrateOnImmediate`,moduleName:_};static deferHydrateOnTimer={name:`ɵɵdeferHydrateOnTimer`,moduleName:_};static deferHydrateOnHover={name:`ɵɵdeferHydrateOnHover`,moduleName:_};static deferHydrateOnInteraction={name:`ɵɵdeferHydrateOnInteraction`,moduleName:_};static deferHydrateOnViewport={name:`ɵɵdeferHydrateOnViewport`,moduleName:_};static deferEnableTimerScheduling={name:`ɵɵdeferEnableTimerScheduling`,moduleName:_};static conditionalCreate={name:`ɵɵconditionalCreate`,moduleName:_};static conditionalBranchCreate={name:`ɵɵconditionalBranchCreate`,moduleName:_};static conditional={name:`ɵɵconditional`,moduleName:_};static repeater={name:`ɵɵrepeater`,moduleName:_};static repeaterCreate={name:`ɵɵrepeaterCreate`,moduleName:_};static repeaterTrackByIndex={name:`ɵɵrepeaterTrackByIndex`,moduleName:_};static repeaterTrackByIdentity={name:`ɵɵrepeaterTrackByIdentity`,moduleName:_};static componentInstance={name:`ɵɵcomponentInstance`,moduleName:_};static text={name:`ɵɵtext`,moduleName:_};static enableBindings={name:`ɵɵenableBindings`,moduleName:_};static disableBindings={name:`ɵɵdisableBindings`,moduleName:_};static getCurrentView={name:`ɵɵgetCurrentView`,moduleName:_};static textInterpolate={name:`ɵɵtextInterpolate`,moduleName:_};static textInterpolate1={name:`ɵɵtextInterpolate1`,moduleName:_};static textInterpolate2={name:`ɵɵtextInterpolate2`,moduleName:_};static textInterpolate3={name:`ɵɵtextInterpolate3`,moduleName:_};static textInterpolate4={name:`ɵɵtextInterpolate4`,moduleName:_};static textInterpolate5={name:`ɵɵtextInterpolate5`,moduleName:_};static textInterpolate6={name:`ɵɵtextInterpolate6`,moduleName:_};static textInterpolate7={name:`ɵɵtextInterpolate7`,moduleName:_};static textInterpolate8={name:`ɵɵtextInterpolate8`,moduleName:_};static textInterpolateV={name:`ɵɵtextInterpolateV`,moduleName:_};static restoreView={name:`ɵɵrestoreView`,moduleName:_};static pureFunction0={name:`ɵɵpureFunction0`,moduleName:_};static pureFunction1={name:`ɵɵpureFunction1`,moduleName:_};static pureFunction2={name:`ɵɵpureFunction2`,moduleName:_};static pureFunction3={name:`ɵɵpureFunction3`,moduleName:_};static pureFunction4={name:`ɵɵpureFunction4`,moduleName:_};static pureFunction5={name:`ɵɵpureFunction5`,moduleName:_};static pureFunction6={name:`ɵɵpureFunction6`,moduleName:_};static pureFunction7={name:`ɵɵpureFunction7`,moduleName:_};static pureFunction8={name:`ɵɵpureFunction8`,moduleName:_};static pureFunctionV={name:`ɵɵpureFunctionV`,moduleName:_};static pipeBind1={name:`ɵɵpipeBind1`,moduleName:_};static pipeBind2={name:`ɵɵpipeBind2`,moduleName:_};static pipeBind3={name:`ɵɵpipeBind3`,moduleName:_};static pipeBind4={name:`ɵɵpipeBind4`,moduleName:_};static pipeBindV={name:`ɵɵpipeBindV`,moduleName:_};static domProperty={name:`ɵɵdomProperty`,moduleName:_};static property={name:`ɵɵproperty`,moduleName:_};static i18n={name:`ɵɵi18n`,moduleName:_};static i18nAttributes={name:`ɵɵi18nAttributes`,moduleName:_};static i18nExp={name:`ɵɵi18nExp`,moduleName:_};static i18nStart={name:`ɵɵi18nStart`,moduleName:_};static i18nEnd={name:`ɵɵi18nEnd`,moduleName:_};static i18nApply={name:`ɵɵi18nApply`,moduleName:_};static i18nPostprocess={name:`ɵɵi18nPostprocess`,moduleName:_};static pipe={name:`ɵɵpipe`,moduleName:_};static projection={name:`ɵɵprojection`,moduleName:_};static projectionDef={name:`ɵɵprojectionDef`,moduleName:_};static reference={name:`ɵɵreference`,moduleName:_};static inject={name:`ɵɵinject`,moduleName:_};static injectAttribute={name:`ɵɵinjectAttribute`,moduleName:_};static directiveInject={name:`ɵɵdirectiveInject`,moduleName:_};static invalidFactory={name:`ɵɵinvalidFactory`,moduleName:_};static invalidFactoryDep={name:`ɵɵinvalidFactoryDep`,moduleName:_};static templateRefExtractor={name:`ɵɵtemplateRefExtractor`,moduleName:_};static forwardRef={name:`forwardRef`,moduleName:_};static resolveForwardRef={name:`resolveForwardRef`,moduleName:_};static replaceMetadata={name:`ɵɵreplaceMetadata`,moduleName:_};static getReplaceMetadataURL={name:`ɵɵgetReplaceMetadataURL`,moduleName:_};static ɵɵdefineInjectable={name:`ɵɵdefineInjectable`,moduleName:_};static declareInjectable={name:`ɵɵngDeclareInjectable`,moduleName:_};static InjectableDeclaration={name:`ɵɵInjectableDeclaration`,moduleName:_};static resolveWindow={name:`ɵɵresolveWindow`,moduleName:_};static resolveDocument={name:`ɵɵresolveDocument`,moduleName:_};static resolveBody={name:`ɵɵresolveBody`,moduleName:_};static getComponentDepsFactory={name:`ɵɵgetComponentDepsFactory`,moduleName:_};static defineComponent={name:`ɵɵdefineComponent`,moduleName:_};static declareComponent={name:`ɵɵngDeclareComponent`,moduleName:_};static setComponentScope={name:`ɵɵsetComponentScope`,moduleName:_};static ChangeDetectionStrategy={name:`ChangeDetectionStrategy`,moduleName:_};static ViewEncapsulation={name:`ViewEncapsulation`,moduleName:_};static ComponentDeclaration={name:`ɵɵComponentDeclaration`,moduleName:_};static FactoryDeclaration={name:`ɵɵFactoryDeclaration`,moduleName:_};static declareFactory={name:`ɵɵngDeclareFactory`,moduleName:_};static FactoryTarget={name:`ɵɵFactoryTarget`,moduleName:_};static defineDirective={name:`ɵɵdefineDirective`,moduleName:_};static declareDirective={name:`ɵɵngDeclareDirective`,moduleName:_};static DirectiveDeclaration={name:`ɵɵDirectiveDeclaration`,moduleName:_};static InjectorDef={name:`ɵɵInjectorDef`,moduleName:_};static InjectorDeclaration={name:`ɵɵInjectorDeclaration`,moduleName:_};static defineInjector={name:`ɵɵdefineInjector`,moduleName:_};static declareInjector={name:`ɵɵngDeclareInjector`,moduleName:_};static NgModuleDeclaration={name:`ɵɵNgModuleDeclaration`,moduleName:_};static ModuleWithProviders={name:`ModuleWithProviders`,moduleName:_};static defineNgModule={name:`ɵɵdefineNgModule`,moduleName:_};static declareNgModule={name:`ɵɵngDeclareNgModule`,moduleName:_};static setNgModuleScope={name:`ɵɵsetNgModuleScope`,moduleName:_};static registerNgModuleType={name:`ɵɵregisterNgModuleType`,moduleName:_};static PipeDeclaration={name:`ɵɵPipeDeclaration`,moduleName:_};static definePipe={name:`ɵɵdefinePipe`,moduleName:_};static declarePipe={name:`ɵɵngDeclarePipe`,moduleName:_};static declareClassMetadata={name:`ɵɵngDeclareClassMetadata`,moduleName:_};static declareClassMetadataAsync={name:`ɵɵngDeclareClassMetadataAsync`,moduleName:_};static setClassMetadata={name:`ɵsetClassMetadata`,moduleName:_};static setClassMetadataAsync={name:`ɵsetClassMetadataAsync`,moduleName:_};static setClassDebugInfo={name:`ɵsetClassDebugInfo`,moduleName:_};static queryRefresh={name:`ɵɵqueryRefresh`,moduleName:_};static viewQuery={name:`ɵɵviewQuery`,moduleName:_};static loadQuery={name:`ɵɵloadQuery`,moduleName:_};static contentQuery={name:`ɵɵcontentQuery`,moduleName:_};static viewQuerySignal={name:`ɵɵviewQuerySignal`,moduleName:_};static contentQuerySignal={name:`ɵɵcontentQuerySignal`,moduleName:_};static queryAdvance={name:`ɵɵqueryAdvance`,moduleName:_};static twoWayProperty={name:`ɵɵtwoWayProperty`,moduleName:_};static twoWayBindingSet={name:`ɵɵtwoWayBindingSet`,moduleName:_};static twoWayListener={name:`ɵɵtwoWayListener`,moduleName:_};static declareLet={name:`ɵɵdeclareLet`,moduleName:_};static storeLet={name:`ɵɵstoreLet`,moduleName:_};static readContextLet={name:`ɵɵreadContextLet`,moduleName:_};static attachSourceLocations={name:`ɵɵattachSourceLocations`,moduleName:_};static NgOnChangesFeature={name:`ɵɵNgOnChangesFeature`,moduleName:_};static InheritDefinitionFeature={name:`ɵɵInheritDefinitionFeature`,moduleName:_};static CopyDefinitionFeature={name:`ɵɵCopyDefinitionFeature`,moduleName:_};static ProvidersFeature={name:`ɵɵProvidersFeature`,moduleName:_};static HostDirectivesFeature={name:`ɵɵHostDirectivesFeature`,moduleName:_};static ExternalStylesFeature={name:`ɵɵExternalStylesFeature`,moduleName:_};static listener={name:`ɵɵlistener`,moduleName:_};static getInheritedFactory={name:`ɵɵgetInheritedFactory`,moduleName:_};static sanitizeHtml={name:`ɵɵsanitizeHtml`,moduleName:_};static sanitizeStyle={name:`ɵɵsanitizeStyle`,moduleName:_};static sanitizeResourceUrl={name:`ɵɵsanitizeResourceUrl`,moduleName:_};static sanitizeScript={name:`ɵɵsanitizeScript`,moduleName:_};static sanitizeUrl={name:`ɵɵsanitizeUrl`,moduleName:_};static sanitizeUrlOrResourceUrl={name:`ɵɵsanitizeUrlOrResourceUrl`,moduleName:_};static trustConstantHtml={name:`ɵɵtrustConstantHtml`,moduleName:_};static trustConstantResourceUrl={name:`ɵɵtrustConstantResourceUrl`,moduleName:_};static validateIframeAttribute={name:`ɵɵvalidateIframeAttribute`,moduleName:_};static InputSignalBrandWriteType={name:`ɵINPUT_SIGNAL_BRAND_WRITE_TYPE`,moduleName:_};static UnwrapDirectiveSignalInputs={name:`ɵUnwrapDirectiveSignalInputs`,moduleName:_};static unwrapWritableSignal={name:`ɵunwrapWritableSignal`,moduleName:_}},je=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(`.`)}},Me;(function(e){e[e.Class=0]=`Class`,e[e.Function=1]=`Function`})(Me||={});var Ne=class{input;errLocation;ctxLocation;message;constructor(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message=`Parser Error: ${e} ${n} [${t}] in ${r}`}},y=class{start;end;constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new w(e+this.start,e+this.end)}},b=class{span;sourceSpan;constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return`AST`}},Pe=class extends b{nameSpan;constructor(e,t,n){super(e,t),this.nameSpan=n}},x=class extends b{visit(e,t=null){}},Fe=class extends b{visit(e,t=null){return e.visitImplicitReceiver(this,t)}},Ie=class extends Fe{visit(e,t=null){var n;return(n=e.visitThisReceiver)?.call(e,this,t)}},Le=class extends b{expressions;constructor(e,t,n){super(e,t),this.expressions=n}visit(e,t=null){return e.visitChain(this,t)}},Re=class extends b{condition;trueExp;falseExp;constructor(e,t,n,r,i){super(e,t),this.condition=n,this.trueExp=r,this.falseExp=i}visit(e,t=null){return e.visitConditional(this,t)}},ze=class extends Pe{receiver;name;constructor(e,t,n,r,i){super(e,t,n),this.receiver=r,this.name=i}visit(e,t=null){return e.visitPropertyRead(this,t)}},Be=class extends Pe{receiver;name;value;constructor(e,t,n,r,i,a){super(e,t,n),this.receiver=r,this.name=i,this.value=a}visit(e,t=null){return e.visitPropertyWrite(this,t)}},Ve=class extends Pe{receiver;name;constructor(e,t,n,r,i){super(e,t,n),this.receiver=r,this.name=i}visit(e,t=null){return e.visitSafePropertyRead(this,t)}},He=class extends b{receiver;key;constructor(e,t,n,r){super(e,t),this.receiver=n,this.key=r}visit(e,t=null){return e.visitKeyedRead(this,t)}},Ue=class extends b{receiver;key;constructor(e,t,n,r){super(e,t),this.receiver=n,this.key=r}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}},We=class extends b{receiver;key;value;constructor(e,t,n,r,i){super(e,t),this.receiver=n,this.key=r,this.value=i}visit(e,t=null){return e.visitKeyedWrite(this,t)}},Ge=class extends Pe{exp;name;args;constructor(e,t,n,r,i,a){super(e,t,a),this.exp=n,this.name=r,this.args=i}visit(e,t=null){return e.visitPipe(this,t)}},S=class extends b{value;constructor(e,t,n){super(e,t),this.value=n}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}},Ke=class extends b{expressions;constructor(e,t,n){super(e,t),this.expressions=n}visit(e,t=null){return e.visitLiteralArray(this,t)}},qe=class extends b{keys;values;constructor(e,t,n,r){super(e,t),this.keys=n,this.values=r}visit(e,t=null){return e.visitLiteralMap(this,t)}},Je=class extends b{strings;expressions;constructor(e,t,n,r){super(e,t),this.strings=n,this.expressions=r}visit(e,t=null){return e.visitInterpolation(this,t)}},C=class extends b{operation;left;right;constructor(e,t,n,r,i){super(e,t),this.operation=n,this.left=r,this.right=i}visit(e,t=null){return e.visitBinary(this,t)}},Ye=class e extends C{operator;expr;left=null;right=null;operation=null;static createMinus(t,n,r){return new e(t,n,`-`,r,`-`,new S(t,n,0),r)}static createPlus(t,n,r){return new e(t,n,`+`,r,`-`,r,new S(t,n,0))}constructor(e,t,n,r,i,a,o){super(e,t,i,a,o),this.operator=n,this.expr=r}visit(e,t=null){return e.visitUnary===void 0?e.visitBinary(this,t):e.visitUnary(this,t)}},Xe=class extends b{expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitPrefixNot(this,t)}},Ze=class extends b{expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitTypeofExpression(this,t)}},Qe=class extends b{expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitVoidExpression(this,t)}},$e=class extends b{expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitNonNullAssert(this,t)}},et=class extends b{receiver;args;argumentSpan;constructor(e,t,n,r,i){super(e,t),this.receiver=n,this.args=r,this.argumentSpan=i}visit(e,t=null){return e.visitCall(this,t)}},tt=class extends b{receiver;args;argumentSpan;constructor(e,t,n,r,i){super(e,t),this.receiver=n,this.args=r,this.argumentSpan=i}visit(e,t=null){return e.visitSafeCall(this,t)}},nt=class extends b{tag;template;constructor(e,t,n,r){super(e,t),this.tag=n,this.template=r}visit(e,t){return e.visitTaggedTemplateLiteral(this,t)}},rt=class extends b{elements;expressions;constructor(e,t,n,r){super(e,t),this.elements=n,this.expressions=r}visit(e,t){return e.visitTemplateLiteral(this,t)}},it=class extends b{text;constructor(e,t,n){super(e,t),this.text=n}visit(e,t){return e.visitTemplateLiteralElement(this,t)}},at=class extends b{expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t){return e.visitParenthesizedExpression(this,t)}},w=class{start;end;constructor(e,t){this.start=e,this.end=t}},T=class extends b{ast;source;location;errors;constructor(e,t,n,r,i){super(new y(0,t===null?0:t.length),new w(r,t===null?r:r+t.length)),this.ast=e,this.source=t,this.location=n,this.errors=i}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}},ot=class{sourceSpan;key;value;constructor(e,t,n){this.sourceSpan=e,this.key=t,this.value=n}},st=class{sourceSpan;key;value;constructor(e,t,n){this.sourceSpan=e,this.key=t,this.value=n}},ct=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 n=0;n<e.elements.length;n++){this.visit(e.elements[n],t);let r=n<e.expressions.length?e.expressions[n]:null;r!==null&&this.visit(r,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 n of e)this.visit(n,t)}},lt;(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`})(lt||={});var ut;(function(e){e[e.Regular=0]=`Regular`,e[e.Animation=1]=`Animation`,e[e.TwoWay=2]=`TwoWay`})(ut||={});var E;(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`})(E||={});var dt;(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`})(dt||={});var ft=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function pt(e,t){if(t!=null&&!(Array.isArray(t)&&t.length==2))throw Error(`Expected '${e}' to be an array, [start, end].`);if(t!=null){let e=t[0],n=t[1];ft.forEach(t=>{if(t.test(e)||t.test(n))throw Error(`['${e}', '${n}'] contains unusable interpolation symbol.`)})}}var mt=class e{start;end;static fromArray(t){return t?(pt(`interpolation`,t),new e(t[0],t[1])):D}constructor(e,t){this.start=e,this.end=t}},D=new mt(`{{`,`}}`),ht=0,gt=9,_t=10,vt=11,yt=12,bt=13,xt=32,St=33,Ct=34,wt=35,Tt=36,Et=37,Dt=38,Ot=39,kt=40,O=41,At=42,jt=43,k=44,Mt=45,A=46,Nt=47,j=58,M=59,Pt=60,Ft=61,It=62,Lt=63,Rt=48,zt=57,Bt=65,Vt=69,Ht=90,Ut=91,Wt=92,N=93,Gt=94,Kt=95,qt=97,Jt=101,Yt=102,Xt=110,Zt=114,Qt=116,$t=117,en=118,tn=122,nn=123,rn=124,P=125,an=160,on=96;function sn(e){return e>=gt&&e<=xt||e==an}function F(e){return Rt<=e&&e<=zt}function cn(e){return e>=qt&&e<=tn||e>=Bt&&e<=Ht}function ln(e){return e===Ot||e===Ct||e===on}var un;(function(e){e[e.WARNING=0]=`WARNING`,e[e.ERROR=1]=`ERROR`})(un||={});var dn;(function(e){e[e.Inline=0]=`Inline`,e[e.SideEffect=1]=`SideEffect`,e[e.Omit=2]=`Omit`})(dn||={});var fn;(function(e){e[e.Global=0]=`Global`,e[e.Local=1]=`Local`})(fn||={});var pn;(function(e){e[e.Directive=0]=`Directive`,e[e.Pipe=1]=`Pipe`,e[e.NgModule=2]=`NgModule`})(pn||={});var mn=`(:(where|is)\\()?`,hn=`-shadowcsshost`,gn=`-shadowcsscontext`,_n=`(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))`;RegExp(hn+_n+`?([^,{]*)`,`gim`);var vn=gn+_n+`?([^{]*)`;RegExp(`${mn}(${vn})`,`gim`),new RegExp(vn,`im`);var yn=hn+`-no-combinator`;RegExp(`${yn}(?![^(]*\\))`,`g`);var bn=`%COMMENT%`;new RegExp(bn,`g`),RegExp(`(\\s*(?:${bn}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,`g`);var xn=`%COMMA_IN_PLACEHOLDER%`,Sn=`%SEMI_IN_PLACEHOLDER%`,Cn=`%COLON_IN_PLACEHOLDER%`;new RegExp(xn,`g`),new RegExp(Sn,`g`),new RegExp(Cn,`g`);var I;(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`})(I||={});var wn;(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`})(wn||={});var Tn;(function(e){e[e.None=0]=`None`,e[e.AlwaysInline=1]=`AlwaysInline`})(Tn||={});var En;(function(e){e[e.Context=0]=`Context`,e[e.Identifier=1]=`Identifier`,e[e.SavedView=2]=`SavedView`,e[e.Alias=3]=`Alias`})(En||={});var Dn;(function(e){e[e.Normal=0]=`Normal`,e[e.TemplateDefinitionBuilder=1]=`TemplateDefinitionBuilder`})(Dn||={});var L;(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`})(L||={});var On;(function(e){e[e.Creation=0]=`Creation`,e[e.Postproccessing=1]=`Postproccessing`})(On||={});var kn;(function(e){e[e.I18nText=0]=`I18nText`,e[e.I18nAttribute=1]=`I18nAttribute`})(kn||={});var An;(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`})(An||={});var jn;(function(e){e[e.HTML=0]=`HTML`,e[e.SVG=1]=`SVG`,e[e.Math=2]=`Math`})(jn||={});var Mn;(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`})(Mn||={});var Nn;(function(e){e[e.RootI18n=0]=`RootI18n`,e[e.Icu=1]=`Icu`,e[e.Attr=2]=`Attr`})(Nn||={});var Pn;(function(e){e[e.NgTemplate=0]=`NgTemplate`,e[e.Structural=1]=`Structural`,e[e.Block=2]=`Block`})(Pn||={}),Symbol(`ConsumesSlot`),Symbol(`DependsOnSlotContext`),Symbol(`ConsumesVars`),Symbol(`UsesVarOffset`);var Fn=class{strings;expressions;i18nPlaceholders;constructor(e,t,n){if(this.strings=e,this.expressions=t,this.i18nPlaceholders=n,n.length!==0&&n.length!==t.length)throw Error(`Expected ${t.length} placeholders to match interpolation expression count, but got ${n.length}`)}},In;(function(e){e[e.None=0]=`None`,e[e.InChildOperation=1]=`InChildOperation`})(In||={}),new Set([I.Element,I.ElementStart,I.Container,I.ContainerStart,I.Template,I.RepeaterCreate,I.ConditionalCreate,I.ConditionalBranchCreate]);var Ln;(function(e){e[e.Tmpl=0]=`Tmpl`,e[e.Host=1]=`Host`,e[e.Both=2]=`Both`})(Ln||={}),new Map([[v.attribute,v.attribute],[v.classProp,v.classProp],[v.element,v.element],[v.elementContainer,v.elementContainer],[v.elementContainerEnd,v.elementContainerEnd],[v.elementContainerStart,v.elementContainerStart],[v.elementEnd,v.elementEnd],[v.elementStart,v.elementStart],[v.domProperty,v.domProperty],[v.i18nExp,v.i18nExp],[v.listener,v.listener],[v.listener,v.listener],[v.property,v.property],[v.styleProp,v.styleProp],[v.syntheticHostListener,v.syntheticHostListener],[v.syntheticHostProperty,v.syntheticHostProperty],[v.templateCreate,v.templateCreate],[v.twoWayProperty,v.twoWayProperty],[v.twoWayListener,v.twoWayListener],[v.declareLet,v.declareLet],[v.conditionalCreate,v.conditionalBranchCreate],[v.conditionalBranchCreate,v.conditionalBranchCreate]]),Object.freeze([]),new Map([[I.ElementEnd,[I.ElementStart,I.Element]],[I.ContainerEnd,[I.ContainerStart,I.Container]],[I.I18nEnd,[I.I18nStart,I.I18n]]]),new Set([I.Pipe]);var Rn={},zn=``;Rn.ngsp=zn;var Bn;(function(e){e.HEX=`hexadecimal`,e.DEC=`decimal`})(Bn||={});var Vn=` \f
|
|
2
|
-
\r \v - \u2028\u2029 `;`${Vn}`,RegExp(`[${Vn}]{2,}`,`g`);var R;(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`})(R||={});var z;(function(e){e[e.Plain=0]=`Plain`,e[e.TemplateLiteralPart=1]=`TemplateLiteralPart`,e[e.TemplateLiteralEnd=2]=`TemplateLiteralEnd`})(z||={});var Hn=[`var`,`let`,`as`,`null`,`undefined`,`true`,`false`,`if`,`else`,`this`,`typeof`,`void`,`in`],Un=class{tokenize(e){return new Qn(e).scan()}},B=class{index;end;type;numValue;strValue;constructor(e,t,n,r,i){this.index=e,this.end=t,this.type=n,this.numValue=r,this.strValue=i}isCharacter(e){return this.type===R.Character&&this.numValue===e}isNumber(){return this.type===R.Number}isString(){return this.type===R.String}isOperator(e){return this.type===R.Operator&&this.strValue===e}isIdentifier(){return this.type===R.Identifier}isPrivateIdentifier(){return this.type===R.PrivateIdentifier}isKeyword(){return this.type===R.Keyword}isKeywordLet(){return this.type===R.Keyword&&this.strValue===`let`}isKeywordAs(){return this.type===R.Keyword&&this.strValue===`as`}isKeywordNull(){return this.type===R.Keyword&&this.strValue===`null`}isKeywordUndefined(){return this.type===R.Keyword&&this.strValue===`undefined`}isKeywordTrue(){return this.type===R.Keyword&&this.strValue===`true`}isKeywordFalse(){return this.type===R.Keyword&&this.strValue===`false`}isKeywordThis(){return this.type===R.Keyword&&this.strValue===`this`}isKeywordTypeof(){return this.type===R.Keyword&&this.strValue===`typeof`}isKeywordVoid(){return this.type===R.Keyword&&this.strValue===`void`}isKeywordIn(){return this.type===R.Keyword&&this.strValue===`in`}isError(){return this.type===R.Error}toNumber(){return this.type===R.Number?this.numValue:-1}isTemplateLiteralPart(){return this.isString()&&this.kind===z.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===z.TemplateLiteralEnd}isTemplateLiteralInterpolationStart(){return this.isOperator("${")}isTemplateLiteralInterpolationEnd(){return this.isOperator(`}`)}toString(){switch(this.type){case R.Character:case R.Identifier:case R.Keyword:case R.Operator:case R.PrivateIdentifier:case R.String:case R.Error:return this.strValue;case R.Number:return this.numValue.toString();default:return null}}},Wn=class extends B{kind;constructor(e,t,n,r){super(e,t,R.String,0,n),this.kind=r}};function Gn(e,t,n){return new B(e,t,R.Character,n,String.fromCharCode(n))}function Kn(e,t,n){return new B(e,t,R.Identifier,0,n)}function qn(e,t,n){return new B(e,t,R.PrivateIdentifier,0,n)}function Jn(e,t,n){return new B(e,t,R.Keyword,0,n)}function V(e,t,n){return new B(e,t,R.Operator,0,n)}function Yn(e,t,n){return new B(e,t,R.Number,n,``)}function Xn(e,t,n){return new B(e,t,R.Error,0,n)}var Zn=new B(-1,-1,R.Character,0,``),Qn=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(;e!==null;)this.tokens.push(e),e=this.scanToken();return this.tokens}advance(){this.peek=++this.index>=this.length?ht:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,t=this.length,n=this.peek,r=this.index;for(;n<=xt;)if(++r>=t){n=ht;break}else n=e.charCodeAt(r);if(this.peek=n,this.index=r,r>=t)return null;if($n(n))return this.scanIdentifier();if(F(n))return this.scanNumber(r);let i=r;switch(n){case A:return this.advance(),F(this.peek)?this.scanNumber(i):Gn(i,this.index,A);case kt:case O:case Ut:case N:case k:case j:case M:return this.scanCharacter(i,n);case nn:return this.scanOpenBrace(i,n);case P:return this.scanCloseBrace(i,n);case Ot:case Ct:return this.scanString();case on:return this.advance(),this.scanTemplateLiteralPart(i);case wt:return this.scanPrivateIdentifier();case jt:case Mt:case Nt:case Et:case Gt:return this.scanOperator(i,String.fromCharCode(n));case At:return this.scanComplexOperator(i,`*`,At,`*`);case Lt:return this.scanQuestion(i);case Pt:case It:return this.scanComplexOperator(i,String.fromCharCode(n),Ft,`=`);case St:case Ft:return this.scanComplexOperator(i,String.fromCharCode(n),Ft,`=`,Ft,`=`);case Dt:return this.scanComplexOperator(i,`&`,Dt,`&`);case rn:return this.scanComplexOperator(i,`|`,rn,`|`);case an:for(;sn(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(n)}]`,0)}scanCharacter(e,t){return this.advance(),Gn(e,this.index,t)}scanOperator(e,t){return this.advance(),V(e,this.index,t)}scanOpenBrace(e,t){return this.braceStack.push(`expression`),this.advance(),Gn(e,this.index,t)}scanCloseBrace(e,t){return this.advance(),this.braceStack.pop()===`interpolation`?(this.tokens.push(V(e,this.index,`}`)),this.scanTemplateLiteralPart(this.index)):Gn(e,this.index,t)}scanComplexOperator(e,t,n,r,i,a){this.advance();let o=t;return this.peek==n&&(this.advance(),o+=r),i!=null&&this.peek==i&&(this.advance(),o+=a),V(e,this.index,o)}scanIdentifier(){let e=this.index;for(this.advance();er(this.peek);)this.advance();let t=this.input.substring(e,this.index);return Hn.indexOf(t)>-1?Jn(e,this.index,t):Kn(e,this.index,t)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!$n(this.peek))return this.error(`Invalid character [#]`,-1);for(;er(this.peek);)this.advance();let t=this.input.substring(e,this.index);return qn(e,this.index,t)}scanNumber(e){let t=this.index===e,n=!1;for(this.advance();;){if(!F(this.peek))if(this.peek===Kt){if(!F(this.input.charCodeAt(this.index-1))||!F(this.input.charCodeAt(this.index+1)))return this.error(`Invalid numeric separator`,0);n=!0}else if(this.peek===A)t=!1;else if(tr(this.peek)){if(this.advance(),nr(this.peek)&&this.advance(),!F(this.peek))return this.error(`Invalid exponent`,-1);t=!1}else break;this.advance()}let r=this.input.substring(e,this.index);n&&(r=r.replace(/_/g,``));let i=t?ir(r):parseFloat(r);return Yn(e,this.index,i)}scanString(){let e=this.index,t=this.peek;this.advance();let n=``,r=this.index,i=this.input;for(;this.peek!=t;)if(this.peek==Wt){let e=this.scanStringBackslash(n,r);if(typeof e!=`string`)return e;n=e,r=this.index}else{if(this.peek==ht)return this.error(`Unterminated quote`,0);this.advance()}let a=i.substring(r,this.index);return this.advance(),new Wn(e,this.index,n+a,z.Plain)}scanQuestion(e){this.advance();let t=`?`;return(this.peek===Lt||this.peek===A)&&(t+=this.peek===A?`.`:`?`,this.advance()),V(e,this.index,t)}scanTemplateLiteralPart(e){let t=``,n=this.index;for(;this.peek!==on;)if(this.peek===Wt){let e=this.scanStringBackslash(t,n);if(typeof e!=`string`)return e;t=e,n=this.index}else if(this.peek===Tt){let r=this.index;if(this.advance(),this.peek===nn)return this.braceStack.push(`interpolation`),this.tokens.push(new Wn(e,r,t+this.input.substring(n,r),z.TemplateLiteralPart)),this.advance(),V(r,this.index,this.input.substring(r,this.index))}else{if(this.peek===ht)return this.error(`Unterminated template literal`,0);this.advance()}let r=this.input.substring(n,this.index);return this.advance(),new Wn(e,this.index,t+r,z.TemplateLiteralEnd)}error(e,t){let n=this.index+t;return Xn(n,this.index,`Lexer Error: ${e} at column ${n} in expression [${this.input}]`)}scanStringBackslash(e,t){e+=this.input.substring(t,this.index);let n;if(this.advance(),this.peek===$t){let e=this.input.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(e))n=parseInt(e,16);else return this.error(`Invalid unicode escape [\\u${e}]`,0);for(let e=0;e<5;e++)this.advance()}else n=rr(this.peek),this.advance();return e+=String.fromCharCode(n),e}};function $n(e){return qt<=e&&e<=tn||Bt<=e&&e<=Ht||e==Kt||e==Tt}function er(e){return cn(e)||F(e)||e==Kt||e==Tt}function tr(e){return e==Jt||e==Vt}function nr(e){return e==Mt||e==jt}function rr(e){switch(e){case Xt:return _t;case Yt:return yt;case Zt:return bt;case Qt:return gt;case en:return vt;default:return e}}function ir(e){let t=parseInt(e);if(isNaN(t))throw Error(`Invalid integer literal when parsing `+e);return t}var ar=class{strings;expressions;offsets;constructor(e,t,n){this.strings=e,this.expressions=t,this.offsets=n}},or=class{templateBindings;warnings;errors;constructor(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n}},sr=class{_lexer;errors=[];constructor(e){this._lexer=e}parseAction(e,t,n,r=D){this._checkNoInterpolation(e,t,r);let i=this._stripComments(e),a=this._lexer.tokenize(i),o=new U(e,t,n,a,1,this.errors,0).parseChain();return new T(o,e,t,n,this.errors)}parseBinding(e,t,n,r=D){let i=this._parseBindingAst(e,t,n,r);return new T(i,e,t,n,this.errors)}checkSimpleExpression(e){let t=new cr;return e.visit(t),t.errors}parseSimpleBinding(e,t,n,r=D){let i=this._parseBindingAst(e,t,n,r),a=this.checkSimpleExpression(i);return a.length>0&&this._reportError(`Host binding expression cannot contain ${a.join(` `)}`,e,t),new T(i,e,t,n,this.errors)}_reportError(e,t,n,r){this.errors.push(new Ne(e,t,n,r))}_parseBindingAst(e,t,n,r){this._checkNoInterpolation(e,t,r);let i=this._stripComments(e),a=this._lexer.tokenize(i);return new U(e,t,n,a,0,this.errors,0).parseChain()}parseTemplateBindings(e,t,n,r,i){let a=this._lexer.tokenize(t);return new U(t,n,i,a,0,this.errors,0).parseTemplateBindings({source:e,span:new w(r,r+e.length)})}parseInterpolation(e,t,n,r,i=D){let{strings:a,expressions:o,offsets:s}=this.splitInterpolation(e,t,r,i);if(o.length===0)return null;let c=[];for(let r=0;r<o.length;++r){let i=o[r].text,a=this._stripComments(i),l=this._lexer.tokenize(a),u=new U(e,t,n,l,0,this.errors,s[r]).parseChain();c.push(u)}return this.createInterpolationAst(a.map(e=>e.text),c,e,t,n)}parseInterpolationExpression(e,t,n){let r=this._stripComments(e),i=this._lexer.tokenize(r),a=new U(e,t,n,i,0,this.errors,0).parseChain(),o=[``,``];return this.createInterpolationAst(o,[a],e,t,n)}createInterpolationAst(e,t,n,r,i){let a=new y(0,n.length),o=new Je(a,a.toAbsolute(i),e,t);return new T(o,n,r,i,this.errors)}splitInterpolation(e,t,n,r=D){let i=[],a=[],o=[],s=n?lr(n):null,c=0,l=!1,u=!1,{start:d,end:f}=r;for(;c<e.length;)if(l){let n=c,r=n+d.length,i=this._getInterpolationEndIndex(e,f,r);if(i===-1){l=!1,u=!0;break}let p=i+f.length,ee=e.substring(r,i);ee.trim().length===0&&this._reportError(`Blank expressions are not allowed in interpolated strings`,e,`at column ${c} in`,t),a.push({text:ee,start:n,end:p});let te=(s?.get(n)??n)+d.length;o.push(te),c=p,l=!1}else{let t=c;c=e.indexOf(d,c),c===-1&&(c=e.length);let n=e.substring(t,c);i.push({text:n,start:t,end:c}),l=!0}if(!l)if(u){let t=i[i.length-1];t.text+=e.substring(c),t.end=e.length}else i.push({text:e.substring(c),start:c,end:e.length});return new ar(i,a,o)}wrapLiteralPrimitive(e,t,n){let r=new y(0,e==null?0:e.length);return new T(new S(r,r.toAbsolute(n),e),e,t,n,this.errors)}_stripComments(e){let t=this._commentStart(e);return t==null?e:e.substring(0,t)}_commentStart(e){let t=null;for(let n=0;n<e.length-1;n++){let r=e.charCodeAt(n),i=e.charCodeAt(n+1);if(r===Nt&&i==Nt&&t==null)return n;t===r?t=null:t==null&&ln(r)&&(t=r)}return null}_checkNoInterpolation(e,t,{start:n,end:r}){let i=-1,a=-1;for(let t of this._forEachUnquotedChar(e,0))if(i===-1)e.startsWith(n)&&(i=t);else if(a=this._getInterpolationEndIndex(e,r,t),a>-1)break;i>-1&&a>-1&&this._reportError(`Got interpolation (${n}${r}) where expression was expected`,e,`at column ${i} in`,t)}_getInterpolationEndIndex(e,t,n){for(let r of this._forEachUnquotedChar(e,n)){if(e.startsWith(t,r))return r;if(e.startsWith(`//`,r))return e.indexOf(t,r)}return-1}*_forEachUnquotedChar(e,t){let n=null,r=0;for(let i=t;i<e.length;i++){let t=e[i];ln(e.charCodeAt(i))&&(n===null||n===t)&&r%2==0?n=n===null?t:null:n===null&&(yield i),r=t===`\\`?r+1:0}}},H;(function(e){e[e.None=0]=`None`,e[e.Writable=1]=`Writable`})(H||={});var U=class{input;location;absoluteOffset;tokens;parseFlags;errors;offset;rparensExpected=0;rbracketsExpected=0;rbracesExpected=0;context=H.None;sourceSpanCache=new Map;index=0;constructor(e,t,n,r,i,a,o){this.input=e,this.location=t,this.absoluteOffset=n,this.tokens=r,this.parseFlags=i,this.errors=a,this.offset=o}peek(e){let t=this.index+e;return t<this.tokens.length?this.tokens[t]:Zn}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:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let n=this.currentEndIndex;if(t!==void 0&&t>this.currentEndIndex&&(n=t),e>n){let t=n;n=e,e=t}return new y(e,n)}sourceSpan(e,t){let n=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(n)||this.sourceSpanCache.set(n,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(n)}advance(){this.index++}withContext(e,t){this.context|=e;let n=t();return this.context^=e,n}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}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):!1}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===Zn?`end of input`:`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,`expected identifier or keyword`):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,`expected identifier, keyword or string`):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),``):(this.advance(),e.toString())}parseChain(){let e=[],t=this.inputIndex;for(;this.index<this.tokens.length;){let t=this.parsePipe();if(e.push(t),this.consumeOptionalCharacter(M))for(this.parseFlags&1||this.error(`Binding expression cannot contain chained expression`);this.consumeOptionalCharacter(M););else if(this.index<this.tokens.length){let e=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===e)break}}if(e.length===0){let e=this.offset,t=this.offset+this.input.length;return new x(this.span(e,t),this.sourceSpan(e,t))}return e.length==1?e[0]:new Le(this.span(t),this.sourceSpan(t),e)}parsePipe(){let e=this.inputIndex,t=this.parseExpression();if(this.consumeOptionalOperator(`|`)){this.parseFlags&1&&this.error(`Cannot have a pipe in an action expression`);do{let n=this.inputIndex,r=this.expectIdentifierOrKeyword(),i,a;r===null?(r=``,a=this.next.index===-1?this.input.length+this.offset:this.next.index,i=new y(a,a).toAbsolute(this.absoluteOffset)):i=this.sourceSpan(n);let o=[];for(;this.consumeOptionalCharacter(j);)o.push(this.parseExpression());t=new Ge(this.span(e),this.sourceSpan(e,a),t,r,o,i)}while(this.consumeOptionalOperator(`|`))}return t}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,t=this.parseLogicalOr();if(this.consumeOptionalOperator(`?`)){let n=this.parsePipe(),r;if(this.consumeOptionalCharacter(j))r=this.parsePipe();else{let t=this.inputIndex,n=this.input.substring(e,t);this.error(`Conditional expression ${n} requires all 3 expressions`),r=new x(this.span(e),this.sourceSpan(e))}return new Re(this.span(e),this.sourceSpan(e),t,n,r)}else return t}parseLogicalOr(){let e=this.inputIndex,t=this.parseLogicalAnd();for(;this.consumeOptionalOperator(`||`);){let n=this.parseLogicalAnd();t=new C(this.span(e),this.sourceSpan(e),`||`,t,n)}return t}parseLogicalAnd(){let e=this.inputIndex,t=this.parseNullishCoalescing();for(;this.consumeOptionalOperator(`&&`);){let n=this.parseNullishCoalescing();t=new C(this.span(e),this.sourceSpan(e),`&&`,t,n)}return t}parseNullishCoalescing(){let e=this.inputIndex,t=this.parseEquality();for(;this.consumeOptionalOperator(`??`);){let n=this.parseEquality();t=new C(this.span(e),this.sourceSpan(e),`??`,t,n)}return t}parseEquality(){let e=this.inputIndex,t=this.parseRelational();for(;this.next.type==R.Operator;){let n=this.next.strValue;switch(n){case`==`:case`===`:case`!=`:case`!==`:this.advance();let r=this.parseRelational();t=new C(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseRelational(){let e=this.inputIndex,t=this.parseAdditive();for(;this.next.type==R.Operator||this.next.isKeywordIn;){let n=this.next.strValue;switch(n){case`<`:case`>`:case`<=`:case`>=`:case`in`:this.advance();let r=this.parseAdditive();t=new C(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseAdditive(){let e=this.inputIndex,t=this.parseMultiplicative();for(;this.next.type==R.Operator;){let n=this.next.strValue;switch(n){case`+`:case`-`:this.advance();let r=this.parseMultiplicative();t=new C(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseMultiplicative(){let e=this.inputIndex,t=this.parseExponentiation();for(;this.next.type==R.Operator;){let n=this.next.strValue;switch(n){case`*`:case`%`:case`/`:this.advance();let r=this.parseExponentiation();t=new C(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseExponentiation(){let e=this.inputIndex,t=this.parsePrefix();for(;this.next.type==R.Operator&&this.next.strValue===`**`;){(t instanceof Ye||t instanceof Xe||t instanceof Ze||t instanceof Qe)&&this.error(`Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence`),this.advance();let n=this.parseExponentiation();t=new C(this.span(e),this.sourceSpan(e),`**`,t,n)}return t}parsePrefix(){if(this.next.type==R.Operator){let e=this.inputIndex,t=this.next.strValue,n;switch(t){case`+`:return this.advance(),n=this.parsePrefix(),Ye.createPlus(this.span(e),this.sourceSpan(e),n);case`-`:return this.advance(),n=this.parsePrefix(),Ye.createMinus(this.span(e),this.sourceSpan(e),n);case`!`:return this.advance(),n=this.parsePrefix(),new Xe(this.span(e),this.sourceSpan(e),n)}}else if(this.next.isKeywordTypeof()){this.advance();let e=this.inputIndex,t=this.parsePrefix();return new Ze(this.span(e),this.sourceSpan(e),t)}else if(this.next.isKeywordVoid()){this.advance();let e=this.inputIndex,t=this.parsePrefix();return new Qe(this.span(e),this.sourceSpan(e),t)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(A))t=this.parseAccessMember(t,e,!1);else if(this.consumeOptionalOperator(`?.`))t=this.consumeOptionalCharacter(kt)?this.parseCall(t,e,!0):this.consumeOptionalCharacter(Ut)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMember(t,e,!0);else if(this.consumeOptionalCharacter(Ut))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(kt))t=this.parseCall(t,e,!1);else if(this.consumeOptionalOperator(`!`))t=new $e(this.span(e),this.sourceSpan(e),t);else if(this.next.isTemplateLiteralEnd())t=this.parseNoInterpolationTaggedTemplateLiteral(t,e);else if(this.next.isTemplateLiteralPart())t=this.parseTaggedTemplateLiteral(t,e);else return t}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(kt)){this.rparensExpected++;let t=this.parsePipe();return this.consumeOptionalCharacter(O)||(this.error(`Missing closing parentheses`),this.consumeOptionalCharacter(O)),this.rparensExpected--,new at(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isKeywordNull())return this.advance(),new S(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new S(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new S(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new S(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordIn())return this.advance(),new S(this.span(e),this.sourceSpan(e),`in`);if(this.next.isKeywordThis())return this.advance(),new Ie(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(Ut)){this.rbracketsExpected++;let t=this.parseExpressionList(N);return this.rbracketsExpected--,this.expectCharacter(N),new Ke(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isCharacter(nn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Fe(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let t=this.next.toNumber();return this.advance(),new S(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isTemplateLiteralEnd())return this.parseNoInterpolationTemplateLiteral();if(this.next.isTemplateLiteralPart())return this.parseTemplateLiteral();if(this.next.isString()&&this.next.kind===z.Plain){let t=this.next.toString();return this.advance(),new S(this.span(e),this.sourceSpan(e),t)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new x(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new x(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new x(this.span(e),this.sourceSpan(e)))}}}}parseExpressionList(e){let t=[];do if(!this.next.isCharacter(e))t.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(k));return t}parseLiteralMap(){let e=[],t=[],n=this.inputIndex;if(this.expectCharacter(nn),!this.consumeOptionalCharacter(P)){this.rbracesExpected++;do{let n=this.inputIndex,r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString(),a={key:i,quoted:r};if(e.push(a),r)this.expectCharacter(j),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(j))t.push(this.parsePipe());else{a.isShorthandInitialized=!0;let e=this.span(n),r=this.sourceSpan(n);t.push(new ze(e,r,r,new Fe(e,r),i))}}while(this.consumeOptionalCharacter(k)&&!this.next.isCharacter(P));this.rbracesExpected--,this.expectCharacter(P)}return new qe(this.span(n),this.sourceSpan(n),e,t)}parseAccessMember(e,t,n){let r=this.inputIndex,i=this.withContext(H.Writable,()=>{let t=this.expectIdentifierOrKeyword()??``;return t.length===0&&this.error(`Expected identifier for property access`,e.span.end),t}),a=this.sourceSpan(r),o;if(n)this.consumeOptionalOperator(`=`)?(this.error(`The '?.' operator cannot be used in the assignment`),o=new x(this.span(t),this.sourceSpan(t))):o=new Ve(this.span(t),this.sourceSpan(t),a,e,i);else if(this.consumeOptionalOperator(`=`)){if(!(this.parseFlags&1))return this.error(`Bindings cannot contain assignments`),new x(this.span(t),this.sourceSpan(t));let n=this.parseConditional();o=new Be(this.span(t),this.sourceSpan(t),a,e,i,n)}else o=new ze(this.span(t),this.sourceSpan(t),a,e,i);return o}parseCall(e,t,n){let r=this.inputIndex;this.rparensExpected++;let i=this.parseCallArguments(),a=this.span(r,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(O),this.rparensExpected--;let o=this.span(t),s=this.sourceSpan(t);return n?new tt(o,s,e,i,a):new et(o,s,e,i,a)}parseCallArguments(){if(this.next.isCharacter(O))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(k));return e}expectTemplateBindingKey(){let e=``,t=!1,n=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator(`-`),t&&(e+=`-`);while(t);return{source:e,span:new w(n,n+e.length)}}parseTemplateBindings(e){let t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){let n=this.parseLetBinding();if(n)t.push(n);else{let n=this.expectTemplateBindingKey(),r=this.parseAsBinding(n);r?t.push(r):(n.source=e.source+n.source.charAt(0).toUpperCase()+n.source.substring(1),t.push(...this.parseDirectiveKeywordBindings(n)))}this.consumeStatementTerminator()}return new or(t,[],this.errors)}parseKeyedReadOrWrite(e,t,n){return this.withContext(H.Writable,()=>{this.rbracketsExpected++;let r=this.parsePipe();if(r instanceof x&&this.error(`Key access cannot be empty`),this.rbracketsExpected--,this.expectCharacter(N),this.consumeOptionalOperator(`=`))if(n)this.error(`The '?.' operator cannot be used in the assignment`);else{let n=this.parseConditional();return new We(this.span(t),this.sourceSpan(t),e,r,n)}else return n?new Ue(this.span(t),this.sourceSpan(t),e,r):new He(this.span(t),this.sourceSpan(t),e,r);return new x(this.span(t),this.sourceSpan(t))})}parseDirectiveKeywordBindings(e){let t=[];this.consumeOptionalCharacter(j);let n=this.getDirectiveBoundTarget(),r=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),r=this.currentAbsoluteOffset);let a=new w(e.span.start,r);return t.push(new st(a,e,n)),i&&t.push(i),t}getDirectiveBoundTarget(){if(this.next===Zn||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:t,end:n}=e.span,r=this.input.substring(t,n);return new T(e,r,this.location,this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let t=this.expectTemplateBindingKey();this.consumeStatementTerminator();let n=new w(e.span.start,this.currentAbsoluteOffset);return new ot(n,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let t=this.expectTemplateBindingKey(),n=null;this.consumeOptionalOperator(`=`)&&(n=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let r=new w(e,this.currentAbsoluteOffset);return new ot(r,t,n)}parseNoInterpolationTaggedTemplateLiteral(e,t){let n=this.parseNoInterpolationTemplateLiteral();return new nt(this.span(t),this.sourceSpan(t),e,n)}parseNoInterpolationTemplateLiteral(){let e=this.next.strValue,t=this.inputIndex;this.advance();let n=this.span(t),r=this.sourceSpan(t);return new rt(n,r,[new it(n,r,e)],[])}parseTaggedTemplateLiteral(e,t){let n=this.parseTemplateLiteral();return new nt(this.span(t),this.sourceSpan(t),e,n)}parseTemplateLiteral(){let e=[],t=[],n=this.inputIndex;for(;this.next!==Zn;){let n=this.next;if(n.isTemplateLiteralPart()||n.isTemplateLiteralEnd()){let t=this.inputIndex;if(this.advance(),e.push(new it(this.span(t),this.sourceSpan(t),n.strValue)),n.isTemplateLiteralEnd())break}else if(n.isTemplateLiteralInterpolationStart()){this.advance();let e=this.parsePipe();e instanceof x?this.error(`Template literal interpolation cannot be empty`):t.push(e)}else this.advance()}return new rt(this.span(n),this.sourceSpan(n),e,t)}consumeStatementTerminator(){this.consumeOptionalCharacter(M)||this.consumeOptionalCharacter(k)}error(e,t=null){this.errors.push(new Ne(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(e=null){return 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 n=`Private identifiers are not supported. Unexpected private identifier: ${e}`;t!==null&&(n+=`, ${t}`),this.error(n)}skip(){let e=this.next;for(;this.index<this.tokens.length&&!e.isCharacter(M)&&!e.isOperator(`|`)&&(this.rparensExpected<=0||!e.isCharacter(O))&&(this.rbracesExpected<=0||!e.isCharacter(P))&&(this.rbracketsExpected<=0||!e.isCharacter(N))&&(!(this.context&H.Writable)||!e.isOperator(`=`));)this.next.isError()&&this.errors.push(new Ne(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}},cr=class extends ct{errors=[];visitPipe(){this.errors.push(`pipes`)}};function lr(e){let t=new Map,n=0,r=0,i=0;for(;i<e.length;){let a=e[i];if(a.type===9){let[e,t]=a.parts;n+=t.length,r+=e.length}else{let e=a.parts.reduce((e,t)=>e+t.length,0);r+=e,n+=e}t.set(r,n),i++}return t}var ur=new Map(Object.entries({class:`className`,for:`htmlFor`,formaction:`formAction`,innerHtml:`innerHTML`,readonly:`readOnly`,tabindex:`tabIndex`}));Array.from(ur).reduce((e,[t,n])=>(e.set(t,n),e),new Map),new sr(new Un);function W(e){return t=>t.kind===e}function dr(e,t){return n=>n.kind===e&&t===n.expression instanceof Fn}W(I.StyleMap),W(I.ClassMap),W(I.StyleProp),W(I.ClassProp),dr(I.Attribute,!0),dr(I.Property,!0),dr(I.Attribute,!1),dr(I.DomProperty,!0),dr(I.DomProperty,!1),W(I.Attribute),W(I.StyleMap),W(I.ClassMap),W(I.StyleProp),W(I.ClassProp),new Set([I.Listener,I.TwoWayListener,I.StyleMap,I.ClassMap,I.StyleProp,I.ClassProp,I.Property,I.TwoWayProperty,I.DomProperty,I.Attribute]),v.interpolate,v.interpolate1,v.interpolate2,v.interpolate3,v.interpolate4,v.interpolate5,v.interpolate6,v.interpolate7,v.interpolate8,v.interpolateV,new Map([[`window`,v.resolveWindow],[`document`,v.resolveDocument],[`body`,v.resolveBody]]),new Map([[p.HTML,v.sanitizeHtml],[p.RESOURCE_URL,v.sanitizeResourceUrl],[p.SCRIPT,v.sanitizeScript],[p.STYLE,v.sanitizeStyle],[p.URL,v.sanitizeUrl]]),new Map([[p.HTML,v.trustConstantHtml],[p.RESOURCE_URL,v.trustConstantResourceUrl]]);var fr;(function(e){e[e.None=0]=`None`,e[e.ViewContextRead=1]=`ViewContextRead`,e[e.ViewContextWrite=2]=`ViewContextWrite`,e[e.SideEffectful=4]=`SideEffectful`})(fr||={}),new Map([[E.Property,L.Property],[E.TwoWay,L.TwoWayProperty],[E.Attribute,L.Attribute],[E.Class,L.ClassName],[E.Style,L.StyleProperty],[E.Animation,L.Animation]]),Symbol(`queryAdvancePlaceholder`);var pr;(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`})(pr||={});var mr;(function(e){e.IDLE=`idle`,e.TIMER=`timer`,e.INTERACTION=`interaction`,e.IMMEDIATE=`immediate`,e.HOVER=`hover`,e.VIEWPORT=`viewport`,e.NEVER=`never`})(mr||={});var hr=`%COMP%`;`${hr}`,`${hr}`;var gr;(function(e){e[e.Extract=0]=`Extract`,e[e.Merge=1]=`Merge`})(gr||={}),new je(`20.0.5`);function _r({start:e,end:t},n){let r=e,i=t;for(;i!==r&&/\s/.test(n[i-1]);)i--;for(;r!==i&&/\s/.test(n[r]);)r++;return{start:r,end:i}}function vr({start:e,end:t},n){let r=e,i=t;for(;i!==n.length&&/\s/.test(n[i]);)i++;for(;r!==0&&/\s/.test(n[r-1]);)r--;return{start:r,end:i}}function yr(e,t){return t[e.start-1]===`(`&&t[e.end]===`)`?{start:e.start-1,end:e.end+1}:e}function br(e,t,n){let r=0,i={start:e.start,end:e.end};for(;;){let e=vr(i,t),n=yr(e,t);if(e.start===n.start&&e.end===n.end)break;i.start=n.start,i.end=n.end,r++}return{hasParens:(n?r-1:r)!==0,outerSpan:_r(n?{start:i.start+1,end:i.end-1}:i,t),innerSpan:_r(e,t)}}function xr(e){return typeof e==`string`?t=>t===e:t=>e.test(t)}function Sr(e,t,n){let r=xr(t);for(let t=n;t>=0;t--){let n=e[t];if(r(n))return t}throw Error(`Cannot find front char ${t} from index ${n} in ${JSON.stringify(e)}`)}function Cr(e,t,n){let r=xr(t);for(let t=n;t<e.length;t++){let n=e[t];if(r(n))return t}throw Error(`Cannot find character ${t} from index ${n} in ${JSON.stringify(e)}`)}function wr(e){return e.slice(0,1).toLowerCase()+e.slice(1)}function Tr(e){let{start:t,end:n}=e;return{start:t,end:n,range:[t,n]}}var Er=e=>sr.prototype._commentStart(e);function Dr(e,t){let n=t?Er(e):null;if(n===null)return{text:e,comments:[]};let r={type:`CommentLine`,value:e.slice(n+2),...Tr({start:n,end:e.length})};return{text:e.slice(0,n),comments:[r]}}function Or(e,t=!0){return n=>{let r=new Un,i=new sr(r),{text:a,comments:o}=Dr(n,t),s=e(a,i);if(s.errors.length!==0){let[{message:e}]=s.errors;throw SyntaxError(e.replace(/^Parser Error: | at column \d+ in [^]*$/g,``))}return{result:s,comments:o,text:a}}}var kr=Or((e,t)=>t.parseBinding(e,``,0));Or((e,t)=>t.parseSimpleBinding(e,``,0));var Ar=Or((e,t)=>t.parseAction(e,``,0)),jr=Or((e,t)=>t.parseInterpolationExpression(e,``,0)),Mr=Or((e,t)=>t.parseTemplateBindings(``,e,``,0,0),!1),Nr=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t==`string`?t[n<0?t.length+n:n]:t.at(n)},Pr=Nr,Fr=class{text;constructor(e){this.text=e}getCharacterIndex(e,t){return Cr(this.text,e,t)}getCharacterLastIndex(e,t){return Sr(this.text,e,t)}transformSpan(e,{stripSpaces:t=!1,hasParentParens:n=!1}={}){if(!t)return Tr(e);let{outerSpan:r,innerSpan:i,hasParens:a}=br(e,this.text,n),o=Tr(i);return a&&(o.extra={parenthesized:!0,parenStart:r.start,parenEnd:r.end}),o}createNode(e,{stripSpaces:t=!0,hasParentParens:n=!1}={}){let{type:r,start:i,end:a}=e,o={...e,...this.transformSpan({start:i,end:a},{stripSpaces:t,hasParentParens:n})};switch(r){case`NumericLiteral`:case`StringLiteral`:{let e=this.text.slice(o.start,o.end),{value:t}=o;o.extra={...o.extra,raw:e,rawValue:t};break}case`ObjectProperty`:{let{shorthand:e}=o;e&&(o.extra={...o.extra,shorthand:e});break}}return o}},Ir=Fr;function Lr(e){var t;return!!((t=e.extra)!=null&&t.parenthesized)}function G(e){return Lr(e)?e.extra.parenStart:e.start}function K(e){return Lr(e)?e.extra.parenEnd:e.end}function Rr(e){return(e.type===`OptionalCallExpression`||e.type===`OptionalMemberExpression`)&&!Lr(e)}function zr(e,t){let{start:n,end:r}=e.sourceSpan;return n>=r||/^\s+$/.test(t.slice(n,r))}var Br,Vr,q,J,Hr,Y,Ur,Wr=class extends Ir{constructor(e,t){super(t),a(this,q),a(this,Br),a(this,Vr),o(this,Br,e),o(this,Vr,t)}get node(){return s(this,q,Y).call(this,i(this,Br))}transformNode(e){return s(this,q,Ur).call(this,e)}};Br=new WeakMap,Vr=new WeakMap,q=new WeakSet,J=function(e,{stripSpaces:t=!0,hasParentParens:n=!1}={}){return this.createNode(e,{stripSpaces:t,hasParentParens:n})},Hr=function(e,t,{computed:n,optional:r,end:a=K(t),hasParentParens:o=!1}){if(zr(e,i(this,Vr))||e.sourceSpan.start===t.start)return t;let c=s(this,q,Y).call(this,e),l=Rr(c);return s(this,q,J).call(this,{type:r||l?`OptionalMemberExpression`:`MemberExpression`,object:c,property:t,computed:n,...r?{optional:!0}:l?{optional:!1}:void 0,start:G(c),end:a},{hasParentParens:o})},Y=function(e,t){return s(this,q,Ur).call(this,e,t)},Ur=function(e,t){let{isInParentParens:n}={isInParentParens:!1,...t};if(e instanceof Je){let{expressions:t}=e;if(t.length!==1)throw Error(`Unexpected 'Interpolation'`);return s(this,q,Y).call(this,t[0])}if(e instanceof Ye)return s(this,q,J).call(this,{type:`UnaryExpression`,prefix:!0,argument:s(this,q,Y).call(this,e.expr),operator:e.operator,...e.sourceSpan},{hasParentParens:n});if(e instanceof C){let{left:t,operation:r,right:i}=e,a=s(this,q,Y).call(this,t),o=s(this,q,Y).call(this,i),c=G(a),l=K(o),u={left:a,right:o,start:c,end:l};return r===`&&`||r===`||`||r===`??`?s(this,q,J).call(this,{...u,type:`LogicalExpression`,operator:r},{hasParentParens:n}):s(this,q,J).call(this,{...u,type:`BinaryExpression`,operator:r},{hasParentParens:n})}if(e instanceof Ge){let{exp:t,name:r,args:i}=e,a=s(this,q,Y).call(this,t),o=G(a),c=K(a),l=this.getCharacterIndex(/\S/,this.getCharacterIndex(`|`,c)+1),u=s(this,q,J).call(this,{type:`Identifier`,name:r,start:l,end:l+r.length}),d=i.map(e=>s(this,q,Y).call(this,e));return s(this,q,J).call(this,{type:`NGPipeExpression`,left:a,right:u,arguments:d,start:o,end:K(d.length===0?u:Pr(!1,d,-1))},{hasParentParens:n})}if(e instanceof Le)return s(this,q,J).call(this,{type:`NGChainedExpression`,expressions:e.expressions.map(e=>s(this,q,Y).call(this,e)),...e.sourceSpan},{hasParentParens:n});if(e instanceof Re){let{condition:t,trueExp:r,falseExp:i}=e,a=s(this,q,Y).call(this,t),o=s(this,q,Y).call(this,r),c=s(this,q,Y).call(this,i);return s(this,q,J).call(this,{type:`ConditionalExpression`,test:a,consequent:o,alternate:c,start:G(a),end:K(c)},{hasParentParens:n})}if(e instanceof x)return s(this,q,J).call(this,{type:`NGEmptyExpression`,...e.sourceSpan},{hasParentParens:n});if(e instanceof Fe)return s(this,q,J).call(this,{type:`ThisExpression`,...e.sourceSpan},{hasParentParens:n});if(e instanceof He||e instanceof Ue)return s(this,q,Hr).call(this,e.receiver,s(this,q,Y).call(this,e.key),{computed:!0,optional:e instanceof Ue,end:e.sourceSpan.end,hasParentParens:n});if(e instanceof Ke)return s(this,q,J).call(this,{type:`ArrayExpression`,elements:e.expressions.map(e=>s(this,q,Y).call(this,e)),...e.sourceSpan},{hasParentParens:n});if(e instanceof qe){let{keys:t,values:r}=e,i=r.map(e=>s(this,q,Y).call(this,e)),a=t.map(({key:t,quoted:n},r)=>{let a=i[r],o=G(a),c=K(a),l=this.getCharacterIndex(/\S/,r===0?e.sourceSpan.start+1:this.getCharacterIndex(`,`,K(i[r-1]))+1),u=o===l?c:this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex(`:`,o-1)-1)+1,d={start:l,end:u},f=n?s(this,q,J).call(this,{type:`StringLiteral`,value:t,...d}):s(this,q,J).call(this,{type:`Identifier`,name:t,...d}),p=f.end<f.start||l===o;return s(this,q,J).call(this,{type:`ObjectProperty`,key:f,value:a,shorthand:p,computed:!1,start:G(f),end:c})});return s(this,q,J).call(this,{type:`ObjectExpression`,properties:a,...e.sourceSpan},{hasParentParens:n})}if(e instanceof S){let{value:t}=e;switch(typeof t){case`boolean`:return s(this,q,J).call(this,{type:`BooleanLiteral`,value:t,...e.sourceSpan},{hasParentParens:n});case`number`:return s(this,q,J).call(this,{type:`NumericLiteral`,value:t,...e.sourceSpan},{hasParentParens:n});case`object`:return s(this,q,J).call(this,{type:`NullLiteral`,...e.sourceSpan},{hasParentParens:n});case`string`:return s(this,q,J).call(this,{type:`StringLiteral`,value:t,...e.sourceSpan},{hasParentParens:n});case`undefined`:return s(this,q,J).call(this,{type:`Identifier`,name:`undefined`,...e.sourceSpan},{hasParentParens:n});default:throw Error(`Unexpected LiteralPrimitive value type ${typeof t}`)}}if(e instanceof et||e instanceof tt){let t=e instanceof tt,{receiver:r,args:i}=e,a=i.length===1?[s(this,q,Y).call(this,i[0],{isInParentParens:!0})]:i.map(e=>s(this,q,Y).call(this,e)),o=s(this,q,Y).call(this,r),c=Rr(o),l=t||c?`OptionalCallExpression`:`CallExpression`;return s(this,q,J).call(this,{type:l,callee:o,arguments:a,...l===`OptionalCallExpression`?{optional:t}:void 0,start:G(o),end:e.sourceSpan.end},{hasParentParens:n})}if(e instanceof $e){let t=s(this,q,Y).call(this,e.expression);return s(this,q,J).call(this,{type:`TSNonNullExpression`,expression:t,start:G(t),end:e.sourceSpan.end},{hasParentParens:n})}if(e instanceof Xe||e instanceof Ze||e instanceof Qe){let t=e instanceof Xe?`!`:e instanceof Ze?`typeof`:e instanceof Qe?`void`:void 0;if(!t)throw Error(`Unexpected expression.`);let{start:r}=e.sourceSpan;if(t===`typeof`||t===`void`){let e=this.text.lastIndexOf(t,r);if(e===-1)throw Error(`Cannot find operator '${t}' from index ${r} in ${JSON.stringify(this.text)}`);r=e}let i=s(this,q,Y).call(this,e.expression);return s(this,q,J).call(this,{type:`UnaryExpression`,prefix:!0,operator:t,argument:i,start:r,end:K(i)},{hasParentParens:n})}if(e instanceof ze||e instanceof Ve){let{receiver:t,name:r}=e,a=this.getCharacterLastIndex(/\S/,e.sourceSpan.end-1)+1,o=s(this,q,J).call(this,{type:`Identifier`,name:r,start:a-r.length,end:a},zr(t,i(this,Vr))?{hasParentParens:n}:{});return s(this,q,Hr).call(this,t,o,{computed:!1,optional:e instanceof Ve,hasParentParens:n})}if(e instanceof We){let t=s(this,q,Y).call(this,e.key),r=s(this,q,Y).call(this,e.value),i=s(this,q,Hr).call(this,e.receiver,t,{computed:!0,optional:!1,end:this.getCharacterIndex(`]`,K(t))+1});return s(this,q,J).call(this,{type:`AssignmentExpression`,left:i,operator:`=`,right:r,start:G(i),end:K(r)},{hasParentParens:n})}if(e instanceof Be){let{receiver:t,name:r,value:i}=e,a=s(this,q,Y).call(this,i),o=this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex(`=`,G(a)-1)-1)+1,c=s(this,q,J).call(this,{type:`Identifier`,name:r,start:o-r.length,end:o}),l=s(this,q,Hr).call(this,t,c,{computed:!1,optional:!1});return s(this,q,J).call(this,{type:`AssignmentExpression`,left:l,operator:`=`,right:a,start:G(l),end:K(a)},{hasParentParens:n})}if(e instanceof nt)return s(this,q,J).call(this,{type:`TaggedTemplateExpression`,tag:s(this,q,Y).call(this,e.tag),quasi:s(this,q,Y).call(this,e.template),...e.sourceSpan});if(e instanceof rt){let{elements:t,expressions:n}=e;return s(this,q,J).call(this,{type:`TemplateLiteral`,quasis:t.map(t=>s(this,q,Y).call(this,t,{parent:e})),expressions:n.map(e=>s(this,q,Y).call(this,e)),...e.sourceSpan})}if(e instanceof it){let{elements:n}=t.parent,r=n.indexOf(e),i=r===0,a=r===n.length-1,o=e.sourceSpan.end-(a?1:0),c=e.sourceSpan.start+(i?1:0),l=this.text.slice(c,o);return s(this,q,J).call(this,{type:`TemplateElement`,value:{cooked:e.text,raw:l},start:c,end:o,tail:a},{stripSpaces:!1})}if(e instanceof at)return s(this,q,Ur).call(this,e.expression);throw Error(`Unexpected node type '${e.constructor.name}'`)};function Gr(e,t){return new Wr(e,t).node}function Kr(e){return e instanceof st}function qr(e){return e instanceof ot}var X,Z,Q,Jr,$,Yr,Xr,Zr,Qr,$r,ei,ti,ni=class extends Wr{constructor(e,t){super(void 0,t),a(this,Q),a(this,X),a(this,Z),o(this,X,e),o(this,Z,t);for(let t of e)s(this,Q,Qr).call(this,t)}get expressions(){return s(this,Q,ei).call(this)}};X=new WeakMap,Z=new WeakMap,Q=new WeakSet,Jr=function(){return i(this,X)[0].key},$=function(e,{stripSpaces:t=!0}={}){return this.createNode(e,{stripSpaces:t})},Yr=function(e){return this.transformNode(e)},Xr=function(e){return wr(e.slice(i(this,Q,Jr).source.length))},Zr=function(e){let t=i(this,Z);if(t[e.start]!==`"`&&t[e.start]!==`'`)return;let n=t[e.start],r=!1;for(let i=e.start+1;i<t.length;i++)switch(t[i]){case n:if(!r){e.end=i+1;return}default:r=!1;break;case`\\`:r=!r;break}},Qr=function(e){s(this,Q,Zr).call(this,e.key.span),qr(e)&&e.value&&s(this,Q,Zr).call(this,e.value.span)},$r=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}}},ei=function(){let e=i(this,X),[t]=e,n=i(this,Z).slice(t.sourceSpan.start,t.sourceSpan.end).trim().length===0?e.slice(1):e,r=[],a=null;for(let[e,t]of n.entries()){if(a&&Kr(a)&&qr(t)&&t.value&&t.value.source===a.key.source){let e=s(this,Q,$).call(this,{type:`NGMicrosyntaxKey`,name:t.key.source,...t.key.span}),n=(e,t)=>({...e,...this.transformSpan({start:e.start,end:t})}),i=t=>({...n(t,e.end),alias:e}),a=r.pop();if(a.type===`NGMicrosyntaxExpression`)r.push(i(a));else if(a.type===`NGMicrosyntaxKeyedExpression`){let e=i(a.expression);r.push(n({...a,expression:e},e.end))}else throw Error(`Unexpected type ${a.type}`)}else r.push(s(this,Q,ti).call(this,t,e));a=t}return s(this,Q,$).call(this,{type:`NGMicrosyntax`,body:r,...r.length===0?e[0].sourceSpan:{start:r[0].start,end:Pr(!1,r,-1).end}})},ti=function(e,t){if(Kr(e)){let{key:n,value:r}=e;return r?t===0?s(this,Q,$).call(this,{type:`NGMicrosyntaxExpression`,expression:s(this,Q,Yr).call(this,r.ast),alias:null,...r.sourceSpan}):s(this,Q,$).call(this,{type:`NGMicrosyntaxKeyedExpression`,key:s(this,Q,$).call(this,{type:`NGMicrosyntaxKey`,name:s(this,Q,Xr).call(this,n.source),...n.span}),expression:s(this,Q,$).call(this,{type:`NGMicrosyntaxExpression`,expression:s(this,Q,Yr).call(this,r.ast),alias:null,...r.sourceSpan}),start:n.span.start,end:r.sourceSpan.end}):s(this,Q,$).call(this,{type:`NGMicrosyntaxKey`,name:s(this,Q,Xr).call(this,n.source),...n.span})}else{let{key:t,sourceSpan:n}=e;if(/^let\s$/.test(i(this,Z).slice(n.start,n.start+4))){let{value:r}=e;return s(this,Q,$).call(this,{type:`NGMicrosyntaxLet`,key:s(this,Q,$).call(this,{type:`NGMicrosyntaxKey`,name:t.source,...t.span}),value:r?s(this,Q,$).call(this,{type:`NGMicrosyntaxKey`,name:r.source,...r.span}):null,start:n.start,end:r?r.span.end:t.span.end})}else{let n=s(this,Q,$r).call(this,e);return s(this,Q,$).call(this,{type:`NGMicrosyntaxAs`,key:s(this,Q,$).call(this,{type:`NGMicrosyntaxKey`,name:n.source,...n.span}),alias:s(this,Q,$).call(this,{type:`NGMicrosyntaxKey`,name:t.source,...t.span}),start:n.span.start,end:t.span.end})}}};function ri(e,t){return new ni(e,t).expressions}function ii({result:{ast:e},text:t,comments:n}){return Object.assign(Gr(e,t),{comments:n})}function ai({result:{templateBindings:e},text:t}){return ri(e,t)}var oi=e=>ii(kr(e)),si=e=>ii(jr(e)),ci=e=>ii(Ar(e)),li=e=>ai(Mr(e));function ui(e){var t,n,r;let i=(t=e.range)?.[0]??e.start,a=(r=(n=e.declaration)?.decorators??e.decorators)?.[0];return a?Math.min(ui(a),i):i}function di(e){var t;return(t=e.range)?.[1]??e.end}function fi(e){return{astFormat:`estree`,parse(t){let n=e(t);return{type:`NGRoot`,node:e===ci&&n.type!==`NGChainedExpression`?{...n,type:`NGChainedExpression`,expressions:[n]}:n}},locStart:ui,locEnd:di}}var pi=fi(ci),mi=fi(oi),hi=fi(si),gi=fi(li),_i=c;export{_i as default,l as parsers};
|
|
1
|
+
//#region ../../node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/plugins/angular.mjs
|
|
2
|
+
var qs = Object.defineProperty;
|
|
3
|
+
var tn = (n) => {
|
|
4
|
+
throw TypeError(n);
|
|
5
|
+
};
|
|
6
|
+
var nn = (n, e) => {
|
|
7
|
+
for (var t in e) qs(n, t, {
|
|
8
|
+
get: e[t],
|
|
9
|
+
enumerable: !0
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
var dt = (n, e, t) => e.has(n) || tn("Cannot " + t);
|
|
13
|
+
var L = (n, e, t) => (dt(n, e, "read from private field"), t ? t.call(n) : e.get(n)), V = (n, e, t) => e.has(n) ? tn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), te = (n, e, t, s) => (dt(n, e, "write to private field"), s ? s.call(n, t) : e.set(n, t), t), c = (n, e, t) => (dt(n, e, "access private method"), t);
|
|
14
|
+
var Zt = {};
|
|
15
|
+
nn(Zt, { parsers: () => Kt });
|
|
16
|
+
var Kt = {};
|
|
17
|
+
nn(Kt, {
|
|
18
|
+
__ng_action: () => Jr,
|
|
19
|
+
__ng_binding: () => Yr,
|
|
20
|
+
__ng_directive: () => Kr,
|
|
21
|
+
__ng_interpolation: () => Qr
|
|
22
|
+
});
|
|
23
|
+
var ei = new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`, "g");
|
|
24
|
+
var sn;
|
|
25
|
+
(function(n) {
|
|
26
|
+
n[n.Emulated = 0] = "Emulated", n[n.None = 2] = "None", n[n.ShadowDom = 3] = "ShadowDom";
|
|
27
|
+
})(sn || (sn = {}));
|
|
28
|
+
var rn;
|
|
29
|
+
(function(n) {
|
|
30
|
+
n[n.OnPush = 0] = "OnPush", n[n.Default = 1] = "Default";
|
|
31
|
+
})(rn || (rn = {}));
|
|
32
|
+
var on;
|
|
33
|
+
(function(n) {
|
|
34
|
+
n[n.None = 0] = "None", n[n.SignalBased = 1] = "SignalBased", n[n.HasDecoratorInputTransform = 2] = "HasDecoratorInputTransform";
|
|
35
|
+
})(on || (on = {}));
|
|
36
|
+
var D;
|
|
37
|
+
(function(n) {
|
|
38
|
+
n[n.NONE = 0] = "NONE", n[n.HTML = 1] = "HTML", n[n.STYLE = 2] = "STYLE", n[n.SCRIPT = 3] = "SCRIPT", n[n.URL = 4] = "URL", n[n.RESOURCE_URL = 5] = "RESOURCE_URL";
|
|
39
|
+
})(D || (D = {}));
|
|
40
|
+
var an;
|
|
41
|
+
(function(n) {
|
|
42
|
+
n[n.Error = 0] = "Error", n[n.Warning = 1] = "Warning", n[n.Ignore = 2] = "Ignore";
|
|
43
|
+
})(an || (an = {}));
|
|
44
|
+
var ln;
|
|
45
|
+
(function(n) {
|
|
46
|
+
n[n.Directive = 0] = "Directive", n[n.Component = 1] = "Component", n[n.Injectable = 2] = "Injectable", n[n.Pipe = 3] = "Pipe", n[n.NgModule = 4] = "NgModule";
|
|
47
|
+
})(ln || (ln = {}));
|
|
48
|
+
var cn;
|
|
49
|
+
(function(n) {
|
|
50
|
+
n[n.Directive = 0] = "Directive", n[n.Pipe = 1] = "Pipe", n[n.NgModule = 2] = "NgModule";
|
|
51
|
+
})(cn || (cn = {}));
|
|
52
|
+
var un;
|
|
53
|
+
(function(n) {
|
|
54
|
+
n[n.Emulated = 0] = "Emulated", n[n.None = 2] = "None", n[n.ShadowDom = 3] = "ShadowDom";
|
|
55
|
+
})(un || (un = {}));
|
|
56
|
+
var pn;
|
|
57
|
+
(function(n) {
|
|
58
|
+
n[n.Little = 0] = "Little", n[n.Big = 1] = "Big";
|
|
59
|
+
})(pn || (pn = {}));
|
|
60
|
+
var hn;
|
|
61
|
+
(function(n) {
|
|
62
|
+
n[n.None = 0] = "None", n[n.Const = 1] = "Const";
|
|
63
|
+
})(hn || (hn = {}));
|
|
64
|
+
var fn;
|
|
65
|
+
(function(n) {
|
|
66
|
+
n[n.Dynamic = 0] = "Dynamic", n[n.Bool = 1] = "Bool", n[n.String = 2] = "String", n[n.Int = 3] = "Int", n[n.Number = 4] = "Number", n[n.Function = 5] = "Function", n[n.Inferred = 6] = "Inferred", n[n.None = 7] = "None";
|
|
67
|
+
})(fn || (fn = {}));
|
|
68
|
+
var js = void 0;
|
|
69
|
+
var dn;
|
|
70
|
+
(function(n) {
|
|
71
|
+
n[n.Minus = 0] = "Minus", n[n.Plus = 1] = "Plus";
|
|
72
|
+
})(dn || (dn = {}));
|
|
73
|
+
var _;
|
|
74
|
+
(function(n) {
|
|
75
|
+
n[n.Equals = 0] = "Equals", n[n.NotEquals = 1] = "NotEquals", n[n.Identical = 2] = "Identical", n[n.NotIdentical = 3] = "NotIdentical", n[n.Minus = 4] = "Minus", n[n.Plus = 5] = "Plus", n[n.Divide = 6] = "Divide", n[n.Multiply = 7] = "Multiply", n[n.Modulo = 8] = "Modulo", n[n.And = 9] = "And", n[n.Or = 10] = "Or", n[n.BitwiseOr = 11] = "BitwiseOr", n[n.BitwiseAnd = 12] = "BitwiseAnd", n[n.Lower = 13] = "Lower", n[n.LowerEquals = 14] = "LowerEquals", n[n.Bigger = 15] = "Bigger", n[n.BiggerEquals = 16] = "BiggerEquals", n[n.NullishCoalesce = 17] = "NullishCoalesce", n[n.Exponentiation = 18] = "Exponentiation", n[n.In = 19] = "In";
|
|
76
|
+
})(_ || (_ = {}));
|
|
77
|
+
function zs(n, e) {
|
|
78
|
+
return n == null || e == null ? n == e : n.isEquivalent(e);
|
|
79
|
+
}
|
|
80
|
+
function Gs(n, e, t) {
|
|
81
|
+
let s = n.length;
|
|
82
|
+
if (s !== e.length) return !1;
|
|
83
|
+
for (let r = 0; r < s; r++) if (!t(n[r], e[r])) return !1;
|
|
84
|
+
return !0;
|
|
85
|
+
}
|
|
86
|
+
function ct(n, e) {
|
|
87
|
+
return Gs(n, e, (t, s) => t.isEquivalent(s));
|
|
88
|
+
}
|
|
89
|
+
var b = class {
|
|
90
|
+
type;
|
|
91
|
+
sourceSpan;
|
|
92
|
+
constructor(e, t) {
|
|
93
|
+
this.type = e || null, this.sourceSpan = t || null;
|
|
94
|
+
}
|
|
95
|
+
prop(e, t) {
|
|
96
|
+
return new _t(this, e, null, t);
|
|
97
|
+
}
|
|
98
|
+
key(e, t, s) {
|
|
99
|
+
return new Ct(this, e, t, s);
|
|
100
|
+
}
|
|
101
|
+
callFn(e, t, s) {
|
|
102
|
+
return new xt(this, e, null, t, s);
|
|
103
|
+
}
|
|
104
|
+
instantiate(e, t, s) {
|
|
105
|
+
return new St(this, e, t, s);
|
|
106
|
+
}
|
|
107
|
+
conditional(e, t = null, s) {
|
|
108
|
+
return new yt(this, e, t, null, s);
|
|
109
|
+
}
|
|
110
|
+
equals(e, t) {
|
|
111
|
+
return new C(_.Equals, this, e, null, t);
|
|
112
|
+
}
|
|
113
|
+
notEquals(e, t) {
|
|
114
|
+
return new C(_.NotEquals, this, e, null, t);
|
|
115
|
+
}
|
|
116
|
+
identical(e, t) {
|
|
117
|
+
return new C(_.Identical, this, e, null, t);
|
|
118
|
+
}
|
|
119
|
+
notIdentical(e, t) {
|
|
120
|
+
return new C(_.NotIdentical, this, e, null, t);
|
|
121
|
+
}
|
|
122
|
+
minus(e, t) {
|
|
123
|
+
return new C(_.Minus, this, e, null, t);
|
|
124
|
+
}
|
|
125
|
+
plus(e, t) {
|
|
126
|
+
return new C(_.Plus, this, e, null, t);
|
|
127
|
+
}
|
|
128
|
+
divide(e, t) {
|
|
129
|
+
return new C(_.Divide, this, e, null, t);
|
|
130
|
+
}
|
|
131
|
+
multiply(e, t) {
|
|
132
|
+
return new C(_.Multiply, this, e, null, t);
|
|
133
|
+
}
|
|
134
|
+
modulo(e, t) {
|
|
135
|
+
return new C(_.Modulo, this, e, null, t);
|
|
136
|
+
}
|
|
137
|
+
power(e, t) {
|
|
138
|
+
return new C(_.Exponentiation, this, e, null, t);
|
|
139
|
+
}
|
|
140
|
+
and(e, t) {
|
|
141
|
+
return new C(_.And, this, e, null, t);
|
|
142
|
+
}
|
|
143
|
+
bitwiseOr(e, t) {
|
|
144
|
+
return new C(_.BitwiseOr, this, e, null, t);
|
|
145
|
+
}
|
|
146
|
+
bitwiseAnd(e, t) {
|
|
147
|
+
return new C(_.BitwiseAnd, this, e, null, t);
|
|
148
|
+
}
|
|
149
|
+
or(e, t) {
|
|
150
|
+
return new C(_.Or, this, e, null, t);
|
|
151
|
+
}
|
|
152
|
+
lower(e, t) {
|
|
153
|
+
return new C(_.Lower, this, e, null, t);
|
|
154
|
+
}
|
|
155
|
+
lowerEquals(e, t) {
|
|
156
|
+
return new C(_.LowerEquals, this, e, null, t);
|
|
157
|
+
}
|
|
158
|
+
bigger(e, t) {
|
|
159
|
+
return new C(_.Bigger, this, e, null, t);
|
|
160
|
+
}
|
|
161
|
+
biggerEquals(e, t) {
|
|
162
|
+
return new C(_.BiggerEquals, this, e, null, t);
|
|
163
|
+
}
|
|
164
|
+
isBlank(e) {
|
|
165
|
+
return this.equals(TYPED_NULL_EXPR, e);
|
|
166
|
+
}
|
|
167
|
+
nullishCoalesce(e, t) {
|
|
168
|
+
return new C(_.NullishCoalesce, this, e, null, t);
|
|
169
|
+
}
|
|
170
|
+
toStmt() {
|
|
171
|
+
return new It(this, null);
|
|
172
|
+
}
|
|
173
|
+
}, st = class n extends b {
|
|
174
|
+
name;
|
|
175
|
+
constructor(e, t, s) {
|
|
176
|
+
super(t, s), this.name = e;
|
|
177
|
+
}
|
|
178
|
+
isEquivalent(e) {
|
|
179
|
+
return e instanceof n && this.name === e.name;
|
|
180
|
+
}
|
|
181
|
+
isConstant() {
|
|
182
|
+
return !1;
|
|
183
|
+
}
|
|
184
|
+
visitExpression(e, t) {
|
|
185
|
+
return e.visitReadVarExpr(this, t);
|
|
186
|
+
}
|
|
187
|
+
clone() {
|
|
188
|
+
return new n(this.name, this.type, this.sourceSpan);
|
|
189
|
+
}
|
|
190
|
+
set(e) {
|
|
191
|
+
return new gt(this.name, e, null, this.sourceSpan);
|
|
192
|
+
}
|
|
193
|
+
}, mt = class n extends b {
|
|
194
|
+
expr;
|
|
195
|
+
constructor(e, t, s) {
|
|
196
|
+
super(t, s), this.expr = e;
|
|
197
|
+
}
|
|
198
|
+
visitExpression(e, t) {
|
|
199
|
+
return e.visitTypeofExpr(this, t);
|
|
200
|
+
}
|
|
201
|
+
isEquivalent(e) {
|
|
202
|
+
return e instanceof n && e.expr.isEquivalent(this.expr);
|
|
203
|
+
}
|
|
204
|
+
isConstant() {
|
|
205
|
+
return this.expr.isConstant();
|
|
206
|
+
}
|
|
207
|
+
clone() {
|
|
208
|
+
return new n(this.expr.clone());
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
var gt = class n extends b {
|
|
212
|
+
name;
|
|
213
|
+
value;
|
|
214
|
+
constructor(e, t, s, r) {
|
|
215
|
+
super(s || t.type, r), this.name = e, this.value = t;
|
|
216
|
+
}
|
|
217
|
+
isEquivalent(e) {
|
|
218
|
+
return e instanceof n && this.name === e.name && this.value.isEquivalent(e.value);
|
|
219
|
+
}
|
|
220
|
+
isConstant() {
|
|
221
|
+
return !1;
|
|
222
|
+
}
|
|
223
|
+
visitExpression(e, t) {
|
|
224
|
+
return e.visitWriteVarExpr(this, t);
|
|
225
|
+
}
|
|
226
|
+
clone() {
|
|
227
|
+
return new n(this.name, this.value.clone(), this.type, this.sourceSpan);
|
|
228
|
+
}
|
|
229
|
+
toDeclStmt(e, t) {
|
|
230
|
+
return new bt(this.name, this.value, e, t, this.sourceSpan);
|
|
231
|
+
}
|
|
232
|
+
toConstDecl() {
|
|
233
|
+
return this.toDeclStmt(js, Ae.Final);
|
|
234
|
+
}
|
|
235
|
+
}, vt = class n extends b {
|
|
236
|
+
receiver;
|
|
237
|
+
index;
|
|
238
|
+
value;
|
|
239
|
+
constructor(e, t, s, r, i) {
|
|
240
|
+
super(r || s.type, i), this.receiver = e, this.index = t, this.value = s;
|
|
241
|
+
}
|
|
242
|
+
isEquivalent(e) {
|
|
243
|
+
return e instanceof n && this.receiver.isEquivalent(e.receiver) && this.index.isEquivalent(e.index) && this.value.isEquivalent(e.value);
|
|
244
|
+
}
|
|
245
|
+
isConstant() {
|
|
246
|
+
return !1;
|
|
247
|
+
}
|
|
248
|
+
visitExpression(e, t) {
|
|
249
|
+
return e.visitWriteKeyExpr(this, t);
|
|
250
|
+
}
|
|
251
|
+
clone() {
|
|
252
|
+
return new n(this.receiver.clone(), this.index.clone(), this.value.clone(), this.type, this.sourceSpan);
|
|
253
|
+
}
|
|
254
|
+
}, wt = class n extends b {
|
|
255
|
+
receiver;
|
|
256
|
+
name;
|
|
257
|
+
value;
|
|
258
|
+
constructor(e, t, s, r, i) {
|
|
259
|
+
super(r || s.type, i), this.receiver = e, this.name = t, this.value = s;
|
|
260
|
+
}
|
|
261
|
+
isEquivalent(e) {
|
|
262
|
+
return e instanceof n && this.receiver.isEquivalent(e.receiver) && this.name === e.name && this.value.isEquivalent(e.value);
|
|
263
|
+
}
|
|
264
|
+
isConstant() {
|
|
265
|
+
return !1;
|
|
266
|
+
}
|
|
267
|
+
visitExpression(e, t) {
|
|
268
|
+
return e.visitWritePropExpr(this, t);
|
|
269
|
+
}
|
|
270
|
+
clone() {
|
|
271
|
+
return new n(this.receiver.clone(), this.name, this.value.clone(), this.type, this.sourceSpan);
|
|
272
|
+
}
|
|
273
|
+
}, xt = class n extends b {
|
|
274
|
+
fn;
|
|
275
|
+
args;
|
|
276
|
+
pure;
|
|
277
|
+
constructor(e, t, s, r, i = !1) {
|
|
278
|
+
super(s, r), this.fn = e, this.args = t, this.pure = i;
|
|
279
|
+
}
|
|
280
|
+
get receiver() {
|
|
281
|
+
return this.fn;
|
|
282
|
+
}
|
|
283
|
+
isEquivalent(e) {
|
|
284
|
+
return e instanceof n && this.fn.isEquivalent(e.fn) && ct(this.args, e.args) && this.pure === e.pure;
|
|
285
|
+
}
|
|
286
|
+
isConstant() {
|
|
287
|
+
return !1;
|
|
288
|
+
}
|
|
289
|
+
visitExpression(e, t) {
|
|
290
|
+
return e.visitInvokeFunctionExpr(this, t);
|
|
291
|
+
}
|
|
292
|
+
clone() {
|
|
293
|
+
return new n(this.fn.clone(), this.args.map((e) => e.clone()), this.type, this.sourceSpan, this.pure);
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
var St = class n extends b {
|
|
297
|
+
classExpr;
|
|
298
|
+
args;
|
|
299
|
+
constructor(e, t, s, r) {
|
|
300
|
+
super(s, r), this.classExpr = e, this.args = t;
|
|
301
|
+
}
|
|
302
|
+
isEquivalent(e) {
|
|
303
|
+
return e instanceof n && this.classExpr.isEquivalent(e.classExpr) && ct(this.args, e.args);
|
|
304
|
+
}
|
|
305
|
+
isConstant() {
|
|
306
|
+
return !1;
|
|
307
|
+
}
|
|
308
|
+
visitExpression(e, t) {
|
|
309
|
+
return e.visitInstantiateExpr(this, t);
|
|
310
|
+
}
|
|
311
|
+
clone() {
|
|
312
|
+
return new n(this.classExpr.clone(), this.args.map((e) => e.clone()), this.type, this.sourceSpan);
|
|
313
|
+
}
|
|
314
|
+
}, rt = class n extends b {
|
|
315
|
+
value;
|
|
316
|
+
constructor(e, t, s) {
|
|
317
|
+
super(t, s), this.value = e;
|
|
318
|
+
}
|
|
319
|
+
isEquivalent(e) {
|
|
320
|
+
return e instanceof n && this.value === e.value;
|
|
321
|
+
}
|
|
322
|
+
isConstant() {
|
|
323
|
+
return !0;
|
|
324
|
+
}
|
|
325
|
+
visitExpression(e, t) {
|
|
326
|
+
return e.visitLiteralExpr(this, t);
|
|
327
|
+
}
|
|
328
|
+
clone() {
|
|
329
|
+
return new n(this.value, this.type, this.sourceSpan);
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
var Et = class n extends b {
|
|
333
|
+
value;
|
|
334
|
+
typeParams;
|
|
335
|
+
constructor(e, t, s = null, r) {
|
|
336
|
+
super(t, r), this.value = e, this.typeParams = s;
|
|
337
|
+
}
|
|
338
|
+
isEquivalent(e) {
|
|
339
|
+
return e instanceof n && this.value.name === e.value.name && this.value.moduleName === e.value.moduleName;
|
|
340
|
+
}
|
|
341
|
+
isConstant() {
|
|
342
|
+
return !1;
|
|
343
|
+
}
|
|
344
|
+
visitExpression(e, t) {
|
|
345
|
+
return e.visitExternalExpr(this, t);
|
|
346
|
+
}
|
|
347
|
+
clone() {
|
|
348
|
+
return new n(this.value, this.type, this.typeParams, this.sourceSpan);
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
var yt = class n extends b {
|
|
352
|
+
condition;
|
|
353
|
+
falseCase;
|
|
354
|
+
trueCase;
|
|
355
|
+
constructor(e, t, s = null, r, i) {
|
|
356
|
+
super(r || t.type, i), this.condition = e, this.falseCase = s, this.trueCase = t;
|
|
357
|
+
}
|
|
358
|
+
isEquivalent(e) {
|
|
359
|
+
return e instanceof n && this.condition.isEquivalent(e.condition) && this.trueCase.isEquivalent(e.trueCase) && zs(this.falseCase, e.falseCase);
|
|
360
|
+
}
|
|
361
|
+
isConstant() {
|
|
362
|
+
return !1;
|
|
363
|
+
}
|
|
364
|
+
visitExpression(e, t) {
|
|
365
|
+
return e.visitConditionalExpr(this, t);
|
|
366
|
+
}
|
|
367
|
+
clone() {
|
|
368
|
+
var e;
|
|
369
|
+
return new n(this.condition.clone(), this.trueCase.clone(), (e = this.falseCase) == null ? void 0 : e.clone(), this.type, this.sourceSpan);
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
var C = class n extends b {
|
|
373
|
+
operator;
|
|
374
|
+
rhs;
|
|
375
|
+
lhs;
|
|
376
|
+
constructor(e, t, s, r, i) {
|
|
377
|
+
super(r || t.type, i), this.operator = e, this.rhs = s, this.lhs = t;
|
|
378
|
+
}
|
|
379
|
+
isEquivalent(e) {
|
|
380
|
+
return e instanceof n && this.operator === e.operator && this.lhs.isEquivalent(e.lhs) && this.rhs.isEquivalent(e.rhs);
|
|
381
|
+
}
|
|
382
|
+
isConstant() {
|
|
383
|
+
return !1;
|
|
384
|
+
}
|
|
385
|
+
visitExpression(e, t) {
|
|
386
|
+
return e.visitBinaryOperatorExpr(this, t);
|
|
387
|
+
}
|
|
388
|
+
clone() {
|
|
389
|
+
return new n(this.operator, this.lhs.clone(), this.rhs.clone(), this.type, this.sourceSpan);
|
|
390
|
+
}
|
|
391
|
+
}, _t = class n extends b {
|
|
392
|
+
receiver;
|
|
393
|
+
name;
|
|
394
|
+
constructor(e, t, s, r) {
|
|
395
|
+
super(s, r), this.receiver = e, this.name = t;
|
|
396
|
+
}
|
|
397
|
+
get index() {
|
|
398
|
+
return this.name;
|
|
399
|
+
}
|
|
400
|
+
isEquivalent(e) {
|
|
401
|
+
return e instanceof n && this.receiver.isEquivalent(e.receiver) && this.name === e.name;
|
|
402
|
+
}
|
|
403
|
+
isConstant() {
|
|
404
|
+
return !1;
|
|
405
|
+
}
|
|
406
|
+
visitExpression(e, t) {
|
|
407
|
+
return e.visitReadPropExpr(this, t);
|
|
408
|
+
}
|
|
409
|
+
set(e) {
|
|
410
|
+
return new wt(this.receiver, this.name, e, null, this.sourceSpan);
|
|
411
|
+
}
|
|
412
|
+
clone() {
|
|
413
|
+
return new n(this.receiver.clone(), this.name, this.type, this.sourceSpan);
|
|
414
|
+
}
|
|
415
|
+
}, Ct = class n extends b {
|
|
416
|
+
receiver;
|
|
417
|
+
index;
|
|
418
|
+
constructor(e, t, s, r) {
|
|
419
|
+
super(s, r), this.receiver = e, this.index = t;
|
|
420
|
+
}
|
|
421
|
+
isEquivalent(e) {
|
|
422
|
+
return e instanceof n && this.receiver.isEquivalent(e.receiver) && this.index.isEquivalent(e.index);
|
|
423
|
+
}
|
|
424
|
+
isConstant() {
|
|
425
|
+
return !1;
|
|
426
|
+
}
|
|
427
|
+
visitExpression(e, t) {
|
|
428
|
+
return e.visitReadKeyExpr(this, t);
|
|
429
|
+
}
|
|
430
|
+
set(e) {
|
|
431
|
+
return new vt(this.receiver, this.index, e, null, this.sourceSpan);
|
|
432
|
+
}
|
|
433
|
+
clone() {
|
|
434
|
+
return new n(this.receiver.clone(), this.index.clone(), this.type, this.sourceSpan);
|
|
435
|
+
}
|
|
436
|
+
}, Tt = class n extends b {
|
|
437
|
+
entries;
|
|
438
|
+
constructor(e, t, s) {
|
|
439
|
+
super(t, s), this.entries = e;
|
|
440
|
+
}
|
|
441
|
+
isConstant() {
|
|
442
|
+
return this.entries.every((e) => e.isConstant());
|
|
443
|
+
}
|
|
444
|
+
isEquivalent(e) {
|
|
445
|
+
return e instanceof n && ct(this.entries, e.entries);
|
|
446
|
+
}
|
|
447
|
+
visitExpression(e, t) {
|
|
448
|
+
return e.visitLiteralArrayExpr(this, t);
|
|
449
|
+
}
|
|
450
|
+
clone() {
|
|
451
|
+
return new n(this.entries.map((e) => e.clone()), this.type, this.sourceSpan);
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
var kt = class n extends b {
|
|
455
|
+
entries;
|
|
456
|
+
valueType = null;
|
|
457
|
+
constructor(e, t, s) {
|
|
458
|
+
super(t, s), this.entries = e, t && (this.valueType = t.valueType);
|
|
459
|
+
}
|
|
460
|
+
isEquivalent(e) {
|
|
461
|
+
return e instanceof n && ct(this.entries, e.entries);
|
|
462
|
+
}
|
|
463
|
+
isConstant() {
|
|
464
|
+
return this.entries.every((e) => e.value.isConstant());
|
|
465
|
+
}
|
|
466
|
+
visitExpression(e, t) {
|
|
467
|
+
return e.visitLiteralMapExpr(this, t);
|
|
468
|
+
}
|
|
469
|
+
clone() {
|
|
470
|
+
let e = this.entries.map((t) => t.clone());
|
|
471
|
+
return new n(e, this.type, this.sourceSpan);
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
var Ae;
|
|
475
|
+
(function(n) {
|
|
476
|
+
n[n.None = 0] = "None", n[n.Final = 1] = "Final", n[n.Private = 2] = "Private", n[n.Exported = 4] = "Exported", n[n.Static = 8] = "Static";
|
|
477
|
+
})(Ae || (Ae = {}));
|
|
478
|
+
var it = class {
|
|
479
|
+
modifiers;
|
|
480
|
+
sourceSpan;
|
|
481
|
+
leadingComments;
|
|
482
|
+
constructor(e = Ae.None, t = null, s) {
|
|
483
|
+
this.modifiers = e, this.sourceSpan = t, this.leadingComments = s;
|
|
484
|
+
}
|
|
485
|
+
hasModifier(e) {
|
|
486
|
+
return (this.modifiers & e) !== 0;
|
|
487
|
+
}
|
|
488
|
+
addLeadingComment(e) {
|
|
489
|
+
this.leadingComments = this.leadingComments ?? [], this.leadingComments.push(e);
|
|
490
|
+
}
|
|
491
|
+
}, bt = class n extends it {
|
|
492
|
+
name;
|
|
493
|
+
value;
|
|
494
|
+
type;
|
|
495
|
+
constructor(e, t, s, r, i, a) {
|
|
496
|
+
super(r, i, a), this.name = e, this.value = t, this.type = s || t && t.type || null;
|
|
497
|
+
}
|
|
498
|
+
isEquivalent(e) {
|
|
499
|
+
return e instanceof n && this.name === e.name && (this.value ? !!e.value && this.value.isEquivalent(e.value) : !e.value);
|
|
500
|
+
}
|
|
501
|
+
visitStatement(e, t) {
|
|
502
|
+
return e.visitDeclareVarStmt(this, t);
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
var It = class n extends it {
|
|
506
|
+
expr;
|
|
507
|
+
constructor(e, t, s) {
|
|
508
|
+
super(Ae.None, t, s), this.expr = e;
|
|
509
|
+
}
|
|
510
|
+
isEquivalent(e) {
|
|
511
|
+
return e instanceof n && this.expr.isEquivalent(e.expr);
|
|
512
|
+
}
|
|
513
|
+
visitStatement(e, t) {
|
|
514
|
+
return e.visitExpressionStmt(this, t);
|
|
515
|
+
}
|
|
516
|
+
};
|
|
517
|
+
function Xs(n, e, t) {
|
|
518
|
+
return new st(n, e, t);
|
|
519
|
+
}
|
|
520
|
+
var ti = Xs("<unknown>");
|
|
521
|
+
var mn = class n {
|
|
522
|
+
static INSTANCE = new n();
|
|
523
|
+
keyOf(e) {
|
|
524
|
+
if (e instanceof rt && typeof e.value == "string") return `"${e.value}"`;
|
|
525
|
+
if (e instanceof rt) return String(e.value);
|
|
526
|
+
if (e instanceof Tt) {
|
|
527
|
+
let t = [];
|
|
528
|
+
for (let s of e.entries) t.push(this.keyOf(s));
|
|
529
|
+
return `[${t.join(",")}]`;
|
|
530
|
+
} else if (e instanceof kt) {
|
|
531
|
+
let t = [];
|
|
532
|
+
for (let s of e.entries) {
|
|
533
|
+
let r = s.key;
|
|
534
|
+
s.quoted && (r = `"${r}"`), t.push(r + ":" + this.keyOf(s.value));
|
|
535
|
+
}
|
|
536
|
+
return `{${t.join(",")}}`;
|
|
537
|
+
} else {
|
|
538
|
+
if (e instanceof Et) return `import("${e.value.moduleName}", ${e.value.name})`;
|
|
539
|
+
if (e instanceof st) return `read(${e.name})`;
|
|
540
|
+
if (e instanceof mt) return `typeof(${this.keyOf(e.expr)})`;
|
|
541
|
+
throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
var o = "@angular/core", p = class {
|
|
546
|
+
static NEW_METHOD = "factory";
|
|
547
|
+
static TRANSFORM_METHOD = "transform";
|
|
548
|
+
static PATCH_DEPS = "patchedDeps";
|
|
549
|
+
static core = {
|
|
550
|
+
name: null,
|
|
551
|
+
moduleName: o
|
|
552
|
+
};
|
|
553
|
+
static namespaceHTML = {
|
|
554
|
+
name: "ɵɵnamespaceHTML",
|
|
555
|
+
moduleName: o
|
|
556
|
+
};
|
|
557
|
+
static namespaceMathML = {
|
|
558
|
+
name: "ɵɵnamespaceMathML",
|
|
559
|
+
moduleName: o
|
|
560
|
+
};
|
|
561
|
+
static namespaceSVG = {
|
|
562
|
+
name: "ɵɵnamespaceSVG",
|
|
563
|
+
moduleName: o
|
|
564
|
+
};
|
|
565
|
+
static element = {
|
|
566
|
+
name: "ɵɵelement",
|
|
567
|
+
moduleName: o
|
|
568
|
+
};
|
|
569
|
+
static elementStart = {
|
|
570
|
+
name: "ɵɵelementStart",
|
|
571
|
+
moduleName: o
|
|
572
|
+
};
|
|
573
|
+
static elementEnd = {
|
|
574
|
+
name: "ɵɵelementEnd",
|
|
575
|
+
moduleName: o
|
|
576
|
+
};
|
|
577
|
+
static advance = {
|
|
578
|
+
name: "ɵɵadvance",
|
|
579
|
+
moduleName: o
|
|
580
|
+
};
|
|
581
|
+
static syntheticHostProperty = {
|
|
582
|
+
name: "ɵɵsyntheticHostProperty",
|
|
583
|
+
moduleName: o
|
|
584
|
+
};
|
|
585
|
+
static syntheticHostListener = {
|
|
586
|
+
name: "ɵɵsyntheticHostListener",
|
|
587
|
+
moduleName: o
|
|
588
|
+
};
|
|
589
|
+
static attribute = {
|
|
590
|
+
name: "ɵɵattribute",
|
|
591
|
+
moduleName: o
|
|
592
|
+
};
|
|
593
|
+
static classProp = {
|
|
594
|
+
name: "ɵɵclassProp",
|
|
595
|
+
moduleName: o
|
|
596
|
+
};
|
|
597
|
+
static elementContainerStart = {
|
|
598
|
+
name: "ɵɵelementContainerStart",
|
|
599
|
+
moduleName: o
|
|
600
|
+
};
|
|
601
|
+
static elementContainerEnd = {
|
|
602
|
+
name: "ɵɵelementContainerEnd",
|
|
603
|
+
moduleName: o
|
|
604
|
+
};
|
|
605
|
+
static elementContainer = {
|
|
606
|
+
name: "ɵɵelementContainer",
|
|
607
|
+
moduleName: o
|
|
608
|
+
};
|
|
609
|
+
static styleMap = {
|
|
610
|
+
name: "ɵɵstyleMap",
|
|
611
|
+
moduleName: o
|
|
612
|
+
};
|
|
613
|
+
static classMap = {
|
|
614
|
+
name: "ɵɵclassMap",
|
|
615
|
+
moduleName: o
|
|
616
|
+
};
|
|
617
|
+
static styleProp = {
|
|
618
|
+
name: "ɵɵstyleProp",
|
|
619
|
+
moduleName: o
|
|
620
|
+
};
|
|
621
|
+
static interpolate = {
|
|
622
|
+
name: "ɵɵinterpolate",
|
|
623
|
+
moduleName: o
|
|
624
|
+
};
|
|
625
|
+
static interpolate1 = {
|
|
626
|
+
name: "ɵɵinterpolate1",
|
|
627
|
+
moduleName: o
|
|
628
|
+
};
|
|
629
|
+
static interpolate2 = {
|
|
630
|
+
name: "ɵɵinterpolate2",
|
|
631
|
+
moduleName: o
|
|
632
|
+
};
|
|
633
|
+
static interpolate3 = {
|
|
634
|
+
name: "ɵɵinterpolate3",
|
|
635
|
+
moduleName: o
|
|
636
|
+
};
|
|
637
|
+
static interpolate4 = {
|
|
638
|
+
name: "ɵɵinterpolate4",
|
|
639
|
+
moduleName: o
|
|
640
|
+
};
|
|
641
|
+
static interpolate5 = {
|
|
642
|
+
name: "ɵɵinterpolate5",
|
|
643
|
+
moduleName: o
|
|
644
|
+
};
|
|
645
|
+
static interpolate6 = {
|
|
646
|
+
name: "ɵɵinterpolate6",
|
|
647
|
+
moduleName: o
|
|
648
|
+
};
|
|
649
|
+
static interpolate7 = {
|
|
650
|
+
name: "ɵɵinterpolate7",
|
|
651
|
+
moduleName: o
|
|
652
|
+
};
|
|
653
|
+
static interpolate8 = {
|
|
654
|
+
name: "ɵɵinterpolate8",
|
|
655
|
+
moduleName: o
|
|
656
|
+
};
|
|
657
|
+
static interpolateV = {
|
|
658
|
+
name: "ɵɵinterpolateV",
|
|
659
|
+
moduleName: o
|
|
660
|
+
};
|
|
661
|
+
static nextContext = {
|
|
662
|
+
name: "ɵɵnextContext",
|
|
663
|
+
moduleName: o
|
|
664
|
+
};
|
|
665
|
+
static resetView = {
|
|
666
|
+
name: "ɵɵresetView",
|
|
667
|
+
moduleName: o
|
|
668
|
+
};
|
|
669
|
+
static templateCreate = {
|
|
670
|
+
name: "ɵɵtemplate",
|
|
671
|
+
moduleName: o
|
|
672
|
+
};
|
|
673
|
+
static defer = {
|
|
674
|
+
name: "ɵɵdefer",
|
|
675
|
+
moduleName: o
|
|
676
|
+
};
|
|
677
|
+
static deferWhen = {
|
|
678
|
+
name: "ɵɵdeferWhen",
|
|
679
|
+
moduleName: o
|
|
680
|
+
};
|
|
681
|
+
static deferOnIdle = {
|
|
682
|
+
name: "ɵɵdeferOnIdle",
|
|
683
|
+
moduleName: o
|
|
684
|
+
};
|
|
685
|
+
static deferOnImmediate = {
|
|
686
|
+
name: "ɵɵdeferOnImmediate",
|
|
687
|
+
moduleName: o
|
|
688
|
+
};
|
|
689
|
+
static deferOnTimer = {
|
|
690
|
+
name: "ɵɵdeferOnTimer",
|
|
691
|
+
moduleName: o
|
|
692
|
+
};
|
|
693
|
+
static deferOnHover = {
|
|
694
|
+
name: "ɵɵdeferOnHover",
|
|
695
|
+
moduleName: o
|
|
696
|
+
};
|
|
697
|
+
static deferOnInteraction = {
|
|
698
|
+
name: "ɵɵdeferOnInteraction",
|
|
699
|
+
moduleName: o
|
|
700
|
+
};
|
|
701
|
+
static deferOnViewport = {
|
|
702
|
+
name: "ɵɵdeferOnViewport",
|
|
703
|
+
moduleName: o
|
|
704
|
+
};
|
|
705
|
+
static deferPrefetchWhen = {
|
|
706
|
+
name: "ɵɵdeferPrefetchWhen",
|
|
707
|
+
moduleName: o
|
|
708
|
+
};
|
|
709
|
+
static deferPrefetchOnIdle = {
|
|
710
|
+
name: "ɵɵdeferPrefetchOnIdle",
|
|
711
|
+
moduleName: o
|
|
712
|
+
};
|
|
713
|
+
static deferPrefetchOnImmediate = {
|
|
714
|
+
name: "ɵɵdeferPrefetchOnImmediate",
|
|
715
|
+
moduleName: o
|
|
716
|
+
};
|
|
717
|
+
static deferPrefetchOnTimer = {
|
|
718
|
+
name: "ɵɵdeferPrefetchOnTimer",
|
|
719
|
+
moduleName: o
|
|
720
|
+
};
|
|
721
|
+
static deferPrefetchOnHover = {
|
|
722
|
+
name: "ɵɵdeferPrefetchOnHover",
|
|
723
|
+
moduleName: o
|
|
724
|
+
};
|
|
725
|
+
static deferPrefetchOnInteraction = {
|
|
726
|
+
name: "ɵɵdeferPrefetchOnInteraction",
|
|
727
|
+
moduleName: o
|
|
728
|
+
};
|
|
729
|
+
static deferPrefetchOnViewport = {
|
|
730
|
+
name: "ɵɵdeferPrefetchOnViewport",
|
|
731
|
+
moduleName: o
|
|
732
|
+
};
|
|
733
|
+
static deferHydrateWhen = {
|
|
734
|
+
name: "ɵɵdeferHydrateWhen",
|
|
735
|
+
moduleName: o
|
|
736
|
+
};
|
|
737
|
+
static deferHydrateNever = {
|
|
738
|
+
name: "ɵɵdeferHydrateNever",
|
|
739
|
+
moduleName: o
|
|
740
|
+
};
|
|
741
|
+
static deferHydrateOnIdle = {
|
|
742
|
+
name: "ɵɵdeferHydrateOnIdle",
|
|
743
|
+
moduleName: o
|
|
744
|
+
};
|
|
745
|
+
static deferHydrateOnImmediate = {
|
|
746
|
+
name: "ɵɵdeferHydrateOnImmediate",
|
|
747
|
+
moduleName: o
|
|
748
|
+
};
|
|
749
|
+
static deferHydrateOnTimer = {
|
|
750
|
+
name: "ɵɵdeferHydrateOnTimer",
|
|
751
|
+
moduleName: o
|
|
752
|
+
};
|
|
753
|
+
static deferHydrateOnHover = {
|
|
754
|
+
name: "ɵɵdeferHydrateOnHover",
|
|
755
|
+
moduleName: o
|
|
756
|
+
};
|
|
757
|
+
static deferHydrateOnInteraction = {
|
|
758
|
+
name: "ɵɵdeferHydrateOnInteraction",
|
|
759
|
+
moduleName: o
|
|
760
|
+
};
|
|
761
|
+
static deferHydrateOnViewport = {
|
|
762
|
+
name: "ɵɵdeferHydrateOnViewport",
|
|
763
|
+
moduleName: o
|
|
764
|
+
};
|
|
765
|
+
static deferEnableTimerScheduling = {
|
|
766
|
+
name: "ɵɵdeferEnableTimerScheduling",
|
|
767
|
+
moduleName: o
|
|
768
|
+
};
|
|
769
|
+
static conditionalCreate = {
|
|
770
|
+
name: "ɵɵconditionalCreate",
|
|
771
|
+
moduleName: o
|
|
772
|
+
};
|
|
773
|
+
static conditionalBranchCreate = {
|
|
774
|
+
name: "ɵɵconditionalBranchCreate",
|
|
775
|
+
moduleName: o
|
|
776
|
+
};
|
|
777
|
+
static conditional = {
|
|
778
|
+
name: "ɵɵconditional",
|
|
779
|
+
moduleName: o
|
|
780
|
+
};
|
|
781
|
+
static repeater = {
|
|
782
|
+
name: "ɵɵrepeater",
|
|
783
|
+
moduleName: o
|
|
784
|
+
};
|
|
785
|
+
static repeaterCreate = {
|
|
786
|
+
name: "ɵɵrepeaterCreate",
|
|
787
|
+
moduleName: o
|
|
788
|
+
};
|
|
789
|
+
static repeaterTrackByIndex = {
|
|
790
|
+
name: "ɵɵrepeaterTrackByIndex",
|
|
791
|
+
moduleName: o
|
|
792
|
+
};
|
|
793
|
+
static repeaterTrackByIdentity = {
|
|
794
|
+
name: "ɵɵrepeaterTrackByIdentity",
|
|
795
|
+
moduleName: o
|
|
796
|
+
};
|
|
797
|
+
static componentInstance = {
|
|
798
|
+
name: "ɵɵcomponentInstance",
|
|
799
|
+
moduleName: o
|
|
800
|
+
};
|
|
801
|
+
static text = {
|
|
802
|
+
name: "ɵɵtext",
|
|
803
|
+
moduleName: o
|
|
804
|
+
};
|
|
805
|
+
static enableBindings = {
|
|
806
|
+
name: "ɵɵenableBindings",
|
|
807
|
+
moduleName: o
|
|
808
|
+
};
|
|
809
|
+
static disableBindings = {
|
|
810
|
+
name: "ɵɵdisableBindings",
|
|
811
|
+
moduleName: o
|
|
812
|
+
};
|
|
813
|
+
static getCurrentView = {
|
|
814
|
+
name: "ɵɵgetCurrentView",
|
|
815
|
+
moduleName: o
|
|
816
|
+
};
|
|
817
|
+
static textInterpolate = {
|
|
818
|
+
name: "ɵɵtextInterpolate",
|
|
819
|
+
moduleName: o
|
|
820
|
+
};
|
|
821
|
+
static textInterpolate1 = {
|
|
822
|
+
name: "ɵɵtextInterpolate1",
|
|
823
|
+
moduleName: o
|
|
824
|
+
};
|
|
825
|
+
static textInterpolate2 = {
|
|
826
|
+
name: "ɵɵtextInterpolate2",
|
|
827
|
+
moduleName: o
|
|
828
|
+
};
|
|
829
|
+
static textInterpolate3 = {
|
|
830
|
+
name: "ɵɵtextInterpolate3",
|
|
831
|
+
moduleName: o
|
|
832
|
+
};
|
|
833
|
+
static textInterpolate4 = {
|
|
834
|
+
name: "ɵɵtextInterpolate4",
|
|
835
|
+
moduleName: o
|
|
836
|
+
};
|
|
837
|
+
static textInterpolate5 = {
|
|
838
|
+
name: "ɵɵtextInterpolate5",
|
|
839
|
+
moduleName: o
|
|
840
|
+
};
|
|
841
|
+
static textInterpolate6 = {
|
|
842
|
+
name: "ɵɵtextInterpolate6",
|
|
843
|
+
moduleName: o
|
|
844
|
+
};
|
|
845
|
+
static textInterpolate7 = {
|
|
846
|
+
name: "ɵɵtextInterpolate7",
|
|
847
|
+
moduleName: o
|
|
848
|
+
};
|
|
849
|
+
static textInterpolate8 = {
|
|
850
|
+
name: "ɵɵtextInterpolate8",
|
|
851
|
+
moduleName: o
|
|
852
|
+
};
|
|
853
|
+
static textInterpolateV = {
|
|
854
|
+
name: "ɵɵtextInterpolateV",
|
|
855
|
+
moduleName: o
|
|
856
|
+
};
|
|
857
|
+
static restoreView = {
|
|
858
|
+
name: "ɵɵrestoreView",
|
|
859
|
+
moduleName: o
|
|
860
|
+
};
|
|
861
|
+
static pureFunction0 = {
|
|
862
|
+
name: "ɵɵpureFunction0",
|
|
863
|
+
moduleName: o
|
|
864
|
+
};
|
|
865
|
+
static pureFunction1 = {
|
|
866
|
+
name: "ɵɵpureFunction1",
|
|
867
|
+
moduleName: o
|
|
868
|
+
};
|
|
869
|
+
static pureFunction2 = {
|
|
870
|
+
name: "ɵɵpureFunction2",
|
|
871
|
+
moduleName: o
|
|
872
|
+
};
|
|
873
|
+
static pureFunction3 = {
|
|
874
|
+
name: "ɵɵpureFunction3",
|
|
875
|
+
moduleName: o
|
|
876
|
+
};
|
|
877
|
+
static pureFunction4 = {
|
|
878
|
+
name: "ɵɵpureFunction4",
|
|
879
|
+
moduleName: o
|
|
880
|
+
};
|
|
881
|
+
static pureFunction5 = {
|
|
882
|
+
name: "ɵɵpureFunction5",
|
|
883
|
+
moduleName: o
|
|
884
|
+
};
|
|
885
|
+
static pureFunction6 = {
|
|
886
|
+
name: "ɵɵpureFunction6",
|
|
887
|
+
moduleName: o
|
|
888
|
+
};
|
|
889
|
+
static pureFunction7 = {
|
|
890
|
+
name: "ɵɵpureFunction7",
|
|
891
|
+
moduleName: o
|
|
892
|
+
};
|
|
893
|
+
static pureFunction8 = {
|
|
894
|
+
name: "ɵɵpureFunction8",
|
|
895
|
+
moduleName: o
|
|
896
|
+
};
|
|
897
|
+
static pureFunctionV = {
|
|
898
|
+
name: "ɵɵpureFunctionV",
|
|
899
|
+
moduleName: o
|
|
900
|
+
};
|
|
901
|
+
static pipeBind1 = {
|
|
902
|
+
name: "ɵɵpipeBind1",
|
|
903
|
+
moduleName: o
|
|
904
|
+
};
|
|
905
|
+
static pipeBind2 = {
|
|
906
|
+
name: "ɵɵpipeBind2",
|
|
907
|
+
moduleName: o
|
|
908
|
+
};
|
|
909
|
+
static pipeBind3 = {
|
|
910
|
+
name: "ɵɵpipeBind3",
|
|
911
|
+
moduleName: o
|
|
912
|
+
};
|
|
913
|
+
static pipeBind4 = {
|
|
914
|
+
name: "ɵɵpipeBind4",
|
|
915
|
+
moduleName: o
|
|
916
|
+
};
|
|
917
|
+
static pipeBindV = {
|
|
918
|
+
name: "ɵɵpipeBindV",
|
|
919
|
+
moduleName: o
|
|
920
|
+
};
|
|
921
|
+
static domProperty = {
|
|
922
|
+
name: "ɵɵdomProperty",
|
|
923
|
+
moduleName: o
|
|
924
|
+
};
|
|
925
|
+
static property = {
|
|
926
|
+
name: "ɵɵproperty",
|
|
927
|
+
moduleName: o
|
|
928
|
+
};
|
|
929
|
+
static i18n = {
|
|
930
|
+
name: "ɵɵi18n",
|
|
931
|
+
moduleName: o
|
|
932
|
+
};
|
|
933
|
+
static i18nAttributes = {
|
|
934
|
+
name: "ɵɵi18nAttributes",
|
|
935
|
+
moduleName: o
|
|
936
|
+
};
|
|
937
|
+
static i18nExp = {
|
|
938
|
+
name: "ɵɵi18nExp",
|
|
939
|
+
moduleName: o
|
|
940
|
+
};
|
|
941
|
+
static i18nStart = {
|
|
942
|
+
name: "ɵɵi18nStart",
|
|
943
|
+
moduleName: o
|
|
944
|
+
};
|
|
945
|
+
static i18nEnd = {
|
|
946
|
+
name: "ɵɵi18nEnd",
|
|
947
|
+
moduleName: o
|
|
948
|
+
};
|
|
949
|
+
static i18nApply = {
|
|
950
|
+
name: "ɵɵi18nApply",
|
|
951
|
+
moduleName: o
|
|
952
|
+
};
|
|
953
|
+
static i18nPostprocess = {
|
|
954
|
+
name: "ɵɵi18nPostprocess",
|
|
955
|
+
moduleName: o
|
|
956
|
+
};
|
|
957
|
+
static pipe = {
|
|
958
|
+
name: "ɵɵpipe",
|
|
959
|
+
moduleName: o
|
|
960
|
+
};
|
|
961
|
+
static projection = {
|
|
962
|
+
name: "ɵɵprojection",
|
|
963
|
+
moduleName: o
|
|
964
|
+
};
|
|
965
|
+
static projectionDef = {
|
|
966
|
+
name: "ɵɵprojectionDef",
|
|
967
|
+
moduleName: o
|
|
968
|
+
};
|
|
969
|
+
static reference = {
|
|
970
|
+
name: "ɵɵreference",
|
|
971
|
+
moduleName: o
|
|
972
|
+
};
|
|
973
|
+
static inject = {
|
|
974
|
+
name: "ɵɵinject",
|
|
975
|
+
moduleName: o
|
|
976
|
+
};
|
|
977
|
+
static injectAttribute = {
|
|
978
|
+
name: "ɵɵinjectAttribute",
|
|
979
|
+
moduleName: o
|
|
980
|
+
};
|
|
981
|
+
static directiveInject = {
|
|
982
|
+
name: "ɵɵdirectiveInject",
|
|
983
|
+
moduleName: o
|
|
984
|
+
};
|
|
985
|
+
static invalidFactory = {
|
|
986
|
+
name: "ɵɵinvalidFactory",
|
|
987
|
+
moduleName: o
|
|
988
|
+
};
|
|
989
|
+
static invalidFactoryDep = {
|
|
990
|
+
name: "ɵɵinvalidFactoryDep",
|
|
991
|
+
moduleName: o
|
|
992
|
+
};
|
|
993
|
+
static templateRefExtractor = {
|
|
994
|
+
name: "ɵɵtemplateRefExtractor",
|
|
995
|
+
moduleName: o
|
|
996
|
+
};
|
|
997
|
+
static forwardRef = {
|
|
998
|
+
name: "forwardRef",
|
|
999
|
+
moduleName: o
|
|
1000
|
+
};
|
|
1001
|
+
static resolveForwardRef = {
|
|
1002
|
+
name: "resolveForwardRef",
|
|
1003
|
+
moduleName: o
|
|
1004
|
+
};
|
|
1005
|
+
static replaceMetadata = {
|
|
1006
|
+
name: "ɵɵreplaceMetadata",
|
|
1007
|
+
moduleName: o
|
|
1008
|
+
};
|
|
1009
|
+
static getReplaceMetadataURL = {
|
|
1010
|
+
name: "ɵɵgetReplaceMetadataURL",
|
|
1011
|
+
moduleName: o
|
|
1012
|
+
};
|
|
1013
|
+
static ɵɵdefineInjectable = {
|
|
1014
|
+
name: "ɵɵdefineInjectable",
|
|
1015
|
+
moduleName: o
|
|
1016
|
+
};
|
|
1017
|
+
static declareInjectable = {
|
|
1018
|
+
name: "ɵɵngDeclareInjectable",
|
|
1019
|
+
moduleName: o
|
|
1020
|
+
};
|
|
1021
|
+
static InjectableDeclaration = {
|
|
1022
|
+
name: "ɵɵInjectableDeclaration",
|
|
1023
|
+
moduleName: o
|
|
1024
|
+
};
|
|
1025
|
+
static resolveWindow = {
|
|
1026
|
+
name: "ɵɵresolveWindow",
|
|
1027
|
+
moduleName: o
|
|
1028
|
+
};
|
|
1029
|
+
static resolveDocument = {
|
|
1030
|
+
name: "ɵɵresolveDocument",
|
|
1031
|
+
moduleName: o
|
|
1032
|
+
};
|
|
1033
|
+
static resolveBody = {
|
|
1034
|
+
name: "ɵɵresolveBody",
|
|
1035
|
+
moduleName: o
|
|
1036
|
+
};
|
|
1037
|
+
static getComponentDepsFactory = {
|
|
1038
|
+
name: "ɵɵgetComponentDepsFactory",
|
|
1039
|
+
moduleName: o
|
|
1040
|
+
};
|
|
1041
|
+
static defineComponent = {
|
|
1042
|
+
name: "ɵɵdefineComponent",
|
|
1043
|
+
moduleName: o
|
|
1044
|
+
};
|
|
1045
|
+
static declareComponent = {
|
|
1046
|
+
name: "ɵɵngDeclareComponent",
|
|
1047
|
+
moduleName: o
|
|
1048
|
+
};
|
|
1049
|
+
static setComponentScope = {
|
|
1050
|
+
name: "ɵɵsetComponentScope",
|
|
1051
|
+
moduleName: o
|
|
1052
|
+
};
|
|
1053
|
+
static ChangeDetectionStrategy = {
|
|
1054
|
+
name: "ChangeDetectionStrategy",
|
|
1055
|
+
moduleName: o
|
|
1056
|
+
};
|
|
1057
|
+
static ViewEncapsulation = {
|
|
1058
|
+
name: "ViewEncapsulation",
|
|
1059
|
+
moduleName: o
|
|
1060
|
+
};
|
|
1061
|
+
static ComponentDeclaration = {
|
|
1062
|
+
name: "ɵɵComponentDeclaration",
|
|
1063
|
+
moduleName: o
|
|
1064
|
+
};
|
|
1065
|
+
static FactoryDeclaration = {
|
|
1066
|
+
name: "ɵɵFactoryDeclaration",
|
|
1067
|
+
moduleName: o
|
|
1068
|
+
};
|
|
1069
|
+
static declareFactory = {
|
|
1070
|
+
name: "ɵɵngDeclareFactory",
|
|
1071
|
+
moduleName: o
|
|
1072
|
+
};
|
|
1073
|
+
static FactoryTarget = {
|
|
1074
|
+
name: "ɵɵFactoryTarget",
|
|
1075
|
+
moduleName: o
|
|
1076
|
+
};
|
|
1077
|
+
static defineDirective = {
|
|
1078
|
+
name: "ɵɵdefineDirective",
|
|
1079
|
+
moduleName: o
|
|
1080
|
+
};
|
|
1081
|
+
static declareDirective = {
|
|
1082
|
+
name: "ɵɵngDeclareDirective",
|
|
1083
|
+
moduleName: o
|
|
1084
|
+
};
|
|
1085
|
+
static DirectiveDeclaration = {
|
|
1086
|
+
name: "ɵɵDirectiveDeclaration",
|
|
1087
|
+
moduleName: o
|
|
1088
|
+
};
|
|
1089
|
+
static InjectorDef = {
|
|
1090
|
+
name: "ɵɵInjectorDef",
|
|
1091
|
+
moduleName: o
|
|
1092
|
+
};
|
|
1093
|
+
static InjectorDeclaration = {
|
|
1094
|
+
name: "ɵɵInjectorDeclaration",
|
|
1095
|
+
moduleName: o
|
|
1096
|
+
};
|
|
1097
|
+
static defineInjector = {
|
|
1098
|
+
name: "ɵɵdefineInjector",
|
|
1099
|
+
moduleName: o
|
|
1100
|
+
};
|
|
1101
|
+
static declareInjector = {
|
|
1102
|
+
name: "ɵɵngDeclareInjector",
|
|
1103
|
+
moduleName: o
|
|
1104
|
+
};
|
|
1105
|
+
static NgModuleDeclaration = {
|
|
1106
|
+
name: "ɵɵNgModuleDeclaration",
|
|
1107
|
+
moduleName: o
|
|
1108
|
+
};
|
|
1109
|
+
static ModuleWithProviders = {
|
|
1110
|
+
name: "ModuleWithProviders",
|
|
1111
|
+
moduleName: o
|
|
1112
|
+
};
|
|
1113
|
+
static defineNgModule = {
|
|
1114
|
+
name: "ɵɵdefineNgModule",
|
|
1115
|
+
moduleName: o
|
|
1116
|
+
};
|
|
1117
|
+
static declareNgModule = {
|
|
1118
|
+
name: "ɵɵngDeclareNgModule",
|
|
1119
|
+
moduleName: o
|
|
1120
|
+
};
|
|
1121
|
+
static setNgModuleScope = {
|
|
1122
|
+
name: "ɵɵsetNgModuleScope",
|
|
1123
|
+
moduleName: o
|
|
1124
|
+
};
|
|
1125
|
+
static registerNgModuleType = {
|
|
1126
|
+
name: "ɵɵregisterNgModuleType",
|
|
1127
|
+
moduleName: o
|
|
1128
|
+
};
|
|
1129
|
+
static PipeDeclaration = {
|
|
1130
|
+
name: "ɵɵPipeDeclaration",
|
|
1131
|
+
moduleName: o
|
|
1132
|
+
};
|
|
1133
|
+
static definePipe = {
|
|
1134
|
+
name: "ɵɵdefinePipe",
|
|
1135
|
+
moduleName: o
|
|
1136
|
+
};
|
|
1137
|
+
static declarePipe = {
|
|
1138
|
+
name: "ɵɵngDeclarePipe",
|
|
1139
|
+
moduleName: o
|
|
1140
|
+
};
|
|
1141
|
+
static declareClassMetadata = {
|
|
1142
|
+
name: "ɵɵngDeclareClassMetadata",
|
|
1143
|
+
moduleName: o
|
|
1144
|
+
};
|
|
1145
|
+
static declareClassMetadataAsync = {
|
|
1146
|
+
name: "ɵɵngDeclareClassMetadataAsync",
|
|
1147
|
+
moduleName: o
|
|
1148
|
+
};
|
|
1149
|
+
static setClassMetadata = {
|
|
1150
|
+
name: "ɵsetClassMetadata",
|
|
1151
|
+
moduleName: o
|
|
1152
|
+
};
|
|
1153
|
+
static setClassMetadataAsync = {
|
|
1154
|
+
name: "ɵsetClassMetadataAsync",
|
|
1155
|
+
moduleName: o
|
|
1156
|
+
};
|
|
1157
|
+
static setClassDebugInfo = {
|
|
1158
|
+
name: "ɵsetClassDebugInfo",
|
|
1159
|
+
moduleName: o
|
|
1160
|
+
};
|
|
1161
|
+
static queryRefresh = {
|
|
1162
|
+
name: "ɵɵqueryRefresh",
|
|
1163
|
+
moduleName: o
|
|
1164
|
+
};
|
|
1165
|
+
static viewQuery = {
|
|
1166
|
+
name: "ɵɵviewQuery",
|
|
1167
|
+
moduleName: o
|
|
1168
|
+
};
|
|
1169
|
+
static loadQuery = {
|
|
1170
|
+
name: "ɵɵloadQuery",
|
|
1171
|
+
moduleName: o
|
|
1172
|
+
};
|
|
1173
|
+
static contentQuery = {
|
|
1174
|
+
name: "ɵɵcontentQuery",
|
|
1175
|
+
moduleName: o
|
|
1176
|
+
};
|
|
1177
|
+
static viewQuerySignal = {
|
|
1178
|
+
name: "ɵɵviewQuerySignal",
|
|
1179
|
+
moduleName: o
|
|
1180
|
+
};
|
|
1181
|
+
static contentQuerySignal = {
|
|
1182
|
+
name: "ɵɵcontentQuerySignal",
|
|
1183
|
+
moduleName: o
|
|
1184
|
+
};
|
|
1185
|
+
static queryAdvance = {
|
|
1186
|
+
name: "ɵɵqueryAdvance",
|
|
1187
|
+
moduleName: o
|
|
1188
|
+
};
|
|
1189
|
+
static twoWayProperty = {
|
|
1190
|
+
name: "ɵɵtwoWayProperty",
|
|
1191
|
+
moduleName: o
|
|
1192
|
+
};
|
|
1193
|
+
static twoWayBindingSet = {
|
|
1194
|
+
name: "ɵɵtwoWayBindingSet",
|
|
1195
|
+
moduleName: o
|
|
1196
|
+
};
|
|
1197
|
+
static twoWayListener = {
|
|
1198
|
+
name: "ɵɵtwoWayListener",
|
|
1199
|
+
moduleName: o
|
|
1200
|
+
};
|
|
1201
|
+
static declareLet = {
|
|
1202
|
+
name: "ɵɵdeclareLet",
|
|
1203
|
+
moduleName: o
|
|
1204
|
+
};
|
|
1205
|
+
static storeLet = {
|
|
1206
|
+
name: "ɵɵstoreLet",
|
|
1207
|
+
moduleName: o
|
|
1208
|
+
};
|
|
1209
|
+
static readContextLet = {
|
|
1210
|
+
name: "ɵɵreadContextLet",
|
|
1211
|
+
moduleName: o
|
|
1212
|
+
};
|
|
1213
|
+
static attachSourceLocations = {
|
|
1214
|
+
name: "ɵɵattachSourceLocations",
|
|
1215
|
+
moduleName: o
|
|
1216
|
+
};
|
|
1217
|
+
static NgOnChangesFeature = {
|
|
1218
|
+
name: "ɵɵNgOnChangesFeature",
|
|
1219
|
+
moduleName: o
|
|
1220
|
+
};
|
|
1221
|
+
static InheritDefinitionFeature = {
|
|
1222
|
+
name: "ɵɵInheritDefinitionFeature",
|
|
1223
|
+
moduleName: o
|
|
1224
|
+
};
|
|
1225
|
+
static CopyDefinitionFeature = {
|
|
1226
|
+
name: "ɵɵCopyDefinitionFeature",
|
|
1227
|
+
moduleName: o
|
|
1228
|
+
};
|
|
1229
|
+
static ProvidersFeature = {
|
|
1230
|
+
name: "ɵɵProvidersFeature",
|
|
1231
|
+
moduleName: o
|
|
1232
|
+
};
|
|
1233
|
+
static HostDirectivesFeature = {
|
|
1234
|
+
name: "ɵɵHostDirectivesFeature",
|
|
1235
|
+
moduleName: o
|
|
1236
|
+
};
|
|
1237
|
+
static ExternalStylesFeature = {
|
|
1238
|
+
name: "ɵɵExternalStylesFeature",
|
|
1239
|
+
moduleName: o
|
|
1240
|
+
};
|
|
1241
|
+
static listener = {
|
|
1242
|
+
name: "ɵɵlistener",
|
|
1243
|
+
moduleName: o
|
|
1244
|
+
};
|
|
1245
|
+
static getInheritedFactory = {
|
|
1246
|
+
name: "ɵɵgetInheritedFactory",
|
|
1247
|
+
moduleName: o
|
|
1248
|
+
};
|
|
1249
|
+
static sanitizeHtml = {
|
|
1250
|
+
name: "ɵɵsanitizeHtml",
|
|
1251
|
+
moduleName: o
|
|
1252
|
+
};
|
|
1253
|
+
static sanitizeStyle = {
|
|
1254
|
+
name: "ɵɵsanitizeStyle",
|
|
1255
|
+
moduleName: o
|
|
1256
|
+
};
|
|
1257
|
+
static sanitizeResourceUrl = {
|
|
1258
|
+
name: "ɵɵsanitizeResourceUrl",
|
|
1259
|
+
moduleName: o
|
|
1260
|
+
};
|
|
1261
|
+
static sanitizeScript = {
|
|
1262
|
+
name: "ɵɵsanitizeScript",
|
|
1263
|
+
moduleName: o
|
|
1264
|
+
};
|
|
1265
|
+
static sanitizeUrl = {
|
|
1266
|
+
name: "ɵɵsanitizeUrl",
|
|
1267
|
+
moduleName: o
|
|
1268
|
+
};
|
|
1269
|
+
static sanitizeUrlOrResourceUrl = {
|
|
1270
|
+
name: "ɵɵsanitizeUrlOrResourceUrl",
|
|
1271
|
+
moduleName: o
|
|
1272
|
+
};
|
|
1273
|
+
static trustConstantHtml = {
|
|
1274
|
+
name: "ɵɵtrustConstantHtml",
|
|
1275
|
+
moduleName: o
|
|
1276
|
+
};
|
|
1277
|
+
static trustConstantResourceUrl = {
|
|
1278
|
+
name: "ɵɵtrustConstantResourceUrl",
|
|
1279
|
+
moduleName: o
|
|
1280
|
+
};
|
|
1281
|
+
static validateIframeAttribute = {
|
|
1282
|
+
name: "ɵɵvalidateIframeAttribute",
|
|
1283
|
+
moduleName: o
|
|
1284
|
+
};
|
|
1285
|
+
static InputSignalBrandWriteType = {
|
|
1286
|
+
name: "ɵINPUT_SIGNAL_BRAND_WRITE_TYPE",
|
|
1287
|
+
moduleName: o
|
|
1288
|
+
};
|
|
1289
|
+
static UnwrapDirectiveSignalInputs = {
|
|
1290
|
+
name: "ɵUnwrapDirectiveSignalInputs",
|
|
1291
|
+
moduleName: o
|
|
1292
|
+
};
|
|
1293
|
+
static unwrapWritableSignal = {
|
|
1294
|
+
name: "ɵunwrapWritableSignal",
|
|
1295
|
+
moduleName: o
|
|
1296
|
+
};
|
|
1297
|
+
};
|
|
1298
|
+
var Nt = class {
|
|
1299
|
+
full;
|
|
1300
|
+
major;
|
|
1301
|
+
minor;
|
|
1302
|
+
patch;
|
|
1303
|
+
constructor(e) {
|
|
1304
|
+
this.full = e;
|
|
1305
|
+
let t = e.split(".");
|
|
1306
|
+
this.major = t[0], this.minor = t[1], this.patch = t.slice(2).join(".");
|
|
1307
|
+
}
|
|
1308
|
+
};
|
|
1309
|
+
var gn;
|
|
1310
|
+
(function(n) {
|
|
1311
|
+
n[n.Class = 0] = "Class", n[n.Function = 1] = "Function";
|
|
1312
|
+
})(gn || (gn = {}));
|
|
1313
|
+
var Pe = class {
|
|
1314
|
+
input;
|
|
1315
|
+
errLocation;
|
|
1316
|
+
ctxLocation;
|
|
1317
|
+
message;
|
|
1318
|
+
constructor(e, t, s, r) {
|
|
1319
|
+
this.input = t, this.errLocation = s, this.ctxLocation = r, this.message = `Parser Error: ${e} ${s} [${t}] in ${r}`;
|
|
1320
|
+
}
|
|
1321
|
+
}, J = class {
|
|
1322
|
+
start;
|
|
1323
|
+
end;
|
|
1324
|
+
constructor(e, t) {
|
|
1325
|
+
this.start = e, this.end = t;
|
|
1326
|
+
}
|
|
1327
|
+
toAbsolute(e) {
|
|
1328
|
+
return new O(e + this.start, e + this.end);
|
|
1329
|
+
}
|
|
1330
|
+
}, S = class {
|
|
1331
|
+
span;
|
|
1332
|
+
sourceSpan;
|
|
1333
|
+
constructor(e, t) {
|
|
1334
|
+
this.span = e, this.sourceSpan = t;
|
|
1335
|
+
}
|
|
1336
|
+
toString() {
|
|
1337
|
+
return "AST";
|
|
1338
|
+
}
|
|
1339
|
+
}, ae = class extends S {
|
|
1340
|
+
nameSpan;
|
|
1341
|
+
constructor(e, t, s) {
|
|
1342
|
+
super(e, t), this.nameSpan = s;
|
|
1343
|
+
}
|
|
1344
|
+
}, P = class extends S {
|
|
1345
|
+
visit(e, t = null) {}
|
|
1346
|
+
}, Y = class extends S {
|
|
1347
|
+
visit(e, t = null) {
|
|
1348
|
+
return e.visitImplicitReceiver(this, t);
|
|
1349
|
+
}
|
|
1350
|
+
}, At = class extends Y {
|
|
1351
|
+
visit(e, t = null) {
|
|
1352
|
+
var s;
|
|
1353
|
+
return (s = e.visitThisReceiver) == null ? void 0 : s.call(e, this, t);
|
|
1354
|
+
}
|
|
1355
|
+
}, Le = class extends S {
|
|
1356
|
+
expressions;
|
|
1357
|
+
constructor(e, t, s) {
|
|
1358
|
+
super(e, t), this.expressions = s;
|
|
1359
|
+
}
|
|
1360
|
+
visit(e, t = null) {
|
|
1361
|
+
return e.visitChain(this, t);
|
|
1362
|
+
}
|
|
1363
|
+
}, Me = class extends S {
|
|
1364
|
+
condition;
|
|
1365
|
+
trueExp;
|
|
1366
|
+
falseExp;
|
|
1367
|
+
constructor(e, t, s, r, i) {
|
|
1368
|
+
super(e, t), this.condition = s, this.trueExp = r, this.falseExp = i;
|
|
1369
|
+
}
|
|
1370
|
+
visit(e, t = null) {
|
|
1371
|
+
return e.visitConditional(this, t);
|
|
1372
|
+
}
|
|
1373
|
+
}, le = class extends ae {
|
|
1374
|
+
receiver;
|
|
1375
|
+
name;
|
|
1376
|
+
constructor(e, t, s, r, i) {
|
|
1377
|
+
super(e, t, s), this.receiver = r, this.name = i;
|
|
1378
|
+
}
|
|
1379
|
+
visit(e, t = null) {
|
|
1380
|
+
return e.visitPropertyRead(this, t);
|
|
1381
|
+
}
|
|
1382
|
+
}, $e = class extends ae {
|
|
1383
|
+
receiver;
|
|
1384
|
+
name;
|
|
1385
|
+
value;
|
|
1386
|
+
constructor(e, t, s, r, i, a) {
|
|
1387
|
+
super(e, t, s), this.receiver = r, this.name = i, this.value = a;
|
|
1388
|
+
}
|
|
1389
|
+
visit(e, t = null) {
|
|
1390
|
+
return e.visitPropertyWrite(this, t);
|
|
1391
|
+
}
|
|
1392
|
+
}, ce = class extends ae {
|
|
1393
|
+
receiver;
|
|
1394
|
+
name;
|
|
1395
|
+
constructor(e, t, s, r, i) {
|
|
1396
|
+
super(e, t, s), this.receiver = r, this.name = i;
|
|
1397
|
+
}
|
|
1398
|
+
visit(e, t = null) {
|
|
1399
|
+
return e.visitSafePropertyRead(this, t);
|
|
1400
|
+
}
|
|
1401
|
+
}, Re = class extends S {
|
|
1402
|
+
receiver;
|
|
1403
|
+
key;
|
|
1404
|
+
constructor(e, t, s, r) {
|
|
1405
|
+
super(e, t), this.receiver = s, this.key = r;
|
|
1406
|
+
}
|
|
1407
|
+
visit(e, t = null) {
|
|
1408
|
+
return e.visitKeyedRead(this, t);
|
|
1409
|
+
}
|
|
1410
|
+
}, ue = class extends S {
|
|
1411
|
+
receiver;
|
|
1412
|
+
key;
|
|
1413
|
+
constructor(e, t, s, r) {
|
|
1414
|
+
super(e, t), this.receiver = s, this.key = r;
|
|
1415
|
+
}
|
|
1416
|
+
visit(e, t = null) {
|
|
1417
|
+
return e.visitSafeKeyedRead(this, t);
|
|
1418
|
+
}
|
|
1419
|
+
}, De = class extends S {
|
|
1420
|
+
receiver;
|
|
1421
|
+
key;
|
|
1422
|
+
value;
|
|
1423
|
+
constructor(e, t, s, r, i) {
|
|
1424
|
+
super(e, t), this.receiver = s, this.key = r, this.value = i;
|
|
1425
|
+
}
|
|
1426
|
+
visit(e, t = null) {
|
|
1427
|
+
return e.visitKeyedWrite(this, t);
|
|
1428
|
+
}
|
|
1429
|
+
}, Be = class extends ae {
|
|
1430
|
+
exp;
|
|
1431
|
+
name;
|
|
1432
|
+
args;
|
|
1433
|
+
constructor(e, t, s, r, i, a) {
|
|
1434
|
+
super(e, t, a), this.exp = s, this.name = r, this.args = i;
|
|
1435
|
+
}
|
|
1436
|
+
visit(e, t = null) {
|
|
1437
|
+
return e.visitPipe(this, t);
|
|
1438
|
+
}
|
|
1439
|
+
}, I = class extends S {
|
|
1440
|
+
value;
|
|
1441
|
+
constructor(e, t, s) {
|
|
1442
|
+
super(e, t), this.value = s;
|
|
1443
|
+
}
|
|
1444
|
+
visit(e, t = null) {
|
|
1445
|
+
return e.visitLiteralPrimitive(this, t);
|
|
1446
|
+
}
|
|
1447
|
+
}, Oe = class extends S {
|
|
1448
|
+
expressions;
|
|
1449
|
+
constructor(e, t, s) {
|
|
1450
|
+
super(e, t), this.expressions = s;
|
|
1451
|
+
}
|
|
1452
|
+
visit(e, t = null) {
|
|
1453
|
+
return e.visitLiteralArray(this, t);
|
|
1454
|
+
}
|
|
1455
|
+
}, Fe = class extends S {
|
|
1456
|
+
keys;
|
|
1457
|
+
values;
|
|
1458
|
+
constructor(e, t, s, r) {
|
|
1459
|
+
super(e, t), this.keys = s, this.values = r;
|
|
1460
|
+
}
|
|
1461
|
+
visit(e, t = null) {
|
|
1462
|
+
return e.visitLiteralMap(this, t);
|
|
1463
|
+
}
|
|
1464
|
+
}, Vt = class extends S {
|
|
1465
|
+
strings;
|
|
1466
|
+
expressions;
|
|
1467
|
+
constructor(e, t, s, r) {
|
|
1468
|
+
super(e, t), this.strings = s, this.expressions = r;
|
|
1469
|
+
}
|
|
1470
|
+
visit(e, t = null) {
|
|
1471
|
+
return e.visitInterpolation(this, t);
|
|
1472
|
+
}
|
|
1473
|
+
}, A = class extends S {
|
|
1474
|
+
operation;
|
|
1475
|
+
left;
|
|
1476
|
+
right;
|
|
1477
|
+
constructor(e, t, s, r, i) {
|
|
1478
|
+
super(e, t), this.operation = s, this.left = r, this.right = i;
|
|
1479
|
+
}
|
|
1480
|
+
visit(e, t = null) {
|
|
1481
|
+
return e.visitBinary(this, t);
|
|
1482
|
+
}
|
|
1483
|
+
}, X = class n extends A {
|
|
1484
|
+
operator;
|
|
1485
|
+
expr;
|
|
1486
|
+
left = null;
|
|
1487
|
+
right = null;
|
|
1488
|
+
operation = null;
|
|
1489
|
+
static createMinus(e, t, s) {
|
|
1490
|
+
return new n(e, t, "-", s, "-", new I(e, t, 0), s);
|
|
1491
|
+
}
|
|
1492
|
+
static createPlus(e, t, s) {
|
|
1493
|
+
return new n(e, t, "+", s, "-", s, new I(e, t, 0));
|
|
1494
|
+
}
|
|
1495
|
+
constructor(e, t, s, r, i, a, l) {
|
|
1496
|
+
super(e, t, i, a, l), this.operator = s, this.expr = r;
|
|
1497
|
+
}
|
|
1498
|
+
visit(e, t = null) {
|
|
1499
|
+
return e.visitUnary !== void 0 ? e.visitUnary(this, t) : e.visitBinary(this, t);
|
|
1500
|
+
}
|
|
1501
|
+
}, Q = class extends S {
|
|
1502
|
+
expression;
|
|
1503
|
+
constructor(e, t, s) {
|
|
1504
|
+
super(e, t), this.expression = s;
|
|
1505
|
+
}
|
|
1506
|
+
visit(e, t = null) {
|
|
1507
|
+
return e.visitPrefixNot(this, t);
|
|
1508
|
+
}
|
|
1509
|
+
}, K = class extends S {
|
|
1510
|
+
expression;
|
|
1511
|
+
constructor(e, t, s) {
|
|
1512
|
+
super(e, t), this.expression = s;
|
|
1513
|
+
}
|
|
1514
|
+
visit(e, t = null) {
|
|
1515
|
+
return e.visitTypeofExpression(this, t);
|
|
1516
|
+
}
|
|
1517
|
+
}, Z = class extends S {
|
|
1518
|
+
expression;
|
|
1519
|
+
constructor(e, t, s) {
|
|
1520
|
+
super(e, t), this.expression = s;
|
|
1521
|
+
}
|
|
1522
|
+
visit(e, t = null) {
|
|
1523
|
+
return e.visitVoidExpression(this, t);
|
|
1524
|
+
}
|
|
1525
|
+
}, Ve = class extends S {
|
|
1526
|
+
expression;
|
|
1527
|
+
constructor(e, t, s) {
|
|
1528
|
+
super(e, t), this.expression = s;
|
|
1529
|
+
}
|
|
1530
|
+
visit(e, t = null) {
|
|
1531
|
+
return e.visitNonNullAssert(this, t);
|
|
1532
|
+
}
|
|
1533
|
+
}, Ue = class extends S {
|
|
1534
|
+
receiver;
|
|
1535
|
+
args;
|
|
1536
|
+
argumentSpan;
|
|
1537
|
+
constructor(e, t, s, r, i) {
|
|
1538
|
+
super(e, t), this.receiver = s, this.args = r, this.argumentSpan = i;
|
|
1539
|
+
}
|
|
1540
|
+
visit(e, t = null) {
|
|
1541
|
+
return e.visitCall(this, t);
|
|
1542
|
+
}
|
|
1543
|
+
}, pe = class extends S {
|
|
1544
|
+
receiver;
|
|
1545
|
+
args;
|
|
1546
|
+
argumentSpan;
|
|
1547
|
+
constructor(e, t, s, r, i) {
|
|
1548
|
+
super(e, t), this.receiver = s, this.args = r, this.argumentSpan = i;
|
|
1549
|
+
}
|
|
1550
|
+
visit(e, t = null) {
|
|
1551
|
+
return e.visitSafeCall(this, t);
|
|
1552
|
+
}
|
|
1553
|
+
}, he = class extends S {
|
|
1554
|
+
tag;
|
|
1555
|
+
template;
|
|
1556
|
+
constructor(e, t, s, r) {
|
|
1557
|
+
super(e, t), this.tag = s, this.template = r;
|
|
1558
|
+
}
|
|
1559
|
+
visit(e, t) {
|
|
1560
|
+
return e.visitTaggedTemplateLiteral(this, t);
|
|
1561
|
+
}
|
|
1562
|
+
}, fe = class extends S {
|
|
1563
|
+
elements;
|
|
1564
|
+
expressions;
|
|
1565
|
+
constructor(e, t, s, r) {
|
|
1566
|
+
super(e, t), this.elements = s, this.expressions = r;
|
|
1567
|
+
}
|
|
1568
|
+
visit(e, t) {
|
|
1569
|
+
return e.visitTemplateLiteral(this, t);
|
|
1570
|
+
}
|
|
1571
|
+
}, de = class extends S {
|
|
1572
|
+
text;
|
|
1573
|
+
constructor(e, t, s) {
|
|
1574
|
+
super(e, t), this.text = s;
|
|
1575
|
+
}
|
|
1576
|
+
visit(e, t) {
|
|
1577
|
+
return e.visitTemplateLiteralElement(this, t);
|
|
1578
|
+
}
|
|
1579
|
+
}, He = class extends S {
|
|
1580
|
+
expression;
|
|
1581
|
+
constructor(e, t, s) {
|
|
1582
|
+
super(e, t), this.expression = s;
|
|
1583
|
+
}
|
|
1584
|
+
visit(e, t) {
|
|
1585
|
+
return e.visitParenthesizedExpression(this, t);
|
|
1586
|
+
}
|
|
1587
|
+
}, O = class {
|
|
1588
|
+
start;
|
|
1589
|
+
end;
|
|
1590
|
+
constructor(e, t) {
|
|
1591
|
+
this.start = e, this.end = t;
|
|
1592
|
+
}
|
|
1593
|
+
}, W = class extends S {
|
|
1594
|
+
ast;
|
|
1595
|
+
source;
|
|
1596
|
+
location;
|
|
1597
|
+
errors;
|
|
1598
|
+
constructor(e, t, s, r, i) {
|
|
1599
|
+
super(new J(0, t === null ? 0 : t.length), new O(r, t === null ? r : r + t.length)), this.ast = e, this.source = t, this.location = s, this.errors = i;
|
|
1600
|
+
}
|
|
1601
|
+
visit(e, t = null) {
|
|
1602
|
+
return e.visitASTWithSource ? e.visitASTWithSource(this, t) : this.ast.visit(e, t);
|
|
1603
|
+
}
|
|
1604
|
+
toString() {
|
|
1605
|
+
return `${this.source} in ${this.location}`;
|
|
1606
|
+
}
|
|
1607
|
+
}, me = class {
|
|
1608
|
+
sourceSpan;
|
|
1609
|
+
key;
|
|
1610
|
+
value;
|
|
1611
|
+
constructor(e, t, s) {
|
|
1612
|
+
this.sourceSpan = e, this.key = t, this.value = s;
|
|
1613
|
+
}
|
|
1614
|
+
}, We = class {
|
|
1615
|
+
sourceSpan;
|
|
1616
|
+
key;
|
|
1617
|
+
value;
|
|
1618
|
+
constructor(e, t, s) {
|
|
1619
|
+
this.sourceSpan = e, this.key = t, this.value = s;
|
|
1620
|
+
}
|
|
1621
|
+
}, Pt = class {
|
|
1622
|
+
visit(e, t) {
|
|
1623
|
+
e.visit(this, t);
|
|
1624
|
+
}
|
|
1625
|
+
visitUnary(e, t) {
|
|
1626
|
+
this.visit(e.expr, t);
|
|
1627
|
+
}
|
|
1628
|
+
visitBinary(e, t) {
|
|
1629
|
+
this.visit(e.left, t), this.visit(e.right, t);
|
|
1630
|
+
}
|
|
1631
|
+
visitChain(e, t) {
|
|
1632
|
+
this.visitAll(e.expressions, t);
|
|
1633
|
+
}
|
|
1634
|
+
visitConditional(e, t) {
|
|
1635
|
+
this.visit(e.condition, t), this.visit(e.trueExp, t), this.visit(e.falseExp, t);
|
|
1636
|
+
}
|
|
1637
|
+
visitPipe(e, t) {
|
|
1638
|
+
this.visit(e.exp, t), this.visitAll(e.args, t);
|
|
1639
|
+
}
|
|
1640
|
+
visitImplicitReceiver(e, t) {}
|
|
1641
|
+
visitThisReceiver(e, t) {}
|
|
1642
|
+
visitInterpolation(e, t) {
|
|
1643
|
+
this.visitAll(e.expressions, t);
|
|
1644
|
+
}
|
|
1645
|
+
visitKeyedRead(e, t) {
|
|
1646
|
+
this.visit(e.receiver, t), this.visit(e.key, t);
|
|
1647
|
+
}
|
|
1648
|
+
visitKeyedWrite(e, t) {
|
|
1649
|
+
this.visit(e.receiver, t), this.visit(e.key, t), this.visit(e.value, t);
|
|
1650
|
+
}
|
|
1651
|
+
visitLiteralArray(e, t) {
|
|
1652
|
+
this.visitAll(e.expressions, t);
|
|
1653
|
+
}
|
|
1654
|
+
visitLiteralMap(e, t) {
|
|
1655
|
+
this.visitAll(e.values, t);
|
|
1656
|
+
}
|
|
1657
|
+
visitLiteralPrimitive(e, t) {}
|
|
1658
|
+
visitPrefixNot(e, t) {
|
|
1659
|
+
this.visit(e.expression, t);
|
|
1660
|
+
}
|
|
1661
|
+
visitTypeofExpression(e, t) {
|
|
1662
|
+
this.visit(e.expression, t);
|
|
1663
|
+
}
|
|
1664
|
+
visitVoidExpression(e, t) {
|
|
1665
|
+
this.visit(e.expression, t);
|
|
1666
|
+
}
|
|
1667
|
+
visitNonNullAssert(e, t) {
|
|
1668
|
+
this.visit(e.expression, t);
|
|
1669
|
+
}
|
|
1670
|
+
visitPropertyRead(e, t) {
|
|
1671
|
+
this.visit(e.receiver, t);
|
|
1672
|
+
}
|
|
1673
|
+
visitPropertyWrite(e, t) {
|
|
1674
|
+
this.visit(e.receiver, t), this.visit(e.value, t);
|
|
1675
|
+
}
|
|
1676
|
+
visitSafePropertyRead(e, t) {
|
|
1677
|
+
this.visit(e.receiver, t);
|
|
1678
|
+
}
|
|
1679
|
+
visitSafeKeyedRead(e, t) {
|
|
1680
|
+
this.visit(e.receiver, t), this.visit(e.key, t);
|
|
1681
|
+
}
|
|
1682
|
+
visitCall(e, t) {
|
|
1683
|
+
this.visit(e.receiver, t), this.visitAll(e.args, t);
|
|
1684
|
+
}
|
|
1685
|
+
visitSafeCall(e, t) {
|
|
1686
|
+
this.visit(e.receiver, t), this.visitAll(e.args, t);
|
|
1687
|
+
}
|
|
1688
|
+
visitTemplateLiteral(e, t) {
|
|
1689
|
+
for (let s = 0; s < e.elements.length; s++) {
|
|
1690
|
+
this.visit(e.elements[s], t);
|
|
1691
|
+
let r = s < e.expressions.length ? e.expressions[s] : null;
|
|
1692
|
+
r !== null && this.visit(r, t);
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
visitTemplateLiteralElement(e, t) {}
|
|
1696
|
+
visitTaggedTemplateLiteral(e, t) {
|
|
1697
|
+
this.visit(e.tag, t), this.visit(e.template, t);
|
|
1698
|
+
}
|
|
1699
|
+
visitParenthesizedExpression(e, t) {
|
|
1700
|
+
this.visit(e.expression, t);
|
|
1701
|
+
}
|
|
1702
|
+
visitAll(e, t) {
|
|
1703
|
+
for (let s of e) this.visit(s, t);
|
|
1704
|
+
}
|
|
1705
|
+
};
|
|
1706
|
+
var vn;
|
|
1707
|
+
(function(n) {
|
|
1708
|
+
n[n.DEFAULT = 0] = "DEFAULT", n[n.LITERAL_ATTR = 1] = "LITERAL_ATTR", n[n.ANIMATION = 2] = "ANIMATION", n[n.TWO_WAY = 3] = "TWO_WAY";
|
|
1709
|
+
})(vn || (vn = {}));
|
|
1710
|
+
var wn;
|
|
1711
|
+
(function(n) {
|
|
1712
|
+
n[n.Regular = 0] = "Regular", n[n.Animation = 1] = "Animation", n[n.TwoWay = 2] = "TwoWay";
|
|
1713
|
+
})(wn || (wn = {}));
|
|
1714
|
+
var U;
|
|
1715
|
+
(function(n) {
|
|
1716
|
+
n[n.Property = 0] = "Property", n[n.Attribute = 1] = "Attribute", n[n.Class = 2] = "Class", n[n.Style = 3] = "Style", n[n.Animation = 4] = "Animation", n[n.TwoWay = 5] = "TwoWay";
|
|
1717
|
+
})(U || (U = {}));
|
|
1718
|
+
var xn;
|
|
1719
|
+
(function(n) {
|
|
1720
|
+
n[n.RAW_TEXT = 0] = "RAW_TEXT", n[n.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", n[n.PARSABLE_DATA = 2] = "PARSABLE_DATA";
|
|
1721
|
+
})(xn || (xn = {}));
|
|
1722
|
+
var Js = [
|
|
1723
|
+
/@/,
|
|
1724
|
+
/^\s*$/,
|
|
1725
|
+
/[<>]/,
|
|
1726
|
+
/^[{}]$/,
|
|
1727
|
+
/&(#|[a-z])/i,
|
|
1728
|
+
/^\/\//
|
|
1729
|
+
];
|
|
1730
|
+
function Ys(n, e) {
|
|
1731
|
+
if (e != null && !(Array.isArray(e) && e.length == 2)) throw new Error(`Expected '${n}' to be an array, [start, end].`);
|
|
1732
|
+
if (e != null) {
|
|
1733
|
+
let t = e[0], s = e[1];
|
|
1734
|
+
Js.forEach((r) => {
|
|
1735
|
+
if (r.test(t) || r.test(s)) throw new Error(`['${t}', '${s}'] contains unusable interpolation symbol.`);
|
|
1736
|
+
});
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
var Lt = class n {
|
|
1740
|
+
start;
|
|
1741
|
+
end;
|
|
1742
|
+
static fromArray(e) {
|
|
1743
|
+
return e ? (Ys("interpolation", e), new n(e[0], e[1])) : ne;
|
|
1744
|
+
}
|
|
1745
|
+
constructor(e, t) {
|
|
1746
|
+
this.start = e, this.end = t;
|
|
1747
|
+
}
|
|
1748
|
+
}, ne = new Lt("{{", "}}");
|
|
1749
|
+
var Qe = 0;
|
|
1750
|
+
var Kn = 9, Qs = 10, Ks = 11, Zs = 12, er = 13, Zn = 32, tr = 33, es = 34, nr = 35, Ut = 36, sr = 37, Sn = 38, ts = 39, tt = 40, se = 41, En = 42, ns = 43, Ce = 44, ss = 45, re = 46, Mt = 47, ie = 58, Te = 59, rr = 60, Ke = 61, ir = 62, yn = 63, or = 48;
|
|
1751
|
+
var ar = 57, rs = 65, lr = 69;
|
|
1752
|
+
var is = 90, nt = 91, _n = 92, ke = 93, cr = 94, Ht = 95, os = 97;
|
|
1753
|
+
var ur = 101, pr = 102, hr = 110, fr = 114, dr = 116, mr = 117, gr = 118;
|
|
1754
|
+
var as = 122, ot = 123, Cn = 124, be = 125, ls = 160;
|
|
1755
|
+
var $t = 96;
|
|
1756
|
+
function vr(n) {
|
|
1757
|
+
return n >= Kn && n <= Zn || n == ls;
|
|
1758
|
+
}
|
|
1759
|
+
function z(n) {
|
|
1760
|
+
return or <= n && n <= ar;
|
|
1761
|
+
}
|
|
1762
|
+
function wr(n) {
|
|
1763
|
+
return n >= os && n <= as || n >= rs && n <= is;
|
|
1764
|
+
}
|
|
1765
|
+
function Tn(n) {
|
|
1766
|
+
return n === ts || n === es || n === $t;
|
|
1767
|
+
}
|
|
1768
|
+
var kn;
|
|
1769
|
+
(function(n) {
|
|
1770
|
+
n[n.WARNING = 0] = "WARNING", n[n.ERROR = 1] = "ERROR";
|
|
1771
|
+
})(kn || (kn = {}));
|
|
1772
|
+
var bn;
|
|
1773
|
+
(function(n) {
|
|
1774
|
+
n[n.Inline = 0] = "Inline", n[n.SideEffect = 1] = "SideEffect", n[n.Omit = 2] = "Omit";
|
|
1775
|
+
})(bn || (bn = {}));
|
|
1776
|
+
var In;
|
|
1777
|
+
(function(n) {
|
|
1778
|
+
n[n.Global = 0] = "Global", n[n.Local = 1] = "Local";
|
|
1779
|
+
})(In || (In = {}));
|
|
1780
|
+
var Nn;
|
|
1781
|
+
(function(n) {
|
|
1782
|
+
n[n.Directive = 0] = "Directive", n[n.Pipe = 1] = "Pipe", n[n.NgModule = 2] = "NgModule";
|
|
1783
|
+
})(Nn || (Nn = {}));
|
|
1784
|
+
var xr = "(:(where|is)\\()?";
|
|
1785
|
+
var cs = "-shadowcsshost", Sr = "-shadowcsscontext", us = "(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))", ri = new RegExp(cs + us + "?([^,{]*)", "gim"), ps = Sr + us + "?([^{]*)", ii = new RegExp(`${xr}(${ps})`, "gim"), oi = new RegExp(ps, "im"), Er = cs + "-no-combinator", ai = new RegExp(`${Er}(?![^(]*\\))`, "g");
|
|
1786
|
+
var hs = "%COMMENT%", li = new RegExp(hs, "g");
|
|
1787
|
+
var ci = new RegExp(`(\\s*(?:${hs}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`, "g");
|
|
1788
|
+
var yr = "%COMMA_IN_PLACEHOLDER%", _r = "%SEMI_IN_PLACEHOLDER%", Cr = "%COLON_IN_PLACEHOLDER%", ui = new RegExp(yr, "g"), pi = new RegExp(_r, "g"), hi = new RegExp(Cr, "g");
|
|
1789
|
+
var d;
|
|
1790
|
+
(function(n) {
|
|
1791
|
+
n[n.ListEnd = 0] = "ListEnd", n[n.Statement = 1] = "Statement", n[n.Variable = 2] = "Variable", n[n.ElementStart = 3] = "ElementStart", n[n.Element = 4] = "Element", n[n.Template = 5] = "Template", n[n.ElementEnd = 6] = "ElementEnd", n[n.ContainerStart = 7] = "ContainerStart", n[n.Container = 8] = "Container", n[n.ContainerEnd = 9] = "ContainerEnd", n[n.DisableBindings = 10] = "DisableBindings", n[n.ConditionalCreate = 11] = "ConditionalCreate", n[n.ConditionalBranchCreate = 12] = "ConditionalBranchCreate", n[n.Conditional = 13] = "Conditional", n[n.EnableBindings = 14] = "EnableBindings", n[n.Text = 15] = "Text", n[n.Listener = 16] = "Listener", n[n.InterpolateText = 17] = "InterpolateText", n[n.Binding = 18] = "Binding", n[n.Property = 19] = "Property", n[n.StyleProp = 20] = "StyleProp", n[n.ClassProp = 21] = "ClassProp", n[n.StyleMap = 22] = "StyleMap", n[n.ClassMap = 23] = "ClassMap", n[n.Advance = 24] = "Advance", n[n.Pipe = 25] = "Pipe", n[n.Attribute = 26] = "Attribute", n[n.ExtractedAttribute = 27] = "ExtractedAttribute", n[n.Defer = 28] = "Defer", n[n.DeferOn = 29] = "DeferOn", n[n.DeferWhen = 30] = "DeferWhen", n[n.I18nMessage = 31] = "I18nMessage", n[n.DomProperty = 32] = "DomProperty", n[n.Namespace = 33] = "Namespace", n[n.ProjectionDef = 34] = "ProjectionDef", n[n.Projection = 35] = "Projection", n[n.RepeaterCreate = 36] = "RepeaterCreate", n[n.Repeater = 37] = "Repeater", n[n.TwoWayProperty = 38] = "TwoWayProperty", n[n.TwoWayListener = 39] = "TwoWayListener", n[n.DeclareLet = 40] = "DeclareLet", n[n.StoreLet = 41] = "StoreLet", n[n.I18nStart = 42] = "I18nStart", n[n.I18n = 43] = "I18n", n[n.I18nEnd = 44] = "I18nEnd", n[n.I18nExpression = 45] = "I18nExpression", n[n.I18nApply = 46] = "I18nApply", n[n.IcuStart = 47] = "IcuStart", n[n.IcuEnd = 48] = "IcuEnd", n[n.IcuPlaceholder = 49] = "IcuPlaceholder", n[n.I18nContext = 50] = "I18nContext", n[n.I18nAttributes = 51] = "I18nAttributes", n[n.SourceLocation = 52] = "SourceLocation";
|
|
1792
|
+
})(d || (d = {}));
|
|
1793
|
+
var ge;
|
|
1794
|
+
(function(n) {
|
|
1795
|
+
n[n.LexicalRead = 0] = "LexicalRead", n[n.Context = 1] = "Context", n[n.TrackContext = 2] = "TrackContext", n[n.ReadVariable = 3] = "ReadVariable", n[n.NextContext = 4] = "NextContext", n[n.Reference = 5] = "Reference", n[n.StoreLet = 6] = "StoreLet", n[n.ContextLetReference = 7] = "ContextLetReference", n[n.GetCurrentView = 8] = "GetCurrentView", n[n.RestoreView = 9] = "RestoreView", n[n.ResetView = 10] = "ResetView", n[n.PureFunctionExpr = 11] = "PureFunctionExpr", n[n.PureFunctionParameterExpr = 12] = "PureFunctionParameterExpr", n[n.PipeBinding = 13] = "PipeBinding", n[n.PipeBindingVariadic = 14] = "PipeBindingVariadic", n[n.SafePropertyRead = 15] = "SafePropertyRead", n[n.SafeKeyedRead = 16] = "SafeKeyedRead", n[n.SafeInvokeFunction = 17] = "SafeInvokeFunction", n[n.SafeTernaryExpr = 18] = "SafeTernaryExpr", n[n.EmptyExpr = 19] = "EmptyExpr", n[n.AssignTemporaryExpr = 20] = "AssignTemporaryExpr", n[n.ReadTemporaryExpr = 21] = "ReadTemporaryExpr", n[n.SlotLiteralExpr = 22] = "SlotLiteralExpr", n[n.ConditionalCase = 23] = "ConditionalCase", n[n.ConstCollected = 24] = "ConstCollected", n[n.TwoWayBindingSet = 25] = "TwoWayBindingSet";
|
|
1796
|
+
})(ge || (ge = {}));
|
|
1797
|
+
var An;
|
|
1798
|
+
(function(n) {
|
|
1799
|
+
n[n.None = 0] = "None", n[n.AlwaysInline = 1] = "AlwaysInline";
|
|
1800
|
+
})(An || (An = {}));
|
|
1801
|
+
var Pn;
|
|
1802
|
+
(function(n) {
|
|
1803
|
+
n[n.Context = 0] = "Context", n[n.Identifier = 1] = "Identifier", n[n.SavedView = 2] = "SavedView", n[n.Alias = 3] = "Alias";
|
|
1804
|
+
})(Pn || (Pn = {}));
|
|
1805
|
+
var Ln;
|
|
1806
|
+
(function(n) {
|
|
1807
|
+
n[n.Normal = 0] = "Normal", n[n.TemplateDefinitionBuilder = 1] = "TemplateDefinitionBuilder";
|
|
1808
|
+
})(Ln || (Ln = {}));
|
|
1809
|
+
var H;
|
|
1810
|
+
(function(n) {
|
|
1811
|
+
n[n.Attribute = 0] = "Attribute", n[n.ClassName = 1] = "ClassName", n[n.StyleProperty = 2] = "StyleProperty", n[n.Property = 3] = "Property", n[n.Template = 4] = "Template", n[n.I18n = 5] = "I18n", n[n.Animation = 6] = "Animation", n[n.TwoWayProperty = 7] = "TwoWayProperty";
|
|
1812
|
+
})(H || (H = {}));
|
|
1813
|
+
var Mn;
|
|
1814
|
+
(function(n) {
|
|
1815
|
+
n[n.Creation = 0] = "Creation", n[n.Postproccessing = 1] = "Postproccessing";
|
|
1816
|
+
})(Mn || (Mn = {}));
|
|
1817
|
+
var $n;
|
|
1818
|
+
(function(n) {
|
|
1819
|
+
n[n.I18nText = 0] = "I18nText", n[n.I18nAttribute = 1] = "I18nAttribute";
|
|
1820
|
+
})($n || ($n = {}));
|
|
1821
|
+
var Rn;
|
|
1822
|
+
(function(n) {
|
|
1823
|
+
n[n.None = 0] = "None", n[n.ElementTag = 1] = "ElementTag", n[n.TemplateTag = 2] = "TemplateTag", n[n.OpenTag = 4] = "OpenTag", n[n.CloseTag = 8] = "CloseTag", n[n.ExpressionIndex = 16] = "ExpressionIndex";
|
|
1824
|
+
})(Rn || (Rn = {}));
|
|
1825
|
+
var Dn;
|
|
1826
|
+
(function(n) {
|
|
1827
|
+
n[n.HTML = 0] = "HTML", n[n.SVG = 1] = "SVG", n[n.Math = 2] = "Math";
|
|
1828
|
+
})(Dn || (Dn = {}));
|
|
1829
|
+
var Bn;
|
|
1830
|
+
(function(n) {
|
|
1831
|
+
n[n.Idle = 0] = "Idle", n[n.Immediate = 1] = "Immediate", n[n.Timer = 2] = "Timer", n[n.Hover = 3] = "Hover", n[n.Interaction = 4] = "Interaction", n[n.Viewport = 5] = "Viewport", n[n.Never = 6] = "Never";
|
|
1832
|
+
})(Bn || (Bn = {}));
|
|
1833
|
+
var On;
|
|
1834
|
+
(function(n) {
|
|
1835
|
+
n[n.RootI18n = 0] = "RootI18n", n[n.Icu = 1] = "Icu", n[n.Attr = 2] = "Attr";
|
|
1836
|
+
})(On || (On = {}));
|
|
1837
|
+
var Fn;
|
|
1838
|
+
(function(n) {
|
|
1839
|
+
n[n.NgTemplate = 0] = "NgTemplate", n[n.Structural = 1] = "Structural", n[n.Block = 2] = "Block";
|
|
1840
|
+
})(Fn || (Fn = {}));
|
|
1841
|
+
var Tr = Symbol("ConsumesSlot"), fs = Symbol("DependsOnSlotContext"), je = Symbol("ConsumesVars"), Wt = Symbol("UsesVarOffset"), fi = {
|
|
1842
|
+
[Tr]: !0,
|
|
1843
|
+
numSlotsUsed: 1
|
|
1844
|
+
}, di = { [fs]: !0 }, mi = { [je]: !0 };
|
|
1845
|
+
var at = class {
|
|
1846
|
+
strings;
|
|
1847
|
+
expressions;
|
|
1848
|
+
i18nPlaceholders;
|
|
1849
|
+
constructor(e, t, s) {
|
|
1850
|
+
if (this.strings = e, this.expressions = t, this.i18nPlaceholders = s, s.length !== 0 && s.length !== t.length) throw new Error(`Expected ${t.length} placeholders to match interpolation expression count, but got ${s.length}`);
|
|
1851
|
+
}
|
|
1852
|
+
};
|
|
1853
|
+
var ve = class extends b {
|
|
1854
|
+
constructor(e = null) {
|
|
1855
|
+
super(null, e);
|
|
1856
|
+
}
|
|
1857
|
+
};
|
|
1858
|
+
var Vn = class n extends ve {
|
|
1859
|
+
target;
|
|
1860
|
+
value;
|
|
1861
|
+
sourceSpan;
|
|
1862
|
+
kind = ge.StoreLet;
|
|
1863
|
+
[je] = !0;
|
|
1864
|
+
[fs] = !0;
|
|
1865
|
+
constructor(e, t, s) {
|
|
1866
|
+
super(), this.target = e, this.value = t, this.sourceSpan = s;
|
|
1867
|
+
}
|
|
1868
|
+
visitExpression() {}
|
|
1869
|
+
isEquivalent(e) {
|
|
1870
|
+
return e instanceof n && e.target === this.target && e.value.isEquivalent(this.value);
|
|
1871
|
+
}
|
|
1872
|
+
isConstant() {
|
|
1873
|
+
return !1;
|
|
1874
|
+
}
|
|
1875
|
+
transformInternalExpressions(e, t) {
|
|
1876
|
+
this.value = (this.value, void 0);
|
|
1877
|
+
}
|
|
1878
|
+
clone() {
|
|
1879
|
+
return new n(this.target, this.value, this.sourceSpan);
|
|
1880
|
+
}
|
|
1881
|
+
};
|
|
1882
|
+
var Un = class n extends ve {
|
|
1883
|
+
kind = ge.PureFunctionExpr;
|
|
1884
|
+
[je] = !0;
|
|
1885
|
+
[Wt] = !0;
|
|
1886
|
+
varOffset = null;
|
|
1887
|
+
body;
|
|
1888
|
+
args;
|
|
1889
|
+
fn = null;
|
|
1890
|
+
constructor(e, t) {
|
|
1891
|
+
super(), this.body = e, this.args = t;
|
|
1892
|
+
}
|
|
1893
|
+
visitExpression(e, t) {
|
|
1894
|
+
var s;
|
|
1895
|
+
(s = this.body) == null || s.visitExpression(e, t);
|
|
1896
|
+
for (let r of this.args) r.visitExpression(e, t);
|
|
1897
|
+
}
|
|
1898
|
+
isEquivalent(e) {
|
|
1899
|
+
return !(e instanceof n) || e.args.length !== this.args.length ? !1 : e.body !== null && this.body !== null && e.body.isEquivalent(this.body) && e.args.every((t, s) => t.isEquivalent(this.args[s]));
|
|
1900
|
+
}
|
|
1901
|
+
isConstant() {
|
|
1902
|
+
return !1;
|
|
1903
|
+
}
|
|
1904
|
+
transformInternalExpressions(e, t) {
|
|
1905
|
+
this.body !== null ? this.body = (this.body, t | Rt.InChildOperation, void 0) : this.fn !== null && (this.fn = (this.fn, void 0));
|
|
1906
|
+
for (let s = 0; s < this.args.length; s++) this.args[s] = (this.args[s], void 0);
|
|
1907
|
+
}
|
|
1908
|
+
clone() {
|
|
1909
|
+
var t, s;
|
|
1910
|
+
let e = new n(((t = this.body) == null ? void 0 : t.clone()) ?? null, this.args.map((r) => r.clone()));
|
|
1911
|
+
return e.fn = ((s = this.fn) == null ? void 0 : s.clone()) ?? null, e.varOffset = this.varOffset, e;
|
|
1912
|
+
}
|
|
1913
|
+
};
|
|
1914
|
+
var Hn = class n extends ve {
|
|
1915
|
+
target;
|
|
1916
|
+
targetSlot;
|
|
1917
|
+
name;
|
|
1918
|
+
args;
|
|
1919
|
+
kind = ge.PipeBinding;
|
|
1920
|
+
[je] = !0;
|
|
1921
|
+
[Wt] = !0;
|
|
1922
|
+
varOffset = null;
|
|
1923
|
+
constructor(e, t, s, r) {
|
|
1924
|
+
super(), this.target = e, this.targetSlot = t, this.name = s, this.args = r;
|
|
1925
|
+
}
|
|
1926
|
+
visitExpression(e, t) {
|
|
1927
|
+
for (let s of this.args) s.visitExpression(e, t);
|
|
1928
|
+
}
|
|
1929
|
+
isEquivalent() {
|
|
1930
|
+
return !1;
|
|
1931
|
+
}
|
|
1932
|
+
isConstant() {
|
|
1933
|
+
return !1;
|
|
1934
|
+
}
|
|
1935
|
+
transformInternalExpressions(e, t) {
|
|
1936
|
+
for (let s = 0; s < this.args.length; s++) this.args[s] = (this.args[s], void 0);
|
|
1937
|
+
}
|
|
1938
|
+
clone() {
|
|
1939
|
+
let e = new n(this.target, this.targetSlot, this.name, this.args.map((t) => t.clone()));
|
|
1940
|
+
return e.varOffset = this.varOffset, e;
|
|
1941
|
+
}
|
|
1942
|
+
}, Wn = class n extends ve {
|
|
1943
|
+
target;
|
|
1944
|
+
targetSlot;
|
|
1945
|
+
name;
|
|
1946
|
+
args;
|
|
1947
|
+
numArgs;
|
|
1948
|
+
kind = ge.PipeBindingVariadic;
|
|
1949
|
+
[je] = !0;
|
|
1950
|
+
[Wt] = !0;
|
|
1951
|
+
varOffset = null;
|
|
1952
|
+
constructor(e, t, s, r, i) {
|
|
1953
|
+
super(), this.target = e, this.targetSlot = t, this.name = s, this.args = r, this.numArgs = i;
|
|
1954
|
+
}
|
|
1955
|
+
visitExpression(e, t) {
|
|
1956
|
+
this.args.visitExpression(e, t);
|
|
1957
|
+
}
|
|
1958
|
+
isEquivalent() {
|
|
1959
|
+
return !1;
|
|
1960
|
+
}
|
|
1961
|
+
isConstant() {
|
|
1962
|
+
return !1;
|
|
1963
|
+
}
|
|
1964
|
+
transformInternalExpressions(e, t) {
|
|
1965
|
+
this.args = (this.args, void 0);
|
|
1966
|
+
}
|
|
1967
|
+
clone() {
|
|
1968
|
+
let e = new n(this.target, this.targetSlot, this.name, this.args.clone(), this.numArgs);
|
|
1969
|
+
return e.varOffset = this.varOffset, e;
|
|
1970
|
+
}
|
|
1971
|
+
};
|
|
1972
|
+
var Rt;
|
|
1973
|
+
(function(n) {
|
|
1974
|
+
n[n.None = 0] = "None", n[n.InChildOperation = 1] = "InChildOperation";
|
|
1975
|
+
})(Rt || (Rt = {}));
|
|
1976
|
+
var gi = new Set([
|
|
1977
|
+
d.Element,
|
|
1978
|
+
d.ElementStart,
|
|
1979
|
+
d.Container,
|
|
1980
|
+
d.ContainerStart,
|
|
1981
|
+
d.Template,
|
|
1982
|
+
d.RepeaterCreate,
|
|
1983
|
+
d.ConditionalCreate,
|
|
1984
|
+
d.ConditionalBranchCreate
|
|
1985
|
+
]);
|
|
1986
|
+
var qn;
|
|
1987
|
+
(function(n) {
|
|
1988
|
+
n[n.Tmpl = 0] = "Tmpl", n[n.Host = 1] = "Host", n[n.Both = 2] = "Both";
|
|
1989
|
+
})(qn || (qn = {}));
|
|
1990
|
+
var vi = new Map([
|
|
1991
|
+
[p.attribute, p.attribute],
|
|
1992
|
+
[p.classProp, p.classProp],
|
|
1993
|
+
[p.element, p.element],
|
|
1994
|
+
[p.elementContainer, p.elementContainer],
|
|
1995
|
+
[p.elementContainerEnd, p.elementContainerEnd],
|
|
1996
|
+
[p.elementContainerStart, p.elementContainerStart],
|
|
1997
|
+
[p.elementEnd, p.elementEnd],
|
|
1998
|
+
[p.elementStart, p.elementStart],
|
|
1999
|
+
[p.domProperty, p.domProperty],
|
|
2000
|
+
[p.i18nExp, p.i18nExp],
|
|
2001
|
+
[p.listener, p.listener],
|
|
2002
|
+
[p.listener, p.listener],
|
|
2003
|
+
[p.property, p.property],
|
|
2004
|
+
[p.styleProp, p.styleProp],
|
|
2005
|
+
[p.syntheticHostListener, p.syntheticHostListener],
|
|
2006
|
+
[p.syntheticHostProperty, p.syntheticHostProperty],
|
|
2007
|
+
[p.templateCreate, p.templateCreate],
|
|
2008
|
+
[p.twoWayProperty, p.twoWayProperty],
|
|
2009
|
+
[p.twoWayListener, p.twoWayListener],
|
|
2010
|
+
[p.declareLet, p.declareLet],
|
|
2011
|
+
[p.conditionalCreate, p.conditionalBranchCreate],
|
|
2012
|
+
[p.conditionalBranchCreate, p.conditionalBranchCreate]
|
|
2013
|
+
]);
|
|
2014
|
+
var wi = Object.freeze([]);
|
|
2015
|
+
var xi = new Map([
|
|
2016
|
+
[d.ElementEnd, [d.ElementStart, d.Element]],
|
|
2017
|
+
[d.ContainerEnd, [d.ContainerStart, d.Container]],
|
|
2018
|
+
[d.I18nEnd, [d.I18nStart, d.I18n]]
|
|
2019
|
+
]), Si = new Set([d.Pipe]);
|
|
2020
|
+
var kr = {}, br = "";
|
|
2021
|
+
kr.ngsp = br;
|
|
2022
|
+
var jn;
|
|
2023
|
+
(function(n) {
|
|
2024
|
+
n.HEX = "hexadecimal", n.DEC = "decimal";
|
|
2025
|
+
})(jn || (jn = {}));
|
|
2026
|
+
var ds = ` \f
|
|
2027
|
+
\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`, Ei = /* @__PURE__ */ new RegExp(`[^${ds}]`), yi = new RegExp(`[${ds}]{2,}`, "g");
|
|
2028
|
+
var m;
|
|
2029
|
+
(function(n) {
|
|
2030
|
+
n[n.Character = 0] = "Character", n[n.Identifier = 1] = "Identifier", n[n.PrivateIdentifier = 2] = "PrivateIdentifier", n[n.Keyword = 3] = "Keyword", n[n.String = 4] = "String", n[n.Operator = 5] = "Operator", n[n.Number = 6] = "Number", n[n.Error = 7] = "Error";
|
|
2031
|
+
})(m || (m = {}));
|
|
2032
|
+
var q;
|
|
2033
|
+
(function(n) {
|
|
2034
|
+
n[n.Plain = 0] = "Plain", n[n.TemplateLiteralPart = 1] = "TemplateLiteralPart", n[n.TemplateLiteralEnd = 2] = "TemplateLiteralEnd";
|
|
2035
|
+
})(q || (q = {}));
|
|
2036
|
+
var Ir = [
|
|
2037
|
+
"var",
|
|
2038
|
+
"let",
|
|
2039
|
+
"as",
|
|
2040
|
+
"null",
|
|
2041
|
+
"undefined",
|
|
2042
|
+
"true",
|
|
2043
|
+
"false",
|
|
2044
|
+
"if",
|
|
2045
|
+
"else",
|
|
2046
|
+
"this",
|
|
2047
|
+
"typeof",
|
|
2048
|
+
"void",
|
|
2049
|
+
"in"
|
|
2050
|
+
], qe = class {
|
|
2051
|
+
tokenize(e) {
|
|
2052
|
+
return new Dt(e).scan();
|
|
2053
|
+
}
|
|
2054
|
+
}, M = class {
|
|
2055
|
+
index;
|
|
2056
|
+
end;
|
|
2057
|
+
type;
|
|
2058
|
+
numValue;
|
|
2059
|
+
strValue;
|
|
2060
|
+
constructor(e, t, s, r, i) {
|
|
2061
|
+
this.index = e, this.end = t, this.type = s, this.numValue = r, this.strValue = i;
|
|
2062
|
+
}
|
|
2063
|
+
isCharacter(e) {
|
|
2064
|
+
return this.type === m.Character && this.numValue === e;
|
|
2065
|
+
}
|
|
2066
|
+
isNumber() {
|
|
2067
|
+
return this.type === m.Number;
|
|
2068
|
+
}
|
|
2069
|
+
isString() {
|
|
2070
|
+
return this.type === m.String;
|
|
2071
|
+
}
|
|
2072
|
+
isOperator(e) {
|
|
2073
|
+
return this.type === m.Operator && this.strValue === e;
|
|
2074
|
+
}
|
|
2075
|
+
isIdentifier() {
|
|
2076
|
+
return this.type === m.Identifier;
|
|
2077
|
+
}
|
|
2078
|
+
isPrivateIdentifier() {
|
|
2079
|
+
return this.type === m.PrivateIdentifier;
|
|
2080
|
+
}
|
|
2081
|
+
isKeyword() {
|
|
2082
|
+
return this.type === m.Keyword;
|
|
2083
|
+
}
|
|
2084
|
+
isKeywordLet() {
|
|
2085
|
+
return this.type === m.Keyword && this.strValue === "let";
|
|
2086
|
+
}
|
|
2087
|
+
isKeywordAs() {
|
|
2088
|
+
return this.type === m.Keyword && this.strValue === "as";
|
|
2089
|
+
}
|
|
2090
|
+
isKeywordNull() {
|
|
2091
|
+
return this.type === m.Keyword && this.strValue === "null";
|
|
2092
|
+
}
|
|
2093
|
+
isKeywordUndefined() {
|
|
2094
|
+
return this.type === m.Keyword && this.strValue === "undefined";
|
|
2095
|
+
}
|
|
2096
|
+
isKeywordTrue() {
|
|
2097
|
+
return this.type === m.Keyword && this.strValue === "true";
|
|
2098
|
+
}
|
|
2099
|
+
isKeywordFalse() {
|
|
2100
|
+
return this.type === m.Keyword && this.strValue === "false";
|
|
2101
|
+
}
|
|
2102
|
+
isKeywordThis() {
|
|
2103
|
+
return this.type === m.Keyword && this.strValue === "this";
|
|
2104
|
+
}
|
|
2105
|
+
isKeywordTypeof() {
|
|
2106
|
+
return this.type === m.Keyword && this.strValue === "typeof";
|
|
2107
|
+
}
|
|
2108
|
+
isKeywordVoid() {
|
|
2109
|
+
return this.type === m.Keyword && this.strValue === "void";
|
|
2110
|
+
}
|
|
2111
|
+
isKeywordIn() {
|
|
2112
|
+
return this.type === m.Keyword && this.strValue === "in";
|
|
2113
|
+
}
|
|
2114
|
+
isError() {
|
|
2115
|
+
return this.type === m.Error;
|
|
2116
|
+
}
|
|
2117
|
+
toNumber() {
|
|
2118
|
+
return this.type === m.Number ? this.numValue : -1;
|
|
2119
|
+
}
|
|
2120
|
+
isTemplateLiteralPart() {
|
|
2121
|
+
return this.isString() && this.kind === q.TemplateLiteralPart;
|
|
2122
|
+
}
|
|
2123
|
+
isTemplateLiteralEnd() {
|
|
2124
|
+
return this.isString() && this.kind === q.TemplateLiteralEnd;
|
|
2125
|
+
}
|
|
2126
|
+
isTemplateLiteralInterpolationStart() {
|
|
2127
|
+
return this.isOperator("${");
|
|
2128
|
+
}
|
|
2129
|
+
isTemplateLiteralInterpolationEnd() {
|
|
2130
|
+
return this.isOperator("}");
|
|
2131
|
+
}
|
|
2132
|
+
toString() {
|
|
2133
|
+
switch (this.type) {
|
|
2134
|
+
case m.Character:
|
|
2135
|
+
case m.Identifier:
|
|
2136
|
+
case m.Keyword:
|
|
2137
|
+
case m.Operator:
|
|
2138
|
+
case m.PrivateIdentifier:
|
|
2139
|
+
case m.String:
|
|
2140
|
+
case m.Error: return this.strValue;
|
|
2141
|
+
case m.Number: return this.numValue.toString();
|
|
2142
|
+
default: return null;
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
}, Ie = class extends M {
|
|
2146
|
+
kind;
|
|
2147
|
+
constructor(e, t, s, r) {
|
|
2148
|
+
super(e, t, m.String, 0, s), this.kind = r;
|
|
2149
|
+
}
|
|
2150
|
+
};
|
|
2151
|
+
function Ze(n, e, t) {
|
|
2152
|
+
return new M(n, e, m.Character, t, String.fromCharCode(t));
|
|
2153
|
+
}
|
|
2154
|
+
function Nr(n, e, t) {
|
|
2155
|
+
return new M(n, e, m.Identifier, 0, t);
|
|
2156
|
+
}
|
|
2157
|
+
function Ar(n, e, t) {
|
|
2158
|
+
return new M(n, e, m.PrivateIdentifier, 0, t);
|
|
2159
|
+
}
|
|
2160
|
+
function Pr(n, e, t) {
|
|
2161
|
+
return new M(n, e, m.Keyword, 0, t);
|
|
2162
|
+
}
|
|
2163
|
+
function _e(n, e, t) {
|
|
2164
|
+
return new M(n, e, m.Operator, 0, t);
|
|
2165
|
+
}
|
|
2166
|
+
function Lr(n, e, t) {
|
|
2167
|
+
return new M(n, e, m.Number, t, "");
|
|
2168
|
+
}
|
|
2169
|
+
function Mr(n, e, t) {
|
|
2170
|
+
return new M(n, e, m.Error, 0, t);
|
|
2171
|
+
}
|
|
2172
|
+
var et = new M(-1, -1, m.Character, 0, ""), Dt = class {
|
|
2173
|
+
input;
|
|
2174
|
+
tokens = [];
|
|
2175
|
+
length;
|
|
2176
|
+
peek = 0;
|
|
2177
|
+
index = -1;
|
|
2178
|
+
braceStack = [];
|
|
2179
|
+
constructor(e) {
|
|
2180
|
+
this.input = e, this.length = e.length, this.advance();
|
|
2181
|
+
}
|
|
2182
|
+
scan() {
|
|
2183
|
+
let e = this.scanToken();
|
|
2184
|
+
for (; e !== null;) this.tokens.push(e), e = this.scanToken();
|
|
2185
|
+
return this.tokens;
|
|
2186
|
+
}
|
|
2187
|
+
advance() {
|
|
2188
|
+
this.peek = ++this.index >= this.length ? Qe : this.input.charCodeAt(this.index);
|
|
2189
|
+
}
|
|
2190
|
+
scanToken() {
|
|
2191
|
+
let e = this.input, t = this.length, s = this.peek, r = this.index;
|
|
2192
|
+
for (; s <= Zn;) if (++r >= t) {
|
|
2193
|
+
s = Qe;
|
|
2194
|
+
break;
|
|
2195
|
+
} else s = e.charCodeAt(r);
|
|
2196
|
+
if (this.peek = s, this.index = r, r >= t) return null;
|
|
2197
|
+
if (zn(s)) return this.scanIdentifier();
|
|
2198
|
+
if (z(s)) return this.scanNumber(r);
|
|
2199
|
+
let i = r;
|
|
2200
|
+
switch (s) {
|
|
2201
|
+
case re: return this.advance(), z(this.peek) ? this.scanNumber(i) : Ze(i, this.index, re);
|
|
2202
|
+
case tt:
|
|
2203
|
+
case se:
|
|
2204
|
+
case nt:
|
|
2205
|
+
case ke:
|
|
2206
|
+
case Ce:
|
|
2207
|
+
case ie:
|
|
2208
|
+
case Te: return this.scanCharacter(i, s);
|
|
2209
|
+
case ot: return this.scanOpenBrace(i, s);
|
|
2210
|
+
case be: return this.scanCloseBrace(i, s);
|
|
2211
|
+
case ts:
|
|
2212
|
+
case es: return this.scanString();
|
|
2213
|
+
case $t: return this.advance(), this.scanTemplateLiteralPart(i);
|
|
2214
|
+
case nr: return this.scanPrivateIdentifier();
|
|
2215
|
+
case ns:
|
|
2216
|
+
case ss:
|
|
2217
|
+
case Mt:
|
|
2218
|
+
case sr:
|
|
2219
|
+
case cr: return this.scanOperator(i, String.fromCharCode(s));
|
|
2220
|
+
case En: return this.scanComplexOperator(i, "*", En, "*");
|
|
2221
|
+
case yn: return this.scanQuestion(i);
|
|
2222
|
+
case rr:
|
|
2223
|
+
case ir: return this.scanComplexOperator(i, String.fromCharCode(s), Ke, "=");
|
|
2224
|
+
case tr:
|
|
2225
|
+
case Ke: return this.scanComplexOperator(i, String.fromCharCode(s), Ke, "=", Ke, "=");
|
|
2226
|
+
case Sn: return this.scanComplexOperator(i, "&", Sn, "&");
|
|
2227
|
+
case Cn: return this.scanComplexOperator(i, "|", Cn, "|");
|
|
2228
|
+
case ls:
|
|
2229
|
+
for (; vr(this.peek);) this.advance();
|
|
2230
|
+
return this.scanToken();
|
|
2231
|
+
}
|
|
2232
|
+
return this.advance(), this.error(`Unexpected character [${String.fromCharCode(s)}]`, 0);
|
|
2233
|
+
}
|
|
2234
|
+
scanCharacter(e, t) {
|
|
2235
|
+
return this.advance(), Ze(e, this.index, t);
|
|
2236
|
+
}
|
|
2237
|
+
scanOperator(e, t) {
|
|
2238
|
+
return this.advance(), _e(e, this.index, t);
|
|
2239
|
+
}
|
|
2240
|
+
scanOpenBrace(e, t) {
|
|
2241
|
+
return this.braceStack.push("expression"), this.advance(), Ze(e, this.index, t);
|
|
2242
|
+
}
|
|
2243
|
+
scanCloseBrace(e, t) {
|
|
2244
|
+
return this.advance(), this.braceStack.pop() === "interpolation" ? (this.tokens.push(_e(e, this.index, "}")), this.scanTemplateLiteralPart(this.index)) : Ze(e, this.index, t);
|
|
2245
|
+
}
|
|
2246
|
+
scanComplexOperator(e, t, s, r, i, a) {
|
|
2247
|
+
this.advance();
|
|
2248
|
+
let l = t;
|
|
2249
|
+
return this.peek == s && (this.advance(), l += r), i != null && this.peek == i && (this.advance(), l += a), _e(e, this.index, l);
|
|
2250
|
+
}
|
|
2251
|
+
scanIdentifier() {
|
|
2252
|
+
let e = this.index;
|
|
2253
|
+
for (this.advance(); Gn(this.peek);) this.advance();
|
|
2254
|
+
let t = this.input.substring(e, this.index);
|
|
2255
|
+
return Ir.indexOf(t) > -1 ? Pr(e, this.index, t) : Nr(e, this.index, t);
|
|
2256
|
+
}
|
|
2257
|
+
scanPrivateIdentifier() {
|
|
2258
|
+
let e = this.index;
|
|
2259
|
+
if (this.advance(), !zn(this.peek)) return this.error("Invalid character [#]", -1);
|
|
2260
|
+
for (; Gn(this.peek);) this.advance();
|
|
2261
|
+
let t = this.input.substring(e, this.index);
|
|
2262
|
+
return Ar(e, this.index, t);
|
|
2263
|
+
}
|
|
2264
|
+
scanNumber(e) {
|
|
2265
|
+
let t = this.index === e, s = !1;
|
|
2266
|
+
for (this.advance();;) {
|
|
2267
|
+
if (!z(this.peek)) if (this.peek === Ht) {
|
|
2268
|
+
if (!z(this.input.charCodeAt(this.index - 1)) || !z(this.input.charCodeAt(this.index + 1))) return this.error("Invalid numeric separator", 0);
|
|
2269
|
+
s = !0;
|
|
2270
|
+
} else if (this.peek === re) t = !1;
|
|
2271
|
+
else if ($r(this.peek)) {
|
|
2272
|
+
if (this.advance(), Rr(this.peek) && this.advance(), !z(this.peek)) return this.error("Invalid exponent", -1);
|
|
2273
|
+
t = !1;
|
|
2274
|
+
} else break;
|
|
2275
|
+
this.advance();
|
|
2276
|
+
}
|
|
2277
|
+
let r = this.input.substring(e, this.index);
|
|
2278
|
+
s && (r = r.replace(/_/g, ""));
|
|
2279
|
+
let i = t ? Br(r) : parseFloat(r);
|
|
2280
|
+
return Lr(e, this.index, i);
|
|
2281
|
+
}
|
|
2282
|
+
scanString() {
|
|
2283
|
+
let e = this.index, t = this.peek;
|
|
2284
|
+
this.advance();
|
|
2285
|
+
let s = "", r = this.index, i = this.input;
|
|
2286
|
+
for (; this.peek != t;) if (this.peek == _n) {
|
|
2287
|
+
let l = this.scanStringBackslash(s, r);
|
|
2288
|
+
if (typeof l != "string") return l;
|
|
2289
|
+
s = l, r = this.index;
|
|
2290
|
+
} else {
|
|
2291
|
+
if (this.peek == Qe) return this.error("Unterminated quote", 0);
|
|
2292
|
+
this.advance();
|
|
2293
|
+
}
|
|
2294
|
+
let a = i.substring(r, this.index);
|
|
2295
|
+
return this.advance(), new Ie(e, this.index, s + a, q.Plain);
|
|
2296
|
+
}
|
|
2297
|
+
scanQuestion(e) {
|
|
2298
|
+
this.advance();
|
|
2299
|
+
let t = "?";
|
|
2300
|
+
return (this.peek === yn || this.peek === re) && (t += this.peek === re ? "." : "?", this.advance()), _e(e, this.index, t);
|
|
2301
|
+
}
|
|
2302
|
+
scanTemplateLiteralPart(e) {
|
|
2303
|
+
let t = "", s = this.index;
|
|
2304
|
+
for (; this.peek !== $t;) if (this.peek === _n) {
|
|
2305
|
+
let i = this.scanStringBackslash(t, s);
|
|
2306
|
+
if (typeof i != "string") return i;
|
|
2307
|
+
t = i, s = this.index;
|
|
2308
|
+
} else if (this.peek === Ut) {
|
|
2309
|
+
let i = this.index;
|
|
2310
|
+
if (this.advance(), this.peek === ot) return this.braceStack.push("interpolation"), this.tokens.push(new Ie(e, i, t + this.input.substring(s, i), q.TemplateLiteralPart)), this.advance(), _e(i, this.index, this.input.substring(i, this.index));
|
|
2311
|
+
} else {
|
|
2312
|
+
if (this.peek === Qe) return this.error("Unterminated template literal", 0);
|
|
2313
|
+
this.advance();
|
|
2314
|
+
}
|
|
2315
|
+
let r = this.input.substring(s, this.index);
|
|
2316
|
+
return this.advance(), new Ie(e, this.index, t + r, q.TemplateLiteralEnd);
|
|
2317
|
+
}
|
|
2318
|
+
error(e, t) {
|
|
2319
|
+
let s = this.index + t;
|
|
2320
|
+
return Mr(s, this.index, `Lexer Error: ${e} at column ${s} in expression [${this.input}]`);
|
|
2321
|
+
}
|
|
2322
|
+
scanStringBackslash(e, t) {
|
|
2323
|
+
e += this.input.substring(t, this.index);
|
|
2324
|
+
let s;
|
|
2325
|
+
if (this.advance(), this.peek === mr) {
|
|
2326
|
+
let r = this.input.substring(this.index + 1, this.index + 5);
|
|
2327
|
+
if (/^[0-9a-f]+$/i.test(r)) s = parseInt(r, 16);
|
|
2328
|
+
else return this.error(`Invalid unicode escape [\\u${r}]`, 0);
|
|
2329
|
+
for (let i = 0; i < 5; i++) this.advance();
|
|
2330
|
+
} else s = Dr(this.peek), this.advance();
|
|
2331
|
+
return e += String.fromCharCode(s), e;
|
|
2332
|
+
}
|
|
2333
|
+
};
|
|
2334
|
+
function zn(n) {
|
|
2335
|
+
return os <= n && n <= as || rs <= n && n <= is || n == Ht || n == Ut;
|
|
2336
|
+
}
|
|
2337
|
+
function Gn(n) {
|
|
2338
|
+
return wr(n) || z(n) || n == Ht || n == Ut;
|
|
2339
|
+
}
|
|
2340
|
+
function $r(n) {
|
|
2341
|
+
return n == ur || n == lr;
|
|
2342
|
+
}
|
|
2343
|
+
function Rr(n) {
|
|
2344
|
+
return n == ss || n == ns;
|
|
2345
|
+
}
|
|
2346
|
+
function Dr(n) {
|
|
2347
|
+
switch (n) {
|
|
2348
|
+
case hr: return Qs;
|
|
2349
|
+
case pr: return Zs;
|
|
2350
|
+
case fr: return er;
|
|
2351
|
+
case dr: return Kn;
|
|
2352
|
+
case gr: return Ks;
|
|
2353
|
+
default: return n;
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
function Br(n) {
|
|
2357
|
+
let e = parseInt(n);
|
|
2358
|
+
if (isNaN(e)) throw new Error("Invalid integer literal when parsing " + n);
|
|
2359
|
+
return e;
|
|
2360
|
+
}
|
|
2361
|
+
var Bt = class {
|
|
2362
|
+
strings;
|
|
2363
|
+
expressions;
|
|
2364
|
+
offsets;
|
|
2365
|
+
constructor(e, t, s) {
|
|
2366
|
+
this.strings = e, this.expressions = t, this.offsets = s;
|
|
2367
|
+
}
|
|
2368
|
+
}, Ot = class {
|
|
2369
|
+
templateBindings;
|
|
2370
|
+
warnings;
|
|
2371
|
+
errors;
|
|
2372
|
+
constructor(e, t, s) {
|
|
2373
|
+
this.templateBindings = e, this.warnings = t, this.errors = s;
|
|
2374
|
+
}
|
|
2375
|
+
}, we = class {
|
|
2376
|
+
_lexer;
|
|
2377
|
+
errors = [];
|
|
2378
|
+
constructor(e) {
|
|
2379
|
+
this._lexer = e;
|
|
2380
|
+
}
|
|
2381
|
+
parseAction(e, t, s, r = ne) {
|
|
2382
|
+
this._checkNoInterpolation(e, t, r);
|
|
2383
|
+
let i = this._stripComments(e), a = this._lexer.tokenize(i), l = new G(e, t, s, a, 1, this.errors, 0).parseChain();
|
|
2384
|
+
return new W(l, e, t, s, this.errors);
|
|
2385
|
+
}
|
|
2386
|
+
parseBinding(e, t, s, r = ne) {
|
|
2387
|
+
let i = this._parseBindingAst(e, t, s, r);
|
|
2388
|
+
return new W(i, e, t, s, this.errors);
|
|
2389
|
+
}
|
|
2390
|
+
checkSimpleExpression(e) {
|
|
2391
|
+
let t = new Ft();
|
|
2392
|
+
return e.visit(t), t.errors;
|
|
2393
|
+
}
|
|
2394
|
+
parseSimpleBinding(e, t, s, r = ne) {
|
|
2395
|
+
let i = this._parseBindingAst(e, t, s, r), a = this.checkSimpleExpression(i);
|
|
2396
|
+
return a.length > 0 && this._reportError(`Host binding expression cannot contain ${a.join(" ")}`, e, t), new W(i, e, t, s, this.errors);
|
|
2397
|
+
}
|
|
2398
|
+
_reportError(e, t, s, r) {
|
|
2399
|
+
this.errors.push(new Pe(e, t, s, r));
|
|
2400
|
+
}
|
|
2401
|
+
_parseBindingAst(e, t, s, r) {
|
|
2402
|
+
this._checkNoInterpolation(e, t, r);
|
|
2403
|
+
let i = this._stripComments(e), a = this._lexer.tokenize(i);
|
|
2404
|
+
return new G(e, t, s, a, 0, this.errors, 0).parseChain();
|
|
2405
|
+
}
|
|
2406
|
+
parseTemplateBindings(e, t, s, r, i) {
|
|
2407
|
+
let a = this._lexer.tokenize(t);
|
|
2408
|
+
return new G(t, s, i, a, 0, this.errors, 0).parseTemplateBindings({
|
|
2409
|
+
source: e,
|
|
2410
|
+
span: new O(r, r + e.length)
|
|
2411
|
+
});
|
|
2412
|
+
}
|
|
2413
|
+
parseInterpolation(e, t, s, r, i = ne) {
|
|
2414
|
+
let { strings: a, expressions: l, offsets: h } = this.splitInterpolation(e, t, r, i);
|
|
2415
|
+
if (l.length === 0) return null;
|
|
2416
|
+
let f = [];
|
|
2417
|
+
for (let v = 0; v < l.length; ++v) {
|
|
2418
|
+
let E = l[v].text, y = this._stripComments(E), T = this._lexer.tokenize(y), k = new G(e, t, s, T, 0, this.errors, h[v]).parseChain();
|
|
2419
|
+
f.push(k);
|
|
2420
|
+
}
|
|
2421
|
+
return this.createInterpolationAst(a.map((v) => v.text), f, e, t, s);
|
|
2422
|
+
}
|
|
2423
|
+
parseInterpolationExpression(e, t, s) {
|
|
2424
|
+
let r = this._stripComments(e), i = this._lexer.tokenize(r), a = new G(e, t, s, i, 0, this.errors, 0).parseChain(), l = ["", ""];
|
|
2425
|
+
return this.createInterpolationAst(l, [a], e, t, s);
|
|
2426
|
+
}
|
|
2427
|
+
createInterpolationAst(e, t, s, r, i) {
|
|
2428
|
+
let a = new J(0, s.length), l = new Vt(a, a.toAbsolute(i), e, t);
|
|
2429
|
+
return new W(l, s, r, i, this.errors);
|
|
2430
|
+
}
|
|
2431
|
+
splitInterpolation(e, t, s, r = ne) {
|
|
2432
|
+
let i = [], a = [], l = [], h = s ? Or(s) : null, f = 0, v = !1, E = !1, { start: y, end: T } = r;
|
|
2433
|
+
for (; f < e.length;) if (v) {
|
|
2434
|
+
let k = f, F = k + y.length, Ee = this._getInterpolationEndIndex(e, T, F);
|
|
2435
|
+
if (Ee === -1) {
|
|
2436
|
+
v = !1, E = !0;
|
|
2437
|
+
break;
|
|
2438
|
+
}
|
|
2439
|
+
let ye = Ee + T.length, j = e.substring(F, Ee);
|
|
2440
|
+
j.trim().length === 0 && this._reportError("Blank expressions are not allowed in interpolated strings", e, `at column ${f} in`, t), a.push({
|
|
2441
|
+
text: j,
|
|
2442
|
+
start: k,
|
|
2443
|
+
end: ye
|
|
2444
|
+
});
|
|
2445
|
+
let Ws = ((h == null ? void 0 : h.get(k)) ?? k) + y.length;
|
|
2446
|
+
l.push(Ws), f = ye, v = !1;
|
|
2447
|
+
} else {
|
|
2448
|
+
let k = f;
|
|
2449
|
+
f = e.indexOf(y, f), f === -1 && (f = e.length);
|
|
2450
|
+
let F = e.substring(k, f);
|
|
2451
|
+
i.push({
|
|
2452
|
+
text: F,
|
|
2453
|
+
start: k,
|
|
2454
|
+
end: f
|
|
2455
|
+
}), v = !0;
|
|
2456
|
+
}
|
|
2457
|
+
if (!v) if (E) {
|
|
2458
|
+
let k = i[i.length - 1];
|
|
2459
|
+
k.text += e.substring(f), k.end = e.length;
|
|
2460
|
+
} else i.push({
|
|
2461
|
+
text: e.substring(f),
|
|
2462
|
+
start: f,
|
|
2463
|
+
end: e.length
|
|
2464
|
+
});
|
|
2465
|
+
return new Bt(i, a, l);
|
|
2466
|
+
}
|
|
2467
|
+
wrapLiteralPrimitive(e, t, s) {
|
|
2468
|
+
let r = new J(0, e == null ? 0 : e.length);
|
|
2469
|
+
return new W(new I(r, r.toAbsolute(s), e), e, t, s, this.errors);
|
|
2470
|
+
}
|
|
2471
|
+
_stripComments(e) {
|
|
2472
|
+
let t = this._commentStart(e);
|
|
2473
|
+
return t != null ? e.substring(0, t) : e;
|
|
2474
|
+
}
|
|
2475
|
+
_commentStart(e) {
|
|
2476
|
+
let t = null;
|
|
2477
|
+
for (let s = 0; s < e.length - 1; s++) {
|
|
2478
|
+
let r = e.charCodeAt(s), i = e.charCodeAt(s + 1);
|
|
2479
|
+
if (r === Mt && i == Mt && t == null) return s;
|
|
2480
|
+
t === r ? t = null : t == null && Tn(r) && (t = r);
|
|
2481
|
+
}
|
|
2482
|
+
return null;
|
|
2483
|
+
}
|
|
2484
|
+
_checkNoInterpolation(e, t, { start: s, end: r }) {
|
|
2485
|
+
let i = -1, a = -1;
|
|
2486
|
+
for (let l of this._forEachUnquotedChar(e, 0)) if (i === -1) e.startsWith(s) && (i = l);
|
|
2487
|
+
else if (a = this._getInterpolationEndIndex(e, r, l), a > -1) break;
|
|
2488
|
+
i > -1 && a > -1 && this._reportError(`Got interpolation (${s}${r}) where expression was expected`, e, `at column ${i} in`, t);
|
|
2489
|
+
}
|
|
2490
|
+
_getInterpolationEndIndex(e, t, s) {
|
|
2491
|
+
for (let r of this._forEachUnquotedChar(e, s)) {
|
|
2492
|
+
if (e.startsWith(t, r)) return r;
|
|
2493
|
+
if (e.startsWith("//", r)) return e.indexOf(t, r);
|
|
2494
|
+
}
|
|
2495
|
+
return -1;
|
|
2496
|
+
}
|
|
2497
|
+
*_forEachUnquotedChar(e, t) {
|
|
2498
|
+
let s = null, r = 0;
|
|
2499
|
+
for (let i = t; i < e.length; i++) {
|
|
2500
|
+
let a = e[i];
|
|
2501
|
+
Tn(e.charCodeAt(i)) && (s === null || s === a) && r % 2 === 0 ? s = s === null ? a : null : s === null && (yield i), r = a === "\\" ? r + 1 : 0;
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
}, oe;
|
|
2505
|
+
(function(n) {
|
|
2506
|
+
n[n.None = 0] = "None", n[n.Writable = 1] = "Writable";
|
|
2507
|
+
})(oe || (oe = {}));
|
|
2508
|
+
var G = class {
|
|
2509
|
+
input;
|
|
2510
|
+
location;
|
|
2511
|
+
absoluteOffset;
|
|
2512
|
+
tokens;
|
|
2513
|
+
parseFlags;
|
|
2514
|
+
errors;
|
|
2515
|
+
offset;
|
|
2516
|
+
rparensExpected = 0;
|
|
2517
|
+
rbracketsExpected = 0;
|
|
2518
|
+
rbracesExpected = 0;
|
|
2519
|
+
context = oe.None;
|
|
2520
|
+
sourceSpanCache = /* @__PURE__ */ new Map();
|
|
2521
|
+
index = 0;
|
|
2522
|
+
constructor(e, t, s, r, i, a, l) {
|
|
2523
|
+
this.input = e, this.location = t, this.absoluteOffset = s, this.tokens = r, this.parseFlags = i, this.errors = a, this.offset = l;
|
|
2524
|
+
}
|
|
2525
|
+
peek(e) {
|
|
2526
|
+
let t = this.index + e;
|
|
2527
|
+
return t < this.tokens.length ? this.tokens[t] : et;
|
|
2528
|
+
}
|
|
2529
|
+
get next() {
|
|
2530
|
+
return this.peek(0);
|
|
2531
|
+
}
|
|
2532
|
+
get atEOF() {
|
|
2533
|
+
return this.index >= this.tokens.length;
|
|
2534
|
+
}
|
|
2535
|
+
get inputIndex() {
|
|
2536
|
+
return this.atEOF ? this.currentEndIndex : this.next.index + this.offset;
|
|
2537
|
+
}
|
|
2538
|
+
get currentEndIndex() {
|
|
2539
|
+
return this.index > 0 ? this.peek(-1).end + this.offset : this.tokens.length === 0 ? this.input.length + this.offset : this.next.index + this.offset;
|
|
2540
|
+
}
|
|
2541
|
+
get currentAbsoluteOffset() {
|
|
2542
|
+
return this.absoluteOffset + this.inputIndex;
|
|
2543
|
+
}
|
|
2544
|
+
span(e, t) {
|
|
2545
|
+
let s = this.currentEndIndex;
|
|
2546
|
+
if (t !== void 0 && t > this.currentEndIndex && (s = t), e > s) {
|
|
2547
|
+
let r = s;
|
|
2548
|
+
s = e, e = r;
|
|
2549
|
+
}
|
|
2550
|
+
return new J(e, s);
|
|
2551
|
+
}
|
|
2552
|
+
sourceSpan(e, t) {
|
|
2553
|
+
let s = `${e}@${this.inputIndex}:${t}`;
|
|
2554
|
+
return this.sourceSpanCache.has(s) || this.sourceSpanCache.set(s, this.span(e, t).toAbsolute(this.absoluteOffset)), this.sourceSpanCache.get(s);
|
|
2555
|
+
}
|
|
2556
|
+
advance() {
|
|
2557
|
+
this.index++;
|
|
2558
|
+
}
|
|
2559
|
+
withContext(e, t) {
|
|
2560
|
+
this.context |= e;
|
|
2561
|
+
let s = t();
|
|
2562
|
+
return this.context ^= e, s;
|
|
2563
|
+
}
|
|
2564
|
+
consumeOptionalCharacter(e) {
|
|
2565
|
+
return this.next.isCharacter(e) ? (this.advance(), !0) : !1;
|
|
2566
|
+
}
|
|
2567
|
+
peekKeywordLet() {
|
|
2568
|
+
return this.next.isKeywordLet();
|
|
2569
|
+
}
|
|
2570
|
+
peekKeywordAs() {
|
|
2571
|
+
return this.next.isKeywordAs();
|
|
2572
|
+
}
|
|
2573
|
+
expectCharacter(e) {
|
|
2574
|
+
this.consumeOptionalCharacter(e) || this.error(`Missing expected ${String.fromCharCode(e)}`);
|
|
2575
|
+
}
|
|
2576
|
+
consumeOptionalOperator(e) {
|
|
2577
|
+
return this.next.isOperator(e) ? (this.advance(), !0) : !1;
|
|
2578
|
+
}
|
|
2579
|
+
expectOperator(e) {
|
|
2580
|
+
this.consumeOptionalOperator(e) || this.error(`Missing expected operator ${e}`);
|
|
2581
|
+
}
|
|
2582
|
+
prettyPrintToken(e) {
|
|
2583
|
+
return e === et ? "end of input" : `token ${e}`;
|
|
2584
|
+
}
|
|
2585
|
+
expectIdentifierOrKeyword() {
|
|
2586
|
+
let e = this.next;
|
|
2587
|
+
return !e.isIdentifier() && !e.isKeyword() ? (e.isPrivateIdentifier() ? this._reportErrorForPrivateIdentifier(e, "expected identifier or keyword") : this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`), null) : (this.advance(), e.toString());
|
|
2588
|
+
}
|
|
2589
|
+
expectIdentifierOrKeywordOrString() {
|
|
2590
|
+
let e = this.next;
|
|
2591
|
+
return !e.isIdentifier() && !e.isKeyword() && !e.isString() ? (e.isPrivateIdentifier() ? this._reportErrorForPrivateIdentifier(e, "expected identifier, keyword or string") : this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`), "") : (this.advance(), e.toString());
|
|
2592
|
+
}
|
|
2593
|
+
parseChain() {
|
|
2594
|
+
let e = [], t = this.inputIndex;
|
|
2595
|
+
for (; this.index < this.tokens.length;) {
|
|
2596
|
+
let s = this.parsePipe();
|
|
2597
|
+
if (e.push(s), this.consumeOptionalCharacter(Te)) for (this.parseFlags & 1 || this.error("Binding expression cannot contain chained expression"); this.consumeOptionalCharacter(Te););
|
|
2598
|
+
else if (this.index < this.tokens.length) {
|
|
2599
|
+
let r = this.index;
|
|
2600
|
+
if (this.error(`Unexpected token '${this.next}'`), this.index === r) break;
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
if (e.length === 0) {
|
|
2604
|
+
let s = this.offset, r = this.offset + this.input.length;
|
|
2605
|
+
return new P(this.span(s, r), this.sourceSpan(s, r));
|
|
2606
|
+
}
|
|
2607
|
+
return e.length == 1 ? e[0] : new Le(this.span(t), this.sourceSpan(t), e);
|
|
2608
|
+
}
|
|
2609
|
+
parsePipe() {
|
|
2610
|
+
let e = this.inputIndex, t = this.parseExpression();
|
|
2611
|
+
if (this.consumeOptionalOperator("|")) {
|
|
2612
|
+
this.parseFlags & 1 && this.error("Cannot have a pipe in an action expression");
|
|
2613
|
+
do {
|
|
2614
|
+
let s = this.inputIndex, r = this.expectIdentifierOrKeyword(), i, a;
|
|
2615
|
+
r !== null ? i = this.sourceSpan(s) : (r = "", a = this.next.index !== -1 ? this.next.index : this.input.length + this.offset, i = new J(a, a).toAbsolute(this.absoluteOffset));
|
|
2616
|
+
let l = [];
|
|
2617
|
+
for (; this.consumeOptionalCharacter(ie);) l.push(this.parseExpression());
|
|
2618
|
+
t = new Be(this.span(e), this.sourceSpan(e, a), t, r, l, i);
|
|
2619
|
+
} while (this.consumeOptionalOperator("|"));
|
|
2620
|
+
}
|
|
2621
|
+
return t;
|
|
2622
|
+
}
|
|
2623
|
+
parseExpression() {
|
|
2624
|
+
return this.parseConditional();
|
|
2625
|
+
}
|
|
2626
|
+
parseConditional() {
|
|
2627
|
+
let e = this.inputIndex, t = this.parseLogicalOr();
|
|
2628
|
+
if (this.consumeOptionalOperator("?")) {
|
|
2629
|
+
let s = this.parsePipe(), r;
|
|
2630
|
+
if (this.consumeOptionalCharacter(ie)) r = this.parsePipe();
|
|
2631
|
+
else {
|
|
2632
|
+
let i = this.inputIndex, a = this.input.substring(e, i);
|
|
2633
|
+
this.error(`Conditional expression ${a} requires all 3 expressions`), r = new P(this.span(e), this.sourceSpan(e));
|
|
2634
|
+
}
|
|
2635
|
+
return new Me(this.span(e), this.sourceSpan(e), t, s, r);
|
|
2636
|
+
} else return t;
|
|
2637
|
+
}
|
|
2638
|
+
parseLogicalOr() {
|
|
2639
|
+
let e = this.inputIndex, t = this.parseLogicalAnd();
|
|
2640
|
+
for (; this.consumeOptionalOperator("||");) {
|
|
2641
|
+
let s = this.parseLogicalAnd();
|
|
2642
|
+
t = new A(this.span(e), this.sourceSpan(e), "||", t, s);
|
|
2643
|
+
}
|
|
2644
|
+
return t;
|
|
2645
|
+
}
|
|
2646
|
+
parseLogicalAnd() {
|
|
2647
|
+
let e = this.inputIndex, t = this.parseNullishCoalescing();
|
|
2648
|
+
for (; this.consumeOptionalOperator("&&");) {
|
|
2649
|
+
let s = this.parseNullishCoalescing();
|
|
2650
|
+
t = new A(this.span(e), this.sourceSpan(e), "&&", t, s);
|
|
2651
|
+
}
|
|
2652
|
+
return t;
|
|
2653
|
+
}
|
|
2654
|
+
parseNullishCoalescing() {
|
|
2655
|
+
let e = this.inputIndex, t = this.parseEquality();
|
|
2656
|
+
for (; this.consumeOptionalOperator("??");) {
|
|
2657
|
+
let s = this.parseEquality();
|
|
2658
|
+
t = new A(this.span(e), this.sourceSpan(e), "??", t, s);
|
|
2659
|
+
}
|
|
2660
|
+
return t;
|
|
2661
|
+
}
|
|
2662
|
+
parseEquality() {
|
|
2663
|
+
let e = this.inputIndex, t = this.parseRelational();
|
|
2664
|
+
for (; this.next.type == m.Operator;) {
|
|
2665
|
+
let s = this.next.strValue;
|
|
2666
|
+
switch (s) {
|
|
2667
|
+
case "==":
|
|
2668
|
+
case "===":
|
|
2669
|
+
case "!=":
|
|
2670
|
+
case "!==":
|
|
2671
|
+
this.advance();
|
|
2672
|
+
let r = this.parseRelational();
|
|
2673
|
+
t = new A(this.span(e), this.sourceSpan(e), s, t, r);
|
|
2674
|
+
continue;
|
|
2675
|
+
}
|
|
2676
|
+
break;
|
|
2677
|
+
}
|
|
2678
|
+
return t;
|
|
2679
|
+
}
|
|
2680
|
+
parseRelational() {
|
|
2681
|
+
let e = this.inputIndex, t = this.parseAdditive();
|
|
2682
|
+
for (; this.next.type == m.Operator || this.next.isKeywordIn;) {
|
|
2683
|
+
let s = this.next.strValue;
|
|
2684
|
+
switch (s) {
|
|
2685
|
+
case "<":
|
|
2686
|
+
case ">":
|
|
2687
|
+
case "<=":
|
|
2688
|
+
case ">=":
|
|
2689
|
+
case "in":
|
|
2690
|
+
this.advance();
|
|
2691
|
+
let r = this.parseAdditive();
|
|
2692
|
+
t = new A(this.span(e), this.sourceSpan(e), s, t, r);
|
|
2693
|
+
continue;
|
|
2694
|
+
}
|
|
2695
|
+
break;
|
|
2696
|
+
}
|
|
2697
|
+
return t;
|
|
2698
|
+
}
|
|
2699
|
+
parseAdditive() {
|
|
2700
|
+
let e = this.inputIndex, t = this.parseMultiplicative();
|
|
2701
|
+
for (; this.next.type == m.Operator;) {
|
|
2702
|
+
let s = this.next.strValue;
|
|
2703
|
+
switch (s) {
|
|
2704
|
+
case "+":
|
|
2705
|
+
case "-":
|
|
2706
|
+
this.advance();
|
|
2707
|
+
let r = this.parseMultiplicative();
|
|
2708
|
+
t = new A(this.span(e), this.sourceSpan(e), s, t, r);
|
|
2709
|
+
continue;
|
|
2710
|
+
}
|
|
2711
|
+
break;
|
|
2712
|
+
}
|
|
2713
|
+
return t;
|
|
2714
|
+
}
|
|
2715
|
+
parseMultiplicative() {
|
|
2716
|
+
let e = this.inputIndex, t = this.parseExponentiation();
|
|
2717
|
+
for (; this.next.type == m.Operator;) {
|
|
2718
|
+
let s = this.next.strValue;
|
|
2719
|
+
switch (s) {
|
|
2720
|
+
case "*":
|
|
2721
|
+
case "%":
|
|
2722
|
+
case "/":
|
|
2723
|
+
this.advance();
|
|
2724
|
+
let r = this.parseExponentiation();
|
|
2725
|
+
t = new A(this.span(e), this.sourceSpan(e), s, t, r);
|
|
2726
|
+
continue;
|
|
2727
|
+
}
|
|
2728
|
+
break;
|
|
2729
|
+
}
|
|
2730
|
+
return t;
|
|
2731
|
+
}
|
|
2732
|
+
parseExponentiation() {
|
|
2733
|
+
let e = this.inputIndex, t = this.parsePrefix();
|
|
2734
|
+
for (; this.next.type == m.Operator && this.next.strValue === "**";) {
|
|
2735
|
+
(t instanceof X || t instanceof Q || t instanceof K || t instanceof Z) && this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"), this.advance();
|
|
2736
|
+
let s = this.parseExponentiation();
|
|
2737
|
+
t = new A(this.span(e), this.sourceSpan(e), "**", t, s);
|
|
2738
|
+
}
|
|
2739
|
+
return t;
|
|
2740
|
+
}
|
|
2741
|
+
parsePrefix() {
|
|
2742
|
+
if (this.next.type == m.Operator) {
|
|
2743
|
+
let e = this.inputIndex, t = this.next.strValue, s;
|
|
2744
|
+
switch (t) {
|
|
2745
|
+
case "+": return this.advance(), s = this.parsePrefix(), X.createPlus(this.span(e), this.sourceSpan(e), s);
|
|
2746
|
+
case "-": return this.advance(), s = this.parsePrefix(), X.createMinus(this.span(e), this.sourceSpan(e), s);
|
|
2747
|
+
case "!": return this.advance(), s = this.parsePrefix(), new Q(this.span(e), this.sourceSpan(e), s);
|
|
2748
|
+
}
|
|
2749
|
+
} else if (this.next.isKeywordTypeof()) {
|
|
2750
|
+
this.advance();
|
|
2751
|
+
let e = this.inputIndex, t = this.parsePrefix();
|
|
2752
|
+
return new K(this.span(e), this.sourceSpan(e), t);
|
|
2753
|
+
} else if (this.next.isKeywordVoid()) {
|
|
2754
|
+
this.advance();
|
|
2755
|
+
let e = this.inputIndex, t = this.parsePrefix();
|
|
2756
|
+
return new Z(this.span(e), this.sourceSpan(e), t);
|
|
2757
|
+
}
|
|
2758
|
+
return this.parseCallChain();
|
|
2759
|
+
}
|
|
2760
|
+
parseCallChain() {
|
|
2761
|
+
let e = this.inputIndex, t = this.parsePrimary();
|
|
2762
|
+
for (;;) if (this.consumeOptionalCharacter(re)) t = this.parseAccessMember(t, e, !1);
|
|
2763
|
+
else if (this.consumeOptionalOperator("?.")) this.consumeOptionalCharacter(tt) ? t = this.parseCall(t, e, !0) : t = this.consumeOptionalCharacter(nt) ? this.parseKeyedReadOrWrite(t, e, !0) : this.parseAccessMember(t, e, !0);
|
|
2764
|
+
else if (this.consumeOptionalCharacter(nt)) t = this.parseKeyedReadOrWrite(t, e, !1);
|
|
2765
|
+
else if (this.consumeOptionalCharacter(tt)) t = this.parseCall(t, e, !1);
|
|
2766
|
+
else if (this.consumeOptionalOperator("!")) t = new Ve(this.span(e), this.sourceSpan(e), t);
|
|
2767
|
+
else if (this.next.isTemplateLiteralEnd()) t = this.parseNoInterpolationTaggedTemplateLiteral(t, e);
|
|
2768
|
+
else if (this.next.isTemplateLiteralPart()) t = this.parseTaggedTemplateLiteral(t, e);
|
|
2769
|
+
else return t;
|
|
2770
|
+
}
|
|
2771
|
+
parsePrimary() {
|
|
2772
|
+
let e = this.inputIndex;
|
|
2773
|
+
if (this.consumeOptionalCharacter(tt)) {
|
|
2774
|
+
this.rparensExpected++;
|
|
2775
|
+
let t = this.parsePipe();
|
|
2776
|
+
return this.consumeOptionalCharacter(se) || (this.error("Missing closing parentheses"), this.consumeOptionalCharacter(se)), this.rparensExpected--, new He(this.span(e), this.sourceSpan(e), t);
|
|
2777
|
+
} else {
|
|
2778
|
+
if (this.next.isKeywordNull()) return this.advance(), new I(this.span(e), this.sourceSpan(e), null);
|
|
2779
|
+
if (this.next.isKeywordUndefined()) return this.advance(), new I(this.span(e), this.sourceSpan(e), void 0);
|
|
2780
|
+
if (this.next.isKeywordTrue()) return this.advance(), new I(this.span(e), this.sourceSpan(e), !0);
|
|
2781
|
+
if (this.next.isKeywordFalse()) return this.advance(), new I(this.span(e), this.sourceSpan(e), !1);
|
|
2782
|
+
if (this.next.isKeywordIn()) return this.advance(), new I(this.span(e), this.sourceSpan(e), "in");
|
|
2783
|
+
if (this.next.isKeywordThis()) return this.advance(), new At(this.span(e), this.sourceSpan(e));
|
|
2784
|
+
if (this.consumeOptionalCharacter(nt)) {
|
|
2785
|
+
this.rbracketsExpected++;
|
|
2786
|
+
let t = this.parseExpressionList(ke);
|
|
2787
|
+
return this.rbracketsExpected--, this.expectCharacter(ke), new Oe(this.span(e), this.sourceSpan(e), t);
|
|
2788
|
+
} else {
|
|
2789
|
+
if (this.next.isCharacter(ot)) return this.parseLiteralMap();
|
|
2790
|
+
if (this.next.isIdentifier()) return this.parseAccessMember(new Y(this.span(e), this.sourceSpan(e)), e, !1);
|
|
2791
|
+
if (this.next.isNumber()) {
|
|
2792
|
+
let t = this.next.toNumber();
|
|
2793
|
+
return this.advance(), new I(this.span(e), this.sourceSpan(e), t);
|
|
2794
|
+
} else {
|
|
2795
|
+
if (this.next.isTemplateLiteralEnd()) return this.parseNoInterpolationTemplateLiteral();
|
|
2796
|
+
if (this.next.isTemplateLiteralPart()) return this.parseTemplateLiteral();
|
|
2797
|
+
if (this.next.isString() && this.next.kind === q.Plain) {
|
|
2798
|
+
let t = this.next.toString();
|
|
2799
|
+
return this.advance(), new I(this.span(e), this.sourceSpan(e), t);
|
|
2800
|
+
} else return this.next.isPrivateIdentifier() ? (this._reportErrorForPrivateIdentifier(this.next, null), new P(this.span(e), this.sourceSpan(e))) : this.index >= this.tokens.length ? (this.error(`Unexpected end of expression: ${this.input}`), new P(this.span(e), this.sourceSpan(e))) : (this.error(`Unexpected token ${this.next}`), new P(this.span(e), this.sourceSpan(e)));
|
|
2801
|
+
}
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2805
|
+
parseExpressionList(e) {
|
|
2806
|
+
let t = [];
|
|
2807
|
+
do
|
|
2808
|
+
if (!this.next.isCharacter(e)) t.push(this.parsePipe());
|
|
2809
|
+
else break;
|
|
2810
|
+
while (this.consumeOptionalCharacter(Ce));
|
|
2811
|
+
return t;
|
|
2812
|
+
}
|
|
2813
|
+
parseLiteralMap() {
|
|
2814
|
+
let e = [], t = [], s = this.inputIndex;
|
|
2815
|
+
if (this.expectCharacter(ot), !this.consumeOptionalCharacter(be)) {
|
|
2816
|
+
this.rbracesExpected++;
|
|
2817
|
+
do {
|
|
2818
|
+
let r = this.inputIndex, i = this.next.isString(), a = this.expectIdentifierOrKeywordOrString(), l = {
|
|
2819
|
+
key: a,
|
|
2820
|
+
quoted: i
|
|
2821
|
+
};
|
|
2822
|
+
if (e.push(l), i) this.expectCharacter(ie), t.push(this.parsePipe());
|
|
2823
|
+
else if (this.consumeOptionalCharacter(ie)) t.push(this.parsePipe());
|
|
2824
|
+
else {
|
|
2825
|
+
l.isShorthandInitialized = !0;
|
|
2826
|
+
let h = this.span(r), f = this.sourceSpan(r);
|
|
2827
|
+
t.push(new le(h, f, f, new Y(h, f), a));
|
|
2828
|
+
}
|
|
2829
|
+
} while (this.consumeOptionalCharacter(Ce) && !this.next.isCharacter(be));
|
|
2830
|
+
this.rbracesExpected--, this.expectCharacter(be);
|
|
2831
|
+
}
|
|
2832
|
+
return new Fe(this.span(s), this.sourceSpan(s), e, t);
|
|
2833
|
+
}
|
|
2834
|
+
parseAccessMember(e, t, s) {
|
|
2835
|
+
let r = this.inputIndex, i = this.withContext(oe.Writable, () => {
|
|
2836
|
+
let h = this.expectIdentifierOrKeyword() ?? "";
|
|
2837
|
+
return h.length === 0 && this.error("Expected identifier for property access", e.span.end), h;
|
|
2838
|
+
}), a = this.sourceSpan(r), l;
|
|
2839
|
+
if (s) this.consumeOptionalOperator("=") ? (this.error("The '?.' operator cannot be used in the assignment"), l = new P(this.span(t), this.sourceSpan(t))) : l = new ce(this.span(t), this.sourceSpan(t), a, e, i);
|
|
2840
|
+
else if (this.consumeOptionalOperator("=")) {
|
|
2841
|
+
if (!(this.parseFlags & 1)) return this.error("Bindings cannot contain assignments"), new P(this.span(t), this.sourceSpan(t));
|
|
2842
|
+
let h = this.parseConditional();
|
|
2843
|
+
l = new $e(this.span(t), this.sourceSpan(t), a, e, i, h);
|
|
2844
|
+
} else l = new le(this.span(t), this.sourceSpan(t), a, e, i);
|
|
2845
|
+
return l;
|
|
2846
|
+
}
|
|
2847
|
+
parseCall(e, t, s) {
|
|
2848
|
+
let r = this.inputIndex;
|
|
2849
|
+
this.rparensExpected++;
|
|
2850
|
+
let i = this.parseCallArguments(), a = this.span(r, this.inputIndex).toAbsolute(this.absoluteOffset);
|
|
2851
|
+
this.expectCharacter(se), this.rparensExpected--;
|
|
2852
|
+
let l = this.span(t), h = this.sourceSpan(t);
|
|
2853
|
+
return s ? new pe(l, h, e, i, a) : new Ue(l, h, e, i, a);
|
|
2854
|
+
}
|
|
2855
|
+
parseCallArguments() {
|
|
2856
|
+
if (this.next.isCharacter(se)) return [];
|
|
2857
|
+
let e = [];
|
|
2858
|
+
do
|
|
2859
|
+
e.push(this.parsePipe());
|
|
2860
|
+
while (this.consumeOptionalCharacter(Ce));
|
|
2861
|
+
return e;
|
|
2862
|
+
}
|
|
2863
|
+
expectTemplateBindingKey() {
|
|
2864
|
+
let e = "", t = !1, s = this.currentAbsoluteOffset;
|
|
2865
|
+
do
|
|
2866
|
+
e += this.expectIdentifierOrKeywordOrString(), t = this.consumeOptionalOperator("-"), t && (e += "-");
|
|
2867
|
+
while (t);
|
|
2868
|
+
return {
|
|
2869
|
+
source: e,
|
|
2870
|
+
span: new O(s, s + e.length)
|
|
2871
|
+
};
|
|
2872
|
+
}
|
|
2873
|
+
parseTemplateBindings(e) {
|
|
2874
|
+
let t = [];
|
|
2875
|
+
for (t.push(...this.parseDirectiveKeywordBindings(e)); this.index < this.tokens.length;) {
|
|
2876
|
+
let s = this.parseLetBinding();
|
|
2877
|
+
if (s) t.push(s);
|
|
2878
|
+
else {
|
|
2879
|
+
let r = this.expectTemplateBindingKey(), i = this.parseAsBinding(r);
|
|
2880
|
+
i ? t.push(i) : (r.source = e.source + r.source.charAt(0).toUpperCase() + r.source.substring(1), t.push(...this.parseDirectiveKeywordBindings(r)));
|
|
2881
|
+
}
|
|
2882
|
+
this.consumeStatementTerminator();
|
|
2883
|
+
}
|
|
2884
|
+
return new Ot(t, [], this.errors);
|
|
2885
|
+
}
|
|
2886
|
+
parseKeyedReadOrWrite(e, t, s) {
|
|
2887
|
+
return this.withContext(oe.Writable, () => {
|
|
2888
|
+
this.rbracketsExpected++;
|
|
2889
|
+
let r = this.parsePipe();
|
|
2890
|
+
if (r instanceof P && this.error("Key access cannot be empty"), this.rbracketsExpected--, this.expectCharacter(ke), this.consumeOptionalOperator("=")) if (s) this.error("The '?.' operator cannot be used in the assignment");
|
|
2891
|
+
else {
|
|
2892
|
+
let i = this.parseConditional();
|
|
2893
|
+
return new De(this.span(t), this.sourceSpan(t), e, r, i);
|
|
2894
|
+
}
|
|
2895
|
+
else return s ? new ue(this.span(t), this.sourceSpan(t), e, r) : new Re(this.span(t), this.sourceSpan(t), e, r);
|
|
2896
|
+
return new P(this.span(t), this.sourceSpan(t));
|
|
2897
|
+
});
|
|
2898
|
+
}
|
|
2899
|
+
parseDirectiveKeywordBindings(e) {
|
|
2900
|
+
let t = [];
|
|
2901
|
+
this.consumeOptionalCharacter(ie);
|
|
2902
|
+
let s = this.getDirectiveBoundTarget(), r = this.currentAbsoluteOffset, i = this.parseAsBinding(e);
|
|
2903
|
+
i || (this.consumeStatementTerminator(), r = this.currentAbsoluteOffset);
|
|
2904
|
+
let a = new O(e.span.start, r);
|
|
2905
|
+
return t.push(new We(a, e, s)), i && t.push(i), t;
|
|
2906
|
+
}
|
|
2907
|
+
getDirectiveBoundTarget() {
|
|
2908
|
+
if (this.next === et || this.peekKeywordAs() || this.peekKeywordLet()) return null;
|
|
2909
|
+
let e = this.parsePipe(), { start: t, end: s } = e.span, r = this.input.substring(t, s);
|
|
2910
|
+
return new W(e, r, this.location, this.absoluteOffset + t, this.errors);
|
|
2911
|
+
}
|
|
2912
|
+
parseAsBinding(e) {
|
|
2913
|
+
if (!this.peekKeywordAs()) return null;
|
|
2914
|
+
this.advance();
|
|
2915
|
+
let t = this.expectTemplateBindingKey();
|
|
2916
|
+
this.consumeStatementTerminator();
|
|
2917
|
+
let s = new O(e.span.start, this.currentAbsoluteOffset);
|
|
2918
|
+
return new me(s, t, e);
|
|
2919
|
+
}
|
|
2920
|
+
parseLetBinding() {
|
|
2921
|
+
if (!this.peekKeywordLet()) return null;
|
|
2922
|
+
let e = this.currentAbsoluteOffset;
|
|
2923
|
+
this.advance();
|
|
2924
|
+
let t = this.expectTemplateBindingKey(), s = null;
|
|
2925
|
+
this.consumeOptionalOperator("=") && (s = this.expectTemplateBindingKey()), this.consumeStatementTerminator();
|
|
2926
|
+
let r = new O(e, this.currentAbsoluteOffset);
|
|
2927
|
+
return new me(r, t, s);
|
|
2928
|
+
}
|
|
2929
|
+
parseNoInterpolationTaggedTemplateLiteral(e, t) {
|
|
2930
|
+
let s = this.parseNoInterpolationTemplateLiteral();
|
|
2931
|
+
return new he(this.span(t), this.sourceSpan(t), e, s);
|
|
2932
|
+
}
|
|
2933
|
+
parseNoInterpolationTemplateLiteral() {
|
|
2934
|
+
let e = this.next.strValue, t = this.inputIndex;
|
|
2935
|
+
this.advance();
|
|
2936
|
+
let s = this.span(t), r = this.sourceSpan(t);
|
|
2937
|
+
return new fe(s, r, [new de(s, r, e)], []);
|
|
2938
|
+
}
|
|
2939
|
+
parseTaggedTemplateLiteral(e, t) {
|
|
2940
|
+
let s = this.parseTemplateLiteral();
|
|
2941
|
+
return new he(this.span(t), this.sourceSpan(t), e, s);
|
|
2942
|
+
}
|
|
2943
|
+
parseTemplateLiteral() {
|
|
2944
|
+
let e = [], t = [], s = this.inputIndex;
|
|
2945
|
+
for (; this.next !== et;) {
|
|
2946
|
+
let r = this.next;
|
|
2947
|
+
if (r.isTemplateLiteralPart() || r.isTemplateLiteralEnd()) {
|
|
2948
|
+
let i = this.inputIndex;
|
|
2949
|
+
if (this.advance(), e.push(new de(this.span(i), this.sourceSpan(i), r.strValue)), r.isTemplateLiteralEnd()) break;
|
|
2950
|
+
} else if (r.isTemplateLiteralInterpolationStart()) {
|
|
2951
|
+
this.advance();
|
|
2952
|
+
let i = this.parsePipe();
|
|
2953
|
+
i instanceof P ? this.error("Template literal interpolation cannot be empty") : t.push(i);
|
|
2954
|
+
} else this.advance();
|
|
2955
|
+
}
|
|
2956
|
+
return new fe(this.span(s), this.sourceSpan(s), e, t);
|
|
2957
|
+
}
|
|
2958
|
+
consumeStatementTerminator() {
|
|
2959
|
+
this.consumeOptionalCharacter(Te) || this.consumeOptionalCharacter(Ce);
|
|
2960
|
+
}
|
|
2961
|
+
error(e, t = null) {
|
|
2962
|
+
this.errors.push(new Pe(e, this.input, this.locationText(t), this.location)), this.skip();
|
|
2963
|
+
}
|
|
2964
|
+
locationText(e = null) {
|
|
2965
|
+
return e ??= this.index, e < this.tokens.length ? `at column ${this.tokens[e].index + 1} in` : "at the end of the expression";
|
|
2966
|
+
}
|
|
2967
|
+
_reportErrorForPrivateIdentifier(e, t) {
|
|
2968
|
+
let s = `Private identifiers are not supported. Unexpected private identifier: ${e}`;
|
|
2969
|
+
t !== null && (s += `, ${t}`), this.error(s);
|
|
2970
|
+
}
|
|
2971
|
+
skip() {
|
|
2972
|
+
let e = this.next;
|
|
2973
|
+
for (; this.index < this.tokens.length && !e.isCharacter(Te) && !e.isOperator("|") && (this.rparensExpected <= 0 || !e.isCharacter(se)) && (this.rbracesExpected <= 0 || !e.isCharacter(be)) && (this.rbracketsExpected <= 0 || !e.isCharacter(ke)) && (!(this.context & oe.Writable) || !e.isOperator("="));) this.next.isError() && this.errors.push(new Pe(this.next.toString(), this.input, this.locationText(), this.location)), this.advance(), e = this.next;
|
|
2974
|
+
}
|
|
2975
|
+
}, Ft = class extends Pt {
|
|
2976
|
+
errors = [];
|
|
2977
|
+
visitPipe() {
|
|
2978
|
+
this.errors.push("pipes");
|
|
2979
|
+
}
|
|
2980
|
+
};
|
|
2981
|
+
function Or(n) {
|
|
2982
|
+
let e = /* @__PURE__ */ new Map(), t = 0, s = 0, r = 0;
|
|
2983
|
+
for (; r < n.length;) {
|
|
2984
|
+
let i = n[r];
|
|
2985
|
+
if (i.type === 9) {
|
|
2986
|
+
let [a, l] = i.parts;
|
|
2987
|
+
t += l.length, s += a.length;
|
|
2988
|
+
} else {
|
|
2989
|
+
let a = i.parts.reduce((l, h) => l + h.length, 0);
|
|
2990
|
+
s += a, t += a;
|
|
2991
|
+
}
|
|
2992
|
+
e.set(s, t), r++;
|
|
2993
|
+
}
|
|
2994
|
+
return e;
|
|
2995
|
+
}
|
|
2996
|
+
var Fr = new Map(Object.entries({
|
|
2997
|
+
class: "className",
|
|
2998
|
+
for: "htmlFor",
|
|
2999
|
+
formaction: "formAction",
|
|
3000
|
+
innerHtml: "innerHTML",
|
|
3001
|
+
readonly: "readOnly",
|
|
3002
|
+
tabindex: "tabIndex"
|
|
3003
|
+
})), _i = Array.from(Fr).reduce((n, [e, t]) => (n.set(e, t), n), /* @__PURE__ */ new Map());
|
|
3004
|
+
var Ci = new we(new qe());
|
|
3005
|
+
function B(n) {
|
|
3006
|
+
return (e) => e.kind === n;
|
|
3007
|
+
}
|
|
3008
|
+
function Ne(n, e) {
|
|
3009
|
+
return (t) => t.kind === n && e === t.expression instanceof at;
|
|
3010
|
+
}
|
|
3011
|
+
function Vr(n) {
|
|
3012
|
+
return (n.kind === d.Property || n.kind === d.TwoWayProperty) && !(n.expression instanceof at);
|
|
3013
|
+
}
|
|
3014
|
+
var Ti = [
|
|
3015
|
+
{
|
|
3016
|
+
test: B(d.StyleMap),
|
|
3017
|
+
transform: lt
|
|
3018
|
+
},
|
|
3019
|
+
{
|
|
3020
|
+
test: B(d.ClassMap),
|
|
3021
|
+
transform: lt
|
|
3022
|
+
},
|
|
3023
|
+
{ test: B(d.StyleProp) },
|
|
3024
|
+
{ test: B(d.ClassProp) },
|
|
3025
|
+
{ test: Ne(d.Attribute, !0) },
|
|
3026
|
+
{ test: Ne(d.Property, !0) },
|
|
3027
|
+
{ test: Vr },
|
|
3028
|
+
{ test: Ne(d.Attribute, !1) }
|
|
3029
|
+
], ki = [
|
|
3030
|
+
{ test: Ne(d.DomProperty, !0) },
|
|
3031
|
+
{ test: Ne(d.DomProperty, !1) },
|
|
3032
|
+
{ test: B(d.Attribute) },
|
|
3033
|
+
{
|
|
3034
|
+
test: B(d.StyleMap),
|
|
3035
|
+
transform: lt
|
|
3036
|
+
},
|
|
3037
|
+
{
|
|
3038
|
+
test: B(d.ClassMap),
|
|
3039
|
+
transform: lt
|
|
3040
|
+
},
|
|
3041
|
+
{ test: B(d.StyleProp) },
|
|
3042
|
+
{ test: B(d.ClassProp) }
|
|
3043
|
+
], bi = new Set([
|
|
3044
|
+
d.Listener,
|
|
3045
|
+
d.TwoWayListener,
|
|
3046
|
+
d.StyleMap,
|
|
3047
|
+
d.ClassMap,
|
|
3048
|
+
d.StyleProp,
|
|
3049
|
+
d.ClassProp,
|
|
3050
|
+
d.Property,
|
|
3051
|
+
d.TwoWayProperty,
|
|
3052
|
+
d.DomProperty,
|
|
3053
|
+
d.Attribute
|
|
3054
|
+
]);
|
|
3055
|
+
function lt(n) {
|
|
3056
|
+
return n.slice(n.length - 1);
|
|
3057
|
+
}
|
|
3058
|
+
var Ii = {
|
|
3059
|
+
constant: [
|
|
3060
|
+
p.interpolate,
|
|
3061
|
+
p.interpolate1,
|
|
3062
|
+
p.interpolate2,
|
|
3063
|
+
p.interpolate3,
|
|
3064
|
+
p.interpolate4,
|
|
3065
|
+
p.interpolate5,
|
|
3066
|
+
p.interpolate6,
|
|
3067
|
+
p.interpolate7,
|
|
3068
|
+
p.interpolate8
|
|
3069
|
+
],
|
|
3070
|
+
variable: p.interpolateV,
|
|
3071
|
+
mapping: (n) => {
|
|
3072
|
+
if (n % 2 === 0) throw new Error("Expected odd number of arguments");
|
|
3073
|
+
return (n - 1) / 2;
|
|
3074
|
+
}
|
|
3075
|
+
};
|
|
3076
|
+
var Ni = new Map([
|
|
3077
|
+
["window", p.resolveWindow],
|
|
3078
|
+
["document", p.resolveDocument],
|
|
3079
|
+
["body", p.resolveBody]
|
|
3080
|
+
]);
|
|
3081
|
+
var Ai = new Map([
|
|
3082
|
+
[D.HTML, p.sanitizeHtml],
|
|
3083
|
+
[D.RESOURCE_URL, p.sanitizeResourceUrl],
|
|
3084
|
+
[D.SCRIPT, p.sanitizeScript],
|
|
3085
|
+
[D.STYLE, p.sanitizeStyle],
|
|
3086
|
+
[D.URL, p.sanitizeUrl]
|
|
3087
|
+
]), Pi = new Map([[D.HTML, p.trustConstantHtml], [D.RESOURCE_URL, p.trustConstantResourceUrl]]);
|
|
3088
|
+
var Xn;
|
|
3089
|
+
(function(n) {
|
|
3090
|
+
n[n.None = 0] = "None", n[n.ViewContextRead = 1] = "ViewContextRead", n[n.ViewContextWrite = 2] = "ViewContextWrite", n[n.SideEffectful = 4] = "SideEffectful";
|
|
3091
|
+
})(Xn || (Xn = {}));
|
|
3092
|
+
var Li = new Map([
|
|
3093
|
+
[U.Property, H.Property],
|
|
3094
|
+
[U.TwoWay, H.TwoWayProperty],
|
|
3095
|
+
[U.Attribute, H.Attribute],
|
|
3096
|
+
[U.Class, H.ClassName],
|
|
3097
|
+
[U.Style, H.StyleProperty],
|
|
3098
|
+
[U.Animation, H.Animation]
|
|
3099
|
+
]);
|
|
3100
|
+
var Mi = Symbol("queryAdvancePlaceholder");
|
|
3101
|
+
var Jn;
|
|
3102
|
+
(function(n) {
|
|
3103
|
+
n[n.NG_CONTENT = 0] = "NG_CONTENT", n[n.STYLE = 1] = "STYLE", n[n.STYLESHEET = 2] = "STYLESHEET", n[n.SCRIPT = 3] = "SCRIPT", n[n.OTHER = 4] = "OTHER";
|
|
3104
|
+
})(Jn || (Jn = {}));
|
|
3105
|
+
var Yn;
|
|
3106
|
+
(function(n) {
|
|
3107
|
+
n.IDLE = "idle", n.TIMER = "timer", n.INTERACTION = "interaction", n.IMMEDIATE = "immediate", n.HOVER = "hover", n.VIEWPORT = "viewport", n.NEVER = "never";
|
|
3108
|
+
})(Yn || (Yn = {}));
|
|
3109
|
+
var ms = "%COMP%", $i = `_nghost-${ms}`, Ri = `_ngcontent-${ms}`;
|
|
3110
|
+
var Qn;
|
|
3111
|
+
(function(n) {
|
|
3112
|
+
n[n.Extract = 0] = "Extract", n[n.Merge = 1] = "Merge";
|
|
3113
|
+
})(Qn || (Qn = {}));
|
|
3114
|
+
var Di = new Nt("20.0.5");
|
|
3115
|
+
function gs({ start: n, end: e }, t) {
|
|
3116
|
+
let s = n, r = e;
|
|
3117
|
+
for (; r !== s && /\s/.test(t[r - 1]);) r--;
|
|
3118
|
+
for (; s !== r && /\s/.test(t[s]);) s++;
|
|
3119
|
+
return {
|
|
3120
|
+
start: s,
|
|
3121
|
+
end: r
|
|
3122
|
+
};
|
|
3123
|
+
}
|
|
3124
|
+
function Hr({ start: n, end: e }, t) {
|
|
3125
|
+
let s = n, r = e;
|
|
3126
|
+
for (; r !== t.length && /\s/.test(t[r]);) r++;
|
|
3127
|
+
for (; s !== 0 && /\s/.test(t[s - 1]);) s--;
|
|
3128
|
+
return {
|
|
3129
|
+
start: s,
|
|
3130
|
+
end: r
|
|
3131
|
+
};
|
|
3132
|
+
}
|
|
3133
|
+
function Wr(n, e) {
|
|
3134
|
+
return e[n.start - 1] === "(" && e[n.end] === ")" ? {
|
|
3135
|
+
start: n.start - 1,
|
|
3136
|
+
end: n.end + 1
|
|
3137
|
+
} : n;
|
|
3138
|
+
}
|
|
3139
|
+
function vs(n, e, t) {
|
|
3140
|
+
let s = 0, r = {
|
|
3141
|
+
start: n.start,
|
|
3142
|
+
end: n.end
|
|
3143
|
+
};
|
|
3144
|
+
for (;;) {
|
|
3145
|
+
let i = Hr(r, e), a = Wr(i, e);
|
|
3146
|
+
if (i.start === a.start && i.end === a.end) break;
|
|
3147
|
+
r.start = a.start, r.end = a.end, s++;
|
|
3148
|
+
}
|
|
3149
|
+
return {
|
|
3150
|
+
hasParens: (t ? s - 1 : s) !== 0,
|
|
3151
|
+
outerSpan: gs(t ? {
|
|
3152
|
+
start: r.start + 1,
|
|
3153
|
+
end: r.end - 1
|
|
3154
|
+
} : r, e),
|
|
3155
|
+
innerSpan: gs(n, e)
|
|
3156
|
+
};
|
|
3157
|
+
}
|
|
3158
|
+
function ws(n) {
|
|
3159
|
+
return typeof n == "string" ? (e) => e === n : (e) => n.test(e);
|
|
3160
|
+
}
|
|
3161
|
+
function xs(n, e, t) {
|
|
3162
|
+
let s = ws(e);
|
|
3163
|
+
for (let r = t; r >= 0; r--) {
|
|
3164
|
+
let i = n[r];
|
|
3165
|
+
if (s(i)) return r;
|
|
3166
|
+
}
|
|
3167
|
+
throw new Error(`Cannot find front char ${e} from index ${t} in ${JSON.stringify(n)}`);
|
|
3168
|
+
}
|
|
3169
|
+
function Ss(n, e, t) {
|
|
3170
|
+
let s = ws(e);
|
|
3171
|
+
for (let r = t; r < n.length; r++) {
|
|
3172
|
+
let i = n[r];
|
|
3173
|
+
if (s(i)) return r;
|
|
3174
|
+
}
|
|
3175
|
+
throw new Error(`Cannot find character ${e} from index ${t} in ${JSON.stringify(n)}`);
|
|
3176
|
+
}
|
|
3177
|
+
function Es(n) {
|
|
3178
|
+
return n.slice(0, 1).toLowerCase() + n.slice(1);
|
|
3179
|
+
}
|
|
3180
|
+
function ze(n) {
|
|
3181
|
+
let { start: e, end: t } = n;
|
|
3182
|
+
return {
|
|
3183
|
+
start: e,
|
|
3184
|
+
end: t,
|
|
3185
|
+
range: [e, t]
|
|
3186
|
+
};
|
|
3187
|
+
}
|
|
3188
|
+
var qr = (n) => we.prototype._commentStart(n);
|
|
3189
|
+
function jr(n, e) {
|
|
3190
|
+
let t = e ? qr(n) : null;
|
|
3191
|
+
if (t === null) return {
|
|
3192
|
+
text: n,
|
|
3193
|
+
comments: []
|
|
3194
|
+
};
|
|
3195
|
+
let s = {
|
|
3196
|
+
type: "CommentLine",
|
|
3197
|
+
value: n.slice(t + 2),
|
|
3198
|
+
...ze({
|
|
3199
|
+
start: t,
|
|
3200
|
+
end: n.length
|
|
3201
|
+
})
|
|
3202
|
+
};
|
|
3203
|
+
return {
|
|
3204
|
+
text: n.slice(0, t),
|
|
3205
|
+
comments: [s]
|
|
3206
|
+
};
|
|
3207
|
+
}
|
|
3208
|
+
function Ge(n, e = !0) {
|
|
3209
|
+
return (t) => {
|
|
3210
|
+
let s = new qe(), r = new we(s), { text: i, comments: a } = jr(t, e), l = n(i, r);
|
|
3211
|
+
if (l.errors.length !== 0) {
|
|
3212
|
+
let [{ message: h }] = l.errors;
|
|
3213
|
+
throw new SyntaxError(h.replace(/^Parser Error: | at column \d+ in [^]*$/g, ""));
|
|
3214
|
+
}
|
|
3215
|
+
return {
|
|
3216
|
+
result: l,
|
|
3217
|
+
comments: a,
|
|
3218
|
+
text: i
|
|
3219
|
+
};
|
|
3220
|
+
};
|
|
3221
|
+
}
|
|
3222
|
+
var ys = Ge((n, e) => e.parseBinding(n, "", 0)), zr = Ge((n, e) => e.parseSimpleBinding(n, "", 0)), _s = Ge((n, e) => e.parseAction(n, "", 0)), Cs = Ge((n, e) => e.parseInterpolationExpression(n, "", 0)), Ts = Ge((n, e) => e.parseTemplateBindings("", n, "", 0, 0), !1);
|
|
3223
|
+
var Xr = (n, e, t) => {
|
|
3224
|
+
if (!(n && e == null)) return Array.isArray(e) || typeof e == "string" ? e[t < 0 ? e.length + t : t] : e.at(t);
|
|
3225
|
+
}, ut = Xr;
|
|
3226
|
+
var qt = class {
|
|
3227
|
+
text;
|
|
3228
|
+
constructor(e) {
|
|
3229
|
+
this.text = e;
|
|
3230
|
+
}
|
|
3231
|
+
getCharacterIndex(e, t) {
|
|
3232
|
+
return Ss(this.text, e, t);
|
|
3233
|
+
}
|
|
3234
|
+
getCharacterLastIndex(e, t) {
|
|
3235
|
+
return xs(this.text, e, t);
|
|
3236
|
+
}
|
|
3237
|
+
transformSpan(e, { stripSpaces: t = !1, hasParentParens: s = !1 } = {}) {
|
|
3238
|
+
if (!t) return ze(e);
|
|
3239
|
+
let { outerSpan: r, innerSpan: i, hasParens: a } = vs(e, this.text, s), l = ze(i);
|
|
3240
|
+
return a && (l.extra = {
|
|
3241
|
+
parenthesized: !0,
|
|
3242
|
+
parenStart: r.start,
|
|
3243
|
+
parenEnd: r.end
|
|
3244
|
+
}), l;
|
|
3245
|
+
}
|
|
3246
|
+
createNode(e, { stripSpaces: t = !0, hasParentParens: s = !1 } = {}) {
|
|
3247
|
+
let { type: r, start: i, end: a } = e, l = {
|
|
3248
|
+
...e,
|
|
3249
|
+
...this.transformSpan({
|
|
3250
|
+
start: i,
|
|
3251
|
+
end: a
|
|
3252
|
+
}, {
|
|
3253
|
+
stripSpaces: t,
|
|
3254
|
+
hasParentParens: s
|
|
3255
|
+
})
|
|
3256
|
+
};
|
|
3257
|
+
switch (r) {
|
|
3258
|
+
case "NumericLiteral":
|
|
3259
|
+
case "StringLiteral": {
|
|
3260
|
+
let h = this.text.slice(l.start, l.end), { value: f } = l;
|
|
3261
|
+
l.extra = {
|
|
3262
|
+
...l.extra,
|
|
3263
|
+
raw: h,
|
|
3264
|
+
rawValue: f
|
|
3265
|
+
};
|
|
3266
|
+
break;
|
|
3267
|
+
}
|
|
3268
|
+
case "ObjectProperty": {
|
|
3269
|
+
let { shorthand: h } = l;
|
|
3270
|
+
h && (l.extra = {
|
|
3271
|
+
...l.extra,
|
|
3272
|
+
shorthand: h
|
|
3273
|
+
});
|
|
3274
|
+
break;
|
|
3275
|
+
}
|
|
3276
|
+
}
|
|
3277
|
+
return l;
|
|
3278
|
+
}
|
|
3279
|
+
}, ks = qt;
|
|
3280
|
+
function jt(n) {
|
|
3281
|
+
var e;
|
|
3282
|
+
return !!((e = n.extra) != null && e.parenthesized);
|
|
3283
|
+
}
|
|
3284
|
+
function $(n) {
|
|
3285
|
+
return jt(n) ? n.extra.parenStart : n.start;
|
|
3286
|
+
}
|
|
3287
|
+
function R(n) {
|
|
3288
|
+
return jt(n) ? n.extra.parenEnd : n.end;
|
|
3289
|
+
}
|
|
3290
|
+
function bs(n) {
|
|
3291
|
+
return (n.type === "OptionalCallExpression" || n.type === "OptionalMemberExpression") && !jt(n);
|
|
3292
|
+
}
|
|
3293
|
+
function Is(n, e) {
|
|
3294
|
+
let { start: t, end: s } = n.sourceSpan;
|
|
3295
|
+
return t >= s || /^\s+$/.test(e.slice(t, s));
|
|
3296
|
+
}
|
|
3297
|
+
var Ye, xe, u, w, Xe, x, pt, Je = class extends ks {
|
|
3298
|
+
constructor(t, s) {
|
|
3299
|
+
super(s);
|
|
3300
|
+
V(this, u);
|
|
3301
|
+
V(this, Ye);
|
|
3302
|
+
V(this, xe);
|
|
3303
|
+
te(this, Ye, t), te(this, xe, s);
|
|
3304
|
+
}
|
|
3305
|
+
get node() {
|
|
3306
|
+
return c(this, u, x).call(this, L(this, Ye));
|
|
3307
|
+
}
|
|
3308
|
+
transformNode(t) {
|
|
3309
|
+
return c(this, u, pt).call(this, t);
|
|
3310
|
+
}
|
|
3311
|
+
};
|
|
3312
|
+
Ye = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakSet(), w = function(t, { stripSpaces: s = !0, hasParentParens: r = !1 } = {}) {
|
|
3313
|
+
return this.createNode(t, {
|
|
3314
|
+
stripSpaces: s,
|
|
3315
|
+
hasParentParens: r
|
|
3316
|
+
});
|
|
3317
|
+
}, Xe = function(t, s, { computed: r, optional: i, end: a = R(s), hasParentParens: l = !1 }) {
|
|
3318
|
+
if (Is(t, L(this, xe)) || t.sourceSpan.start === s.start) return s;
|
|
3319
|
+
let h = c(this, u, x).call(this, t), f = bs(h);
|
|
3320
|
+
return c(this, u, w).call(this, {
|
|
3321
|
+
type: i || f ? "OptionalMemberExpression" : "MemberExpression",
|
|
3322
|
+
object: h,
|
|
3323
|
+
property: s,
|
|
3324
|
+
computed: r,
|
|
3325
|
+
...i ? { optional: !0 } : f ? { optional: !1 } : void 0,
|
|
3326
|
+
start: $(h),
|
|
3327
|
+
end: a
|
|
3328
|
+
}, { hasParentParens: l });
|
|
3329
|
+
}, x = function(t, s) {
|
|
3330
|
+
return c(this, u, pt).call(this, t, s);
|
|
3331
|
+
}, pt = function(t, s) {
|
|
3332
|
+
let { isInParentParens: r } = {
|
|
3333
|
+
isInParentParens: !1,
|
|
3334
|
+
...s
|
|
3335
|
+
};
|
|
3336
|
+
if (t instanceof Vt) {
|
|
3337
|
+
let { expressions: i } = t;
|
|
3338
|
+
if (i.length !== 1) throw new Error("Unexpected 'Interpolation'");
|
|
3339
|
+
return c(this, u, x).call(this, i[0]);
|
|
3340
|
+
}
|
|
3341
|
+
if (t instanceof X) return c(this, u, w).call(this, {
|
|
3342
|
+
type: "UnaryExpression",
|
|
3343
|
+
prefix: !0,
|
|
3344
|
+
argument: c(this, u, x).call(this, t.expr),
|
|
3345
|
+
operator: t.operator,
|
|
3346
|
+
...t.sourceSpan
|
|
3347
|
+
}, { hasParentParens: r });
|
|
3348
|
+
if (t instanceof A) {
|
|
3349
|
+
let { left: i, operation: a, right: l } = t, h = c(this, u, x).call(this, i), f = c(this, u, x).call(this, l), v = $(h), E = R(f), y = {
|
|
3350
|
+
left: h,
|
|
3351
|
+
right: f,
|
|
3352
|
+
start: v,
|
|
3353
|
+
end: E
|
|
3354
|
+
};
|
|
3355
|
+
return a === "&&" || a === "||" || a === "??" ? c(this, u, w).call(this, {
|
|
3356
|
+
...y,
|
|
3357
|
+
type: "LogicalExpression",
|
|
3358
|
+
operator: a
|
|
3359
|
+
}, { hasParentParens: r }) : c(this, u, w).call(this, {
|
|
3360
|
+
...y,
|
|
3361
|
+
type: "BinaryExpression",
|
|
3362
|
+
operator: a
|
|
3363
|
+
}, { hasParentParens: r });
|
|
3364
|
+
}
|
|
3365
|
+
if (t instanceof Be) {
|
|
3366
|
+
let { exp: i, name: a, args: l } = t, h = c(this, u, x).call(this, i), f = $(h), v = R(h), E = this.getCharacterIndex(/\S/, this.getCharacterIndex("|", v) + 1), y = c(this, u, w).call(this, {
|
|
3367
|
+
type: "Identifier",
|
|
3368
|
+
name: a,
|
|
3369
|
+
start: E,
|
|
3370
|
+
end: E + a.length
|
|
3371
|
+
}), T = l.map((k) => c(this, u, x).call(this, k));
|
|
3372
|
+
return c(this, u, w).call(this, {
|
|
3373
|
+
type: "NGPipeExpression",
|
|
3374
|
+
left: h,
|
|
3375
|
+
right: y,
|
|
3376
|
+
arguments: T,
|
|
3377
|
+
start: f,
|
|
3378
|
+
end: R(T.length === 0 ? y : ut(!1, T, -1))
|
|
3379
|
+
}, { hasParentParens: r });
|
|
3380
|
+
}
|
|
3381
|
+
if (t instanceof Le) return c(this, u, w).call(this, {
|
|
3382
|
+
type: "NGChainedExpression",
|
|
3383
|
+
expressions: t.expressions.map((i) => c(this, u, x).call(this, i)),
|
|
3384
|
+
...t.sourceSpan
|
|
3385
|
+
}, { hasParentParens: r });
|
|
3386
|
+
if (t instanceof Me) {
|
|
3387
|
+
let { condition: i, trueExp: a, falseExp: l } = t, h = c(this, u, x).call(this, i), f = c(this, u, x).call(this, a), v = c(this, u, x).call(this, l);
|
|
3388
|
+
return c(this, u, w).call(this, {
|
|
3389
|
+
type: "ConditionalExpression",
|
|
3390
|
+
test: h,
|
|
3391
|
+
consequent: f,
|
|
3392
|
+
alternate: v,
|
|
3393
|
+
start: $(h),
|
|
3394
|
+
end: R(v)
|
|
3395
|
+
}, { hasParentParens: r });
|
|
3396
|
+
}
|
|
3397
|
+
if (t instanceof P) return c(this, u, w).call(this, {
|
|
3398
|
+
type: "NGEmptyExpression",
|
|
3399
|
+
...t.sourceSpan
|
|
3400
|
+
}, { hasParentParens: r });
|
|
3401
|
+
if (t instanceof Y) return c(this, u, w).call(this, {
|
|
3402
|
+
type: "ThisExpression",
|
|
3403
|
+
...t.sourceSpan
|
|
3404
|
+
}, { hasParentParens: r });
|
|
3405
|
+
if (t instanceof Re || t instanceof ue) return c(this, u, Xe).call(this, t.receiver, c(this, u, x).call(this, t.key), {
|
|
3406
|
+
computed: !0,
|
|
3407
|
+
optional: t instanceof ue,
|
|
3408
|
+
end: t.sourceSpan.end,
|
|
3409
|
+
hasParentParens: r
|
|
3410
|
+
});
|
|
3411
|
+
if (t instanceof Oe) return c(this, u, w).call(this, {
|
|
3412
|
+
type: "ArrayExpression",
|
|
3413
|
+
elements: t.expressions.map((i) => c(this, u, x).call(this, i)),
|
|
3414
|
+
...t.sourceSpan
|
|
3415
|
+
}, { hasParentParens: r });
|
|
3416
|
+
if (t instanceof Fe) {
|
|
3417
|
+
let { keys: i, values: a } = t, l = a.map((f) => c(this, u, x).call(this, f)), h = i.map(({ key: f, quoted: v }, E) => {
|
|
3418
|
+
let y = l[E], T = $(y), k = R(y), F = this.getCharacterIndex(/\S/, E === 0 ? t.sourceSpan.start + 1 : this.getCharacterIndex(",", R(l[E - 1])) + 1), Ee = T === F ? k : this.getCharacterLastIndex(/\S/, this.getCharacterLastIndex(":", T - 1) - 1) + 1, ye = {
|
|
3419
|
+
start: F,
|
|
3420
|
+
end: Ee
|
|
3421
|
+
}, j = v ? c(this, u, w).call(this, {
|
|
3422
|
+
type: "StringLiteral",
|
|
3423
|
+
value: f,
|
|
3424
|
+
...ye
|
|
3425
|
+
}) : c(this, u, w).call(this, {
|
|
3426
|
+
type: "Identifier",
|
|
3427
|
+
name: f,
|
|
3428
|
+
...ye
|
|
3429
|
+
}), en = j.end < j.start || F === T;
|
|
3430
|
+
return c(this, u, w).call(this, {
|
|
3431
|
+
type: "ObjectProperty",
|
|
3432
|
+
key: j,
|
|
3433
|
+
value: y,
|
|
3434
|
+
shorthand: en,
|
|
3435
|
+
computed: !1,
|
|
3436
|
+
start: $(j),
|
|
3437
|
+
end: k
|
|
3438
|
+
});
|
|
3439
|
+
});
|
|
3440
|
+
return c(this, u, w).call(this, {
|
|
3441
|
+
type: "ObjectExpression",
|
|
3442
|
+
properties: h,
|
|
3443
|
+
...t.sourceSpan
|
|
3444
|
+
}, { hasParentParens: r });
|
|
3445
|
+
}
|
|
3446
|
+
if (t instanceof I) {
|
|
3447
|
+
let { value: i } = t;
|
|
3448
|
+
switch (typeof i) {
|
|
3449
|
+
case "boolean": return c(this, u, w).call(this, {
|
|
3450
|
+
type: "BooleanLiteral",
|
|
3451
|
+
value: i,
|
|
3452
|
+
...t.sourceSpan
|
|
3453
|
+
}, { hasParentParens: r });
|
|
3454
|
+
case "number": return c(this, u, w).call(this, {
|
|
3455
|
+
type: "NumericLiteral",
|
|
3456
|
+
value: i,
|
|
3457
|
+
...t.sourceSpan
|
|
3458
|
+
}, { hasParentParens: r });
|
|
3459
|
+
case "object": return c(this, u, w).call(this, {
|
|
3460
|
+
type: "NullLiteral",
|
|
3461
|
+
...t.sourceSpan
|
|
3462
|
+
}, { hasParentParens: r });
|
|
3463
|
+
case "string": return c(this, u, w).call(this, {
|
|
3464
|
+
type: "StringLiteral",
|
|
3465
|
+
value: i,
|
|
3466
|
+
...t.sourceSpan
|
|
3467
|
+
}, { hasParentParens: r });
|
|
3468
|
+
case "undefined": return c(this, u, w).call(this, {
|
|
3469
|
+
type: "Identifier",
|
|
3470
|
+
name: "undefined",
|
|
3471
|
+
...t.sourceSpan
|
|
3472
|
+
}, { hasParentParens: r });
|
|
3473
|
+
default: throw new Error(`Unexpected LiteralPrimitive value type ${typeof i}`);
|
|
3474
|
+
}
|
|
3475
|
+
}
|
|
3476
|
+
if (t instanceof Ue || t instanceof pe) {
|
|
3477
|
+
let i = t instanceof pe, { receiver: a, args: l } = t, h = l.length === 1 ? [c(this, u, x).call(this, l[0], { isInParentParens: !0 })] : l.map((y) => c(this, u, x).call(this, y)), f = c(this, u, x).call(this, a), v = bs(f), E = i || v ? "OptionalCallExpression" : "CallExpression";
|
|
3478
|
+
return c(this, u, w).call(this, {
|
|
3479
|
+
type: E,
|
|
3480
|
+
callee: f,
|
|
3481
|
+
arguments: h,
|
|
3482
|
+
...E === "OptionalCallExpression" ? { optional: i } : void 0,
|
|
3483
|
+
start: $(f),
|
|
3484
|
+
end: t.sourceSpan.end
|
|
3485
|
+
}, { hasParentParens: r });
|
|
3486
|
+
}
|
|
3487
|
+
if (t instanceof Ve) {
|
|
3488
|
+
let i = c(this, u, x).call(this, t.expression);
|
|
3489
|
+
return c(this, u, w).call(this, {
|
|
3490
|
+
type: "TSNonNullExpression",
|
|
3491
|
+
expression: i,
|
|
3492
|
+
start: $(i),
|
|
3493
|
+
end: t.sourceSpan.end
|
|
3494
|
+
}, { hasParentParens: r });
|
|
3495
|
+
}
|
|
3496
|
+
if (t instanceof Q || t instanceof K || t instanceof Z) {
|
|
3497
|
+
let i = t instanceof Q ? "!" : t instanceof K ? "typeof" : t instanceof Z ? "void" : void 0;
|
|
3498
|
+
if (!i) throw new Error("Unexpected expression.");
|
|
3499
|
+
let { start: a } = t.sourceSpan;
|
|
3500
|
+
if (i === "typeof" || i === "void") {
|
|
3501
|
+
let h = this.text.lastIndexOf(i, a);
|
|
3502
|
+
if (h === -1) throw new Error(`Cannot find operator '${i}' from index ${a} in ${JSON.stringify(this.text)}`);
|
|
3503
|
+
a = h;
|
|
3504
|
+
}
|
|
3505
|
+
let l = c(this, u, x).call(this, t.expression);
|
|
3506
|
+
return c(this, u, w).call(this, {
|
|
3507
|
+
type: "UnaryExpression",
|
|
3508
|
+
prefix: !0,
|
|
3509
|
+
operator: i,
|
|
3510
|
+
argument: l,
|
|
3511
|
+
start: a,
|
|
3512
|
+
end: R(l)
|
|
3513
|
+
}, { hasParentParens: r });
|
|
3514
|
+
}
|
|
3515
|
+
if (t instanceof le || t instanceof ce) {
|
|
3516
|
+
let { receiver: i, name: a } = t, l = this.getCharacterLastIndex(/\S/, t.sourceSpan.end - 1) + 1, h = c(this, u, w).call(this, {
|
|
3517
|
+
type: "Identifier",
|
|
3518
|
+
name: a,
|
|
3519
|
+
start: l - a.length,
|
|
3520
|
+
end: l
|
|
3521
|
+
}, Is(i, L(this, xe)) ? { hasParentParens: r } : {});
|
|
3522
|
+
return c(this, u, Xe).call(this, i, h, {
|
|
3523
|
+
computed: !1,
|
|
3524
|
+
optional: t instanceof ce,
|
|
3525
|
+
hasParentParens: r
|
|
3526
|
+
});
|
|
3527
|
+
}
|
|
3528
|
+
if (t instanceof De) {
|
|
3529
|
+
let i = c(this, u, x).call(this, t.key), a = c(this, u, x).call(this, t.value), l = c(this, u, Xe).call(this, t.receiver, i, {
|
|
3530
|
+
computed: !0,
|
|
3531
|
+
optional: !1,
|
|
3532
|
+
end: this.getCharacterIndex("]", R(i)) + 1
|
|
3533
|
+
});
|
|
3534
|
+
return c(this, u, w).call(this, {
|
|
3535
|
+
type: "AssignmentExpression",
|
|
3536
|
+
left: l,
|
|
3537
|
+
operator: "=",
|
|
3538
|
+
right: a,
|
|
3539
|
+
start: $(l),
|
|
3540
|
+
end: R(a)
|
|
3541
|
+
}, { hasParentParens: r });
|
|
3542
|
+
}
|
|
3543
|
+
if (t instanceof $e) {
|
|
3544
|
+
let { receiver: i, name: a, value: l } = t, h = c(this, u, x).call(this, l), f = this.getCharacterLastIndex(/\S/, this.getCharacterLastIndex("=", $(h) - 1) - 1) + 1, v = c(this, u, w).call(this, {
|
|
3545
|
+
type: "Identifier",
|
|
3546
|
+
name: a,
|
|
3547
|
+
start: f - a.length,
|
|
3548
|
+
end: f
|
|
3549
|
+
}), E = c(this, u, Xe).call(this, i, v, {
|
|
3550
|
+
computed: !1,
|
|
3551
|
+
optional: !1
|
|
3552
|
+
});
|
|
3553
|
+
return c(this, u, w).call(this, {
|
|
3554
|
+
type: "AssignmentExpression",
|
|
3555
|
+
left: E,
|
|
3556
|
+
operator: "=",
|
|
3557
|
+
right: h,
|
|
3558
|
+
start: $(E),
|
|
3559
|
+
end: R(h)
|
|
3560
|
+
}, { hasParentParens: r });
|
|
3561
|
+
}
|
|
3562
|
+
if (t instanceof he) return c(this, u, w).call(this, {
|
|
3563
|
+
type: "TaggedTemplateExpression",
|
|
3564
|
+
tag: c(this, u, x).call(this, t.tag),
|
|
3565
|
+
quasi: c(this, u, x).call(this, t.template),
|
|
3566
|
+
...t.sourceSpan
|
|
3567
|
+
});
|
|
3568
|
+
if (t instanceof fe) {
|
|
3569
|
+
let { elements: i, expressions: a } = t;
|
|
3570
|
+
return c(this, u, w).call(this, {
|
|
3571
|
+
type: "TemplateLiteral",
|
|
3572
|
+
quasis: i.map((l) => c(this, u, x).call(this, l, { parent: t })),
|
|
3573
|
+
expressions: a.map((l) => c(this, u, x).call(this, l)),
|
|
3574
|
+
...t.sourceSpan
|
|
3575
|
+
});
|
|
3576
|
+
}
|
|
3577
|
+
if (t instanceof de) {
|
|
3578
|
+
let { elements: i } = s.parent, a = i.indexOf(t), l = a === 0, h = a === i.length - 1, f = t.sourceSpan.end - (h ? 1 : 0), v = t.sourceSpan.start + (l ? 1 : 0), E = this.text.slice(v, f);
|
|
3579
|
+
return c(this, u, w).call(this, {
|
|
3580
|
+
type: "TemplateElement",
|
|
3581
|
+
value: {
|
|
3582
|
+
cooked: t.text,
|
|
3583
|
+
raw: E
|
|
3584
|
+
},
|
|
3585
|
+
start: v,
|
|
3586
|
+
end: f,
|
|
3587
|
+
tail: h
|
|
3588
|
+
}, { stripSpaces: !1 });
|
|
3589
|
+
}
|
|
3590
|
+
if (t instanceof He) return c(this, u, pt).call(this, t.expression);
|
|
3591
|
+
throw new Error(`Unexpected node type '${t.constructor.name}'`);
|
|
3592
|
+
};
|
|
3593
|
+
function Ns(n, e) {
|
|
3594
|
+
return new Je(n, e).node;
|
|
3595
|
+
}
|
|
3596
|
+
function As(n) {
|
|
3597
|
+
return n instanceof We;
|
|
3598
|
+
}
|
|
3599
|
+
function Ps(n) {
|
|
3600
|
+
return n instanceof me;
|
|
3601
|
+
}
|
|
3602
|
+
var Se, ee, g, Ls, N, Gt, Xt, Jt, Ms, $s, Rs, Ds, zt = class extends Je {
|
|
3603
|
+
constructor(t, s) {
|
|
3604
|
+
super(void 0, s);
|
|
3605
|
+
V(this, g);
|
|
3606
|
+
V(this, Se);
|
|
3607
|
+
V(this, ee);
|
|
3608
|
+
te(this, Se, t), te(this, ee, s);
|
|
3609
|
+
for (let r of t) c(this, g, Ms).call(this, r);
|
|
3610
|
+
}
|
|
3611
|
+
get expressions() {
|
|
3612
|
+
return c(this, g, Rs).call(this);
|
|
3613
|
+
}
|
|
3614
|
+
};
|
|
3615
|
+
Se = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakSet(), Ls = function() {
|
|
3616
|
+
return L(this, Se)[0].key;
|
|
3617
|
+
}, N = function(t, { stripSpaces: s = !0 } = {}) {
|
|
3618
|
+
return this.createNode(t, { stripSpaces: s });
|
|
3619
|
+
}, Gt = function(t) {
|
|
3620
|
+
return this.transformNode(t);
|
|
3621
|
+
}, Xt = function(t) {
|
|
3622
|
+
return Es(t.slice(L(this, g, Ls).source.length));
|
|
3623
|
+
}, Jt = function(t) {
|
|
3624
|
+
let s = L(this, ee);
|
|
3625
|
+
if (s[t.start] !== "\"" && s[t.start] !== "'") return;
|
|
3626
|
+
let r = s[t.start], i = !1;
|
|
3627
|
+
for (let a = t.start + 1; a < s.length; a++) switch (s[a]) {
|
|
3628
|
+
case r: if (!i) {
|
|
3629
|
+
t.end = a + 1;
|
|
3630
|
+
return;
|
|
3631
|
+
}
|
|
3632
|
+
default:
|
|
3633
|
+
i = !1;
|
|
3634
|
+
break;
|
|
3635
|
+
case "\\":
|
|
3636
|
+
i = !i;
|
|
3637
|
+
break;
|
|
3638
|
+
}
|
|
3639
|
+
}, Ms = function(t) {
|
|
3640
|
+
c(this, g, Jt).call(this, t.key.span), Ps(t) && t.value && c(this, g, Jt).call(this, t.value.span);
|
|
3641
|
+
}, $s = function(t) {
|
|
3642
|
+
if (!t.value || t.value.source) return t.value;
|
|
3643
|
+
let s = this.getCharacterIndex(/\S/, t.sourceSpan.start);
|
|
3644
|
+
return {
|
|
3645
|
+
source: "$implicit",
|
|
3646
|
+
span: {
|
|
3647
|
+
start: s,
|
|
3648
|
+
end: s
|
|
3649
|
+
}
|
|
3650
|
+
};
|
|
3651
|
+
}, Rs = function() {
|
|
3652
|
+
let t = L(this, Se), [s] = t, r = L(this, ee).slice(s.sourceSpan.start, s.sourceSpan.end).trim().length === 0 ? t.slice(1) : t, i = [], a = null;
|
|
3653
|
+
for (let [l, h] of r.entries()) {
|
|
3654
|
+
if (a && As(a) && Ps(h) && h.value && h.value.source === a.key.source) {
|
|
3655
|
+
let f = c(this, g, N).call(this, {
|
|
3656
|
+
type: "NGMicrosyntaxKey",
|
|
3657
|
+
name: h.key.source,
|
|
3658
|
+
...h.key.span
|
|
3659
|
+
}), v = (T, k) => ({
|
|
3660
|
+
...T,
|
|
3661
|
+
...this.transformSpan({
|
|
3662
|
+
start: T.start,
|
|
3663
|
+
end: k
|
|
3664
|
+
})
|
|
3665
|
+
}), E = (T) => ({
|
|
3666
|
+
...v(T, f.end),
|
|
3667
|
+
alias: f
|
|
3668
|
+
}), y = i.pop();
|
|
3669
|
+
if (y.type === "NGMicrosyntaxExpression") i.push(E(y));
|
|
3670
|
+
else if (y.type === "NGMicrosyntaxKeyedExpression") {
|
|
3671
|
+
let T = E(y.expression);
|
|
3672
|
+
i.push(v({
|
|
3673
|
+
...y,
|
|
3674
|
+
expression: T
|
|
3675
|
+
}, T.end));
|
|
3676
|
+
} else throw new Error(`Unexpected type ${y.type}`);
|
|
3677
|
+
} else i.push(c(this, g, Ds).call(this, h, l));
|
|
3678
|
+
a = h;
|
|
3679
|
+
}
|
|
3680
|
+
return c(this, g, N).call(this, {
|
|
3681
|
+
type: "NGMicrosyntax",
|
|
3682
|
+
body: i,
|
|
3683
|
+
...i.length === 0 ? t[0].sourceSpan : {
|
|
3684
|
+
start: i[0].start,
|
|
3685
|
+
end: ut(!1, i, -1).end
|
|
3686
|
+
}
|
|
3687
|
+
});
|
|
3688
|
+
}, Ds = function(t, s) {
|
|
3689
|
+
if (As(t)) {
|
|
3690
|
+
let { key: r, value: i } = t;
|
|
3691
|
+
return i ? s === 0 ? c(this, g, N).call(this, {
|
|
3692
|
+
type: "NGMicrosyntaxExpression",
|
|
3693
|
+
expression: c(this, g, Gt).call(this, i.ast),
|
|
3694
|
+
alias: null,
|
|
3695
|
+
...i.sourceSpan
|
|
3696
|
+
}) : c(this, g, N).call(this, {
|
|
3697
|
+
type: "NGMicrosyntaxKeyedExpression",
|
|
3698
|
+
key: c(this, g, N).call(this, {
|
|
3699
|
+
type: "NGMicrosyntaxKey",
|
|
3700
|
+
name: c(this, g, Xt).call(this, r.source),
|
|
3701
|
+
...r.span
|
|
3702
|
+
}),
|
|
3703
|
+
expression: c(this, g, N).call(this, {
|
|
3704
|
+
type: "NGMicrosyntaxExpression",
|
|
3705
|
+
expression: c(this, g, Gt).call(this, i.ast),
|
|
3706
|
+
alias: null,
|
|
3707
|
+
...i.sourceSpan
|
|
3708
|
+
}),
|
|
3709
|
+
start: r.span.start,
|
|
3710
|
+
end: i.sourceSpan.end
|
|
3711
|
+
}) : c(this, g, N).call(this, {
|
|
3712
|
+
type: "NGMicrosyntaxKey",
|
|
3713
|
+
name: c(this, g, Xt).call(this, r.source),
|
|
3714
|
+
...r.span
|
|
3715
|
+
});
|
|
3716
|
+
} else {
|
|
3717
|
+
let { key: r, sourceSpan: i } = t;
|
|
3718
|
+
if (/^let\s$/.test(L(this, ee).slice(i.start, i.start + 4))) {
|
|
3719
|
+
let { value: l } = t;
|
|
3720
|
+
return c(this, g, N).call(this, {
|
|
3721
|
+
type: "NGMicrosyntaxLet",
|
|
3722
|
+
key: c(this, g, N).call(this, {
|
|
3723
|
+
type: "NGMicrosyntaxKey",
|
|
3724
|
+
name: r.source,
|
|
3725
|
+
...r.span
|
|
3726
|
+
}),
|
|
3727
|
+
value: l ? c(this, g, N).call(this, {
|
|
3728
|
+
type: "NGMicrosyntaxKey",
|
|
3729
|
+
name: l.source,
|
|
3730
|
+
...l.span
|
|
3731
|
+
}) : null,
|
|
3732
|
+
start: i.start,
|
|
3733
|
+
end: l ? l.span.end : r.span.end
|
|
3734
|
+
});
|
|
3735
|
+
} else {
|
|
3736
|
+
let l = c(this, g, $s).call(this, t);
|
|
3737
|
+
return c(this, g, N).call(this, {
|
|
3738
|
+
type: "NGMicrosyntaxAs",
|
|
3739
|
+
key: c(this, g, N).call(this, {
|
|
3740
|
+
type: "NGMicrosyntaxKey",
|
|
3741
|
+
name: l.source,
|
|
3742
|
+
...l.span
|
|
3743
|
+
}),
|
|
3744
|
+
alias: c(this, g, N).call(this, {
|
|
3745
|
+
type: "NGMicrosyntaxKey",
|
|
3746
|
+
name: r.source,
|
|
3747
|
+
...r.span
|
|
3748
|
+
}),
|
|
3749
|
+
start: l.span.start,
|
|
3750
|
+
end: r.span.end
|
|
3751
|
+
});
|
|
3752
|
+
}
|
|
3753
|
+
}
|
|
3754
|
+
};
|
|
3755
|
+
function Bs(n, e) {
|
|
3756
|
+
return new zt(n, e).expressions;
|
|
3757
|
+
}
|
|
3758
|
+
function ht({ result: { ast: n }, text: e, comments: t }) {
|
|
3759
|
+
return Object.assign(Ns(n, e), { comments: t });
|
|
3760
|
+
}
|
|
3761
|
+
function Os({ result: { templateBindings: n }, text: e }) {
|
|
3762
|
+
return Bs(n, e);
|
|
3763
|
+
}
|
|
3764
|
+
var Fs = (n) => ht(ys(n));
|
|
3765
|
+
var Vs = (n) => ht(Cs(n)), Yt = (n) => ht(_s(n)), Us = (n) => Os(Ts(n));
|
|
3766
|
+
function Qt(n) {
|
|
3767
|
+
var s, r, i;
|
|
3768
|
+
let e = ((s = n.range) == null ? void 0 : s[0]) ?? n.start, t = (i = ((r = n.declaration) == null ? void 0 : r.decorators) ?? n.decorators) == null ? void 0 : i[0];
|
|
3769
|
+
return t ? Math.min(Qt(t), e) : e;
|
|
3770
|
+
}
|
|
3771
|
+
function Hs(n) {
|
|
3772
|
+
var t;
|
|
3773
|
+
return ((t = n.range) == null ? void 0 : t[1]) ?? n.end;
|
|
3774
|
+
}
|
|
3775
|
+
function ft(n) {
|
|
3776
|
+
return {
|
|
3777
|
+
astFormat: "estree",
|
|
3778
|
+
parse(e) {
|
|
3779
|
+
let t = n(e);
|
|
3780
|
+
return {
|
|
3781
|
+
type: "NGRoot",
|
|
3782
|
+
node: n === Yt && t.type !== "NGChainedExpression" ? {
|
|
3783
|
+
...t,
|
|
3784
|
+
type: "NGChainedExpression",
|
|
3785
|
+
expressions: [t]
|
|
3786
|
+
} : t
|
|
3787
|
+
};
|
|
3788
|
+
},
|
|
3789
|
+
locStart: Qt,
|
|
3790
|
+
locEnd: Hs
|
|
3791
|
+
};
|
|
3792
|
+
}
|
|
3793
|
+
var Jr = ft(Yt), Yr = ft(Fs), Qr = ft(Vs), Kr = ft(Us);
|
|
3794
|
+
var ho = Zt;
|
|
3795
|
+
|
|
3796
|
+
//#endregion
|
|
3797
|
+
export { ho as default, Kt as parsers };
|